$(document).ready(function(){$(".portada_wrapper a[rel]").each(function(){$(this).qtip({content:{text:'<img src="'+$(this).attr("rel")+'" />',title:{text:"Portada Ampliada",button:"Cerrar"}},position:{target:$(document.body),corner:"center"},show:{when:"click",solo:true},hide:false,style:{width:{max:500},padding:"14px",border:{width:9,radius:9,color:"#666666"},name:"dark"},api:{beforeShow:function(){$("#qtip-blanket").fadeIn(this.options.show.effect.length)},beforeHide:function(){$("#qtip-blanket").fadeOut(this.options.hide.effect.length)}}})});$('<div id="qtip-blanket">').css({position:"absolute",top:$(document).scrollTop(),left:0,height:$(document).height(),width:"100%",opacity:0.7,backgroundColor:"black",zIndex:5000}).appendTo(document.body).hide()});