// JavaScript Document
<!-- 
/*
Interactive Image slideshow with text description
By Christian Carlessi Salvadó (cocolinks@c.net.gt). Keep this notice intact.
Visit http://www.dynamicdrive.com for script
*/


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_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*3000);
}
function Tick() 
{
if (g_fPlayMode)
Next();
}
function Prev()
{
ChangeImage(false);
}
function Next()
{
ChangeImage(true);
}


////configure below variables/////////////////////////////

//configure the below images and description to your own. 
g_ImageTable[g_imax++] = new Array ("friends/friends_12.jpg", "Cathy Oatman, Linda “Scooter” Watson and Chris – Florida, 2001");
g_ImageTable[g_imax++] = new Array ("friends/friends_13.jpg", "Cathy Oatman, Linda “Scooter” Watson and Chris – Florida, 2001");
g_ImageTable[g_imax++] = new Array ("friends/friends_01.jpg", "THE LAIDBACK BAR AND GRILL<br>Hanging Rock, Ohio – August 2003<br>Hi folks – here’s the Laidback which is quite close to the House.<br>L-R: Cindy, Chris, Tammy and Jean<br>Not too bad a picture, considering I had had 2 rum and cokes and my first “shot” of anything ever!");
g_ImageTable[g_imax++] = new Array ("friends/friends_02.jpg", "Christina and Anthony<br>Anthony Pahl, a Vietnam Veteran friend was visiting from Australia<br>Ironton, Ohio: June 2004");
g_ImageTable[g_imax++] = new Array ("friends/friends_03.jpg", "Jean and Anthony<br>Anthony Pahl, a Vietnam Veteran friend was visiting from Australia<br>Ironton, Ohio: June 2004");
g_ImageTable[g_imax++] = new Array ("friends/friends_04.jpg", "Jean and Christina at home during Tony’s visit from Australia<br>Ironton, Ohio: June 2004");
g_ImageTable[g_imax++] = new Array ("friends/friends_05.jpg", "Christina and Jean in Christina’s Car during Tony’s visit from Australia<br>Ironton, Ohio: June 2004");
g_ImageTable[g_imax++] = new Array ("friends/friends_06.jpg", "Jean, Tony and Christina at the Vesuvius Iron Furnace during Tony’s visit from Australia<br>Ironton, Ohio: June 2004");
g_ImageTable[g_imax++] = new Array ("friends/friends_07.jpg", "Jean, Tony and Christina at the Vesuvius Iron Furnace during Tony's visit from Australia<br>Ironton, Ohio: June 2004");
g_ImageTable[g_imax++] = new Array ("friends/friends_08.jpg", "Tony at the Computer during his visit from Australia<br>Ironton, Ohio: June 2004");
g_ImageTable[g_imax++] = new Array ("friends/friends_09.jpg", "Tony’s departure from Huntington, WV Airport – June 20, 2004");
g_ImageTable[g_imax++] = new Array ("friends/friends_10.jpg", "Jean - December 2004 ");
g_ImageTable[g_imax++] = new Array ("friends/friends_11.jpg", "Jean Sewing - December 2004");

//extend the above list as desired
g_dwTimeOutSec=2

////End configuration/////////////////////////////

if (document.getElementById||document.all)
window.onload=Play
-->
