NewImg = new Array ('http://cdn.listingphotos.sierrastatic.com/pics/v1530903392/3/3_1507651_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1533583521/3/3_1510771_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1530911047/3/3_1508188_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1533756480/3/3_1511084_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1524014947/3/3_1500262_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1534191511/3/3_1510937_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1534191410/3/3_1496338_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1531485116/3/3_1508823_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1528827551/3/3_1505074_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1526988570/3/3_1503890_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1532384807/3/3_1509774_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1531331968/3/3_1508071_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1531019141/3/3_1508144_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1531801121/3/3_1509097_01.jpg'); NewCap = new Array ('$350,000
Bedrooms: 3
Baths: 2 Full / 1 Half
Square Feet: 3161
\"View','$289,900
Bedrooms: 4
Baths: 2 Full / 1 Half
Square Feet: 3672
\"View','$279,900
Bedrooms: 3
Baths: 3
Square Feet: 3337
\"View','$279,900
Bedrooms: 4
Baths: 2 Full / 1 Half
Square Feet: 2898
\"View','$264,900
Bedrooms: 4
Baths: 2 Full / 1 Half
Square Feet: 1979
\"View','$245,000
Bedrooms: 3
Baths: 1 Full / 1 Half
Square Feet: 1952
\"View','$243,900
Bedrooms: 4
Baths: 2 Full / 1 Half
Square Feet: 2152
\"View','$165,000
Bedrooms: 2
Baths: 2
Square Feet: 1173
\"View','$159,900
Bedrooms: 2
Baths: 2 Full / 1 Half
Square Feet: 2290
\"View','$138,000
Bedrooms: 3
Baths: 2
Square Feet: 1592
\"View','$120,000
Bedrooms: 3
Baths: 2
Square Feet: 1500
\"View','$109,000
Bedrooms: 2
Baths: 2
Square Feet: 1108
\"View','$95,500
\"View','$89,999
Bedrooms: 3
Baths: 1
Square Feet: 980
\"View'); 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 = 5000; //Time delay between Slides in milliseconds var tmpDelay = 10000; // temp delay when user clicks on a photo var lock = false; var run; var autoPlay = true; var iPlayed = 0; function chgImg(direction) { var oSlideshowPic = document.getElementById('slideshowPic') var oSlideshowCap = document.getElementById('slideshowCap') if (iPlayed > 25) { 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; } oSlideshowPic.src = preLoad[ImgNum].src; oSlideshowCap.innerHTML = NewCap[ImgNum]; } } } 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('slideshowPic') 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()} oSlideshowPic.src = preLoad[ImgNum].src; oSlideshowCap.innerHTML = NewCap[ImgNum]; } if (autoPlay == true) { auto() } /*Output HTML - Escape any double quotes used */ document.write("
$350,000
Bedrooms: 3
Baths: 1
Square Feet: 980
\"View
\"Prev\"\"Next\"
");