var Loop=new Class({loopCount:0,isStopped:true,isLooping:false,loopMethod:$empty,setLoop:function(B,A){if(this.isLooping){this.stopLoop();var C=true}else{var C=false}this.loopMethod=B;this.loopDelay=A||3000;if(C){this.startLoop()}return this},stopLoop:function(){this.isStopped=true;this.isLooping=false;$clear(this.periodical);return this},startLoop:function(A){if(this.isStopped){var A=(A)?A:this.loopDelay;this.isStopped=false;this.isLooping=true;this.periodical=this.looper.periodical(A,this)}return this},resetLoop:function(){this.loopCount=0;return this},looper:function(){this.loopCount++;this.loopMethod(this.loopCount);return this}});
