
var Opac = 100;
function FadeInfoBox()
{
    if (Opac > 0)
    {
      Opac -= 3;
      document.getElementById('FadeOutBox').style.filter = 'alpha(opacity=' + Opac + ')';
      document.getElementById('FadeOutBox').style.opacity = Opac/100;
      setTimeout('FadeInfoBox()', 10);
    }
    else
    {
      document.getElementById('FadeOutBox').parentNode.removeChild(document.getElementById('FadeOutBox'));
      setTimeout('CheckForInfoBox()', 1000);
    }
}


function CheckForInfoBox()
{
    if (document.getElementById('FadeOutBox'))
    { 
    Opac = 100;
    setTimeout('FadeInfoBox()', 2000); 
    }
    else
    {
    setTimeout('CheckForInfoBox()', 1000); 
    }
}

CheckForInfoBox();
