function Scroller(x,y,width,height,border,padding){this.x=x;this.y=y;this.width=width;this.height=height;this.border=border;this.padding=padding;this.items=new Array();this.created=false;this.fgColor="#000000";this.bgColor="#ffffff";this.bdColor="#000000";this.fontFace="Arial,Helvetica";this.fontSize="2";this.speed=50;this.pauseTime=2000;this.setColors=scrollerSetColors;this.setFont=scrollerSetFont;this.setSpeed=scrollerSetSpeed;this.setPause=scrollersetPause;this.addItem=scrollerAddItem;this.create=scrollerCreate;this.show=scrollerShow;this.hide=scrollerHide;this.moveTo=scrollerMoveTo;this.moveBy=scrollerMoveBy;this.getzIndex=scrollerGetzIndex;this.setzIndex=scrollerSetzIndex;this.stop=scrollerStop;this.start=scrollerStart;} function scrollerSetColors(fgcolor,bgcolor,bdcolor){if(this.created){alert("Scroller Error: Scroller has already been created.");return;} this.fgColor=fgcolor;this.bgColor=bgcolor;this.bdColor=bdcolor;} function scrollerSetFont(face,size){if(this.created){alert("Scroller Error: Scroller has already been created.");return;} this.fontFace=face;this.fontSize=size;} function scrollerSetSpeed(pps){if(this.created){alert("Scroller Error: Scroller has already been created.");return;} this.speed=pps;} function scrollersetPause(ms){if(this.created){alert("Scroller Error: Scroller has already been created.");return;} this.pauseTime=ms;} function scrollerAddItem(str){if(this.created){alert("Scroller Error: Scroller has already been created.");return;} this.items[this.items.length]=str;} function scrollerCreate(){var start,end;var str;var i,j;var x,y;if(!isMinNS4&&!ie&&!dom) return;if(scrollerList.length==0) setInterval('scrollerGo()',scrollerInterval);if(this.created){alert("Scroller Error: Scroller has already been created.");return;} this.created=true;this.items[this.items.length]=this.items[0];start='' +'
' +'';end='
';if(isMinNS4){this.baseLayer=new Layer(this.width);this.scrollLayer=new Layer(this.width,this.baseLayer);this.scrollLayer.visibility="inherit";this.itemLayers=new Array();for(i=0;i\n' +'
\n';for(j=0;j\n' +start+this.items[j]+end +'
\n';} str+='\n' +'\n';if(!(ie&&window.print)){x=getPageScrollX();y=getPageScrollY();window.scrollTo(getPageWidth(),getPageHeight());} if(ie) document.all.tempholder.innerHTML=str else if(dom) document.getElementById("tempholder").innerHTML=str if(!(ie&&window.print)) window.scrollTo(x,y);this.baseLayer=getLayer("scroller"+i+"_baseLayer");this.scrollLayer=getLayer("scroller"+i+"_scrollLayer");this.itemLayers=new Array();for(j=0;jscrollerList[i].pauseTime) scrollerList[i].paused=false;} else{scrollerList[i].currentY+=scrollerList[i].stepY;if(scrollerList[i].currentY>=scrollerList[i].nextY){scrollerList[i].paused=true;scrollerList[i].counter=0;scrollerList[i].currentY=scrollerList[i].nextY;scrollerList[i].nextY+=scrollerList[i].height;} if(scrollerList[i].currentY>=scrollerList[i].maxY){scrollerList[i].currentY-=scrollerList[i].maxY;scrollerList[i].nextY=scrollerList[i].height;} scrollLayerTo(scrollerList[i].scrollLayer,0,Math.round(scrollerList[i].currentY),false);}}} var origWidth;var origHeight;if(isMinNS4){origWidth=window.innerWidth;origHeight=window.innerHeight;} window.onresize=scrollerReload;function scrollerReload(){if(isMinNS4&&origWidth==window.innerWidth&&origHeight==window.innerHeight) return;window.location.href=window.location.href;}