/*TR----------------------------------------*/
function changeto(highlightcolor){
source=event.srcElement
if (source.tagName=="TR"||source.tagName=="TABLE")
return
while(source.tagName!="TR")
source=source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function changeback(originalcolor){
if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")
return
if (event.toElement!=source)
source.style.backgroundColor=originalcolor
}

/*
function go(){
onMouseover=changeto('#F5B223'); onMouseout=changeback('#FCF2BC');}
*/




/*TIPS----------------------------------------*/
function showTip(obj) 
{   if  (document.layers) 
    {   if  (document.layers[obj] != null) document.layers[obj].visibility = 'visible';
    }
    else 
    if  (document.all) document.all[obj].style.visibility = 'visible';
}
 
function hideTip(obj) 
{   if  (document.layers) 
    {   if (document.layers[obj] != null) document.layers[obj].visibility = 'hidden';
    }
    else 
    if  (document.all)
        document.all[obj].style.visibility = 'hidden';
}



/*PARAGRAFI---------------------------------*/
//obiettivo: apro e chiudo la sezione dei colori.
//richiamo la funzione dal link di ciascun cerchietto colore
//definisco con gli id gli intervalli di html

var ParId=new Array ("Id0","Id1","Id2","Id3","Id4","Id5","Id6","Id7","Id8");
var NPar=9;

// Cosi' funziona con IE5
function ParDisplay (IdCnt) {
	var myId="";

	for (i=0; i<NPar; i++)document.getElementById(ParId[i]).style.display="none";
	myId=ParId[IdCnt];
	document.getElementById(myId).style.display="block";
	}
/*
function ParDisplay (IdCnt) {
	var myId="";
	alert(IdCnt)
	for (i=0; i<NPar; i++)document.getElementById(ParId[i]).style.visibility="hiden";
	myId=ParId[IdCnt];
	document.getElementById(myId).style.visibility="show";
	}

/*
<p id="Id0" style="display=none" align="left">xxxx</p>
*/
