function RadRotator(O,o,ScrollDirection){var I=window[O]; if (I && typeof(I.Dispose)=="f\x75\x6e\143\x74\151on"){I.Dispose(); } this.ClientID=O; this.SmoothScrollDelay=10; this.A=document.getElementById(O+"_D\x69\x76"); this.U=document.getElementById(O+"\x5f\x46rameC\x6f\156t\x61\x69ner"); if (o){ this.o=o; }else { this.o=1; } this.U.style.top="0p\x78"; this.U.style.left="0px"; 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,"mous\x65\x65nter",this.z); this.S(this.A,"\x6douseleave",this.w); this.S(this.A,"mouseover",this.v); this.S(this.A,"mouseout",this.T); this.S(window,"load",this.t); this.R= function (){Z.Dispose(); } ; this.S(window,"u\x6e\x6coad",Z.R); } ; RadRotator.prototype.Dispose= function (){ this.r= true; try { this.Q(window,"u\x6e\x6coad",this.R); this.R=null; this.P(); this.Q(this.A,"mo\x75\x73eenter",this.z); this.z=null; this.Q(this.A,"\x6douseleave",this.w); this.w=null; this.Q(this.A,"\x6douseo\x76\x65r",this.v); this.v=null; this.Q(this.A,"\x6douseout",this.T); this.T=null; this.Q(window,"\x6c\x6fad",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+"\x48andler"]=l; } ; RadRotator.prototype.L= function (J){var l= function (K,k){} ; if (typeof(J).toString().toLowerCase()=="function"){l=J; }else if (typeof(J).toString().toLowerCase()=="string"){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()=="slideshow"){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="_\x5fdoPost\x42\x61ck(\x27"+this.O0+"\047\054\047"+id+"\047\x29"; 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()=="scroll"){ this.G(); }else { this.F(); }} ; RadRotator.prototype.StopRotator= function (){if (this.RotatorMode.toLowerCase()=="\x73croll"){ 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()=="sl\x69\x64eshow"){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 && "\x63omplete"!=document.readyState))){eval(this[o2.id+"_\x73"]); }}}} ; 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()=="scroll" && (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)+"\x70x"; }if (this.RotatorMode.toLowerCase()=="scroll" && (this.ScrollDirection.toLowerCase()=="\x75\x70" || this.ScrollDirection.toLowerCase()=="d\x6f\x77n")){ this.i2=parseInt(width); this.I2=parseInt(height)/this.o; this.U.style.height=(this.I2*this.NumberOfFrames)+"\x70\170"; }if (this.RotatorMode.toLowerCase()=="\x73lideshow"){ 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+"\160\x78"; o2.style.width=this.i2+"\x70x"; }} ; 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()=="down"){ this.U.style.top=(this.NumberOfFrames-this.o)*this.I2*(-1)+"\x70x"; }if (this.ScrollDirection.toLowerCase()=="righ\x74"){ 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 "down":{ this.ScrollDownNextFrame(); break; }case "\154\x65\x66t":{ this.ScrollLeftNextFrame(); break; }case "right":{ this.ScrollRightNextFrame(); break; }}} ; RadRotator.prototype.ShowPrevFrame= function (){if (this.RotatorMode.toLowerCase()!="\163l\x69\x64eshow"){alert("Do not cal\x6c\x20thi\x73\x20fun\x63tion w\x68\x65n r\x6f\164a\x74or\x20\151s\x20\151n\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()!="slideshow"){alert("Do not cal\x6c\x20thi\x73\x20fun\x63\x74ion\x20\x77hen\x20\162o\x74ator i\x73 in sc\x72\157l\x6cing m\x6f\144e\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+"p\x78"; this.FireOnClientFrameChanged(); } ; RadRotator.prototype.ScrollLeftNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="\x73croll"){alert("\x44o not call t\x68\151s\x20\x66u\x6e\x63tio\x6e\x20wh\x65\x6e \x72otator\x20\151s\x20in sl\x69\144e\x73how m\x6fde!"); return; }if (this.ScrollDirection.toLowerCase()=="up" || this.ScrollDirection.toLowerCase()=="\144ow\x6e"){alert("\x44o not \x63\x61ll t\x68\x69s f\x75\156c\x74\x69on\x20\x77he\x6e rotat\x6fr is i\x6e\040\x76ertic\x61l scr\x6flling\x20mode\x21"); 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)+"px"; }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()!="\x73cr\x6f\x6cl"){alert("\x44o not call\x20\x74his \x66\x75nc\x74\151\x6f\x6e wh\x65\156\x20rotat\x6f\162 \x69\163 \x69n sli\x64\145s\x68ow m\x6f\144e\x21"); return; }if (this.ScrollDirection.toLowerCase()=="u\x70" || this.ScrollDirection.toLowerCase()=="dow\x6e"){alert("Do not c\x61\x6cl t\x68\x69s fu\x6e\143t\x69\157n \x77\150e\x6e\040\x72otato\x72\040i\x73 in v\x65\162t\x69cal s\x63rolli\x6eg mo\x64e!"); 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+"\x70x"; }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)+"px"; 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 not\x20\x63all t\x68\x69s f\x75nction \x77\x68en\x20\x72ot\x61tor \x69\163\x20\x69n \x73lides\x68\157w\x20mode!"); return; }if (this.ScrollDirection.toLowerCase()=="right" || this.ScrollDirection.toLowerCase()=="left"){alert("Do not call \x74his func\x74\x69on \x77\150e\x6e\x20ro\x74\141t\x6fr is i\x6e\040\x68orizo\x6e\164a\x6c scro\x6cling\x20\155o\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+"\160x"; }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)+"\x70\x78"; 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()!="\x73croll"){alert("Do not cal\x6c\x20thi\x73\x20fun\x63tion wh\x65\x6e r\x6f\x74at\x6fr is\x20\151\x6e slid\x65\163h\x6fw mod\x65\041"); return; }if (this.ScrollDirection.toLowerCase()=="\162ig\x68\x74" || this.ScrollDirection.toLowerCase()=="\x6ceft"){alert("Do\x20\x6eot cal\x6c\x20this\x20\146u\x6e\x63tio\x6e\x20whe\x6e\040\x72otator\x20\151s\x20\151n\x20horiz\x6fntal \x73\143\x72\157\x6cli\x6eg mo\x64\145\x21"); 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="\x30px"; 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); } ;
