NewImg = new Array ('http://photos.sierrainteractivemls.com/3/mlspics/3_1282524_0320000.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1282523_0007500.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1282522.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1280795_0283750.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1280497.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1279748_0390000.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1277731.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1276814_0726250.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1276262.jpg');
NewCap = new Array ('$575,000
Bedrooms: 6 / Baths: 6
Square Feet: 5469
COME HOME TO THIS 5 YEAR YOUNG, SPECTACULAR CUSTOM-BUILT SANCTUARY!! **Almost 15 Acres**Private Pond**Intimate 1st Floor Den with built-in ...
View Details','$575,000
Bedrooms: 6 / Baths: 6
Square Feet: 5469
COME HOME TO THIS 5 YEAR YOUNG, SPECTACULAR CUSTOM-BUILT SANCTUARY!! **Almost 15 Acres**Private Pond**Intimate 1st Floor Den with built-in ...
View Details','$112,000
Bedrooms: 3 / Baths: 2
Square Feet: 1850
NEW PRICE!!!! ADORABLE ranch home in Rolling Ridge neighborhood! Ceramic tiled entry opens up into a beautiful Living Room that is perfect for ...
View Details','$399,900
Bedrooms: 5 / Baths: 5
Square Feet: 4582
Prepare to fall in love with this FANTASTIC traditional beauty in Oldham Countys prestigious Briar Hill Estates! Situated on a beautifully ...
View Details','$575,000
Bedrooms: 4 / Baths: 5
Square Feet: 6232
Dreams do come true: You’ll find this well-cared for home a refreshing change when comparing available homes! This one-and-a-half story offers ...
View Details','$265,000
Bedrooms: 4 / Baths: 3
Square Feet: 2655
Whats on YOUR home shopping wish list? 4 BRs & 2.5 Baths in Middletown. CHECK! How about a large, sunny eat-in kitchen with lots of cabinet and ...
View Details','$134,900
Bedrooms: 3 / Baths: 2
Square Feet: 1620
Updated tri-level home in wonderful Apple Valley! An absolute pleasure to show, this home has many updates and is ready to move in! Enter a nice ...
View Details','$295,000
Bedrooms: 3 / Baths: 3
Square Feet: 2667
Escape down a tree-lined drive near a beautiful daylily farm to this very private, 6.8 acre, 3 BR, 2.5 bath brick ranch bordering pristine, ...
View Details','$359,900
Bedrooms: 4 / Baths: 3
Square Feet: 3602
Immaculate, updated home in Lake Forest. What a nice floor plan! The foyer showcases shining, hardwood floors accented with mahogany inlays that ...
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("