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


if ( document.images )
{
  xxBtUpTop = new Image(57,3)
  xxBtUpTop.src = jsNavBase + "yellow/bty_up_top_57x3.gif"

  xxBtUpLeft = new Image(3,35)
  xxBtUpLeft.src = jsNavBase + "yellow/bty_up_lft_3x35.gif"

  xxBtUpRight = new Image(3,35)
  xxBtUpRight.src = jsNavBase + "yellow/bty_up_rgt_3x35.gif"

  xxBtUpBot = new Image(57,3)
  xxBtUpBot.src = jsNavBase + "yellow/bty_up_bot_57x3.gif"


  xxBtDwnLeft = new Image(3,35)
  xxBtDwnLeft.src = jsNavBase + "yellow/bty_dwn_lft_3x35.gif"

  xxBtDwnRight = new Image(3,35)
  xxBtDwnRight.src = jsNavBase + "yellow/bty_dwn_rgt_3x35.gif"


  xxBtFlatTopBot = new Image(57,3)
  xxBtFlatTopBot.src = jsNavBase + "yellow/yellow_57x3.gif"

  xxBtFlatSide = new Image(3,35)
  xxBtFlatSide.src = jsNavBase + "yellow/yellow_3x35.gif"
}

function xxButtonUp(pix)
{
  if ( document.images )
  {
    document[("top" + pix)].src=xxBtUpTop.src
    document[("bot" + pix)].src=xxBtUpBot.src
    document[("left" + pix)].src=xxBtUpLeft.src
    document[("right" + pix)].src=xxBtUpRight.src
  }
}

function xxButtonDown(pix)
{
  if ( document.images )
  {
    document[("top" + pix)].src=xxBtUpBot.src
    document[("bot" + pix)].src=xxBtUpTop.src
    document[("left" + pix)].src=xxBtDwnLeft.src
    document[("right" + pix)].src=xxBtDwnRight.src
  }
}

function xxButtonFlat(pix)
{
  if ( document.images )
  {
    document[("top" + pix)].src=xxBtFlatTopBot.src
    document[("bot" + pix)].src=xxBtFlatTopBot.src
    document[("left" + pix)].src=xxBtFlatSide.src
    document[("right" + pix)].src=xxBtFlatSide.src
  }
}

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