NewImg = new Array ('http://cdn.listingphotos.sierrastatic.com/pics/v1537278552/3/3_1514772_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1536845183/3/3_1514430_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1535731059/3/3_1513386_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1535656247/3/3_1513295_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1535382304/3/3_1512924_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1534346416/3/3_1511860_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1533061679/3/3_1510177_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1532357650/3/3_1509093_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1530628911/3/3_1507828_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1528899772/3/3_1506014_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1536676511/3/3_1504397_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1527018962/3/3_1502695_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1530024978/3/3_1498620_01.jpg'); NewCap = new Array ('1221 Forest Trail Pl$1,199,900
\"Prev\"\"Details\"\"Next\"
','15201 Chestnut Ridge Cir$634,900
\"Prev\"\"Details\"\"Next\"
','12115 Triple Crown Ct$274,900
\"Prev\"\"Details\"\"Next\"
','9812 White Blossom Blvd$379,900
\"Prev\"\"Details\"\"Next\"
','15228 Champion Lakes Pl$499,900
\"Prev\"\"Details\"\"Next\"
','14711 Forest Creek Way$479,900
\"Prev\"\"Details\"\"Next\"
','3105 Galway Ln$259,900
\"Prev\"\"Details\"\"Next\"
','7218 Wood Briar Rd$539,900
\"Prev\"\"Details\"\"Next\"
','9508 Hayden Creek Ct$649,900
\"Prev\"\"Details\"\"Next\"
','1313 Isleworth Dr$549,900
\"Prev\"\"Details\"\"Next\"
','5417 Harbortown Cir$649,900
\"Prev\"\"Details\"\"Next\"
','15412 Crystal Springs Way$799,900
\"Prev\"\"Details\"\"Next\"
','14501 Mckinley Ridge Dr$388,900
\"Prev\"\"Details\"\"Next\"
'); NewPicCap = new Array('
','
','
','
','
','
','
','
','
','
','
','
','
'); 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') var oSlideshowPicCap = document.getElementById('slideshowPicCap') 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]; oSlideshowPicCap.innerHTML = NewPicCap[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'); var oSlideshowPicCap = document.getElementById('slideshowPicCap'); 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]; oSlideshowPicCap.innerHTML = NewPicCap[ImgNum]; } if (autoPlay == true) { auto() } /*Output HTML - Escape any double quotes used */ document.write("

14501 Mckinley Ridge Dr$1,199,900
\"Prev\"\"Details\"\"Next\"
");