﻿// JScript File
var num = 0
var num2 = 0
var num3 = 0
function animate()
{
   
    window.setTimeout('showPic()',1000);
    window.setTimeout('showPic2()',1000);
    window.setTimeout('showPic3()',1000);
       
}
function showPic()
{   
    //increment the current pic number
    num++;
    //if we've shown all 5 pics, reset counter 
    if (num > 4) {
        num = 1;
        hidePics();
    }
    else
        Effect.Appear('hpsplash' + num);       
    window.setTimeout('showPic()',6000);
}
function hidePics()
{
    for (j=2; j<=3; j++)
    {  
        document.getElementById('hpsplash' + j).style.display = "none";     
    }
    Effect.Fade('hpsplash4');   
}


function showPic2()
{   
    //increment the current pic number
    num2++;
    //if we've shown all 5 pics, reset counter 
    if (num2 > 2) {
        num2 = 1;
        hidePics2();
    }
    else
        Effect.Appear('hpbottomsplash' + num2);       
    window.setTimeout('showPic2()',6000);
}
function hidePics2()
{
    for (j=2; j<=2; j++)
    {  
        //this can be turned back on after more than 2 items are in the rotation
        //document.getElementById('about' + j).style.display = "none";     
    }
    Effect.Fade('hpbottomsplash2');   
}


function showPic3()
{   
    //increment the current pic number
    num3++;
    //if we've shown all 5 pics, reset counter 
    if (num3 > 3) {
        num3 = 1;
        hidePics3();
    }
    else
        Effect.Appear('hptest' + num3);       
    window.setTimeout('showPic3()',6000);
}
function hidePics3()
{
    for (j=2; j<=2; j++)
    {  
        //this can be turned back on after more than 2 items are in the rotation
        //document.getElementById('about' + j).style.display = "none";     
        document.getElementById('hptest' + j).style.display = "none"; 
    }
    Effect.Fade('hptest3');   
}
