	// 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 = 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: Geneva, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; font-style: normal; text-decoration: none; color: #98bcf0;  }');
	document.writeln('#IDX-slideshow { text-align: center; background-color: #000000; border-width: 3px; border-style: solid; border-color: #000000; 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 = 11 - 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 >= 11)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 11 - 1;
	} // end genPrev

	var properties = new Array(11);
	properties[0] = new Array('929,000','258 CLAIR VIEW CT ','LAKE ZURICH, IL 60047 ','http://www.mredllc.com/photos/property/451/07369451.jpg','07369451','004','http://www.juliannespilotro.idxco.com/idx/2469/details.php?listingID=07369451&idxID=004','4','3','OVER 4000 SQ FT CUSTOM HM,RICH IN CHARACTER&amp; CHARM W/AMA...');
	properties[1] = new Array('849,000','244 CLAIR VIEW CT ','LAKE ZURICH, IL 60047 ','http://www.mredllc.com/photos/property/971/07426971.jpg','07426971','004','http://www.juliannespilotro.idxco.com/idx/2469/details.php?listingID=07426971&idxID=004','4','3','BRAND NEW CONSTRUCTION! LUXURY &amp; UPSCALE QUALITY! BEAUTI...');
	properties[2] = new Array('623,750','23696 RALEIGH DR ','LINCOLNSHIRE, IL 60069 ','http://www.mredllc.com/photos/property/098/07252098.jpg','07252098','004','http://www.juliannespilotro.idxco.com/idx/2469/details.php?listingID=07252098&idxID=004','3','3','CUST QUALITY BUILT CONTEMP 2STY OVR 4000 SQ FT W/FIN BSMT. P...');
	properties[3] = new Array('597,500','2685 PRISCILLA AVE ','HIGHLAND PARK, IL 60035 ','http://www.mredllc.com/photos/property/162/07252162.jpg','07252162','004','http://www.juliannespilotro.idxco.com/idx/2469/details.php?listingID=07252162&idxID=004','4','3','PERFECTLY MAINTAINED 2STORY,PREMIUM FNCED LOT/CUL DE SAC LOC...');
	properties[4] = new Array('489,900','960 SANCTUARY CT ','VERNON HILLS, IL 60061 ','http://www.mredllc.com/photos/property/692/07398692.jpg','07398692','004','http://www.juliannespilotro.idxco.com/idx/2469/details.php?listingID=07398692&idxID=004','3','3','        ...');
	properties[5] = new Array('339,900','991 WHITEHALL DR ','BUFFALO GROVE, IL 60089 ','http://www.mredllc.com/photos/property/699/07279699.jpg','07279699','004','http://www.juliannespilotro.idxco.com/idx/2469/details.php?listingID=07279699&idxID=004','3','3','CUSTOM REDESIGNED, UPDATED &amp; EXPANDED-LG FAM RM/GREAT RM...');
	properties[6] = new Array('249,900','2828 SWEET CLOVER WAY ','WAUCONDA, IL 60084 ','http://www.mredllc.com/photos/property/007/07310007.jpg','07310007','004','http://www.juliannespilotro.idxco.com/idx/2469/details.php?listingID=07310007&idxID=004','4','2','EXCELLENT VALUE!GREAT PRICE &amp; LOC\\\\\\\'N W/4 LRG BRS+2ND F...');
	properties[7] = new Array('249,000','1621 MISSION HILLS RD 103 ','NORTHBROOK, IL 60062 ','http://www.mredllc.com/photos/property/386/07369386.jpg','07369386','004','http://www.juliannespilotro.idxco.com/idx/2469/details.php?listingID=07369386&idxID=004','3','3','NEARLY 2300 SQ FT, RARE \\\\\\&quot;G\\\\\\&quot; UNIT,6 PNL WHT D...');
	properties[8] = new Array('187,900','1070 COURTLAND DR ','BUFFALO GROVE, IL 60089 ','http://www.mredllc.com/photos/property/154/07402154.jpg','07402154','004','http://www.juliannespilotro.idxco.com/idx/2469/details.php?listingID=07402154&idxID=004','2','2','LIGHT, BRIGHT OPEN FLOOR PLAN W/PRIV ENTRANCE.LRG EAT-IN KIT...');
	properties[9] = new Array('164,900','1095 MERRILL ST C2 ','WINNETKA, IL 60093 ','http://www.mredllc.com/photos/property/494/07153494.jpg','07153494','004','http://www.juliannespilotro.idxco.com/idx/2469/details.php?listingID=07153494&idxID=004','1','1','CUSTOM TOP OF THE LINE CONDO-HUBBARD WOODS. GREAT LOC\\\\\\\'N &...');
	properties[10] = new Array('2,500','2685 PRISCILLA AVE ','HIGHLAND PARK, IL 60035 ','http://www.mredllc.com/photos/property/277/07377277.jpg','07377277','004','http://www.juliannespilotro.idxco.com/idx/2469/details.php?listingID=07377277&idxID=004','4','3','PERFECTLY MAINTAINED 2STORY,PREMIUM FNCED LOT/CUL DE SAC LOC...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
