
<!--  MAXIMIZAR EL EXPLORADOR  -->
top.window.moveTo(0,0);
if (document.all) 
   {top.window.resizeTo(screen.availWidth,screen.availHeight);}
  else if (document.layers||document.getElementById) 
   {if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
    top.window.outerHeight = screen.availHeight;
    top.window.outerWidth = screen.availWidth;}}

  var slideCache = new Array();
  function RunSlideShow(pictureName,imageFiles,displaySecs)
    {var imageSeparator = imageFiles.indexOf(";");
     var nextImage = imageFiles.substring(0,imageSeparator);
     if (document.all)
       {document.getElementById(pictureName).style.filter="blendTrans(duration=2)";
        document.getElementById(pictureName).filters.blendTrans.Apply();}
     document.getElementById(pictureName).src = nextImage;
     if (document.all)
       {document.getElementById(pictureName).filters.blendTrans.Play();}
     var futureImages= imageFiles.substring(imageSeparator+1,imageFiles.length) + ';' + nextImage;
     setTimeout("RunSlideShow('"+pictureName+"','"+futureImages+"',"+displaySecs+")", displaySecs*1000);
     imageSeparator = futureImages.indexOf(";");
     nextImage = futureImages.substring(0,imageSeparator);
     if (slideCache[nextImage] == null) 
       {slideCache[nextImage] = new Image;
        slideCache[nextImage].src = nextImage;}}
	 top.window.moveTo(0,0);
     if (document.all) 
	   {top.window.resizeTo(screen.availWidth,screen.availHeight);}
     else if (document.layers||document.getElementById) 
	   {if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
           top.window.outerHeight = screen.availHeight;
           top.window.outerWidth = screen.availWidth;}}

<!--  ESFUMAR IMAGENES  -->
  var slideCache = new Array();
  function RunSlideShow(pictureName,imageFiles,displaySecs)
    {var imageSeparator = imageFiles.indexOf(";");
     var nextImage = imageFiles.substring(0,imageSeparator);
     if (document.all)
       {document.getElementById(pictureName).style.filter="blendTrans(duration=2)";
        document.getElementById(pictureName).filters.blendTrans.Apply();}
     document.getElementById(pictureName).src = nextImage;
     if (document.all)
       {document.getElementById(pictureName).filters.blendTrans.Play();}
     var futureImages= imageFiles.substring(imageSeparator+1,imageFiles.length) + ';' + nextImage;
     setTimeout("RunSlideShow('"+pictureName+"','"+futureImages+"',"+displaySecs+")", displaySecs*1000);
     imageSeparator = futureImages.indexOf(";");
     nextImage = futureImages.substring(0,imageSeparator);
     if (slideCache[nextImage] == null) 
       {slideCache[nextImage] = new Image;
        slideCache[nextImage].src = nextImage;}}
	 top.window.moveTo(0,0);
     if (document.all) 
	   {top.window.resizeTo(screen.availWidth,screen.availHeight);}
     else if (document.layers||document.getElementById) 
	   {if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
           top.window.outerHeight = screen.availHeight;
           top.window.outerWidth = screen.availWidth;}}

<!--  ABRIR FAQ  -->
    function kadabra(zap) 
      {if (document.getElementById) 
        {var abra = document.getElementById(zap).style;
	if (abra.display == "block") 
          {abra.display = "none";} 
        else 
          {abra.display = "block"} 
        return false}
      else 
       {return true}}

<!--  BUSQUEDA  -->

function buscarTxt(texto)
  {if(!document.all) return
   var contenido = document.body.createTextRange();
   var seguir = true;
   var temporal = contenido.duplicate();
   var existe = temporal.findText(texto,0,0)  
   while(existe && seguir)
    {temporal.scrollIntoView(true)
     temporal.select();
     contenido.setEndPoint("StartToEnd", temporal);
     seguir = confirm("Continuar la b&uacute;squeda?")
     if (seguir)
       {temporal = contenido.duplicate();
        existe = temporal.findText(texto,0,0)}}
   if (seguir)
   alert("Fin del documento")}

<!--  EMAIL  -->

cuenta=0
function validate (form) 
   {r=1;
    if (form.nombre.value==""){r=0;alert("Por favor ingrese su nombre de contacto!");form.nombre.focus();return false;};
    if (form.correo.value.indexOf('@',0)==-1) {r=0;alert("Por favor ingrese su correo electr&oacute;nico !");form.correo.focus();return false;};
    if (form.telefono.value=="") {r=0;alert("Por favor ingrese su n&uacute;mero telef&oacute;nico !");form.telefono.focus();return false;};
    if (form.consulta.value==""){r=0;alert("¿Cual es la consulta?");form.consulta.focus();return false;}; 
    if (cuenta == 0)
      { cuenta++;return true;}
     else 
      {alert("El formulario ya ha sido enviado, muchas gracias.");return false;};}

