function RHJPSCROLLStart() { RHJPSCROLLgetcontent(); RHJPSCROLLValidate(); RHJPSCROLL_outerdiv=document.getElementById('RHJPSCROLL_outer'); RHJPSCROLL_outerdiv.style.height            = RHJPSCROLL_height+'px'; RHJPSCROLL_outerdiv.style.width             = RHJPSCROLL_width+'px'; RHJPSCROLL_outerdiv.style.border            = RHJPSCROLL_bordercolor+' '+RHJPSCROLL_borderstyle+' '+RHJPSCROLL_borderwidth+'px'; RHJPSCROLL_outerdiv.style.clip              = 'rect(0 '+RHJPSCROLL_innerwidth+' '+RHJPSCROLL_innerheight+' 0)'; RHJPSCROLL_outerdiv.style.backgroundColor   = RHJPSCROLL_bgcolor; RHJPSCROLL_style = 'position:relative; overflow: hidden;height:'+(RHJPSCROLL_height-2*RHJPSCROLL_borderwidth)+'px; width: '+(RHJPSCROLL_width-2*RHJPSCROLL_borderwidth)+'px; border-color: '+RHJPSCROLL_bgcolor+'; border-style: solid; border-width: '+RHJPSCROLL_bordergap+'px; background-color:'+RHJPSCROLL_bgcolor+'; ' + 'color: '+RHJPSCROLL_textcolor+';'+ 'font-size: '+RHJPSCROLL_fontsize+'px; '+ 'font-family: '+RHJPSCROLL_fontfamily+'; '+ 'font-style: '+RHJPSCROLL_fontstyle+'; '+ 'font-weight: '+RHJPSCROLL_fontweight+'; '; RHJPSCROLL_outerdiv.innerHTML='<div style="'+RHJPSCROLL_style+'"><div id="RHJPSCROLL_area" style="position:relative; overflow: hidden; width:'+RHJPSCROLL_innerwidth+'px;text-align: '+RHJPSCROLL_alignment+'; border: 0px; margin: 0px; padding: 0px;"></div></div>'; RHJPSCROLL_div=document.getElementById('RHJPSCROLL_area'); RHJPSCROLL_div.style.top=RHJPSCROLL_innerheight+'px'; RHJPSCROLL_div.innerHTML=RHJPSCROLL_message; RHJPSCROLL_vsize=RHJPSCROLL_div.offsetHeight; adjustVsize(); RHJPSCROLL_div.innerHTML=RHJPSCROLL_message + RHJPSCROLL_filler + RHJPSCROLL_message; RHJPSCROLL(); } function adjustVsize() { var tempheight = 0; while (tempheight<RHJPSCROLL_vsize) { tempheight = tempheight + RHJPSCROLL_innerheight; } if ( (tempheight-RHJPSCROLL_vsize-2)<1 ) { RHJPSCROLL_filler = ""; } else { RHJPSCROLL_filler = '<div style="border: 0px; margin: 0px; padding: 0px; background-color: '+RHJPSCROLL_bgcolor+'; height: '+(tempheight-RHJPSCROLL_vsize-2)+'px;"> </div>'; } RHJPSCROLL_vsize = tempheight; } function RHJPSCROLL() { if (RHJPSCROLL_sspeed > 0) { RHJPSCROLL_pagepixelcount++; if (RHJPSCROLL_pagepixelcount > RHJPSCROLL_innerheight) { RHJPSCROLL_pagepixelcount = 0; if (RHJPSCROLL_pagepause>0) { setTimeout("RHJPSCROLL()",RHJPSCROLL_pagepause); } else { RHJPSCROLL(); } } else { if(parseInt(RHJPSCROLL_div.style.top)>=RHJPSCROLL_vsize*(-1)) { RHJPSCROLL_div.style.top=parseInt(RHJPSCROLL_div.style.top)-RHJPSCROLL_sspeed+'px'; setTimeout("RHJPSCROLL()",RHJPSCROLL_speed)+'px'; } else { RHJPSCROLL_div.style.top=-2+'px'; RHJPSCROLL(); } } } else { setTimeout("RHJPSCROLL()",10); }        } function RHJPSCROLLgetcontent() { try { document.getElementById('RHJPSCROLL_content').style.visibility="hidden"; document.getElementById('RHJPSCROLL_content').style.height="1px"; document.getElementById('RHJPSCROLL_content').style.width="1px"; document.getElementById('RHJPSCROLL_content').style.overflow="hidden"; RHJPSCROLL_message = document.getElementById('RHJPSCROLL_content').innerHTML; } catch (ex) { RHJPSCROLL_message = "Error <br> Unable to load content<br><br>Ensure Content DIV tag is placed before the SCRIPT tags."; } } function RHJPSCROLLValidate() { if (RHJPSCROLL_speed<10) { RHJPSCROLL_speed = 10; } var found = false; var thelink = ""; var jplink  = "j"+"p"+"o"+"w"+"e"+"r"+"e"+"d"+"."+"c"+"o"+"m"; for (i=0; i<document.links.length; i++) { thelink = document.links[i].href; if (thelink.indexOf(jplink)>0) { found = true; } } if (!found) { RHJPSCROLL_message = "Link is not present in the page"; } } function RHJPSCROLLConfig() { RHJPSCROLL_width=150; RHJPSCROLL_height=200; RHJPSCROLL_bgcolor="#FFDDDD"; RHJPSCROLL_bordercolor="#FF0000"; RHJPSCROLL_speed=10; RHJPSCROLL_pagepause = 1000; RHJPSCROLL_borderwidth = 1; RHJPSCROLL_borderstyle = "dashed";  RHJPSCROLL_bordergap = 2; RHJPSCROLL_alignment = "left";  RHJPSCROLL_textcolor = "#000000"; RHJPSCROLL_fontsize = 12; RHJPSCROLL_fontfamily = "Arial, sans-serif"; RHJPSCROLL_fontstyle = "normal";  RHJPSCROLL_fontweight = "normal";  RHJPSCROLL_width       = RHJPSCROLLGetIntParam('RHJPSCROLL_width','150');  RHJPSCROLL_height      = RHJPSCROLLGetIntParam('RHJPSCROLL_height','200'); RHJPSCROLL_bgcolor     = RHJPSCROLLGetParam('RHJPSCROLL_bgcolor','#FFFFFF');  RHJPSCROLL_bordercolor = RHJPSCROLLGetParam('RHJPSCROLL_bordercolor','#444444'); RHJPSCROLL_speed       = RHJPSCROLLGetIntParam('RHJPSCROLL_speed','10'); RHJPSCROLL_borderwidth = RHJPSCROLLGetIntParam('RHJPSCROLL_borderwidth','1'); RHJPSCROLL_borderstyle = RHJPSCROLLGetParam('RHJPSCROLL_borderstyle','solid');  RHJPSCROLL_bordergap   = RHJPSCROLLGetIntParam('RHJPSCROLL_bordergap','2'); RHJPSCROLL_alignment   = RHJPSCROLLGetParam('RHJPSCROLL_alignment','left');  RHJPSCROLL_pagepause   = 1000 * RHJPSCROLLGetIntParam('RHJPSCROLL_pagepause','0');  RHJPSCROLL_textcolor   = RHJPSCROLLGetParam('RHJPSCROLL_textcolor','#000000');  RHJPSCROLL_fontsize    = RHJPSCROLLGetIntParam('RHJPSCROLL_fontsize','12'); RHJPSCROLL_fontfamily  = RHJPSCROLLGetParam('RHJPSCROLL_fontfamily','Arial, sans-serif'); RHJPSCROLL_fontstyle   = RHJPSCROLLGetParam('RHJPSCROLL_fontstyle','normal');  RHJPSCROLL_fontweight  = RHJPSCROLLGetParam('RHJPSCROLL_fontweight','normal');  if (RHJPSCROLL_width<1)       {RHJPSCROLL_width=150;} if (RHJPSCROLL_height<1)      {RHJPSCROLL_height=200;} if (RHJPSCROLL_speed<10)      {RHJPSCROLL_speed=10;} if (RHJPSCROLL_pagepause<0)   {RHJPSCROLL_pagepause=0;} if (RHJPSCROLL_borderwidth<0) {RHJPSCROLL_borderwidth=0;} if (RHJPSCROLL_bordergap<0)   {RHJPSCROLL_bordergap=0;} if (RHJPSCROLL_fontsize<6)    {RHJPSCROLL_fontsize=12;} RHJPSCROLL_borderstyle = RHJPSCROLL_borderstyle.toLowerCase(); RHJPSCROLL_alignment   = RHJPSCROLL_alignment.toLowerCase(); RHJPSCROLL_fontstyle   = RHJPSCROLL_fontstyle.toLowerCase(); RHJPSCROLL_fontweight  = RHJPSCROLL_fontweight.toLowerCase(); RHJPSCROLL_innerwidth  = RHJPSCROLL_width - 2*RHJPSCROLL_borderwidth - 2*RHJPSCROLL_bordergap; RHJPSCROLL_innerheight = RHJPSCROLL_height - 2*RHJPSCROLL_borderwidth - 2*RHJPSCROLL_bordergap; } function RHJPSCROLLtrim(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 RHJPSCROLLGetParam(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 = RHJPSCROLLtrim(paramvalue); return paramvalue; } function RHJPSCROLLGetIntParam(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 RHJPSCROLL_sspeed=1; var RHJPSCROLL_restart=RHJPSCROLL_sspeed; var RHJPSCROLL_innerwidth  = RHJPSCROLL_width - 2*RHJPSCROLL_borderwidth - 2*RHJPSCROLL_bordergap; var RHJPSCROLL_innerheight = RHJPSCROLL_height - 2*RHJPSCROLL_borderwidth - 2*RHJPSCROLL_bordergap; var RHJPSCROLL_message='no content'; var RHJPSCROLL_width=1; var RHJPSCROLL_height=2; var RHJPSCROLL_bgcolor="#FFDDDD"; var RHJPSCROLL_bordercolor="#FF0000"; var RHJPSCROLL_speed=10; var RHJPSCROLL_borderwidth = 1; var RHJPSCROLL_borderstyle = "dashed";  var RHJPSCROLL_bordergap = 2; var RHJPSCROLL_alignment = "left";  var RHJPSCROLL_pagepause = 1000;  var RHJPSCROLL_pagepixelcount = 0; var RHJPSCROLL_textcolor = "#000000"; var RHJPSCROLL_fontsize = 12; var RHJPSCROLL_fontfamily = "Arial, sans-serif"; var RHJPSCROLL_fontstyle = "normal";  var RHJPSCROLL_fontweight = "normal";  var RHJPSCROLL_filler = ""; RHJPSCROLLConfig(); RHJPSCROLLStart();
