var detect=navigator.userAgent.toLowerCase();var OS,browser,version,total,thestring;var checkFlash;function hideFlash(){$$("embed").each(function(a){a.setStyle({display:"none"});checkFlash=true});if(checkFlash!=true){document.getElementById("mainContainerContent").style.display="none"}return true}function showFlash(){$$("embed").each(function(a){a.setStyle({display:"block"})});if(checkFlash!=true){document.getElementById("mainContainerContent").style.display="block"}return true}function getBrowserInfo(){if(checkIt("konqueror")){browser="Konqueror";OS="Linux"}else{if(checkIt("safari")){browser="Safari"}else{if(checkIt("omniweb")){browser="OmniWeb"}else{if(checkIt("opera")){browser="Opera"}else{if(checkIt("webtv")){browser="WebTV"}else{if(checkIt("icab")){browser="iCab"}else{if(checkIt("msie")){browser="Internet Explorer"}else{if(!checkIt("compatible")){browser="Netscape Navigator";version=detect.charAt(8)}else{browser="An unknown browser"}}}}}}}}if(!version){version=detect.charAt(place+thestring.length)}if(!OS){if(checkIt("linux")){OS="Linux"}else{if(checkIt("x11")){OS="Unix"}else{if(checkIt("mac")){OS="Mac"}else{if(checkIt("win")){OS="Windows"}else{OS="an unknown operating system"}}}}}}function checkIt(a){place=detect.indexOf(a)+1;thestring=a;return place}Event.observe(window,"load",initialize,false);Event.observe(window,"load",getBrowserInfo,false);var lightbox=Class.create();lightbox.prototype={yPos:0,xPos:0,initialize:function(a){if(a){this.content=a.rel;Event.observe(a,"click",this.activate.bindAsEventListener(this),false);a.onclick=function(){return false}}},activate:function(){if(browser=="Internet Explorer"){this.getScroll();this.prepareIE("100%","hidden");this.setScroll(0,0);this.hideSelects("hidden")}this.displayLightbox("block")},prepareIE:function(a,b){bod=document.getElementsByTagName("body")[0];bod.style.height=a;bod.style.overflow=b;htm=document.getElementsByTagName("html")[0];htm.style.height=a;htm.style.overflow=b},hideSelects:function(a){selects=document.getElementsByTagName("select");for(i=0;i<selects.length;i++){selects[i].style.visibility=a}},getScroll:function(){if(self.pageYOffset){this.yPos=self.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){this.yPos=document.documentElement.scrollTop}else{if(document.body){this.yPos=document.body.scrollTop}}}},setScroll:function(a,b){window.scrollTo(a,b)},displayLightbox:function(a){$("overlay").style.display=a;$(this.content).style.display=a;if(a!="none"){this.actions()}},actions:function(){lbAction=document.getElementById("id_link_close");Event.observe(lbAction,"click",this[lbAction.rel].bindAsEventListener(this),false);lbAction.onclick=function(){return false}},deactivate:function(){if(browser=="Internet Explorer"){this.setScroll(0,this.yPos);this.prepareIE("auto","auto");this.hideSelects("visible")}showFlash();this.displayLightbox("none")}};function initialize(){addLightboxMarkup();lbox=document.getElementById("id_link_lightbox");valid=new lightbox(lbox);lbox2=document.getElementById("id_link_lightbox_detail");valid2=new lightbox(lbox2)}function addLightboxMarkup(){bod=document.getElementsByTagName("body")[0];overlay=document.createElement("div");overlay.id="overlay";bod.appendChild(overlay)};