
//Habilita a acessibilidade aos menus secundarios.
        function enableSubMenus(){
            var lis = document.getElementsByTagName('li');
            for (var i = 0, li; li = lis[i]; i++){
             var link = li.getElementsByTagName('a')[0];
             if (link){
                link.onfocus = function(){
                 var ul = this.parentNode.getElementsByTagName('ul')[0];
                 if (ul)
                 ul.style.display = 'block';
                }
                var ul = link.parentNode.getElementsByTagName('ul')[0];
                if (ul){
                 var ullinks = ul.getElementsByTagName('a');
                 var ullinksqty = ullinks.length;
                 var lastItem = ullinks[ullinksqty - 1];
                 if (lastItem){
                    lastItem.onblur = function(){
                     this.parentNode.parentNode.style.display = '';
                    }
                 }
                }
             }
            }
        }
        window.onload = enableSubMenus;
		
//Dar o id do layer e se quer aumentar ou diminuir a fonte.
		function mudaFonte(id, opt)
		{
			var ValorAtual = document.getElementById(id).style.fontSize;
			var valor = ValorAtual.replace("px", "");
			valor = parseInt(valor, 10);
			
			if(opt == 'aumentar')
			{
				var total = valor + 1;
			}
			else if(opt == 'diminuir')
			{
				var total = valor - 1;
			}
			
			total = total + "px";
			document.getElementById(id).style.fontSize = total;
		}

