/*
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

THIS IS THE SLIDESHOW SCRIPT USED FOR THE DEFAULT PAGE

*/
<!-- Begin

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 ("Images/Gallery/IMG_0426.gif", "The Villa");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0431.gif", "Pool & Spa");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0429.gif", "Spa");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0409.gif", "Lounge");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0404.gif", "Family Room");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0403.gif", "Family Room");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0405.gif", "Kitchen");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0407.gif", "Kitchen");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0408.gif", "Breakfast Area");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0410.gif", "Formal Dining");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0415.gif", "Bedroom 1 - Grand Master Suite");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0416.gif", "Bedroom 1 - Grand Master Suite");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0417.gif", "Grand Master Bathroom");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0420.gif", "Bedroom 2 - Master Suite");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0419.gif", "Bathroom for Bedroom 2");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0411.gif", "Bedroom 3 - Master Suite");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0421.gif", "Twin Room 1");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0423.gif", "Twin Room 2 - The Disney Room");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0424.gif", "Games Room");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0425.gif", "Games Room");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0413.gif", "Upstairs Den");
g_ImageTable[g_imax++] = new Array ("Images/Gallery/IMG_0414.gif", "Upstairs Den");

//extend the above list as desired
g_dwTimeOutSec=3

////End configuration/////////////////////////////

if (document.getElementById||document.all)
window.onload=Play

//End -->
