(function($){

	$.fn.fgxSliderSearch = function(options){
	
		var opts = $.fn.extend({},$.fn.fgxSliderSearch.defaults, options);
		
		return this.each(function(){
				$this = $(this);
		
				$(opts.panel).animate({
					height: "0px"
				}, "fast",function(){
					$(this).hide();
					
				});
				
				$(opts.panelButton).click(function(){
					$(opts.panel).animate({
						height: (opts.panelHeight + opts.easing) + "px"
					})
					.animate({
						height: opts.panelHeight + "px"
					}, "fast");
					$(opts.panelButton).toggle();
				
				});	
				
			   $(opts.hideButton).click(function(){
				   
					$(opts.panel).animate({
						height: "0px"
					}, "fast",function(){
						$(this).hide();
						
					});
				
				
			   });	
		});
	
	};//fgxSliderSearch
	
		
 $.fn.fgxSliderSearch.defaults = {
		 panel : "#panel",
		 panelHeight: 50,
		 easing: 20,
		 panelButton: ".panel_button",
		 hideButton : "#hide_button"
		 
  };//defaults
	
})(jQuery);

