	// 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 = 4000;
	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: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; font-style: normal; color: #ffffff;  }');
	document.writeln('#IDX-slideshow { text-align: center; background-color: #000000; border-width: 5px; border-style: solid; border-color: #3B52A0; width: 144px; height: 160px;  }');
	document.writeln('.IDX-image { width: 144px; height: 108px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 18 - 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 >= 18)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 18 - 1;
	} // end genPrev

	var properties = new Array(18);
	properties[0] = new Array('450','5225 Bancroft ','Saint Louis, MO 63109 ','http://thresholdstl.com/blog/uploaded_images/2009/06/5225-bancroft.jpg','IDX-1245343527','999','http://thresholdstl.idxco.com/idx/4549/details.php?listingID=IDX-1245343527&supp=1','1','1','This 1 bed, 1 bath apartment unit in the South Saint Louis n...');
	properties[1] = new Array('450','1084 S Taylor ','Saint Louis, MO 63110 ','http://thresholdstl.com/blog/uploaded_images/1084-s-taylor/img_6716.jpg','IDX-1246502882','999','http://thresholdstl.idxco.com/idx/4549/details.php?listingID=IDX-1246502882&supp=1','1','1','This updated 1 bedroom, 1 bathroom apartment in the St. Loui...');
	properties[2] = new Array('450','5044 Oleatha 2nd floor ','Saint Louis, MO 63139 ','http://thresholdstl.com/blog/uploaded_images/5044-1e-oleatha/ole1.jpg','IDX-1248988563','999','http://thresholdstl.idxco.com/idx/4549/details.php?listingID=IDX-1248988563&supp=1','1','1','This unique 1 bedroom, 1 bathroom unit, won\\\\\\\'t last long! ...');
	properties[3] = new Array('461','3857 Gustine ','St. Louis, MO 63116 ','http://thresholdstl.com/blog/uploaded_images/3864-gustine-1-bed/3863-gustine-1br-08.jpg','IDX-1254180330','999','http://thresholdstl.idxco.com/idx/4549/details.php?listingID=IDX-1254180330&supp=1','1','1','This 1 bedroom, 1 bath apartment unit in the South Saint Lou...');
	properties[4] = new Array('525','3516 Russell ','Saint Louis, MO 63104 ','http://thresholdstl.com/blog/uploaded_images/3516-russell/3516-russell-03.jpg','IDX-1252780980','999','http://thresholdstl.idxco.com/idx/4549/details.php?listingID=IDX-1252780980&supp=1','1','1','This spacious 1 bedroom, 1 bathroom apartment in the St. Lou...');
	properties[5] = new Array('561','3863 Gustine ','St. Louis, MO 63116 ','http://thresholdstl.com/blog/uploaded_images/3864-gustine-2-bed/3863-gustine-2br-04.jpg','IDX-1254179574','999','http://thresholdstl.idxco.com/idx/4549/details.php?listingID=IDX-1254179574&supp=1','2','1','This 2 bedroom, 1 bath apartment unit in the South Saint Lou...');
	properties[6] = new Array('561','3718 McDonald ','St. Louis, MO 63116 ','http://thresholdstl.com/blog/uploaded_images/3718-mcdonald/3718-mcdonald-5.jpg','IDX-1254258834','999','http://thresholdstl.idxco.com/idx/4549/details.php?listingID=IDX-1254258834&supp=1','2','1','This spacious 2 bedroom, 1 bath apartment unit in the South ...');
	properties[7] = new Array('595','1009 Taman Ct. ','Kirkwood, MO 63122 ','http://thresholdstl.com/blog/uploaded_images/1009-upton/1009-taman-01.jpg','IDX-1252094137','999','http://thresholdstl.idxco.com/idx/4549/details.php?listingID=IDX-1252094137&supp=1','2','1','These modern 2 bedroom, 1 bathroom apartments are located in...');
	properties[8] = new Array('597','3400 S Spring ','St. Louis, MO 63116 ','http://thresholdstl.com/blog/uploaded_images/3400-s-spring/3400-spring-06.jpg','IDX-1254258418','999','http://thresholdstl.idxco.com/idx/4549/details.php?listingID=IDX-1254258418&supp=1','2','1','This 2 bedroom, 1 bath apartment unit in the South Saint Lou...');
	properties[9] = new Array('600','3625A Shenandoah ','Saint Louis, MO 63110 ','http://thresholdstl.com/blog/uploaded_images/2009/06/3625A-Shenandoah.jpg','IDX-1245347919','999','http://thresholdstl.idxco.com/idx/4549/details.php?listingID=IDX-1245347919&supp=1','2','1','This updated 2 bedroom, 1 bathroom apartment in the South St...');
	properties[10] = new Array('625','2856 S Jefferson ','Saint Louis, MO 63118 ','http://thresholdstl.com/blog/uploaded_images/2856-s-jefferson-3rd-floor/img_6566.jpg','IDX-1245883712','999','http://thresholdstl.idxco.com/idx/4549/details.php?listingID=IDX-1245883712&supp=1','1','1','This newly rehabbed 1 bedroom, 1 bathroom loft in Benton Par...');
	properties[11] = new Array('650','1729 S 11th St - 3rd Floor ','St. Louis, MO 63104 ','http://thresholdstl.com/blog/uploaded_images/1729-s-11th-3rd-flr/1729-s-11th-3rd-flr-01.jpg','IDX-1255112564','999','http://thresholdstl.idxco.com/idx/4549/details.php?listingID=IDX-1255112564&supp=1','1','1','This cute and cozy 1 bedroom, 1 bathroom apartment Lasalle n...');
	properties[12] = new Array('650','1729 S 11th St - 2nd Floor ','Saint Louis, MO 63104 ','http://thresholdstl.com/blog/uploaded_images/1729-s-11th-2nd-flr/1729-s-11th-2nd-flr-03.jpg','IDX-1257377405','999','http://thresholdstl.idxco.com/idx/4549/details.php?listingID=IDX-1257377405&supp=1','1','1','This cute and cozy 1 bedroom, 1 bathroom apartment Lasalle n...');
	properties[13] = new Array('675','4152A Flad ','St. Louis, MO 63110 ','http://thresholdstl.com/blog/uploaded_images/4152a-flad/4152a-flad-01.jpg','IDX-1255112478','999','http://thresholdstl.idxco.com/idx/4549/details.php?listingID=IDX-1255112478&supp=1','2','1','Check out this gorgeous, historical 2 bedroom, 1 bath apartm...');
	properties[14] = new Array('695','2347 Klemm ','St. Louis, MO 63110 ','http://thresholdstl.com/blog/uploaded_images/2347-klemm/2347-klemm-1.jpg','IDX-1250117092','999','http://thresholdstl.idxco.com/idx/4549/details.php?listingID=IDX-1250117092&supp=1','2','1','Spacious 1500 sqft, apartment less than a block from Tower G...');
	properties[15] = new Array('750','2509 S 12th St ','St. Louis, MO 63104 ','http://thresholdstl.com/blog/uploaded_images/2519-s-12th/img_6140.jpg','IDX-1255113423','999','http://thresholdstl.idxco.com/idx/4549/details.php?listingID=IDX-1255113423&supp=1','1','1','This ground floor, multi-level unit in Soulard offers both t...');
	properties[16] = new Array('800','5515 Pershing (#32) ','St. Louis, MO 63112 ','http://thresholdstl.com/blog/uploaded_images/5515-pershing-32/5515-pershing-32-01.jpg','IDX-1255113536','999','http://thresholdstl.idxco.com/idx/4549/details.php?listingID=IDX-1255113536&supp=1','2','1','This modern 2 bedroom, 1 bath, is located in DeBaliviere Pla...');
	properties[17] = new Array('900','1818 Arsenal 2nd floor ','St. Louis, MO 63118 ','http://thresholdstl.idxco.com/images/noHousePhoto.png','IDX-1257445861','999','http://thresholdstl.idxco.com/idx/4549/details.php?listingID=IDX-1257445861&supp=1','2','1','This completely remodeled 2 bedroom, 1 bathroom 2nd floor un...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
