	// 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 = 3000;
	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: normal; font-style: normal; color: #112F64;  }');
	document.writeln('#IDX-slideshow { text-align: center; width: 160px; height: 150px;  }');
	document.writeln('.IDX-image { width: 160px; height: 150px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 4 - 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 >= 4)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 4 - 1;
	} // end genPrev

	var properties = new Array(5);
	properties[0] = new Array('134,000','532 MEADOW LANE ','ROCHESTER, MI 48307 ','http://photos-6.idxco.com/1106176a06583dce831838740c44e6b64d631090091','31090091','110','http://www.brianladue.idxco.com/idx/3669/details.php?listingID=31090091&idxID=110','2','1','APPROVED SHORT SALE with the streamline short sale program! ...','Brian LaDue','Lakeside Property Shop LLC');
	properties[1] = new Array('59,900','27741 BELANGER ','ROSEVILLE, MI 48066 ','http://photos-6.idxco.com/110c7d7a57a75d36432f4e70869b3c2edb031090490','31090490','110','http://www.brianladue.idxco.com/idx/3669/details.php?listingID=31090490&idxID=110','3','1','Fantastic value! Solid 3 bedroom brick ranch on a great stre...','Brian LaDue','Lakeside Property Shop LLC');
	properties[2] = new Array('49,906','MELTON ','SHELBY TWP, MI 48317 ','http://photos-6.idxco.com/110dddd50da94ebbb24ff6f1363d8042c9431076737','31076737','110','http://www.brianladue.idxco.com/idx/3669/details.php?listingID=31076737&idxID=110','','','Beautiful 1/3 acre lot with city water and sewer just waitin...','Brian LaDue','Lakeside Property Shop LLC');
	properties[3] = new Array('29,906','2034 LAKE WIND ','WEST BLOOMFIELD, MI 48324 ','http://photos-6.idxco.com/110f8cb94996ff610d5d736996041ddeaab31047094','31047094','110','http://www.brianladue.idxco.com/idx/3669/details.php?listingID=31047094&idxID=110','','','This .41 acre lot is ready for you to build your dream home....','Brian LaDue','Lakeside Property Shop LLC');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();

