
jQuery.fn.bubble=function(top,left){$(document.body).append("<div id=\"bubble\"><div></div></div>");var bubble=$("div#bubble");var body=bubble.find("div");this.each(function(){this._title=this.title;this.removeAttribute("title");});this.hover(function(){var offset=getOffset(this);var txt=$(this).find("div.bubbletxt").html()||this._title.replace(",","<br/>");if(txt){body.html(txt);bubble.css({top:(offset[1]+top-bubble.height()+10)+"px",left:(offset[0]+left+45)+"px",visibility:"visible"});}},function(){bubble.css("visibility","hidden");});};function getOffset(o){var top=0,left=0;while(o.offsetParent){top+=o.offsetTop||0;left+=o.offsetLeft||0;o=o.offsetParent;};return[left,top];}
$(document).ready(function(){var userpics=$("a.sqruserpic");var profilepic=$("#profilepicimg");userpics.bubble(0,-18);profilepic.bubble(20,0);});