	// 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: 156px; height: 134px;  }');
	document.writeln('.IDX-image { width: 140px; height: 100px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 9 - 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 >= 9)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 9 - 1;
	} // end genPrev

	var properties = new Array(9);
	properties[0] = new Array('1,800,000','7121 Saint Andrews Ln SE ','Snoqualmie, WA 98065 ','http://photos-3.idxco.com/0413f576755ad452cb426a4062e96f648dd29061156','29061156','041','http://ezdigs.idxco.com/idx/2538/details.php?listingID=29061156&idxID=041','4','3','One of a kind, 4-Star Built Green custom home in gated priva...');
	properties[1] = new Array('1,375,000','5725 251st Ct NE ','Redmond, WA 98053 ','http://photos-3.idxco.com/0414de17bfb8a62c908d6df933f67d6748a29081091','29081091','041','http://ezdigs.idxco.com/idx/2538/details.php?listingID=29081091&idxID=041','5','4','This former Lexington model home is a spectacular must see! ...');
	properties[2] = new Array('874,999','3414 260 Ave NE ','Redmond, WA 98053 ','http://photos-3.idxco.com/04189dd77449305fb036890435347315f7629060603','29060603','041','http://ezdigs.idxco.com/idx/2538/details.php?listingID=29060603&idxID=041','4','3.5','In one of the only cul-de-sacs in Broadhurst, this gorgeous ...');
	properties[3] = new Array('679,900','19109 NE 64th Way  ','Redmond, WA 98052 ','http://photos-3.idxco.com/04117cafc1b504f25c65f979c52aa53026a29040583','29040583','041','http://ezdigs.idxco.com/idx/2538/details.php?listingID=29040583&idxID=041','4','2.5','Amazing one of a kind greenbelt home in Woodbridge! Immacula...');
	properties[4] = new Array('450,000','17321 20th St SE ','Snohomish, WA 98290 ','http://photos-3.idxco.com/04146e2b916d1073d9b4c3559bd95465c7829016326','29016326','041','http://ezdigs.idxco.com/idx/2538/details.php?listingID=29016326&idxID=041','4','2.5','Short Sale - exquisite rambler on flat shy 3 acres. Private ...');
	properties[5] = new Array('349,500','13020 12 Pl W ','Everett, WA 98204 ','http://photos-3.idxco.com/0417f0a989046f86c5cf385dbe90b2cddb229087592','29087592','041','http://ezdigs.idxco.com/idx/2538/details.php?listingID=29087592&idxID=041','4','2.5','This 3 year old Contemporary home has modern finishes with a...');
	properties[6] = new Array('320,000','2923 165th Dr SE ','Snohomish, WA 98290 ','http://photos-3.idxco.com/041a227faa485ba1916b7dbc2fe7c2f963d29074132','29074132','041','http://ezdigs.idxco.com/idx/2538/details.php?listingID=29074132&idxID=041','2','1','Beautiful and secluded right outside of Snohomish. Very nice...');
	properties[7] = new Array('268,000','11115 NE 124th Ln  C210 ','Kirkland, WA 98034 ','http://photos-3.idxco.com/041ae952f7b6e9ae8c2bf18a993f825aaa629090107','29090107','041','http://ezdigs.idxco.com/idx/2538/details.php?listingID=29090107&idxID=041','2','2','Fabulous 2 bed, 2 bath condo in convenient Kirkland Place. S...');
	properties[8] = new Array('244,950','7711 NE 175th St  D306 ','Kenmore, WA 98028 ','http://photos-3.idxco.com/0410d0b2f282295643c293b394e9f29469729089513','29089513','041','http://ezdigs.idxco.com/idx/2538/details.php?listingID=29089513&idxID=041','2','2.25','Huge price drop! Top level condo with vaulted ceilings! 2 pa...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
