	// IDX Broker Slideshow version 1.0
	// Copyright ©2008 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('#IDX-slideshow { text-align: center; width: 160px; height: 150px;  }');
	document.writeln('.IDX-image { width: 160px; height: 120px;  }');
	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,500,000','6259 HIGHWAY 57 ','JACKSONPORT, IL 54235 ','http://www.mredllc.com/photos/property/777/06364777.jpg','06364777','004','http://www.fran-ira.idxco.com/idx/2887/details.php?listingID=06364777&idxID=004');
	properties[1] = new Array('699,900','28968 SKY CREST DR ','IVANHOE, IL 60060 ','http://www.mredllc.com/photos/property/170/06843170.jpg','06843170','004','http://www.fran-ira.idxco.com/idx/2887/details.php?listingID=06843170&idxID=004');
	properties[2] = new Array('599,900','3403 BUENA RD ','HIGHLAND PARK, IL 60035 ','http://www.mredllc.com/photos/property/654/06513654.jpg','06513654','004','http://www.fran-ira.idxco.com/idx/2887/details.php?listingID=06513654&idxID=004');
	properties[3] = new Array('499,900','328 BASSWOOD DR ','NORTHBROOK, IL 60062 ','http://www.mredllc.com/photos/property/751/06876751.jpg','06876751','004','http://www.fran-ira.idxco.com/idx/2887/details.php?listingID=06876751&idxID=004');
	properties[4] = new Array('379,900','821 LINDSEY LN ','BOLINGBROOK, IL 60440 ','http://www.mredllc.com/photos/property/464/06890464.jpg','06890464','004','http://www.fran-ira.idxco.com/idx/2887/details.php?listingID=06890464&idxID=004');
	properties[5] = new Array('329,900','4545 TOUHY AVE 616 ','LINCOLNWOOD, IL 60712 ','http://www.mredllc.com/photos/property/083/06843083.jpg','06843083','004','http://www.fran-ira.idxco.com/idx/2887/details.php?listingID=06843083&idxID=004');
	properties[6] = new Array('309,900','512 LEE ST 2S ','EVANSTON, IL 60202 ','http://www.mredllc.com/photos/property/267/06937267.jpg','06937267','004','http://www.fran-ira.idxco.com/idx/2887/details.php?listingID=06937267&idxID=004');
	properties[7] = new Array('299,900','857 JUNIPER CT ','DEERFIELD, IL 60015 ','http://www.mredllc.com/photos/property/989/06835989.jpg','06835989','004','http://www.fran-ira.idxco.com/idx/2887/details.php?listingID=06835989&idxID=004');
	properties[8] = new Array('1,750','3403 BUENA RD ','HIGHLAND PARK, IL 60035 ','http://www.mredllc.com/photos/property/759/06616759.jpg','06616759','004','http://www.fran-ira.idxco.com/idx/2887/details.php?listingID=06616759&idxID=004');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
