function scrollStart() { scrollgetcontent(); scrollValidate(); SCROLL_outerdiv=document.getElementById('SCROLL_outer'); SCROLL_outerdiv.style.height            = SCROLL_height+'px'; SCROLL_outerdiv.style.width             = SCROLL_width+'px'; SCROLL_outerdiv.style.border            = SCROLL_bordercolor+' '+SCROLL_borderstyle+' '+SCROLL_borderwidth+'px'; SCROLL_outerdiv.style.clip              = 'rect(0 '+SCROLL_innerwidth+' '+SCROLL_innerheight+' 0)'; SCROLL_outerdiv.style.backgroundColor   = SCROLL_bgcolor; SCROLL_style = 'position:relative; overflow: hidden;height:'+(SCROLL_height-2*SCROLL_borderwidth)+'px; width: '+(SCROLL_width-2*SCROLL_borderwidth)+'px; border-color: '+SCROLL_bgcolor+'; border-style: solid; border-width: '+SCROLL_bordergap+'px; background-color:'+SCROLL_bgcolor+'; ' + 'color: '+SCROLL_textcolor+';'+ 'font-size: '+SCROLL_fontsize+'px; '+ 'font-family: '+SCROLL_fontfamily+'; '+ 'font-style: '+SCROLL_fontstyle+'; '+ 'font-weight: '+SCROLL_fontweight+'; '; SCROLL_outerdiv.innerHTML='<div style="'+SCROLL_style+'"><div id="SCROLL_area" style="position:relative; overflow: hidden; width:'+SCROLL_innerwidth+'px;text-align: '+SCROLL_alignment+'; border: 0px; margin: 0px; padding: 0px;"></div></div>'; SCROLL_div=document.getElementById('SCROLL_area'); SCROLL_div.style.top=SCROLL_innerheight+'px'; SCROLL_div.innerHTML=SCROLL_message; SCROLL_vsize=SCROLL_div.offsetHeight; adjustVsize(); SCROLL_div.innerHTML=SCROLL_message + SCROLL_filler + SCROLL_message; scroll(); } function adjustVsize() { var tempheight = 0; while (tempheight<SCROLL_vsize) { tempheight = tempheight + SCROLL_innerheight; } if ( (tempheight-SCROLL_vsize-2)<1 ) { SCROLL_filler = ""; } else { SCROLL_filler = '<div style="border: 0px; margin: 0px; padding: 0px; background-color: '+SCROLL_bgcolor+'; height: '+(tempheight-SCROLL_vsize-2)+'px;"> </div>'; } SCROLL_vsize = tempheight; } function scroll() { if (SCROLL_sspeed > 0) { SCROLL_pagepixelcount++; if (SCROLL_pagepixelcount > SCROLL_innerheight) { SCROLL_pagepixelcount = 0; if (SCROLL_pagepause>0) { setTimeout("scroll()",SCROLL_pagepause); } else { scroll(); } } else { if(parseInt(SCROLL_div.style.top)>=SCROLL_vsize*(-1)) { SCROLL_div.style.top=parseInt(SCROLL_div.style.top)-SCROLL_sspeed+'px'; setTimeout("scroll()",SCROLL_speed)+'px'; } else { SCROLL_div.style.top=-2+'px'; scroll(); } } } else { setTimeout("scroll()",10); }        } function scrollgetcontent() { try { document.getElementById('SCROLL_content').style.visibility="hidden"; document.getElementById('SCROLL_content').style.height="1px"; document.getElementById('SCROLL_content').style.width="1px"; document.getElementById('SCROLL_content').style.overflow="hidden"; SCROLL_message = document.getElementById('SCROLL_content').innerHTML; } catch (ex) { SCROLL_message = "Error <br> Unable to load content<br><br>Ensure Content DIV tag is placed before the SCRIPT tags."; } }
function scrollValidate() { if (SCROLL_speed<10) { SCROLL_speed = 10; } var found = false; var thelink = ""; var link  = ""; for (i=0; i<document.links.length; i++) { thelink = document.links[i].href; if (thelink.indexOf(link)>0) { found = true; } } if (!found) { } } 
function scrollConfig() { SCROLL_width=150; SCROLL_height=200; SCROLL_bgcolor="#FFDDDD"; SCROLL_bordercolor="#FF0000"; SCROLL_speed=10; SCROLL_pagepause = 1000; SCROLL_borderwidth = 1; SCROLL_borderstyle = "dashed";  SCROLL_bordergap = 2; SCROLL_alignment = "left";  SCROLL_textcolor = "#000000"; SCROLL_fontsize = 12; SCROLL_fontfamily = "Arial, sans-serif"; SCROLL_fontstyle = "normal";  SCROLL_fontweight = "normal";  SCROLL_width       = scrollGetIntParam('SCROLL_width','150');  SCROLL_height      = scrollGetIntParam('SCROLL_height','200'); SCROLL_bgcolor     = scrollGetParam('SCROLL_bgcolor','#FFFFFF');  SCROLL_bordercolor = scrollGetParam('SCROLL_bordercolor','#444444'); SCROLL_speed       = scrollGetIntParam('SCROLL_speed','10'); SCROLL_borderwidth = scrollGetIntParam('SCROLL_borderwidth','1'); SCROLL_borderstyle = scrollGetParam('SCROLL_borderstyle','solid');  SCROLL_bordergap   = scrollGetIntParam('SCROLL_bordergap','2'); SCROLL_alignment   = scrollGetParam('SCROLL_alignment','left');  SCROLL_pagepause   = 1000 * scrollGetIntParam('SCROLL_pagepause','0');  SCROLL_textcolor   = scrollGetParam('SCROLL_textcolor','#000000');  SCROLL_fontsize    = scrollGetIntParam('SCROLL_fontsize','12'); SCROLL_fontfamily  = scrollGetParam('SCROLL_fontfamily','Arial, sans-serif'); SCROLL_fontstyle   = scrollGetParam('SCROLL_fontstyle','normal');  SCROLL_fontweight  = scrollGetParam('SCROLL_fontweight','normal');  if (SCROLL_width<1)       {SCROLL_width=150;} if (SCROLL_height<1)      {SCROLL_height=200;} if (SCROLL_speed<10)      {SCROLL_speed=10;} if (SCROLL_pagepause<0)   {SCROLL_pagepause=0;} if (SCROLL_borderwidth<0) {SCROLL_borderwidth=0;} if (SCROLL_bordergap<0)   {SCROLL_bordergap=0;} if (SCROLL_fontsize<6)    {SCROLL_fontsize=12;} SCROLL_borderstyle = SCROLL_borderstyle.toLowerCase(); SCROLL_alignment   = SCROLL_alignment.toLowerCase(); SCROLL_fontstyle   = SCROLL_fontstyle.toLowerCase(); SCROLL_fontweight  = SCROLL_fontweight.toLowerCase(); SCROLL_innerwidth  = SCROLL_width - 2*SCROLL_borderwidth - 2*SCROLL_bordergap; SCROLL_innerheight = SCROLL_height - 2*SCROLL_borderwidth - 2*SCROLL_bordergap; } function scrolltrim(str) { while(str.charAt(0)==" ") { str=str.substring(1,str.length); } while(str.charAt(str.length-1)==" ") { str=str.substring(0,str.length-1); } return str; } function scrollGetParam(paramname,defaultvalue) { var paramvalue = defaultvalue; if (document.getElementById(paramname)) { document.getElementById(paramname).style.visibility="hidden"; document.getElementById(paramname).style.height="1px"; document.getElementById(paramname).style.width="1px"; paramvalue = document.getElementById(paramname).innerHTML; } paramvalue = scrolltrim(paramvalue); return paramvalue; } function scrollGetIntParam(paramname,defaultvalue) { var paramvalue = defaultvalue; if (document.getElementById(paramname)) { document.getElementById(paramname).style.visibility="hidden"; document.getElementById(paramname).style.height="1px"; document.getElementById(paramname).style.width="1px"; paramvalue = document.getElementById(paramname).innerHTML; } paramvalue = parseInt(paramvalue); if (isNaN(paramvalue)) { paramvalue = parseInt(defaultvalue); } return paramvalue; } var SCROLL_sspeed=1; var SCROLL_restart=SCROLL_sspeed; var SCROLL_innerwidth  = SCROLL_width - 2*SCROLL_borderwidth - 2*SCROLL_bordergap; var SCROLL_innerheight = SCROLL_height - 2*SCROLL_borderwidth - 2*SCROLL_bordergap; var SCROLL_message='no content'; var SCROLL_width=1; var SCROLL_height=2; var SCROLL_bgcolor="#FFDDDD"; var SCROLL_bordercolor="#FF0000"; var SCROLL_speed=10; var SCROLL_borderwidth = 1; var SCROLL_borderstyle = "dashed";  var SCROLL_bordergap = 2; var SCROLL_alignment = "left";  var SCROLL_pagepause = 1000;  var SCROLL_pagepixelcount = 0; var SCROLL_textcolor = "#000000"; var SCROLL_fontsize = 12; var SCROLL_fontfamily = "Arial, sans-serif"; var SCROLL_fontstyle = "normal";  var SCROLL_fontweight = "normal";  var SCROLL_filler = ""; scrollConfig(); scrollStart();
