/* * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
*
*   navbar functions     Bo Johansson 2001-01-07
*
\* * * * * * * * * * * * * * * * * * * * * * * * * * * * */


if ( document.images )
{
  btUpTop = new Image(51,3)
  btUpTop.src = jsNavBase + "yellow/bty_up_top_51x3.gif"

  btUpLeft = new Image(3,31)
  btUpLeft.src = jsNavBase + "yellow/bty_up_lft_3x31.gif"

  btUpRight = new Image(3,31)
  btUpRight.src = jsNavBase + "yellow/bty_up_rgt_3x31.gif"

  btUpBot = new Image(51,3)
  btUpBot.src = jsNavBase + "yellow/bty_up_bot_51x3.gif"


  btDwnLeft = new Image(3,31)
  btDwnLeft.src = jsNavBase + "yellow/bty_dwn_lft_3x31.gif"

  btDwnRight = new Image(3,31)
  btDwnRight.src = jsNavBase + "yellow/bty_dwn_rgt_3x31.gif"


  btFlatTopBot = new Image(51,3)
  btFlatTopBot.src = jsNavBase + "yellow/yellow_51x3.gif"

  btFlatSide = new Image(3,31)
  btFlatSide.src = jsNavBase + "yellow/yellow_3x31.gif"
}

function buttonUp(pix)
{
  if ( document.images )
  {
    document[("top" + pix)].src=btUpTop.src
    document[("bot" + pix)].src=btUpBot.src
    document[("left" + pix)].src=btUpLeft.src
    document[("right" + pix)].src=btUpRight.src
  }
}

function buttonDown(pix)
{
  if ( document.images )
  {
    document[("top" + pix)].src=btUpBot.src
    document[("bot" + pix)].src=btUpTop.src
    document[("left" + pix)].src=btDwnLeft.src
    document[("right" + pix)].src=btDwnRight.src
  }
}

function buttonFlat(pix)
{
  if ( document.images )
  {
    document[("top" + pix)].src=btFlatTopBot.src
    document[("bot" + pix)].src=btFlatTopBot.src
    document[("left" + pix)].src=btFlatSide.src
    document[("right" + pix)].src=btFlatSide.src
  }
}

// ********************* END OF FILE ************************
