jQuery.fn.tooltips = function(locacion, tipo){
	jQuery.elemPos = jQuery(this).offset();
	jQuery.width = jQuery(this).width();
	jQuery.ID = jQuery(this).attr("id");
	jQuery.elem = jQuery(this);
	jQuery.window = jQuery("body").width();
	jQuery.ajax({
		type: "GET",
		url: locacion,
		data:"tip="+jQuery.ID,
		async: false,
		ifModifield:true,
		success: function(tip){
			jQuery("body").append("<div class='tooltip' id="+tipo+"><img src='/images/v2/globo_prt.png' />\
								  <div class='borderContent'><div class='tipContent'>"+tip+"</div></div></div>");
			var top = jQuery.elemPos.top-10;
			var left = (jQuery.elemPos.left + jQuery.width) + 10;
			var width = (jQuery.window - left) - 5;
			if (width >= 200) {
				width = 200;	
			}
			jQuery(".tooltip").css({
				position: "absolute",
				top: top,
				left: left,
				width: width,
				zIndex: "1000"
			});
			jQuery(".tooltip").fadeIn(200);
		}
	});
};
function removeTooltips() {
	jQuery(".tooltip").fadeOut(200).remove();
	$j.tt = "abrir";
}
