	// 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 = 4 - 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>');

	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>';
		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 >= 4)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 4 - 1;
	} // end genPrev

	var properties = new Array(4);
	properties[0] = new Array('374,900','201 Wellington Oaks Court ','DENTON, TX 76210 ','http://ntreispictures.marketlinx.com/MediaDisplay/55/hr2936255-1.jpg','11086429','074','http://www.besthomesland.idxco.com/idx/2790/details.php?listingID=11086429&idxID=074');
	properties[1] = new Array('289,900','539 Lakeview Road ','RHOME, TX 76078 ','http://ntreispictures.marketlinx.com/MediaDisplay/97/hr2949097-1.jpg','11097407','074','http://www.besthomesland.idxco.com/idx/2790/details.php?listingID=11097407&idxID=074');
	properties[2] = new Array('109,500','5045 Thompson Drive ','THE COLONY, TX 75056 ','http://ntreispictures.marketlinx.com/MediaDisplay/49/hr2977949-1.jpg','11122185','074','http://www.besthomesland.idxco.com/idx/2790/details.php?listingID=11122185&idxID=074');
	properties[3] = new Array('94,900','1029 S Bryan Street ','MESQUITE, TX 75149 ','http://ntreispictures.marketlinx.com/MediaDisplay/36/hr2935636-1.jpg','11085894','074','http://www.besthomesland.idxco.com/idx/2790/details.php?listingID=11085894&idxID=074');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
