NewImg = new Array ('http://photos.sierrainteractivemls.com/3/mlspics/3_1275429_0281250.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1280610_0712500.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1277343_0756250.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1275647_3343750.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1276150_0851250.jpg','http://photos.sierrainteractivemls.com/3/mlspics/3_1267531_0817500.jpg');
NewCap = new Array ('$279,900
Bedrooms: 3 / Baths: 2
Square Feet: 1683
BACK ON THE MARKET...FINANCING FELL THRU...GORGEOUS, CLASSIC CRESCENT HILL TUDOR. Outstanding home has been meticulously restored and updated. ...
View Details','$375,000
Bedrooms: 3 / Baths: 2
Square Feet: 2237
Fantastic, meticulous Crescent Hill Bungelow...unusual center hall layout sitting on beautiful corner lot. Completly renovated in 2007, rewired, ...
View Details','$144,500
Bedrooms: 3 / Baths: 2
Square Feet: 1380
Beautiful renovated camelback....Very well done, very clean, excellent use of space. Awesome deck and private courtyard off Master bedroom. Great ...
View Details','$144,900
Bedrooms: 3 / Baths: 2
Square Feet: 1400
Adorable Clifton Heights Bungelow on extra large lot. Private well kept street. Very charming home with lots of character. A great deal for this ...
View Details','$135,000
Bedrooms: 3 / Baths: 1
Square Feet: 1600
Great updated home in Historic Clifton. Perfect for a young family. This home is larger than it looks. Lots of updates including newer windows and ...
View Details','$399,900
Bedrooms: 5 / Baths: 4
Square Feet: 4475
Welcome to this charming brick home with fresh, appealing design. First floor master bedroom and bath. The open formal great room and dining room ...
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("