$.fn.extend({bubble:function(a){a=$.extend({left:0,top:0},a);$(this).bind({focus:function(){switch(a.position){case"top":$(this).top(a);break;default:$(this).top(a);break}$(".bubble-close").click(function(){$(".bubble").remove()})},focusout:function(){$(".bubble").remove()}})},top:function(b){var a=$(this).calculateValues(b),d=$.bubble[b.message];var c='<div class="bubble bubble-box-corner-top" style="top: '+a.top+"px; left: "+a.left+"px; width: "+b.width+' "><div class="bubble-close">X</div><div class="bubbleContentText bubble-text-align-center"> '+d+' </div><div class="bubbleArrow bubbleBottomArrow"><div class="bubbleArrowBottomImplBefore"></div><div class="bubbleArrowBottomImplAfter"></div></div></div>';$("body").append(c)},calculateValues:function(c){var e=$(this).getCoordinates(),a=e.position,d=e.offset;var b=new Object();b.top=a.top+c.top,b.left=d.left-c.left;return b},getCoordinates:function(){var a=new Object();a.position=$(this).position();a.offset=$(this).offset();return a}});
