exp1 = 0;  // 0 = contraida -> expandir
exp2 = 0;
exp3 = 0;
grises1 = 0;
negativo1 = 0;
binarios1 = 0;
mosaico1 = 0;
relieve1 = 0;
bordes1 = 0;
rotacion1 = 0;

function YY_LS(das, ex, ey, dly, sx, loop, dx, dy){//v4.08
//copyright (c)2000,2001 Yaromat.com
    var s=MM_findObj(das),d=document,c,t,l,ct,cb,cl,cr,ncl,nct,ncr,ncb,doto,sy=sx,yx,yy,st;
    if(!s.ot){s.ot=(d.layers)?s.top:s.style.top;s.ol=(d.layers)?s.left:s.style.left;}
    with(Math)if(d.layers){
        ct=s.clip.top;cb=s.clip.bottom;cl=s.clip.left;cr=s.clip.right;t=s.top;l=s.left;
        yy=abs(round((ct-ey)/sy));dy=round((ey-ct)/yy);
        yx=abs(round((cl-ex)/sx));dx=round((ex-cl)/yx);
        if(yx<1){dx=0}else{yx--};if(yy<1){dy=0}else{yy--};
        s.clip.top=ct+dy; s.clip.bottom=cb+dy;s.top=t-dy;s.clip.left=cl+dx;s.clip.right=cr+dx;s.left=l-dx;
    }else if ((d.all||d.getElementById)&&s.style.clip){
      st=s.style;
        l=parseInt((d.getElementById)?st.left:st.pixelLeft);t=parseInt((d.getElementById)?st.top:st.pixelTop);
        c=st.clip.match(/rect.(\d+)[a-z,A-Z,\s]+(\d+)[a-z,A-Z,\s]+(\d+)[a-z,A-Z,\s]+(\d+).*/);
        ct=c[1]/1;cr=c[2]/1;cb=c[3]/1;cl=c[4]/1;
        yy=abs(round((ct-ey)/sy));yx=abs(round((cl-ex)/sx));
        dx=(yx<1)?0:round(-(cl-ex)/yx);dy=(yy<1)?0:round(-(ct-ey)/yy);
        ncl=cl+dx;nct=ct+dy;ncr=cr+dx;ncb=cb+dy;
        st.pixelTop=t-dy;st.pixelLeft=l-dx;st.left=l-dx;st.top=t-dy;
        eval("st.clip='rect('+nct+' '+ncr+' '+ncb+' '+ncl+')'");yy--;yx--;
    }
    if(s.yyto)clearTimeout(s.yyto);
    if(yy>0||yx>0){doto=true;}else if(dly>-1&&loop==true){
        if(d.layers){s.left=s.ol;s.clip.left=0;s.clip.right=cr-cl;s.top=s.ot;s.clip.top=0;s.clip.bottom=cb-ct;
        }else{eval("st.clip='rect('+0+' '+(cr-cl)+' '+(cb-ct)+' '+0+')'");st.top=s.ot;st.left=s.ol;}
        doto=true;
    }
    if(doto==true)s.yyto=setTimeout("YY_LS(\""+das+"\","+ex+","+ey+","+dly+","+sx+","+loop+","+dx+","+dy+")",dly);
}

function MZ_findObj(n){ //v3.6
        var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
        x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
        }else{x=document.getElementById(n)}return x;
}

function YY_StopLayerfx(){ //v3.09
//copyright (c)1998-2000 Yaromat.com
  var args = YY_StopLayerfx.arguments;var yydiv;
  for (var i=0; i<args.length; i++){
    yydiv=MM_findObj(args[i]);
    if (yydiv&&(document.layers||document.all||document.getElementById)){
      if(yydiv.yyto!=null)clearTimeout(yydiv.yyto);
      if(yydiv.tmtScrollo!=null)clearTimeout(yydiv.tmtScrollo);
    }
  }
}

function expande_contrae(capa) {
  if (capa == "capa01")
  {
    capa = "menu1";
    if (exp1 == 0)
    {
        textoCapa = "<table width=\"164\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
        textoCapa += "<tr onClick=\"MM_goToURL('parent','presentador_digital.php');return document.MM_returnValue\" style=\"cursor: hand;\">";
        textoCapa += "<td width=\"14\"><img src=\"imagenes/bullet_azul.gif\" width=\"14\" height=\"14\"></td>";
        textoCapa += "<td width=\"150\" class=\"menuOpciones\"><a href=\"presentador_digital.php\" class=\"menuOpciones\">Presentador";
        textoCapa += " Digital</a></td>";
        textoCapa += "</tr>";
        textoCapa += "<tr style=\"cursor: hand;\" onClick=\"MM_goToURL('parent','proyectores.php');return document.MM_returnValue\">";
        textoCapa += "<td><img src=\"imagenes/bullet_azul.gif\" width=\"14\" height=\"14\"></td>";
        textoCapa += "<td class=\"menuOpciones\"><a href=\"proyectores.php\" class=\"menuOpciones\">Proyectores</a></td>";
        textoCapa += "</tr>";
        textoCapa += "<tr style=\"cursor: hand;\" onClick=\"MM_goToURL('parent','pantallas.php');return document.MM_returnValue\">";
        textoCapa += "<td><img src=\"imagenes/bullet_azul.gif\" width=\"14\" height=\"14\"></td>";
        textoCapa += "<td class=\"menuOpciones\"><a href=\"pantallas.php\" class=\"menuOpciones\">Pantallas</a></td>";
        textoCapa += "</tr>";
        textoCapa += "<tr style=\"cursor: hand;\" onClick=\"MM_goToURL('parent','pizarra_int.php');return document.MM_returnValue\">";
        textoCapa += "<td><img src=\"imagenes/bullet_azul.gif\" width=\"14\" height=\"14\"></td>";
        textoCapa += "<td class=\"menuOpciones\"><a href=\"pizarra_int.php\" class=\"menuOpciones\">Pizarra";
        textoCapa += " Interactiva</a></td>";
        textoCapa += "</tr>";
        textoCapa += "<tr style=\"cursor: hand;\" onClick=\"MM_goToURL('parent','audio.php');return document.MM_returnValue\">";
        textoCapa += "<td><img src=\"imagenes/bullet_azul.gif\" width=\"14\" height=\"14\"></td>";
        textoCapa += "<td class=\"menuOpciones\"><a href=\"audio.php\" class=\"menuOpciones\">Audio";
        textoCapa += " Profesional</a></td>";
        textoCapa += "</tr>";
        textoCapa += "<tr style=\"cursor: hand;\" onClick=\"MM_goToURL('parent','videoconf.php');return document.MM_returnValue\">";
        textoCapa += "<td><img src=\"imagenes/bullet_azul.gif\" width=\"14\" height=\"14\"></td>";
        textoCapa += "<td class=\"menuOpciones\"><a href=\"videoconf.php\" class=\"menuOpciones\">Videoconferencia</a></td>";
        textoCapa += "</tr>";
        textoCapa += "<tr style=\"cursor: hand;\" onClick=\"MM_goToURL('parent','telones.php');return document.MM_returnValue\">";
        textoCapa += "<td><img src=\"imagenes/bullet_azul.gif\" width=\"14\" height=\"14\"></td>";
        textoCapa += "<td class=\"menuOpciones\"><a href=\"telones.php\" class=\"menuOpciones\">Telones</a></td>";
        textoCapa += "</tr>";
        textoCapa += "<tr style=\"cursor: hand;\" onClick=\"MM_goToURL('parent','accesorios.php');return document.MM_returnValue\">";
        textoCapa += "<td><img src=\"imagenes/bullet_azul.gif\" width=\"14\" height=\"14\"></td>";
        textoCapa += "<td class=\"menuOpciones\"><a href=\"accesorios.php\" class=\"menuOpciones\">Accesorios</a></td>";
        textoCapa += "</tr>";
        textoCapa += "</table>";
        MM_setTextOfLayer(capa,'',textoCapa);
        exp1 = 1;
    }
    else
    {
       MM_setTextOfLayer(capa,'','<img src=\"imagenes/spacer.gif\" width=\"150\" height=\"1\">');
       exp1 = 0;
    }
  };

  if (capa == "capa02")
  {
    capa = "menu2";
    if (exp2 == 0)
    {
        textoCapa = "<table width=\"164\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
        textoCapa += "<tr onClick=\"MM_goToURL('parent','arriendo.php');return document.MM_returnValue\" style=\"cursor: hand;\">";
        textoCapa += "<td width=\"14\"><img src=\"imagenes/bullet_azul.gif\" width=\"14\" height=\"14\"></td>";
        textoCapa += "<td width=\"150\" class=\"menuOpciones\"><a href=\"arriendo.php\" class=\"menuOpciones\">Arriendo</a></td>";
        textoCapa += "</tr>";
        textoCapa += "<tr onClick=\"MM_goToURL('parent','serv_tecnico.php');return document.MM_returnValue\" style=\"cursor: hand;\">";
        textoCapa += "<td><img src=\"imagenes/bullet_azul.gif\" width=\"14\" height=\"14\"></td>";
        textoCapa += "<td class=\"menuOpciones\"><a href=\"serv_tecnico.php\" class=\"menuOpciones\">Servicio";
        textoCapa += " T&eacute;cnico</a></td>";
        textoCapa += "</tr>";
        textoCapa += "<tr style=\"cursor: hand;\">";
        textoCapa += "<td><img src=\"imagenes/bullet_azul.gif\" width=\"14\" height=\"14\"></td>";
        textoCapa += "<td class=\"menuOpciones\"><a href=\"presentaciones.php\" class=\"menuOpciones\">Presentaciones</a></td>";
        textoCapa += "</tr>";
        textoCapa += "</table>";
        MM_setTextOfLayer(capa,'',textoCapa);
        exp2 = 1;
    }
    else
    {
       MM_setTextOfLayer(capa,'','<img src=\"imagenes/spacer.gif\" width=\"150\" height=\"1\">');
       exp2 = 0;
    }
  };
  if (capa == "capa03")
  {
    capa = "menu3";
    if (exp3 == 0)
    {
        textoCapa = "<table width=\"164\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
        textoCapa += "<td><img src=\"imagenes/bullet_azul.gif\" width=\"14\" height=\"14\"></td>";
        textoCapa += "<td class=\"menuOpciones\"><a href=\"mkt_visual.php\" class=\"menuOpciones\">Comunicación Digital</a></td>";
        textoCapa += "</tr>";
        textoCapa += "<td><img src=\"imagenes/bullet_azul.gif\" width=\"14\" height=\"14\"></td>";
        textoCapa += "<td class=\"menuOpciones\"><a href=\"proy_av.php\" class=\"menuOpciones\">Proyectos";
        textoCapa += " Audiovisuales</a></td>";
        textoCapa += "</tr>";
        textoCapa += "</tr>";
        textoCapa += "<tr style=\"cursor: hand;\">";
        textoCapa += "<td><img src=\"imagenes/bullet_azul.gif\" width=\"14\" height=\"14\"></td>";
        textoCapa += "<td class=\"menuOpciones\"><a href=\"cine_casa.php\" class=\"menuOpciones\">Cine en Casa</a></td>";
        textoCapa += "</tr>";
        textoCapa += "<tr style=\"cursor: hand;\">";

		
        textoCapa += "</table>";
        MM_setTextOfLayer(capa,'',textoCapa);
        exp3 = 1;
    }
    else
    {
       MM_setTextOfLayer(capa,'','<img src=\"imagenes/spacer.gif\" width=\"150\" height=\"1\">');
       exp3 = 0;
    }
  };

if (capa == "egrises")
  {
    if (grises1 == 0)
    {
textoCapa = "<table width=\"360\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
textoCapa += "<tr>";
textoCapa += "<td class=\"texto\"><div align=\"center\"><b>Imagen Original</b></div></td>";
textoCapa += "<td class=\"texto\"><div align=\"center\"><b>Imagen con Efecto</b></div></td>";
textoCapa += "</tr>";
textoCapa += "<tr>";
textoCapa += "<td><div align=\"center\"><img name=\"normal1\" id=\"normal1\" src=\"impdig/ejemplos/normal.jpg\" width=\"174\" height=\"131\"></div></td>";
textoCapa += "<td><div align=\"center\"><img id=\"gris1\" src=\"impdig/ejemplos/grises.jpg\" width=\"174\" height=\"131\"></div></td>";
textoCapa += "</tr>";
textoCapa += "<tr>";
textoCapa += "<td height=\"19\" class=\"texto\"><div align=\"center\">[ <a href=\"javascript:void(0);\" class=\"texto\" onClick=\"MM_openWindow('im_grande.php?id=1','imgrande','width=650,height=468,top=100,left=100')\">Agrandar</a> ]";
textoCapa += "</div></td>";
textoCapa += "<td class=\"texto\"><div align=\"center\">[ <a href=\"javascript:void(0);\" class=\"texto\" onClick=\"MM_openWindow('im_grande.php?id=2','imgrande','width=650,height=468,top=100,left=100')\">Agrandar</a> ]";
textoCapa += "</div></td>";
textoCapa += "</tr>";
textoCapa += "</table>";
        MM_setTextOfLayer(capa,'',textoCapa);
        grises1 = 1;
    }
    else
    {
       MM_setTextOfLayer(capa,'','<img src=\"imagenes/spacer.gif\" width=\"150\" height=\"1\">');
       grises1 = 0;
    }
  };

if (capa == "negativo")
  {
    // capa = "menu1";
    if (negativo1 == 0)
    {
textoCapa = "<table width=\"360\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
textoCapa += "<tr>";
textoCapa += "<td class=\"texto\"><div align=\"center\"><b>Imagen Original</b></div></td>";
textoCapa += "<td class=\"texto\"><div align=\"center\"><b>Imagen con Efecto</b></div></td>";
textoCapa += "</tr>";
textoCapa += "<tr>";
textoCapa += "<td><div align=\"center\"><img src=\"impdig/ejemplos/normal.jpg\" width=\"174\" height=\"131\"></div></td>";
textoCapa += "<td><div align=\"center\"><img src=\"impdig/ejemplos/negativo.jpg\" width=\"174\" height=\"131\"></div></td>";
textoCapa += "</tr>";
textoCapa += "<tr>";
textoCapa += "<td height=\"19\" class=\"texto\"><div align=\"center\">[ <a href=\"javascript:void(0);\" class=\"texto\" onClick=\"MM_openWindow('im_grande.php?id=1','imgrande','width=650,height=468,top=100,left=100')\">Agrandar</a> ]</div></td>";
textoCapa += "<td class=\"texto\"><div align=\"center\">[ <a href=\"javascript:void(0);\" class=\"texto\" onClick=\"MM_openWindow('im_grande.php?id=3','imgrande','width=650,height=468,top=100,left=100')\">Agrandar</a> ]</div></td>";
textoCapa += "</tr>";
textoCapa += "</table>";
        MM_setTextOfLayer(capa,'',textoCapa);
        negativo1 = 1;
    }
    else
    {
       MM_setTextOfLayer(capa,'','<img src=\"imagenes/spacer.gif\" width=\"150\" height=\"1\">');
       negativo1 = 0;
    }
  };

if (capa == "binarios")
  {
    // capa = "menu1";
    if (binarios1 == 0)
    {
textoCapa = "<table width=\"360\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
textoCapa += "<tr>\n";
textoCapa += "<td class=\"texto\"><div align=\"center\"><b>Imagen Original</b></div></td>\n";
textoCapa += "<td class=\"texto\"><div align=\"center\"><b>Imagen con Efecto</b></div></td>\n";
textoCapa += "</tr>\n";
textoCapa += "<tr>\n";
textoCapa += "<td><div align=\"center\"><img src=\"impdig/ejemplos/normal.jpg\" width=\"174\" height=\"131\"></div></td>\n";
textoCapa += "<td><div align=\"center\"><img src=\"impdig/ejemplos/binarizada.jpg\" width=\"174\" height=\"131\"></div></td>\n";
textoCapa += "</tr>\n";
textoCapa += "<tr>\n";
textoCapa += "<td height=\"19\" class=\"texto\"><div align=\"center\">[ <a href=\"javascript:void(0);\" class=\"texto\" onClick=\"MM_openWindow('im_grande.php?id=1','imgrande','width=650,height=468,top=100,left=100')\">Agrandar</a> ]</div></td>\n";
textoCapa += "<td class=\"texto\"><div align=\"center\">[ <a href=\"javascript:void(0);\" class=\"texto\" onClick=\"MM_openWindow('im_grande.php?id=4','imgrande','width=650,height=468,top=100,left=100')\">Agrandar</a> ]</div></td>\n";
textoCapa += "</tr>\n";
textoCapa += "</table>\n";
        MM_setTextOfLayer(capa,'',textoCapa);
        binarios1 = 1;
    }
    else
    {
       MM_setTextOfLayer(capa,'','<img src=\"imagenes/spacer.gif\" width=\"150\" height=\"1\">');
       binarios1 = 0;
    }
  };

if (capa == "mosaico")
  {
    // capa = "menu1";
    if (mosaico1 == 0)
    {
textoCapa = "<table width=\"360\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
textoCapa += "<tr>";
textoCapa += "<td class=\"texto\"><div align=\"center\"><b>Imagen Original</b></div></td>";
textoCapa += "<td class=\"texto\"><div align=\"center\"><b>Imagen con Efecto</b></div></td>";
textoCapa += "</tr>";
textoCapa += "<tr>";
textoCapa += "<td><div align=\"center\"><img src=\"impdig/ejemplos/normal.jpg\" width=\"174\" height=\"131\"></div></td>";
textoCapa += "<td><div align=\"center\"><img src=\"impdig/ejemplos/mosaico.jpg\" width=\"174\" height=\"131\"></div></td>";
textoCapa += "</tr>";
textoCapa += "<tr>";
textoCapa += "<td height=\"19\" class=\"texto\"><div align=\"center\">[ <a href=\"javascript:void(0);\" class=\"texto\" onClick=\"MM_openWindow('im_grande.php?id=1','imgrande','width=650,height=468,top=100,left=100')\">Agrandar</a> ]";
textoCapa += "</div></td>";
textoCapa += "<td class=\"texto\"><div align=\"center\">[ <a href=\"javascript:void(0);\" class=\"texto\" onClick=\"MM_openWindow('im_grande.php?id=5','imgrande','width=650,height=468,top=100,left=100')\">Agrandar</a> ]";
textoCapa += "</div></td>";
textoCapa += "</tr>";
textoCapa += "</table>";
        MM_setTextOfLayer(capa,'',textoCapa);
        mosaico1 = 1;
    }
    else
    {
       MM_setTextOfLayer(capa,'','<img src=\"imagenes/spacer.gif\" width=\"150\" height=\"1\">');
       mosaico1 = 0;
    }
  };

if (capa == "relieve")
  {
    // capa = "menu1";
    if (relieve1 == 0)
    {
textoCapa = "<table width=\"360\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
textoCapa += "<tr>";
textoCapa += "<td class=\"texto\"><div align=\"center\"><b>Imagen Original</b></div></td>";
textoCapa += "<td class=\"texto\"><div align=\"center\"><b>Imagen con Efecto</b></div></td>";
textoCapa += "</tr>";
textoCapa += "<tr>";
textoCapa += "<td><div align=\"center\"><img src=\"impdig/ejemplos/normal.jpg\" width=\"174\" height=\"131\"></div></td>";
textoCapa += "<td><div align=\"center\"><img src=\"impdig/ejemplos/relieve.jpg\" width=\"174\" height=\"131\"></div></td>";
textoCapa += "</tr>";
textoCapa += "<tr>";
textoCapa += "<td height=\"19\" class=\"texto\"><div align=\"center\">[ <a href=\"javascript:void(0);\" class=\"texto\" onClick=\"MM_openWindow('im_grande.php?id=1','imgrande','width=650,height=468,top=100,left=100')\">Agrandar</a> ]</div></td>";
textoCapa += "<td class=\"texto\"><div align=\"center\">[ <a href=\"javascript:void(0);\" class=\"texto\" onClick=\"MM_openWindow('im_grande.php?id=6','imgrande','width=650,height=468,top=100,left=100')\">Agrandar</a> ]</div></td>";
textoCapa += "</tr>";
textoCapa += "</table>";
        MM_setTextOfLayer(capa,'',textoCapa);
        relieve1 = 1;
    }
    else
    {
       MM_setTextOfLayer(capa,'','<img src=\"imagenes/spacer.gif\" width=\"150\" height=\"1\">');
       relieve1 = 0;
    }
  };

if (capa == "bordes")
  {
    // capa = "menu1";
    if (bordes1 == 0)
    {
textoCapa = "<table width=\"360\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
textoCapa += "<tr>";
textoCapa += "<td class=\"texto\"><div align=\"center\"><b>Imagen Original</b></div></td>";
textoCapa += "<td class=\"texto\"><div align=\"center\"><b>Imagen con Efecto</b></div></td>";
textoCapa += "</tr>";
textoCapa += "<tr>";
textoCapa += "<td><div align=\"center\"><img src=\"impdig/ejemplos/normal.jpg\" width=\"174\" height=\"131\"></div></td>";
textoCapa += "<td><div align=\"center\"><img src=\"impdig/ejemplos/bordes.jpg\" width=\"174\" height=\"131\"></div></td>";
textoCapa += "</tr>";
textoCapa += "<tr>";
textoCapa += "<td height=\"19\" class=\"texto\"><div align=\"center\">[ <a href=\"javascript:void(0);\" class=\"texto\" onClick=\"MM_openWindow('im_grande.php?id=1','imgrande','width=650,height=468,top=100,left=100')\">Agrandar</a> ]</div></td>";
textoCapa += "<td class=\"texto\"><div align=\"center\">[ <a href=\"javascript:void(0);\" class=\"texto\" onClick=\"MM_openWindow('im_grande.php?id=7','imgrande','width=650,height=468,top=100,left=100')\">Agrandar</a> ]</div></td>";
textoCapa += "</tr>";
textoCapa += "</table>";
        MM_setTextOfLayer(capa,'',textoCapa);
        bordes1 = 1;
    }
    else
    {
       MM_setTextOfLayer(capa,'','<img src=\"imagenes/spacer.gif\" width=\"150\" height=\"1\">');
       bordes1 = 0;
    }
  };

if (capa == "rotacion")
{
    // capa = "menu1";
    if (rotacion1 == 0)
    {
textoCapa = "<table width=\"360\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
textoCapa += "<tr>";
textoCapa += "<td class=\"texto\"><div align=\"center\"><b>Imagen Original</b></div></td>";
textoCapa += "<td class=\"texto\"><div align=\"center\"><b>Imagen con Efecto</b></div></td>";
textoCapa += "</tr>";
textoCapa += "<tr>";
textoCapa += "<td><div align=\"center\"><img src=\"impdig/ejemplos/normal.jpg\" width=\"174\" height=\"131\"></div></td>";
textoCapa += "<td><div align=\"center\"><img src=\"impdig/ejemplos/rotada.jpg\" width=\"174\" height=\"131\"></div></td>";
textoCapa += "</tr>";
textoCapa += "<tr>";
textoCapa += "<td height=\"19\" class=\"texto\"><div align=\"center\">[ <a href=\"javascript:void(0);\" class=\"texto\" onClick=\"MM_openWindow('im_grande.php?id=1','imgrande','width=650,height=468,top=100,left=100')\">Agrandar</a> ]</div></td>";
textoCapa += "<td class=\"texto\"><div align=\"center\">[ <a href=\"javascript:void(0);\" class=\"texto\" onClick=\"MM_openWindow('im_grande.php?id=8','imgrande','width=650,height=468,top=100,left=100')\">Agrandar</a> ]</div></td>";
textoCapa += "</tr>";
textoCapa += "</table>";
        MM_setTextOfLayer(capa,'',textoCapa);
        rotacion1 = 1;
    }
    else
    {
       MM_setTextOfLayer(capa,'','<img src=\"imagenes/spacer.gif\" width=\"150\" height=\"1\">');
       rotacion1 = 0;
    }
}
}