$(window).load(function(){$("#loading").fadeOut("medium");setTimeout(function(){$("#footer").fadeIn("medium")},1000)});$(document).ready(function(){$("#m_noticias").addClass("hilight");$.localScroll.hash();$.localScroll();$("#carruselpub").jcarousel({scroll:4});$("#carruselnwsltr").jcarousel({scroll:4});$(".foto_noticia img, .desc_noticia a").hover(function(){$(this).parents("div:first").parents("div:first").find(".title_noticia a").addClass("hilight")},function(){$(this).parents("div:first").parents("div:first").find(".title_noticia a").removeClass("hilight")});$(".nwsltr_item img, .enlace img").hover(function(){$(this).parents("div:first").find("a").addClass("hilight")},function(){$(this).parents("div:first").find("a").removeClass("hilight")});$("a[rel^='prettyPopin']").prettyPopin({width:750});$("#nwsltr_button").click(function(){var a;var b=$("#nwsltremail").val();if(b){if($("#idioma_hid").val()=="es"){a="El usuario manifiesta estar de acuerdo con la política de privacidad de arturo-alvarez.com"}else{a="The user accepts the privacy policy specified in arturo-alvarez.com"}if(confirm(a)){var c="email="+b;$.ajax({type:"POST",url:"/formulario.php?tipo=newsletter&accion=alta",data:c,success:function(d){if(document.getElementById("messagebox")){$("#messagebox").html(d)}else{$("<div/>").hide().attr("id","messagebox").html(d).appendTo("body")}$.blockUI({message:$("#messagebox"),overlayCSS:{cursor:"auto"}});$("#btn_cerrar").click($.unblockUI);$(".blockOverlay").click($.unblockUI)},error:function(d,f,e){if($("#idioma_hid").val()=="es"){a="Ha ocurrido un error procesando su petición."}else{a="There was an error while processing your request."}alert(a)}})}return false}else{if($("#idioma_hid").val()=="es"){a="Debes introducir una dirección de email."}else{a="You should enter an email address."}alert(a);return false}})});