	// 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 = 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: bold; color: #ffffff;  }');
	document.writeln('#IDX-slideshow { width: 160px; height: 150px;  }');
	document.writeln('.IDX-image { width: 160px; height: 120px;  }');
	document.writeln('</style>');
	var next = 1;
	prev = 7 - 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 >= 7)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 7 - 1;
	} // end genPrev

	var properties = new Array(7);
	properties[0] = new Array('599,000','20149 HAZELCREST RD ','PALATINE, IL 60074 ','http://www.valdomain.idxco.com/images/noHousePhoto.png','07324502','004','http://www.valdomain.idxco.com/idx/2500/details.php?listingID=07324502&idxID=004','','','TWO PIN NUMBERS. ESTABLISHED NEIGHBORHOOD. SURROUNDED BY A V...');
	properties[1] = new Array('379,900','40 PRAIRIE PARK DR 506 ','WHEELING, IL 60090 ','http://www.mredllc.com/photos/property/864/07373864.jpg','07373864','004','http://www.valdomain.idxco.com/idx/2500/details.php?listingID=07373864&idxID=004','2','2','LUXURIOUS SPACIOUS CONDO IN MINT CONDITION. ELEVATOR BLDG HA...');
	properties[2] = new Array('300,000','20173 HAZELCREST RD ','PALATINE, IL 60074 ','http://www.valdomain.idxco.com/images/noHousePhoto.png','07354760','004','http://www.valdomain.idxco.com/idx/2500/details.php?listingID=07354760&idxID=004','','','2 PIN NUMBERS (ALSO 20155 HAZELCREST) FOR A TOTAL OF 5.5 ACR...');
	properties[3] = new Array('279,900','933 PEBBLE DR ','WHEELING, IL 60090 ','http://www.mredllc.com/photos/property/981/07288981.jpg','07288981','004','http://www.valdomain.idxco.com/idx/2500/details.php?listingID=07288981&idxID=004','4','2','LOOK BEYOND THE FRONT DOOR! THIS HOME IS MUCH BIGGER THAN IT...');
	properties[4] = new Array('275,000','688 SPRUCE ','PROSPECT HEIGHTS, IL 60070 ','http://www.mredllc.com/photos/property/560/07364560.jpg','07364560','004','http://www.valdomain.idxco.com/idx/2500/details.php?listingID=07364560&idxID=004','','','ALMOST 1 1/2 ACRES OF LAND IN AREA OF HIGH-END CUSTOM HOMES ...');
	properties[5] = new Array('124,900','675 GROVE DR 214 ','BUFFALO GROVE, IL 60089 ','http://www.mredllc.com/photos/property/321/07305321.jpg','07305321','004','http://www.valdomain.idxco.com/idx/2500/details.php?listingID=07305321&idxID=004','2','1','5% DOWN CONDO FINANCING TO QUALIFIED BUYERS!!ONE OF THE NICE...');
	properties[6] = new Array('109,900','200 DEBORAH LN 3A ','WHEELING, IL 60090 ','http://www.mredllc.com/photos/property/232/07376232.jpg','07376232','004','http://www.valdomain.idxco.com/idx/2500/details.php?listingID=07376232&idxID=004','2','1','WOW! REHABBED FROM TOP TO BOTTOM! THOMASVILLE MAPLE CABINETS...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
