	// IDX Broker Slideshow version 1.0
	// Copyright ¿2012 All rights reserved.
	// This script exists soley for the purposes of allowing real estate professionals to display
	// their property information easily on their own web site. All other use prohibited.
	
	var c;
	var timeout = 3000;
	var cwi = 0;
	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('a.IDX-ssLinkText, a.IDX-ssLinkText:active, a.IDX-ssLinkText:link, a.IDX-ssLinkText:visited, a.IDX-ssLinkText:hover { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; font-style: normal;  }');
	document.writeln('#IDX-slideshow { text-align: center; width: 240px; height: 210px;  }');
	document.writeln('.IDX-image { width: 260px; height: 190px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 8 - 1;

	document.writeln('<div id="IDX-slideshow">');
	document.writeln('<div id="IDX-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-ssImageURL" class="IDX-ssLinkText"><img id="IDX-ssImage" name="ssImage" alt="Slideshow image" border="0"  class="IDX-image" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-priceLine"></div>');
	document.writeln('<div id="IDX-addressLine"></div>');
	document.writeln('<div id="IDX-cszLine"></div>');
	document.writeln('<div id="IDX-bedsLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-bathsLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-remarksLine" style="display:none;"></div>');

	document.writeln('</div>');

	function play()
	{
		urlVar = '<a href="'+properties[cwi][6]+'" class="IDX-ssLinkText">';
		document.images.ssImage.src = preLoad.src;
		document.getElementById('IDX-ssImageURL').href = properties[cwi][6];
		document.getElementById('IDX-priceLine').innerHTML = urlVar+'$'+properties[cwi][0]+'</a>';
		document.getElementById('IDX-addressLine').innerHTML =  urlVar+properties[cwi][1]+'</a>';
		document.getElementById('IDX-cszLine').innerHTML = urlVar+properties[cwi][2]+'</a>';
		document.getElementById('IDX-bedsLine').innerHTML = urlVar+'Beds: '+properties[cwi][7]+'</a>';
		document.getElementById('IDX-bathsLine').innerHTML = urlVar+'Baths: '+properties[cwi][8]+'</a>';
		document.getElementById('IDX-remarksLine').innerHTML = urlVar+properties[cwi][9]+'</a>';
		preLoad = new Image();
		preLoad.src = properties[next][3];
		update();
		c = setTimeout('play()', timeout)
	} // end play()
	function update()
	{
		cwi = next;
		genNext();
		genPrev();
	}
	function genNext()
	{
		next = cwi + 1;
		if (next >= 8)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 8 - 1;
	} // end genPrev

	var properties = new Array(8);
	properties[0] = new Array('625,000','2532 JONES RD ','WINCHESTER, VA 22602 ','http://photos-5.idxco.com/08922244cc69fe5d9ee8ad6d7783275ca11FV7726224','FV7726224','089','http://www.dallascroft.com.idxco.com/idx/4058/details.php?listingID=FV7726224&idxID=089','4','5','Spacious, beautifully designed Colonial on 5 rolling acreas ...');
	properties[1] = new Array('355,000','304 FLANAGAN DR ','WINCHESTER, VA 22602 ','http://photos-5.idxco.com/089a6bf6c99af256e08bbb51354555c520dFV7751896','FV7751896','089','http://www.dallascroft.com.idxco.com/idx/4058/details.php?listingID=FV7751896&idxID=089','4','2','Handsome Brick and Siding Colonial on quiet cul-de-sac. Home...');
	properties[2] = new Array('339,500','306 GREENFIELD AVE ','WINCHESTER, VA 22602 ','http://photos-5.idxco.com/0892a02812c756fdb3582a03f57e35e4cbcFV7713333','FV7713333','089','http://www.dallascroft.com.idxco.com/idx/4058/details.php?listingID=FV7713333&idxID=089','4','2','This classic all brick colonial opens up to three quality fi...');
	properties[3] = new Array('335,000','613 BELLVIEW AVE ','WINCHESTER, VA 22601 ','http://photos-5.idxco.com/089d5eabdecd36201b23c2d5ea908b307cdWI7736980','WI7736980','089','http://www.dallascroft.com.idxco.com/idx/4058/details.php?listingID=WI7736980&idxID=089','4','2','Classic Colonial, echoing Williamsburg Heights location, nea...');
	properties[4] = new Array('329,900','109 SHARON DR ','WINCHESTER, VA 22602 ','http://photos-5.idxco.com/0896196af4fb0144893cc9eb55f10482877FV7693917','FV7693917','089','http://www.dallascroft.com.idxco.com/idx/4058/details.php?listingID=FV7693917&idxID=089','4','3','Impressive Contemporary/Rancher seamlessly remodeled and upd...');
	properties[5] = new Array('329,500','316 WALKER ST ','WINCHESTER, VA 22601 ','http://photos-5.idxco.com/0894c16f36ebf3f4b0ce42ec6217e0d50bcWI7755844','WI7755844','089','http://www.dallascroft.com.idxco.com/idx/4058/details.php?listingID=WI7755844&idxID=089','4','3','Beautifully maintained and updated home in established commu...');
	properties[6] = new Array('319,900','208 WAYFARING DR ','WINCHESTER, VA 22602 ','http://photos-5.idxco.com/089193bd9b54063371d8cfcad5d9cc978f7FV7701647','FV7701647','089','http://www.dallascroft.com.idxco.com/idx/4058/details.php?listingID=FV7701647&idxID=089','4','4','Remarkably roomy and comfortably designed home for any activ...');
	properties[7] = new Array('259,000','507 LOUDOUN ST ','WINCHESTER, VA 22601 ','http://photos-5.idxco.com/0898146aed9e932b9dbd1bf15e7ffe8cbecWI7752854','WI7752854','089','http://www.dallascroft.com.idxco.com/idx/4058/details.php?listingID=WI7752854&idxID=089','3','2','Circa 1865 Colonial, recently renovated with stainlessappl...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();

