String.prototype.startsWith=function(a){return this.match("^"+a)==a};var isIE=navigator.userAgent.match(/MSIE/),isOperaOld=navigator.userAgent.match(/Opera (\S+)/)&&parseInt(navigator.userAgent.match(/Opera (\S+)/)[1])<7;function getE(a){return document.getElementById(a)}function goPage(d){var c=window.location.pathname,b=window.location.hostname,a=b.substring(0,3).toLowerCase();if(a!="www"&&a!="loc"&&a!="pro"&&a!="dem"&&a.indexOf("-")<0)b="www."+b;var e=c.lastIndexOf("/");window.location="http://"+b+c.substring(0,e+1)+d}function goPageOLD(a){window.location=a}function popUp(f,d,c,a,b){var e="width="+c+",height="+a+",scrollbars="+b;window.open(f,d,e)}function popUpImage(d,e,c,a,b){var f="width="+c+",height="+a+",scrollbars="+b;window.open("DisplayImage.asp?filename="+d,e,f)}function querySt(a){hu=window.location.search.substring(1);gy=hu.split("&");for(i=0;i<gy.length;i++){ft=gy[i].split("=");if(ft[0].toLowerCase()==a.toLowerCase())return ft[1]}}function domRollover(){if(!document.getElementById||isOperaOld)return;var a=document.getElementsByTagName("img"),c=[],d=[],b=[];for(i=0;i<a.length;i++)if(a[i].className.indexOf("domroll")!=-1){d[i]=a[i].getAttribute("src");b[i]=a[i].className;c[i]=new Image;if(b[i].match(/domroll (\S+)/))c[i].src=b[i].match(/domroll (\S+)/)[1];a[i].setAttribute("xsrc",d[i]);a[i].onmouseover=function(){this.setAttribute("src",this.className.match(/domroll (\S+)/)[1])};a[i].onmouseout=function(){this.setAttribute("src",this.getAttribute("xsrc"))}}}function domdomclickroll(){if(!document.getElementById||isOperaOld)return;var a=document.getElementsByTagName("img"),b=[],d=[],c=[];for(i=0;i<a.length;i++)if(a[i].className.indexOf("domclickroll")!=-1){d[i]=a[i].getAttribute("src");c[i]=a[i].className;b[i]=new Image;b[i+5e3]=new Image;if(c[i].match(/domclickroll (\S+) (\S+)/)){b[i].src=c[i].match(/domclickroll (\S+) (\S+)/)[1];b[i+5e3].src=c[i].match(/domclickroll (\S+) (\S+)/)[2]}a[i].setAttribute("xsrc",d[i]);a[i].onmouseover=function(){this.setAttribute("src",this.className.match(/domclickroll (\S+) (\S+)/)[1]);this.setAttribute("ysrc",this.className.match(/domclickroll (\S+) (\S+)/)[2])};a[i].onmouseout=function(){this.setAttribute("src",this.getAttribute("xsrc"))};a[i].onmousedown=function(){this.setAttribute("src",this.getAttribute("ysrc"))}}}function FadeMain(){!$("#main").is(":visible")&&$("#main").fadeIn(300)}function MailMessage(b,d){var a=getE("txtMessage"),c=getE("btnSend");if(a){a.innerHTML=b;a.style.display=b==""?"none":""}if(c&&d==0)c.style.display="none"}$(document).ready(function(){$("button.OrangeButton").mouseover(function(){$(this).toggleClass("OrangeButton OrangeButtonHover")});$("button.OrangeButton").mouseout(function(){$(this).toggleClass("OrangeButton OrangeButtonHover")});$(".BlueButton").mouseover(function(){$(this).toggleClass("BlueButton BlueButtonHover")});$(".BlueButton").mouseout(function(){$(this).toggleClass("BlueButton BlueButtonHover")});$("button.GreenButton").mouseover(function(){$(this).toggleClass("GreenButton GreenButtonHover")});$("button.GreenButton").mouseout(function(){$(this).toggleClass("GreenButton GreenButtonHover")});$("button.SmallOrangeButton").mouseover(function(){$(this).toggleClass("SmallOrangeButton SmallOrangeButtonHover")});$("button.SmallOrangeButton").mouseout(function(){$(this).toggleClass("SmallOrangeButton SmallOrangeButtonHover")});$(".SmallBlueButton").mouseover(function(){$(this).toggleClass("SmallBlueButton SmallBlueButtonHover")});$(".SmallBlueButton").mouseout(function(){$(this).toggleClass("SmallBlueButton SmallBlueButtonHover")});$("button.SmallGreenButton").mouseover(function(){$(this).toggleClass("SmallGreenButton SmallGreenButtonHover")});$("button.SmallGreenButton").mouseout(function(){$(this).toggleClass("SmallGreenButton SmallGreenButtonHover")});$("button.NavButton").mouseover(function(){$(this).toggleClass("NavButton NavButtonHover")});$("button.NavButton").mouseout(function(){$(this).toggleClass("NavButton NavButtonHover")})});
