



var iaCur = 0;
var iaTimer;

function iaGo(step)
{
	clearTimeout(iaTimer);
	var num = $("#ia-divs div").size();
	$(".ia-div-" + iaCur).fadeOut();

	iaCur += step;
	if(iaCur >= num) iaCur = 0;
	if(iaCur < 0) iaCur = num - 1;

	$(".ia-div-" + iaCur).fadeIn();
}

function cycleIA()
{
	iaGo(1);
	iaTimer = setTimeout("cycleIA()", 7000);
}


$(document).ready(function(){


	iaTimer = setTimeout("cycleIA()", 7000);


});






function chk(f)
{
	if(f.jmeno.value == '') {
		alert("Zadejte Vaše jméno");
		f.jmeno.focus();
		return false;
	}
	if(f.email.value == '' && f.telefon.value == '') {
		alert("Zadejte Váš e-mail nebo telefon");
		f.telefon.focus();
		return false;
	}
	if(f.dotaz.value == '') {
		alert("Zadejte Váš dotaz");
		f.dotaz.focus();
		return false;
	}
	
	return true;
}
