	// 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 = 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-size: 14px;  }');
	document.writeln('#IDX-slideshow { text-align: center; width: 240px; height: 180px;  }');
	document.writeln('.IDX-image { width: 240px; height: 180px;  }');
	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+'Baths: '+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('1,595,000','1225 Bel Air ','SANTA BARBARA, CA 93105 ','http://photos-3.idxco.com/046da7b9d7afe533e84c8c00af43b1d863809-1173','09-1173','046','http://gailshannon.idxco.com/idx/2454/details.php?listingID=09-1173&idxID=046','5','2','Beautiful 5bd/2.5ba colonial in desirable hilltop area. Form...');
	properties[1] = new Array('978,000','49 Touran ','GOLETA, CA 93117 ','http://photos-3.idxco.com/046bb2969a026341b4976d1598330401bf509-2294','09-2294','046','http://gailshannon.idxco.com/idx/2454/details.php?listingID=09-2294&idxID=046','4','3','Stunning 2-story 4bd/3ba home w/soaring ceilings, tile flrs,...');
	properties[2] = new Array('689,000','716 Eucalyptus ','SANTA BARBARA, CA 93101 ','http://photos-3.idxco.com/04686407e01ae8fa66be008513f933d09d709-2335','09-2335','046','http://gailshannon.idxco.com/idx/2454/details.php?listingID=09-2335&idxID=046','2','1','Darling two-bedroom Westside cottage with lovely bamboo floo...');
	properties[3] = new Array('605,000','226 POR LA MAR ','SANTA BARBARA, CA 93103 ','http://photos-3.idxco.com/046bd5c6a8abbb6353a70bfcb4477ff339009-1941','09-1941','046','http://gailshannon.idxco.com/idx/2454/details.php?listingID=09-1941&idxID=046','1','1','A great value here! Immaculate 2nd floor unit overlooking ro...');
	properties[4] = new Array('599,000','90 La Cumbre Circle ','SANTA BARBARA, CA 93105 ','http://photos-3.idxco.com/046d4b492a7eb3e646d7e31c7a2d51a278609-2247','09-2247','046','http://gailshannon.idxco.com/idx/2454/details.php?listingID=09-2247&idxID=046','2','2','Beautifully remodeled 2 bd/ 2 ba condo in Hidden Valley.  Th...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
