
function epi_Effect_RotateLists(thelist, speed) {

for (i=0; i<thelist.length;i++) {
	epi_Effect_Rotate(thelist[i], speed);
	// alert(thelist[i]);
}
}

function epi_Effect_Rotate(theid, speed) {

// Childnodes drives me nuts, read more: http://www.w3schools.com/htmldom/dom_nodes_info.asp
var c = document.getElementById(theid).childNodes;
var l = c.length;
var n = -1;
var f = 0;

for (var i=0; i < l; i++) {
	elem = c[i];									// All sorts of sub-elements, not only those you expect :(
	if (elem.nodeType==1) {							// 1 means element ...
		if (n == -1 || f>0) { n = i; }				// Found first yet ? Cant be sure, since there are non-1 elements in c.
		if (f>0) { f = 0; }							// If found next, reset found (f).
		if (elem.style.display == "") { f = 1; }	// When we find a visible element, set found (f).
		elem.style.display = "none";				// Invisiblyfy everything
	}
}
c[n].style.display = ""; 							// Visiblyfy the next (n);

}
