// JavaScript Document
function flash(path,wid,hei){
	document.write('<object id="filmato" type="application/x-shockwave-flash" data="'+path+'" width="'+wid+'" height="'+hei+'"><param name="movie" value="'+path+'" /><param name="menu" value="false" /><param name="wmode" value="transparent" /><param name="quality" value="best" /><p>Per una visione ottimale della testata scaricare il plug-in flash</p></object>');
}

function hide() {
	if(document.getElementById('pianta')){
	document.getElementById('pianta').style.display="none";
		document.getElementById('chiuso').style.display="none";	
document.getElementById('aperto').href="javascript:hideShow(1)"	
		document.getElementById('chiuso').href="javascript:hideShow(2)"
	}
}

function hideShow(num){
	if(num=='1'){
		document.getElementById('pianta').style.display="block";
		document.getElementById('chiuso').style.display="block";
		document.getElementById('aperto').style.display="none";

	} else {
		document.getElementById('pianta').style.display="none";
		document.getElementById('chiuso').style.display="none";
		document.getElementById('aperto').style.display="block";

	}
}


function hide2() {
	if(document.getElementById('pianta-sale')){
	document.getElementById('pianta-sale').style.display="none";
		document.getElementById('chiuso1').style.display="none";	
document.getElementById('aperto1').href="javascript:hide2Show(1)"	
		document.getElementById('chiuso1').href="javascript:hide2Show(2)"
	}
}

function hide2Show(num){
	if(num=='1'){
		if(document.getElementById('pianta-sale')){
		document.getElementById('pianta-sale').style.display="block";
		document.getElementById('chiuso1').style.display="block";
		document.getElementById('aperto1').style.display="none";
		}
	} else {
		if(document.getElementById('pianta-sale')){
		document.getElementById('pianta-sale').style.display="none";
		document.getElementById('chiuso1').style.display="none";
		document.getElementById('aperto1').style.display="block";
		}
	}
}


