function base(){ var agent=navigator.userAgent.toLowerCase(), mimes=navigator.mimeTypes; this.wp=window.parent; this.wt=window.top; this.op=window.opera; this.loc=location.href.match(/([^\/\.]+)\.(html|php)/i); this.home=this.loc&&this.loc[1]=="home"; this.landing=!this.loc||this.loc[1]=="index"; this.ie=agent.match(/msie/)&&!this.op; this.saf=agent.match(/safari/); this.mac=agent.match(/mac/); this.ie5=this.ie&&agent.match(/msie\s5/); this.ie50=this.ie&&agent.match(/msie\s5\.0/); this.ie55=(this.ie5 && agent.match(/msie\s5\.5/)); this.iemac=this.ie&&this.mac; this.moz=agent.match(/gecko/); this.ns=agent.match(/netscape/); this.ns6=agent.match(/netscape\D?6/); this.oldop=this.op&&agent.match(/opera\W?[34567]/); this.oldmoz=!this.ns&&agent.match(/rv\:1\.[0123456](\.\d)?\)\Wgecko/); this.osx=this.mac&&(this.saf||agent.match(/5\.22|os\s?x/i)); this.fox=agent.match(/firefox/); this.oldsaf=this.saf&&agent.match(/safari\W8/i); this.email=new RegExp("^[a-z0-9\.\_\!\#\$\%\&\'\`\*\+\/=\?\^\_\{\|\}\~\-]+\@([a-z0-9\-]+[\.])+[a-z]{2,}$","i"); this.plugin=mimes&&mimes["application/x-shockwave-flash"]?mimes["application/x-shockwave-flash"].enabledPlugin:0; this.flash=0; this.scrH=screen.availHeight||screen.height; this.scrW=screen.availWidth||screen.width; this.cookies=getCookie('cookies')=='enabled'?1:0; this.noscroll=this.oldop||this.ns6||this.iemac||this.oldmoz||this.ie50||this.ns&&this.home; this.popBlock="Your browser settings did not allow you to open a new content window.\nPlease check the status of your Popup Blocker."; }; base.prototype.getWinSize=function(){ this.db=document.body; this.dd=document.documentElement; if(typeof(window.innerWidth)=='number'){ this.winW=window.innerWidth; this.winH=window.innerHeight; }else if(this.dd && (this.dd.clientWidth || this.dd.clientHeight)){ this.winW=this.dd.clientWidth; this.winH=this.dd.clientHeight; }else if(this.db && (this.db.clientWidth || this.db.clientHeight)){ this.winW=this.db.clientWidth; this.winH=this.db.clientHeight; }}; base.prototype.getScrollTop=function(){ this.db=document.body; this.dd=document.documentElement; if(this.dd && this.dd.scrollTop){ this.scrL=this.dd.scrollLeft; this.scrT=this.dd.scrollTop; }else if(this.db && this.db.scrollTop){ this.scrL=this.db.scrollLeft; this.scrT=this.db.scrollTop; }else if(window.pageYOffset){ this.scrL=self.pageXOffset; this.scrT=self.pageYOffset; }else if(window.scrollY){ this.scrL=window.scrollX; this.scrT=window.scrollY; }}; bw=new base(); if(bw.plugin&&(bw.landing||bw.loc[1]=="flash")){ var ws=navigator.plugins["Shockwave Flash"].description.split(" "); for(var i=0;i<ws.length;++i){ if(isNaN(parseInt(ws[i])))continue; bw.plugVer=ws[i]; }; bw.flash=bw.plugVer>=7; }else if(bw.ie && !bw.mac)document.write('<SCRIPT LANGUAGE=VBScript\> \non error resume next \nbw.flash=( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+7+'")))\n</SCRIPT\> \n'); if(bw.mac&&bw.ie)document.write('<link rel="stylesheet" href="inc/iemac.css"/>'); function showDIV(el,tp){ el.style.visibility=tp?"visible":"hidden"; }; function get(el){ return document.getElementById(el); }; function make(el){ return document.createElement(el); }; function px(nr){ return nr+"px"; }; function blurit(){ this.blur(); }; var easings={"back":{"InOut":function(t,b,c,d,s){ if(!s)s=1.70158; if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b; return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b; }},"quart":{"InOut":function(t,b,c,d){ if((t/=d/2)<1)return c/2*t*t*t*t+b; return -c/2*((t-=2)*t*t*t-2)+b; }},"quint":{"InOut":function(t,b,c,d){ if((t/=d/2)<1)return c/2*t*t*t*t*t+b; return c/2*((t-=2)*t*t*t*t+2)+b; }}}; function Slider(el,tp1,tp2,tp3,aX,oX,dur){ this.el=el; this.b=aX; this.c=oX; this.tp1=tp1; this.tp2=tp2; this.d=dur; this.css=tp3; this.calc=easings[tp1][tp2]; this.off=0; switch(this.css){ case "clipLeft": this.move=function(x){ this.el.style['clip']="rect(0px auto auto "+(x>0?x:0)+"px)"; }; break; case "clipBottom": this.move=function(x){ this.el.style['clip']="rect(0px auto "+(x>0?x:0)+"px auto)"; }; break; case "clipRight": this.move=function(x){ this.el.style['clip']="rect(0px "+(x>0?x:0)+"px auto 0px)"; }; break; case "scrollTop": this.move=function(x){ window.scrollTo(0,x); }; break; default: this.move=function(x){ this.el.style[this.css]=x+"px"; }}; this.setTypes=function(tp1,tp2,tp3){ this.calc=easings[tp1][tp2]; this.css=tp3; }; this.setValues=function(aX,oX,dur){ this.b=aX; this.c=oX; this.d=dur; }; this.setDur=function(dur){ this.d=dur; }; this.reset=function(){ switch(this.css){ case "clipRight": case "clipLeft": case "clipBottom": this.el.style['clip']="rect(auto auto auto auto)"; break; case "scrollTop": window.scrollTo(0,this.b); break; default: this.el.style[this.css]=this.b+"px"; }}; this.setCmd=function(cmd){ this.cmd=cmd; }; this.setCall=function(call){ this.call=call; }; this.setOff=function(off){ this.off=off; }; this.getSecs=function(){ return new Date().getTime(); }; this.go=function(rev){ this.rev=rev; if(this.to)clearTimeout(this.to); if(this.tp2!="InOut")this.setTypes(this.tp1,this.tp2.match(/In/)?(this.rev?"Out":"In"):(this.rev?"In":"Out"),this.css); this.startT=this.getSecs()-this.off; this.maxX=this.rev?this.b:this.b+this.c; if(this.call){ this.call.slider.startT=this.startT; this.call.slider.rev=rev; this.call.slider.setDur(this.d); this.call.slider.maxX=this.rev?this.call.slider.b:this.call.slider.b+this.call.slider.c; }; this.ease(); }; this.ease=function(callee){ if(callee)this.nt=callee; else{ this.nt=(this.getSecs()-this.startT)/10; if(!this.nt)this.nt=0.1; if(this.rev)this.nt=this.d-this.nt; }; this.tmpX=this.calc(this.nt,this.b,this.c,this.d); if(this.nt>0 && this.nt<this.d &&!bw.noscroll){ if(!callee)this.to=setTimeout("get('"+this.el.id+"').slider.ease()"+(this.call?("; get('"+this.call.id+"').slider.ease("+this.nt+")"):""),10); }else{ clearTimeout(this.to); this.startT=0; this.tmpX=this.maxX; this.to=this.cmd?setTimeout(this.cmd,10):0; }; this.move(this.tmpX); }}; function setCookie(name,value,expires,path,domain,secure){ var curCookie=name+"="+escape(value)+(expires?"; expires="+expires:"")+(path?"; path="+path:"")+(domain?"; domain="+domain:"")+(secure?"; secure":""); document.cookie=curCookie;}; function getCookie(name){ var dc=document.cookie; var prefix=name+"="; var begin=dc.indexOf("; "+prefix); if(begin==-1){ begin=dc.indexOf(prefix); if(begin!=0)return null; }else begin+=2; var end=document.cookie.indexOf(";",begin); if(end==-1)end=dc.length; return unescape(dc.substring(begin+prefix.length,end)); }; function deleteCookie(name,path,domain){ if(getCookie(name)){ document.cookie=name+"="+(path?"; path="+path:"")+(domain?"; domain="+domain:"")+"; expires=Thu,01-Jan-70 00:00:01 GMT"; }} //easing equations copyright www.robertpenner.com

