function initMenus() {
	$('ul.menu ul').hide();
	$.each($('ul.menu'), function(){
		$('#' + this.id + '.expand_sport ul#expand_sport').show();
		$('#' + this.id + '.expand_turismo ul#expand_turismo').show();
		$('#' + this.id + '.expand_destinos ul#expand_destinos').show();
		$('#' + this.id + '.expand_deporte ul#expand_deporte').show();
;
	});
	$('ul.menu li a').click(
		function() {
			var checkElement = $(this).next();
			var parent = this.parentNode.parentNode.id;

			if($('#' + parent).hasClass('noaccordion')) {
				$(this).next().slideToggle('normal');
				return false;
			}
			
			// colapsa si esta abajo
			
			if((checkElement.is('ul#expand_sport')) && (checkElement.is(':visible'))) {
				if($('#' + parent).hasClass('collapsible')) {
					$('#' + parent + ' ul#expand_sport:visible').slideUp('normal');
				}
				return false;
			}
			
			if((checkElement.is('ul#expand_turismo')) && (checkElement.is(':visible'))) {
				if($('#' + parent).hasClass('collapsible')) {
					$('#' + parent + ' ul#expand_turismo:visible').slideUp('normal');
				}
				return false;
			}
			
			if((checkElement.is('ul#expand_destinos')) && (checkElement.is(':visible'))) {
					$('#' + parent + ' ul#expand_destinos:visible').slideUp('normal');
				return false;
			}
			
			if((checkElement.is('ul#expand_deporte')) && (checkElement.is(':visible'))) {
					$('#' + parent + ' ul#expand_deporte:visible').slideUp('normal');
				return false;
			}	
			
			// slide up si esta abajo
			
			if((checkElement.is('ul#expand_sport')) && (!checkElement.is(':visible'))) {
				$('#' + parent + ' ul#expand_sport:visible').slideUp('normal');
				checkElement.slideDown('normal');
				return false;
			}
			
			if((checkElement.is('ul#expand_turismo')) && (!checkElement.is(':visible'))) {
				$('#' + parent + ' ul#expand_turismo:visible').slideUp('normal');
				checkElement.slideDown('normal');
				return false;
			}
			
			if((checkElement.is('ul#expand_destinos')) && (!checkElement.is(':visible'))) {
				$('#' + parent + ' ul#expand_destinos:visible').slideUp('normal');
				checkElement.slideDown('normal');
				return false;
			}
			
			if((checkElement.is('ul#expand_deporte')) && (!checkElement.is(':visible'))) {
				$('#' + parent + ' ul#expand_deporte:visible').slideUp('normal');
				checkElement.slideDown('normal');
				return false;
			}
						
		}
	);
}
$(document).ready(function() {initMenus();});