/*
Gradual-Highlight Image Script- 
© Dynamic Drive (www.dynamicdrive.com) 
For full source code, installation instructions, 100's more 
DHTML scripts, and Terms Of Use, visit dynamicdrive.com
*/

function high(which2)
{
  if (window.lighting)
    clearInterval(lighting)
  theobject=which2
  lighting=setInterval("highlightit(theobject)",50)
}

function low(which2)
{
  if (window.lighting)
    clearInterval(lighting)
  which2.filters.alpha.opacity=20
}

function low2(which2)
{
  if (window.lighting)
    clearInterval(lighting)
  theobject=which2
  lighting=setInterval("lowlightit(theobject)",50)
}

function highlightit(cur2)
{
  if (cur2.filters.alpha.opacity<100)
    cur2.filters.alpha.opacity+=5
  else if (window.lighting)
    clearInterval(lighting)
}

function lowlightit(cur2)
{
  if (cur2.filters.alpha.opacity>20)
    cur2.filters.alpha.opacity-=5
  else 
    {
      cur2.filters.alpha.opacity=20
      if (window.lighting)
        clearInterval(lighting)
    }
}
