$(function(){
    $("#form_contactar").submit(function(){
        var noHayError = true;
        $("#label_email, #label_comentarios").removeClass("error");
        if(!$("#email").val() || !/.+@.+\..+/.test($("#email").val())){
            $("#label_email").addClass("error");
            noHayError = false;
        }
        if(!$("#comentarios").val()){
            $("#label_comentarios").addClass("error");
            noHayError = false;
        }
        return noHayError;
    });
    $("IMG.img_pdf").mouseover(function(){
        this.setAttribute("src","img/pdf_verde.gif");
    }).mouseout(function(){
        this.setAttribute("src","img/pdf.gif");
    });
    if($.browser.msie && /^(6\.|5\.|4\.)/.test($.browser.version)){
        $('#columna_menu, #td_inferior').css("background-image","");
        $("#div_interior").css("height",'520px');
    }
    if($.browser.msie && /^(8\.|7\.|6\.|5\.|4\.)/.test($.browser.version)){
        $('#boton_enviar').css("left","4px");
    }
    if($.browser.msie && /^(7\.|6\.|5\.|4\.)/.test($.browser.version)){
        $('IMG.img_inferior').css("top","1px");
    }
});