	// IDX Broker Slideshow version 1.0
	// Copyright ©2009 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 = 5000;
	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: Georgia, \"Times New Roman\", Times, serif; font-size: 13px; font-weight: bold; font-style: normal; text-decoration: overline;  }');
	document.writeln('#IDX-slideshow { text-align: center; border-width: 1px; border-style: double; width: 165px; height: 220px;  }');
	document.writeln('.IDX-image { width: 165px; height: 130px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 6 - 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 >= 6)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 6 - 1;
	} // end genPrev

	var properties = new Array(6);
	properties[0] = new Array('378,000','146 FOX RD ','MONTEREY, TN 38574 ','http://photos-2.idxco.com/026e9109a2e0f631c5b3d3c3c123084357a142103','142103','026','http://www.lilorealtor.idxco.com/idx/2280/details.php?listingID=142103&idxID=026','3','2','UPSCALE COUNTRY LIVING AT IS BEST. ENTERING THROUGH ELECTRON...');
	properties[1] = new Array('157,400','5184 SHEPARDSVILLE Highway ','BLOOMINGTON SPRINGS, TN 38545 ','http://photos-2.idxco.com/0261d041423a3e61f48f7a99a38155c7900141747','141747','026','http://www.lilorealtor.idxco.com/idx/2280/details.php?listingID=141747&idxID=026','4','3','HOME ON 1.5 ACRES WITH 14X28 IN GROUND POOL. SOFT SIDE SPA A...');
	properties[2] = new Array('91,900','18726 CLARKRANGE HWY ','MONTEREY, TN 38574 ','http://photos-2.idxco.com/0266944830d877d82a36e9dd9c649a3a5e4142066','142066','026','http://www.lilorealtor.idxco.com/idx/2280/details.php?listingID=142066&idxID=026','3','2','LOOKING FOR SPACE? 3/2 DBL WIDE HOME ON 1 ACRES. GREAT MULTI...');
	properties[3] = new Array('81,000','973 SWANN RIDGE ROAD ','Celina, TN 38551 ','http://photos-2.idxco.com/026eec4139226f7a56d8008258a9876b62f143044','143044','026','http://www.lilorealtor.idxco.com/idx/2280/details.php?listingID=143044&idxID=026','3','2','2004 HOME BUILT ON PERMANENT FOUNDATION ON 3 ACRES WITHIN 2 ...');
	properties[4] = new Array('42,900','Shoreside Drive ','Smithville, TN ','http://supplemental.idxco.com/2280-125215216598778','IDX-1252151866','999','http://www.lilorealtor.idxco.com/idx/2280/details.php?listingID=IDX-1252151866&supp=1','','','...');
	properties[5] = new Array('42,900','LOT 3 SHORESIDE Drive ','SMITHVILLE, TN 37166 ','http://photos-2.idxco.com/026532f646ce6cb4310bfff27ba3d13bfbe141799','141799','026','http://www.lilorealtor.idxco.com/idx/2280/details.php?listingID=141799&idxID=026','','','BEAUTIFUL BUILDING LOT WITH SEASONAL WATER VIEW. ALL UTILITI...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
