﻿/*

Interactive Image slideshow with text description

By Christian Carlessi Salvad??ocolinks@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*1000);

}

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 ("photos/1.jpg", "Sundance Mews");
g_ImageTable[g_imax++] = new Array ("photos/2.jpg", "Sundance Mews");
g_ImageTable[g_imax++] = new Array ("photos/3.jpg", "Desert Blume Showhome");
g_ImageTable[g_imax++] = new Array ("photos/4.jpg", "Desert Blume Showhome");
g_ImageTable[g_imax++] = new Array ("photos/5.jpg", "Desert Blume Showhome");
g_ImageTable[g_imax++] = new Array ("photos/6.jpg", "Desert Blume Showhome");
g_ImageTable[g_imax++] = new Array ("photos/7.jpg", "Desert Blume Showhome");
g_ImageTable[g_imax++] = new Array ("photos/8.jpg", "Desert Blume Showhome");
g_ImageTable[g_imax++] = new Array ("photos/9.jpg", "Desert Blume Showhome");
g_ImageTable[g_imax++] = new Array ("photos/10.jpg", "1 298 Somerset Way Bathroom");
g_ImageTable[g_imax++] = new Array ("photos/10a.jpg", "1 298 Somerset Way Kitchen");
g_ImageTable[g_imax++] = new Array ("photos/11.jpg", "1 298 Somerset Way Kitchen");
g_ImageTable[g_imax++] = new Array ("photos/12.jpg", "7 Sundance Mews Dining Room");
g_ImageTable[g_imax++] = new Array ("photos/13.jpg", "7 Sundance Mews Ensuite");
g_ImageTable[g_imax++] = new Array ("photos/14.jpg", "7 Sundance Mews Kitchen");
g_ImageTable[g_imax++] = new Array ("photos/15.jpg", "7 Sundance Mews Kitchen");
g_ImageTable[g_imax++] = new Array ("photos/16.jpg", "7 Sundance Mews Kitchen");
g_ImageTable[g_imax++] = new Array ("photos/17.jpg", "7 Sundance Mews Living Room");
g_ImageTable[g_imax++] = new Array ("photos/18.jpg", "7 Sundance Mews Living Room");
g_ImageTable[g_imax++] = new Array ("photos/19.jpg", "10 Desert Blume Front Elevation");
g_ImageTable[g_imax++] = new Array ("photos/20.jpg", "10 Desert Blume Front Entry");
g_ImageTable[g_imax++] = new Array ("photos/21.jpg", "10 Desert Blume Kitchen & Dining Room");
g_ImageTable[g_imax++] = new Array ("photos/22.jpg", "10 Desert Blume Cres");
g_ImageTable[g_imax++] = new Array ("photos/23.jpg", "10 Desert Blume Dining Room");
g_ImageTable[g_imax++] = new Array ("photos/24.jpg", "10 Desert Blume Fireplace");
g_ImageTable[g_imax++] = new Array ("photos/25.jpg", "10 Desert Blume Living Room");
g_ImageTable[g_imax++] = new Array ("photos/26.jpg", "10 Desert Blume Master Bedroom");
g_ImageTable[g_imax++] = new Array ("photos/27.jpg", "10 Desert Blume Master Bathroom");
g_ImageTable[g_imax++] = new Array ("photos/28.jpg", "10 Desert Blume Main Bath");
g_ImageTable[g_imax++] = new Array ("photos/29.jpg", "210 Hamptons Way Living Room");
g_ImageTable[g_imax++] = new Array ("photos/30.jpg", "210 Hamptons Way Kitchen");
g_ImageTable[g_imax++] = new Array ("photos/31.jpg", "210 Hamptons Way Bathroom");
g_ImageTable[g_imax++] = new Array ("photos/32.jpg", "210 Hamptons Way Railing");
g_ImageTable[g_imax++] = new Array ("photos/33.jpg", "214 Somerset Front");
g_ImageTable[g_imax++] = new Array ("photos/34.jpg", "214 Somerset Stairs");
g_ImageTable[g_imax++] = new Array ("photos/35.jpg", "214 Somerset Kitchen");
g_ImageTable[g_imax++] = new Array ("photos/36.jpg", "411 Hamptons Way Kitchen");
g_ImageTable[g_imax++] = new Array ("photos/37.jpg", "411 Hamptons Way kitchen");
g_ImageTable[g_imax++] = new Array ("photos/38.jpg", "411 Hamptons Way Railing");
g_ImageTable[g_imax++] = new Array ("photos/39.jpg", "53 River Ridge Living Room");
g_ImageTable[g_imax++] = new Array ("photos/40.jpg", "53 River Ridge Ensuite");
g_ImageTable[g_imax++] = new Array ("photos/41.jpg", "41 Brentwood Showhome");
g_ImageTable[g_imax++] = new Array ("photos/42.jpg", "41 Brentwood Showhome Basement Feature Wall");
g_ImageTable[g_imax++] = new Array ("photos/43.jpg", "47 Hamptons Way Kitchen");
g_ImageTable[g_imax++] = new Array ("photos/44.jpg", "51 Somerset Crescent kitchen");
g_ImageTable[g_imax++] = new Array ("photos/45.jpg", "59 Hamptons Way Kitchen");
g_ImageTable[g_imax++] = new Array ("photos/46.jpg", "97 Seirra Drive Kitchen");
g_ImageTable[g_imax++] = new Array ("photos/47.jpg", "100 Hamptons Way Front");
g_ImageTable[g_imax++] = new Array ("photos/48.jpg", "202 Somerset Way Front");
g_ImageTable[g_imax++] = new Array ("photos/49.jpg", "218 Somerset Way Front");
g_ImageTable[g_imax++] = new Array ("photos/50.jpg", "230 Living Room");
g_ImageTable[g_imax++] = new Array ("photos/51.jpg", "1032 Dunmore Kitchen");
g_ImageTable[g_imax++] = new Array ("photos/52.jpg", "Canyon Creek Estates");
g_ImageTable[g_imax++] = new Array ("photos/53.jpg", "Edgewood Townhomes Front");
g_ImageTable[g_imax++] = new Array ("photos/54.jpg", "Lexington");



//extend the above list as desired
g_dwTimeOutSec=2


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


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



