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+"\x5fDiv"); this.U=document.getElementById(O+"_FrameC\x6f\x6etaine\x72"); if (o){ this.o=o; }else { this.o=1; } this.U.style.top="0px"; this.U.style.left="0px"; this.CurrentFrame=0; var Z=this ; this.A.RadResize=this.A.RadShow= function (){Z.FixHeight(); Z.Start(); this.style.cssText=this.style.cssText; };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,"mouseenter",this.z); this.S(this.A,"\x6douseleav\x65",this.w); this.S(this.A,"mouseo\x76\x65r",this.v); this.S(this.A,"\x6douseout",this.T); this.S(window,"\x6coad",this.t); this.R= function (){Z.Dispose(); } ; this.S(window,"unload",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,"mouse\x65\x6eter",this.z); this.z=null; this.Q(this.A,"mo\x75\x73eleave",this.w); this.w=null; this.Q(this.A,"\x6douseove\x72",this.v); this.v=null; this.Q(this.A,"\x6d\x6fuseout",this.T); this.T=null; this.Q(window,"load",this.t); this.t=null; this.A=null; this.U=null; }catch (error){}};RadRotator.prototype.attachEvent= function (N,n){var M=this.m(n); var L= function (l,K){return M(l,K); };this[N+"H\x61\156\x64\x6cer"]=L; } ; RadRotator.prototype.m= function (k){var L= function (l,K){} ; if (typeof(k).toString().toLowerCase()=="function"){L=k; }else if (typeof(k).toString().toLowerCase()=="\x73tring"){try {L=eval(k);}catch (error){}}return L; };RadRotator.prototype.FireOnClientFrameChanging= function (l){if (this.OnClientFrameChangingHandler!=null){var L=this.OnClientFrameChangingHandler; return L(this, {} ); }};RadRotator.prototype.FireOnClientFrameChanged= function (l){ this.J(); var Z=this ; if (this.RotatorMode.toLowerCase()=="\x73crol\x6c"){window.clearTimeout(this.H); this.H=0; this.H=window.setTimeout( function (){Z.h();} ,this.FrameTimeout); }if (this.RotatorMode.toLowerCase()=="\x73\x6cideshow"){window.clearTimeout(this.G); this.G=0; this.G=window.setTimeout( function (){Z.g();} ,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.f= function (D){if (D){ this.d= true; }else { this.d= false; }} ; RadRotator.prototype.S= function (C,N,n){try {if (C.attachEvent){C.attachEvent("\x6f\x6e"+N,n); }else {C.addEventListener(N,n, true); }}catch (error){}} ; RadRotator.prototype.Q= function (C,N,n){if (C==null || N==null || n==null)return; try {if (C.detachEvent){C.detachEvent("\x6fn"+N,n); }else {C.removeEventListener(N,n, true); }}catch (error){}} ; RadRotator.prototype.W= function (e){if (!this.AutoAdvance){return; }if (this.PauseOnMouseOver){ this.f( true); }};RadRotator.prototype.V= function (){if (!this.AutoAdvance){return; }if (this.PauseOnMouseOver){ this.f( false); }} ; RadRotator.prototype.OnMouseOver= function (){if (!this.AutoAdvance){return; }if (document.all && !window.opera){return; }if (this.PauseOnMouseOver){ this.f( true); }} ; RadRotator.prototype.OnMouseOut= function (){if (!this.AutoAdvance){return; }if (document.all && !window.opera){return; }if (this.PauseOnMouseOver){ this.f( false); }} ; RadRotator.prototype.c= function (id){var B="_\x5fdoPostBa\x63\x6b(\x27"+this.o0+"\x27,\047"+id+"\047\x29"; eval(B); return; } ; RadRotator.prototype.StartRotator= function (){ this.O0= false; if (this.l0==0){return; } this.l0=0; this.AutoAdvance=1; if (this.RotatorMode.toLowerCase()=="\x73croll"){ this.h(); }else { this.g(); }} ; RadRotator.prototype.StopRotator= function (){if (this.RotatorMode.toLowerCase()=="scro\x6c\x6c"){ this.i0(); }else { this.I0(); }} ; RadRotator.prototype.I0= function (){ this.l0=1; this.AutoAdvance=0; } ; RadRotator.prototype.i0= function (){ this.l0=1; this.AutoAdvance=0; } ; RadRotator.prototype.Start= function (){if (this.r== true)return; if (this.A.offsetWidth==0){return; } this.FixHeight(); this.J(); if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="\x73croll"){ this.o1(); var Z=this ; window.clearTimeout(this.H); this.H=window.setTimeout( function (){Z.h();} ,this.FrameTimeout); }if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="\x73lideshow"){var Z=this ; window.clearTimeout(this.G); if (this.UseRandomSlide){Z.g(); }else { this.G=window.setTimeout( function (){Z.g();} ,this.FrameTimeout); }}} ; RadRotator.prototype.J= function (){if (this.r== true || !this.A.parentNode)return; if (this.HasTickers){ this.ResetTickers(); var O1=this.FrameIdArray; var l1=RadRotator.i1(this.A); for (var i=0; i<this.NumberOfFrames; i++){var I1=document.getElementById(O1[i]); var o2=RadRotator.i1(I1); if (l1.O2(o2) || ((null!=document.readyState && "c\x6f\x6dplete"!=document.readyState))){eval(this[I1.id+"\x5fs"]); }}}} ; 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.O0= true; };RadRotator.prototype.FixHeight= function (){var width; var height; this.A.style.zoom="1"; 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()=="\x73cr\x6f\x6cl" && (this.ScrollDirection.toLowerCase()=="\154\x65\x66t" || this.ScrollDirection.toLowerCase()=="rig\x68\x74")){ this.l2=parseInt(width)/this.o; this.i2=parseInt(height); this.U.style.width=(this.l2*this.NumberOfFrames)+"\x70x"; }if (this.RotatorMode.toLowerCase()=="\x73croll" && (this.ScrollDirection.toLowerCase()=="\x75p" || this.ScrollDirection.toLowerCase()=="down")){ this.l2=parseInt(width); this.i2=parseInt(height)/this.o; this.U.style.height=(this.i2*this.NumberOfFrames)+"\x70x"; }if (this.RotatorMode.toLowerCase()=="slides\x68\x6fw"){ this.l2=parseInt(width); this.i2=parseInt(height); }var O1=this.FrameIdArray; for (var i=0; i<this.NumberOfFrames; i++){var I1=document.getElementById(O1[i]); I1.style.height=this.i2+"px"; I1.style.width=this.l2+"\x70x"; }} ; RadRotator.prototype.g= 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()=="dow\x6e"){ this.U.style.top=(this.NumberOfFrames-this.o)*this.i2*(-1)+"px"; }if (this.ScrollDirection.toLowerCase()=="\x72ight"){ this.U.style.left=(this.NumberOfFrames-this.o)*this.l2*(-1)+"px"; } this.J(); };RadRotator.prototype.h= function (){if (this.r== true)return; if (this.NumberOfFrames/this.o<=1){return; }if (this.FireOnClientFrameChanging(this )== false){return; }if (this.AutoAdvance){ this.I2(); }} ; RadRotator.prototype.I2= function (){switch (this.ScrollDirection.toLowerCase()){case "\x75p":{ this.ScrollUpNextFrame(); break; }case "d\x6f\x77n":{ this.ScrollDownNextFrame(); break; }case "left":{ this.ScrollLeftNextFrame(); break; }case "\x72ight":{ this.ScrollRightNextFrame(); break; }}} ; RadRotator.prototype.ShowPrevFrame= function (){if (this.RotatorMode.toLowerCase()!="s\x6c\x69deshow"){alert("\x44o not\x20\x63all t\x68\x69s \x66uncti\x6f\x6e wh\x65\156\x20rota\x74or is\x20\151n\x20scrol\x6c\151n\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()!="\x73lidesh\x6f\x77"){alert("\x44\157 n\x6f\x74 call\x20\x74hi\x73\x20fun\x63\x74ion\x20\167h\x65n rot\x61\x74or\x20\151s\x20\151\x6e\040\x73crol\x6c\151\x6eg m\x6fde!"); return; }if (this.d){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+"\x70\x78"; this.FireOnClientFrameChanged(); } ; RadRotator.prototype.ScrollLeftNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="scroll"){alert("Do not cal\x6c\x20thi\x73\x20fun\x63tion wh\x65\x6e r\x6f\164a\x74or i\x73 in sl\x69desho\x77\040\x6dode!"); return; }if (this.ScrollDirection.toLowerCase()=="up" || this.ScrollDirection.toLowerCase()=="down"){alert("Do n\x6f\x74 call\x20\x74his \x66unction\x20\x77hen\x20\162\x6f\x74a\x74\x6fr \x69\163 \x69n ver\x74\151c\x61l scr\x6fllin\x67\040\x6dod\x65!"); return; }if (this.O0){return; }if (this.d){var Z=this ; this.o3=0; this.o3=window.setTimeout( function (){Z.ScrollLeftNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.U.style.left)>this.l2*(-1)){ this.O3= true; if (!this.UseSmoothScroll){ this.U.style.left=(parseInt(this.U.style.left)-1)+"px"; }else {var l3=(this.l2*(-1)-parseInt(this.U.style.left))/this.SmoothScrollDelay; this.U.style.left=(parseInt(this.U.style.left)+l3-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="0p\x78"; this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.O3= false; }} ; RadRotator.prototype.ScrollRightNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="scroll"){alert("D\x6f\x20not ca\x6c\x6c th\x69\x73 \x66\x75nct\x69\x6fn \x77\x68\x65n rota\x74\157\x72 is i\x6e\040\x73lides\x68ow mo\x64e!"); return; }if (this.ScrollDirection.toLowerCase()=="up" || this.ScrollDirection.toLowerCase()=="\x64\x6fwn"){alert("Do not \x63\x61ll t\x68\x69s f\x75\156c\x74\x69on \x77\150e\x6e\040\x72\157t\x61\164o\x72 is i\x6e\040\x76\145r\x74ical\x20\163\x63ro\x6cling\x20mode\x21"); return; }if (this.O0){return; }if (this.d){var Z=this ; this.o3=0; this.o3=window.setTimeout( function (){Z.ScrollRightNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.U.style.left)<this.l2*(this.NumberOfFrames-this.o-1)*(-1)){ this.O3= true; if (!this.UseSmoothScroll){ this.U.style.left=parseInt(this.U.style.left)+1+"\x70\x78"; }else {var l3=(((this.NumberOfFrames-this.o)*this.l2*(-1)+this.l2)-parseInt(this.U.style.left))/this.SmoothScrollDelay; this.U.style.left=parseInt(this.U.style.left)+l3+"\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.l2*(-1)+"\x70x"; this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.O3= false; }} ; RadRotator.prototype.ScrollDownNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="sc\x72\157l\x6c"){alert("\x44o not\x20\x63all \x74\x68is \x66unctio\x6e\x20whe\x6e\040\x72otat\x6fr is \x69\x6e s\x6cidesh\x6f\167 \x6dode!"); return; }if (this.ScrollDirection.toLowerCase()=="right" || this.ScrollDirection.toLowerCase()=="left"){alert("\x44\x6f not \x63\x61ll \x74\x68is \x66\165n\x63\x74io\x6e\x20wh\x65n rota\x74\157r\x20is in\x20\150o\x72izont\x61l scr\x6fllin\x67 m\x6fde!"); return; }if (this.O0){return; }if (this.d){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.O3= true; if (!this.UseSmoothScroll){ this.U.style.top=parseInt(this.U.style.top)+1+"p\x78"; }else {var l3=(((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)+l3+"\x70x"; }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)+"px"; this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.O3= false; }} ; RadRotator.prototype.ScrollUpNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="\x73croll"){alert("D\x6f\x20not cal\x6c\x20thi\x73\x20f\x75\x6ecti\x6f\156 \x77\x68\x65n rot\x61\x74or\x20\151s\x20in sl\x69desho\x77 mode\x21"); return; }if (this.ScrollDirection.toLowerCase()=="right" || this.ScrollDirection.toLowerCase()=="\x6ceft"){alert("Do not \x63\x61ll t\x68\x69s fu\x6ection w\x68\x65n r\x6f\164a\x74or is\x20\x69n \x68orizon\x74al sc\x72ollin\x67 mode\x21"); return; }if (this.O0){return; }if (this.d){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.O3= true; if (!this.UseSmoothScroll){ this.U.style.top=(parseInt(this.U.style.top)-1)+"px"; }else {var l3=(this.i2*(-1)-parseInt(this.U.style.top))/this.SmoothScrollDelay; this.U.style.top=(parseInt(this.U.style.top)+l3-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.O3= false; }catch (e){}}} ; function I3(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; } ; I3.prototype.o4= function (){return new I3(this.left,this.top,this.width,this.height); } ; I3.prototype.O4= function (x,y){return (this.left<=x && x<=(this.left+this.width) && this.top<=y && y<=(this.top+this.height)); } ; I3.prototype.O2= function (l4){if (null==l4){return false; }if (this ==l4){return true; }return (l4.left<this.right && l4.top<this.bottom && l4.right>this.left && l4.bottom>this.top); } ; I3.prototype.i4= function (l4){if (null==l4){return false; }if (this ==l4){return this.o4(); }if (!this.O2(l4)){return new I3(); }var left=Math.max(this.left,l4.left); var top=Math.max(this.top,l4.top); var right=Math.min(this.right,l4.right); var bottom=Math.min(this.bottom,l4.bottom); return new I3(left,right,right-left,bottom-top); } ; RadRotator.prototype.P= function (){window.clearTimeout(this.H); window.clearTimeout(this.G); window.clearTimeout(this.o3); } ; RadRotator.i1= function (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 I3(left,top,width,height); } ;

