ampRep=/&/g;eqRep=/=/g;function showVideo(A){var B=new Swiff("player/flvplayer.swf",{id:"playingVideos",width:400,height:250,container:"playlistVideo",vars:{file:"player/playlist_video.php?i="+A,playlist:"right",playlistsize:180,width:400,height:250,config:"player/config.xml",autostart:true}})}function setLocater(){if(window.location.hash!=""){locater=window.location.hash.replace("#","")}else{if(window.location.href.contains("?s=")){locater=window.location.href.split("?s=")[1]}else{locater=""}}}function pageCheck(){if(window.location.hash==""){if(locater!=""){wasLocater=locater}locater=queries.replace("s=","").replace(ampRep,"|").replace(eqRep,"/");swapPage(wasLocater,locater)}else{if(locater==""||!window.location.href.contains(locater)||(window.location.hash.replace("#","")!=""&&(window.location.hash.replace("#","")!=locater||locater==""))){if(locater!=""){wasLocater=locater}setLocater();if(!$("page_"+locater)){loadPage(locater)}else{swapPage(wasLocater,locater)}}}}function loadPage(B){if($("page_"+B)){$("page_"+B).destroy()}var C=new Element("div",{id:"page_"+B,"class":"pageHolder",styles:{opacity:0,position:"absolute"}});B=B.split("|");var A=B[0]+".php?";B.each(function(D,E){if(D.contains("/")){D=D.split("/");if(E>1){A+="&"}A+=D[0]+"="+D[1]}});new Request.HTML({evalScripts:true,onRequest:function(){$("loading").setStyle("display","block")},onComplete:function(D,F,E){$("loading").setStyle("display","none");C.set("html",E);C.getElements("a,area").each(function(G){if(G.href.contains("zoxband.com")&&G.href.contains("?s=")&&!G.href.contains("aim:")){G.onclick=null;G.addEvent("click",function(H){new Event(H).stop();var I=G.href.split("?")[1].replace("s=","").replace(ampRep,"|").replace(eqRep,"/");if(window.location.href.contains(I)||I.contains("id")||I.contains("p")){if($("page_"+I)){$("page_"+I).id="page_destroyThis"}if($("page_destroyThis")&&$("page_destroyThis").getStyle("visibility")=="visible"){wasLocater="destroyThis"}else{wasLocater=locater}locater=I;loadPage(I)}window.location="#"+I})}else{if(!G.href.contains("javascript:")){G.target="blank"}}});$("content").grab(C);swapPage(wasLocater,locater);if($("page_destroyThis")){$("page_destroyThis").destroy()}}}).get("includeDir/"+A)}function swapPage(A,D){var C=A.split("|");var B=D.split("|");if(A!="destroyThis"&&wasLocater!=locater){$("nav_"+C[0]).set({src:"img/"+C[0]+"_1-trans.png","class":""});$("nav_"+B[0]).set({src:"img/"+B[0]+"_2.png","class":"navHere"})}$$(".pageHolder").each(function(E){if(E.id!="page_"+D){E.setStyle("opacity",0)}else{E.setStyle("opacity",1)}});if(A=="visuals"&&D!="visuals"&&$("playingVideos")){$("playlistVideo").empty()}}window.addEvent("domready",function(){if(Browser.Engine.version!=4||!Browser.Engine.trident){$("sideBar").getElements("a > img").addEvent("mouseover",function(A){this.src=this.src.replace("1-trans","2")});$("sideBar").getElements("a > img").addEvent("mouseout",function(A){if(this.className!="navHere"){this.src=this.src.replace("2","1-trans")}})}$("mlEmail").rel="email address";$("mlZip").rel="zip code";$("mailingList").getElements("input[type=text]").addEvents({focus:function(){if(this.value==this.rel){this.value="";this.style.color="#000"}},blur:function(){if(this.value==""&&this.rel!="undefined"){this.value=this.rel;this.style.color="#595959"}}});$("content").getElements("a,area").each(function(A){if(A.href.contains("zoxband.com")&&A.href.contains("?s=")&&!A.href.contains("aim:")){A.onclick=null;A.addEvent("click",function(B){new Event(B).stop();var C=A.href.split("?")[1].replace("s=","").replace(ampRep,"|").replace(eqRep,"/");if(window.location.href.contains(C)||C.contains("id")||C.contains("p")){if($("page_"+C)){$("page_"+C).id="page_destroyThis"}if($("page_destroyThis")&&$("page_destroyThis").getStyle("visibility")=="visible"){wasLocater="destroyThis"}else{wasLocater=locater}locater=C;loadPage(C)}window.location="#"+C})}else{if(!A.href.contains("javascript:")){A.target="blank"}}});$("wrapNav").getElements("a").addEvent("click",function(A){this.blur();new Event(A).stop();window.location="#"+this.href.split("?s=")[1]})});var timer=window.setInterval(pageCheck,200);
