/***************** zamiana przycisku w menu ********************/

function menu(pierwszy, drugi, opis)
{
  if (document.images)
  {
    this.name = "menu_img" + menu_temat.length;
    if (pierwszy) { this.normal = new Image(); this.normal.src = pierwszy }
    if (drugi) { this.over = new Image(); this.over.src = drugi }
  }
  if (opis) this.opis = opis;

  this.mouseOut = mouseOut;
  this.mouseOn = mouseOn;

  return this;
      
  function mouseOut() { 
	   if (document.images) {
		       document.images[this.name].src = this.normal.src; 
	           window.status = "";
	   }		   
  }
  function mouseOn() { 
	   if (document.images && this.over) { 
		       document.images[this.name].src = this.over.src; 
			   if (this.opis) window.status = this.opis; 
	   }
  }
}	
