//
sfHover = function() {
	var sfEls = document.getElementsByTagName("P");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//


//colora le TR al rollover
function col(obj, Colore) {
	obj.style.backgroundColor=Colore
	obj.style.cursor='hand'
}
////
//backgrond sfumo al rollover
function sfondo(obj) {
	obj.style.backgroundImage='../img/bgsfumo.jpg'
	obj.style.cursor='hand'
}


function changeZoomImg(zoomName, objImg){
	if (objImg != '' && objImg != undefined){
		document.getElementsByName(zoomName)[0].src = objImg;
	}
} 


var oldDivCont = "";
function changeDivCont(divName){

	if (oldDivCont != "" && oldDivCont != undefined){
		document.getElementById(oldDivCont).style.display="none";
	}

	document.getElementById(divName).style.display="";
	oldDivCont = divName;
}


function setDivCont(divName, cont){
	document.getElementById(divName).innerHTML = cont;
}
