
function cataMunicipios() {

		var estado = document.frm_estado.estado.value;
		var fonte = 'processo/municipios.asp?estado='+estado;
		if(versaoIE<7){fonte = 'processo/municipiosIE6.asp?estado='+estado;}
		//fonte = 'municipios.html';
		$('#escolha_municipios').html("AGUARDE...");
		$('#escolha_municipios').load(fonte,function(){
			if(estado==3||estado==8||estado==11||estado==14||estado==18){
				if(versaoIE<7){
					document.location.href="antiga.asp?estado=" + estado;
				}
				else{
					document.location.href="previsao.asp?estado=" + estado;
				}
			}
		});
	}


function cataPais() {

		var pais = document.frm_pais.pais.value;
		var fonte = 'processo/litorais_paises.asp?pais='+pais;
		if(versaoIE<7){fonte = 'processo/litorais_paisesIE6.asp?pais='+pais;}
		//fonte = 'municipios.html';
		$('#escolha_pais').html("AGUARDE...");
		if(pais==21||pais==25||pais==26||pais==29||pais==30||pais==34||pais==35||pais==36||pais==40||pais==47||pais==50||pais==53||pais==54){
				if(versaoIE<7){
					document.location.href="antiga.asp?pais=" + pais;
				}
				else{
					document.location.href="previsao.asp?pais=" + pais;
				}
		}
		else{
			$('#escolha_pais').load(fonte);
		}
	}

function mudaMundo(tipo){
	var sigla = new Array("","h","p","v");
	document.mundo.src = "/oceanos/m"+sigla[tipo]+"0.png";
	for(var c = 1; c<= 3; c++){
		if(c!=tipo){
			document.getElementById('botaoMundo'+c).className='';
			document.getElementById('escalaMundo'+c).style.display='none';			
		}
		else{
			document.getElementById('botaoMundo'+c).className='selected';			
			document.getElementById('escalaMundo'+c).style.display='block';			
		}
	}
}


function mare(){ 
		 var u = document.frm_estacao.mares.value; 
		 var url = "http://www.surfguru.com.br/estat/pagestat.asp?id=9&station=" + u ; 
		 win=window.open(url,u); 		 
}

function cond(){ 
		 var u = document.frm_estacao.station.value; 
		 var url = "http://www.surfguru.com.br/estat/pagestat.asp?id=8&station=" + u ; 
		 win=window.open(url,u); 
}

