

/*
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*2000);
}
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/img2/fp1.jpg", "Solar water heating system");
g_ImageTable[g_imax++] = new Array ("images/img2/fp2.jpg", "Installed solar water heater");
g_ImageTable[g_imax++] = new Array ("images/img2/fp3.jpg", "Technicians installing controls at DWD");
g_ImageTable[g_imax++] = new Array ("images/img2/fp4.jpg", "Power backup system for office use");
g_ImageTable[g_imax++] = new Array ("images/img2/fp5.jpg", "Stand alone system charge controllerfor a school");
g_ImageTable[g_imax++] = new Array ("images/img2/fp6.jpg", "Installed switchboard at DWD project, West Nile");
g_ImageTable[g_imax++] = new Array ("images/img2/fp7.jpg", "Kayunga street lighting project");
g_ImageTable[g_imax++] = new Array ("images/img2/fp8.jpg", "Kamwenge Refrigerator");
g_ImageTable[g_imax++] = new Array ("images/img2/fp9.jpg", "Kolping Hoima Solar Project");
g_ImageTable[g_imax++] = new Array ("images/img2/fp10.jpg", "Kolping Hoima Solar Project");
g_ImageTable[g_imax++] = new Array ("images/img2/fp11.jpg", "Shimoni core PTC Solar Project");
g_ImageTable[g_imax++] = new Array ("images/img2/fp12.jpg", "Technicians at work shimon core PTC Solar Project");
g_ImageTable[g_imax++] = new Array ("images/img2/fp13.jpg", "Technicians inspecting work done at shimon core PTC project");
g_ImageTable[g_imax++] = new Array ("images/img2/fp14.jpg", "Shimoni  core PTC Solar Project");

g_ImageTable[g_imax++] = new Array ("images/img2/15.jpg", "Assembling");
g_ImageTable[g_imax++] = new Array ("images/img2/16.jpg", "Assembling panels DWD project");
g_ImageTable[g_imax++] = new Array ("images/img2/17.jpg", "Checking connectiion output of a fully finished installation.");
g_ImageTable[g_imax++] = new Array ("images/img2/18.jpg", "Finished arrays DWD projects");
g_ImageTable[g_imax++] = new Array ("images/img2/19.jpg", "Mounting and assembling arrays for the  DWD projects");
g_ImageTable[g_imax++] = new Array ("images/img2/20.jpg", "Pump house");
g_ImageTable[g_imax++] = new Array ("images/img2/21.jpg", "View of a finished array put-up");
g_ImageTable[g_imax++] = new Array ("images/img2/22.jpg", "Wiring array panels DWD projects");
//extend the above list as desired
g_dwTimeOutSec=2

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

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