/* HTML code must set the parameter allowFullScreen set to true in object and embed tags to allow full screen play
*/
var currentId = "first";
var currentTmb = "#first";
var currentVid = "#first-vid";

$(document).ready(function () {
	$(currentVid).show();
							
	//first


	$(".tmbDiv a").bind("click", function(e){
										  
		id= $(this).parent().parent().attr('id');
		tmb = "#" + id;
		vid = tmb + "-vid";
		
		if(vid != currentVid){
		
			$(currentTmb).removeClass("selected");
			tempSel = currentTmb + " img";
			$(tempSel).attr("src","images/sub/success/" + currentId + "-off.jpg");
			
			$(tmb).addClass("selected");
			tempSel = tmb + " img";
			$(tempSel).attr("src", "images/sub/success/" + id + "-on.jpg");

			currentVid = vid;
			currentId = id;
			currentTmb = tmb;
		  }
		
	 });
});


function getFlashMovieObject(movieName)
{
  if(navigator.appName.indexOf("Microsoft") != -1){
	  return window[movieName];
 }else{
	  return document[movieName];
 }
}
