var supportOk = (parseInt(navigator.appVersion)>=4);

if (supportOk) {
	var imgDir = "img/";
	
	h0on = new Image();
	h0on.src = imgDir + "Hhome_on.gif";
	h0off = new Image();
	h0off.src = imgDir + "Hhome.gif";
	
	h1on = new Image();
	h1on.src = imgDir + "Hchisiamo_on.gif";
	h1off = new Image();
	h1off.src = imgDir + "Hchisiamo.gif";
	
	h2on = new Image();
	h2on.src = imgDir + "Hgalleria_on.gif";
	h2off = new Image();
	h2off.src = imgDir + "Hgalleria.gif";
	
	h3on = new Image();
	h3on.src = imgDir + "Hprova_on.gif";
	h3off = new Image();
	h3off.src = imgDir + "Hprova.gif";
	
	h4on = new Image();
	h4on.src = imgDir + "Hscrivi_on.gif";
	h4off = new Image();
	h4off.src = imgDir + "Hscrivi.gif";
	
	h5on = new Image();
	h5on.src = imgDir + "Hlinks_on.gif";
	h5off = new Image();
	h5off.src = imgDir + "Hlinks.gif";
	
	h6on = new Image();
	h6on.src = imgDir + "Hguestbook_on.gif";
	h6off = new Image();
	h6off.src = imgDir + "Hguestbook.gif";
	
		
	 function turnOn(img) {
		eval("document."+img).src = eval(img+"on").src;
	}
	
	 function turnOff(img) {
		eval("document."+img).src = eval(img+"off").src;
	}
}

