/*
   parametri modificabili
*/
  var velcoitaScorrimento=1;
/*
  NON MODIFICARE
*/
function stopScroll()
{
}
function startScroll()
{
}
function setParam(obj, parametro, valore, style)
{
	sty=(style)?".style":"";
	tmp="document.getElementById('"+obj+"')"+sty+"."+parametro+"=\""+valore+"\"";
	eval(tmp);
}

function getParam(obj, parametro, style)
{
	sty=(style)?".style":"";
	sty=(style)?".style":"";
	tmp="document.getElementById('"+obj+"')"+sty+"."+parametro;
	return eval(tmp);
}

setParam(scrollv_cont,"height",altezza_v,true);
setParam(scrollv_p1,"height",altezza_v,true);
setParam(scrollv_p2,"height",altezza_v,true);

stopAt=0;
valoreMin=altezza_v*-1;
valoreMax=altezza_v;
var posiz=0;
var posiz1=10000;
var containtest=0;
var dim_p1;
var dim_p2;
var temp;
var re=/\s+$|^\s+/g;


containtest++;
if (containtest == numeroRighe) { containtest=1; }
setParam(scrollv_p1,"innerHTML",voceMenuScroll[containtest],false);
containtest++;
if (containtest == numeroRighe) { containtest=1; }
setParam(scrollv_p2,"innerHTML",voceMenuScroll[containtest],false);

setParam(scrollv_p1,"left",posiz,true);
setParam(scrollv_p2,"left",posiz1,true);


function scrollOr() 
{
	if (posiz1==10000)
	{
		posiz1=getParam(scrollv_p1,"offsetWidth",false);
	}
	posiz=posiz-1;
	posiz1=posiz1-1;
	setParam(scrollv_p1,"left",posiz,true);
	setParam(scrollv_p2,"left",posiz1,true);
	
	if (posiz <= getParam(scrollv_p1,"offsetWidth",false)*-1) 
	{	
		posiz=getParam(scrollv_p1,"offsetWidth",false);
		containtest++;
		if (containtest == numeroRighe) { containtest=1; }
		setParam(scrollv_p1,"innerHTML",voceMenuScroll[containtest],false);
		
	}
	if (posiz1 <= getParam(scrollv_p1,"offsetWidth",false)*-1) 
	{
		posiz1=getParam(scrollv_p1,"offsetWidth",false);
		containtest++;
		if (containtest == numeroRighe) { containtest=1; }
		setParam(scrollv_p2,"innerHTML",voceMenuScroll[containtest],false);
	}
	
	if (posiz == stopAt || posiz1 == stopAt) 
	{
		setTimeout("scrollOr()",(velocita_v-1)*100);
	} else {
		setTimeout("scrollOr()",velcoitaScorrimento);
	}
	
	
	
}

setTimeout("scrollOr()",5000);

function reindirizza(url)
{
	window.open(url,"_self");
}