(function($)
{
    /*
     * jQuery AutoHide
     * Copyright (c) 2009 Parsha Pourkhomami (parshap@gmail.com)
     * Licensed under the MIT license.
     */
    
    $.fn.autohide = function(options)
    {
        this.each(function()
		{
			var hidee = $(this);
			hidee.hide();
			var hider = $("<a href=\"#\" style=\"display: block; margin: .5em; 0;\"><span>Show</span> " + hidee.attr("title") + "</a>");
			hider.click(function()
			{
				hidee.slideToggle("fast", function()
				{
					if (hidee.is(":visible")) 
						$("span", hider).text("Hide");
					else 
						$("span", hider).text("Show");
				});
				return false;
			});
			hidee.before(hider);
		});
    };
    
})(jQuery);