function lIterator(listElement,delay)
{
	var objNewNode;
	var imgFilePrefix = "images/galerie/Confort20-";
	var arrColorsShort = new Array("ab", "au", "ag", "ve");
	var arrColorsLong = new Array("albastru", "auriu", "argintiu", "verde");

	var imgFilePrefix2 = "images/galerie/Zefir-";
	var arrColorsShort2 = new Array("ab", "ag", "ro");
	var arrColorsLong2 = new Array("albastru", "argintiu", "rosu");

	objNewNode = listElement.childNodes[0];
	objNewNode.innerHTML = "<a href=\"" + imgFilePrefix + arrColorsShort[0] + ".jpg\" target=\"_blank\"><img src=\"images/galerie/Confort20-ab-b.jpg\" alt=\"Confort 20 - " + arrColorsLong[0] + "\" /></a>";

	for (var i = 1; i < arrColorsLong.length; i++)
	{
		objNewNode = document.createElement("li");
		listElement.appendChild(objNewNode);
		objNewNode.style.display = 'none';
		objNewNode.innerHTML = "<a href=\"" + imgFilePrefix + arrColorsShort[i] + ".jpg\" target=\"_blank\"><img src=\"images/galerie/Confort20-" + arrColorsShort[i] + "-b.jpg\" alt=\"Confort 20 - " + arrColorsLong[i] + "\" /></a>";
	}

	for (var i = 0; i < arrColorsLong2.length; i++)
	{
		objNewNode = document.createElement("li");
		listElement.appendChild(objNewNode);
		objNewNode.style.display = 'none';
		objNewNode.innerHTML += "<a href=\"" + imgFilePrefix2 + arrColorsShort2[i] + ".jpg\" target=\"_blank\"><img src=\"images/galerie/Zefir-" + arrColorsShort2[i] + "-b.jpg\" alt=\"Zefir - " + arrColorsLong2[i] + "\" /></a>";
	}
/*
<li><a href="images/galerie/Confort20-ag.jpg" target="_blank"><img src="images/galerie/Confort20-ve-b.jpg" alt="Confort 20 - verde" /></a></li>

	for (var i = listElement.childNodes.length-1; i >= 0; i--)
		if(!/li/i.test(listElement.childNodes[i].nodeName))
			listElement.removeChild(listElement.childNodes[i]);

	//hide all the list items but first one
	for (var i = 1; i < listElement.childNodes.length; i++)
		listElement.childNodes[i].style.display = 'none';
*/
	this.currentLI = listElement.firstChild;

	this.id = lIterator.instances.length;
	lIterator.instances.push(this);

	setInterval('lIterator.instances['+this.id+'].showNext()',delay);

	/* Dynamic Methods */
	this.showNext = function()
	{
		this.currentLI.style.display = 'none';
		this.currentLI = this.currentLI.nextSibling? this.currentLI.nextSibling: this.currentLI.parentNode.firstChild;
		this.currentLI.style.display = 'block';
	}
}

lIterator.instances = new Array();
