function EXscrollStart() { EXscrollgetcontent(); EXSCROLL_outerdiv=document.getElementById('EXSCROLL_outer'); EXSCROLL_outerdiv.style.height            = EXSCROLL_height+'px'; EXSCROLL_outerdiv.style.width             = EXSCROLL_width+'px'; EXSCROLL_outerdiv.style.border            = EXSCROLL_bordercolor+' '+EXSCROLL_borderstyle+' '+EXSCROLL_borderwidth+'px'; EXSCROLL_outerdiv.style.clip              = 'rect(0 '+EXSCROLL_innerwidth+' '+EXSCROLL_innerheight+' 0)'; EXSCROLL_outerdiv.style.backgroundColor   = EXSCROLL_bgcolor; EXSCROLL_style = 'position:relative; overflow: hidden;height:'+(EXSCROLL_height-2*EXSCROLL_borderwidth)+'px; width: '+(EXSCROLL_width-2*EXSCROLL_borderwidth)+'px; border-color: '+EXSCROLL_bgcolor+'; border-style: solid; border-width: '+EXSCROLL_bordergap+'px; background-color:'+EXSCROLL_bgcolor+'; ' + 'color: '+EXSCROLL_textcolor+';'+ 'font-size: '+EXSCROLL_fontsize+'px; '+ 'font-family: '+EXSCROLL_fontfamily+'; '+ 'font-style: '+EXSCROLL_fontstyle+'; '+ 'font-weight: '+EXSCROLL_fontweight+'; '; EXSCROLL_outerdiv.innerHTML='<div style="'+EXSCROLL_style+'"><div id="EXSCROLL_area" style="position:relative; overflow: hidden; width:'+EXSCROLL_innerwidth+'px;text-align: '+EXSCROLL_alignment+'; border: 0px; margin: 0px; padding: 0px;"></div></div>'; EXSCROLL_div=document.getElementById('EXSCROLL_area'); EXSCROLL_div.style.top=EXSCROLL_innerheight+'px'; EXSCROLL_div.innerHTML=EXSCROLL_message; EXSCROLL_vsize=EXSCROLL_div.offsetHeight; adjustVsize(); EXSCROLL_div.innerHTML=EXSCROLL_message + EXSCROLL_filler + EXSCROLL_message; EXscroll(); } function adjustVsize() { var tempheight = 0; while (tempheight<EXSCROLL_vsize) { tempheight = tempheight + EXSCROLL_innerheight; } if ( (tempheight-EXSCROLL_vsize-2)<1 ) { EXSCROLL_filler = ""; } else { EXSCROLL_filler = '<div style="border: 0px; margin: 0px; padding: 0px; background-color: '+EXSCROLL_bgcolor+'; height: '+(tempheight-EXSCROLL_vsize-2)+'px;"> </div>'; } EXSCROLL_vsize = tempheight; } function EXscroll() { if (EXSCROLL_sspeed > 0) { EXSCROLL_pagepixelcount++; if (EXSCROLL_pagepixelcount > EXSCROLL_innerheight) { EXSCROLL_pagepixelcount = 0; if (EXSCROLL_pagepause>0) { setTimeout("EXscroll()",EXSCROLL_pagepause); } else { EXscroll(); } } else { if(parseInt(EXSCROLL_div.style.top)>=EXSCROLL_vsize*(-1)) { EXSCROLL_div.style.top=parseInt(EXSCROLL_div.style.top)-EXSCROLL_sspeed+'px'; setTimeout("EXscroll()",EXSCROLL_speed)+'px'; } else { EXSCROLL_div.style.top=-2+'px'; EXscroll(); } } } else { setTimeout("EXscroll()",10); }        } function EXscrollgetcontent() { try { document.getElementById('EXSCROLL_content').style.visibility="hidden"; document.getElementById('EXSCROLL_content').style.height="1px"; document.getElementById('EXSCROLL_content').style.width="1px"; document.getElementById('EXSCROLL_content').style.overflow="hidden"; EXSCROLL_message = document.getElementById('EXSCROLL_content').innerHTML; } catch (ex) { EXSCROLL_message = "Error <br> Unable to load content<br><br>Ensure Content DIV tag is placed before the SCRIPT tags."; } } function EXscrollConfig() { EXSCROLL_width=150; EXSCROLL_height=200; EXSCROLL_bgcolor="#FFDDDD"; EXSCROLL_bordercolor="#FF0000"; EXSCROLL_speed=10; EXSCROLL_pagepause = 1000; EXSCROLL_borderwidth = 1; EXSCROLL_borderstyle = "dashed";  EXSCROLL_bordergap = 2; EXSCROLL_alignment = "left";  EXSCROLL_textcolor = "#000000"; EXSCROLL_fontsize = 12; EXSCROLL_fontfamily = "Arial, sans-serif"; EXSCROLL_fontstyle = "normal";  EXSCROLL_fontweight = "normal";  EXSCROLL_width       = EXscrollGetIntParam('EXSCROLL_width','150');  EXSCROLL_height      = EXscrollGetIntParam('EXSCROLL_height','200'); EXSCROLL_bgcolor     = EXscrollGetParam('EXSCROLL_bgcolor','#FFFFFF');  EXSCROLL_bordercolor = EXscrollGetParam('EXSCROLL_bordercolor','#444444'); EXSCROLL_speed       = EXscrollGetIntParam('EXSCROLL_speed','10'); EXSCROLL_borderwidth = EXscrollGetIntParam('EXSCROLL_borderwidth','1'); EXSCROLL_borderstyle = EXscrollGetParam('EXSCROLL_borderstyle','solid');  EXSCROLL_bordergap   = EXscrollGetIntParam('EXSCROLL_bordergap','2'); EXSCROLL_alignment   = EXscrollGetParam('EXSCROLL_alignment','left');  EXSCROLL_pagepause   = 1000 * EXscrollGetIntParam('EXSCROLL_pagepause','0');  EXSCROLL_textcolor   = EXscrollGetParam('EXSCROLL_textcolor','#000000');  EXSCROLL_fontsize    = EXscrollGetIntParam('EXSCROLL_fontsize','12'); EXSCROLL_fontfamily  = EXscrollGetParam('EXSCROLL_fontfamily','Arial, sans-serif'); EXSCROLL_fontstyle   = EXscrollGetParam('EXSCROLL_fontstyle','normal');  EXSCROLL_fontweight  = EXscrollGetParam('EXSCROLL_fontweight','normal');  if (EXSCROLL_width<1)       {EXSCROLL_width=150;} if (EXSCROLL_height<1)      {EXSCROLL_height=200;} if (EXSCROLL_speed<10)      {EXSCROLL_speed=10;} if (EXSCROLL_pagepause<0)   {EXSCROLL_pagepause=0;} if (EXSCROLL_borderwidth<0) {EXSCROLL_borderwidth=0;} if (EXSCROLL_bordergap<0)   {EXSCROLL_bordergap=0;} if (EXSCROLL_fontsize<6)    {EXSCROLL_fontsize=12;} EXSCROLL_borderstyle = EXSCROLL_borderstyle.toLowerCase(); EXSCROLL_alignment   = EXSCROLL_alignment.toLowerCase(); EXSCROLL_fontstyle   = EXSCROLL_fontstyle.toLowerCase(); EXSCROLL_fontweight  = EXSCROLL_fontweight.toLowerCase(); EXSCROLL_innerwidth  = EXSCROLL_width - 2*EXSCROLL_borderwidth - 2*EXSCROLL_bordergap; EXSCROLL_innerheight = EXSCROLL_height - 2*EXSCROLL_borderwidth - 2*EXSCROLL_bordergap; } function EXscrolltrim(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 EXscrollGetParam(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 = EXscrolltrim(paramvalue); return paramvalue; } function EXscrollGetIntParam(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 EXSCROLL_sspeed=1; var EXSCROLL_restart=EXSCROLL_sspeed; var EXSCROLL_innerwidth  = EXSCROLL_width - 2*EXSCROLL_borderwidth - 2*EXSCROLL_bordergap; var EXSCROLL_innerheight = EXSCROLL_height - 2*EXSCROLL_borderwidth - 2*EXSCROLL_bordergap; var EXSCROLL_message='no content'; var EXSCROLL_width=1; var EXSCROLL_height=2; var EXSCROLL_bgcolor="#FFDDDD"; var EXSCROLL_bordercolor="#FF0000"; var EXSCROLL_speed=10; var EXSCROLL_borderwidth = 1; var EXSCROLL_borderstyle = "dashed";  var EXSCROLL_bordergap = 2; var EXSCROLL_alignment = "left";  var EXSCROLL_pagepause = 1000;  var EXSCROLL_pagepixelcount = 0; var EXSCROLL_textcolor = "#000000"; var EXSCROLL_fontsize = 12; var EXSCROLL_fontfamily = "Arial, sans-serif"; var EXSCROLL_fontstyle = "normal";  var EXSCROLL_fontweight = "normal";  var EXSCROLL_filler = ""; EXscrollConfig(); EXscrollStart();

