	if (document.images) 
	{ 
        histoff = new Image();
        histon = new Image ();
        histoff.src = "../../images/m_historia_off.gif";
        histon.src = "../../images/m_historia_on.gif";

        cartaoff = new Image();
        cartaon = new Image ();
        cartaoff.src = "../../images/m_carta_off.gif";
        cartaon.src = "../../images/m_carta_on.gif";

        fotosoff = new Image();
        fotoson = new Image ();
        fotosoff.src = "../../images/m_fotos_off.gif";
        fotoson.src = "../../images/m_fotos_on.gif";

        prensaoff = new Image();
        prensaon = new Image ();
        prensaoff.src = "../../images/m_prensa_off.gif";
        prensaon.src = "../../images/m_prensa_on.gif";

        llegaroff = new Image();
        llegaron = new Image ();
        llegaroff.src = "../../images/m_llegar_off.gif";
        llegaron.src = "../../images/m_llegar_on.gif";

        contactaoff = new Image();
        contactaon = new Image ();
        contactaoff.src = "../../images/m_contacta_off.gif";
        contactaon.src = "../../images/m_contacta_on.gif";


	function imgOn(imgName) 
	{ 
	if (document.images) 
	{ 
	    document[imgName].src = eval(imgName + "on.src"); 
	} 
	} 
	function imgOff(imgName) 
	{ 
	        if (document.images) 
	{ 
	        document[imgName].src = eval(imgName + "off.src"); 
	} 
	} 
	} 


function movein(which,html){
if (document.getElementById)
document.getElementById('boxdescription').innerHTML=html
else
boxdescription.innerHTML=html
}

function moveout(which){
if (document.getElementById)
document.getElementById('boxdescription').innerHTML='&nbsp;'
else
boxdescription.innerHTML='&nbsp;'
}

function GoToUrl(theURL,linktarget) 
{ 
  window.open(theURL,linktarget);
}

function abrir(pagina) 
{
	document.open(pagina);
}

function GestionarEnlaces(NuevaVentana) {
var GKO = (navigator.userAgent.toLowerCase().indexOf('gecko')!=-1);
var Enlace;
for (var i=0; i<document.links.length; i++) {
  Enlace = document.links[i];
  if (Enlace.href.indexOf('http://')!=-1) {
    if (NuevaVentana==true) {
      if (GKO) Enlace.setAttribute('onclick', 'window.open(this.href);return false;');
      else Enlace['onclick']=new Function('window.open(this.href);return false;');
      }
    else {
      if (GKO) Enlace.removeAttribute('onclick');
      else Enlace['onclick']=new Function('return true;');
      }
    }
  }
}

function isEmail(email) {
    invalidChars = " ~\'||''''||'^\`\"*+=\\|][(){}$&!#%/:,;";

    // Check for null
    if (email == "") {
        return true;
    }

    // Check for invalid characters as defined above
    for (i=0; i<invalidChars.length; i++) {
        badChar = invalidChars.charAt(i);
        if (email.indexOf(badChar,0) > -1) {
            return false;
        }
    }
    lengthOfEmail = email.length;
    if ((email.charAt(lengthOfEmail - 1) == ".") || (email.charAt(lengthOfEmail - 2) == ".")) {
        return false;
    }
    Pos = email.indexOf("@",1);
    if (email.charAt(Pos + 1) == ".") {
        return false;
    }
    while ((Pos < lengthOfEmail) && ( Pos != -1)) {
        Pos = email.indexOf(".",Pos);
        if (email.charAt(Pos + 1) == ".") {
            return false;
        }
        if (Pos != -1) {
            Pos++;
        }
    }

    // There must be at least one @ symbol
    atPos = email.indexOf("@",1);
    if (atPos == -1) {
        return false;
    }

    // But only ONE @ symbol
    if (email.indexOf("@",atPos+1) != -1) {
        return false;
    }

    // Also check for at least one period after the @ symbol
    periodPos = email.indexOf(".",atPos);
    if (periodPos == -1) {
        return false;
    }
    if (periodPos+3 > email.length) {
        return false;
    }
    return true;}


function Validar()
      {
         if (document.forms[0].nombre.value =="")
         {
		    alert("Por favor, dinos tu nombre ");
			document.forms[0].nombre.focus();
            return false;
          }
         if (document.forms[0].texto.value =="")
         {
		    alert("Describe tu consulta");
			document.forms[0].texto.focus();
            return false;
          }
         if (document.forms[0].email.value =="")
         {
		    alert("Por favor, escribe tu correo !!");
			document.forms[0].email.focus();
            return false;
          }
         if(!(isEmail(document.forms[0].email.value)))
         {
           alert("Repasa tu dirección de correo !!");
           document.forms[0].email.focus();
           return false;
        }
      return true;}

var mensajew = " Copyright 2005 EasyWare \n \n  :: DESARROLLOS WEB ::";
function derecho(e)
{
   if (navigator.appName == 'Netscape' && e.which == 3)
      alert(mensaje);
   else if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2)
      alert(mensaje);
}
document.onmousedown = derecho;