﻿/*
This code utilizes the "jQuery Cycle" plugin for banner image rotation.
http://malsup.com/jquery/cycle/

I can reference the following variables that are defined from my XSLT:

rotationFrequency
bannerImageCount

*/

$(document).ready(function() {
    // convert to milliseconds instead of seconds

    $("#rotator").cycle({
        fx: 'fade',
        speed: 750,
        timeout: rotationFrequency * 1000,
        random: 1
    });
    
});

