$(function() {
	// Oculta todo el contenido menos el primero
	$('#vaccordion li:odd:gt(0)').hide();
	
	// A&ntilde;ade un margen al primer elemento
	$('#vaccordion li:first').animate( {
		paddingLeft:"30px"
	} );
	
	// A&ntilde;ade la clase dimension a todo el contenido
	$('#vaccordion li:odd').addClass('dimension');
	
	// Establece los enlaces a la clase 'even'
	$('#vaccordion li:even:even').addClass('even');
	
	// Set the odd links with a 'odd' class
	$('#vaccordion li:even:odd').addClass('odd');
	
	// Show the correct cursor for the links
	$('#vaccordion li:even').css('cursor', 'pointer');
	
	// Handle the click event
	$('#vaccordion li:even').click( function() {
		// Get the content that needs to be shown
		var cur = $(this).next();
		
		// Get the content that needs to be hidden
		var old = $('#vaccordion li:odd:visible');
		
		// Make sure the content that needs to be shown 
		// isn't already visible
		if ( cur.is(':visible') )
			return false;
		
		// Hide the old content
		old.slideToggle(500);
		
		// Show the new content
		cur.stop().slideToggle(500);
		
		// Animate (add) the padding in the new link
		$(this).stop().animate( {
			paddingLeft:"30px"
		} );
		
		// Animate (remove) the padding in the old link
		old.prev().stop().animate( {
			paddingLeft:"10px"
		} );
	} );
});
