// função para o ddmenu
function iniz () {
    pagemenu = new DDMenu ('ddmenu2', document, {            //document can be the whole page, 
                                                             //an element or a parent of elements 
        onOpen: function (e) { 
            this.enableItems(true);                          //enable all 
            this.enableItems('menu_item_with_icon2',false);  //disable menu_item_with_icon2
        }, 
    
        onItemSelect: function (act_id, act_el, menu_bindon) {
            console.info("menu action -> item id: \"%s\" from: %o in %o", act_id, act_el, menu_bindon) 
        }
    });
}
//função menu left
function mnOpenH(valor)
{
	var titulos = 3
	if(document.getElementById('mn'+valor).style.display == '')
	{
		document.getElementById('mn'+valor).style.display = 'none';
		document.getElementById('mp'+valor).className = "linksTituloF";
	}
	else
	{
		for(var i=1;i<titulos;i++)
		{
			document.getElementById('mn'+i).style.display = 'none';
			document.getElementById('mp'+i).className = "linksTituloF";
		}
		document.getElementById('mn'+valor).style.display = '';
		document.getElementById('mp'+valor).className = "linksTituloC";
	}
}
function mnOpenI(valor)
{
	var titulos = 5
	// numero de seções ( menos 1)
	if(document.getElementById('mn'+valor).style.display == '')
	{
		document.getElementById('mn'+valor).style.display = 'none';
		document.getElementById('mp'+valor).className = "linksTituloF";
	}
	else
	{
		for(var i=1;i<titulos;i++)
		{
			document.getElementById('mn'+i).style.display = 'none';
			document.getElementById('mp'+i).className = "linksTituloF";
		}
		document.getElementById('mn'+valor).style.display = '';
		document.getElementById('mp'+valor).className = "linksTituloC";
	}
}
