private_on = new Image();
private_off = new Image();
private_on.src = '../img/private_on.gif';
private_off.src = '../img/private_off.gif';
private_txt = "O mnie prywatnie...";

family_on = new Image();
family_off = new Image();
family_on.src = '../img/family_on.gif';
family_off.src = '../img/family_off.gif';
family_txt = "Więcej o moich bliskich...";

music_on = new Image();
music_off = new Image();
music_on.src = '../img/music_on.gif';
music_off.src = '../img/music_off.gif';
music_txt = "Muzyka - słucham, piszę, gram i ¶piewam";

god_on = new Image();
god_off = new Image();
god_on.src = '../img/god_on.gif';
god_off.src = '../img/god_off.gif';
god_txt = "Bóg w moim życiu...";

main_on = new Image();
main_off = new Image();
main_on.src = '../img/main_on.gif';
main_off.src = '../img/main_off.gif';
main_txt = "Powrót do strony głównej";

function thetext(txt) {
   document.theform.thetext.value = txt
     return true;
}

function aktywacja(img) {
  imgsrc = eval(img + '_on.src');
  txtsrc = eval(img + '_txt');
  document[img].src = imgsrc;
  thetext(txtsrc);
}

function deaktywacja(img) {
  imgsrc = eval(img + "_off.src");
  document[img].src = imgsrc;
  thetext("");
}

//Skrypt pochodzi z biblioteki http://javascript.reporter.pl/ 
nn4=(document.layers) ? true : false; 
ie4=(document.all) ? true : false; 

Nowe=null; 

function Otworz(w,s,src,t) { 
  if (Nowe) { 
    if (ie4) Nowe.close(); 
    else if (nn4) Nowe.closed; 
    Nowe=null 
  }; 
  Nowe=window.open("", "","toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,status=no,directories=no,resizable=no,height="+w+",width="+s);
  Nowe.document.write("<HTML><HEAD><STYLE>BODY{BACKGROUND-REPEAT:no-repeat}</STYLE><TITLE>"+t+"</TITLE></HEAD><BODY BACKGROUND="+src+"></BODY></HTML>");
  Nowe.focus() 
}
