var LayerActivo="";

//::::::::: MUESTRA y OCULTA CAPAS :::::::::

function MuestraLayer(NombreLayer)
{
  var elLayer=eval(NombreLayer);
  
  OcultaLayer(LayerActivo);
  LayerActivo=NombreLayer;
  if(elLayer)
  {
    elLayer.style.pixelTop=document.body.scrollTop+65;
    elLayer.style.visibility='visible';
  }
}

function OcultaLayer(NombreLayer)
{
  var elLayer=eval(NombreLayer);
  LayerActivo="";
  if(elLayer)
     elLayer.style.visibility='hidden';
}
//==========================================

function add2favoritos(){
if (document.all)
  window.external.AddFavorite(location,document.title);
}


//::::::::: MUESTRA y OCULTA CAPAS :::::::::
LightSPEED=45;
LightINC=5;
LightDEC=10;
function high(which2)
{
  theobjectIN=which2;
  setTimeout("highlightit("+which2.id+")",LightSPEED);
}
function low(which2)
{
  theobjectIN=null;
  theobjectOUT=which2;
  setTimeout("lowlightit(theobjectOUT)",LightSPEED);
}
function highlightit(cur)
{
  if (cur2=getFromID(cur))
  {
    if((cur2.filters.alpha.opacity+LightINC)<=100)
    {
      cur2.filters.alpha.opacity+=LightINC;
	  if ((theobjectIN==cur2) && cur2)
        setTimeout("highlightit("+cur2.id+")",LightSPEED);
    }
    else
      cur2.filters.alpha.opacity=100;
  }
}
function lowlightit(cur)
{
  if (cur2=getFromID(cur))
  {
    if((cur2.filters.alpha.opacity-LightDEC)>=40)
    {
      cur2.filters.alpha.opacity-=LightDEC;
      setTimeout("lowlightit("+cur2.name+")",LightSPEED);
    }
    else
      cur2.filters.alpha.opacity=40;
  }
}
//==========================================

//:::::::::: Para Arrastrar Layers ::::::::::::::

/*function moverCursor(e){
 pX=1;pY=1
 if(document.layers){document.layers["spanCur"].moveTo(e.x+pX,  e.y+pY) }
 else if(document.all){
  document.all.cursor.style.posTop = event.y+pY
  document.all.cursor.style.posLeft= event.x+pX}
 return true}

if(document.layers)document.captureEvents(Event.MOUSEMOVE)
document.onmousemove=moverCursor*/

//==============================================
