	// IDX Broker Slideshow version 1.0
	// Copyright ©2010 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('#IDX-slideshow { text-align: center; width: 164px; height: 164px;  }');
	document.writeln('.IDX-image { width: 164px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 7 - 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 >= 7)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 7 - 1;
	} // end genPrev

	var properties = new Array(7);
	properties[0] = new Array('750,000','2901 Elms Road ','Killeen, TX 76541 ','http://photos-12.idxco.com/224384dd4120f8b63128f4a452e9e9a9161146018','146018','224','http://www.homesforsalekilleentx.idxco.com/idx/4367/details.php?listingID=146018&idxID=224','','','Over 300 ft of frontage on Elms Road. An additional 6.764 ac...');
	properties[1] = new Array('500,000','TBD Featherline ','Killeen, TX 76542 ','http://photos-12.idxco.com/22458853a5e9fed958ac3d4199fe7301ddf152370','152370','224','http://www.homesforsalekilleentx.idxco.com/idx/4367/details.php?listingID=152370&idxID=224','','','2.42 acres just South of the new Killeen Police Station.Zone...');
	properties[2] = new Array('159,900','2804 Lavender ','Killeen, TX 76549 ','http://photos-12.idxco.com/224b653228533535a3ed5188afd9fac940e155331','155331','224','http://www.homesforsalekilleentx.idxco.com/idx/4367/details.php?listingID=155331&idxID=224','4','2','...');
	properties[3] = new Array('124,900','4801 Donegal Bay ','Killeen, TX 76549 ','http://photos-12.idxco.com/224d00de3218f9f588cd7ddedb9d5f1efb2155382','155382','224','http://www.homesforsalekilleentx.idxco.com/idx/4367/details.php?listingID=155382&idxID=224','3','2','...');
	properties[4] = new Array('114,900','2714 Mirage ','Killeen, TX 76549 ','http://photos-12.idxco.com/22498a131caaf2b756bdaceeb406acdf2fd154583','154583','224','http://www.homesforsalekilleentx.idxco.com/idx/4367/details.php?listingID=154583&idxID=224','3','3','...');
	properties[5] = new Array('104,900','2603 Westwood ','Killeen, TX 76549 ','http://photos-12.idxco.com/224e1598090c1fc324e5a72404b15d127e2154196','154196','224','http://www.homesforsalekilleentx.idxco.com/idx/4367/details.php?listingID=154196&idxID=224','3','2','...');
	properties[6] = new Array('93,900','4102 Crosscut ','Killeen, TX 76542 ','http://photos-12.idxco.com/22470103e92c91d71c0ec43bad776cd633b154360','154360','224','http://www.homesforsalekilleentx.idxco.com/idx/4367/details.php?listingID=154360&idxID=224','2','2','...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
