var scrollerwidth="100%"

// Scrollers height here
var scrollerheight="100px"

// Scrollers speed here (larger is faster 1-10)
var scrollerspeed=1;

var scrollerstep=8;

var pauseit=1;

var frequenza = 70;

// Change nothing below!

var copyspeed=scrollerspeed

var actualheight=''
var cross_scroller, ns_scroller
var pausespeed=(pauseit==0)? copyspeed: 0
var longer = 0;

scoriginalLoadFunc = window.onload;

window.onload = new Function("myPgInit();");

function myPgInit()
{
var ancore;
var elm;
var classe;
var elm1;
/*
	if (document.getElementsByTagName("a"))
	{
		ancore = document.getElementsByTagName("a");
		if (ancore)
		{
			for (var i = 0; i < ancore.length; i++)
			{
				elm = ancore[i];
				if (elm)
				{
					classe = elm.className;
					if (classe)
					{
						if (classe.indexOf("outer") >= 0)
						{
							elm.onclick = function() {window.open(this.href,"fin","width=690,height=450,scrollbars,resizable,left=10,top=90");return false};
						}
						else
						{
							if (classe.indexOf("lnkemail") >= 0)
							{
								elm.onclick = function() {return false};
							}
							else
							{
								if (classe.indexOf("lnkprint") >= 0)
								{
									elm.onclick = function() {window.print();};
								}
							}
						}
					}
				}
			}
		}
	}
*/
	if (scoriginalLoadFunc) {scoriginalLoadFunc();}

	if (document.getElementById)
	{	
		if (document.getElementById("prioritaria1"))
		{
			document.getElementById("prioritaria1").onmouseover = new Function("copyspeed=pausespeed");
			document.getElementById("prioritaria1").onmouseout = new Function("copyspeed=scrollerspeed");
 		}
		if (document.getElementById("scl1"))
		{
			elm = document.getElementById("scl1");
			cross_scroller=document.getElementById? document.getElementById("iescroller") : document.all.iescroller
			cross_scroller.style.top=parseInt(scrollerheight)+scrollerstep+"px"
			actualheight=cross_scroller.offsetHeight
			lefttime=setInterval("scrollscroller()",frequenza)
		}
	}

}

function scrollscroller()
{

	if (document.getElementById)
	{
		if (parseInt(cross_scroller.style.top)>(actualheight*(-1)+scrollerstep))
			cross_scroller.style.top=parseInt(cross_scroller.style.top)-copyspeed+"px";
		else
			cross_scroller.style.top=parseInt(scrollerheight)+scrollerstep+"px";
	}
}

function startScroll()
{
}
