jQuery.noConflict();
jQuery(document).ready(function(){		
 	/* MENU IZQUIERDO FIJO */
		var clase = jQuery("#contenedor").attr("class");

		switch(clase)
		{	
			case 'la-casa':  
				var htmlStr = jQuery("#la-casa").html();
				jQuery(".menu").after("<ul class='titCateg'><li>" + jQuery("#la-casa").prev().text() + ": <ul class='menuPerm'>" + htmlStr + "</li></ul></li></ul>");
				/*jQuery("#la-casa").replaceWith("");*/
			break;
			case 'exposiciones':  
				var htmlStr = jQuery("#exposiciones").html();
				jQuery(".menu").after("<ul class='titCateg'><li>" + jQuery("#exposiciones").prev().text() + ": <ul class='menuPerm'>" + htmlStr + "</li></ul></li></ul>");
				/*jQuery("#exposiciones").replaceWith("");*/
			break;
			case 'actividades':  
				var htmlStr = jQuery("#actividades").html();
				jQuery(".menu").after("<ul class='titCateg'><li>" + jQuery("#actividades").prev().text() + ": <ul class='menuPerm'>" + htmlStr + "</li></ul></li></ul>");
				/*jQuery("#actividades").replaceWith("");*/
			break;
			case 'agenda-y-noticias':  
				var htmlStr = jQuery("#agenda-y-noticias").html();
				jQuery(".menu").after("<ul class='titCateg'><li>" + jQuery("#agenda-y-noticias").prev().text() + ": <ul class='menuPerm'>" + htmlStr + "</li></ul></li></ul>");
				/*jQuery("#agenda-y-noticias").replaceWith("");*/
			break;
			case 'educacion':  
				var htmlStr = jQuery("#educacion").html();
				jQuery(".menu").after("<ul class='titCateg'><li>" + jQuery("#educacion").prev().text() + ": <ul class='menuPerm'>" + htmlStr + "</li></ul></li></ul>");
			/*	jQuery("#educacion").replaceWith("");*/
			break;
			default: caption ="default";
		};
			
			/* PARA HACER QUE NO LEA EL MENU LATERAL EN AGENDA Y NOTICIAS */
			jQuery("div#agenda-y-noticias").prev().css({display: "none"});
			
		

	/* MENU DESPLEGABLE */
			var obj = null;	
		
			jQuery('.menu > li').hover(function() {
				if (obj) {
					obj.find('.submenu').fadeOut('fast');
					obj = null;
				} //if
				
				jQuery(this).find('.submenu').fadeIn('fast');
				}, function() {
					obj = jQuery(this);
					obj.find('.submenu').fadeOut('fast');
				});
	/* MENU DESPLEGABLE */


	/* SCROLL */
		jQuery('.day').jScrollPane({scrollbarWidth:5, scrollbarMargin:0});




});

