﻿// This function rotates the affiliates
function RotateAffiliates() 
{
    var wrapperDiv = document.getElementById('affiliates');

    if (wrapperDiv.hasChildNodes()) 
    {
        var childNodeArray = document.getElementById('affiliates').childNodes;

        var firstChild = childNodeArray.item(0);
        var firstChildClone = childNodeArray.item(0).cloneNode(true);

        wrapperDiv.removeChild(firstChild);
        wrapperDiv.appendChild(firstChildClone);
    }
}
