jQuery.fn.hideShow = function(opts) {
		var default_values = {
			multi_triggers: false,
			trigger_div: '',
			parent_div: '',
			div_to_show: '',
			hide_text: 'hide'
		};
		var options = jQuery.extend(default_values, opts);
		return jQuery(this).each(function() {
			
			var showText = jQuery(this).html();
			
			jQuery(this).bind('click', function(){
				showContent(this, showText);
			});
					
		});
		function showContent(elm, text)
		{
			if(jQuery(elm).hasClass('shown'))
			{
				if(options.parent_div !== '') jQuery(elm).parents(options.parent_div).find(options.div_to_show).hide();
				else jQuery(options.div_to_show).fadeOut('normal');
				
				if(options.multi_triggers === true)
				{
					jQuery(elm).parents(options.parent_div).find(options.trigger_div).removeClass('shown');
					jQuery(elm).parents(options.parent_div).find(options.trigger_div).html(text);
				}
				else
				{
					jQuery(elm).removeClass('shown');
					jQuery(elm).html(text);
				}
				
			}
			else
			{
				if(options.parent_div !== '') jQuery(elm).parents(options.parent_div).find(options.div_to_show).show();
				else jQuery(options.div_to_show).fadeIn('normal');
				
				if(options.multi_triggers === true)
				{
					jQuery(elm).parents(options.parent_div).find(options.trigger_div).addClass('shown');
					jQuery(elm).parents(options.parent_div).find(options.trigger_div).html(options.hide_text);
				}
				else
				{
					jQuery(elm).addClass('shown');
					jQuery(elm).html(options.hide_text);
				}
			}
		}

};
