	// 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('.IDX-image { width: 360px; height: 240px;  }');
	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('895,000','1661 E Ryan Road ','DENTON, TX 76210 ','http://ntreispictures.marketlinx.com/MediaDisplay/76/hr3150176-14.jpg','11270490','074','http://www.BestHomesLand.idxco.com/idx/2790/details.php?listingID=11270490&idxID=074','3','2','7.25 Prime Acres on Ryan Road with three seperate homes. Gre...');
	properties[1] = new Array('420,000','1704 VZ CR 3416 Road 3 ','WILLS POINT, TX 75169 ','http://ntreispictures.marketlinx.com/MediaDisplay/16/hr3150016-2.jpg','11270359','074','http://www.BestHomesLand.idxco.com/idx/2790/details.php?listingID=11270359&idxID=074','6','3.1','Fantastic Dream Home and Ranch or Home Based Business on 16....');
	properties[2] = new Array('234,500','1928 Vintage Drive ','CORINTH, TX 76210 ','http://ntreispictures.marketlinx.com/MediaDisplay/61/hr3151061-3.jpg','11271231','074','http://www.BestHomesLand.idxco.com/idx/2790/details.php?listingID=11271231&idxID=074','4','3','Fantastic Cutstom Built Goodman 4 Bedroom, 3 Bath, 3 Living ...');
	properties[3] = new Array('179,900','211 Deerpath Road ','HICKORY CREEK, TX 75065 ','http://ntreispictures.marketlinx.com/MediaDisplay/82/hr3089182-2.jpg','11218066','074','http://www.BestHomesLand.idxco.com/idx/2790/details.php?listingID=11218066&idxID=074','7','3.1','Nice 7 Bedroom, 3 Bath, 2 living, 2 Dining, with large Ingro...');
	properties[4] = new Array('148,500','2712 Hilcroft Avenue ','DENTON, TX 76210 ','http://ntreispictures.marketlinx.com/MediaDisplay/64/hr3021264-2.jpg','11159320','074','http://www.BestHomesLand.idxco.com/idx/2790/details.php?listingID=11159320&idxID=074','4','2','Energy Effecient, Imaculate Quality Home Built By Diamond Ho...');
	properties[5] = new Array('109,900','598 Melody Lane ','Lakewood Village, TX 75068 ','http://ntreispictures.marketlinx.com/MediaDisplay/86/hr3138386-10.jpg','11260405','074','http://www.BestHomesLand.idxco.com/idx/2790/details.php?listingID=11260405&idxID=074','','','Fantistic 1.28 acre residential lot on peninsula of Lewisvil...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
