function resetMenu(){
		document.getElementById( 'uno' ).style.backgroundImage = "url(/img-com/img-head/bg-menu-01-front.gif)";
		document.getElementById('uno0').style.display = 'none';
		document.getElementById( 'due' ).style.backgroundImage = "url(/img-com/img-head/bg-menu-01-front.gif)";
		document.getElementById('due0').style.display = 'none';
		document.getElementById( 'tre' ).style.backgroundImage = "url(/img-com/img-head/bg-menu-01-front.gif)";
		document.getElementById('tre0').style.display = 'none';
		document.getElementById( 'quattro' ).style.backgroundImage = "url(/img-com/img-head/bg-menu-01-front.gif)";
		document.getElementById('quattro0').style.display = 'none';
		document.getElementById( 'cinque' ).style.backgroundImage = "url(/img-com/img-head/bg-menu-01-front.gif)";
		document.getElementById('cinque0').style.display = 'none';
		document.getElementById( 'sei' ).style.backgroundImage = "url(/img-com/img-head/bg-menu-01-front.gif)";
		document.getElementById('sei0').style.display = 'none';
		document.getElementById( 'sette' ).style.backgroundImage = "url(/img-com/img-head/bg-menu-01-front.gif)";
		document.getElementById('sette0').style.display = 'none';
}

function setBackgroundImage(layer) {
	resetMenu();
	var image ="";
	image = "url(/img-com/img-head/bg-menu-"+layer+".gif)";

	document.getElementById( layer ).style.backgroundImage = image;

	image = "url(/img-com/img-head/bg-colore-"+layer+".gif)";
	document.getElementById( 'barraorizzontale' ).style.backgroundImage = image;
//	alert ('image ' + image);

	document.getElementById(layer+'0').style.display = 'inline';

}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}



