<!-- Popups -->

function popUp(URL) {

day = new Date();

id = day.getTime();

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=575,height=500,left = 390,top = 302');");

}



<!-- Cinema Mode -->



var cinmode = ''

function cinemamode(mode)

{

  if (mode == 1)

  {

	// turn on

    resizecinema();

	cinmode=1;

	document.getElementById('playerdiv').style.zIndex = '102';



	document.getElementById('cinemamenu_on').style.display = 'none';

	changeOpac(0,'dimlights1');

	document.getElementById('dimlights1').style.display = '';

	opacity('dimlights1', 0, 75, 750);

	setTimeout("document.getElementById('cinemamenu_off').style.display = '';",750);

  }

  else

  {

	// turn off

	document.getElementById('cinemamenu_off').style.display = 'none';

	opacity('dimlights1', 75, 0, 500);

	setTimeout("document.getElementById('playerdiv').style.zIndex = '0';",750);



	setTimeout("document.getElementById('dimlights1').style.display='none';",750);

	setTimeout("document.getElementById('cinemamenu_on').style.display = '';",750);

	cinmode=0;

  }

}



function opacity(id, opacStart, opacEnd, millisec) { 

    //speed for each frame 

    var speed = Math.round(millisec / 100); 

    var timer = 0; 



    //determine the direction for the blending, if start and end are the same nothing happens 

    if(opacStart > opacEnd) { 

        for(i = opacStart; i >= opacEnd; i--) { 

            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 

            timer++; 

        } 

    } else if(opacStart < opacEnd) { 

        for(i = opacStart; i <= opacEnd; i++) 

            { 

            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 

            timer++; 

        } 

    } 

} 



//change the opacity for different browsers 

function changeOpac(opacity, id) { 

    var object = document.getElementById(id).style; 

    object.opacity = (opacity / 100); 

    object.MozOpacity = (opacity / 100); 

    object.KhtmlOpacity = (opacity / 100); 

    object.filter = "alpha(opacity=" + opacity + ")"; 

} 



function resizecinema()

{

  document.getElementById('dimlights1').style.width  = document.body.clientWidth;

  document.getElementById('dimlights1').style.height = document.body.clientHeight;

}







