﻿// JScript File

var num = 0
function animate()
{
    window.setTimeout('showPic()',1000);
}
function showPic()
{   
    //increment the current pic number
    num++;
    //if we've shown all 5 pics, reset counter 
    if (num > 3) {
        num = 1;
        hidePics();
    }
    else
        Effect.Appear('hpsplash' + num);
        Effect.Appear('hpsplashright' + num);
    window.setTimeout('showPic()',3000);
}
function hidePics()
{
    for (j=2; j<=2; j++)
    {
        document.getElementById('hpsplash' + j).style.display = "none";
        document.getElementById('hpsplashright' + j).style.display = "none";
    }
    Effect.Fade('hpsplash3');
    Effect.Fade('hpsplashright3');
}
