function onAboutMeOver()
{	
	var index = location.href.indexOf("bar.htm");//location.protocol + "//" + location.hostname + "/"+ location.pathname + "/"+ "Img/Presentazione-off.gif";
	var path = location.href;
	var name = path.substring(0, index);
	name = name + "Img/Presentazione-off.gif";	
	
	if(document.getElementById("BtnPresentazione").src==name)
	{
		document.getElementById("BtnPresentazione").src="Img/Presentazione-on.gif";
	}	
}
function onAboutMeOut()
{
	var index = location.href.indexOf("bar.htm");//location.protocol + "//" + location.hostname + "/"+ location.pathname + "/"+ "Img/Presentazione-off.gif";
	var path = location.href;
	var name = path.substring(0, index);
	name = name + "Img/Presentazione-on.gif";	
	
	if(document.getElementById("BtnPresentazione").src==  name)
	{
		document.getElementById("BtnPresentazione").src="Img/Presentazione-off.gif";
	}
}
function onAboutMeClick()
{
	clearAll();
	document.getElementById("BtnPresentazione").src="Img/Presentazione.gif";	
}

function onPresepiOver()
{	
	var index = location.href.indexOf("bar.htm");//location.protocol + "//" + location.hostname + "/"+ location.pathname + "/"+ "Img/Presentazione-off.gif";
	var path = location.href;
	var name = path.substring(0, index);
	name = name + "Img/Presepi-off.gif";		
	
	if(document.getElementById("BtnPresepi").src==name)
	{
		document.getElementById("BtnPresepi").src="Img/Presepi-on.gif";
	}	
}
function onPresepiOut()
{
	var index = location.href.indexOf("bar.htm");//location.protocol + "//" + location.hostname + "/"+ location.pathname + "/"+ "Img/Presentazione-off.gif";
	var path = location.href;
	var name = path.substring(0, index);
	name = name + "Img/Presepi-on.gif";	
	
	if(document.getElementById("BtnPresepi").src==  name)
	{
		document.getElementById("BtnPresepi").src="Img/Presepi-off.gif";
	}
}
function onPresepiClick()
{
	clearAll();
	document.getElementById("BtnPresepi").src="Img/Presepi.gif";	
}



function onLinksOver()
{	
	var index = location.href.indexOf("bar.htm");//location.protocol + "//" + location.hostname + "/"+ location.pathname + "/"+ "Img/Presentazione-off.gif";
	var path = location.href;
	var name = path.substring(0, index);
	name = name + "Img/Links-off.gif";		
	
	if(document.getElementById("BtnLinks").src==name)
	{
		document.getElementById("BtnLinks").src="Img/Links-on.gif";
	}	
}
function onLinksOut()
{
	var index = location.href.indexOf("bar.htm");//location.protocol + "//" + location.hostname + "/"+ location.pathname + "/"+ "Img/Presentazione-off.gif";
	var path = location.href;
	var name = path.substring(0, index);
	name = name + "Img/Links-on.gif";	
	
	if(document.getElementById("BtnLinks").src==  name)
	{
		document.getElementById("BtnLinks").src="Img/Links-off.gif";
	}
}
function onLinksClick()
{
	clearAll();
	document.getElementById("BtnLinks").src="Img/Links.gif";	
}


function onContactsOver()
{	
	var index = location.href.indexOf("bar.htm");//location.protocol + "//" + location.hostname + "/"+ location.pathname + "/"+ "Img/Presentazione-off.gif";
	var path = location.href;
	var name = path.substring(0, index);
	name = name + "Img/Contatti-off.gif";		
	
	if(document.getElementById("BtnContatti").src==name)
	{
		document.getElementById("BtnContatti").src="Img/Contatti-on.gif";
	}	
}
function onContactsOut()
{
	var index = location.href.indexOf("bar.htm");//location.protocol + "//" + location.hostname + "/"+ location.pathname + "/"+ "Img/Presentazione-off.gif";
	var path = location.href;
	var name = path.substring(0, index);
	name = name + "Img/Contatti-on.gif";	
	
	if(document.getElementById("BtnContatti").src==  name)
	{
		document.getElementById("BtnContatti").src="Img/Contatti-off.gif";
	}
}
function onContactsClick()
{
	clearAll();
	document.getElementById("BtnContatti").src="Img/Contatti.gif";	
}

function onEspoOver()
{	
	var index = location.href.indexOf("bar.htm");//location.protocol + "//" + location.hostname + "/"+ location.pathname + "/"+ "Img/Presentazione-off.gif";
	var path = location.href;
	var name = path.substring(0, index);
	name = name + "Img/Esposizioni-off.gif";		
	
	if(document.getElementById("BtnEsposizioni").src==name)
	{
		document.getElementById("BtnEsposizioni").src="Img/Esposizioni-on.gif";
	}	
}
function onEspoOut()
{
	var index = location.href.indexOf("bar.htm");//location.protocol + "//" + location.hostname + "/"+ location.pathname + "/"+ "Img/Presentazione-off.gif";
	var path = location.href;
	var name = path.substring(0, index);
	name = name + "Img/Esposizioni-on.gif";	
	
	if(document.getElementById("BtnEsposizioni").src==  name)
	{
		document.getElementById("BtnEsposizioni").src="Img/Esposizioni-off.gif";
	}
}
function onEspoClick()
{
	clearAll();
	document.getElementById("BtnEsposizioni").src="Img/Esposizioni.gif";	
}
function clearAll()
{
	document.getElementById("BtnPresentazione").src="Img/Presentazione-off.gif";
	/*document.getElementById("BtnContatti").src="Img/Contatti-off.gif";*/
	document.getElementById("BtnEsposizioni").src="Img/Esposizioni-off.gif";
	document.getElementById("BtnLinks").src="Img/Links-off.gif";
	document.getElementById("BtnPresepi").src="Img/Presepi-off.gif";
	/*document.getElementById("BtnTecnica").src="Img/Tecnica-off.gif";*/
}
