	
	jQuery.fn.showToggle = function(conf) {
		return this.each(function() {
		
			var showSel = conf.showSelector;
		
			if (conf.startHidden) {
				// Start with all links hidden.
				$(this).siblings(showSel).hide();
			}
		
			$(this).bind('click', function() {
				// If only one element can be viewed at once hide everything 
				// on first and then show or hide the clicked item.
				if (conf.oneAtATime) {
					$(showSel).slideUp();
				}
			
				// Show or hide the element depending on if it is already hidden or not.
				$(this).siblings(showSel).each(function() {
					if ($(this).is(":hidden")) {
						$(this).slideDown(conf.speed, conf.onShow);
					} else {
						$(this).slideUp(conf.speed, conf.onHide);
					}
				});
			});
		});
	};
