function RadRotator(O,o,ScrollDirection){var I=window[O]; if (I && typeof(I.Dispose)=="\x66\x75nction"){I.Dispose(); } this.ClientID=O; this.SmoothScrollDelay=10; this.A=document.getElementById(O+"_Div"); this.U=document.getElementById(O+"\x5fFrameConta\x69\x6eer"); if (o){ this.o=o; }else { this.o=1; } this.U.style.top="0p\x78"; this.U.style.left="\x30px"; 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,"\x6douseente\x72",this.z); this.S(this.A,"mousel\x65\x61ve",this.w); this.S(this.A,"\x6douseover",this.v); this.S(this.A,"mouseou\x74",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,"unload",this.R); this.R=null; this.P(); this.Q(this.A,"\x6douseent\x65\x72",this.z); this.z=null; this.Q(this.A,"mouse\x6c\x65ave",this.w); this.w=null; this.Q(this.A,"mouseover",this.v); this.v=null; this.Q(this.A,"\155\x6f\x75seou\x74",this.T); this.T=null; this.Q(window,"\x6c\157ad",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+"Han\x64\x6cer"]=l; } ; RadRotator.prototype.L= function (J){var l= function (K,k){} ; if (typeof(J).toString().toLowerCase()=="functio\x6e"){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()=="\x73lid\x65\x73how"){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("on"+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="\137\x5fdoPost\x42\141ck\x28\x27"+this.O0+"\047\x2c\047"+id+"\x27\051"; 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()=="\x73\x63roll"){ this.G(); }else { this.F(); }} ; RadRotator.prototype.StopRotator= function (){if (this.RotatorMode.toLowerCase()=="\163c\x72\x6fll"){ 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()=="\x73crol\x6c"){ 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()=="\x73lides\x68\x6fw"){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 && "\x63omp\x6c\x65te"!=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()=="\163\x63roll" && (this.ScrollDirection.toLowerCase()=="left" || this.ScrollDirection.toLowerCase()=="\x72\x69ght")){ this.i2=parseInt(width)/this.o; this.I2=parseInt(height); this.U.style.width=(this.i2*this.NumberOfFrames)+"\x70\x78"; }if (this.RotatorMode.toLowerCase()=="\x73croll" && (this.ScrollDirection.toLowerCase()=="up" || this.ScrollDirection.toLowerCase()=="d\x6f\x77n")){ this.i2=parseInt(width); this.I2=parseInt(height)/this.o; this.U.style.height=(this.I2*this.NumberOfFrames)+"\x70x"; }if (this.RotatorMode.toLowerCase()=="\x73\x6cideshow"){ 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+"\x70x"; o2.style.width=this.i2+"\160x"; }} ; 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()=="\x64own"){ 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 "u\x70":{ this.ScrollUpNextFrame(); break; }case "\x64own":{ this.ScrollDownNextFrame(); break; }case "left":{ this.ScrollLeftNextFrame(); break; }case "\x72ight":{ this.ScrollRightNextFrame(); break; }}} ; RadRotator.prototype.ShowPrevFrame= function (){if (this.RotatorMode.toLowerCase()!="\x73lideshow"){alert("\x44o not cal\x6c\x20thi\x73\x20f\x75\156\x63\x74ion\x20\167h\x65n r\x6ftator \x69s in s\x63rolli\x6e\147 \x6dode!"); 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()!="\x73\x6cideshow"){alert("\x44o not \x63\x61ll t\x68\x69s f\x75\x6ecti\x6f\x6e w\x68\x65n \x72\157\x74\x61to\x72\040\x69s in \x73croll\x69\156\x67\040\x6dode\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\x20\x74his\x20\x66un\x63\x74ion\x20\x77he\x6e\x20r\x6ftator \x69s in s\x6cidesho\x77 mode\x21"); return; }if (this.ScrollDirection.toLowerCase()=="\x75p" || this.ScrollDirection.toLowerCase()=="\x64\157wn"){alert("\x44o not call \x74\x68is \x66\x75nc\x74\x69on \x77\x68en\x20\x72o\x74\141t\x6fr is i\x6e vert\x69\143a\x6c scro\x6cling \x6dode\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)+"p\x78"; }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="0\x70\x78"; 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()!="\x73\x63roll"){alert("Do n\x6f\x74 call\x20\x74his\x20\146\x75\x6ecti\x6f\x6e w\x68\x65\x6e\040\x72otato\x72\x20is\x20in sl\x69\144\x65\163h\x6fw mo\x64e!"); return; }if (this.ScrollDirection.toLowerCase()=="up" || this.ScrollDirection.toLowerCase()=="\x64own"){alert("Do not call\x20\x74his\x20\x66unc\x74\151o\x6e\x20whe\x6e\040r\x6ftator\x20\151s\x20in ver\x74ical \x73\143r\x6fllin\x67\040\x6dode\x21"); 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\x20\x6eot cal\x6c\x20thi\x73\040\x66uncti\x6f\x6e wh\x65\156\x20rotat\x6f\162 \x69s in s\x6cidesh\x6f\167\x20\155o\x64e!"); return; }if (this.ScrollDirection.toLowerCase()=="\x72ight" || this.ScrollDirection.toLowerCase()=="\x6ceft"){alert("\x44o not call \x74\x68is \x66\x75nct\x69\157n\x20\x77he\x6e\x20r\x6f\164a\x74\157r\x20\151s\x20in ho\x72\151\x7a\157n\x74al s\x63rol\x6cing\x20mode\x21"); 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+"p\x78"; }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 not ca\x6c\x6c thi\x73\x20f\x75\x6ecti\x6f\156\x20\167h\x65n ro\x74\141t\x6f\162 \x69s in \x73\154i\x64eshow\x20mode\x21"); return; }if (this.ScrollDirection.toLowerCase()=="\x72ight" || this.ScrollDirection.toLowerCase()=="\154eft"){alert("Do \x6e\x6ft call\x20\164h\x69\x73 fu\x6e\x63ti\x6f\x6e wh\x65\156\x20\162o\x74\141t\x6f\162 \x69s in \x68\157r\x69zont\x61\154\x20scr\x6flli\x6eg mo\x64e!"); 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); } ;
