﻿
    //spinning image stuff
    // Array of pictures to loop through
    var picSet1 = ['images/home3.png', 'images/home1.png', 'images/home2.png', 'images/home4.png'];
    var linkSet1 = ['/', '/', '/', '/'];

    var pic = 0;

    // Function to change image 
    function swapImage() {
        if (pic == picSet1.length - 1) {
            pic = 0;
        }
        else {
            pic++;
        }

        // Set new image to index + 1 or loop if beyond end of array
        document.images['imgRotate'].src = picSet1[pic];
        document.getElementById('ancRotate').href = linkSet1[pic];
    }

