//scrivo un po' di roba nell'head del documento
if (typeof document.documentElement.style.maxHeight != "undefined") {
	document.write('<style type="text/css" title="text/css">#navigation ul li a{background-image: url(/images/bgSel_off.png);background-repeat: no-repeat;}#navigation ul li a:hover, #navigation ul li.thisSection a{background-image: url(/images/bgSel.png);background-repeat: no-repeat;}</style>');
} else {
	document.write('<style type="text/css" title="text/css">#navigation ul li a{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src=/sito_html/images/bgSel_off.png);}#navigation ul li a:hover, #navigation ul li.thisSection a{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src=/sito_html/images/bgSel.png);}</style>');
}


//funzione di Alberto che scambia le immagini
function rollOver(thisNav, newImg) {
	thisImageUrl = document.getElementById(thisNav).src;
	document.getElementById(thisNav).src = "/images/"+newImg;
}
function rollOut(thisNav) {
	document.getElementById(thisNav).src = thisImageUrl;
}


//funzione che precarica le immagini per caratteristiche/index.html
if (document.images) {
  gn1= new Image(690,180);
  gn1.src="/images/ipase_caratteristiche_1.jpg";
  gn2= new Image(690,180);
  gn2.src="/images/ipase_caratteristiche_2.jpg";  
  gn3= new Image(690,180);
  gn3.src="/images/ipase_caratteristiche_3.jpg";
}

//funzione di Alberto che scambia l'immagine caratteristiche/index.html
function chImg(newImg) {	
	imgOn=eval(newImg + ".src");
	document.getElementById("carImg").src = imgOn;
}
function chImg2(defImg) {
	document.getElementById("carImg").src = defImg;
}

//funzione di Alberto che apre gli zoom della galleria in una popup
function gZoom(popupUrl) {
	window.open('http://www.ipase.it/'+popupUrl,'','toolbar=0,scrollbars=0,resize=0');

}