var $S=String.prototype;$S.iU=function(){var r=new RegExp('http(s)?://([\\w-]+\\.)+[\\w-]+(/[\\w-\\+ ./?%:&=#\\[\\]]*)?');var m=r.exec(this);return m!=null&&this==m[0];};$S.c=function(t){return this.indexOf(t)>=0;};$S.sWS=function(){return this.replace(/\s/g,'');};$S.aU=function(){if(!this.iU)throw'"'+this+'" is not a URL.';};$S.gDN=function(){this.aU();return this.substring(0,this.lastIndexOf('/')+1);};$S.gE=function(){this.aU();var f=this.gFN();return f.hE()?f.substring(f.lastIndexOf('.')):false;};$S.gFN=function(){this.aU();return this.substring(this.lastIndexOf('/')+1);};$S.gFNWE=function(){this.aU();var f=this.gFN();return f.hE()?f.substring(0,f.lastIndexOf('.')):f;};$S.hE=function(){this.aU();return this.gFN().c('.');};var DMP={openWindow:function(u,n,w,h,s){var o=window.open(u,n,'width='+w+',height='+h+',top='+Math.round((screen.height-h)/2)+',left='+Math.round((screen.width-w)/2)+',toolbar='+s+',location='+s+',menubar='+s+',scrollbars='+s);o.focus();},ButtonSource:{E:{'mouseover':'On','mouseout':'Off','mousedown':'Down','mouseup':'On'},B:new Array(),P:function(b,s){if(b==null)throw'You must specify a button.';if(s==null||s=='')throw'You must specify a suffix.';var n=b.alt.sWS()+b.className;if(this.B[n]==null)this.B[n]=new Array();if(this.B[n][s]==null){this.B[n][s]=new Image();this.B[n][s].src=b.src.gDN()+n+s+b.src.gE();}},registerButton:function(b,v,t,d,u){if(v){this.P(b,this.E['mouseover']);$(b).mouseover(this.C);}if(t){this.P(b,this.E['mouseout']);$(b).mouseout(this.C);}if(d){this.P(b,this.E['mousedown']);$(b).mousedown(this.C);}if(u){this.P(b,this.E['mouseup']);$(b).mouseup(this.C);}},C:function(e){var e=window.event&&window.event.type||e&&e.type,b=DMP.ButtonSource;this.src=b.B[this.alt.sWS()+this.className][b.E[e]].src;}},preloadImages:function(){for(i=0;i<arguments.length;i++)new Image().src=arguments[i];}};