﻿// JScript File
function beginCycle()
{
    var currentUrl = location.href;
    currentUrl = currentUrl.toUpperCase();
    if (currentUrl.indexOf("MULTIMEDIA") != -1)
    {
        new Effect.Move('innerShell', { x: -1125, y: 0, duration: 0, transition: Effect.Transitions.slowstop, queue: 'end'});
    }
    if (currentUrl.indexOf("REFERENCE") != -1)
    {
        setTimeout("switchReference(1)", 5000);
    }
}
function switchReference(orderParam)
{
    var fadeControl = document.getElementById("reference" + orderParam);
    if (orderParam > 7)
    {
        orderParam = 1;
    }
    else
    {
        orderParam = orderParam + 1;
    }
    var appearControl = document.getElementById("reference" + orderParam);
    new Effect.Fade(fadeControl, { duration: 3.0, queue: 'end'});
    new Effect.Appear(appearControl, { duration: 3.0, queue: 'end'});
    setTimeout("switchReference(" + orderParam + ")", 11000);
}
