this.screenshotPreview=function(){xOffset=-10;yOffset=-5;$(".dialogo").mouseover(function(e){var c=this.id;$("body").append("<p id='dialogo'>"+c+"</p>");var capa=$("#dialogo");$.ajax({beforeSend:function(){capa.html("Cargando...")},type:"POST",url:"ajax.php",data:"opc=Actividades&fecha="+c,success:function(msg){capa.html(msg)}});$("#dialogo").css("top",(e.pageY-xOffset)+"px").css("left",(e.pageX+yOffset)+"px").fadeIn("fast")});$(".dialogo").mousemove(function(e){$("#dialogo").css("top",(e.pageY-xOffset)+"px").css("left",(e.pageX+yOffset)+"px")});$(".dialogo").mouseout(function(e){$("#dialogo").remove()});$(".dialogo2").mouseover(function(e){var c=this.id;$("body").append("<p id='dialogo'>"+c+"</p>");var capa=$("#dialogo");$.ajax({beforeSend:function(){capa.html("Cargando...")},type:"POST",url:"ajax.php",data:"opc=Actividades_details&id="+c,success:function(msg){capa.html(msg)}});$("#dialogo").css("top",(e.pageY-xOffset)+"px").css("left",(e.pageX+yOffset)+"px").fadeIn("fast")});$(".dialogo2").mousemove(function(e){$("#dialogo").css("top",(e.pageY-xOffset)+"px").css("left",(e.pageX+yOffset)+"px")});$(".dialogo2").mouseout(function(e){$("#dialogo").remove()})};this.tooltip=function(){xOffset=10;yOffset=10;w_width=$("body").width();w_height=$("body").height();w_limit=0;h_limit=0;$("a.screenshot").hover(function(e){this.t=this.title;this.title="";var c=(this.t!="")?""+this.t:"";$("body").append("<div id='screenshot'>"+c+"</div>");if((w_width-e.pageX)<w_limit){$("#screenshot").css("left",(e.pageX-w_limit)+"px")}else{$("#screenshot").css("left",(e.pageX+yOffset)+"px")}if((w_height-e.pageY)<h_limit){$("#screenshot").css("left",(e.pageX-w_limit)+"px")}else{$("#screenshot").css("left",(e.pageX+yOffset)+"px")}$("#screenshot").css("top",(e.pageY-xOffset)+"px").fadeIn("fast")},function(){this.title=this.t;$("#screenshot").remove()});$("a.screenshot").mousemove(function(e){if((w_width-e.pageX)<w_limit){$("#screenshot").css("left",(e.pageX-w_limit)+"px")}else{$("#screenshot").css("left",(e.pageX+yOffset)+"px")}if((w_height-e.pageY)<h_limit){$("#screenshot").css("top",(e.pageY-(h_limit))+"px")}else{$("#screenshot").css("top",(e.pageY-xOffset)+"px")}$("#screenshot").fadeIn("fast")})};
