function centerDiv(){var divobj=document.getElementById("light");var divobj2=document.getElementById("fade");divobj.standardbody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body;divobj.scrollbarwidth=16;var ie=document.all&&!window.opera;if(ie)divobj2.style.filter='alpha(opacity=80)';var dom=document.getElementById;var scroll_top=(ie)?divobj.standardbody.scrollTop:window.pageYOffset;var scroll_left=(ie)?divobj.standardbody.scrollLeft:window.pageXOffset;var docwidth=(ie)?divobj.standardbody.clientWidth:window.innerWidth-divobj.scrollbarwidth;var docheight=(ie)?divobj.standardbody.clientHeight:window.innerHeight;var docheightcomplete=(divobj.standardbody.offsetHeight>divobj.standardbody.scrollHeight)?divobj.standardbody.offsetHeight:divobj.standardbody.scrollHeight;var objwidth=divobj.offsetWidth;var objheight=divobj.offsetHeight;var topposition=(docheight>objheight)?scroll_top+docheight/2-objheight/2+"px":scroll_top+10+"px";divobj.style.left=docwidth/2-objwidth/2+"px";divobj.style.top=Math.floor(parseInt(topposition))+"px";divobj.style.visibility="visible";divobj2.style.width=docwidth+"px";divobj2.style.height=docheightcomplete+"px";}function showVideo(video_code,w,h){if(!w)var w=640;if(!h)var h=360;if(video_code.indexOf(".")<0)video_code="trailer.php?video="+video_code;document.getElementById('light').style.display='block';document.getElementById('fade').style.width='100%';document.getElementById('fade').style.height='100%';document.getElementById('fade').style.display='block';document.getElementById('video_player_div').style.width=(w+10)+'px';document.getElementById('video_player_div').style.height=(h+30)+'px';document.getElementById('video_player_div').innerHTML='<iframe src="'+video_code+'" scrolling="no" frameBorder="0" style="BORDER-RIGHT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; BORDER-LEFT: 0px; WIDTH: '+(w)+'px; PADDING-TOP: 0px; BORDER-BOTTOM: 0px; HEIGHT: '+(h+30)+'px"></iframe>';centerDiv();}function closeVideo(){var rnd_img='<img src="/media/images/spacer.gif?'+Math.random()+'" widht="1" height="1" />';document.getElementById('video_player_div').innerHTML=rnd_img;document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'}
