function loadAnimation(contatore)
{
	cont = contatore + 1
	if ((cont % 2) == 0)
	{
		//effect.Fade('test_p');
		document.getElementById("test_p").style.display = "none";
	}
	if ((cont % 2) != 0)
	{
		testoCorrente = document.getElementById("test_p").innerHTML;
		if (testoCorrente == testo1)
		{
			loadText(testo2);
		}
		else
		{
			loadText(testo1);
		}
		//Effect.Appear('test_p');
		document.getElementById("test_p").style.display = "block";
	}
	setTimeout("loadAnimation(" + cont + ")", 5000);
}
function loadText(testo)
{
	document.getElementById("test_p").innerHTML = testo;
}

// cambia la foto nel bandone onmouseover
function fotoNuova(foto)
{
	document.getElementById('foto').innerHTML = '<img src="'+ foto +'" width="381" height="236" />';
}
// ristabilisici quel che c'era nel bandone onmouseout
function fotoVecchia(pos, foto, video, tipovideo, indirizzoBase, voceMenu, over)
{
	// se c'era una foto e non siamo in home page
	if (foto != "" && pos != "homepage")
	{
		document.getElementById('foto').innerHTML = '<img src="'+ foto +'" width="381" height="236" />';
	}
	// se siamo in home page
	if (pos == "homepage")
	{
		document.getElementById('foto').innerHTML = '<img src="img/homepage/img01.jpg" class="full" alt="" />';
	}
	// se c'era un video
	if (video != "")
	{
		if (tipovideo == "flash")
		{
			document.getElementById('foto').innerHTML = '<object type="application/x-shockwave-flash" data="'+ video +'" width="381" height="236" title="Sica S.p.a."><param name="movie" value="'+ video +'" /><param name="loop" value="false" /><param name="quality" value="high" /></object>';
		}
		if (tipovideo == "mov")
		{
			document.getElementById('foto').innerHTML = '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="381" height="252"><param name="src" value="'+ video +'"><param name="autoplay" value="true"><param name="type" value="video/quicktime" width="381" height="252"><embed type="video/quicktime" bgcolor="000000" showlogo="false" autoplay="true" width="381" height="236" scale="tofit" src="'+ video +'"></embed></object>';
		}
	}
	if (over == true)
	{
		document.getElementById("menu_" + voceMenu + "_sx").style.background = "url('" + indirizzoBase + "img/bg_noncorrente_sx_over.jpg') no-repeat";
		document.getElementById("menu_" + voceMenu).style.background = "url('" + indirizzoBase + "img/bg_noncorrente_centro_over.jpg') repeat-x;";
		document.getElementById("menu_" + voceMenu + "_dx").style.background = "url('" + indirizzoBase + "img/bg_noncorrente_dx_over.jpg') no-repeat";
	}
	if (over == false)
	{
		document.getElementById("menu_" + voceMenu + "_sx").style.background = "url('" + indirizzoBase + "img/bg_noncorrente_sx.jpg') no-repeat";
		document.getElementById("menu_" + voceMenu).style.background = "url('" + indirizzoBase + "img/bg_noncorrente_centro.jpg') repeat-x";
		document.getElementById("menu_" + voceMenu + "_dx").style.background = "url('" + indirizzoBase + "img/bg_noncorrente_dx.jpg') no-repeat";
	}
}
















/*
// rollover sul menu
function rolloverMenu(indirizzoBase, voceMenu, over)
{
	if (over == true)
	{
		document.getElementById("menu_" + voceMenu + "_sx").style.background = "url('" + indirizzoBase + "img/bg_noncorrente_sx_over.jpg') no-repeat";
		document.getElementById("menu_" + voceMenu).style.background = "url('" + indirizzoBase + "img/bg_noncorrente_centro_over.jpg') repeat-x;";
		document.getElementById("menu_" + voceMenu + "_dx").style.background = "url('" + indirizzoBase + "img/bg_noncorrente_dx_over.jpg') no-repeat";
	}
	else
	{
		document.getElementById("menu_" + voceMenu + "_sx").style.background = "url('" + indirizzoBase + "img/bg_noncorrente_sx.jpg') no-repeat";
		document.getElementById("menu_" + voceMenu).style.background = "url('" + indirizzoBase + "img/bg_noncorrente_centro.jpg') repeat-x";
		document.getElementById("menu_" + voceMenu + "_dx").style.background = "url('" + indirizzoBase + "img/bg_noncorrente_dx.jpg') no-repeat";
	}
}*/