// Funcao do ROLLOVER DOS BOTOES DO MENU


if (document.images) {
// para os botoes da area de admin > só corrigir a url	
	adm_bioup       = new Image();
    adm_bioup.src   = "../img/bt_bio1.gif" ;
    adm_biodown     = new Image() ;
    adm_biodown.src = "../img/bt_bio2.gif" ;
	
	adm_muralup       = new Image();
    adm_muralup.src   = "../img/bt_mural1.gif" ;
    adm_muraldown     = new Image() ;
    adm_muraldown.src = "../img/bt_mural2.gif" ;
	
	adm_fotosup       = new Image();
    adm_fotosup.src   = "../img/bt_fotos1.gif" ;
    adm_fotosdown     = new Image() ;
    adm_fotosdown.src = "../img/bt_fotos2.gif" ;
	
	adm_videosup       = new Image();
    adm_videosup.src   = "../img/bt_videos1.gif" ;
    adm_videosdown     = new Image() ;
    adm_videosdown.src = "../img/bt_videos2.gif" ;
	
	adm_discografiaup       = new Image();
    adm_discografiaup.src   = "../img/bt_discografia1.gif" ;
    adm_discografiadown     = new Image() ;
    adm_discografiadown.src = "../img/bt_discografia2.gif" ;
	
	adm_centralup       = new Image();
    adm_centralup.src   = "../img/bt_central1.gif" ;
    adm_centraldown     = new Image() ;
    adm_centraldown.src = "../img/bt_central2.gif" ;
	

	adm_contatoup       = new Image();
    adm_contatoup.src   = "../img/bt_contato1.gif" ;
    adm_contatodown     = new Image() ;
    adm_contatodown.src = "../img/bt_contato2.gif" ;
	
	
	
	// BOTOES DO SITE NORMAL- visao do usuario
    bioup       = new Image();
    bioup.src   = "img/bt_bio1.gif" ;
    biodown     = new Image() ;
    biodown.src = "img/bt_bio2.gif" ;
	
	muralup       = new Image();
    muralup.src   = "img/bt_mural1.gif" ;
    muraldown     = new Image() ;
    muraldown.src = "img/bt_mural2.gif" ;
	
	fotosup       = new Image();
    fotosup.src   = "img/bt_fotos1.gif" ;
    fotosdown     = new Image() ;
    fotosdown.src = "img/bt_fotos2.gif" ;
	
	videosup       = new Image();
    videosup.src   = "img/bt_videos1.gif" ;
    videosdown     = new Image() ;
    videosdown.src = "img/bt_videos2.gif" ;
	
	discografiaup       = new Image();
    discografiaup.src   = "img/bt_discografia1.gif" ;
    discografiadown     = new Image() ;
    discografiadown.src = "img/bt_discografia2.gif" ;
	
	centralup       = new Image();
    centralup.src   = "img/bt_central1.gif" ;
    centraldown     = new Image() ;
    centraldown.src = "img/bt_central2.gif" ;
	

	contatoup       = new Image();
    contatoup.src   = "img/bt_contato1.gif" ;
    contatodown     = new Image() ;
    contatodown.src = "img/bt_contato2.gif" ;
	
	
	///////////////////// BOTOES REDES SOCIAIS ///////////////
	
	youtubeup       = new Image();
    youtubeup.src   = "img/ico_youtube1.png" ;
    youtubedown     = new Image() ;
    youtubedown.src = "img/ico_youtube2.png" ;
	
	facebookup       = new Image();
    facebookup.src   = "img/ico_facebook1.png" ;
    facebookdown     = new Image() ;
    facebookdown.src = "img/ico_facebook2.png" ;
	
	twitterup       = new Image();
    twitterup.src   = "img/ico_twitter1.png" ;
    twitterdown     = new Image() ;
    twitterdown.src = "img/ico_twitter2.png" ;
	
	myspaceup       = new Image();
    myspaceup.src   = "img/ico_myspace1.png" ;
    myspacedown     = new Image() ;
    myspacedown.src = "img/ico_myspace2.png" ;
	
	orkutup       = new Image();
    orkutup.src   = "img/ico_orkut1.png" ;
    orkutdown     = new Image() ;
    orkutdown.src = "img/ico_orkut2.png" ;
	
	bloggerup       = new Image();
    bloggerup.src   = "img/ico_blogger1.png" ;
    bloggerdown     = new Image() ;
    bloggerdown.src = "img/ico_blogger2.png" ;
	
	
	///////////////////// BOTOES INTEGRANTES ///////////////
	
				// ISSO AQUI É MO BURRADA!!! 
				// É MELHOR EU COLOCAR UM CSS NUM LINK E COLOCAR DISPLAY BLOCK
	
	a_integranteup       = new Image();
    a_integranteup.src   = "img/integrantes/a_integrante1.jpg" ;
    a_integrantedown     = new Image() ;
    a_integrantedown.src = "img/integrantes/a_integrante2.jpg" ;
	
	b_integranteup       = new Image();
    b_integranteup.src   = "img/integrantes/b_integrante1.jpg" ;
    b_integrantedown     = new Image() ;
    b_integrantedown.src = "img/integrantes/b_integrante2.jpg" ;
	
	c_integranteup       = new Image();
    c_integranteup.src   = "img/integrantes/c_integrante1.jpg" ;
    c_integrantedown     = new Image() ;
    c_integrantedown.src = "img/integrantes/c_integrante2.jpg" ;
	
	d_integranteup       = new Image();
    d_integranteup.src   = "img/integrantes/d_integrante1.jpg" ;
    d_integrantedown     = new Image() ;
    d_integrantedown.src = "img/integrantes/d_integrante2.jpg" ;
	
	e_integranteup       = new Image();
    e_integranteup.src   = "img/integrantes/e_integrante1.jpg" ;
    e_integrantedown     = new Image() ;
    e_integrantedown.src = "img/integrantes/e_integrante2.jpg" ;
	
	
	
}
function buttondown( buttonname )
{
    if (document.images) {
      document[ buttonname ].src = eval( buttonname + "down.src" );
    }
}
function buttonup ( buttonname )
{
    if (document.images) {
      document[ buttonname ].src = eval( buttonname + "up.src" );
    }
}

//////////////////////////////////////////////////////////////////////


function limita(caracteres,idCampo){
	
var tamanho = document.getElementById(idCampo).value.length;
var tex=document.getElementById(idCampo).value;
if (tamanho>=caracteres) {
document.getElementById(idCampo).value=tex.substring(0,caracteres);
}
return true;
}



//FUNCAO DE APARECER E DESAPARECER DIV - para o Menu

function setVisibility(id, visibility) {
document.getElementById(id).style.display = visibility;
}


// Limpa Formulario - para os formularios de login e newsletter

function ClearForm(idInput) {
  var caminho = document.getElementById(idInput).value;
  if( caminho == "Usuario" || caminho == "Senha" || caminho == "Nome" || caminho == "Email" ){
	  document.getElementById(idInput).value= "";
	  }
}

function CheckForm(idInput) {
  var caminho = document.getElementById(idInput).value;
	if( caminho == "" ){
	  document.getElementById(idInput).value= idInput;
	  }	
}


	
	
//////////////////////////////////////////////////////////////////////	
// Faz o link na mesma pagina sem RELOAD	
		  //jQuery.noConflict();
		  
			
			
			/*function mudaPagina(pagina){
				jQuery("#conteudo").load(pagina);
				}*/
				
			
			
			
//////////////////////////////////////////////////////////////////////		
				
			
			<!-- AQUI ESTA O SEGREDO - O JAVASCRIPT ACHA O Arquivo Flash E APLICA AS FUNCOES Nele  >> Para o link do HTML controlar o Flash
			function jc(){
				 if (navigator.appName.indexOf ("Microsoft") !=-1) 
					   { return window['audioPlayer'] }
				 else  { return document['audioPlayer'] }
						  }
		//-->
		
		
		
		
		
//////////////////////////////////////////////////////////////////////	
		
		function mudaClasse(elemento) {
						//var elemento = document.getElementById(id);
						if (elemento.className == "imageUP") {
						elemento.className = "imageOVER";
						}
						else {
						elemento.className = "imageUP";
						}
						
			
						
					}
					
					
		function mudaClasse_semborda(elemento) {
						//var elemento = document.getElementById(id);
						if (elemento.className == "imageUP_semborda") {
						elemento.className = "imageOVER_semborda";
						}
						else {
						elemento.className = "imageUP_semborda";
						}
						
			
						
					}
					
					
	
				

//////////////// FUNCOES INCLUIR FORMULARIO DE CADASTRO ////////////////////////////

function IncluirCobertura(varForm){
		if (varForm.nome.value == ""){
				window.alert ("Preencha o campo EVENTO");
				varForm.nome.focus();
				return false;
		}
		if (varForm.cidade.value == ""){
				window.alert ("Preencha o campo CIDADE");
				varForm.cidade.focus();
				return false;
		}
		if (varForm.credito.value == ""){
				window.alert ("Preencha o campo CREDITO");
				varForm.credito.focus();
				return false;
		}
		if (varForm.dica.value == ""){
				window.alert ("Falta preencher o campo PASTA");
				varForm.dica.focus();
				return false;
		}
		if (varForm.arquivoZip.value == ""){
				window.alert ("Selecione o arquivo ZIP");
				varForm.arquivoZip.focus();
				return false;
		}
		
		varForm.submit();
	}
			



function mostraDIVagenda(div) {
	document.getElementById(div).style.display = "block";
}
		

				
