﻿	$(document).ready(function(){
	    // EN EL READY OCULTA TODOS LOS DD MENOS EL PRIMERO
		$("#menuslide dd").hide();
		$("#menuslide dt").addClass("optdesactivado");				
		// ANEXA EVENTO CLICK DEL TAG DT
	
		
		$("#menuslide dt").click(function(){
            // REALIZA ANIMACION DE LOS DD
			$("dd:visible").slideUp("slow");
			$("dd:visible").hide();
			//$(this).next().slideDown("slow");
			// QUITA ACTIVADO A TODAS LAS OPCIONES DT Y AÑADE DESACTIVADO
			$("#menuslide dt").removeClass("optactivado");
			$(this).next().show("slow");
			$("#menuslide dt").addClass("optdesactivado");
			$(this).removeClass("optdesactivado");
			//$(this).pop()
            // PONE COMO ACTIVADO LA OPCION ELEGIDA
			$(this).addClass("optactivado");
			return false;
	               	
		}
		);
	
         
          	
		/*$("#menuslide dt").onmouseout(function(){
		$(this).addClass("optdesactivado");
		$(this).next().hide("true");
		
		}
		);*/
            
	});
	
	
	
	/*
	$(document).ready(function () {

$(’LI.drawer UL:not(:first)’).hide();

$(’LI.drawer UL:first’).addClass(’open’);

$(’H2.drawer-handle’).click(function () {

$(’LI.drawer UL:visible’).hide();

$(’H2.open’).removeClass(’open’);

$(this).next().show(”slow”);

$(this).addClass(’open’);
});
});*/

