//SETTING UP OUR POPUP   
//0 means disabled; 1 means enabled;   
var popupStatus = 0;
//loading popup with jQuery magic!    
function centerPopupMovie(){   
	//request data for centering   
	var windowWidth = document.documentElement.clientWidth;   
	var windowHeight = document.documentElement.clientHeight;   
	var popupHeight = 550;   
	var popupWidth = 720;   
	//centering   
	$("#popmovie").css({"position": "absolute","top": 80,"left":(windowWidth/2-popupWidth/2)+"px"});   
	//only need force for IE6     
	$("#backzoomMovie").css({"height": windowHeight});     
} 
function loadPopupMovie(pop){   
	//loads popup only if it is disabled   
	if(popupStatus==0){
	/*$('select').css({display:"none"});*/
	$("#backzoomMovie").css({   "opacity": "0.7"  });
	$("#backzoomMovie").fadeIn(400);   
	$("#popmovie").fadeIn(400);   
	popupStatus = 1;   } 
return pop;	
} 
function disablePopupMovie(){   
	//disables popup only if it is enabled   
	if(popupStatus==1){   
	$("#popmovie").fadeOut(300, function(){
	});   
	$("#backzoomMovie").fadeOut(300);   
	popupStatus = 0;   
	/*$('select').fadeIn("slow"); */
} 
} 
