<!-- Esconde el codigo para navegadores anteriores a Netscape 3 y Explorer 4
//------------------------------------------------------------------------->
// Colocar Boton Videos
//------------------------------------------------------------------------->
function ColocarBotonVideos()
	{
	if (tieneFlash(7))
	   {
	   var contenido="<a href='GaleriaVideos.htm'>" +
                     "<img border='0' src='images/GaleriaVideos.gif' width='148' height='33' id='Videos' " +
                     "onmouseout='FP_swapImgRestore()' " +
                     "onmouseover=\"FP_swapImg(1,1,/*id*/'Videos',/*url*/'images/GaleriaVideosP.gif')\" " +
                     "title='Galería de videos'>";
                     "</a><br>";
       document.write(contenido);
       }
	}
//------------------------------------------------------------------------->
// Links
//------------------------------------------------------------------------->
function EntroEnLinkMenu(Texto)
	{
    EntroEnLink(Texto,'#017DB4','#FFFFFF');
	return;
	}
function SalioDeLinkMenu(Texto)
	{
	SalioDeLink(Texto,'#EBFAFF','#000000');
	return;
	}
//------------------------------------------------------------------------->
function EntroEnLinkAudio(Texto)
	{
    EntroEnLink(Texto,'#33CC33','#000000');
	return;
	}
function SalioDeLinkAudio(Texto)
	{
	SalioDeLink(Texto,'#CCFFCC','#000000');
	return;
	}
//------------------------------------------------------------------------->
function EntroEnLinkEnlaces(Texto)
	{
    EntroEnLink(Texto,'#FFCC00','#000000');
	return;
	}
function SalioDeLinkEnlaces(Texto)
	{
	SalioDeLink(Texto,'#FFFFCC','#000000');
	return;
	}
//------------------------------------------------------------------------->
function EntroEnLinkVideo(Texto)
	{
    EntroEnLink(Texto,'#000000','#FFFFFF');
	return;
	}
function SalioDeLinkVideo(Texto)
	{
	SalioDeLink(Texto,'#993366','#FFFFFF');
	return;
	}
//------------------------------------------------------------------------->
function EntroEnLink(Texto,BgColor,FgColor)
	{
    Texto.style.fontStyle="italic";
    Texto.style.backgroundColor=BgColor;
    Texto.style.color=FgColor;
	return;
	}
function SalioDeLink(Texto,BgColor,FgColor)
	{
    Texto.style.fontStyle="normal";
    Texto.style.backgroundColor=BgColor;
    Texto.style.color=FgColor;
	return;
	}
//--------------------------------------------------------------------------
// Botones Menú
//------------------------------------------------------------------------->
function EntroEnBotonMenu(Boton)
	{
	   {
       var Capa=document.getElementById("Capa"+Boton.id);
	   PosicionarCapaMenu(Boton,Capa);
	   Capa.style.visibility="visible";
	   }
	}
//------------------------------------------------------------------------->
function SalioDeBotonMenu(Boton,event)
	{
	var TopBoton=findTopPos(Boton);
	var LeftBoton=findLeftPos(Boton);

    var Capa=document.getElementById("Capa"+Boton.id);

	var CursorX = event.clientX;
    var CursorY = event.clientY;
    if (((CursorY + document.body.scrollTop) < (TopBoton  + 3) ||
         (CursorX < LeftBoton + 3) ||
         (CursorX > LeftBoton + parseInt(Boton.width))))      
       {
       Capa.style.visibility="hidden";
       Boton.style.cursor='';
       }
    }
//------------------------------------------------------------------------->
function PosicionarCapaMenu(Boton,Capa)
	{
    Capa.style.left=findLeftPos(Boton)+2;
    Capa.style.top=findTopPos(Boton)+Boton.height+1;
    }
//--------------------------------------------------------------------------
// Capas Menú
//------------------------------------------------------------------------->
function SalioDeCapasMenu(event)
	{
	var Capa=document.getElementById("CapaEscuela");
	if (!(Capa==null))
	   {
	   var AnchoBoton=document.getElementById("Escuela").width;
	   SalioDeCapaMenu(Capa,AnchoBoton,event);
	
	   Capa=document.getElementById("CapaPlanEstudios");
	   AnchoBoton=document.getElementById("PlanEstudios").width;
	   SalioDeCapaMenu(Capa,AnchoBoton,event);
	
	   Capa=document.getElementById("CapaVidaCadete");
	   AnchoBoton=document.getElementById("VidaCadete").width;
	   SalioDeCapaMenu(Capa,AnchoBoton,event);
	
	   Capa=document.getElementById("CapaAcciones");
	   AnchoBoton=document.getElementById("Acciones").width;
	   SalioDeCapaMenu(Capa,AnchoBoton,event);
	   }
	   
	if (DesplegarCoordenadas)
	   {
       window.status=event.screenX + " - " + event.screenY;
	   }
	}
//------------------------------------------------------------------------->
function SalioDeCapaMenu(Capa,AnchoBoton,event)
	{
    var TopCapa=findTopPos(Capa,AnchoBoton);
	var LeftCapa=findLeftPos(Capa);
	var CursorX = event.clientX;
    var CursorY = event.clientY;
    if (navigator.appName=="Microsoft Internet Explorer")
       {
       if ((CursorY + document.body.scrollTop) > (TopCapa + 6) + parseInt(Capa.style.height) ||
           (CursorX < LeftCapa + 3) ||
           ((CursorX > LeftCapa + 3 + AnchoBoton) && ((CursorY + document.body.scrollTop) < (TopCapa + 3))) ||
           (CursorX > LeftCapa + 1 + parseInt(Capa.style.width)))
          {
          Capa.style.visibility="hidden";
	      }
       }	      
     if (navigator.appName=="Netscape")
       {
       if ((CursorY + document.body.scrollTop) > (TopCapa + 3) + parseInt(Capa.style.height) ||
           (CursorX < LeftCapa-2) ||
           ((CursorX > LeftCapa + AnchoBoton-3) && ((CursorY + document.body.scrollTop) < TopCapa)) ||
           (CursorX > LeftCapa + 9 + parseInt(Capa.style.width)))
          {
          Capa.style.visibility="hidden";
	      }
       }	     
    }
//------------------------------------------------------------------------->
// Botones Cuadro
//------------------------------------------------------------------------->
var NoRestaurar=false;
function EntroEnBotonCuadro(Boton)
	{
	if(Boton.style.borderLeftColor=="#000000" || Boton.style.borderLeftColor=="rgb(0, 0, 0)")
		{
		NoRestaurar=true;
		}
	else
		{
        var Ordinal=Boton.id.substr('Boton'.length);
		var Senal=document.getElementById('Senal' + Ordinal);
        Senal.bgColor='#FFCC00';

        Boton.style.borderLeftColor= "#000000";
        Boton.style.borderTopColor= "#000000";
        Boton.style.borderRightColor= "#CCCCCC";
        Boton.style.borderBottomColor= "#CCCCCC";
        Boton.style.cursor='pointer';
	    return;
	    }
	}
function SalioDeBotonCuadro(Boton)
	{
	if(NoRestaurar)
 		{
		NoRestaurar=false;
		}
	else
   	    {
        var Ordinal=Boton.id.substr('Boton'.length);
  	    var Senal=document.getElementById('Senal' + Ordinal);

        Senal.bgColor='#33CC33';

        Boton.style.borderLeftColor= "#CCCCCC";
        Boton.style.borderTopColor= "#CCCCCC";
        Boton.style.borderRightColor= "#000000";
        Boton.style.borderBottomColor= "#000000";
	    return;
	    }
	}
//------------------------------------------------------------------------->
// Botones Capas Aux
//------------------------------------------------------------------------->
function OperarBotonesAux(Boton)
	{
	var BotonActivado=document.getElementById("Audio");
	if (!(BotonActivado==Boton) && BotonAuxApretado(BotonActivado))
	   TogleBotonAux(BotonActivado,"CapaAudio");
	   
	BotonActivado=document.getElementById("Enlaces");
	if (!(BotonActivado==Boton) && BotonAuxApretado(BotonActivado))
	   TogleBotonAux(BotonActivado,"CapaEnlaces");
	   
    TogleBotonAux(Boton,"Capa"+Boton.id);
	}
function TogleBotonAux(Boton,NombreCapa)
	{
    var Capa=document.getElementById(NombreCapa);
    if(BotonAuxApretado(Boton))
      {
      Boton.src=Boton.src.substring(0,Boton.src.indexOf("P.")) + Boton.src.substring(Boton.src.indexOf("P.")+1);
      Capa.style.visibility="hidden";
      Capa.style.visibility="hidden";
      }
    else
     {
     Boton.src=Boton.src.substr(0,Boton.src.length-4) + "P" + Boton.src.substring(Boton.src.length-4);
	 PosicionarCapaBotonAux(Boton, Capa);
     Capa.style.zIndex=1;
     MostrarCapa(Capa);
     }   
	}
function BotonAuxApretado(Boton)
	{
    if(Boton.src.indexOf("P.")==-1)
      return(false);
    else  
      return(true);
	}	
function PosicionarCapaBotonAux(Boton, Capa)
	{
    Capa.style.left=findLeftPos(Boton)-parseInt(Capa.style.width);
    Capa.style.top=findTopPos(Boton)+4;
	}
//------------------------------------------------------------------------->
// Capa fotos
//------------------------------------------------------------------------->
var OcultarFotos=true;
function MostrarCapaFotos(Foto,FotoSrc,FotoLeyenda)
	{
	var CapaFotos=document.getElementById("CapaFotos");
	var FotoEnCapa=document.getElementById("FotoEnCapa");
	var TextoPieFoto=document.getElementById("TextoPieFoto");
	var imagen = new Image;
    if (FotoSrc=='')
       {
       imagen.src=Foto.src;
       if (FotoLeyenda==undefined)
          {
          TextoPieFoto.innerHTML="<p class='piefoto'>" + Foto.alt + "</p>";
          }
       else   
          {
          TextoPieFoto.innerHTML="<p class='piefoto'>" + FotoLeyenda + "</p>";
          }
       }
    else
       {
       imagen.src=FotoSrc;
       if (!(FotoLeyenda==undefined))
          {
          TextoPieFoto.innerHTML="<p class='piefoto'>" + FotoLeyenda + "</p>";
          }
       else   
          {
          TextoPieFoto.innerHTML="<p class='piefoto'>" + Foto.alt + "</p>";
          }
       }
       
    CapaFotos.style.width=imagen.width+38;
	FotoEnCapa.width=imagen.width;
    CapaFotos.style.height=imagen.height+38;
	FotoEnCapa.height=imagen.height;
    FotoEnCapa.src=imagen.src;
    
    PosicionarCapaFotos();
    CapaFotos.style.visibility="visible";
    OcultarFotos=false;
	}
function PosicionarCapaFotos()
	{
	var CapaFotos=document.getElementById("CapaFotos");

	CapaFotos.style.left=(document.body.clientWidth-parseInt(CapaFotos.style.width))/2;
	if (parseInt(CapaFotos.style.left)<10) CapaFotos.style.left=10;
	CapaFotos.style.top=document.body.scrollTop+(document.body.clientHeight-parseInt(CapaFotos.style.height))/2;
	}
function OcultarCapaFotos()
	{
	if (OcultarFotos)
	   {
       var CapaFotos=document.getElementById("CapaFotos");
  	   CapaFotos.style.visibility="hidden";
  	   }
  	else
  	   {
 	   OcultarFotos=true;
 	   }
	}	
//------------------------------------------------------------------------->
// Reposicionar Capas
//------------------------------------------------------------------------->
function ReposicionarCapas()
	{
	var Boton=document.getElementById("Escuela");
	var Capa=document.getElementById("CapaEscuela");
    PosicionarCapaMenu(Boton,Capa);

	Boton=document.getElementById("PlanEstudios");
	Capa=document.getElementById("CapaPlanEstudios");
    PosicionarCapaMenu(Boton,Capa);

	Boton=document.getElementById("VidaCadete");
	Capa=document.getElementById("CapaVidaCadete");
    PosicionarCapaMenu(Boton,Capa);

	Boton=document.getElementById("Acciones");
	Capa=document.getElementById("CapaAcciones");
    PosicionarCapaMenu(Boton,Capa);

	Boton=document.getElementById("Audio");
	Capa=document.getElementById("CapaAudio");
    PosicionarCapaBotonAux(Boton,Capa);

	Boton=document.getElementById("Enlaces");
	Capa=document.getElementById("CapaEnlaces");
    PosicionarCapaBotonAux(Boton,Capa);
    
    PosicionarCapaFotos();
	}
//------------------------------------------------------------------------->
// Mostrar/Ocultar capas menú/aux
//------------------------------------------------------------------------->
var OpacidadCapa=0;
var OpacidadInferior=20
var OpacidadSuperior=90;
var CapaOpacar;
function MostrarCapa(Capa)
	{
    CapaOpacar=Capa;
    CapaOpacar.style.visibility="visible";
	OpacidadCapa=OpacidadInferior;
    CapaOpacar.style.filter="alpha(opacity=" + OpacidadCapa + ")";
    setTimeout("OpacarCapa()",15);
	}
function OpacarCapa()
	{
	if (OpacidadCapa<=OpacidadSuperior)
	   {
	   OpacidadCapa=OpacidadCapa+5;
       CapaOpacar.style.filter="alpha(opacity=" + OpacidadCapa+ ")";
       setTimeout("OpacarCapa()",15);
       }
	}
function ImagenFondoPresentacion()
	{
	var NumeroImagen=0;
	
	while (NumeroImagen==0)
		{
		NumeroImagen=Math.floor(Math.random()*13);
		}
	return "images/GaleriaFotosEMA" + NumeroImagen.toString() + "FE.jpg";
	}
//------------------------------------------------------------------------->
// Manejo Objetos Flash (Presentación)
//------------------------------------------------------------------------->
function TerminarPresentacion()
	{
	var flashObject=getFlashMovieObject("objetoFlash");

    StopFlashMovie('objetoFlash');
	}
function TerminoPresentacion()
	{
	var flashObject=getFlashMovieObject("objetoFlash");

	if (!flashObject.IsPlaying())
	   {
       setTimeout("OcultarCapaCargando(true)",3000);
       setTimeout("InicializarCapasNovedades()",5000);
	   setTimeout("SecuenciarBanner()",10000);
	   }
	else
	   {
       setTimeout("TerminoPresentacion()",100);
	   }
	}
var ClipEnLinea=1;	
//------------------------------------------------------------------------->
// Manejo Objetos Flash (Inicio.asp)
//------------------------------------------------------------------------->
function DesplegarClipFlash()
	{
	PlayFlashMovie("flashClip","flash/Clip" + ClipEnLinea + "1.swf");
	ClipEnLinea = ClipEnLinea + 1;
	
	if (ClipEnLinea==4)
	   {
	   ClipEnLinea=1;
	   }
	setTimeout("ClipFlasehTermino()",100)   
	}
function ClipFlasehTermino()
	{
	if (peliculaFlashTermino("flashClip"))
	   {
	   PlayFlashMovie("flashClip","flash/Clip01.swf");
	   return;
	   }
	setTimeout("ClipFlasehTermino()",100)   
	}	
//------------------------------------------------------------------------->
// Manejo Objetos Flash (GaleriaVideos.htm)
//------------------------------------------------------------------------->
function DesplegarVideo(peliculaFlash)
	{
	var Boton=document.getElementById("ContParar");

	PlayFlashMovie("objetoFlash","flash/" + peliculaFlash + ".swf")

    Boton.src="images/Parar.gif";
	Boton=document.getElementById("Rebobinar");
	Boton.src="images/Rebobinar.gif";
	
    Boton=document.getElementById("Iniciar");
    if (Boton!=null)
       {
	   Boton.src="images/PararContBlanco.gif";
       }
 
	setTimeout("FlashTermino()",500);
	}
//------------------------------------------------------------------------->
function FlashTermino()	
	{
	if (peliculaFlashTermino("objetoFlash"))
	   {
	   PlayFlashMovie("objetoFlash","flash/Pantalla.swf");

	   var Boton=document.getElementById("ContParar");
	   Boton.src="images/PararContBlanco.gif";
	   Boton=document.getElementById("Rebobinar");
	   Boton.src="images/PararContBlanco.gif";
	   
       Boton=document.getElementById("Iniciar");
       if (Boton!=null)
          {
	      Boton.src="images/Iniciar.gif";
          }
       }
    else
       {
       setTimeout("FlashTermino()",100);
       }
	}
function PararContinuarVideo()
	{
	var Boton=document.getElementById("ContParar");

    if (Boton.src.indexOf("Blanco")==-1)
       {
	   if ((Boton.src.substr(Boton.src.length -"Parar.gif".length))=="Parar.gif")
		  {
	      StopFlashMovie("objetoFlash");
    	  Boton.src="images/Continuar.gif";
	      }
	   else
		  {
          continuarPeliculaFlash("objetoFlash");
    	  Boton.src="images/Parar.gif";
	      }
	   }
	}
function RebobinarVideo()
	{
	var Boton=document.getElementById("Rebobinar");

    if (Boton.src.indexOf("Blanco")==-1)
       {
       RewindFlashMovie('objetoFlash');
    
       Boton=document.getElementById("ContParar");
       Boton.src="images/Continuar.gif";    
       }
	}
//------------------------------------------------------------------------->
// Secuencia imágenes banner
//------------------------------------------------------------------------->
function SecuenciarBanner()
	{
    var Banner=document.getElementById("Banner").src;
    var NoImagenBannerActual=Banner.substr(Banner.indexOf(".")-1,1);
	var NvoNoImagenBannerActual = NoImagenBannerActual;

	while (NvoNoImagenBannerActual==NoImagenBannerActual)
		{
		NvoNoImagenBannerActual=Math.floor(Math.random()*5)+1;
		}

	document.getElementById("Banner").src="images/Banner" + NvoNoImagenBannerActual + ".jpg";
	NoImagenBannerActual=NvoNoImagenBannerActual;
	setTimeout("SecuenciarBanner()",10000);
	}
//------------------------------------------------------------------------->
// Posición objeto
//------------------------------------------------------------------------->
function findLeftPos(obj)
	{
	var curleft = 0;
	if (obj.offsetParent)
	   {
	   curleft = obj.offsetLeft;
	   while (obj = obj.offsetParent)
	         {
			 curleft += obj.offsetLeft;
		     }
	   }
	return curleft;
	}
function findTopPos(obj)
    {
	var curtop = 0;
	if (obj.offsetParent)
	   {
	   curtop = obj.offsetTop;
	   while (obj = obj.offsetParent)
	         {
		     curtop += obj.offsetTop;
		     }
	   }
	return curtop;
    }
//------------------------------------------------------------------------->
// Google Analytics
//------------------------------------------------------------------------->
function RegistrarGoogleAnalytics()
	{
	 if (!((location.hostname=="infoplus") || 
	       (location.hostname=="www.infoplus-uy.com") ||
	       (location.hostname=="www.infoplus.com.uy")))
	    {
        _uacct = "UA-981195-2";
        urchinTracker();
	    }
	}
function MarcaRegistroGoogleAnalytics()
	{
	 if ((location.hostname=="infoplus") || 
	     (location.hostname=="www.infoplus-uy.com") ||
	     (location.hostname=="www.infoplus.com.uy"))
	   {
	   document.write("<font size='1'>nr</font>")
	   }  
	}
//------------------------------------------------------------------------->
// Desplegar coordenadas cursor
//------------------------------------------------------------------------->
var DesplegarCoordenadas=false;

function MostrarCoordenadas()
	{
	if (DesplegarCoordenadas)
	   {
	   DesplegarCoordenadas=false
       window.status="";
       }
	else
	   {
	   DesplegarCoordenadas=true
	   }
	}
//------------------------------------------------------------------------->

