	// 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 = 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: Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bolder; text-decoration: none; color: #003366;  }');
	document.writeln('#IDX-slideshow { text-align: center; background-color: #ffffcc; width: 160px; height: 160px;  }');
	document.writeln('.IDX-image { width: 160px; height: 120px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 8 - 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-courtesyLine" 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-courtesyLine').innerHTML = urlVar+properties[cwi][10]+'</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 >= 8)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 8 - 1;
	} // end genPrev

	var properties = new Array(9);
	properties[0] = new Array('799,000','3299 MIDDLESAX DR ','LONG GROVE, IL 60047 ','http://www.mredllc.com/photos/property/446/07806446.jpg','07806446','004','http://www.buffalogrovehomes.idxco.com/idx/2435/details.php?listingID=07806446&idxID=004','4','4','Enjoy the picturesque privacy&amp;beauty in Long Grove on 4....','');
	properties[1] = new Array('699,000','6209 Pine Tree DR ','LONG GROVE, IL 60047 ','http://www.mredllc.com/photos/property/975/07977975.jpg','07977975','004','http://www.buffalogrovehomes.idxco.com/idx/2435/details.php?listingID=07977975&idxID=004','4','3','Unbelievable 2-story Colonial set on picturesque 1+ acre lot...','');
	properties[2] = new Array('654,000','25829 ARROWHEAD DR ','MUNDELEIN, IL 60060 ','http://www.mredllc.com/photos/property/091/07789091.jpg','07789091','004','http://www.buffalogrovehomes.idxco.com/idx/2435/details.php?listingID=07789091&idxID=004','5','5','LIVE THE LIFE OF LUXURY IN THIS SPECTACULARCUSTOM HOME WIT...','');
	properties[3] = new Array('599,000','2750 ACACIA CT S ','BUFFALO GROVE, IL 60089 ','http://www.mredllc.com/photos/property/266/07899266.jpg','07899266','004','http://www.buffalogrovehomes.idxco.com/idx/2435/details.php?listingID=07899266&idxID=004','5','4','GORGEOUS COLONIAL W/2 STY FOYER ON 1 ACRE INDESIRABLE STER...','');
	properties[4] = new Array('589,000','8 Enclave WAY ','HAWTHORN WOODS, IL 60047 ','http://www.mredllc.com/photos/property/979/07923979.jpg','07923979','004','http://www.buffalogrovehomes.idxco.com/idx/2435/details.php?listingID=07923979&idxID=004','4','3','**UNDER CONTRACT (1/5) BUT STILL CAN BE SHOWN**Right out ofH...','');
	properties[5] = new Array('299,000','1082 Parker LN ','BUFFALO GROVE, IL 60089 ','http://www.mredllc.com/photos/property/840/07990840.jpg','07990840','004','http://www.buffalogrovehomes.idxco.com/idx/2435/details.php?listingID=07990840&idxID=004','4','2','Spectacular Buffalo Grove home in District 96 and StevensonH...','');
	properties[6] = new Array('225,000','618 BURR OAK DR ','ARLINGTON HEIGHTS, IL 60004 ','http://www.mredllc.com/photos/property/399/07913399.jpg','07913399','004','http://www.buffalogrovehomes.idxco.com/idx/2435/details.php?listingID=07913399&idxID=004','4','2','WOW! BERKLEY SQUARE BEAUTIFUL HOME FOR UNDER $260,000! HUGEW...','');
	properties[7] = new Array('189,000','1539 Anderson LN ','BUFFALO GROVE, IL 60089 ','http://www.mredllc.com/photos/property/978/07919978.jpg','07919978','004','http://www.buffalogrovehomes.idxco.com/idx/2435/details.php?listingID=07919978&idxID=004','3','2','Best deal on the market in Buffalo Grove.Gorgeous 3 bedroo...','');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();

