﻿var _rotatorPos = 1;

$(document).ready(function() { window.setInterval(updateRotator,5000) });

function updateRotator() {

    _rotatorPos += 1;
    if (_rotatorPos == 7)
        _rotatorPos = 1;

    $(".rotatorImage").attr("src", "/img/rotator/img" + _rotatorPos + ".png");
}
