<!--

// okreslenie wersji przegladarki
klientName = navigator.appName;
klientVer = parseInt(navigator.appVersion);
if (klientName == "Netscape" && klientVer >=3) wersja ='Tak'; 
     else if (klientName == "Microsoft Internet Explorer" && klientVer >=4) wersja='Tak';
     else wersja = 'Nie';

// definicja stalych i wczytanie przyciskow menu
if (wersja == 'Tak')
{

       arr_on = new Array(); // tworzę tablicę rysunków gdy mysz nad
       arr_out = new Array(); // tworzę tablicę rysunków gdy mysz poza

	if(document.images)
	{
        for (var i=1; i<15; i++)
           {
                arr_on[i] = new Image;
		    arr_out[i] = new Image;
           }
        
    arr_out[1].src = "buttons/english1.gif";
        	arr_on[1].src = "buttons/english2.gif";
	arr_out[2].src = "buttons/polska1.gif";
        	arr_on[2].src = "buttons/polska2.gif";
	arr_out[3].src = "buttons/kontakt1.gif";
        	arr_on[3].src = "buttons/kontakt2.gif";
	arr_out[4].src = "buttons/dojazd1.gif";
        	arr_on[4].src = "buttons/dojazd2.gif";
	arr_out[5].src = "buttons/produkty1.gif";
        	arr_on[5].src = "buttons/produkty2.gif";
	arr_out[6].src = "buttons/srodowisko1.gif";
        	arr_on[6].src = "buttons/srodowisko2.gif";	  

	arr_out[7].src = "buttons/contact1.gif";
        	arr_on[7].src = "buttons/contact2.gif";

	arr_out[8].src = "buttons/products1.gif";
        	arr_on[8].src = "buttons/products2.gif";
	arr_out[9].src = "buttons/environment1.gif";
        	arr_on[9].src = "buttons/environment2.gif";
	arr_out[10].src = "buttons/our_location1.gif";
        	arr_on[10].src = "buttons/our_location2.gif";
	arr_out[11].src = "buttons/informacje1.gif";
        	arr_on[11].src = "buttons/informacje2.gif";
	arr_out[12].src = "buttons/zkop1.gif";
        	arr_on[12].src = "buttons/zkop2.gif";
	arr_out[13].src = "buttons/karty1.gif";
        	arr_on[13].src = "buttons/karty2.gif";
	arr_out[14].src = "buttons/cards1.gif";
        	arr_on[14].src = "buttons/cards2.gif";
	}
}


function mouseAction(img_no, akcja)
{

   if (wersja == 'Tak')
   {
       // wykonaj, gdy akcja = 'on'
         if (akcja=='on')
	   	 {
           document.images['image' + img_no].src = arr_on[img_no].src;
         } 
         // wykonaj, gdy akcja = 'out'
         else if (akcja=='out')
   	   	 { 
           document.images['image' + img_no].src = arr_out[img_no].src;
         }
   }    
}

//-->