  var menu = new Array();
  var menuActivo = null;
  // Objeto Menu
  function activarMenu() {
    if (menuActivo != this) {
      if (menuActivo) menuActivo.ocultar();
      menuActivo = this;
      this.mostrar();
    }
  }
  function mostrarMenu() {
    eval(this.capaRefStr + this.estiloRefStr + '.visibility = "visible"');
    this.domRef.style.display = "block";
  }
  function ocultarMenu() {
    eval(this.capaRefStr + this.estiloRefStr + '.visibility = "hidden"');
    this.domRef.style.display = "none";
  }
  function cambiarPosicionMenu(top, left) {
    eval(this.capaRefStr + this.estiloRefStr + this.topRefStr + ' = top');
    eval(this.capaRefStr + this.estiloRefStr + this.leftRefStr + ' = left');
    this.domRef.style.display = "none";
  }
  function Menu(capaID, top, left, width) {
    this.activar = activarMenu;
    this.mostrar = mostrarMenu;
    this.ocultar = ocultarMenu;
    this.cambiarPosicion = cambiarPosicionMenu;
    this.domRef = document.getElementById(capaID);
    this.domRef.style.width = width;
    this.capaRefStr = 'document.all["'+capaID+'"]';
    this.estiloRefStr = '.style';
    this.topRefStr = '.pixelTop';
    this.leftRefStr = '.pixelLeft';
    this.cambiarPosicion(top, left);
  }
  // Manejo de eventos
  function ocultarMenuActivo(e) {
    if (menuActivo) {
      menuActivo.ocultar();
      menuActivo = null;
    }
  }
  //Calculo de posicion
  function getRealLeft(imgElem) {
    xPos = eval(imgElem).offsetLeft;
    tempEl = eval(imgElem).offsetParent;
    while (tempEl != null) {
      xPos += tempEl.offsetLeft;
      tempEl = tempEl.offsetParent;
    }
    return xPos;
  }
  function getRealTop(imgElem) {
    yPos = eval(imgElem).offsetTop;
    tempEl = eval(imgElem).offsetParent;
    while (tempEl != null) {
      yPos += tempEl.offsetTop;
      tempEl = tempEl.offsetParent;
    }
    return yPos;
  }
  function findObj(n, d) { //v3.0
    var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document); return x;
    }
function open_win(price)
 {
  window.open('/cgibin/ecurrency.cgi?Amount='+price,"",'toolbar=0,location=100,directories=0,status=0,scrollbars=0,menubar=0,resizable=0,width=500,height=150');
 }
