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 getLocationUrl=location.href.split("?");var noFlashContent="<div id=\"noflash\"><strong>Your browser doesn't have Flash Player "+flashPluginVersionString+" or higher installed.</strong><br/><br />"+"<a href=\"http://www.matthijskamstra.nl/blog/index.php/flashbox-just-another-box/\" target=\"_blank\" title=\"FlashBox is created by Matthijs Kamstra aka [mck]\">FlashBox</a> is the method used on this website to show inline images, is build for Flash version "+flashPluginVersionString+" and to see it's effects you need to <a href=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" title=\"Download latest Flash Plugin\">install the plugin</a><br/><br />"+yourInstall+"<br />Or your browser does not support Javascript (you should enable it, perhaps?). <br /><br />"+"<ul><li><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.</li>"+"<li>If you believe this message is an error, <a href=\""+getLocationUrl[0]+"?detectflash=false\" title=\"Bypass detection\">click here to bypass detection</a> and try again.</li>"+"<li>If you want to <a href=\""+getLocationUrl[0]+"?noflashbox=true\" title=\"I don't want to use FlashBox\">disable FlashBox</a> and try again</li>"+"<li>Do you want to know more about <a href=\"http://www.matthijskamstra.nl/blog/index.php/flashbox-just-another-box/\" target=\"_blank\" title=\"FlashBox is created by Matthijs Kamstra aka [mck]\">FlashBox</a>?</li></ul><br /><br /><b><a href=\"\" onClick=\"closeFlashBox ();return true\">close this window</a></b> (and change nothing)</div>";var ieFlashContent="<div id=\"noflash\"><strong>You are using Internet Explorer 6 for Windows</strong><br/><br />"+"In some cases, <a href=\"http://www.matthijskamstra.nl/blog/index.php/flashbox-just-another-box/\" target=\"_blank\" title=\"FlashBox is created by Matthijs Kamstra aka [mck]\">FlashBox</a> in combination with IE6 causes the content of the site to be blocked. <a href=\"http://www.matthijskamstra.nl/blog/\" title=\"Matthijs Kamstra aka [mck]\">I'm</a> working on a solution, but this is a complex problem.<br/><br/>So for now <strong>you</strong> can deside how to view the images on this website:"+"<ul><li>Just give it a try: <a href=\""+getLocationUrl[0]+"?noie6block=true\" title=\"Let's see what IE6 is doing\">I'm feeling lucky</a> and try again</li>"+"<li><a href=\"http://www.matthijskamstra.nl/blog/index.php/2007/03/16/flashbox-blocks-content-in-ie6/\" title=\"An explanation about this bug\">Read more about this bug</a></li>"+"<li><a href=\""+getLocationUrl[0]+"?noflashbox=true\" title=\"I don't want to use FlashBox\">Disable FlashBox</a> and try again</li>"+"<li>Update you're IE6 to <a href=\"http://www.microsoft.com/windows/products/winfamily/ie/default.mspx\" title=\"Download the latest Internet Explorer\">Internet Explorer 7.0</a></li>"+"<li>Or you could do this: <a href=\"http://browsehappy.com/browsers/\" title=\"Be a happy browser\">browse happy</a> (but you probably don't want to hear that)</li>"+"<li>Do you want to know more about <a href=\"http://www.matthijskamstra.nl/blog/index.php/flashbox-just-another-box/\" target=\"_blank\" title=\"FlashBox is created by Matthijs Kamstra aka [mck]\">FlashBox</a>?</li></ul><br /><br /><b><a href=\"\" onClick=\"closeFlashBox ();return true\">close this window</a></b> (and change nothing)</div>";function initialize(){if(getQueryParamValue("noflashbox")=="true"){return;}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);if(getQueryParamValue("sendafriend").length>3){for(var i=0;i<_1.length;i++){var _9=_1[i];if(_9.getAttribute("href")==getQueryParamValue("sendafriend")){start(_9);return false;}}}}function start(_a){var _b=getPageSize();setHeight("overlay",_b[1]);showFlashBox();imageArray=[];imageNum=0;if(!document.getElementsByTagName){return;}var _c=document.getElementsByTagName("a");if((_a.getAttribute("rel")=="flashbox")||(_a.getAttribute("rel")=="lightbox")){imageArray.push(new Array(_a.getAttribute("href"),_a.getAttribute("title")));}else{for(var i=0;i<_c.length;i++){var _e=_c[i];if(_e.getAttribute("href")&&(_e.getAttribute("rel")==_a.getAttribute("rel"))){imageArray.push(new Array(_e.getAttribute("href"),_e.getAttribute("title")));}}while(imageArray[imageNum][0]!=_a.getAttribute("href")){imageNum++;}}var _f=getPageScroll();setTop("flashcontent",_f[1]);setSWFObject();}function setSWFObject(){if(blogAddressToFlashBox==undefined){blogAddressToFlashBox="";pluginPath="";}var so=new SWFObject(blogAddressToFlashBox+pluginPath+"flashbox_v01.4.swf","flashbox_v01.4","100%","100%",flashPluginVersionString,"#666666");so.addVariable("useProxyUrl","wp-content/plugins/wp-flashbox/php/use_proxy.php");so.addVariable("imageNum",imageNum);so.addVariable("imgArray",imageArray);so.addVariable("getLocationUrl",getLocationUrl);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("browserOs",BrowserDetect.OS);so.addVariable("browserName",BrowserDetect.browser);so.addVariable("browserVersion",BrowserDetect.version);so.addVariable("debugflashbox",getQueryParamValue("debugflashbox"));so.addVariable("sendafriend",getQueryParamValue("sendafriend"));so.addParam("scale","noscale");if(BrowserDetect.OS=="Mac"&&BrowserDetect.browser=="Firefox"||BrowserDetect.browser=="Camino"){}else{if(BrowserDetect.OS=="Windows"&&BrowserDetect.browser=="Explorer"&&BrowserDetect.version=="6"){if(getQueryParamValue("noie6block")=="true"){so.addParam("wmode","transparent");}else{document.getElementById("flashcontent").innerHTML=ieFlashContent;return;}}else{so.addParam("wmode","transparent");}}so.addParam("align","TL");so.addParam("showMenu","false");so.write("flashcontent");}function getPageScroll(){var _12;if(self.pageYOffset){_12=self.pageYOffset;}else{if(document.documentElement&&document.documentElement.scrollTop){_12=document.documentElement.scrollTop;}else{if(document.body){_12=document.body.scrollTop;}}}arrayPageScroll=new Array("",_12);return arrayPageScroll;}function getPageSize(){var _13,yScroll;if(window.innerHeight&&window.scrollMaxY){_13=document.body.scrollWidth;yScroll=window.innerHeight+window.scrollMaxY;}else{if(document.body.scrollHeight>document.body.offsetHeight){_13=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{_13=document.body.offsetWidth;yScroll=document.body.offsetHeight;}}var _14,windowHeight;if(self.innerHeight){_14=self.innerWidth;windowHeight=self.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){_14=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else{if(document.body){_14=document.body.clientWidth;windowHeight=document.body.clientHeight;}}}if(yScroll<windowHeight){pageHeight=windowHeight;}else{pageHeight=yScroll;}if(_13<_14){pageWidth=_14;}else{pageWidth=_13;}arrayPageSize=new Array(pageWidth,pageHeight,_14,windowHeight);return arrayPageSize;}function setHeight(_15,h){var elm=document.getElementById(_15);elm.style.height=h+"px";}function setTop(_18,t){var elm=document.getElementById(_18);elm.style.top=t+"px";}function onscrollChange(){var _1b=getPageScroll();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";}var foobar=new domFunction(initialize);
