function fecharPaises(){
	document.getElementById('paises').style.display = 'none';
}
function abrirPaises(){
	document.getElementById('paises').style.display = 'block';
}


	// Abre jQuery

$(document).ready(function() {
    // imagem de sombra
    $("#nav-shadow li").append('<img class="shadow" src="img/icons-shadow.jpg" width="90" height="10" alt="" />');
    // animação dos botões
    $("#nav-shadow li").hover(function() {
        var e = this;
        $(e).find("a").stop().animate({ marginTop: "-22px" }, 300, function() {
            $(e).find("a").animate({ marginTop: "-17px" }, 300);
        });
        $(e).find("img.shadow").stop().animate({ width: "90px", height: "10px", marginLeft: "0", opacity: 0.30 }, 300);
    }, function() {
        var e = this;
        $(e).find("a").stop().animate({ marginTop: "6px" }, 300, function() {
            $(e).find("a").animate({ marginTop: "0px" }, 300);
        });
        $(e).find("img.shadow").stop().animate({ width: "90px", height: "10px", marginLeft: "0", opacity: 1 }, 300);
    });

    //Default Action
    $(".tab_content").hide(); //Hide all content
    $("ul.tabs1 li:first").addClass("active").show(); //Activate first tab
    $(".tab_content:first").show(); //Show first tab content

    //On Click Event
    $("ul.tabs1 li").mouseover(function() {
        $("ul.tabs1 li").removeClass("active"); //Remove any "active" class
        $(this).addClass("active"); //Add "active" class to selected tab
        $(".tab_content").hide(); //Hide all tab content
        var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
        $(activeTab).fadeIn(600); //Fade in the active content
        return false;
    });

    var move = -15;
    var zoom = 1.2;
    $('.zitem').hover(function() {
        width = $('.zitem').width() * zoom;
        height = $('.zitem').height() * zoom;
        $(this).find('img').stop(false, true).animate({ 'width': width, 'height': height, 'top': move, 'left': move }, { duration: 200 });
        //Display the caption
        $(this).find('div.caption').stop(false, true).fadeIn(200);
    },
	function() {
	    $(this).find('img').stop(false, true).animate({ 'width': $('.zitem').width(), 'height': $('.zitem').height(), 'top': '0', 'left': '0' }, { duration: 100 });
	    $(this).find('div.caption').stop(false, true).fadeOut(200);
	});
    // fecha jQuery
});

	function toggleDiv(id,flagit) {
	if (flagit=="1"){
	if (document.layers) document.layers[''+id+''].visibility = "show"
	else if (document.all) document.all[''+id+''].style.visibility = "visible"
	else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
	}
	else
	if (flagit=="0"){
	if (document.layers) document.layers[''+id+''].visibility = "hide"
	else if (document.all) document.all[''+id+''].style.visibility = "hidden"
	else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
	}};
	
	
	
