function conf_menu_arr()
{
//Proprietà
this.obj_voci=Array();
// Funzioni membro
this.Click=function(event)
	{
	if(this.obj_voci.length==0) return false;
	var src;
	if (!event) event = window.event;
	if (event.srcElement) src=event.srcElement;
	else if (event.target) src=event.target;
	else return false;
	var p=src.parentNode;
	while(p)
		{
		if(p.nodeName=='DIV' && p.id.length>0)
			{
			var n=this.obj_voci.length;
			while(n--)
				{
				if(this.obj_voci[n].id==p.id)
					{
					event.cancelBubble = true;
					if (event.stopPropagation) event.stopPropagation();
					return this.obj_voci[n].click()
					}
				}
			}
		p=p.parentNode;
		}
	return true;
	}
this.agg_voce= function(obj)
	{
	this.obj_voci.push(obj);
	}
// Codice eseguito
}

function conf_voce_men(id,menu,aperto)
{
//Proprietà
this.id=id;
this.menu=menu;
this.obj=document.getElementById? document.getElementById(id):(document.all?document.all[id]:null);
this.aperto=false;
this.voce=null;
this.submenu=null;
// Funzioni membro
this.click = function()
	{
	if(this.submenu==null) return true;
	if(this.aperto)
		{
		this.aperto=false;
		this.submenu.style.display='none';
		}
	else
		{
		this.aperto=true;
		this.submenu.style.display='';
		}
	return false;
	}
// Codice eseguito
menu.agg_voce(this);
var childs=this.obj.childNodes;
var cnt_div=0;
for(var n=0;n<childs.length;n++)
    if(childs[n].nodeName=='DIV')
	{
	cnt_div++;
	if(cnt_div==1)  this.voce=childs[n];
	else if(cnt_div==2)
		{
		this.submenu=childs[n];
		this.submenu.style.display='none';
		}
	else break;
    }
if(this.submenu==null)  this.click = function() {return true;};
else 
	{
	if(aperto)
		{
		this.aperto=true;
		this.submenu.style.display='';
		}
	else this.submenu.style.display='none';
	}
}

function div_out(obj)
{
obj.style.color='green';
obj.style.backgroundColor ='white';
while(p=obj.parentNode)
		{
		if(p.nodeName=='DIV')
			{
			p.style.backgroundColor ='white';
		    break;
		    }
		}
	}
function div_over(obj)
{
obj.style.color='white';
obj.style.backgroundColor ='green';
while(p=obj.parentNode)
		{
		if(p.nodeName=='DIV')
			{
			p.style.backgroundColor ='green';
		    break;
		    }
		}
	}