	// 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('#IDX-slideshow { text-align: center; width: 220px; height: 200px;  }');
	document.writeln('.IDX-image { width: 180px; height: 160px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 6 - 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 >= 6)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 6 - 1;
	} // end genPrev

	var properties = new Array(6);
	properties[0] = new Array('3,885,000','3551 92nd Ave NE ','Yarrow Point, WA 98004 ','http://photos-3.idxco.com/0413d9058f9212bb7fd07aa9c0d6ac1d3f629052421','29052421','041','http://www.greaterseattlehome.idxco.com/idx/2882/details.php?listingID=29052421&idxID=041','4','2.5','Estate property on the West side of Yarrow Point in protecte...');
	properties[1] = new Array('1,290,000','13411 Holmes Point Dr NE ','Kirkland, WA 98034 ','http://photos-3.idxco.com/04132889c68954f12c9ca5d9ae08dddca4a29078718','29078718','041','http://www.greaterseattlehome.idxco.com/idx/2882/details.php?listingID=29078718&idxID=041','3','2.5','Rare opportunity...Lake Washington waterfront and moorage ri...');
	properties[2] = new Array('649,000','3023 235th Ave SE ','Sammamish, WA 98075 ','http://photos-3.idxco.com/041d9d8512623ada220214d4e922f4eedda29067256','29067256','041','http://www.greaterseattlehome.idxco.com/idx/2882/details.php?listingID=29067256&idxID=041','4','3','Sought after floor plan - family rm &amp;amp; rec rm on main...');
	properties[3] = new Array('399,000','12563 11th Ave NW ','Seattle, WA 98177 ','http://photos-3.idxco.com/041b5b6639b54ac0afd0eba2e828c23f0bb29054343','29054343','041','http://www.greaterseattlehome.idxco.com/idx/2882/details.php?listingID=29054343&idxID=041','2','1.75','Full brick corner Home,with an almost level entry Hardwood f...');
	properties[4] = new Array('220,000','4022 204th St SE B ','Bothell, WA 98012 ','http://photos-3.idxco.com/04153ec8102aba99a00ebbff1f0751b61e029056211','29056211','041','http://www.greaterseattlehome.idxco.com/idx/2882/details.php?listingID=29056211&idxID=041','2','2.5','Please come check out this beautiful newer duplex in the Nor...');
	properties[5] = new Array('119,000','2423 NE Sylvan Way  ','Bremerton, WA 98310 ','http://photos-3.idxco.com/0412be0b083299302e60e75a51aed973b0029054969','29054969','041','http://www.greaterseattlehome.idxco.com/idx/2882/details.php?listingID=29054969&idxID=041','2','1','Opportunity to develop a little house on a large lot. Proper...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
