(function($){
	$.tooltip = function(obj, text, offset){
		jQuery('#site_tooltip').show();
		jQuery('#site_tooltip').css('top', jQuery(obj).offset().top - offset);
		jQuery('#site_tooltip').css('left', jQuery(obj).offset().left);
		jQuery('#site_tooltip #tooltip_middle').html(text);
        return this;
    }
    $.fn.tooltip = function(text, offset){
        
        this.each(function(){
            new $.tooltip(this, text, offset);
        });
        return this;
    }
    
})(jQuery);


