	// IDX Broker Slideshow version 1.0
	// Copyright ©2008 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 = 6000;
	var cwi = 0;
	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-slideshow { text-align: center; width: 200px;  }');
	document.writeln('.IDX-image { width: 200px;  }');
	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>');

	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>';
		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('1,699,000','715 E 5th Street ','Long Beach, CA 90802 ','http://photos-5.idxco.com/083d4b5df17e3836f289e144055d3a551c3S552554','S552554','083','http://www.orangecounty-realestate.idxco.com/idx/3454/details.php?listingID=S552554&idxID=083');
	properties[1] = new Array('1,675,000','33 Nieto Avenue ','Long Beach, CA 90803 ','http://photos-5.idxco.com/0832954c4877a162ca7f456a77ea251bb70S551735','S551735','083','http://www.orangecounty-realestate.idxco.com/idx/3454/details.php?listingID=S551735&idxID=083');
	properties[2] = new Array('641,000','31630 2nd Avenue ','Laguna Beach, CA 92651 ','http://photos-5.idxco.com/083353b1135b3d1103e7ba5d88891aebd60S551694','S551694','083','http://www.orangecounty-realestate.idxco.com/idx/3454/details.php?listingID=S551694&idxID=083');
	properties[3] = new Array('399,000','21401 Brandy Wine Lane ','Lake Forest, CA 92630 ','http://photos-5.idxco.com/0839c09afa9226dd09c340dd1565c967dceS529641','S529641','083','http://www.orangecounty-realestate.idxco.com/idx/3454/details.php?listingID=S529641&idxID=083');
	properties[4] = new Array('4,800','30831 Marilyn Drive ','Laguna Beach, CA 92651 ','http://photos-5.idxco.com/083efab6a94f0cb5077586728d4a3f54529S552557','S552557','083','http://www.orangecounty-realestate.idxco.com/idx/3454/details.php?listingID=S552557&idxID=083');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
