function Scroller(scrollDiv){this.containerDiv=document.getElementById(scrollDiv);this.siblingContainer=null;this.curLeaderPos=0;this.curFollowerPos=0;this.delayTime=10;this.xInterval=1;this.startPoint=0;this.curLeader=null;this.curFollower=null;this.paused=false;this.moveDiv=function(){if(!this.paused){this.curLeaderPos-=this.xInterval;this.curFollowerPos-=this.xInterval;this.curLeader.style.top=(this.curLeaderPos);this.curFollower.style.top=(this.curFollowerPos);if(Math.abs(this.curLeaderPos)>=this.curLeader.clientHeight){this.curLeader.style.top=this.curFollowerPos+this.curLeader.clientHeight;this.curLeaderPos=this.curFollowerPos;this.curFollowerPos=this.curFollowerPos+this.curLeader.clientHeight;var temp=this.curLeader;this.curLeader=this.curFollower;this.curFollower=temp;}}var thisObj=this;window.setTimeout(function(){thisObj.moveDiv()},100);};this.beginScroll=function(startPos,delay,xInterval){this.startPoint=startPos;this.curLeaderPos=startPos;this.curLeader=this.containerDiv;var thisObj=this;window.setTimeout(function(){thisObj.buildSiblingAndStart()},2000);};this.buildSiblingAndStart=function(){if(this.containerDiv.clientHeight==0){var thisObj=this;window.setTimeout(function(){thisObj.buildSiblingAndStart()},100);return;}this.containerDiv.controller=this;this.containerDiv.onmouseover=this.mouseOverHandler;this.containerDiv.onmouseout=this.mouseOutHandler;var containerParent=this.containerDiv.parentNode;var lowerDiv=document.createElement('div');lowerDiv.controller=this;lowerDiv.onmouseover=this.mouseOverHandler;lowerDiv.onmouseout=this.mouseOutHandler;lowerDiv.className=this.containerDiv.className;lowerDiv.id="sisterContainer";lowerDiv.style.top=this.containerDiv.clientHeight+this.startPoint;this.curFollowerPos=this.containerDiv.clientHeight+this.startPoint;containerParent.appendChild(lowerDiv);lowerDiv.innerHTML=this.containerDiv.innerHTML;this.siblingContainer=lowerDiv;this.curFollower=this.siblingContainer;this.moveDiv();};function ns_findController(start){var curNode=start;while(curNode){var parent=curNode.parentNode;if(parent&&parent.controller)return parent.controller;curNode=parent;}return null;}this.mouseOverHandler=function(evt){var event=(evt)?evt:window.event;var source=(event.target)?event.target:event.srcElement;var thisObj=ns_findController(source);if(thisObj)thisObj.paused=true;};this.mouseOutHandler=function(evt){var event=(evt)?evt:window.event;var source=(event.target)?event.target:event.srcElement;var thisObj=ns_findController(source);if(thisObj)thisObj.paused=false;}}