if(typeof jQuery=="undefined")jQuery=function(){};if(typeof jQuery.classBehaviours=="undefined")jQuery.classBehaviours=function(){};if(typeof jQuery.classBehaviours.handlers=="undefined")jQuery.classBehaviours.handlers=function(){};jQuery.classBehaviours.handlers.scrollList={name:"scrollList",list:null,focus:null,speed:1,idleTimer:null,start:function(a){a.onmousedown=jQuery.classBehaviours.utilities.getClassParameter(a,"scrollDirection","forward")=="backward"?this.startBackward:this.startForward;a.onmouseover=this.cancel;a.onmouseup=this.cancel;a.onmouseout=this.cancel;a.onclick=this.cancelSubmit;id=jQuery.classBehaviours.utilities.getClassParameter(a,"id","scrollList0");this.prepareList(id)},cancelSubmit:function(){return false},startBackward:function(c){var b=typeof this.nodeName=="undefined"?c:this,a=jQuery.classBehaviours.handlers.scrollList;id=a.reset(b);a.scrollBackward(id);return false},startForward:function(c){var b=typeof this.nodeName=="undefined"?c:this,a=jQuery.classBehaviours.handlers.scrollList;id=a.reset(b);a.scrollForward(id);return false},idle:function(a){jQuery.classBehaviours.handlers.scrollList.speed=1;jQuery.classBehaviours.handlers.scrollList.scrollForward(a)},prepareList:function(a){scroller=document.getElementById(a);if(scroller.className.indexOf("trippled")<0){scrollList=scroller.getElementsByTagName("UL")[0];scrollList.innerHTML+=scrollList.innerHTML+scrollList.innerHTML;var b=scrollList.offsetWidth;scrollList.style.marginLeft="-"+Math.round(b/3)+"px";scroller.className+=" trippled";jQuery.classBehaviours.handlers.scrollList.idle(a)}},reset:function(c){var b=typeof this.nodeName=="undefined"?c:this,a=jQuery.classBehaviours.handlers.scrollList;clearTimeout(a.idleTimer);clearTimeout(a.timeout);a.speed=5;id=jQuery.classBehaviours.utilities.getClassParameter(b,"id","scrollList0");return id},cancel:function(c){var b=typeof this.nodeName=="undefined"?c:this,a=jQuery.classBehaviours.handlers.scrollList;clearTimeout(a.idleTimer);clearTimeout(a.timeout);a.focus=null;id=jQuery.classBehaviours.utilities.getClassParameter(b,"id","scrollList0");a.idleTimer=setTimeout('jQuery.classBehaviours.handlers.scrollList.idle("'+id+'")',2e3)},scrollBackward:function(e){var b=jQuery.classBehaviours.handlers.scrollList,d=document.getElementById(e),g=d.offsetWidth,a=d.getElementsByTagName("UL")[0],f=a.offsetWidth,c=a.style.marginLeft?parseInt(a.style.marginLeft):0;loopPoint=0;resetPoint=-1*Math.round(f/3);if(c<loopPoint)a.style.marginLeft=c+b.speed+"px";else a.style.marginLeft=resetPoint-b.speed+"px";b.timeout=setTimeout('jQuery.classBehaviours.handlers.scrollList.scrollBackward("'+e+'")',40)},scrollForward:function(f){var b=jQuery.classBehaviours.handlers.scrollList,e=document.getElementById(f),g=e.offsetWidth,a=e.getElementsByTagName("UL")[0],d=a.offsetWidth,c=a.style.marginLeft?parseInt(a.style.marginLeft):0;loopPoint=-2*Math.round(d/3);resetPoint=-1*Math.round(d/3);if(loopPoint<c)a.style.marginLeft=c-b.speed+"px";else a.style.marginLeft=resetPoint-b.speed+"px";b.timeout=setTimeout('jQuery.classBehaviours.handlers.scrollList.scrollForward("'+f+'")',40)}};if(typeof jQuery.fn!="undefined"){jQuery.fn.scrollList=function(){return this.each(function(){jQuery.classBehaviours.handlers.scrollList.start(this)})};$(document).ready(function(){$(".scrollList").scrollList()})}