function IEHoverPseudo() {

	var navItems = document.getElementById("primary-nav").getElementsByTagName("li");
	
	for (var i=0; i<navItems.length; i++) {
		if(navItems[i].className == "menuparent") {
			navItems[i].onmouseover=function() { this.className += " over"; document.getElementById("ulLista").style.display="block"; }
			navItems[i].onmouseout = function() { this.className = "menuparent";  document.getElementById("ulLista").style.display="none"; }
			navItems[i].onmouseup = function(){ document.getElementById("ulLista").style.display="none"; }; 
		}
	}

}
window.onload = IEHoverPseudo;

function LevaNome( nome )
{

	/*document.categoria.pesq_home.style.background = '#FF0000';*/
	document.categoria.pesq_home.value = "Busque em "+ nome;
	document.categoria.categorias.value = nome;
	return false;

}
function ApagaNome()
{
/*	document.categoria.pesq_home.style.background = '#784521';*/
	document.categoria.pesq_home.value = "";
	document.categoria.pesq_home.focus();
	return false;
		
}

function valida_form()
	{
		if(document.cadastro.resposta.value == "")
		{ alert ("Por favor digite a Resposta."); document.cadastro.resposta.style.border = '1px solid #FF0000'; document.cadastro.resposta.focus();  return false;}
		if(document.cadastro.nome.value == "")	
		{ alert ("Por favor digite o Nome."); document.cadastro.nome.style.border = '1px solid #FF0000'; document.cadastro.nome.focus();  return false;}		
		if(document.cadastro.email.value == "")		
		{ alert ("Por favor digite o Email."); document.cadastro.email.style.border = '1px solid #FF0000'; document.cadastro.email.focus();  return false;}
		if(document.cadastro.escolaridade.value == "")
		{ alert ("Escolha sua escolaridade."); document.cadastro.escolaridade.style.border = '1px solid #FF0000'; document.cadastro.escolaridade.focus();  return false;}
		if(document.cadastro.dia.value == "")
		{ alert ("Por favor digite o Dia."); document.cadastro.dia.style.border = '1px solid #FF0000'; document.cadastro.dia.focus();  return false;}
		if(document.cadastro.mes.value == "")
		{ alert ("Por favor digite o Mês."); document.cadastro.mes.style.border = '1px solid #FF0000'; document.cadastro.mes.focus();  return false;}
		if(document.cadastro.ano.value == "")
		{ alert ("Por favor digite o Ano."); document.cadastro.ano.style.border = '1px solid #FF0000'; document.cadastro.ano.focus();  return false;}		
		if(document.cadastro.sexo[0].checked == "" && document.cadastro.sexo[1].checked == "")
		{ alert ("Por favor escolha o Sexo."); document.cadastro.sexo[0].style.border = '1px solid #FF0000'; document.cadastro.sexo[1].style.border = '1px solid #FF0000'; document.cadastro.sexo[0].focus();  return false;}	
		if(document.cadastro.cep.value == "")
		{ alert ("Por favor digite o CEP."); document.cadastro.cep.style.border = '1px solid #FF0000'; document.cadastro.cep.focus();  return false;}
		if(document.cadastro.endereco.value == "")
		{ alert ("Por favor digite o Endereço."); document.cadastro.endereco.style.border = '1px solid #FF0000'; document.cadastro.endereco.focus();  return false;}
		if(document.cadastro.numero.value == "")
		{ alert ("Por favor digite o Número do seu Endereço."); document.cadastro.numero.style.border = '1px solid #FF0000'; document.cadastro.numero.focus();  return false;}
		if(document.cadastro.bairro.value == "")
		{ alert ("Por favor digite o Bairro."); document.cadastro.bairro.style.border = '1px solid #FF0000'; document.cadastro.bairro.focus();  return false;}
		if(document.cadastro.cidade.value == "")
		{ alert ("Por favor digite a Cidade."); document.cadastro.cidade.style.border = '1px solid #FF0000'; document.cadastro.cidade.focus();  return false;}
		if(document.cadastro.estado.value == "")
		{ alert ("Por favor selecione o Estado."); document.cadastro.estado.style.border = '1px solid #FF0000'; document.cadastro.estado.focus();  return false;}
		if(document.cadastro.ddd_cel.value == "")
		{ alert ("Por favor digite o DDD."); document.cadastro.ddd_cel.style.border = '1px solid #FF0000'; document.cadastro.ddd_cel.focus();  return false;}
		if(document.cadastro.cel.value == "")
		{ alert ("Por favor digite pelo menos Um Telefone para contato."); document.cadastro.cel.style.border = '1px solid #FF0000'; document.cadastro.cel.focus();  return false;}
		if(document.cadastro.li_aceito.checked == "")
		{ alert ("Por favor confirme a leitura do Regulamento."); document.cadastro.li_aceito.style.border = '1px solid #FF0000'; document.cadastro.li_aceito.focus(); return false;}	

		return true;
	}
	
function MostrarOcultoMix()
	{
		document.getElementById('pagina_onde_fazer_mix_bloco2_bloco2').style.display = 'block';
		document.getElementById('BotaoVerTodosMix').style.display = 'none';
		document.getElementById('BotaoNaoVerTodosMix').style.display = 'block';			
	}
function OcultarOcultoMix()
	{
		document.getElementById('pagina_onde_fazer_mix_bloco2_bloco2').style.display = 'none';
		document.getElementById('BotaoVerTodosMix').style.display = 'block';
		document.getElementById('BotaoNaoVerTodosMix').style.display = 'none';			
	}
	
function MostrarOcultoExperimento()
	{
		document.getElementById('pagina_onde_fazer_experimento_bloco2_bloco2').style.display = 'block';
		document.getElementById('BotaoVerTodosExperimento').style.display = 'none';
		document.getElementById('BotaoNaoVerTodosExperimento').style.display = 'block';			
	}
function OcultarOcultoExperimento()
	{
		document.getElementById('pagina_onde_fazer_experimento_bloco2_bloco2').style.display = 'none';
		document.getElementById('BotaoVerTodosExperimento').style.display = 'block';
		document.getElementById('BotaoNaoVerTodosExperimento').style.display = 'none';			
	}	

function MostrarOcultoEf()
	{
		document.getElementById('pagina_onde_fazer_ef_bloco2_bloco2').style.display = 'block';
		document.getElementById('BotaoVerTodosEf').style.display = 'none';
		document.getElementById('BotaoNaoVerTodosEf').style.display = 'block';			
	}
function OcultarOcultoEf()
	{
		document.getElementById('pagina_onde_fazer_ef_bloco2_bloco2').style.display = 'none';
		document.getElementById('BotaoVerTodosEf').style.display = 'block';
		document.getElementById('BotaoNaoVerTodosEf').style.display = 'none';			
	}	

function MostrarOcultoIe()
	{
		document.getElementById('pagina_onde_fazer_ie_bloco2_bloco2').style.display = 'block';
		document.getElementById('BotaoVerTodosIe').style.display = 'none';
		document.getElementById('BotaoNaoVerTodosIe').style.display = 'block';			
	}
function OcultarOcultoIe()
	{
		document.getElementById('pagina_onde_fazer_ie_bloco2_bloco2').style.display = 'none';
		document.getElementById('BotaoVerTodosIe').style.display = 'block';
		document.getElementById('BotaoNaoVerTodosIe').style.display = 'none';			
	}	

function MostrarOcultoWorldStudy()
	{
		document.getElementById('pagina_onde_fazer_worldstudy_bloco2_bloco2').style.display = 'block';
		document.getElementById('BotaoVerTodosWorldStudy').style.display = 'none';
		document.getElementById('BotaoNaoVerTodosWorldStudy').style.display = 'block';			
	}
function OcultarOcultoWorldStudy()
	{
		document.getElementById('pagina_onde_fazer_worldstudy_bloco2_bloco2').style.display = 'none';
		document.getElementById('BotaoVerTodosWorldStudy').style.display = 'block';
		document.getElementById('BotaoNaoVerTodosWorldStudy').style.display = 'none';			
	}	
function MostrarOcultoIntercultural()
	{
		document.getElementById('pagina_onde_fazer_intercultural_bloco2_bloco2').style.display = 'block';
		document.getElementById('BotaoVerTodosIntercultural').style.display = 'none';
		document.getElementById('BotaoNaoVerTodosIntercultural').style.display = 'block';			
	}

function OcultarOcultoIntercultural()
	{
		document.getElementById('pagina_onde_fazer_intercultural_bloco2_bloco2').style.display = 'none';
		document.getElementById('BotaoVerTodosIntercultural').style.display = 'block';
		document.getElementById('BotaoNaoVerTodosIntercultural').style.display = 'none';			
	}	

function MostrarOcultoZarp()
	{
		document.getElementById('pagina_onde_fazer_zarp_bloco2_bloco2').style.display = 'block';
		document.getElementById('BotaoVerTodosZarp').style.display = 'none';
		document.getElementById('BotaoNaoVerTodosZarp').style.display = 'block';			
	}
function OcultarOcultoZarp()
	{
		document.getElementById('pagina_onde_fazer_zarp_bloco2_bloco2').style.display = 'none';
		document.getElementById('BotaoVerTodosZarp').style.display = 'block';
		document.getElementById('BotaoNaoVerTodosZarp').style.display = 'none';			
	}

/*/////////////////////////////// Função Promoções //////////////////////////////////////////////////////////////////*/

var dvAnterior=null;
	var listaPromo= new Array();
		listaPromo[0]="pagina_promocao_bloco1_ganhadores_img_cyber_model_2008_2009";
		listaPromo[1]="pagina_promocao_bloco1_ganhadores_img_estude_novaiorque";
		listaPromo[2]="pagina_promocao_bloco1_ganhadores_img_simple_plan_vancouver";
		listaPromo[3]="pagina_promocao_bloco1_ganhadores_img_estude_toronto2";
		listaPromo[4]="pagina_promocao_bloco1_ganhadores_img_carteira_motorista2";
		listaPromo[5]="pagina_promocao_bloco1_ganhadores_img_backstreetboys_londres";
		listaPromo[6]="pagina_promocao_bloco1_ganhadores_img_ingles_africa_do_sul";
		listaPromo[7]="pagina_promocao_bloco1_ganhadores_img_los_chicanos";
		listaPromo[8]="pagina_promocao_bloco1_ganhadores_img_jantar_kony";
		listaPromo[9]="pagina_promocao_bloco1_ganhadores_img_runner";
		listaPromo[10]="pagina_promocao_bloco1_ganhadores_img_maevva";
		listaPromo[11]="pagina_promocao_bloco1_ganhadores_img_paraquedas";
		listaPromo[12]="pagina_promocao_bloco1_ganhadores_img_carteirai_motorista";
		listaPromo[13]="pagina_promocao_bloco1_ganhadores_img_mix_festival_2007";
		listaPromo[14]="pagina_promocao_bloco1_ganhadores_img_maroon_five_paris";
		listaPromo[15]="pagina_promocao_bloco1_ganhadores_img_estude_toronto";
		listaPromo[16]="pagina_promocao_bloco1_ganhadores_img_cyber_model_2007_2008";
		listaPromo[17]="pagina_promocao_bloco1_ganhadores_img_beyonce_los_angeles";
		listaPromo[18]="pagina_promocao_bloco1_ganhadores_img_link_park_my_chemical_romance";
		listaPromo[19]="pagina_promocao_bloco1_ganhadores_img_jota_quest_detonautas";
		listaPromo[20]="pagina_promocao_bloco1_ganhadores_img_marcelo_d2";
		listaPromo[21]="pagina_promocao_bloco1_ganhadores_img_playstation3";
		

	function MostrarOcultoPromo(valor){
		document.getElementById(listaPromo[valor]).style.display = 'block';
		if(dvAnterior!=null && dvAnterior!=valor){
			document.getElementById(listaPromo[dvAnterior]).style.display="none";
		}
		dvAnterior=valor;
	}
	
/*/////////////////////////////// FIM Função Promoções //////////////////////////////////////////////////////////////////*/

/*/////////////////////////////// Função Descontos //////////////////////////////////////////////////////////////////*/

var descontoAnterior=null;

	function MostrarOcultoDescontos(valor){
		document.getElementById('pagina_descontos_descontos_detalhes' + valor).style.display = 'block';
		if(descontoAnterior!=null && descontoAnterior!=valor){
			document.getElementById('pagina_descontos_descontos_detalhes' + descontoAnterior).style.display="none";
		}
		descontoAnterior=valor;
	}
	
/*/////////////////////////////// FIM Função Descontos //////////////////////////////////////////////////////////////////*/


function teste(){
	for(i in document.getElementById("testeteste").style ){
		alert(i);
	}
}

function teste2()
{
	/*document.getElementById("testeteste").style.maxWidth='4000px';
	*/alert('teste');
}

function printPlayer (strObject) {
	document.write(strObject);
}