g_fPlayMode = 0;
g_iimg = -1;
g_imax = 0;
g_ImageTable = new Array();

function ChangeImage(fFwd)
{
if (fFwd)
{
if (++g_iimg==g_imax)
g_iimg=0;
}
else
{
if (g_iimg==0)
g_iimg=g_imax;
g_iimg--;
}
Update();
}

function getobject(obj){
if (document.getElementById)
return document.getElementById(obj)
else if (document.all)
return document.all[obj]
}

function Update(){
getobject("_Ath_Slide").src = g_ImageTable[g_iimg][0];
getobject("_Ath_FileName").innerHTML = g_ImageTable[g_iimg][1];
getobject("_Ath_Link").href = g_ImageTable[g_iimg][2];
getobject("_Ath_Img_X").innerHTML = g_iimg + 1;
getobject("_Ath_Img_N").innerHTML = g_imax;
}

function Play()
{
g_fPlayMode = !g_fPlayMode;
if (g_fPlayMode)
{
getobject("btnPrev").disabled = getobject("btnNext").disabled = true;
Next();
}
else 
{
getobject("btnPrev").disabled = getobject("btnNext").disabled = false;

}
}
function OnImgLoad()
{
if (g_fPlayMode)
window.setTimeout("Tick()", g_dwTimeOutSec*1000);
}
function Tick() 
{
if (g_fPlayMode)
Next();
}
function Prev()
{
ChangeImage(false);
}
function Next()
{
ChangeImage(true);
}


////configure below variables/////////////////////////////
22222
//configure the below images and description to your own.
g_ImageTable[g_imax++] = new Array ("Images/2012/CANAM16s.jpg", "Upload 2011-2012 Season Photos Here", "http://www.pacebootlegger.com/pdf/2012/PhotoUpload.pdf");
g_ImageTable[g_imax++] = new Array ("Images/USAV_Logo.png", "USA Volleyball HP Tryout Jan 13th", "http://www.pacebootlegger.com/News-12HPTryout.html");
g_ImageTable[g_imax++] = new Array ("Images/2011/14u/14-1.jpg", "Practice & Tryout Dates", "http://www.pacebootlegger.com/News-2012TryoutDates.html");
g_ImageTable[g_imax++] = new Array ("Images/2012/ToxicVB.jpg", "Play at the Next Level", "http://www.pacebootlegger.com/pdf/2012/ToxicVolleyball.pdf");
//g_ImageTable[g_imax++] = new Array ("Images/Flash/09-03.jpg", "2011-2012 Informational Meeting October 2nd", "http://www.pacebootlegger.com/News-2012Meeting.html");
g_ImageTable[g_imax++] = new Array ("Images/WICK2.jpg", "Player - Coach Individual One on One Sessions", "http://www.pacebootlegger.com/pdf/2012/2012Lessons-and-Clinics.pdf");
//g_ImageTable[g_imax++] = new Array ("Images/2010/Desino.jpg", "2011-2012 Club Information Pamphlet", "http://www.pacebootlegger.com/pdf/2012/Club-Pamphlet-12.pdf");
//g_ImageTable[g_imax++] = new Array ("Images/dave.jpg", "Tournaments", "http://www.pacebootlegger.com/Tournaments.html");
g_ImageTable[g_imax++] = new Array ("Images/NAZCHAMPS.jpg", "Nazareth Wins National Championship", "http://www.pacebootlegger.com/NazChamps.html");
//g_ImageTable[g_imax++] = new Array ("Images/Robbie.jpg", "2011 Regional Champions", "http://www.pacebootlegger.com/2011-regionals.html");
//g_ImageTable[g_imax++] = new Array ("Images/Photo.JPG", "Pace Picture Slideshow Page", "http://www.pacebootlegger.com/Team-Slideshows.html");
//g_ImageTable[g_imax++] = new Array ("Images/USAV_Logo.png", "USA HP Tryout Jan 13th", "http://www.pacebootlegger.com/News-12HPTryout.html");
//extend the above list as desired
g_dwTimeOutSec=5

////End configuration/////////////////////////////

if (document.getElementById||document.all)
window.onload=Play


////configure below variables/////////////////////////////

//configure the below images and description to your own.
/* g_ImageTable[g_imax++] = new Array ("Images/CROWN4.jpg", "The Regional Crown and Nationals Bound", "#");
g_ImageTable[g_imax++] = new Array ("Images/AnthemGrphc1.jpg", "Download Leah's perfomance fo the National Anthem", "Songs/National%20Anthem.m4a");
g_ImageTable[g_imax++] = new Array ("Images/SAVEDATE1.gif", "", "Camps.html");
g_ImageTable[g_imax++] = new Array ("Images/SAVEDATE1.gif", "The Select Few... VFXers participating in USAV High Performace Camps.", "Camps.html");
//extend the above list as desired
g_dwTimeOutSec=4

////End configuration/////////////////////////////

if (document.getElementById||document.all)
window.onload=Play */
