var vidBox;var _CurrentVideo=null;var _browser=navigator.userAgent;var isSafari=_browser.indexOf("Safari")>-1?true:false;var isMac=_browser.indexOf("Macintosh")>-1?true:false;var isIE=document.defaultView?false:true;var pcFF=isMac==false?isIE?false:true:false;var safariINIT=false;var ffPos=null;var IEvers=isIE?Number(_browser.substring(_browser.indexOf("MSIE ")+4,_browser.indexOf("MSIE ")+8)):null;var IE7=isIE?IEvers>6?true:false:false;isSafari?pcFF=true:null;function $$(a){return(document.getElementById(a))}function PlayVideo(g,a){_CurrentVideo=g;boxElem=$$("VID-PLAYER");frElem=$$("VID-FRAME");smElem=$$("VID-SUMMARY");boxElem.style.visibility="hidden";boxElem.style.display="block";if(pcFF==false){smElem.style.visibility="hidden"}if(a!=null){var d=unescape(""+a)}else{var d=null}a=="null"?d=null:null;if(d!=null){smElem.innerHTML="";smElem.style.display="block";smElem.innerHTML=d}else{smElem.style.display="none";if(pcFF==false){smElem.style.visibility="hidden"}}if(pcFF==false){boxElem.style.width="484px";boxElem.style.height="330px";vidBox=new BlakBox(boxElem);if(d!=null){vidBox.offset=[(-1*smElem.offsetHeight),0]}boxElem.style.visibility="hidden";smElem.style.visibility="hidden";vidBox.Blak(BoxCallBack)}else{var e=$$("VID-TOP");var c=$$("VID-BTM");$$("VID-TOP").style.display="block";$$("VID-BTM").style.display="block";frElem.style.position="absolute";frElem.style.width=$clientWidth()+"px";frElem.style.height=window.innerHeight+"px";frElem.style.top=$scrollTop()+"px";frElem.style.left=$scrollLeft()+"px";if(d!=null){var i=smElem.offsetHeight}else{var i=0}var h=window.frames["VID-FRAME"].document.getElementById("VIDEO-HOLDER");h.style.position="absolute";var b=Number($clientWidth())-484;var f=Number($clientHeight())-330;h.style.top=(Math.floor(f/2)-i)+"px";h.style.left=Math.floor(b/2)+"px";e.style.position="fixed";e.style.top=(Math.floor(f/2)-(6+i))+"px";e.style.left=Math.floor(b/2)+"px";smElem.style.position="fixed";smElem.style.top=(Math.floor(f/2)+(330-i))+"px";smElem.style.left=Math.floor(b/2)+"px";c.style.position="fixed";c.style.top=(Math.floor(f/2)+(330))+"px";c.style.left=Math.floor(b/2)+"px";window.frames["VID-FRAME"].DrawFlash(_CurrentVideo);boxElem.style.visibility="visible";frElem.style.visibility="visible";frElem.style.display="block";frElem.style.zIndex=2030;ffPos=setInterval(function(){frElem.style.width=$clientWidth()+"px";frElem.style.height=window.innerHeight+"px";frElem.style.top=$scrollTop()+"px";frElem.style.left=$scrollLeft()+"px";var j=Number($clientWidth())-484;var k=Number($clientHeight())-330;h.style.top=(Math.floor(k/2)-i)+"px";h.style.left=Math.floor(j/2)+"px";e.style.top=(Math.floor(k/2)-(6+i))+"px";e.style.left=Math.floor(j/2)+"px";smElem.style.top=(Math.floor(k/2)+(330-i))+"px";smElem.style.left=Math.floor(j/2)+"px";c.style.top=(Math.floor(k/2)+(330))+"px";c.style.left=Math.floor(j/2)+"px"},20)}}function BoxCallBack(){boxElem=$$("VID-PLAYER");frElem=$$("VID-FRAME");smElem=$$("VID-SUMMARY");if(isIE==false){if(isSafari==true){if(safariINIT==false){safariINIT=true;window.frames["VID-FRAME"].DrawFlash(_CurrentVideo)}else{frElem.src="VideoPlayer.html"}}else{if(isMac==true){window.frames["VID-FRAME"].DrawFlash(_CurrentVideo)}}boxElem.style.visibility="visible";smElem.style.visibility="visible";var a=window.frames["VID-FRAME"].document.getElementById("BOD");a.className="NoBody"}else{frames["VID-FRAME"].location.href="VideoPlayer.html";boxElem.style.visibility="visible";smElem.style.visibility="visible"}}function CloseVideo(){_CurrentVideo=null;if(pcFF==false){if(isIE==true){frames["VID-FRAME"].location.href="Blank.html"}vidBox.Close()}else{clearInterval(ffPos);$$("VID-FRAME").style.visibility="hidden";$$("VID-PLAYER").style.visibility="hidden";$$("VID-TOP").style.display="none";$$("VID-BTM").style.display="none";window.frames["VID-FRAME"].location.href="VideoPlayer.html"}};
