/**
 * jQuery.showTip
 * Copyright (c) 2007 James Guerin - nocopy(at)gmail(dot)com
 * Licensed under GPL license (http://www.opensource.org/licenses/gpl-license.php).
 * Date: 10/05/2007
 *
 * @projectDescription Easy Inline Tips.
 * Compatible with jQuery 1.2, tested on Firefox 2.0.0.7, and IE 6, both on Windows.
 *
 * @author James Guerin
 * @version 1.0
 **/
(function( $ ){
	$.fn.showTip = function( tip, tipclass, tipcolor ){		
		removeTip2 = function(){
			$(this).empty();
		};
		return this.each(function(){
			if($(this+":parent")){
				$(this).empty();
			}		
			$(this).append('<p class="'+tipclass+'">'+tip+'</p>');
			$("."+tipclass).animate({ backgroundColor: tipcolor }, 1000).pause(10000).animate({ backgroundColor: "#F2F2F2", opacity: 'toggle'}, 500, removeTip2);	
		});
	};	
})( jQuery );

