function przycisk(podstawowy, wskazany)
{
  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 }

  }

  this.normalizuj = normalizuj;
  this.podswietl = podswietl;

  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 }
}
przyciski = new Array("");
if (document.images)
{
// Dodawanie kolejnych przycisków:
przyciski[1] = new przycisk("menu/home.jpg", "menu/home2.jpg");
przyciski[2] = new przycisk("menu/o_moku.jpg", "menu/o_moku2.jpg");
przyciski[3] = new przycisk("menu/dzial.jpg", "menu/dzial2.jpg");
przyciski[4] = new przycisk("menu/galeria.jpg", "menu/galeria2.jpg");
przyciski[5] = new przycisk("menu/kontakt.jpg", "menu/kontakt2.jpg");
}


/////////////////////////////////////////////////////////
function high(which2)
{ theobject=which2
highlighting=setInterval("highlightit(theobject)",30)}
function low(which2)
{clearInterval(highlighting)
if (which2.style.MozOpacity)
which2.style.MozOpacity=0.3
else if (which2.filters)
which2.filters.alpha.opacity=50
}

function highlightit(cur2){
if (cur2.style.MozOpacity<1)
cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
else if (cur2.filters&&cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}

/////////////////////////////////////////////////////////

function create_window(url,width,height,resizable,scrollbars,menubar){
var Win=window.open(url,"pokazokno",'width='+width+',height='+height+',resizable='+resizable+',scrollbars='+scrollbars+',menubar='+menubar);
}

////////////////////////////////////////////////////////

function noweOkno(rysunek) {
      oknoAkt = window.open(rysunek, 'oknoA', 'width=650,height=480')
      oknoAkt.focus()
	onFocus="blur()"}

///////////////////////////////////////////////////////
