function slideBarDown()
{

  clearTimeout(this.slideUpTimer);

  if( this.inSlide || $('BAR').style.top != '-24px' )
    return;

  this.slideDownTimer = setTimeout( "doSlideBar( -24, 'down' )", 300);


}
function slideBarUp()
{

  clearTimeout( this.slideDownTimer );

  if( this.inSlide || $('BAR').style.top != '0px' )
    return;

  this.slideUpTimer = setTimeout( "doSlideBar( 0, 'up' )", 800);

}

if( navigator.appCodeName == "Mozilla" && navigator.appName == "Netscape" )
  this.interval = 3;
else
  this.interval = 8;


function doSlideBar( moveY, d )
{

  if ( moveY > -24 && d == 'up')
  {
    this.inSlide = true;

    moveY -= this.interval;

    $('BAR').style.top = moveY + 'px';
    this.slidetimer = setTimeout("doSlideBar( " + moveY + ", 'up');", 10);

  } else if ( moveY < 0 && d == 'down')
  {
    this.inSlide = true;

    moveY += this.interval;

    $('BAR').style.top = moveY + 'px';
    this.slidetimer = setTimeout("doSlideBar( " + moveY + ", 'down');", 10);

  } else {
    stop_slide();
  }
}

stop_slide = function()
{
  clearTimeout(this.slidetimer);
    this.inSlide = false;

};

