	// 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 = 5 - 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+'Baths: '+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 >= 5)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 5 - 1;
	} // end genPrev

	var properties = new Array(5);
	properties[0] = new Array('289,900','539 Lakeview Road ','RHOME, TX 76078 ','http://ntreispictures.marketlinx.com/MediaDisplay/97/hr2949097-9.jpg','11097407','074','http://www.BestHomesLand.idxco.com/idx/2790/details.php?listingID=11097407&idxID=074','3','3.1','Outstanding 2.4 Acres Custom Built Energy Effecient Home, Gr...');
	properties[1] = new Array('279,900','5480 Lori Valley Lane ','FORT WORTH, TX 76248 ','http://ntreispictures.marketlinx.com/MediaDisplay/57/hr3010257-14.jpg','11149850','074','http://www.BestHomesLand.idxco.com/idx/2790/details.php?listingID=11149850&idxID=074','4','2.1','Quality Custom Built Designer One Story Home on Huge Pool Si...');
	properties[2] = new Array('214,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','Nice 7 Bedroom, 3 Bath, 2 living, 2 Dining, with large Ingro...');
	properties[3] = 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[4] = new Array('2,000','5480 Lori Valley Lane ','Fort Worth, TX 76248 ','http://ntreispictures.marketlinx.com/MediaDisplay/89/hr3073789-1.jpg','11204834','074','http://www.BestHomesLand.idxco.com/idx/2790/details.php?listingID=11204834&idxID=074','4','2.1','...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
