var showCycleId=0;
function showCycle(ids,idClass) {
	var ptr;
	// Hide the currently visible id
	ptr = getElementByIdArray(ids,showCycleId);
	if (ptr) {
		ptr.style.display = 'none';
	}
	// Show the next id
	++showCycleId;
	ptr = getElementByIdArray(ids,showCycleId);
	if (ptr) {
		ptr.style.display = 'block';
	}
	else {
		showCycleId = 0;
		ptr = getElementByIdArray(ids,showCycleId);
		if (ptr) {
			ptr.style.display = 'block';
		}
	}
	return false;
}

function getElementByIdArray(ids,n) {
	var ptr = null;
	if ((typeof(ids) == 'object') && (ids[showCycleId] !== undefined)) {
		ptr = document.getElementById(ids[showCycleId]);
	}
	return ptr;
}

