// 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 ("dads/dw_36.jpg", "<strong><em>Captain Robert H. Phillips, Sr</em></strong><br>US Army, WWII <br>CBI (China, Burma, India) Theater<br>Bronze Star Recipient for the Salween River Gorge Campaign");
g_ImageTable[g_imax++] = new Array ("dads/dw_30.jpg", "<strong><em>General Hu Chong Ching – Kunming, September 5, 1945</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_01.jpg", "<strong><em>China – At the River</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_02.jpg", "<strong><em>Dad’s Unit in China – 1944</em></strong><br>Dad is kneeling in the front row, on the right");
g_ImageTable[g_imax++] = new Array ("dads/dw_03.jpg", "<strong><em>Teaching and Learning</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_04.jpg", "<strong><em>China Photo</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_05.jpg", "<strong><em>Chinese Guerilla</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_06.jpg", "<strong><em>Chinese Soldiers and Rice</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_07.jpg", "<strong><em>Chinese Temple Gods</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_08.jpg", "<strong><em>Chinese Town with Road Block</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_09.jpg", "<strong><em>Crossing the Salween River</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_10.jpg", "<strong><em>Unit Photograph – China</em></strong><br>Dad is 5th from left in the 2nd row<br>The Chinese text reads (in word order, not in English style):<br>“Chinese Army, the 5th Army, the 45th Division, officers with the ranks of Major and above, get together with Allied friends, 1945, 8/23”");
g_ImageTable[g_imax++] = new Array ("dads/dw_11.jpg", "<strong><em>Donkey Down</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_12.jpg", "<strong><em>Chinese Family</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_13.jpg", "<strong><em>Japanese Foxholes</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_14.jpg", "<strong><em>Japanese Machine Gun Nest</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_15.jpg", "<strong><em>Mangshih (possibly)</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_16.jpg", "<strong><em>Mangshih (possibly)</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_17.jpg", "<strong><em>Mangshih (possibly)</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_18.jpg", "<strong><em>No Details Available</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_19.jpg", "<strong><em>“Our Gang”</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_20.jpg", "<strong><em>Chinese Gun Emplacements</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_21.jpg", "<strong><em>Chinese Gun Emplacements</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_22.jpg", "<strong><em>Chinese Gun Emplacements</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_23.jpg", "<strong><em>Rest Stop</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_24.jpg", "<strong><em>Road</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_25.jpg", "<strong><em>Scene</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_26.jpg", "<strong><em>Town and Valley in China</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_27.jpg", "<strong><em>Town and Valley in China</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_28.jpg", "<strong><em>Unknown Soldiers</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_29.jpg", "<strong><em>Unknown Soldiers</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_31.jpg", "<strong><em>Unknown Soldier with Donkey</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_32.jpg", "<strong><em>Village and New Year Dance</em></strong><br>Dad is the right of the two Westerners");
g_ImageTable[g_imax++] = new Array ("dads/dw_33.jpg", "<strong><em>Village and New Year Dance</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_34.jpg", "<strong><em>Transporting the Wounded to the 47th PSH (Portable Surgical Hospital)</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_35.jpg", "<strong><em>Tending the Wounded at the 47th PSH (Portable Surgical Hospital)</em></strong>");
g_ImageTable[g_imax++] = new Array ("dads/dw_37.jpg", "<strong><em>The “Yankee Dog” Poster</em></strong><br>I scanned the “Yankee Dog” poster and I asked Wen Jiang to translate it for me – here is her reply. [Chris: January 19, 2006]<br><em>It seems I have seen this poster – it is in Chinese: four characters mean<br><strong>“the dog who lost its home”</strong><br>Best wishes – Wen</em>");


//extend the above list as desired
g_dwTimeOutSec=2

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

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