function wyswietl(a,b){
	if (a == 1){
		if (b == 1){
			document.getElementById("komunikat").innerHTML="<br /><b>Huhtamaki</b><br />Naczynia i opakowania jednorazowe";
			document.getElementById("foto1").src = "grafika/projekt1_12.jpg";
		}
		if (b == 0){
			document.getElementById("komunikat").innerHTML="";
			document.getElementById("foto1").src = "grafika/projekt1_12_b.jpg";
		}
	}
	if (a == 2){
		if (b == 1){
			document.getElementById("komunikat").innerHTML="<br /><b>Paclan</b><br />Artykuły do utrzymania świezości i czystości";
			document.getElementById("foto2").src = "grafika/projekt1_14.jpg";
		}
		if (b == 0){
			document.getElementById("komunikat").innerHTML="";
			document.getElementById("foto2").src = "grafika/projekt1_14_b.jpg";
		}
	}
	if (a == 3){
		if (b == 1){
			document.getElementById("komunikat").innerHTML="<br /><b>Opakowania dla biznesu</b>";
			document.getElementById("foto3").src = "grafika/projekt1_16.jpg";
		}
		if (b == 0){
			document.getElementById("komunikat").innerHTML="";
			document.getElementById("foto3").src = "grafika/projekt1_16_b.jpg";
		}
	}
	if (a == 4){
		if (b == 1){
			document.getElementById("komunikat").innerHTML="<br /><b>Produkcja</b>";
			document.getElementById("foto4").src = "grafika/produkcja.jpg";
		}
		if (b == 0){
			document.getElementById("komunikat").innerHTML="";
			document.getElementById("foto4").src = "grafika/produkcja_b.jpg";
		}
	}
}

function wyswietl_pod(a,b){
	if (a == 1){
		if (b == 1){
			document.getElementById("komunikat").innerHTML="<br /><b>Huhtamaki</b>";
			document.getElementById("foto1").src = "grafika/projekt1_12.jpg";
		}
		if (b == 0){
			document.getElementById("komunikat").innerHTML="";
			document.getElementById("foto1").src = "grafika/projekt1_12_b.jpg";
		}
	}
	if (a == 2){
		if (b == 1){
			document.getElementById("komunikat").innerHTML="<br /><b>Paclan</b>";
			document.getElementById("foto2").src = "grafika/projekt1_14.jpg";
		}
		if (b == 0){
			document.getElementById("komunikat").innerHTML="";
			document.getElementById("foto2").src = "grafika/projekt1_14_b.jpg";
		}
	}
	if (a == 3){
		if (b == 1){
			document.getElementById("komunikat").innerHTML="<br />&nbsp;<b>Dla Biznesu</b>";
			document.getElementById("foto3").src = "grafika/projekt1_16.jpg";
		}
		if (b == 0){
			document.getElementById("komunikat").innerHTML="";
			document.getElementById("foto3").src = "grafika/projekt1_16_b.jpg";
		}
	}
	if (a == 4){
		if (b == 1){
			document.getElementById("komunikat").innerHTML="<br /><b>Produkcja</b>";
			document.getElementById("foto4").src = "grafika/produkcja.jpg";
		}
		if (b == 0){
			document.getElementById("komunikat").innerHTML="";
			document.getElementById("foto4").src = "grafika/produkcja_b.jpg";
		}
	}
}


function rotator(katalog,ilosc){
	var tablica = new Array(5);
	
	tablica[0] = "animacje/"+katalog+"/1.jpg";
	tablica[1] = "animacje/"+katalog+"/2.jpg";
	tablica[2] = "animacje/"+katalog+"/3.jpg";
	tablica[3] = "animacje/"+katalog+"/4.jpg";
	tablica[4] = "animacje/"+katalog+"/5.jpg";
	tablica[5] = "animacje/"+katalog+"/6.jpg";
	tablica[6] = "animacje/"+katalog+"/7.jpg";
	
	if (licznik == ilosc){
		licznik = 0;
	}
	document.getElementById("zmiana_obrazkow").src = tablica[licznik];
	licznik++;	
}
