NewImg = new Array ('http://photos.sierrainteractivemls.com/3/mlspics/3_1281904_0496250.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1281461_0662500.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1280660_0721250.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1280012_0681250.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1278069_0482500.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1276822_2007500.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1275992_0482500.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1275960_0357500.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1274625_0195000.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1274254_0606250.jpg');
NewCap = new Array ('$635,900
Bedrooms: 5 / Baths: 4
Square Feet: 4373
Fabulous COUNTRY LIVING AT ITS BEST Mini horse farm just 15 minutes east ...
View Details','$444,900
Bedrooms: 5 / Baths: 5
Square Feet: 4700
Fabulous price on this fantastic custom built walkout brick ranch on a ...
View Details','$131,000
Bedrooms: 4 / Baths: 2
Square Feet: 1424
Foreclosure - sold as is - Buyer to verify all information on property ...
View Details','$178,900
Bedrooms: 4 / Baths: 3
Square Feet: 1761
Super Special 3 year old with designer decor in this 2 story open floor ...
View Details','$14,900
Bedrooms: 3 / Baths: 2
Square Feet: 2295
Sold as is = Foreclosure - Seller requires pre-approval letter or proof of ...
View Details','$129,900
Bedrooms: 3 / Baths: 2
Square Feet: 1152
Terrific buy on a 3BR, 1.5 Bath on 1.9 acres in Oldham County. Home has an ...
View Details','$151,900
Bedrooms: 3 / Baths: 2
Square Feet: 1533
Bank Foreclosure - Sold As Is - Home needs some TLC but open floor plan ...
View Details','$98,900
Bedrooms: 3 / Baths: 1
Square Feet: 1315
Motivated Seller! - SHORT SALE! BRING ALL OFFERS! Very nice 3 bedroom -o ...
View Details','$629,900
Bedrooms: 4 / Baths: 4
Square Feet: 4638
Exquisite 1.5 Story Brick home on a quiet cul-de-sac street with great ...
View Details','$189,900
Bedrooms: 3 / Baths: 2
Square Feet: 1900
Fantastic updated brick Cape Cod that is maintenance free. This home ...
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("