Function.prototype.bind=function(A){var B=this;return function(){return B.apply(A,arguments)}};Rotator=function(A){if(!A){return }this.container=A;this.elements=$("div",A);this.nLen=this.elements.length;this.Rotate()};Rotator.prototype={nXPos:440,nYPos:60,nWidth:200,nHeight:50,fAlpha:40,nLen:0,elements:null,container:null,fDelta:0,tm:null,Rotate:function(){var G=360/this.nLen;this.fAlpha+=this.fDelta;if(this.fAlpha<0){this.fAlpha+=360}if(this.fAlpha>=360){this.fAlpha-=360}var B="";for(var E=0;E<this.nLen;E++){var C=this.elements[E];if(C){var D=this.nYPos+this.nHeight*Math.sin((this.fAlpha+E*G)*Math.PI/180);C.style.top=D+"px";C.style.left=this.nXPos+this.nWidth*Math.cos((this.fAlpha+E*G)*Math.PI/180)+"px";var A=E*G+this.fAlpha;if(A>360){A-=360}if(A>270||A<=90){if(A>270){A-=360}C.style.zIndex=parseInt((A+90)*10/G)}else{C.style.zIndex=parseInt((270-A)*10/G)}var F=((D-this.nYPos+this.nHeight)/(2*this.nHeight))*8+22;$("img",this.elements[E]).width(207*F/30);$("img",this.elements[E]).height(156*F/30)}}},Start:function(A){this.fDelta=A;this.tm=setInterval(this.Rotate.bind(this),60)},Stop:function(){this.fDelta=0;clearInterval(this.tm)}};
