// I'm Richard Shepherd
// I wrote this simple plugin
// Marvel at it's AWESOMENESS!!!

(function($) {

	// Set up the defaults for the function 'glassTabber'
	$.glassTabber = {
	
	}
	
	// Define our new function (plugin) 'glassTabber'
	$.fn.extend({
	
		glassTabber: function(config) {
		
			// Get any options
			var config = $.extend({}, $.glassTabber.defaults, config);
			
			var firstOption = config.firstOption;
			var secondOption = config.secondOption;
			
			// for each thing that's selected
			return this.each(function() {
			
				var theObject = $(this);
				
				theObject
					$(this).click(function() {
						$(this).removeClass('not-selected');									  
						$(this).addClass('selected');									  									  
						$(this).siblings().removeClass('selected');
						$(this).siblings().addClass('not-selected');		
						$('.search-container').hide();
						$('#search-form-' + $(this).attr('id')).show();
					});
					
				
			}) // end this.each function
		
		} // end function(config)
		
	}) // end $.fn.extend

}) (jQuery);
