function UTscrollStart() {UTscrollgetcontent();UTscrollValidate();UTSCROLL_outerdiv=document.getElementById('UTSCROLL_outer');UTSCROLL_outerdiv.style.height = UTSCROLL_height;UTSCROLL_outerdiv.style.width = UTSCROLL_width;UTSCROLL_outerdiv.style.border = UTSCROLL_bordercolor+' '+UTSCROLL_borderstyle+' '+UTSCROLL_borderwidth+'px';UTSCROLL_outerdiv.style.clip = 'rect(0 '+UTSCROLL_innerwidth+' '+UTSCROLL_innerheight+' 0)';UTSCROLL_outerdiv.style.backgroundColor = UTSCROLL_bgcolor;
UTSCROLL_style = 'position:relative;overflow:hidden;height:'+(UTSCROLL_height-2*UTSCROLL_borderwidth)+'; width: '+(UTSCROLL_width-2*UTSCROLL_borderwidth)+'; border: '+UTSCROLL_bgcolor+' solid '+UTSCROLL_bordergap+'px; background-color:'+UTSCROLL_bgcolor+'; ' +
'color: '+UTSCROLL_textcolor+';'+
'font-size: '+UTSCROLL_fontsize+'px; '+
'font-family: '+UTSCROLL_fontfamily+'; '+
'font-style: '+UTSCROLL_fontstyle+'; '+
'font-weight: '+UTSCROLL_fontweight+'; ';UTSCROLL_outerdiv.innerHTML='<div style="'+UTSCROLL_style+'"> <div id="UTSCROLL_area" style="position:relative;width:'+UTSCROLL_innerwidth+';text-align: '+UTSCROLL_alignment+';"></div></div>';UTSCROLL_div=document.getElementById('UTSCROLL_area');UTSCROLL_div.style.top=UTSCROLL_height;UTSCROLL_div.innerHTML=UTSCROLL_message;UTSCROLL_vsize=UTSCROLL_div.offsetHeight;UTscroll();}

function UTscroll() 
{
	UTSCROLL_pagepixelcount++;
	if (UTSCROLL_pagepixelcount > UTSCROLL_innerheight) 
	{
		UTSCROLL_pagepixelcount = 0;
		if (UTSCROLL_pagepause>0) 
		{
			setTimeout("UTscroll()",UTSCROLL_pagepause);
		}
		else 
		{
			UTscroll();
		}
	}
	else 
	{
		if(parseInt(UTSCROLL_div.style.top)>=UTSCROLL_vsize*(-1)) 
		{
			UTSCROLL_div.style.top=parseInt(UTSCROLL_div.style.top)-UTSCROLL_sspeed;setTimeout("UTscroll()",UTSCROLL_speed);
		}
		else {UTSCROLL_div.style.top=UTSCROLL_height;UTscroll();
		}
	}
}

function UTscrollgetcontent() {try {document.getElementById('UTSCROLL_content').style.visibility="hidden";document.getElementById('UTSCROLL_content').style.height="1px";document.getElementById('UTSCROLL_content').style.width="1px";document.getElementById('UTSCROLL_content').style.overflow="hidden";UTSCROLL_message = document.getElementById('UTSCROLL_content').innerHTML;}catch (ex) {UTSCROLL_message = "Error <br> Unable to load content<br><br>Ensure Content DIV tag is placed before the SCRIPT tags.";}}

function UTscrollValidate() 
{
	if (UTSCROLL_speed<10) 
	{
		UTSCROLL_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) 
	{
		/*UTSCROLL_message = "Link is not present in the page";*/
	}
}

function UTscrollConfig() {UTSCROLL_width=150;UTSCROLL_height=200;UTSCROLL_bgcolor="#FFDDDD";UTSCROLL_bordercolor="#FF0000";UTSCROLL_speed=10;UTSCROLL_pagepause = 1000;UTSCROLL_borderwidth = 1;UTSCROLL_borderstyle = "dashed";UTSCROLL_bordergap = 2;UTSCROLL_alignment = "left";UTSCROLL_textcolor = "#000000";UTSCROLL_fontsize = 12;UTSCROLL_fontfamily = "Arial, sans-serif";UTSCROLL_fontstyle = "normal";UTSCROLL_fontweight = "normal";UTSCROLL_width = UTscrollGetIntParam('UTSCROLL_width','150');UTSCROLL_height = UTscrollGetIntParam('UTSCROLL_height','200');UTSCROLL_bgcolor = UTscrollGetParam('UTSCROLL_bgcolor','#FFFFFF');UTSCROLL_bordercolor = UTscrollGetParam('UTSCROLL_bordercolor','#444444');UTSCROLL_speed = UTscrollGetIntParam('UTSCROLL_speed','10');UTSCROLL_borderwidth = UTscrollGetIntParam('UTSCROLL_borderwidth','1');UTSCROLL_borderstyle = UTscrollGetParam('UTSCROLL_borderstyle','solid');UTSCROLL_bordergap = UTscrollGetIntParam('UTSCROLL_bordergap','2');UTSCROLL_alignment = UTscrollGetParam('UTSCROLL_alignment','left');UTSCROLL_pagepause = 1000 * UTscrollGetIntParam('UTSCROLL_pagepause','0');UTSCROLL_textcolor = UTscrollGetParam('UTSCROLL_textcolor','#000000');UTSCROLL_fontsize = UTscrollGetIntParam('UTSCROLL_fontsize','12');UTSCROLL_fontfamily = UTscrollGetParam('UTSCROLL_fontfamily','Arial, sans-serif');UTSCROLL_fontstyle = UTscrollGetParam('UTSCROLL_fontstyle','normal');UTSCROLL_fontweight = UTscrollGetParam('UTSCROLL_fontweight','normal');if (UTSCROLL_width<1) {UTSCROLL_width=150;}if (UTSCROLL_height<1) {UTSCROLL_height=200;}if (UTSCROLL_speed<10) {UTSCROLL_speed=10;}if (UTSCROLL_pagepause<0) {UTSCROLL_pagepause=0;}if (UTSCROLL_borderwidth<0) {UTSCROLL_borderwidth=0;}if (UTSCROLL_bordergap<0) {UTSCROLL_bordergap=0;}if (UTSCROLL_fontsize<6) {UTSCROLL_fontsize=12;}UTSCROLL_borderstyle = UTSCROLL_borderstyle.toLowerCase();UTSCROLL_alignment = UTSCROLL_alignment.toLowerCase();UTSCROLL_fontstyle = UTSCROLL_fontstyle.toLowerCase();UTSCROLL_fontweight = UTSCROLL_fontweight.toLowerCase();UTSCROLL_innerwidth = UTSCROLL_width - 2*UTSCROLL_borderwidth - 2*UTSCROLL_bordergap;UTSCROLL_innerheight = UTSCROLL_height - 2*UTSCROLL_borderwidth - 2*UTSCROLL_bordergap;}

function UTscrolltrim(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 UTscrollGetParam(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 = UTscrolltrim(paramvalue);return paramvalue;}

function UTscrollGetIntParam(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 UTSCROLL_sspeed=1;var UTSCROLL_restart=UTSCROLL_sspeed;var UTSCROLL_innerwidth = UTSCROLL_width - 2*UTSCROLL_borderwidth - 2*UTSCROLL_bordergap;var UTSCROLL_innerheight = UTSCROLL_height - 2*UTSCROLL_borderwidth - 2*UTSCROLL_bordergap;var UTSCROLL_message='no content';var UTSCROLL_width=1;var UTSCROLL_height=2;var UTSCROLL_bgcolor="#FFDDDD";var UTSCROLL_bordercolor="#FF0000";var UTSCROLL_speed=10;var UTSCROLL_borderwidth = 1;var UTSCROLL_borderstyle = "dashed";var UTSCROLL_bordergap = 2;var UTSCROLL_alignment = "left";var UTSCROLL_pagepause = 1000;var UTSCROLL_pagepixelcount = 0;var UTSCROLL_textcolor = "#000000";var UTSCROLL_fontsize = 12;var UTSCROLL_fontfamily = "Arial, sans-serif";var UTSCROLL_fontstyle = "normal";var UTSCROLL_fontweight = "normal";UTscrollConfig();UTscrollStart();