(function($) { 
    
	$.fn.initAmenitiesToggle = function(opts) {
	    
	    var defaults = {},
	        options = $.extend(true, {}, defaults, opts);
		
		return this.each(function() { 
		    
            $(this).click(function() { 
                
                var $this = $(this);
                    tblId = $(this).attr('id').replace(/link/g,'room'),
                    tbl = $('#' + tblId);
                
                tbl.slideToggle(
                    400,
                    function() {  
                        $this
                            .html(($this.html() == 'Hide Room Amenities' ? 'Show' : 'Hide') + ' Room Amenities')
                            .blur();   
                    }
                );
                return false;
            });    
            
 
		}); 
	}   

})(jQuery);

