NewImg = new Array ('http://photos.sierrainteractivemls.com/3/mlspics/3_1268139_0046250.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1268138_0358750.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1261541_0062500.jpg');
NewCap = new Array ('$799,000
Bedrooms: 5 / Baths: 5
Square Feet: 6400
New Price!!! Reduced $50,000!!! This is a strikingly beautiful home with fabulous views from every window! New construction by M.P.(Mickey)Corcoran ...
View Details','$469,000
Bedrooms: 6 / Baths: 4
Square Feet: 5800
Builders personal home! Awesome walkout home located at the end of cul-de-sac! Open floorplan features 10 ceilings, marble entry foyer, hardwood ...
View Details','$369,750
Bedrooms: 3 / Baths: 4
Square Feet: 3275
Gorgeous home overlooking the 9th green of Arthur Hills designed Persimmon Ridge! Architect designed floorplan has lots of first floor living space! ...
View Details');
var preLoad = new Array()
for (i = 0; i < NewImg.length; i++)
{
preLoad[i] = new Image()
preLoad[i].src = NewImg[i]
}
/* Slideshow Functions */
var ImgNum = 0;
var ImgLength = preLoad.length - 1;
var delay = 7000; //Time delay between Slides in milliseconds
var tmpDelay = 10000; // temp delay when user clicks on a photo
var lock = false;
var run;
var autoPlay = false;
var iPlayed = 0;
function chgImg(direction)
{
var oSlideshowPic = document.getElementById('slideshow')
var oSlideshowCap = document.getElementById('slideshowCap')
if (iPlayed > 10)
{
lock = false;
autoPlay = false;
window.clearInterval(run);
}
else
{
if (document.images)
{
ImgNum = ImgNum + direction;
if (ImgNum > ImgLength)
{
ImgNum = 0;
iPlayed = iPlayed + 1
}
if (ImgNum < 0)
{
ImgNum = ImgLength;
}
if (document.all)
{
oSlideshowPic.style.filter = "blendTrans(duration=2)"
oSlideshowPic.style.filter = "blendTrans(duration=crossFadeDuration)"
oSlideshowPic.filters.blendTrans.Apply()
oSlideshowCap.style.filter = "blendTrans(duration=2)"
oSlideshowCap.style.filter = "blendTrans(duration=crossFadeDuration)"
oSlideshowCap.filters.blendTrans.Apply()
}
oSlideshowPic.src = preLoad[ImgNum].src;
oSlideshowCap.innerHTML = NewCap[ImgNum];
if (document.all)
{
oSlideshowPic.filters.blendTrans.Play()
oSlideshowCap.filters.blendTrans.Play()
}
}
}
}
function auto()
{
if (lock == true)
{
lock = false;
autoPlay = false;
window.clearInterval(run);
run = setInterval("auto()", tmpDelay);
}
else if (lock == false)
{
lock = true;
autoPlay = true;
run = setInterval("chgImg(1)", delay);
}
}
function showPicture(whichDir)
{
var oSlideshowPic = document.getElementById('slideshow')
var oSlideshowCap = document.getElementById('slideshowCap')
lock = false;
autoPlay = false;
window.clearInterval(run);
if (whichDir == '+')
{
if (ImgNum == ImgLength)
{
ImgNum = 0
}
else
{
ImgNum = ImgNum + 1
}
}
else
{
if (ImgNum == 0)
{
ImgNum = ImgLength
}
else
{
ImgNum = ImgNum - 1
}
}
if (autoPlay == true) {auto()}
if (document.all)
{
oSlideshowPic.style.filter = "blendTrans(duration=2)"
oSlideshowPic.style.filter = "blendTrans(duration=crossFadeDuration)"
oSlideshowPic.filters.blendTrans.Apply()
oSlideshowCap.filter = "blendTrans(duration=2)"
oSlideshowCap.style.filter = "blendTrans(duration=crossFadeDuration)"
oSlideshowCap.filters.blendTrans.Apply()
}
oSlideshowPic.src = preLoad[ImgNum].src;
oSlideshowCap.innerHTML = NewCap[ImgNum];
if (document.all)
{
oSlideshowPic.filters.blendTrans.Play()
oSlideshowCap.filters.blendTrans.Play()
}
}
auto();
/*Output HTML - Escape any double quotes used */
document.write("