function rotateNieuwsItems(containerId, speed)  {
    rotateNieuwsItems_next(containerId, 0, speed);
}

function rotateNieuwsItems_next(containerId, index, speed)  {
    var items = document.getElementById(containerId).childNodes;
    if (items.length > 0) {
        if (index == 0) {
            items[items.length - 1].className = "normal";
            items[index].className = "active";
            
            setTimeout("rotateNieuwsItems_next('" + containerId + "', " + index + "+1, " + speed + ");", speed);
        } else {
            if (index == (items.length - 1)) {
                items[index - 1].className = "normal";
                items[index].className = "active";
                
                setTimeout("rotateNieuwsItems_next('" + containerId + "', 0, " + speed + ");", speed);
            }
            else {
                items[index - 1].className = "normal";
                items[index].className = "active";
                
                setTimeout("rotateNieuwsItems_next('" + containerId + "', " + index + "+1, " + speed + ");", speed);
            }
        }
    }
}
