// Autorem skryptu jest: SŁAWOMIR KOKŁOWSKI
// www.kurshtml.boo.pl
// Jeśli chcesz wykorzystać ten skrypt na swojej stronie, nie usuwaj tego komentarza!


function przycisk(podstawowy, wskazany, klikniety, tekst)
{
  if (document.images)
  {
    this.name = "img" + przyciski.length;
    if (podstawowy) { this.normal = new Image(); this.normal.src = podstawowy }
    if (wskazany) { this.over = new Image(); this.over.src = wskazany }
    if (klikniety) { this.down = new Image(); this.down.src = klikniety }
  }
  if (tekst) this.opis = tekst;

  this.normalizuj = normalizuj;
  this.podswietl = podswietl;
  this.kliknij = kliknij;

  return this;
     
  function normalizuj() { if (document.images) document.images[this.name].src = this.normal.src; window.status = "" }
  function podswietl() { if (document.images && this.over) document.images[this.name].src = this.over.src; if (this.opis) window.status = this.opis }
  function kliknij() { if (document.images) document.images[this.name].src = this.down.src }
}

      przyciski = new Array("");
      if (document.images)
      {
      // Dodawanie kolejnych przycisków:
      przyciski[1] = new przycisk("./gfx/menu_01.gif", "./gfx/menu1_01.gif");
      przyciski[2] = new przycisk("./gfx/menu_02.gif", "./gfx/menu1_02.gif");
      przyciski[3] = new przycisk("./gfx/menu_03.gif", "./gfx/menu1_03.gif");
      przyciski[4] = new przycisk("./gfx/menu_04.gif", "./gfx/menu1_04.gif");
      przyciski[5] = new przycisk("./gfx/menu_05.gif", "./gfx/menu1_05.gif");
      przyciski[6] = new przycisk("./gfx/menu_06.gif", "./gfx/menu1_06.gif");
      przyciski[7] = new przycisk("./gfx/menu_07.gif", "./gfx/menu1_07.gif");
      przyciski[8] = new przycisk("./gfx/menu_08.gif", "./gfx/menu1_08.gif");
      przyciski[9] = new przycisk("./gfx/menu_09.gif", "./gfx/menu1_09.gif");
      }
