BullFijo=true;
SubmenuAct='';
function SubMenu(nombre, alto)
{
	if (SubmenuAct!='') document.getElementById(SubmenuAct).style.height='0px';	 
	document.getElementById(nombre).style.height=alto+'px';	
	SubmenuAct=nombre;
}

function Encima(id, bull)
{
  if (bull==undefined) bull=true;
  document.getElementById(id).style.color='#FF3E52';
  document.getElementById(id).style.borderBottomColor='#FF3E52';
  if (bull) document.getElementById(id).style.listStyleImage= 'url(bullet2.png)';
  document.getElementById('e'+id).style.color= '#FF3E52';
  if (id=='l7') document.getElementById('LFivan').style.visibility='visible';

}

function Fuera(id, bull)
{
  if (bull==undefined) bull=true;
  document.getElementById(id).style.color='#024C3E';
  document.getElementById(id).style.borderBottomColor='#024C3E';
  if (bull) document.getElementById(id).style.listStyleImage= 'url(bullet.png)';
  document.getElementById('e'+id).style.color= '#024C3E';
  if (MenuFijo!='')
  {
    Encima(MenuFijo, BullFijo);
    if (MenuFijo=='l8' || MenuFijo=='l9' || MenuFijo=='l10') Encima('l2', true);
    if (MenuFijo=='l13' || MenuFijo=='l14') Encima('l4', true);
    if (MenuFijo=='l11' || MenuFijo=='l12') Encima('l5', true);
  }
  if (id=='l7') document.getElementById('LFivan').style.visibility='hidden';
}

function FadeOut(foto)
{
  if (gOpacidad>0) gOpacidad-=2;
  document.getElementById(foto).style.opacity=gOpacidad/100;
  document.getElementById(foto).style.filter='alpha(opacity='+(gOpacidad)+')';
  if (gOpacidad>0) setTimeout('FadeOut("'+foto+'")',10);
  else 
  {
    gOpacidad=0;
    setTimeout('FadeIn("'+foto+'")',5000);
  }	
}

function FadeIn(foto)
{
  if (gOpacidad<100) gOpacidad+=2;
  document.getElementById(foto).style.opacity=gOpacidad/100;
  document.getElementById(foto).style.filter='alpha(opacity='+(gOpacidad)+')';
  if (gOpacidad<100) setTimeout('FadeIn("'+foto+'")',10);
  else 
  {
    gOpacidad=100;
    setTimeout('FadeOut("'+foto+'")',5000);
  }	
}
