function RadRotator(O,o,ScrollDirection){var I=window[O]; if (I && typeof(I.Dispose)=="fu\x6e\x63\x74ion"){I.Dispose(); } this.ClientID=O; this.SmoothScrollDelay=10; this.A=document.getElementById(O+"_D\x69\x76"); this.U=document.getElementById(O+"\x5fFrameCo\x6e\x74ain\x65\162"); if (o){ this.o=o; }else { this.o=1; } this.U.style.top="\x30px"; this.U.style.left="0\x70\x78"; this.CurrentFrame=0; var Z=this ; this.z= function (e){Z.W(e); } ; this.w= function (e){Z.V(e); } ; this.v= function (e){Z.OnMouseOver(e); } ; this.T= function (e){Z.OnMouseOut(e); } ; this.t= function (){Z.Start(); } ; this.S(this.A,"mou\x73\x65enter",this.z); this.S(this.A,"mou\x73\x65leave",this.w); this.S(this.A,"\155ou\x73\x65over",this.v); this.S(this.A,"m\x6f\x75seout",this.T); this.S(window,"load",this.t); this.R= function (){Z.Dispose(); } ; this.S(window,"\x75nload",Z.R); } ; RadRotator.prototype.Dispose= function (){ this.r= true; try { this.Q(window,"\x75nload",this.R); this.R=null; this.P(); this.Q(this.A,"\x6d\157use\x65\x6eter",this.z); this.z=null; this.Q(this.A,"mo\x75\x73eleave",this.w); this.w=null; this.Q(this.A,"mouseover",this.v); this.v=null; this.Q(this.A,"mo\x75\x73eout",this.T); this.T=null; this.Q(window,"\x6coad",this.t); this.t=null; this.A=null; this.U=null; }catch (N){}};RadRotator.prototype.attachEvent= function (n,M){var m=this.L(M); var l= function (K,k){return m(K,k); };this[n+"Handler"]=l; } ; RadRotator.prototype.L= function (J){var l= function (K,k){} ; if (typeof(J).toString().toLowerCase()=="\x66unc\x74\x69on"){l=J; }else if (typeof(J).toString().toLowerCase()=="\x73tring"){try {l=eval(J);}catch (N){}}return l; };RadRotator.prototype.FireOnClientFrameChanging= function (K){if (this.OnClientFrameChangingHandler!=null){var l=this.OnClientFrameChangingHandler; return l(this, {} ); }};RadRotator.prototype.FireOnClientFrameChanged= function (K){ this.H(); var Z=this ; if (this.RotatorMode.toLowerCase()=="scroll"){window.clearTimeout(this.h); this.h=0; this.h=window.setTimeout( function (){Z.G();} ,this.FrameTimeout); }if (this.RotatorMode.toLowerCase()=="\163\x6cideshow"){window.clearTimeout(this.g); this.g=0; this.g=window.setTimeout( function (){Z.F();} ,this.FrameTimeout); }if (this.OnClientFrameChangedHandler!=null){var l=this.OnClientFrameChangedHandler; return l(this, {} ); }};RadRotator.prototype.f= function (max){return parseInt(((max*Math.random())%max)); } ; RadRotator.prototype.D= function (d){if (d){ this.C= true; }else { this.C= false; }} ; RadRotator.prototype.S= function (c,n,M){try {if (c.attachEvent){c.attachEvent("o\x6e"+n,M); }else {c.addEventListener(n,M, true); }}catch (N){}} ; RadRotator.prototype.Q= function (c,n,M){if (c==null || n==null || M==null)return; try {if (c.detachEvent){c.detachEvent("on"+n,M); }else {c.removeEventListener(n,M, true); }}catch (N){}} ; RadRotator.prototype.W= function (e){if (!this.AutoAdvance){return; }if (this.PauseOnMouseOver){ this.D( true); }};RadRotator.prototype.V= function (){if (!this.AutoAdvance){return; }if (this.PauseOnMouseOver){ this.D( false); }} ; RadRotator.prototype.OnMouseOver= function (){if (!this.AutoAdvance){return; }if (document.all && !window.opera){return; }if (this.PauseOnMouseOver){ this.D( true); }} ; RadRotator.prototype.OnMouseOut= function (){if (!this.AutoAdvance){return; }if (document.all && !window.opera){return; }if (this.PauseOnMouseOver){ this.D( false); }} ; RadRotator.prototype.B= function (id){var o0="\x5f_d\x6f\x50ostBac\x6b\x28\047"+this.O0+"\047,\x27"+id+"\x27)"; eval(o0); return; } ; RadRotator.prototype.StartRotator= function (){ this.l0= false; if (this.i0==0){return; } this.i0=0; this.AutoAdvance=1; if (this.RotatorMode.toLowerCase()=="\x73croll"){ this.G(); }else { this.F(); }} ; RadRotator.prototype.StopRotator= function (){if (this.RotatorMode.toLowerCase()=="\x73\x63roll"){ this.I0(); }else { this.o1(); }} ; RadRotator.prototype.o1= function (){ this.i0=1; this.AutoAdvance=0; } ; RadRotator.prototype.I0= function (){ this.i0=1; this.AutoAdvance=0; } ; RadRotator.prototype.Start= function (){if (this.r== true)return; if (this.A.offsetWidth==0){return; } this.FixHeight(); this.H(); if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="\x73croll"){ this.O1(); var Z=this ; window.clearTimeout(this.h); this.h=window.setTimeout( function (){Z.G();} ,this.FrameTimeout); }if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="\x73\x6cideshow"){var Z=this ; window.clearTimeout(this.g); if (this.UseRandomSlide){Z.F(); }else { this.g=window.setTimeout( function (){Z.F();} ,this.FrameTimeout); }}} ; RadRotator.prototype.H= function (){if (this.r== true)return; if (this.HasTickers){ this.ResetTickers(); var l1=this.FrameIdArray; var i1=I1(this.A); for (var i=0; i<this.NumberOfFrames; i++){var o2=document.getElementById(l1[i]); var O2=I1(o2); if (i1.l2(O2) || ((null!=document.readyState && "c\x6fmplete"!=document.readyState))){eval(this[o2.id+"_s"]); }}}} ; RadRotator.prototype.ResetTickers= function (){if (this.HasTickers){for (var i=0; i<this.NumberOfTickers; i++){eval(this.TickerIdArray[i]).ResetTicker(); }}} ; RadRotator.prototype.Freeze= function (){ this.l0= true; };RadRotator.prototype.FixHeight= function (){var width; var height; if (parseInt(this.A.offsetWidth)>0){width=this.A.offsetWidth; }else {width=this.A.style.width; }if (parseInt(this.A.offsetHeight)>0){height=this.A.offsetHeight; }else {height=this.A.style.height; }if (this.RotatorMode.toLowerCase()=="s\x63roll" && (this.ScrollDirection.toLowerCase()=="left" || this.ScrollDirection.toLowerCase()=="\x72ight")){ this.i2=parseInt(width)/this.o; this.I2=parseInt(height); this.U.style.width=(this.i2*this.NumberOfFrames)+"\160\x78"; }if (this.RotatorMode.toLowerCase()=="\x73croll" && (this.ScrollDirection.toLowerCase()=="\x75p" || this.ScrollDirection.toLowerCase()=="down")){ this.i2=parseInt(width); this.I2=parseInt(height)/this.o; this.U.style.height=(this.I2*this.NumberOfFrames)+"px"; }if (this.RotatorMode.toLowerCase()=="\x73lidesh\x6f\x77"){ this.i2=parseInt(width); this.I2=parseInt(height); }var l1=this.FrameIdArray; for (var i=0; i<this.NumberOfFrames; i++){var o2=document.getElementById(l1[i]); o2.style.height=this.I2+"p\x78"; o2.style.width=this.i2+"px"; }} ; RadRotator.prototype.F= function (){if (this.r== true)return; if (this.NumberOfFrames/this.o<=1){return; }if (this.AutoAdvance){ this.ShowNextFrame(); }} ; RadRotator.prototype.O1= function (){if (this.ScrollDirection.toLowerCase()=="d\x6f\x77n"){ this.U.style.top=(this.NumberOfFrames-this.o)*this.I2*(-1)+"\x70x"; }if (this.ScrollDirection.toLowerCase()=="right"){ this.U.style.left=(this.NumberOfFrames-this.o)*this.i2*(-1)+"\x70x"; } this.H(); };RadRotator.prototype.G= function (){if (this.r== true)return; if (this.NumberOfFrames/this.o<=1){return; }if (this.FireOnClientFrameChanging(this )== false){return; }if (this.AutoAdvance){ this.o3(); }} ; RadRotator.prototype.o3= function (){switch (this.ScrollDirection.toLowerCase()){case "\x75p":{ this.ScrollUpNextFrame(); break; }case "\x64own":{ this.ScrollDownNextFrame(); break; }case "left":{ this.ScrollLeftNextFrame(); break; }case "rig\x68\x74":{ this.ScrollRightNextFrame(); break; }}} ; RadRotator.prototype.ShowPrevFrame= function (){if (this.RotatorMode.toLowerCase()!="\x73\x6cideshow"){alert("\x44o not c\x61\x6cl th\x69\x73 f\x75nction\x20\x77hen\x20\x72ot\x61to\x72\040\x69s in\x20\163c\x72ollin\x67 mode\x21"); return; } this.CurrentFrame=(this.CurrentFrame-2)%this.NumberOfFrames; if (this.CurrentFrame<-1){ this.CurrentFrame=this.NumberOfFrames-2; } this.ShowNextFrame(); } ; RadRotator.prototype.ShowNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="s\x6c\x69deshow"){alert("\x44\x6f not c\x61\x6cl th\x69\x73 f\x75\x6ecti\x6f\x6e w\x68\x65n \x72\157\x74\141t\x6f\162 \x69\163 \x69n scr\x6flling\x20mode\x21"); return; }if (this.C){var Z=this ; window.clearTimeout(this.g); this.g=0; this.g=window.setTimeout( function (){Z.ShowNextFrame();} ,this.FrameTimeout); return; }if (this.FireOnClientFrameChanging(this )== false){return; }var Height; if (this.UseRandomSlide){ do {Height=this.f(this.NumberOfFrames)*this.I2*(-1); }while (Height==parseInt(this.U.style.top));}else { this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; Height=this.CurrentFrame*this.I2*(-1); }if (this.UseTransition && document.all && !window.opera){try {if (this.UseRandomEffect){ this.A.style.filter=this.TransitionStrings[this.f(17)]; }else { this.A.style.filter=this.TransitionString; } this.A.filters[0].Apply(); this.A.filters[0].Play(); }catch (e){}} this.U.style.top=Height+"\x70x"; this.FireOnClientFrameChanged(); } ; RadRotator.prototype.ScrollLeftNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="scroll"){alert("\x44o not \x63\x61ll t\x68\x69s \x66\165n\x63\x74ion\x20\167h\x65n rot\x61\164o\x72\040\x69s in \x73\154i\x64eshow\x20mode\x21"); return; }if (this.ScrollDirection.toLowerCase()=="\x75p" || this.ScrollDirection.toLowerCase()=="\x64own"){alert("Do not call \x74his funct\x69\x6fn \x77\x68en\x20\x72ot\x61\x74or\x20is in \x76\145\x72\x74ic\x61l scr\x6f\154\x6c\151n\x67 mod\x65!"); return; }if (this.l0){return; }if (this.C){var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollLeftNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.U.style.left)>this.i2*(-1)){ this.l3= true; if (!this.UseSmoothScroll){ this.U.style.left=(parseInt(this.U.style.left)-1)+"\x70x"; }else {var i3=(this.i2*(-1)-parseInt(this.U.style.left))/this.SmoothScrollDelay; this.U.style.left=(parseInt(this.U.style.left)+i3-1)+"\x70x"; }var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollLeftNextFrame();} ,this.ScrollSpeed); }else {var I3=this.U.firstChild.firstChild.firstChild; this.U.firstChild.firstChild.removeChild(this.U.firstChild.firstChild.firstChild); this.U.firstChild.firstChild.appendChild(I3); this.U.style.left="0px"; this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.l3= false; }} ; RadRotator.prototype.ScrollRightNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="\x73croll"){alert("\x44\x6f not ca\x6c\x6c th\x69\x73 f\x75\156\x63\164i\x6f\x6e w\x68en ro\x74ator \x69\x73 i\x6e slid\x65\163\x68\157w\x20mode\x21"); return; }if (this.ScrollDirection.toLowerCase()=="up" || this.ScrollDirection.toLowerCase()=="do\x77\x6e"){alert("Do\x20\x6eot cal\x6c\x20thi\x73\x20fun\x63\164i\x6f\x6e w\x68\x65n \x72otator\x20is in \x76ertic\x61\154 \x73croll\x69ng m\x6fde!"); return; }if (this.l0){return; }if (this.C){var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollRightNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.U.style.left)<this.i2*(this.NumberOfFrames-this.o-1)*(-1)){ this.l3= true; if (!this.UseSmoothScroll){ this.U.style.left=parseInt(this.U.style.left)+1+"\x70x"; }else {var i3=(((this.NumberOfFrames-this.o)*this.i2*(-1)+this.i2)-parseInt(this.U.style.left))/this.SmoothScrollDelay; this.U.style.left=parseInt(this.U.style.left)+i3+"px"; }var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollRightNextFrame();} ,this.ScrollSpeed); }else {var I3=this.U.firstChild.firstChild.lastChild; this.U.firstChild.firstChild.removeChild(this.U.firstChild.firstChild.lastChild); this.U.firstChild.firstChild.insertBefore(I3,this.U.firstChild.firstChild.firstChild); this.U.style.left=(this.NumberOfFrames-this.o)*this.i2*(-1)+"\x70x"; this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.l3= false; }} ; RadRotator.prototype.ScrollDownNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="\x73croll"){alert("Do \x6e\x6ft call\x20\x74his\x20functio\x6e\x20whe\x6e\x20ro\x74ator\x20\151\x73 in s\x6c\151d\x65show \x6dode!"); return; }if (this.ScrollDirection.toLowerCase()=="righ\x74" || this.ScrollDirection.toLowerCase()=="left"){alert("\x44o not \x63\x61ll t\x68\x69s f\x75\156c\x74\x69on\x20\x77he\x6e rotat\x6fr is i\x6e horiz\x6fntal \x73croll\x69ng mo\x64e!"); return; }if (this.l0){return; }if (this.C){var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollDownNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.U.style.top)<(this.NumberOfFrames-this.o)*this.I2*(-1)+this.I2){ this.l3= true; if (!this.UseSmoothScroll){ this.U.style.top=parseInt(this.U.style.top)+1+"\x70x"; }else {var i3=(((this.NumberOfFrames-this.o)*this.I2*(-1)+this.I2)-parseInt(this.U.style.top))/this.SmoothScrollDelay; this.U.style.top=parseInt(this.U.style.top)+i3+"px"; }var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollDownNextFrame();} ,this.ScrollSpeed); }else {var I3=this.U.lastChild; this.U.removeChild(this.U.lastChild); this.U.insertBefore(I3,this.U.firstChild); this.U.style.top=(this.NumberOfFrames-this.o)*this.I2*(-1)+"\x70x"; this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.l3= false; }} ; RadRotator.prototype.ScrollUpNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="scroll"){alert("\x44o n\x6f\x74 call\x20\x74his\x20\146\x75nction \x77\x68en\x20rotat\x6fr is i\x6e slide\x73how m\x6f\144e\x21"); return; }if (this.ScrollDirection.toLowerCase()=="\x72ight" || this.ScrollDirection.toLowerCase()=="\x6ceft"){alert("Do not cal\x6c\x20thi\x73\x20fun\x63\x74ion\x20\167h\x65\156 \x72otator\x20\151s\x20\151n\x20horiz\x6f\156t\x61l sc\x72\157l\x6cing\x20mod\x65!"); return; }if (this.l0){return; }if (this.C){var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollUpNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.U.style.top)>this.I2*(-1)){ this.l3= true; if (!this.UseSmoothScroll){ this.U.style.top=(parseInt(this.U.style.top)-1)+"\x70x"; }else {var i3=(this.I2*(-1)-parseInt(this.U.style.top))/this.SmoothScrollDelay; this.U.style.top=(parseInt(this.U.style.top)+i3-1)+"px"; }var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollUpNextFrame();} ,this.ScrollSpeed); }else {try {var I3=this.U.firstChild; this.U.removeChild(this.U.firstChild); this.U.appendChild(I3); this.U.style.top="0px"; this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.l3= false; }catch (e){alert(e); }}} ; function o4(left,top,width,height){ this.left=(null!=left?left: 0); this.top=(null!=top?top: 0); this.width=(null!=width?width: 0); this.height=(null!=height?height: 0); this.right=left+width; this.bottom=top+height; } ; o4.prototype.O4= function (){return new o4(this.left,this.top,this.width,this.height); } ; o4.prototype.l4= function (x,y){return (this.left<=x && x<=(this.left+this.width) && this.top<=y && y<=(this.top+this.height)); } ; o4.prototype.l2= function (i4){if (null==i4){return false; }if (this ==i4){return true; }return (i4.left<this.right && i4.top<this.bottom && i4.right>this.left && i4.bottom>this.top); } ; o4.prototype.I4= function (i4){if (null==i4){return false; }if (this ==i4){return this.O4(); }if (!this.l2(i4)){return new o4(); }var left=Math.max(this.left,i4.left); var top=Math.max(this.top,i4.top); var right=Math.min(this.right,i4.right); var bottom=Math.min(this.bottom,i4.bottom); return new o4(left,right,right-left,bottom-top); } ; RadRotator.prototype.P= function (){window.clearTimeout(this.h); window.clearTimeout(this.g); window.clearTimeout(this.O3); } ; function I1(c){if (!c){c=this ; }var left=0; var top=0; var width=c.offsetWidth; var height=c.offsetHeight; while (c.offsetParent){left+=c.offsetLeft; top+=c.offsetTop; c=c.offsetParent; }if (c.x){left=c.x; }if (c.y){top=c.y; }return new o4(left,top,width,height); } ;
