

/*
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_Slide").innerHTML = 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 = false;
Next();
}
else 
{
getobject("btnPrev").disabled = getobject("btnNext").disabled = false;

}
}
function OnImgLoad()
{

}
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 ("<img src=\"/images_MRA/photoshop-house-2v2.jpg\" width=\"310\" height=\"206\" border=\"0\">", "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"shSubhead\" colspan=\"2\" height=\"25\">1. Before<br /></td></tr><tr><td colspan=\"2\"></td></tr><tr><td><span class=\"interactive\">Some real estate agents alter photographs of houses for sale that they post on their Web sites. For example, in the before photo here, the lawn is brown, the sky is gray, and behind the house there are power lines and a tall tree peeking over the roof. </td></tr></table>");
g_ImageTable[g_imax++] = new Array ("<img src=\"/images_MRA/photoshop-house-1v2.jpg\" width=\"310\" height=\"206\" border=\"0\">", "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"shSubhead\" colspan=\"2\" height=\"25\">2. After</td></tr><tr><td colspan=\"2\"></td></tr><tr><td><span class=\"interactive\">After Photoshop retouching, the power lines and tree top are gone, the lawn is as green as a fairway and the sky is postcard perfect.</td></tr></table>");

//extend the above list as desired
g_dwTimeOutSec=1

////End configuration/////////////////////////////

if (document.getElementById||document.all)
window.onload=Play

