var imageArray=new Array;var noFlashContent="<div id=\"noflash\"><strong>You need to upgrade your Flash Player</strong><br/>This is replaced by the Flash content.<br/>Place your alternate content here and users without the Flash plugin or with Javascript turned off will see this. Content here allows you to leave out <code>noscript</code> tags. Include a link to <a href=\"flashbox.html?detectflash=false\">bypass the detection</a> if you wish.</div>";function initialize(){if(!document.getElementsByTagName){return;}var _1=document.getElementsByTagName("a");for(var i=0;i<_1.length;i++){var _3=_1[i];var _4=String(_3.getAttribute("rel"));if(_3.getAttribute("href")&&(_4.toLowerCase().match("flashbox"))){_3.onclick=function(){start(this);return false;};}}var _5=document.getElementsByTagName("body").item(0);var _6=document.createElement("div");_6.setAttribute("id","overlay");_6.style.display="none";_6.onclick=function(){closeFlashBox();return false;};_5.appendChild(_6);var _7=document.createElement("div");_7.setAttribute("id","flashcontent");_7.style.display="none";_7.innerHTML=noFlashContent;_5.appendChild(_7);}function start(_8){var _9=getPageSize();setHeight("overlay",_9[1]);showFlashBox();imageArray=[];imageNum=0;if(!document.getElementsByTagName){return;}var _a=document.getElementsByTagName("a");if((_8.getAttribute("rel")=="flashbox")){imageArray.push(new Array(_8.getAttribute("href"),_8.getAttribute("title")));}else{for(var i=0;i<_a.length;i++){var _c=_a[i];if(_c.getAttribute("href")&&(_c.getAttribute("rel")==_8.getAttribute("rel"))){imageArray.push(new Array(_c.getAttribute("href"),_c.getAttribute("title")));}}while(imageArray[imageNum][0]!=_8.getAttribute("href")){imageNum++;}}var _d=getPageSize();var _e=getPageScroll();var _f=_e[1]+(_d[3]/15);setTop("flashcontent",_e[1]);setSWFObject();}function setSWFObject(){var so=new SWFObject("flashbox_v01.swf","flashbox_v01","100%","100%","8","#cccccc");so.addVariable("useProxyUrl","http://localhost:8080/flash/flashbox/php/use_proxy.php");so.addVariable("imageNum",imageNum);so.addVariable("imgArray",imageArray);so.addParam("scale","noscale");so.addParam("wmode","transparent");so.addParam("align","TL");so.addParam("showMenu","false");so.write("flashcontent");}function getPageScroll(){var _11;if(self.pageYOffset){_11=self.pageYOffset;}else{if(document.documentElement&&document.documentElement.scrollTop){_11=document.documentElement.scrollTop;}else{if(document.body){_11=document.body.scrollTop;}}}arrayPageScroll=new Array("",_11);return arrayPageScroll;}function getPageSize(){var _12,yScroll;if(window.innerHeight&&window.scrollMaxY){_12=document.body.scrollWidth;yScroll=window.innerHeight+window.scrollMaxY;}else{if(document.body.scrollHeight>document.body.offsetHeight){_12=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{_12=document.body.offsetWidth;yScroll=document.body.offsetHeight;}}var _13,windowHeight;if(self.innerHeight){_13=self.innerWidth;windowHeight=self.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){_13=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else{if(document.body){_13=document.body.clientWidth;windowHeight=document.body.clientHeight;}}}if(yScroll<windowHeight){pageHeight=windowHeight;}else{pageHeight=yScroll;}if(_12<_13){pageWidth=_13;}else{pageWidth=_12;}arrayPageSize=new Array(pageWidth,pageHeight,_13,windowHeight);return arrayPageSize;}function setHeight(_14,h){var elm=document.getElementById(_14);elm.style.height=h+"px";}function setTop(_17,t){var elm=document.getElementById(_17);elm.style.top=t+"px";}function onscrollChange(){var _1a=getPageSize();var _1b=getPageScroll();var _1c=_1b[1]+(_1a[3]/15);setTop("flashcontent",_1b[1]);}function closeFlashBox(){window.onscroll=null;document.getElementById("flashcontent").style.display="none";document.getElementById("overlay").style.display="none";}function showFlashBox(){window.onscroll=onscrollChange;document.getElementById("flashcontent").style.display="block";document.getElementById("overlay").style.display="block";}window.onload=function(){initialize();};
