	// 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 = 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: Arial, Helvetica, sans-serif; font-size: 16px; font-weight: normal; font-style: normal; text-decoration: none; color: ##FFFFF;  }');
	document.writeln('#IDX-slideshow { text-align: center; background-color: ##00000; width: 346px; height: 285px;  }');
	document.writeln('.IDX-image { width: 342px; height: 227px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 5 - 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 >= 5)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 5 - 1;
	} // end genPrev

	var properties = new Array(5);
	properties[0] = new Array('927,000','1857 Wilson Avenue ','Upland, CA 91784 ','http://csmedia.mris.com/platinum/getmedia?ID=90021383399&amp;LOOT=50045650620','C08102353','240','http://www.sellersnet.idxco.com/idx/3273/details.php?listingID=C08102353&idxID=240','4','4','Newer custom home.  Features 4 large bedrooms (Master downst...');
	properties[1] = new Array('487,000','118 Jamaica Cir ','Placentia, CA 92870 ','http://csmedia.mris.com/platinum/getmedia?ID=95225183074&amp;LOOT=50045650620','R905235','240','http://www.sellersnet.idxco.com/idx/3273/details.php?listingID=R905235&idxID=240','3','2','This is a beautiful 3 bedroom 2.5 bath house, near Bradford ...');
	properties[2] = new Array('295,000','9547 Church St ','Rancho Cucamonga, CA 91730 ','http://csmedia.mris.com/platinum/getmedia?ID=95223223946&amp;LOOT=50045650620','R905447','240','http://www.sellersnet.idxco.com/idx/3273/details.php?listingID=R905447&idxID=240','4','2','A MUST SEE! YOUR CLIENTS WILL LOVE THIS BEAUTIFULLY REMODLED...');
	properties[3] = new Array('217,000','29675 Woodlake Ct ','San Juan Capistrano, CA 92675 ','http://csmedia.mris.com/platinum/getmedia?ID=95224950798&amp;LOOT=50045650620','R905565','240','http://www.sellersnet.idxco.com/idx/3273/details.php?listingID=R905565&idxID=240','2','1','Cute 2 bedroom 1 bath condo. Close to the 5 freeway. this is...');
	properties[4] = new Array('177,000','4562 Sunnyside Drive ','Riverside (City), CA 92506 ','http://csmedia.mris.com/platinum/getmedia?ID=90072039523&amp;LOOT=50045650620','C08105331','240','http://www.sellersnet.idxco.com/idx/3273/details.php?listingID=C08105331&idxID=240','3','2','This is a SHORT SALE Great Area Great house Great Time to bu...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
