	// 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 = 6000;
	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-size: 10px;  }');
	document.writeln('#IDX-slideshow { text-align: left; width: 200px; height: 200px;  }');
	document.writeln('.IDX-image { width: 160px; height: 160px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 9 - 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 >= 9)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 9 - 1;
	} // end genPrev

	var properties = new Array(9);
	properties[0] = new Array('1,050,000','2110 OHIO ST ','CHICAGO, IL 60612 ','http://www.mredllc.com/photos/property/265/06950265.jpg','06950265','004','http://www.darrowwest.idxco.com/idx/2896/details.php?listingID=06950265&idxID=004');
	properties[1] = new Array('499,999','2946 WOOD ST D ','CHICAGO, IL 60657 ','http://www.mredllc.com/photos/property/362/07078362.jpg','07078362','004','http://www.darrowwest.idxco.com/idx/2896/details.php?listingID=07078362&idxID=004');
	properties[2] = new Array('399,000','1466 WARNER AVE 3E ','CHICAGO, IL 60613 ','http://supplemental.idxco.com/2896-12143434177111108','06937632','004','http://www.darrowwest.idxco.com/idx/2896/details.php?listingID=06937632&idxID=004');
	properties[3] = new Array('325,000','942 FAIRFIELD AVE 1R ','CHICAGO, IL 60622 ','http://supplemental.idxco.com/2896-12168247617054949','06810607','004','http://www.darrowwest.idxco.com/idx/2896/details.php?listingID=06810607&idxID=004');
	properties[4] = new Array('230,000','942 FAIRFIELD AVE 3R ','CHICAGO, IL 60622 ','http://supplemental.idxco.com/2896-12168248264631290','06810641','004','http://www.darrowwest.idxco.com/idx/2896/details.php?listingID=06810641&idxID=004');
	properties[5] = new Array('230,000','942 FAIRFIELD AVE 2R ','CHICAGO, IL 60622 ','http://supplemental.idxco.com/2896-12168248559468526','06810645','004','http://www.darrowwest.idxco.com/idx/2896/details.php?listingID=06810645&idxID=004');
	properties[6] = new Array('190,000','4024 CLARENDON AVE 102 ','CHICAGO, IL 60613 ','http://www.mredllc.com/photos/property/288/07051288.jpg','07051288','004','http://www.darrowwest.idxco.com/idx/2896/details.php?listingID=07051288&idxID=004');
	properties[7] = new Array('4,995','2110 OHIO ST ','CHICAGO, IL 60612 ','http://www.mredllc.com/photos/property/061/06977061.jpg','06977061','004','http://www.darrowwest.idxco.com/idx/2896/details.php?listingID=06977061&idxID=004');
	properties[8] = new Array('2,995','2955 RACINE AVE 1A ','CHICAGO, IL 60657 ','http://www.mredllc.com/photos/property/070/07092070.jpg','07092070','004','http://www.darrowwest.idxco.com/idx/2896/details.php?listingID=07092070&idxID=004');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
