	// 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 timeff60b5c741out = 5000;
	var cff60b5c741wi = 0;
	
	// iff60b5c741sf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var iff60b5c741sf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swapff60b5c741fade setup function
	function swapff60b5c741fade()
	{
		//if the timer is not already going
		if(iff60b5c741sf.clock == null)
		{
			//copy the image object 
			iff60b5c741sf.obj = arguments[0];
			
			//copy the image src argument 
			iff60b5c741sf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof iff60b5c741sf.obj.style.opacity != 'undefined')
			{
				iff60b5c741sf.type = 'w3c';
			}
			else if(typeof iff60b5c741sf.obj.style.MozOpacity != 'undefined')
			{
				iff60b5c741sf.type = 'moz';
			}
			else if(typeof iff60b5c741sf.obj.style.KhtmlOpacity != 'undefined')
			{
				iff60b5c741sf.type = 'khtml';
			}
			else if(typeof iff60b5c741sf.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
				iff60b5c741sf.type = (iff60b5c741sf.obj.filters.length > 0 && typeof iff60b5c741sf.obj.filters.alpha == 'object' && typeof iff60b5c741sf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				iff60b5c741sf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				iff60b5c741sf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(iff60b5c741sf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swapff60b5c741fade is two distinct transitions
				iff60b5c741sf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				iff60b5c741sf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				iff60b5c741sf.clock = setInterval('iff60b5c741sf.swapff60b5c741fade()', iff60b5c741sf.length/iff60b5c741sf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				iff60b5c741sf.obj.src = iff60b5c741sf.src;
			}
			
		}
	};
	
	
	//swapff60b5c741fade timer function
	iff60b5c741sf.swapff60b5c741fade = function()
	{
		//increase or reduce the counter on an exponential scale
		iff60b5c741sf.count = (iff60b5c741sf.fade) ? iff60b5c741sf.count * 0.9 : (iff60b5c741sf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(iff60b5c741sf.count < (1 / iff60b5c741sf.resolution))
		{
			//clear the timer
			clearInterval(iff60b5c741sf.clock);
			iff60b5c741sf.clock = null;
	
			//do the image swap
			iff60b5c741sf.obj.src = iff60b5c741sf.src;
	
			//reverse the fade direction flag
			iff60b5c741sf.fade = false;
			
			//restart the timer
			iff60b5c741sf.clock = setInterval('iff60b5c741sf.swapff60b5c741fade()', iff60b5c741sf.length/iff60b5c741sf.resolution);
	
		}
		
		//if the counter has reached the top
		if(iff60b5c741sf.count > (1 - (1 / iff60b5c741sf.resolution)))
		{
			//clear the timer
			clearInterval(iff60b5c741sf.clock);
			iff60b5c741sf.clock = null;
	
			//reset the fade direction flag
			iff60b5c741sf.fade = true;
			
			//reset the counter
			iff60b5c741sf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(iff60b5c741sf.type)
		{
			case 'ie' :
				iff60b5c741sf.obj.filters.alpha.opacity = iff60b5c741sf.count * 100;
				break;
				
			case 'khtml' :
				iff60b5c741sf.obj.style.KhtmlOpacity = iff60b5c741sf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iff60b5c741sf.obj.style.MozOpacity = (iff60b5c741sf.count == 1 ? 0.9999999 : iff60b5c741sf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iff60b5c741sf.obj.style.opacity = (iff60b5c741sf.count == 1 ? 0.9999999 : iff60b5c741sf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-ff60b5c741-slideshow { text-align: center; width: 260px;  }');
	document.writeln('.IDX-ff60b5c741-image { width: 240px; height: 200px;  }');
	document.writeln('#IDX-ff60b5c741-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextff60b5c741 = 1;
	prevff60b5c741 = 11 - 1;

	document.writeln('<div id="IDX-ff60b5c741-slideshow">');
	document.writeln('<div id="IDX-ff60b5c741-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-ff60b5c741-ssImageURL" class="IDX-ff60b5c741-ssLinkText"><img id="IDX-ff60b5c741-ssImage" name="ff60b5c741-ssImage" alt="Slideshow image" border="0"  class="IDX-ff60b5c741-image" src="http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/048/20928148.jpg" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-ff60b5c741-priceLine"></div>');
	document.writeln('<div id="IDX-ff60b5c741-addressLine"></div>');
	document.writeln('<div id="IDX-ff60b5c741-cszLine"></div>');
	document.writeln('<div id="IDX-ff60b5c741-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-ff60b5c741-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-ff60b5c741-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playff60b5c741()
	{
		
		
		urlVarff60b5c741 = '<a href="'+propertiesff60b5c741[cff60b5c741wi][6]+'" class="IDX-ff60b5c741-ssLinkText">';
		swapff60b5c741fade(document.getElementById('IDX-ff60b5c741-ssImage'), preLoadff60b5c741.src, '1', ' ');
		document.getElementById('IDX-ff60b5c741-ssImageURL').href = propertiesff60b5c741[cff60b5c741wi][6];
		document.getElementById('IDX-ff60b5c741-priceLine').innerHTML = urlVarff60b5c741+'$'+propertiesff60b5c741[cff60b5c741wi][0]+'</a>';
		document.getElementById('IDX-ff60b5c741-addressLine').innerHTML =  urlVarff60b5c741+propertiesff60b5c741[cff60b5c741wi][1]+'</a>';
		document.getElementById('IDX-ff60b5c741-cszLine').innerHTML = urlVarff60b5c741+propertiesff60b5c741[cff60b5c741wi][2]+'</a>';
		document.getElementById('IDX-ff60b5c741-bedLine').innerHTML = urlVarff60b5c741+'Beds: '+propertiesff60b5c741[cff60b5c741wi][7]+'</a>';
		document.getElementById('IDX-ff60b5c741-bathLine').innerHTML = urlVarff60b5c741+'Baths: '+propertiesff60b5c741[cff60b5c741wi][8]+'</a>';
		document.getElementById('IDX-ff60b5c741-remarkLine').innerHTML = urlVarff60b5c741+propertiesff60b5c741[cff60b5c741wi][9]+'</a>';
		
		preLoadff60b5c741 = new Image();
		preLoadff60b5c741.src = propertiesff60b5c741[nextff60b5c741][3];
		
		updateff60b5c741();
		
		cff60b5c741 = setTimeout('playff60b5c741()', timeff60b5c741out);	
		
		
	} // end play()
	function updateff60b5c741()
	{		
		cff60b5c741wi = nextff60b5c741;		
		genNextff60b5c741();
		genPrevff60b5c741();
		
	}
	function genNextff60b5c741()
	{
		nextff60b5c741 = cff60b5c741wi + 1;
		if (nextff60b5c741 >= 11)
			nextff60b5c741 = 0;
	} // end genNext
	function genPrevff60b5c741()
	{
		prevff60b5c741 = cff60b5c741wi - 1;
		if (prevff60b5c741 < 0)
			prevff60b5c741 = 11 - 1;
	} // end genPrev

	var propertiesff60b5c741 = new Array(11);
	propertiesff60b5c741[0] = new Array('140,000','268 W Agua Caliente Rd','Sonoma, CA 95476 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/048/20928148.jpg','20928148','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20928148&idxID=047','2','2','End unit in lush complex with beautiful trees. Unit has buil...');
	propertiesff60b5c741[1] = new Array('172,500','820 W Spain St','Sonoma, CA 95476 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/043/20926743.jpg','20926743','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20926743&idxID=047','5','3','Nice condo ready to move in, Built in 2001 2bed 2ba Affordab...');
	propertiesff60b5c741[2] = new Array('189,900','446  Bernice Ln','Sonoma, CA 95476 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/027/20929027.jpg','20929027','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20929027&idxID=047','2','2','Bank owned property: must sell! Close to Sonoma Plaza and sh...');
	propertiesff60b5c741[3] = new Array('200,000','48  Calle Del Monte Brk','Sonoma, CA 95476 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/039/20930339.jpg','20930339','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20930339&idxID=047','3','1','Darling 3 bedroom 1 bath home in center of Boyes Springs. Lo...');
	propertiesff60b5c741[4] = new Array('207,900','17347  Sonoma Hwy','Sonoma, CA 95476 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/014/20922914.jpg','20922914','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20922914&idxID=047','3','2','Fantastic views! Enjoy this 3 bedroom, 2 bath home with hard...');
	propertiesff60b5c741[5] = new Array('209,900','180  Calle Del Monte ','Sonoma, CA 95476 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/096/20920296.jpg','20920296','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20920296&idxID=047','2','1','2 Bedroom, 1 Bath home with detached second unit located in ...');
	propertiesff60b5c741[6] = new Array('222,500','52  Woodworth Ln','Sonoma, CA 95476 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/083/20927483.jpg','20927483','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20927483&idxID=047','2','1','Location, location, location!  Very nice home on the east si...');
	propertiesff60b5c741[7] = new Array('225,000','330  Calle Del Monte Ave','Sonoma, CA 95476 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/045/20926545.jpg','20926545','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20926545&idxID=047','2','1','Valley of the Moon home just waiting for you! Good sized lot...');
	propertiesff60b5c741[8] = new Array('232,900','893  Glenwood Dr','Sonoma, CA 95476 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/014/20925314.jpg','20925314','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20925314&idxID=047','3','2','REO!!! Bank owned property: must sell! This home offers 3 be...');
	propertiesff60b5c741[9] = new Array('275,600','19364  Arnold Dr','Sonoma, CA 95476 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/015/20930215.jpg','20930215','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20930215&idxID=047','2','2','Bring your tool belt and tools.  Property needs TLC. Approx ...');
	propertiesff60b5c741[10] = new Array('300,000','49  Temelec Cir','Sonoma, CA 95476 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/051/20921251.jpg','20921251','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20921251&idxID=047','3','2','Large single-story home in 55+ community.  Master room on on...');
	var urlVarff60b5c741;
	var preLoadff60b5c741 = new Image();
	preLoadff60b5c741.src = propertiesff60b5c741[cff60b5c741wi][3];
	onLoad = playff60b5c741();
