	// IDX Broker Slideshow version 2.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 timeSearchSlideShowout = 4000;
	var cSearchSlideShowwi = 0;
	
	// iSearchSlideShowsf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var iSearchSlideShowsf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swapSearchSlideShowfade setup function
	function swapSearchSlideShowfade()
	{
		//if the timer is not already going
		if(iSearchSlideShowsf.clock == null)
		{
			//copy the image object 
			iSearchSlideShowsf.obj = arguments[0];
			
			//copy the image src argument 
			iSearchSlideShowsf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof iSearchSlideShowsf.obj.style.opacity != 'undefined')
			{
				iSearchSlideShowsf.type = 'w3c';
			}
			else if(typeof iSearchSlideShowsf.obj.style.MozOpacity != 'undefined')
			{
				iSearchSlideShowsf.type = 'moz';
			}
			else if(typeof iSearchSlideShowsf.obj.style.KhtmlOpacity != 'undefined')
			{
				iSearchSlideShowsf.type = 'khtml';
			}
			else if(typeof iSearchSlideShowsf.obj.filters == 'object')
			{
				//weed out win/ie5.0 by testing the length of the filters collection (where filters is an object with no data)
				//then weed out mac/ie5 by testing first the existence of the alpha object (to prevent errors in win/ie5.0)
				//then the returned value type, which should be a number, but in mac/ie5 is an empty string
				iSearchSlideShowsf.type = (iSearchSlideShowsf.obj.filters.length > 0 && typeof iSearchSlideShowsf.obj.filters.alpha == 'object' && typeof iSearchSlideShowsf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				iSearchSlideShowsf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				iSearchSlideShowsf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(iSearchSlideShowsf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swapSearchSlideShowfade is two distinct transitions
				iSearchSlideShowsf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				iSearchSlideShowsf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				iSearchSlideShowsf.clock = setInterval('iSearchSlideShowsf.swapSearchSlideShowfade()', iSearchSlideShowsf.length/iSearchSlideShowsf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				iSearchSlideShowsf.obj.src = iSearchSlideShowsf.src;
			}
			
		}
	};
	
	
	//swapSearchSlideShowfade timer function
	iSearchSlideShowsf.swapSearchSlideShowfade = function()
	{
		//increase or reduce the counter on an exponential scale
		iSearchSlideShowsf.count = (iSearchSlideShowsf.fade) ? iSearchSlideShowsf.count * 0.9 : (iSearchSlideShowsf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(iSearchSlideShowsf.count < (1 / iSearchSlideShowsf.resolution))
		{
			//clear the timer
			clearInterval(iSearchSlideShowsf.clock);
			iSearchSlideShowsf.clock = null;
	
			//do the image swap
			iSearchSlideShowsf.obj.src = iSearchSlideShowsf.src;
	
			//reverse the fade direction flag
			iSearchSlideShowsf.fade = false;
			
			//restart the timer
			iSearchSlideShowsf.clock = setInterval('iSearchSlideShowsf.swapSearchSlideShowfade()', iSearchSlideShowsf.length/iSearchSlideShowsf.resolution);
	
		}
		
		//if the counter has reached the top
		if(iSearchSlideShowsf.count > (1 - (1 / iSearchSlideShowsf.resolution)))
		{
			//clear the timer
			clearInterval(iSearchSlideShowsf.clock);
			iSearchSlideShowsf.clock = null;
	
			//reset the fade direction flag
			iSearchSlideShowsf.fade = true;
			
			//reset the counter
			iSearchSlideShowsf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(iSearchSlideShowsf.type)
		{
			case 'ie' :
				iSearchSlideShowsf.obj.filters.alpha.opacity = iSearchSlideShowsf.count * 100;
				break;
				
			case 'khtml' :
				iSearchSlideShowsf.obj.style.KhtmlOpacity = iSearchSlideShowsf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iSearchSlideShowsf.obj.style.MozOpacity = (iSearchSlideShowsf.count == 1 ? 0.9999999 : iSearchSlideShowsf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iSearchSlideShowsf.obj.style.opacity = (iSearchSlideShowsf.count == 1 ? 0.9999999 : iSearchSlideShowsf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('a.IDX-SearchSlideShow-ssLinkText, a.IDX-SearchSlideShow-ssLinkText:active, a.IDX-SearchSlideShow-ssLinkText:link, a.IDX-SearchSlideShow-ssLinkText:visited, a.IDX-SearchSlideShow-ssLinkText:hover { font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: normal; color: #ffffff;  }');
	document.writeln('#IDX-SearchSlideShow-slideshow { background-color: #000000; width: 530px;  }');
	document.writeln('.IDX-SearchSlideShow-image { width: 530px; height: 398px;  }');
	document.writeln('</style>');
	var nextSearchSlideShow = 1;
	prevSearchSlideShow = 25 - 1;

	document.writeln('<div id="IDX-SearchSlideShow-slideshow">');
	document.writeln('<div id="IDX-SearchSlideShow-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-SearchSlideShow-ssImageURL" class="IDX-SearchSlideShow-ssLinkText"><img id="IDX-SearchSlideShow-ssImage" name="SearchSlideShow-ssImage" alt="Slideshow image" border="0"  class="IDX-SearchSlideShow-image" src="http://csmedia.mris.com/platinum/getmedia?ID=95219893252&amp;LOOT=50062864879" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-SearchSlideShow-priceLine"></div>');
	document.writeln('<div id="IDX-SearchSlideShow-addressLine"></div>');
	document.writeln('<div id="IDX-SearchSlideShow-cszLine"></div>');
	document.writeln('<div id="IDX-SearchSlideShow-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-SearchSlideShow-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-SearchSlideShow-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playSearchSlideShow()
	{
		
		
		urlVarSearchSlideShow = '<a href="'+propertiesSearchSlideShow[cSearchSlideShowwi][6]+'" class="IDX-SearchSlideShow-ssLinkText">';
		swapSearchSlideShowfade(document.getElementById('IDX-SearchSlideShow-ssImage'), preLoadSearchSlideShow.src, '1', ' ');
		document.getElementById('IDX-SearchSlideShow-ssImageURL').href = propertiesSearchSlideShow[cSearchSlideShowwi][6];
		document.getElementById('IDX-SearchSlideShow-priceLine').innerHTML = urlVarSearchSlideShow+'$'+propertiesSearchSlideShow[cSearchSlideShowwi][0]+'</a>';
		document.getElementById('IDX-SearchSlideShow-addressLine').innerHTML =  urlVarSearchSlideShow+propertiesSearchSlideShow[cSearchSlideShowwi][1]+'</a>';
		document.getElementById('IDX-SearchSlideShow-cszLine').innerHTML = urlVarSearchSlideShow+propertiesSearchSlideShow[cSearchSlideShowwi][2]+'</a>';
		document.getElementById('IDX-SearchSlideShow-bedLine').innerHTML = urlVarSearchSlideShow+'Beds: '+propertiesSearchSlideShow[cSearchSlideShowwi][7]+'</a>';
		document.getElementById('IDX-SearchSlideShow-bathLine').innerHTML = urlVarSearchSlideShow+'Baths: '+propertiesSearchSlideShow[cSearchSlideShowwi][8]+'</a>';
		document.getElementById('IDX-SearchSlideShow-remarkLine').innerHTML = urlVarSearchSlideShow+propertiesSearchSlideShow[cSearchSlideShowwi][9]+'</a>';
		
		preLoadSearchSlideShow = new Image();
		preLoadSearchSlideShow.src = propertiesSearchSlideShow[nextSearchSlideShow][3];
		
		updateSearchSlideShow();
		
		cSearchSlideShow = setTimeout('playSearchSlideShow()', timeSearchSlideShowout);	
		
		
	} // end play()
	function updateSearchSlideShow()
	{		
		cSearchSlideShowwi = nextSearchSlideShow;		
		genNextSearchSlideShow();
		genPrevSearchSlideShow();
		
	}
	function genNextSearchSlideShow()
	{
		nextSearchSlideShow = cSearchSlideShowwi + 1;
		if (nextSearchSlideShow >= 25)
			nextSearchSlideShow = 0;
	} // end genNext
	function genPrevSearchSlideShow()
	{
		prevSearchSlideShow = cSearchSlideShowwi - 1;
		if (prevSearchSlideShow < 0)
			prevSearchSlideShow = 25 - 1;
	} // end genPrev

	var propertiesSearchSlideShow = new Array(25);
	propertiesSearchSlideShow[0] = new Array('499,000','782 KRISTEN CT','EUGENE, OR 97401 ','http://csmedia.mris.com/platinum/getmedia?ID=95219893252&amp;LOOT=50062864879','9065822','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9065822&idxID=037','4','3','Great home in desired location! Enjoy this one level, 4 bedr...');
	propertiesSearchSlideShow[1] = new Array('499,000','3371 BROOKVIEW DR','EUGENE, OR 97401 ','http://csmedia.mris.com/platinum/getmedia?ID=95208586060&amp;LOOT=50062864879','9058288','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9058288&idxID=037','3','3','Lovely home in desireable Valley River Village.Beautiful woo...');
	propertiesSearchSlideShow[2] = new Array('499,000','1566 VICTORIAN WAY','EUGENE, OR 97401 ','http://csmedia.mris.com/platinum/getmedia?ID=95199907198&amp;LOOT=50062864879','9049195','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9049195&idxID=037','3','2','Wonderful home in park-like setting in Regency Estates. Conv...');
	propertiesSearchSlideShow[3] = new Array('499,000','695 W 36TH AVE','EUGENE, OR 97405 ','http://csmedia.mris.com/platinum/getmedia?ID=95184671926&amp;LOOT=50062864879','9042116','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9042116&idxID=037','3','2','Amazing VIEW property. Level lot graces hillside. Lawn, gard...');
	propertiesSearchSlideShow[4] = new Array('498,900','85873 LORANE HWY','EUGENE, OR 97045 ','http://csmedia.mris.com/platinum/getmedia?ID=95173691094&amp;LOOT=50062864879','9038688','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9038688&idxID=037','3','3','Awesome HORSE PROPERTY w/Indoor Arena Barn, 130\\\\\\\'x 60\\\\\\\'r...');
	propertiesSearchSlideShow[5] = new Array('497,500','28046 CROSSLEY LN','EUGENE, OR 97402 ','http://csmedia.mris.com/platinum/getmedia?ID=95182424363&amp;LOOT=50062864879','9041609','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9041609&idxID=037','3','2','Great Horse or Alpaca Property. Close to town &amp; Fern Rid...');
	propertiesSearchSlideShow[6] = new Array('495,000','2723 RIVERWALK LOOP','EUGENE, OR 97401 ','http://csmedia.mris.com/platinum/getmedia?ID=95220326409&amp;LOOT=50062864879','9065967','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9065967&idxID=037','4','2','WONDERFUL 1/3 private acre w/covered terrace, spacious sunny...');
	propertiesSearchSlideShow[7] = new Array('489,900','86541 LORANE HWY','EUGENE, OR 97405 ','http://csmedia.mris.com/platinum/getmedia?ID=95232540106&amp;LOOT=50062864879','9076857','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9076857&idxID=037','4','3','Close in country property includes a tool shed, chicken coop...');
	propertiesSearchSlideShow[8] = new Array('489,900','3706 COLONY OAKS DR','EUGENE, OR 97405 ','http://csmedia.mris.com/platinum/getmedia?ID=95116823948&amp;LOOT=50062864879','8071621','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=8071621&idxID=037','3','3','Like new, high quality in the woods.Steam shower, finished \\...');
	propertiesSearchSlideShow[9] = new Array('489,000','27075 CLEAR LAKE RD','EUGENE, OR 97402 ','http://csmedia.mris.com/platinum/getmedia?ID=95236272292&amp;LOOT=50062864879','9078670','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9078670&idxID=037','5','3','Across from Fern Ridge Reservoir.  Awesome, up to 5 bedrooms...');
	propertiesSearchSlideShow[10] = new Array('485,000','89939 SPIRES LN','EUGENE, OR 97402 ','http://csmedia.mris.com/platinum/getmedia?ID=90123659707&amp;LOOT=50062864879','9070814','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9070814&idxID=037','3','2','Beautiful country home near Fern Ridge Reservoir. Level usab...');
	propertiesSearchSlideShow[11] = new Array('479,000','92580 COBURG RD','EUGENE, OR 97408 ','http://csmedia.mris.com/platinum/getmedia?ID=95215790638&amp;LOOT=50062864879','9062535','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9062535&idxID=037','4','1','Beautiful updated farmhouse on picturesque acreage! 29x56 Sh...');
	propertiesSearchSlideShow[12] = new Array('479,000','3275 OPAL ST','EUGENE, OR 97405 ','http://csmedia.mris.com/platinum/getmedia?ID=95215664535&amp;LOOT=50062864879','9062245','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9062245&idxID=037','3','2','Astonishing home!  The meticulous exterior and grounds are j...');
	propertiesSearchSlideShow[13] = new Array('476,625','104 WATERSTONE DR','EUGENE, OR 97404 ','http://csmedia.mris.com/platinum/getmedia?ID=95236421964&amp;LOOT=50062864879','9078880','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9078880&idxID=037','3','2','Beautiful home located in a quiet neighborhood. New in 2006....');
	propertiesSearchSlideShow[14] = new Array('475,000','1738 ESTATE DR','EUGENE, OR 97405 ','http://csmedia.mris.com/platinum/getmedia?ID=95230744851&amp;LOOT=50062864879','9076051','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9076051&idxID=037','3','2','Rare opportunity! Perfectly sited on almost an acre lot, thi...');
	propertiesSearchSlideShow[15] = new Array('475,000','805 W 38TH AVE','EUGENE, OR 97405 ','http://csmedia.mris.com/platinum/getmedia?ID=95203837074&amp;LOOT=50062864879','9054847','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9054847&idxID=037','4','3','Wonderful,custom home on large, corner lot with fabulous vie...');
	propertiesSearchSlideShow[16] = new Array('475,000','1614 VICTORIAN WAY','EUGENE, OR 97401 ','http://csmedia.mris.com/platinum/getmedia?ID=95204563233&amp;LOOT=50062864879','9055766','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9055766&idxID=037','3','2','Total interior remodel by Bev Stonecypher using a fusion of ...');
	propertiesSearchSlideShow[17] = new Array('471,900','85520 APPLETREE CT','EUGENE, OR 97405 ','http://csmedia.mris.com/platinum/getmedia?ID=95257566584&amp;LOOT=50062864879','9086908','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9086908&idxID=037','4','3','This home features a beautiful kitchen w/tile floors,granite...');
	propertiesSearchSlideShow[18] = new Array('469,000','2646 VALLEY FORGE DR','EUGENE, OR 97408 ','http://csmedia.mris.com/platinum/getmedia?ID=95213474663&amp;LOOT=50062864879','9059169','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9059169&idxID=037','3','2','In lovely Hawthorne Estates.  Close to Riverbend Meical Cent...');
	propertiesSearchSlideShow[19] = new Array('465,000','34331 DEERWOOD DR','EUGENE, OR 97405 ','http://csmedia.mris.com/platinum/getmedia?ID=95225207067&amp;LOOT=50062864879','9069959','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9069959&idxID=037','4','3','Nicely updated home on 2.7 park-like acres. Two master suite...');
	propertiesSearchSlideShow[20] = new Array('465,000','2733 SARAH LN','EUGENE, OR 97401 ','http://csmedia.mris.com/platinum/getmedia?ID=95194186236&amp;LOOT=50062864879','9048062','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9048062&idxID=037','4','3','Stunning BETTER THAN NEW home on a picture perfect lot! The ...');
	propertiesSearchSlideShow[21] = new Array('465,000','907 E 20TH AVE','EUGENE, OR 97405 ','http://csmedia.mris.com/platinum/getmedia?ID=95245667118&amp;LOOT=50062864879','9081811','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9081811&idxID=037','3','2','Open Sun. 1-3. Wonderful U of O area craftsman style home. M...');
	propertiesSearchSlideShow[22] = new Array('460,000','2330 W 23RD PL','EUGENE, OR 97405 ','http://csmedia.mris.com/platinum/getmedia?ID=95220917164&amp;LOOT=50062864879','9066824','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9066824&idxID=037','4','4','Buyer to verify Sq/ft.Listing agent related to seller. A bea...');
	propertiesSearchSlideShow[23] = new Array('459,800','2197 ASHBURY DR','EUGENE, OR 97408 ','http://csmedia.mris.com/platinum/getmedia?ID=95230470336&amp;LOOT=50062864879','9075800','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9075800&idxID=037','4','3','PRICE REDUCED $20,000. MOTIVATED SELLER. CUSTOM QUALITY &amp...');
	propertiesSearchSlideShow[24] = new Array('459,000','3335 BENTLEY AVE','EUGENE, OR 97405 ','http://csmedia.mris.com/platinum/getmedia?ID=95250809116&amp;LOOT=50062864879','9083197','037','http://alternativerealtor.idxco.com/idx/2401/details.php?listingID=9083197&idxID=037','5','4','Lovely contemporary w/great views, high ceilings, lots of wi...');
	var urlVarSearchSlideShow;
	var preLoadSearchSlideShow = new Image();
	preLoadSearchSlideShow.src = propertiesSearchSlideShow[cSearchSlideShowwi][3];
	onLoad = playSearchSlideShow();
