
function cambio_URL(_url){
  try{
  document.getElementById("Contenido").height = 530;
  }catch(err) {  }

   switch (_url)
   {
   case "Presentacion":
	   top.Contenido.location = "inc/Presentacion.html";
	  break;
   case "Inscripcion":
	   top.Contenido.location = "inc/Inscripcion.html";
	  break;
   case "Inscripcion1":
	   top.Contenido.location = "Inscripcion.html";
	  break;
   case "pTrabajos":
	   top.Contenido.location = "inc/pTrabajos.html";
	  break;
   case "Cursos":
	   top.Contenido.location = "inc/Cursos.html";
	  break;
   case "Cursos1":
	   top.Contenido.location = "Cursos.html";
	  break;
   case "Programa":
	   top.Contenido.location = "inc/Programa.html";
	  break;
   case "Programa1":
	   top.Contenido.location = "Programa.html";
	  break;
   case "COrganizador":
	   top.Contenido.location = "inc/COrganizador.html";
	  break;
   case "CCientifico":
	   top.Contenido.location = "inc/CCientifico.html";
	  break;
   case "Ubicacion":
	   top.Contenido.location = "inc/Ubicacion.html";
	  break;
   case "VAlojamiento":
	   top.Contenido.location = "inc/VAlojamiento.html";
	  break;
   case "Descargas":
	   top.Contenido.location = "inc/Descargas.html";
	  break;
   case "ResComunicacion":
	   top.Contenido.location = "ResumenComunicacion.asp";
	  break;
   case "Colaboran":
	   top.Contenido.location = "inc/Colaboran.html";
	  break;
   case "Actividades":
	   top.Contenido.location = "inc/ActividadesParalelas.html";
	  break;
   case "Noticias":
	   top.Contenido.location = "inc/Noticias.html";
	  break;
   case "Noticias1":
	   top.Contenido.location = "Noticias.html";
	  break;
   case "Noticias2":
	   top.Contenido.location = "Noticias2.html";
	  break;
   case "CInvitadas":
	   top.Contenido.location = "inc/CInvitadas.html";
	  break;
  }
}



//Menu

function submenu(item) {
var obj = FindObj(item+'_t');
var obj2 = FindObj(item);
	if (obj.style.display=='') 
	{
		obj.style.display='none'
		obj2.src="images/icono_mas.gif";
	} else {
		obj.style.display=''
		obj2.src="images/icono_menos.gif";
	}
}

//----------------------------------------------------------------------------------------

function FindObj(n, d) { //v4.01
	var p,i,x;
	if(!d) d=document; 
	if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document;
		n=n.substring(0,p);
	}
	if(!(x=d[n])&&d.all)
		x=d.all[n];
	for (i=0;!x&&i<d.forms.length;i++)
		x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++)
		x=FindObj(n,d.layers[i].document);
	if(!x && d.getElementById)
		x=d.getElementById(n);
		return x;
}

//----------------------------------------------------------------------------------------


function ajusta_altos(b) {
	var der= document.getElementById(b);
	if (self.innerWidth){
		frameWidth = self.innerWidth;
		total = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientWidth){
		frameWidth = document.documentElement.clientWidth;
		total = document.documentElement.clientHeight;
	}
	else if (document.body){
		frameWidth = document.body.clientWidth;
		total = document.body.clientHeight;
	}

	total=total-237-34;


	if ((der.clientHeight<=total)) {
		der.style.height=total-20+"px";
	}
}

//--------------------------------------------------------------------------------------------------

var months = new Array(11);

months[0] = "Enero";
months[1] = "Febrero";
months[2] = "Marzo";
months[3] = "Abril";
months[4] = "Mayo";
months[5] = "Junio";
months[6] = "Julio";
months[7] = "Agosto";
months[8] = "Septiembre";
months[9] = "Octubre";
months[10] = "Noviembre";
months[11] = "Diciembre";

function Fecha (){
var weekdays = new Array(6);
var today = new Date();
var date = today.getDate();
var weekday = today.getDay();
var month = today.getMonth();
var year = today.getYear();
if (year <= 99){
	year = year + 1900;
	}

today = null;

weekdays[0] = "Domingo";
weekdays[1] = "Lunes";
weekdays[2] = "Martes";
weekdays[3] = "Miércoles";
weekdays[4] = "Jueves";
weekdays[5] = "Viernes";
weekdays[6] = "Sábado";

//document.write(weekdays[weekday] + ", " + date + " de " + months[month] + " de " + year);
document.write( date + " de " + months[month] + " de " + year);
}
