﻿// JScript File
var num = 0
var num2 = 0
function animate()
{
   
    window.setTimeout('showPic()',1000);
    window.setTimeout('showPic2()',1000);
}
function showPic()
{   
    //increment the current pic number
    num++;
    //if we've shown all 5 pics, reset counter 
    if (num > 13) {
        num = 1;
        hidePics();
    }
    else
        Effect.Appear('highlight' + num);       
    window.setTimeout('showPic()',6000);
}
function hidePics()
{
    for (j=2; j<=12; j++)
    {  
        document.getElementById('highlight' + j).style.display = "none";     
    }
    Effect.Fade('highlight13');   
}



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('about' + 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('about2');   
}

