	// 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 = 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+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('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('1,200,000','6233 NE Bothell Way  ','Kenmore, WA 98028 ','http://photos-3.idxco.com/0411f21cb87828812d47f45bbfedf3d8a7629154065','29154065','041','http://ezdigs.idxco.com/idx/2538/details.php?listingID=29154065&idxID=041','','','Lots of options the owner is offering. Purchase or Lease. In...');
	properties[3] = new Array('899,999','6230 167th Ave SE ','Bellevue, WA 98006 ','http://photos-3.idxco.com/0410c31f9d0dfb1e446aa28853df4f5643e29148135','29148135','041','http://ezdigs.idxco.com/idx/2538/details.php?listingID=29148135&idxID=041','4','2.5','This casually elegant home has it all:gourmet kitchen w/ SS ...');
	properties[4] = new Array('425,000','17824 182nd Ave NE ','Woodinville, WA 98072 ','http://photos-3.idxco.com/0416b67aa6d9b8127c207d4a799467eaa0c29131656','29131656','041','http://ezdigs.idxco.com/idx/2538/details.php?listingID=29131656&idxID=041','3','2.25','Spacious home on lightly wooded shy acre ready for you. Nest...');
	properties[5] = new Array('259,900','1621 Wetmore Ave  ','Everett, WA 98201 ','http://photos-3.idxco.com/041010984f24bc504b2d1f174d9a542279b29122523','29122523','041','http://ezdigs.idxco.com/idx/2538/details.php?listingID=29122523&idxID=041','4','1','Well Maintained early century craftsman in Historic North Ev...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
