var arImages = new Array();
function preload()
{
 var temp = new Array('http://podatki.pl/layout/domek-on.gif', 'http://podatki.pl/layout/klodka-on.gif', 'http://podatki.pl/layout/kluczyk-on.gif', 'http://podatki.pl/layout/kopertka-on.gif', 'http://podatki.pl/layout/ksiazki-on.gif', 'http://podatki.pl/layout/l-menu-przycisk-on.gif', 'http://podatki.pl/layout/lupka-on.gif', 'http://podatki.pl/layout/mloteczek-on.gif', 'http://podatki.pl/layout/narzedzia-on.gif', 'http://podatki.pl/layout/wozek-on.gif');
 for(x = 0; x < temp.length; x++) {
  arImages[x] = new Image();
  arImages[x].src = temp[x];
 }
}
function podswietlLnkImg(obrazek, klasa)
{
 var objekt = event.srcElement;
 if (objekt.tagName == 'IMG') {
  objekt.src = obrazek;
  objekt.parentNode.className = klasa;
 } else {
  objekt.childNodes[0].src = obrazek;
  objekt.className = klasa;
 }
}
function podswietlImg(obrazek)
{
 event.srcElement.src = obrazek;
}
function podswietlLnk(klasa)
{
 event.srcElement.className = klasa;
}