vys = new Array();
parapet = 1;
okno =1;
 if (document.images) {
   vys[0] = new Image(); // for the inactive image
   vys[0].src = "image/p1_1.jpg";
   vys[1] = new Image(); // for the inactive image
   vys[1].src = "image/p1_1.jpg";
   vys[2] = new Image(); // for the inactive image
   vys[2].src = "image/p1_2.jpg";
   vys[3] = new Image(); // for the inactive image
   vys[3].src = "image/p1_3.jpg";
   vys[4] = new Image(); // for the inactive image
   vys[4].src = "image/p1_4.jpg";
   vys[5] = new Image(); // for the inactive image
   vys[5].src = "image/p1_5.jpg";
   vys[6] = new Image(); // for the inactive image
   vys[6].src = "image/p1_6.jpg";
   vys[7] = new Image(); // for the inactive image
   vys[7].src = "image/p1_7.jpg";
   vys[8] = new Image(); // for the inactive image
   vys[8].src = "image/p1_8.jpg";
   vys[9] = new Image(); // for the inactive image
   vys[9].src = "image/p2_1.jpg";
   vys[10] = new Image(); // for the inactive image
   vys[10].src = "image/p2_2.jpg";
   vys[11] = new Image(); // for the inactive image
   vys[11].src = "image/p2_3.jpg";
   vys[12] = new Image(); // for the inactive image
   vys[12].src = "image/p2_4.jpg";
   vys[13] = new Image(); // for the inactive image
   vys[13].src = "image/p2_5.jpg";
   vys[14] = new Image(); // for the inactive image
   vys[14].src = "image/p2_6.jpg";
   vys[15] = new Image(); // for the inactive image
   vys[15].src = "image/p2_7.jpg";
   vys[16] = new Image(); // for the inactive image
   vys[16].src = "image/p2_8.jpg";
   vys[17] = new Image(); // for the inactive image
   vys[17].src = "image/p3_1.jpg";
   vys[18] = new Image(); // for the inactive image
   vys[18].src = "image/p3_2.jpg";
   vys[19] = new Image(); // for the inactive image
   vys[19].src = "image/p3_3.jpg";
   vys[20] = new Image(); // for the inactive image
   vys[20].src = "image/p3_4.jpg";
   vys[21] = new Image(); // for the inactive image
   vys[21].src = "image/p3_5.jpg";
   vys[22] = new Image(); // for the inactive image
   vys[22].src = "image/p3_6.jpg";
   vys[23] = new Image(); // for the inactive image
   vys[23].src = "image/p3_7.jpg";
   vys[24] = new Image(); // for the inactive image
   vys[24].src = "image/p3_8.jpg";
 }
 function oknoact(vstup) {
	 okno=vstup;
	 cislo=(okno-1)*8+parapet;
 	 document.images.vysledok.src=vys[cislo].src;
 }
 function oknozob(vstup) {
	 cislo=(vstup-1)*8+parapet;
 	 document.images.vysledok.src=vys[cislo].src;
}
 function paract(vstup) {
	 parapet=vstup;
	 cislo=(okno-1)*8+parapet;
 	 document.images.vysledok.src=vys[cislo].src;
 }
 function parzob(vstup) {
	 cislo=(okno-1)*8+vstup;
 	 document.images.vysledok.src=vys[cislo].src;
}

