function systemMessage(){
	var container=document.getElementById("container");
	var msgbox=document.getElementById("system-message");
	if(msgbox){
		var sx=container.offsetLeft;
		var parent=container.offsetParent;
		while(parent){
			sx+=parent.offsetLeft;
			parent=parent.offsetParent;
		}
		sx+=200;
		sfondo=document.createElement('div');
		sfondo.id="system-message-back";
		sfondo.style.left=sx+"px";
		box=document.createElement('div');
		box.id="system-message-box";
		chiudi=document.createElement('div');
		chiudi.id ="chiudi";
		chiudi.onclick=function(){document.getElementById("system-message-box").style.display="none"};
		chiudiImg=document.createElement('img');
		chiudiImg.src="/gardenclub/templates/gardenclub/img/chiudi.gif";
		chiudiTxt=document.createTextNode("Chiudi");
		container.appendChild(sfondo);
		sfondo.appendChild(box);
		box.appendChild(chiudi);
		chiudi.appendChild(chiudiImg);
		chiudi.appendChild(chiudiTxt);
		box.appendChild(msgbox);
	}
}

function menu_ori(){
	var container=document.getElementById("menu_ori");
	var menu=container.getElementsByTagName("ul")[0];
	var list=menu.children;
	for (i=0; i<list.length; i++){
		itemli=list[i];
		sottomenu=itemli.getElementsByTagName("ul")[0];
		if(sottomenu){
			itemli.onmouseover=function(){this.getElementsByTagName("ul").item(0).style.display="block";};
			itemli.onmouseout=function(){this.getElementsByTagName("ul").item(0).style.display="none"};
			var sx=itemli.offsetLeft;
			var parent=itemli.offsetParent;
			while(parent){
				sx+=parent.offsetLeft;
				parent=parent.offsetParent;
			}
			sx+=0;
			sottomenu.style.left=sx+"px";
			sottomenu.style.top=143+"px";
			
		}
	}
}


