	// 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 timecec9cde187out = 5000;
	var ccec9cde187wi = 0;
	
	// icec9cde187sf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var icec9cde187sf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swapcec9cde187fade setup function
	function swapcec9cde187fade()
	{
		//if the timer is not already going
		if(icec9cde187sf.clock == null)
		{
			//copy the image object 
			icec9cde187sf.obj = arguments[0];
			
			//copy the image src argument 
			icec9cde187sf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof icec9cde187sf.obj.style.opacity != 'undefined')
			{
				icec9cde187sf.type = 'w3c';
			}
			else if(typeof icec9cde187sf.obj.style.MozOpacity != 'undefined')
			{
				icec9cde187sf.type = 'moz';
			}
			else if(typeof icec9cde187sf.obj.style.KhtmlOpacity != 'undefined')
			{
				icec9cde187sf.type = 'khtml';
			}
			else if(typeof icec9cde187sf.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
				icec9cde187sf.type = (icec9cde187sf.obj.filters.length > 0 && typeof icec9cde187sf.obj.filters.alpha == 'object' && typeof icec9cde187sf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				icec9cde187sf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				icec9cde187sf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(icec9cde187sf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swapcec9cde187fade is two distinct transitions
				icec9cde187sf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				icec9cde187sf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				icec9cde187sf.clock = setInterval('icec9cde187sf.swapcec9cde187fade()', icec9cde187sf.length/icec9cde187sf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				icec9cde187sf.obj.src = icec9cde187sf.src;
			}
			
		}
	};
	
	
	//swapcec9cde187fade timer function
	icec9cde187sf.swapcec9cde187fade = function()
	{
		//increase or reduce the counter on an exponential scale
		icec9cde187sf.count = (icec9cde187sf.fade) ? icec9cde187sf.count * 0.9 : (icec9cde187sf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(icec9cde187sf.count < (1 / icec9cde187sf.resolution))
		{
			//clear the timer
			clearInterval(icec9cde187sf.clock);
			icec9cde187sf.clock = null;
	
			//do the image swap
			icec9cde187sf.obj.src = icec9cde187sf.src;
	
			//reverse the fade direction flag
			icec9cde187sf.fade = false;
			
			//restart the timer
			icec9cde187sf.clock = setInterval('icec9cde187sf.swapcec9cde187fade()', icec9cde187sf.length/icec9cde187sf.resolution);
	
		}
		
		//if the counter has reached the top
		if(icec9cde187sf.count > (1 - (1 / icec9cde187sf.resolution)))
		{
			//clear the timer
			clearInterval(icec9cde187sf.clock);
			icec9cde187sf.clock = null;
	
			//reset the fade direction flag
			icec9cde187sf.fade = true;
			
			//reset the counter
			icec9cde187sf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(icec9cde187sf.type)
		{
			case 'ie' :
				icec9cde187sf.obj.filters.alpha.opacity = icec9cde187sf.count * 100;
				break;
				
			case 'khtml' :
				icec9cde187sf.obj.style.KhtmlOpacity = icec9cde187sf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				icec9cde187sf.obj.style.MozOpacity = (icec9cde187sf.count == 1 ? 0.9999999 : icec9cde187sf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				icec9cde187sf.obj.style.opacity = (icec9cde187sf.count == 1 ? 0.9999999 : icec9cde187sf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-cec9cde187-slideshow { text-align: center; width: 600px;  }');
	document.writeln('.IDX-cec9cde187-image { width: 480px; height: 360px;  }');
	document.writeln('#IDX-cec9cde187-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextcec9cde187 = 1;
	prevcec9cde187 = 8 - 1;

	document.writeln('<div id="IDX-cec9cde187-slideshow">');
	document.writeln('<div id="IDX-cec9cde187-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-cec9cde187-ssImageURL" class="IDX-cec9cde187-ssLinkText"><img id="IDX-cec9cde187-ssImage" name="cec9cde187-ssImage" alt="Slideshow image" border="0"  class="IDX-cec9cde187-image" src="http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/077/20928777.jpg" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-cec9cde187-priceLine"></div>');
	document.writeln('<div id="IDX-cec9cde187-addressLine"></div>');
	document.writeln('<div id="IDX-cec9cde187-cszLine"></div>');
	document.writeln('<div id="IDX-cec9cde187-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-cec9cde187-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-cec9cde187-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playcec9cde187()
	{
		
		
		urlVarcec9cde187 = '<a href="'+propertiescec9cde187[ccec9cde187wi][6]+'" class="IDX-cec9cde187-ssLinkText">';
		swapcec9cde187fade(document.getElementById('IDX-cec9cde187-ssImage'), preLoadcec9cde187.src, '1', ' ');
		document.getElementById('IDX-cec9cde187-ssImageURL').href = propertiescec9cde187[ccec9cde187wi][6];
		document.getElementById('IDX-cec9cde187-priceLine').innerHTML = urlVarcec9cde187+'$'+propertiescec9cde187[ccec9cde187wi][0]+'</a>';
		document.getElementById('IDX-cec9cde187-addressLine').innerHTML =  urlVarcec9cde187+propertiescec9cde187[ccec9cde187wi][1]+'</a>';
		document.getElementById('IDX-cec9cde187-cszLine').innerHTML = urlVarcec9cde187+propertiescec9cde187[ccec9cde187wi][2]+'</a>';
		document.getElementById('IDX-cec9cde187-bedLine').innerHTML = urlVarcec9cde187+'Beds: '+propertiescec9cde187[ccec9cde187wi][7]+'</a>';
		document.getElementById('IDX-cec9cde187-bathLine').innerHTML = urlVarcec9cde187+'Baths: '+propertiescec9cde187[ccec9cde187wi][8]+'</a>';
		document.getElementById('IDX-cec9cde187-remarkLine').innerHTML = urlVarcec9cde187+propertiescec9cde187[ccec9cde187wi][9]+'</a>';
		
		preLoadcec9cde187 = new Image();
		preLoadcec9cde187.src = propertiescec9cde187[nextcec9cde187][3];
		
		updatecec9cde187();
		
		ccec9cde187 = setTimeout('playcec9cde187()', timecec9cde187out);	
		
		
	} // end play()
	function updatecec9cde187()
	{		
		ccec9cde187wi = nextcec9cde187;		
		genNextcec9cde187();
		genPrevcec9cde187();
		
	}
	function genNextcec9cde187()
	{
		nextcec9cde187 = ccec9cde187wi + 1;
		if (nextcec9cde187 >= 8)
			nextcec9cde187 = 0;
	} // end genNext
	function genPrevcec9cde187()
	{
		prevcec9cde187 = ccec9cde187wi - 1;
		if (prevcec9cde187 < 0)
			prevcec9cde187 = 8 - 1;
	} // end genPrev

	var propertiescec9cde187 = new Array(8);
	propertiescec9cde187[0] = new Array('274,900','251  Cayetano Dr','Windsor, CA 95492 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/077/20928777.jpg','20928777','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20928777&idxID=047','3','2','Move right into this single story home located in the Foothi...');
	propertiescec9cde187[1] = new Array('280,000','936  Foothill Dr','Windsor, CA 95492 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/034/20930734.jpg','20930734','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20930734&idxID=047','3','2','This cozy 3 bedroom 2 bath bank owned house on a corner lot ...');
	propertiescec9cde187[2] = new Array('295,000','1121  Rio Camino Ct','Windsor, CA 95492 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/086/20929686.jpg','20929686','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20929686&idxID=047','3','2','This wonderful 3 bedroom 2 bathroom home w/approx 1100 of li...');
	propertiescec9cde187[3] = new Array('319,900','999  Gemini Dr','Windsor, CA 95492 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/015/20921915.jpg','20921915','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20921915&idxID=047','3','1','Bank-owned 4 bedroom 2 bath property with large yard....');
	propertiescec9cde187[4] = new Array('330,700','7104  Hastings Pl','Windsor, CA 95492 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/057/20930357.jpg','20930357','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20930357&idxID=047','4','3','Here is a chance to be a homeowner in Deer Creek Subdivision...');
	propertiescec9cde187[5] = new Array('344,900','7949  Ferrari Way','Windsor, CA 95492 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/000/20925400.jpg','20925400','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20925400&idxID=047','3','2','Well kept home in highly desirable golf course community in ...');
	propertiescec9cde187[6] = new Array('345,000','11012  Old Redwood Hwy','Windsor, CA 95492 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/056/20926256.jpg','20926256','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20926256&idxID=047','7','3','Large, 1920\\\\\\\'s style home with several outbuildings situat...');
	propertiescec9cde187[7] = new Array('390,000','693  Decanter Cir','Windsor, CA 95492 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/065/20929365.jpg','20929365','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20929365&idxID=047','3','3','Desirable Vintana Neighborhood. Beautiful 2 story 3bd/2.5ba ...');
	var urlVarcec9cde187;
	var preLoadcec9cde187 = new Image();
	preLoadcec9cde187.src = propertiescec9cde187[ccec9cde187wi][3];
	onLoad = playcec9cde187();
