function openMenu(value){

	/*var obj = document.getElementById('menus');
	vetor = obj.getElementsByTagName("div");

	for (i=0; i<vetor.length ; i++) {
		vetor[i].style.display = "none";
		
	}
	document.getElementById(value).style.display = 'block';*/
	document.getElementById('sub1').style.display = 'none';
	document.getElementById('sub2').style.display = 'none';
	document.getElementById('sub3').style.display = 'none';
	document.getElementById('sub4').style.display = 'none';
	document.getElementById('sub5').style.display = 'none';
	document.getElementById('sub6').style.display = 'none';
	document.getElementById('sub7').style.display = 'none';
	document.getElementById('sub8').style.display = 'none';
	document.getElementById('sub10').style.display = 'none';
	document.getElementById(value).style.display = 'block';
}

function addFav(){
    var url      = "http://www.radiostronda.com";
    var title    = "Rádio Stronda - A melhor rádio Jovem do Brasil";
    if (window.sidebar) window.sidebar.addPanel(title, url,"");
    else if(window.opera && window.print){
        var mbm = document.createElement('a');
        mbm.setAttribute('rel','sidebar');
        mbm.setAttribute('href',url);
        mbm.setAttribute('title',title);
        mbm.click();
    }
    else if(document.all){window.external.AddFavorite(url, title);}
}


// MASCARA FORMS

//adiciona mascara ao telefone
function MascaraTelefone(tel){  
        if(mascaraInteiro(tel)==false){
                event.returnValue = false;
        }       
        return formataCampo(tel, '(00) 0000-0000', event);
}
//valida numero inteiro com mascara
function mascaraInteiro(){
        if (event.keyCode < 48 || event.keyCode > 57){
                event.returnValue = false;
                return false;
        }
        return true;
}

//formata de forma generica os campos
function formataCampo(campo, Mascara, evento) { 
        var boleanoMascara; 
        
        var Digitato = evento.keyCode;
        exp = /\-|\.|\/|\(|\)| /g
        campoSoNumeros = campo.value.toString().replace( exp, "" ); 
   
        var posicaoCampo = 0;    
        var NovoValorCampo="";
        var TamanhoMascara = campoSoNumeros.length;; 
        
        if (Digitato != 8) { // backspace 
                for(i=0; i<= TamanhoMascara; i++) { 
                        boleanoMascara  = ((Mascara.charAt(i) == "-") || (Mascara.charAt(i) == ".")
                                                                || (Mascara.charAt(i) == "/")) 
                        boleanoMascara  = boleanoMascara || ((Mascara.charAt(i) == "(") 
                                                                || (Mascara.charAt(i) == ")") || (Mascara.charAt(i) == " ")) 
                        if (boleanoMascara) { 
                                NovoValorCampo += Mascara.charAt(i); 
                                  TamanhoMascara++;
                        }else { 
                                NovoValorCampo += campoSoNumeros.charAt(posicaoCampo); 
                                posicaoCampo++; 
                          }              
                  }      
                campo.value = NovoValorCampo;
                  return true; 
        }else { 
                return true; 
        }
}