NewImg = new Array ('http://cdn.listingphotos.sierrastatic.com/pics/v1504234998/3/3_1482804_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1502117776/3/3_1483037_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1502916050/3/3_1483875_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1505319898/3/3_1486014_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1508263882/3/3_1488146_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1507905370/3/3_1481402_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1506608363/3/3_1487191_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1508432392/3/3_1488695_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1506018064/3/3_1486674_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1496430013/3/3_1475349_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1507260296/3/3_1487871_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1503669265/3/3_1484560_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1503926149/3/3_1484284_01.jpg'); NewCap = new Array ('$287,000
Bedrooms: 3
Baths: 3
Square Feet: 3434
\"View','$229,900
Bedrooms: 3
Baths: 2
Square Feet: 2127
\"View','$214,999
Bedrooms: 3
Baths: 3
Square Feet: 2206
\"View','$199,900
Bedrooms: 4
Baths: 2 Full / 1 Half
Square Feet: 2657
\"View','$199,900
Bedrooms: 3
Baths: 2 Full / 1 Half
Square Feet: 1526
\"View','$196,000
Bedrooms: 3
Baths: 2
Square Feet: 1363
\"View','$183,500
Bedrooms: 3
Baths: 2
Square Feet: 1487
\"View','$165,000
Bedrooms: 3
Baths: 2 Full / 1 Half
Square Feet: 1890
\"View','$149,950
Bedrooms: 3
Baths: 1
Square Feet: 1450
\"View','$107,450
Bedrooms: 3
Baths: 2
Square Feet: 1100
\"View','$99,000
Bedrooms: 3
Baths: 1 Full / 1 Half
Square Feet: 2175
\"View','$89,500
Bedrooms: 2
Baths: 1
Square Feet: 708
\"View','$54,950
Square Feet: 1914
\"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("
$287,000
Square Feet: 1914
\"View
\"Prev\"\"Next\"
");