function JPSCROLL2Start() {JPSCROLL2getcontent();JPSCROLL2Validate();JPSCROLL2_outerdiv=document.getElementById('JPSCROLL2_outer');JPSCROLL2_outerdiv.style.height = JPSCROLL2_height+'px';JPSCROLL2_outerdiv.style.width = JPSCROLL2_width+'px';JPSCROLL2_outerdiv.style.border = JPSCROLL2_bordercolor+' '+JPSCROLL2_borderstyle+' '+JPSCROLL2_borderwidth+'px';JPSCROLL2_outerdiv.style.clip = 'rect(0 '+JPSCROLL2_innerwidth+' '+JPSCROLL2_innerheight+' 0)';JPSCROLL2_outerdiv.style.backgroundColor = JPSCROLL2_bgcolor;JPSCROLL2_style = 'position:relative; overflow: hidden;height:'+(JPSCROLL2_height-2*JPSCROLL2_borderwidth)+'px; width: '+(JPSCROLL2_width-2*JPSCROLL2_borderwidth)+'px; border-color: '+JPSCROLL2_bgcolor+'; border-style: solid; border-width: '+JPSCROLL2_bordergap+'px; background-color:'+JPSCROLL2_bgcolor+'; ' +'color: '+JPSCROLL2_textcolor+';'+'font-size: '+JPSCROLL2_fontsize+'px; '+'font-family: '+JPSCROLL2_fontfamily+'; '+'font-style: '+JPSCROLL2_fontstyle+'; '+'font-weight: '+JPSCROLL2_fontweight+'; ';JPSCROLL2_outerdiv.innerHTML='<div style="'+JPSCROLL2_style+'"><div id="JPSCROLL2_area" style="position:relative; overflow: hidden; width:'+JPSCROLL2_innerwidth+'px;text-align: '+JPSCROLL2_alignment+'; border: 0px; margin: 0px; padding: 0px;"></div></div>';JPSCROLL2_div=document.getElementById('JPSCROLL2_area');JPSCROLL2_div.style.top=JPSCROLL2_innerheight+'px';JPSCROLL2_div.innerHTML=JPSCROLL2_message;JPSCROLL2_vsize=JPSCROLL2_div.offsetHeight;adjustVsize();JPSCROLL2_div.innerHTML=JPSCROLL2_message + JPSCROLL2_filler + JPSCROLL2_message;JPSCROLL2();}function adjustVsize() {var tempheight = 0;while (tempheight<JPSCROLL2_vsize) {tempheight = tempheight + JPSCROLL2_innerheight;}if ( (tempheight-JPSCROLL2_vsize-2)<1 ) {JPSCROLL2_filler = "";}else {JPSCROLL2_filler = '<div style="border: 0px; margin: 0px; padding: 0px; background-color: '+JPSCROLL2_bgcolor+'; height: '+(tempheight-JPSCROLL2_vsize-2)+'px;"> </div>';}JPSCROLL2_vsize = tempheight;}function JPSCROLL2() {JPSCROLL2_pagepixelcount++;if (JPSCROLL2_pagepixelcount > JPSCROLL2_innerheight) {JPSCROLL2_pagepixelcount = 0;if (JPSCROLL2_pagepause>0) {setTimeout("JPSCROLL2()",JPSCROLL2_pagepause);}else {JPSCROLL2();}}else {if(parseInt(JPSCROLL2_div.style.top)>=JPSCROLL2_vsize*(-1)) {JPSCROLL2_div.style.top=parseInt(JPSCROLL2_div.style.top)-JPSCROLL2_sspeed+'px';setTimeout("JPSCROLL2()",JPSCROLL2_speed)+'px';}else {JPSCROLL2_div.style.top=-2+'px';JPSCROLL2();}}}function JPSCROLL2getcontent() {try {document.getElementById('JPSCROLL2_content').style.visibility="hidden";document.getElementById('JPSCROLL2_content').style.height="1px";document.getElementById('JPSCROLL2_content').style.width="1px";document.getElementById('JPSCROLL2_content').style.overflow="hidden";JPSCROLL2_message = document.getElementById('JPSCROLL2_content').innerHTML;}catch (ex) {JPSCROLL2_message = "Error <br> Unable to load content<br><br>Ensure Content DIV tag is placed before the SCRIPT tags.";}}function JPSCROLL2Validate() {if (JPSCROLL2_speed<10) {JPSCROLL2_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) {JPSCROLL2_message = "Link is not present in the page";}}function JPSCROLL2Config() {JPSCROLL2_width=150;JPSCROLL2_height=200;JPSCROLL2_bgcolor="#FFDDDD";JPSCROLL2_bordercolor="#FF0000";JPSCROLL2_speed=10;JPSCROLL2_pagepause = 1000;JPSCROLL2_borderwidth = 1;JPSCROLL2_borderstyle = "dashed";JPSCROLL2_bordergap = 2;JPSCROLL2_alignment = "left";JPSCROLL2_textcolor = "#000000";JPSCROLL2_fontsize = 12;JPSCROLL2_fontfamily = "Arial, sans-serif";JPSCROLL2_fontstyle = "normal";JPSCROLL2_fontweight = "normal";JPSCROLL2_width = JPSCROLL2GetIntParam('JPSCROLL2_width','150');JPSCROLL2_height = JPSCROLL2GetIntParam('JPSCROLL2_height','200');JPSCROLL2_bgcolor = JPSCROLL2GetParam('JPSCROLL2_bgcolor','#FFFFFF');JPSCROLL2_bordercolor = JPSCROLL2GetParam('JPSCROLL2_bordercolor','#444444');JPSCROLL2_speed = JPSCROLL2GetIntParam('JPSCROLL2_speed','10');JPSCROLL2_borderwidth = JPSCROLL2GetIntParam('JPSCROLL2_borderwidth','1');JPSCROLL2_borderstyle = JPSCROLL2GetParam('JPSCROLL2_borderstyle','solid');JPSCROLL2_bordergap = JPSCROLL2GetIntParam('JPSCROLL2_bordergap','2');JPSCROLL2_alignment = JPSCROLL2GetParam('JPSCROLL2_alignment','left');JPSCROLL2_pagepause = 1000 * JPSCROLL2GetIntParam('JPSCROLL2_pagepause','0');JPSCROLL2_textcolor = JPSCROLL2GetParam('JPSCROLL2_textcolor','#000000');JPSCROLL2_fontsize = JPSCROLL2GetIntParam('JPSCROLL2_fontsize','12');JPSCROLL2_fontfamily = JPSCROLL2GetParam('JPSCROLL2_fontfamily','Arial, sans-serif');JPSCROLL2_fontstyle = JPSCROLL2GetParam('JPSCROLL2_fontstyle','normal');JPSCROLL2_fontweight = JPSCROLL2GetParam('JPSCROLL2_fontweight','normal');if (JPSCROLL2_width<1) {JPSCROLL2_width=150;}if (JPSCROLL2_height<1) {JPSCROLL2_height=200;}if (JPSCROLL2_speed<10) {JPSCROLL2_speed=10;}if (JPSCROLL2_pagepause<0) {JPSCROLL2_pagepause=0;}if (JPSCROLL2_borderwidth<0) {JPSCROLL2_borderwidth=0;}if (JPSCROLL2_bordergap<0) {JPSCROLL2_bordergap=0;}if (JPSCROLL2_fontsize<6) {JPSCROLL2_fontsize=12;}JPSCROLL2_borderstyle = JPSCROLL2_borderstyle.toLowerCase();JPSCROLL2_alignment = JPSCROLL2_alignment.toLowerCase();JPSCROLL2_fontstyle = JPSCROLL2_fontstyle.toLowerCase();JPSCROLL2_fontweight = JPSCROLL2_fontweight.toLowerCase();JPSCROLL2_innerwidth = JPSCROLL2_width - 2*JPSCROLL2_borderwidth - 2*JPSCROLL2_bordergap;JPSCROLL2_innerheight = JPSCROLL2_height - 2*JPSCROLL2_borderwidth - 2*JPSCROLL2_bordergap;}function JPSCROLL2trim(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 JPSCROLL2GetParam(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 = JPSCROLL2trim(paramvalue);return paramvalue;}function JPSCROLL2GetIntParam(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 JPSCROLL2_sspeed=1;var JPSCROLL2_restart=JPSCROLL2_sspeed;var JPSCROLL2_innerwidth = JPSCROLL2_width - 2*JPSCROLL2_borderwidth - 2*JPSCROLL2_bordergap;var JPSCROLL2_innerheight = JPSCROLL2_height - 2*JPSCROLL2_borderwidth - 2*JPSCROLL2_bordergap;var JPSCROLL2_message='no content';var JPSCROLL2_width=1;var JPSCROLL2_height=2;var JPSCROLL2_bgcolor="#FFDDDD";var JPSCROLL2_bordercolor="#FF0000";var JPSCROLL2_speed=10;var JPSCROLL2_borderwidth = 1;var JPSCROLL2_borderstyle = "dashed";var JPSCROLL2_bordergap = 2;var JPSCROLL2_alignment = "left";var JPSCROLL2_pagepause = 1000;var JPSCROLL2_pagepixelcount = 0;var JPSCROLL2_textcolor = "#000000";var JPSCROLL2_fontsize = 12;var JPSCROLL2_fontfamily = "Arial, sans-serif";var JPSCROLL2_fontstyle = "normal";var JPSCROLL2_fontweight = "normal";var JPSCROLL2_filler = "";JPSCROLL2Config();JPSCROLL2Start();
