if(navigator.appName!='Microsoft Internet Explorer')
{
DD_roundies.addRule('#consulte', '7px', true);
DD_roundies.addRule('.central-bt', '7px 0 0 7px', true);
DD_roundies.addRule('.contato-bt', '0 7px 7px 0', true);
}

var varVerListaHoteis;
tLista = "550";
var nav = navigator.userAgent.toLowerCase();
if(nav.indexOf("mozila") != -1 || nav.indexOf("firefox") != -1){
	tLista = "660";
}
if(nav.indexOf("chrome") != -1){
	tLista = "610";
}
function fecharListaHoteis(){
	$("#contListaHoteis").show().stop(true, true).animate({"height": "10"}, "slow", function(){
		$(this).hide();

		$("#fecharIconMais").show();
		$("#fecharIconMenos").hide();
	});
}
function play(){
	$("#contListaHoteis").show().animate({"height": tLista}, "slow");
	varVerListaHoteis = true;	
	$("#fecharIconMais").hide();
	$("#fecharIconMenos").show();
}	
$(document).ready(function(){
	$("#hoteisbox").click(function(){
		$("#troca-destino").hide();						   
		$("#troca-hotel").show();
	});
	$("#destinosbox").click(function(){
		$("#troca-destino").show();						   
		$("#troca-hotel").hide();
	});
	$("#localalegre").click(function () {
		$("#ullistars").slideToggle(200);
	});
	$("#fecharIconMenos").hide();
	$("#botListaHoteis").mouseenter(function(){
		play();	
	});
});

function validaForm(){
    d = document.testform;			
    if (d.hotel.value == ""){
    	
        if(d.destino.value == "" && d.hotelDest.value == ""){
        	alert("Um Hotel ou Destino precisa ser selecionado!");
        	d.hotel.focus();
            return false;
        }     	
    } else if (d.dtInicio.value == ""){   
    	alert("Selecione uma data inicial!");
    	d.dtInicio.focus();
           return false;
    } else if (d.dtFim.value == ""){
        alert("Selecione uma data final!");
        d.dtFim.focus();
           return false;
    }
}
retro = function (event) {
    if ($(event.target).parents('#mapaamerica').length === 0) {
        $('#ullistars').slideUp(150);
    }
};
$(document).mousedown(retro);
