// 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 ("afghan/afghan_01.jpg", "Two camouflage afghans. The larger (darker) one is for Tristan for Christmas and the one on top of it is for a baby shower gift Becky is attending: October 26, 200");
g_ImageTable[g_imax++] = new Array ("afghan/afghan_02.jpg", "The pink and rose afghan for Ellen for Christmas: October 26, 2004");
g_ImageTable[g_imax++] = new Array ("afghan/afghan_03.jpg", "Afghan for the “Operation Topknot” Project. Baby blankies for the babies of soldiers who are deployed: October 26, 2004");
g_ImageTable[g_imax++] = new Array ("afghan/afghan_04.jpg", "Here’s the baby blanket that I made for Danielle’s baby; he’ll be here before too much longer! The blanket is in soft cream and baby blues: October 26, 2004");
g_ImageTable[g_imax++] = new Array ("afghan/afghan_05.jpg", "Another view of the afghan that I made for Danielle’s baby he’ll be here before too much longer! The blanket is in soft cream and baby blues. Dale is in the foreground, and Forrest, Forrest Gump is to the right!: September 2004");
g_ImageTable[g_imax++] = new Array ("afghan/afghan_06.jpg", "Afghans for Tristan, Tony and Woody: Christmas 2004");
g_ImageTable[g_imax++] = new Array ("afghan/afghan_07.jpg", "Camouflage Fleece: December 2004");
g_ImageTable[g_imax++] = new Array ("afghan/afghan_08.jpg", "Baby’s Fleecy afghan: April 2005");
g_ImageTable[g_imax++] = new Array ("afghan/afghan_09.jpg", "Christina Crocheting an afghan: April 2005");
g_ImageTable[g_imax++] = new Array ("afghan/afghan_10.jpg", "Babywear for Operation TopKnot: April 2005");
g_ImageTable[g_imax++] = new Array ("afghan/afghan_11.jpg", "Kyle’s camouflage afghan: April 2005");
g_ImageTable[g_imax++] = new Array ("afghan/afghan_12.jpg", "Afghans and fleecy baby blankets for Operation TopKnot: April 2005");//extend the above list as desired
g_dwTimeOutSec=2

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

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