// 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 ("tristan/tristan_01.jpg", "Tristan Michael Ream: 3 weeks old");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_02.jpg", "Aletha and Tristan");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_03.jpg", "Grandma Chris and Tristan");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_04.jpg", "Tristan 1 month old");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_05.jpg", "Grandma Chris and Tristan");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_06.jpg", "Cool Tristan");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_07.jpg", "Cowboy Tristan");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_08.jpg", "Tristan at 1 year: December 30, 2002");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_09.jpg", "Tristan 1 year old");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_10.jpg", "Biker Tristan");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_11.jpg", "Great Hair Day! 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_12.jpg", "Tristan in the Fall of 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_13.jpg", "Tristan in the Leaves: 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_14.jpg", "Tristan at Vail, Colorado: Winter 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_15.jpg", "Aletha and Tristan at Vail, Colorado: Winter 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_16.jpg", "Aletha, Tristan and Aletha’s Mom’s Bird: 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_17.jpg", "Tristan in the tub: 2 years old: 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_18.jpg", "Tristan asleep in his toddler bed: May 2004<br>It’s like looking at Michael all over again");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_19.jpg", "Tristan in his dragon PJs that Jean made him: August 2004<br>Still a little big on him but he’ll grow into them");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_20.jpg", "Tristan in his dragon robe that Jean made him: August 2004<br>Still a little big on him but he’ll grow into it");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_21.jpg", "Tristan and Michael's Motorcycle: October 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_22.jpg", "Cheeky Tristan on the Trampoline: October 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_31.jpg", "Trampolining Tristan: October 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_23.jpg", "Tristan at his friend's birthday party: October 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_24.jpg", "Tristan kicking leaves… barefoot: October 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_25.jpg", "King Tristan in his castle: October 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_26.jpg", "Tristan in his can’t-see-me clothes: October 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_27.jpg", "Even SF Tristan cleans his teeth: October 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_28.jpg", "Tristan in his lawn mowing SUV: October 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_29.jpg", "Christina’s daughter-in-law, Aletha and Tristan: October 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_30.jpg", "Halloween Tristan: October 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_32.jpg", "Tristan’s Interactive Picture Book: March 2005<br>I took a heavy duty 3 ring binder, and used a glue stick to glue family pictures and cutouts from magazines to plain paper, and then slipped that into plastic protective sheets. I had a lot of fun doing it and I’m now working on Volume II");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_33.jpg", "Christina gives Tristan his Christmas gift: a Camouflage blanket : Christmas 2004'");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_34.jpg", "Tristan and Aletha: Christmas 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_35.jpg", "Tristan and Michael – Gift opening time: Christmas 2004");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_36.jpg", "Tristan and his Grandmoms, Linda and Christina: April 2005");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_37.jpg", "Tristan – Montage: April 2005");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_38.jpg", "Tristan and Tank at Ft. Hood, Texas: 2007");
g_ImageTable[g_imax++] = new Array ("tristan/tristan_39.jpg", "Tristan and friends, Dalton and Ray, with Santa: December 2007");


//extend the above list as desired
g_dwTimeOutSec=2

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

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