	// IDX Broker Slideshow version 1.0
	// Copyright ¿2012 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('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: bold; font-style: normal; color: #ffffff;  }');
	document.writeln('#IDX-slideshow { text-align: center; width: 320px; height: 300px;  }');
	document.writeln('.IDX-image { width: 320px; height: 240px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 6 - 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-listingIdLine" style="display:none;"></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 id="IDX-listingAgent" style="display:none;"></div>');
	document.writeln('<div id="IDX-listingOffice" 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-listingIdLine').innerHTML = urlVar+'Listing #'+properties[cwi][4]+'</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>';
		document.getElementById('IDX-listingAgent').innerHTML = urlVar+properties[cwi][10]+'</a>';
		document.getElementById('IDX-listingOffice').innerHTML = urlVar+properties[cwi][11]+'</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 >= 6)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 6 - 1;
	} // end genPrev

	var properties = new Array(7);
	properties[0] = new Array('655,000','6527 Saddle Ridge LN ','LONG GROVE, IL 60047 ','http://www.mredllc.com/photos/property/050/07834050.jpg','07834050','004','http://www.carenmiller.idxco.com/idx/2512/details.php?listingID=07834050&idxID=004','3','2','ONE OF A KIND \\\\\\\\\\\\\\&quot;ENTERTAINER\\\\\\\\\\\\\\\'S DREAM\\\\\\\\\\\\\\...','Caren Miller','Coldwell Banker Residential Brokerage');
	properties[1] = new Array('359,100','300 SOUTHFIELD DR ','VERNON HILLS, IL 60061 ','http://www.mredllc.com/photos/property/911/07887911.jpg','07887911','004','http://www.carenmiller.idxco.com/idx/2512/details.php?listingID=07887911&idxID=004','4','2','*MOTIVATED SELLERS*LIGHT*BRIGHT*SPACIOUS* DESIRABLE OPEN FLO...','Caren Miller','Coldwell Banker Residential Brokerage');
	properties[2] = new Array('345,000','234 RAYMOND AVE ','BARRINGTON, IL 60010 ','http://www.mredllc.com/photos/property/831/07922831.jpg','07922831','004','http://www.carenmiller.idxco.com/idx/2512/details.php?listingID=07922831&idxID=004','3','2','FABULOUS 3263 SQ FT HOME W/CONVENIENT LOC\\\\\\\\\\\\\\\'N TO DOWNTO...','Caren Miller','Coldwell Banker Residential Brokerage');
	properties[3] = new Array('335,000','76 MANCHESTER DR ','BUFFALO GROVE, IL 60089 ','http://www.mredllc.com/photos/property/284/07967284.jpg','07967284','004','http://www.carenmiller.idxco.com/idx/2512/details.php?listingID=07967284&idxID=004','3','2','BEAUTIFUL 2-STORY HOME IN DESIRABLE, MAINTENANCE FREE MANCHE...','Caren Miller','Coldwell Banker Residential Brokerage');
	properties[4] = new Array('329,000','3069 PROVINCE CIR ','MUNDELEIN, IL 60060 ','http://www.mredllc.com/photos/property/232/07953232.jpg','07953232','004','http://www.carenmiller.idxco.com/idx/2512/details.php?listingID=07953232&idxID=004','2','2','BETTER THAN NEW! * METICULOUSLY MAINTAINED * 2 BEDROOM &amp;...','Caren Miller','Coldwell Banker Residential Brokerage');
	properties[5] = new Array('169,900','1057 CORNERSTONE DR ','VOLO, IL 60020 ','http://www.mredllc.com/photos/property/771/07719771.jpg','07719771','004','http://www.carenmiller.idxco.com/idx/2512/details.php?listingID=07719771&idxID=004','3','2','QUICK CLOSE-APPROVED SHORT SALE! INCREDIBLE VALUE! LIGHT*BRI...','Caren Miller','Coldwell Banker Residential Brokerage');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();

