var blogAddressToFlashBox;var pluginPath="/wp-content/plugins/wp-flashbox/";var flashPluginVersionString="8";var imageArray=new Array;var imageNum=0;var version=deconcept.SWFObjectUtil.getPlayerVersion();if((version["major"]>0)){var yourInstall="You have Flash player "+version["major"]+"."+version["minor"]+"."+version["rev"]+" installed.";}else{var yourInstall="You have no Flash player installed.";}var getUrl=location.href;var noFlashContent="<div id=\"noflash\"><strong>Your browser does not have Flash Player "+flashPluginVersionString+" or higher installed.</strong><br/><br />"+yourInstall+"<br />Or your browser does not support Javascript (you should enable it, perhaps?). <br /><br /><a href=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" title=\"Download latest Flash Plugin\">Click here to download</a> the latest version of the Flash Player. If you believe this is an error, <a href=\""+getUrl+"?detectflash=false\" title=\"Bypass detection\">click here to bypass detection</a> and try again.<br /><br /><b><a href=\"#\" onClick=\"; closeFlashBox ();return true\">close this window</a></b></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"))||(_4.toLowerCase().match("lightbox")))){_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")||(_8.getAttribute("rel")=="lightbox")){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=getPageScroll();setTop("flashcontent",_d[1]);setSWFObject();}function setSWFObject(){if(blogAddressToFlashBox==undefined){blogAddressToFlashBox="";pluginPath="";}var so=new SWFObject(blogAddressToFlashBox+pluginPath+"flashbox_v01.3.swf","flashbox_v01.3","100%","100%",flashPluginVersionString,"#F0F0F0");so.addVariable("useProxyUrl","wp-content/plugins/wp-flashbox/php/use_proxy.php");so.addVariable("imageNum",imageNum);so.addVariable("imgArray",imageArray);so.addVariable("totalImg",imageArray.length);for(var i=0;i<imageArray.length;i++){so.addVariable("img_"+i,imageArray[i][0]);so.addVariable("title_"+i,imageArray[i][1]);}so.addVariable("os",BrowserDetect.OS);so.addVariable("browserName",BrowserDetect.browser);so.addVariable("browserVersion",BrowserDetect.version);so.addParam("scale","noscale");if(BrowserDetect.OS=="Mac"&&BrowserDetect.browser=="Firefox"){}else{so.addParam("wmode","transparent");}so.addParam("align","TL");so.addParam("showMenu","false");so.write("flashcontent");}function getPageScroll(){var _10;if(self.pageYOffset){_10=self.pageYOffset;}else{if(document.documentElement&&document.documentElement.scrollTop){_10=document.documentElement.scrollTop;}else{if(document.body){_10=document.body.scrollTop;}}}arrayPageScroll=new Array("",_10);return arrayPageScroll;}function getPageSize(){var _11,yScroll;if(window.innerHeight&&window.scrollMaxY){_11=document.body.scrollWidth;yScroll=window.innerHeight+window.scrollMaxY;}else{if(document.body.scrollHeight>document.body.offsetHeight){_11=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{_11=document.body.offsetWidth;yScroll=document.body.offsetHeight;}}var _12,windowHeight;if(self.innerHeight){_12=self.innerWidth;windowHeight=self.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){_12=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else{if(document.body){_12=document.body.clientWidth;windowHeight=document.body.clientHeight;}}}if(yScroll<windowHeight){pageHeight=windowHeight;}else{pageHeight=yScroll;}if(_11<_12){pageWidth=_12;}else{pageWidth=_11;}arrayPageSize=new Array(pageWidth,pageHeight,_12,windowHeight);return arrayPageSize;}function setHeight(_13,h){var elm=document.getElementById(_13);elm.style.height=h+"px";}function setTop(_16,t){var elm=document.getElementById(_16);elm.style.top=t+"px";}function onscrollChange(){var _19=getPageScroll();setTop("flashcontent",_19[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";}var foobar=new domFunction(initialize);
