


if(window!=window.top) top.location.href=location.href;

function sobre(src,color_sobre) {
if(!src.contains(event.fromElement)){
src.style.cursor="hand";
src.bgColor=color_sobre;
}
}
function fuera(src,color_fuera) {
if(!src.contains(event.toElement)) {
src.style.cursor="default";
src.bgColor=color_fuera;
}
}





function cimag(nombre,activa) { document.images[nombre].src=activa.src; }

function validar()
{
dato=new String()
dato=this.formulario.nombre.value
if (dato.length == 0)
{alert ("Debe rellenar la casilla Nombre")
return false
}
dato=this.formulario.email.value
if (dato.length == 0)
{alert ("Debe rellenar la casilla E-mail")
return false
}

if (!dato.match("@"))
{alert ("El email tiene que ser valido!")
return false
}
return true
}

function capacontacta()
{ this.contacta2.style.visibility='visible'; this.contacta.style.visibility='visible'; this.iniciod.style.visibility='hidden'; this.neweslan.style.visibility='hidden'; this.productos2.style.visibility='hidden'; this.productos.style.visibility='hidden'; this.catalogo2.style.visibility='hidden'; this.catalogo.style.visibility='hidden'; this.mapadelw.style.visibility='hidden';}

function capainicio()
{ this.contacta2.style.visibility='hidden'; this.contacta.style.visibility='hidden'; this.iniciod.style.visibility='visible'; this.neweslan.style.visibility='hidden'; this.productos2.style.visibility='hidden'; this.productos.style.visibility='hidden'; this.catalogo2.style.visibility='hidden'; this.catalogo.style.visibility='hidden'; this.mapadelw.style.visibility='hidden';}

function capaneweslan()
{ this.contacta2.style.visibility='hidden'; this.contacta.style.visibility='hidden'; this.iniciod.style.visibility='hidden'; this.neweslan.style.visibility='visible'; this.productos2.style.visibility='hidden'; this.productos.style.visibility='hidden'; this.catalogo2.style.visibility='hidden'; this.catalogo.style.visibility='hidden'; this.mapadelw.style.visibility='hidden'}

function capaproductos()
{ this.contacta2.style.visibility='hidden'; this.contacta.style.visibility='hidden'; this.iniciod.style.visibility='hidden'; this.neweslan.style.visibility='hidden'; this.productos2.style.visibility='visible'; this.productos.style.visibility='visible'; this.catalogo2.style.visibility='hidden'; this.catalogo.style.visibility='hidden'; this.mapadelw.style.visibility='hidden'}

function capacatalogo()
{ this.contacta2.style.visibility='hidden'; this.contacta.style.visibility='hidden'; this.iniciod.style.visibility='hidden'; this.neweslan.style.visibility='hidden'; this.productos2.style.visibility='hidden'; this.productos.style.visibility='hidden'; this.catalogo2.style.visibility='visible'; this.catalogo.style.visibility='visible'; this.mapadelw.style.visibility='hidden'}

function capamapa()
{ this.contacta2.style.visibility='hidden'; this.contacta.style.visibility='hidden'; this.iniciod.style.visibility='hidden'; this.neweslan.style.visibility='hidden'; this.productos2.style.visibility='hidden'; this.productos.style.visibility='hidden'; this.catalogo2.style.visibility='hidden'; this.catalogo.style.visibility='hidden'; this.mapadelw.style.visibility='visible'}





  mensaje     = "www.neweslan.com          ^" +
                "Generadores de Ozono, Balastos Electrónicos,...          ^" +
                "Exterminadores de Insectos, Lámparas Germicidas...          ^" +
                "Diseño, Fabricación, Aplicaciones especiales...          ^" +
                "^"
  scrollSpeed = 100
  lineDelay   = 10
  txt         = ""

  function scrollText(pos) {
    if (mensaje.charAt(pos) != '^') {
      txt    = txt + mensaje.charAt(pos)
      status = txt
      pauze  = scrollSpeed
    }
    else {
      pauze = lineDelay
      txt   = ""
      if (pos == mensaje.length-1) pos = -1
    }
    pos++
    setTimeout("scrollText('"+pos+"')",pauze)
  }

 scrollText(0)


