
function imageReplacement(url)
{
	replaceThem(document.getElementsByTagName('h1'),url);
}

function replaceThem(x,url)
{
	var replace = document.createElement('a');
	for (var i=0;i<x.length;i++)
	{
		if (x[i].id)
		{
			var y = replace.cloneNode(true);
			y.href = url+'default.asp'
			y.innerHTML = '<img src="'+url+'public/' + x[i].id + '" style="border:none;" alt="'+x[i].firstChild.innerHTML+'">';
			y.alt = x[i].firstChild.nodeValue;
		
			x[i].replaceChild(y,x[i].firstChild);
		}
	}
	
	document.getElementById('tutto').className='';
	
	
	
	 
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }


	
}