// JavaScript Document

var timer;				
function ShowLayer(obj){
	HideLayer()
	clearTimeout(timer);
	var obj = getById(obj);
	if (obj.style.display=="none"){
		obj.style.display = "block";
	}

	
	timeout_value = 6000;
	timer = setTimeout('obj.style.display="none"', timeout_value);			

}

function HideLayer(){
	clearTimeout(timer);
	obj = getById('mnprogetti');
	if (obj.style.display=="block"){
		obj.style.display = "none";
	}
	obj = getById('nmriconoscimenti');
	if (obj.style.display=="block"){
		obj.style.display = "none";
	}
}



function getById(id)
{
	var elem;
	if (document.getElementById) // this is the way the standards work
		elem = document.getElementById(id);
	else if (document.all) // this is the way old msie versions work
		elem = document.all[id];
	else if (document.layers) // this is the way nn4 works
		elem = document.layers[id];
	return elem;
}
