//


//HP slidy s programy

var xlist;
var xli;
var actnum =  0;

function slideInit()
{
xlist = document.getElementById('hp-slide');
xli =  xlist.getElementsByTagName('LI');
}

function slideSet()
{
	for(i=1; i<xli.length; i++)
	{
		if (xli[i].className == "hp-slide-act") {actnum =  i;}
		xli[i].className = ""; 
		xli[i].style.zIndex = "0"; 
	}
}

function slideNext()
{
	slideSet();
	actnum++;
	if (actnum >= xli.length) actnum = 1;
	xli[actnum].className = "hp-slide-act"; 
	xli[actnum].style.zIndex = "100"; 
	return false;
}

function slidePrev()
{
	slideSet();
	actnum = actnum-1;
	if (actnum < 1 ) actnum = xli.length-1;
	xli[actnum].className = "hp-slide-act"; 
	xli[actnum].style.zIndex = "100"; 
	return false;
}

function slideThis(x)
{
	slideSet();
	xli[x].className = "hp-slide-act"; 
	xli[x].style.zIndex = "100"; 
	return false;
}
