// JavaScript Document
//var currentId = "";
//var currentVdo = "";
//var myInterval="";
var activo="";
//
//function loadSem(idSem){
//	
//	alert(sem);
//	// $('#cont_info').load('secciones/sem.php?id_sem='+idSem);
//	
//		$.ajax({
//		
//				url:'secciones/sem.php?id_sem='+idSem,
//				
//				success: function(){
//					
//		
//					
//				$('.boton').click(function() {
//						
//						if($(activo).attr('id') != ""){
//							
//							$(activo).next().slideToggle('normal');
//						
//						};
//						
//						if($(this).attr('id') == $(activo).attr('id')){
//							
//							activo="";
//							
//						}else{
//							
//							$(this).next().slideToggle('normal',function(){showVdo();});
//							 
//							
//							 activo=this;	
//							
//							};
//							
//						direccion=$(this).children().attr('href');
//				
//						if(direccion!="javascript:void(0)"){
//						   document.location(direccion);
//						}
//						
//						return false;
//				});
//					
//			
//				   if(nota && nota != ""){
//					
//					  sub_activo=activarMenu(nota);
//					  currentId = nota;
//					  activo = sub_activo;
//					  showVdo();
//					  
//				   }
//		   }
//		})
//
//
//}

//window.onload=function(){
//		$("div#mlateral-contenido").height($("div#derecha").height());
//	}

//////////////////////////////////////////////////////////////////////////////////////
/// para activar el menu de la pagina que estoy viendo
//////////////////////////////////////////////////////////////////////////////////////
//function activarMenu(sec){
//	
//	if(sec!="none"){
//		
//		$('#sec'+sec).next().slideToggle('normal');
//		
//		return $("#sec"+sec+".boton");
//		
//	}
//}
//
//function idVdo(id){
//	if(currentId != ""){
//	   $('#myVdo'+currentId).hide();
//	}
//	currentId = id;
//}
//
//function showVdo(){
//	$('#myVdo'+currentId).show();
//	
//	currentVdo = $('#myVdo'+currentId);
//	
//}
$(function(){
  $('.boton').click(function() {
						  
	  if($(activo).attr('id') != ""){
		  
		  $(activo).next().slideToggle('normal');
	  
	  };
	  
	  if($(this).attr('id') == $(activo).attr('id')){
		  
		  activo="";
		  
	  }else{
		  
		  $(this).next().slideToggle('normal');
		   
		  
		   activo=this;	
		  
		  };
		  
	  /*direccion=$(this).children().attr('href');
  
	  if(direccion!="javascript:void(0)"){
		 document.location(direccion);
	  }*/
	  
	  return false;
  });
})
