/* **********************************************************************************
* 
* @Overview: Plug-in
* @Author: Victor Oreliana F. Faria
* @Name: tiptip
* @Made on: 27/05/2011
* @Last update: 27/05/2010 
*
*************************************************************************************/
;(function($){		   
$.fn.tiptip = function(options){

	var settings = {
		'tiptipLeft' : (this.offset().left + this.width()*.75)
		,'tiptipTop' : (this.offset().top  + 20)
		,'html' : this.attr('title')
	}

	return this.each(function() {        
      if (options)  $.extend( settings, options);
     });

	$(this).append('<div class="tiptip" style="position:absolute; z-index:1000; display:none;">'+settings.html+'</div>')
	$(this).bind('mouseover mouseout',function(){

		var e = $(this).find('.tiptip');
		e.css({
			'left': settings.tiptipLeft
			,'top' : settings.tiptipTop			
		});
		
		e.css('display') == 'none' ? e.show() : e.hide();
	});
};
})(jQuery);
