/*
	Súbor: prezentacia.js
	Verzia 20110730.1206
	Autor: Š.A.G.
*/

var pocet	= 4;
var cislo	= 1;
var interval	= 8000;

window.setInterval("shadow()",interval);

function shadow() {
	document.getElementById("obrazok-"+cislo).style.opacity="0.5";
	window.setTimeout("change()",50);
}

function change() {
	document.getElementById("obrazok-"+cislo).style.display="none";

	cislo=cislo+1;
	if(cislo>pocet) cislo=1;

	document.getElementById("obrazok-"+cislo).style.opacity="0.5";
	document.getElementById("obrazok-"+cislo).style.display="";

	window.setTimeout("normal()",50);
}

function normal() {
	document.getElementById("obrazok-"+cislo).style.opacity="1";
}

