
function muestracapa(nombreCapa){
if (nombreCapa!="")
	{
  if (document.getElementById(nombreCapa).style.display!='block')
  document.getElementById(nombreCapa).style.display='block';
  else
  document.getElementById(nombreCapa).style.display='none';
  }
}

function poner_border(nombreCapa){
}

function sw(loc, titulo, ancho, alto)
{
	options="toolbar=0,Status=0,menubar=0,scrollbars=no,resizable=0,location=0,directories=0,width=" + ancho + ",height=" + alto;
    window.open(loc,titulo,options);
}
function sw2(loc, titulo, ancho, alto)
{
	options="toolbar=0,Status=0,menubar=0,scrollbars=yes,resizable=0,location=0,directories=0,width=" + ancho + ",height=" + alto;
    window.open(loc,titulo,options);
}




var message="Opción deshabilitada, gracias";


function clickIE4(){
  if (event.button==2){
    alert(message);
    return false;
  }
}

function clickNS4(e){
  if (document.layers||document.getElementById&&!document.all){
    if (e.which==2||e.which==3){
      alert(message);
      return false;
    }
  }
}

if (document.layers){
  document.captureEvents(Event.MOUSEDOWN);
  document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
  document.onmousedown=clickIE4;
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		
		academico_over = newImage("/imagenes/academico_over.gif");
		inscripcion_over = newImage("/imagenes/inscripcion_over.gif");
		instalaciones_over = newImage("/imagenes/instalaciones_over.gif");
		becas_over = newImage("/imagenes/becas_over.gif");
		admision_over = newImage("/imagenes/admision_over.gif");
		corte_ingles_over = newImage("/imagenes/corte_ingles_over.gif");
		hoteles_over = newImage("/imagenes/hoteles_over.gif");
		actualidad_over = newImage("/imagenes/actualidad_over.gif");
		consultas_over = newImage("/imagenes/consultas_over.gif");
		
		preloadFlag = true;
	}
}


