﻿// JScript File

function showHomePageThumbs()
{
    for (i = 0; i < homePageThumbNails.length; i++)
    {
        if (document.getElementById(homePageThumbNails[i]) != null)
        {   
            document.getElementById(homePageThumbNails[i]).className = 'transEmpty';
            command = "transitionHomePageImage('" + homePageThumbNails[i] + "')";
            setTimeout(command, i * 200);
        }
    }

    for (i = 0; i < homePageThumbNails.length; i++)
    {
        command = "alertMe('" + homePageThumbNails[i] + "')";
        setTimeout(command, 8000);
    }
}

function alertMe(CurrentImage)
{


}


function transitionHomePageImage(idofImage)
{
    for (i = 0; i < htStyles.length; i++)
    {
        command = "setHomePageClassName('" + idofImage + "', " + (htStyles.length - 1 - i) + ")";
        setTimeout(command, i * 30);
    }
}



function setHomePageClassName(CurrentImage, CurrentClassNameIndex)
{
    document.getElementById(CurrentImage).className = htStyles[CurrentClassNameIndex];
}



womAdd('showHomePageThumbs()');


    var htStyles = new Array;
    htStyles[0] = "transH100";
    htStyles[1] = "transH90";
    htStyles[2] = "transH80";
    htStyles[3] = "transH70";
    htStyles[4] = "transH60";
    htStyles[5] = "transH50";
    htStyles[6] = "transH40";
    htStyles[7] = "transH30";
    htStyles[8] = "transH20";
    htStyles[9] = "transH10";