// JavaScript Document

// JavaScript Document: Dolls of Joy - Certificate of Appreciation Album
<!-- 
/*
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 ("images/hc001.jpg", "Ref. HC001: Adult Cap - White");
g_ImageTable[g_imax++] = new Array ("images/hc002.jpg", "Ref. HC002: Baby Cap - Off White");
g_ImageTable[g_imax++] = new Array ("images/hc003.jpg", "Ref. HC003: Long Scarf - Beige Desert Camouflage");
g_ImageTable[g_imax++] = new Array ("images/hc004.jpg", "Ref. HC004: Child's Hat and Scarf - Pastel");
g_ImageTable[g_imax++] = new Array ("images/hc005.jpg", "Ref. HC005: Desert Camouflage Blanket and Matching Cap");
g_ImageTable[g_imax++] = new Array ("images/hc006.jpg", "Ref. HC006: Child's Soft Cap: Desert Camouflage");
g_ImageTable[g_imax++] = new Array ("images/hc007.jpg", "Ref. HC007: Child's Soft Hat with Ruffle - Desert Camouflage");
g_ImageTable[g_imax++] = new Array ("images/hc008.jpg", "Ref. HC008: Child's Soft Cap - Pastel Green");
g_ImageTable[g_imax++] = new Array ("images/hc009.jpg", "Ref. HC009: Young Child's Soft Cap - Pastel");
g_ImageTable[g_imax++] = new Array ("images/hc010.jpg", "Ref. HC010: Soft Hat/Scarf/Car Seat Blanket Set - White");
g_ImageTable[g_imax++] = new Array ("images/hc011.jpg", "Ref. HC011: Security Blankies and Matching Caps (Various)");
g_ImageTable[g_imax++] = new Array ("images/hc012.jpg", "Ref. HC012: Cream and Green Blanket and Matching Cap");
g_ImageTable[g_imax++] = new Array ("images/hc013.jpg", "Ref. HC013: Desert Camouflage Blanket and Matching Cap");
g_ImageTable[g_imax++] = new Array ("images/hc014.jpg", "Ref. HC014: Green Camouflage Afghan (Sample Only)<br>Special Order - Green or Desert Camouflage - Size made to Order");
g_ImageTable[g_imax++] = new Array ("images/hc015.jpg", "Ref. HC015: Bedspread Size Afghan (Sample only)<br>Special Order - Your choice of colors");
g_ImageTable[g_imax++] = new Array ("images/hc016.jpg", "Ref. HC016: Baby Lap Afghans and Matching Caps");
g_ImageTable[g_imax++] = new Array ("images/hc017.jpg", "Ref. HC017: Baby Blanket and Matching Caps - Brown and Blue");

//extend the above list as desired
g_dwTimeOutSec=2

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

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