NewImg = new Array ('http://cdn.listingphotos.sierrastatic.com/pics/v1542046376/3/3_1519225_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1541791463/3/3_1519055_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1541706121/3/3_1518891_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1541698832/3/3_1518769_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1541429523/3/3_1518671_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1541190653/3/3_1518599_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1541086548/3/3_1518424_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1541099166/3/3_1518466_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1540305767/3/3_1517767_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1539621619/3/3_1517131_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1539274205/3/3_1516855_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1539013329/3/3_1516558_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1539788116/3/3_1516295_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1539005891/3/3_1513245_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/v1533583308/3/3_1510846_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1537373418/3/3_1504397_01.jpg','http://cdn.listingphotos.sierrastatic.com/pics/v1523901890/3/3_1500782_01.jpg'); NewCap = new Array ('122 Miles Dr$117,900
\"Prev\"\"Details\"\"Next\"
','6962 Arbor Creek Dr$141,000
\"Prev\"\"Details\"\"Next\"
','3003 Falcon Ct$230,000
\"Prev\"\"Details\"\"Next\"
','4910 Oakbrook Dr$230,000
\"Prev\"\"Details\"\"Next\"
','15106 Abington Ridge Pl$315,000
\"Prev\"\"Details\"\"Next\"
','501 Nottingham Pkwy$399,900
\"Prev\"\"Details\"\"Next\"
','1372 Plum Ridge Rd$419,900
\"Prev\"\"Details\"\"Next\"
','8811 Nottingham Pkwy$349,900
\"Prev\"\"Details\"\"Next\"
','1016 Lyle Ln$215,000
\"Prev\"\"Details\"\"Next\"
','8623 River Terrace Dr$155,000
\"Prev\"\"Details\"\"Next\"
','1103 Cherry Ridge Run$265,000
\"Prev\"\"Details\"\"Next\"
','4610 Plane Tree Dr$129,900
\"Prev\"\"Details\"\"Next\"
','1013 E Breckinridge St$249,900
\"Prev\"\"Details\"\"Next\"
','1508 Sylvan Way$399,900
\"Prev\"\"Details\"\"Next\"
','9812 White Blossom Blvd$375,000
\"Prev\"\"Details\"\"Next\"
','15228 Champion Lakes Pl$499,900
\"Prev\"\"Details\"\"Next\"
','303 8th St$84,900
\"Prev\"\"Details\"\"Next\"
','5417 Harbortown Cir$589,900
\"Prev\"\"Details\"\"Next\"
','3319 Ridge Brook Cir$389,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("

3319 Ridge Brook Cir$117,900
\"Prev\"\"Details\"\"Next\"
");