$(document).ready(function () {

    $(".image").mouseover(function () {
        $(this).find(".show-image-hover").show();
    });
    $(".image").mouseout(function () {
        $(this).find(".show-image-hover").hide();
    });

});

$(document).ready(function () {

	$("#noticias .noticia-list").mouseover(function () {
		$(this).css("background","#29559e");
		$(this).find(".data").css("border-right","1px solid #9bbbee");
		$(this).find(".title a").css("color","#ababad");
	});
	$("#noticias .noticia-list").mouseout(function () {
		$(this).css("background","none");
		$(this).find(".data").css("border-right","1px solid #8A99AE");
		$(this).find(".title a").css("color","#2E5493");
	});
	
	$("#busca .noticia-list:even").css("background","#ededed");
	$("#busca .noticia-list").mouseover(function () {
		$(this).css("background","#29559e");
		$(this).find(".title a").css("color","#ababad");
	});
	$("#busca .noticia-list").mouseout(function () {
		$(this).css("background","#f5f5f5");
		$(this).find(".title a").css("color","#2E5493");
	});
	$("#busca .noticia-list:even").mouseover(function () {
		$(this).css("background","#29559e");
		$(this).find(".title a").css("color","#ababad");
	});
	$("#busca .noticia-list:even").mouseout(function () {
		$(this).css("background","#ededed");
		$(this).find(".title a").css("color","#2E5493");
	});
	
	/* Configurador quinta-roda */
	$("#produtos .configurador .option .select").live('click',function () {
		$(this).find(".open-select").toggle();
	});




    /* Calendário Feiras e Eventos */
	$("#imprensa .calendario-tabela-par:even").css("background", "#e6e6e6");
	$("#imprensa .calendario-tabela-par").mouseover(function () {
		$(this).css("background", "#d9dfef");
	});
	$("#imprensa .calendario-tabela-par").mouseout(function () {
		$(this).css("background", "#f0f0f0");
	});
	$("#imprensa .calendario-tabela-par:even").mouseover(function () {
		$(this).css("background", "#d9dfef");
	});
	$("#imprensa .calendario-tabela-par:even").mouseout(function () {
		$(this).css("background", "#e6e6e6");
	});

    $("#imprensa .calendario-tabela-plus p.ver-detalhes").click(function () {
        if ($(this).parent(".calendario-tabela-plus").parent(".calendario-tabela-conteudo").find(".calendario-tabela-par").find(".detalhes").css("display") == "none") {
            $(this).parent(".calendario-tabela-plus").parent(".calendario-tabela-conteudo").find(".calendario-tabela-par").find(".detalhes").slideDown("slow");
            $(this).text("x");
            $(this).addClass("fechar");
        } else {
            $(this).parent(".calendario-tabela-plus").parent(".calendario-tabela-conteudo").find(".calendario-tabela-par").find(".detalhes").slideUp("slow");
            $(this).text("+");
            $(this).removeClass("fechar");
        }
    });
	
	/* Distribuidores */
	$("#distribuidores .resultado:even").css("background","#e8e8e8");
	
	$("#distribuidores .resultado p.ver-detalhes").click(function() {
		if($(this).prev("#distribuidores .resultado .mapa-detalhes").css("display") == "none"){
			$(this).prev("#distribuidores .resultado .mapa-detalhes").slideDown("slow");
			$(this).text("FECHAR DETALHES");
			$(this).addClass("fechar");
		}else{
			$(this).prev("#distribuidores .resultado .mapa-detalhes").slideUp("slow");
			$(this).text("VER DETALHES");
			$(this).removeClass("fechar");
		}
});



    $("#top a.icon-en").live('mouseover', function () {
        $(".face-tip.alert-en").stop(true, true).fadeIn("fast");
    });
    $("#top a.icon-en").live('mouseout', function () {
        $(".face-tip.alert-en").stop(true, true).fadeOut("fast");
    });

    $("#top a.icon-es").live('mouseover', function () {
        $(".face-tip.alert-es").stop(true, true).fadeIn("fast");
    });
    $("#top a.icon-es").live('mouseout', function () {
        $(".face-tip.alert-es").stop(true, true).fadeOut("fast");
    });

});





