(function($)
{
	var methods = 
	{
    	init : function(options) 
    	{      	
    		$(this).children().children("div").hide();
    		$(this).children().children("a").bind("click",methods.open);
   		},
   		open : function(e)
   		{   		
   			$(this).parent().parent().children().children("div").slideUp();
   			$(this).siblings("div").slideDown();
   		
   		}
 	};
 	 
 	$.fn.accordeon = function(method) 
 	{
    	if (methods[method]) 
    	{
			return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
		} 
		else if (typeof method === 'object' || ! method) 
		{
			return methods.init.apply(this, arguments);
		} 
		else 
		{
			$.error('Method ' +  method + ' does not exist on jQuery.litebox');
    	}    
  	};

})(jQuery);
