otwarte=0;
function p_zoom(x,y,nazwa,opis){
if(otwarte==1) {if (noweokno.closed)
{otwarte=0} else {noweokno.close(); otwarte=0}}
noweokno=window.open("","","width="+x+",height="+y+",titlebar=no, scrollbars=no, menubar = no, status = no, location=no");
noweokno.document.write("<BODY text='white'leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>")
noweokno.document.bgColor="black"
noweokno.document.title=opis
noweokno.document.write("<A href='javascript:window.close()'><img src='./images/galeria/"+nazwa+"' border='0' alt='zamknij'></A><br>&nbsp;&nbsp;&nbsp;"+opis) 
otwarte=1
}

var movieName = "menu";

function thisMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName]
  }	else {
    return document[movieName]
  }
}

// Checks if movie is completely loaded.
// Returns true if yes, false if no.
function movieIsLoaded (theMovie) {
  if (typeof(theMovie) != "undefined") {
    return theMovie.PercentLoaded() == 100;
  } else {
    return false;
  }
}


function playmovie() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).Play();
  }
}

function stopmovie() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).StopPlay();
  }
}


function go(theFrame) {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).GotoFrame(theFrame);
  }
}

function golabel(theFrame) {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/",theFrame);
  }
}
