	// IDX Broker Slideshow version 2.0
	// Copyright ©2010 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 timeb31b0cffe1out = 5000;
	var cb31b0cffe1wi = 0;
	
	// ib31b0cffe1sf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var ib31b0cffe1sf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swapb31b0cffe1fade setup function
	function swapb31b0cffe1fade()
	{
		//if the timer is not already going
		if(ib31b0cffe1sf.clock == null)
		{
			//copy the image object 
			ib31b0cffe1sf.obj = arguments[0];
			
			//copy the image src argument 
			ib31b0cffe1sf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof ib31b0cffe1sf.obj.style.opacity != 'undefined')
			{
				ib31b0cffe1sf.type = 'w3c';
			}
			else if(typeof ib31b0cffe1sf.obj.style.MozOpacity != 'undefined')
			{
				ib31b0cffe1sf.type = 'moz';
			}
			else if(typeof ib31b0cffe1sf.obj.style.KhtmlOpacity != 'undefined')
			{
				ib31b0cffe1sf.type = 'khtml';
			}
			else if(typeof ib31b0cffe1sf.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
				ib31b0cffe1sf.type = (ib31b0cffe1sf.obj.filters.length > 0 && typeof ib31b0cffe1sf.obj.filters.alpha == 'object' && typeof ib31b0cffe1sf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				ib31b0cffe1sf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				ib31b0cffe1sf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(ib31b0cffe1sf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swapb31b0cffe1fade is two distinct transitions
				ib31b0cffe1sf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				ib31b0cffe1sf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				ib31b0cffe1sf.clock = setInterval('ib31b0cffe1sf.swapb31b0cffe1fade()', ib31b0cffe1sf.length/ib31b0cffe1sf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				ib31b0cffe1sf.obj.src = ib31b0cffe1sf.src;
			}
			
		}
	};
	
	
	//swapb31b0cffe1fade timer function
	ib31b0cffe1sf.swapb31b0cffe1fade = function()
	{
		//increase or reduce the counter on an exponential scale
		ib31b0cffe1sf.count = (ib31b0cffe1sf.fade) ? ib31b0cffe1sf.count * 0.9 : (ib31b0cffe1sf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(ib31b0cffe1sf.count < (1 / ib31b0cffe1sf.resolution))
		{
			//clear the timer
			clearInterval(ib31b0cffe1sf.clock);
			ib31b0cffe1sf.clock = null;
	
			//do the image swap
			ib31b0cffe1sf.obj.src = ib31b0cffe1sf.src;
	
			//reverse the fade direction flag
			ib31b0cffe1sf.fade = false;
			
			//restart the timer
			ib31b0cffe1sf.clock = setInterval('ib31b0cffe1sf.swapb31b0cffe1fade()', ib31b0cffe1sf.length/ib31b0cffe1sf.resolution);
	
		}
		
		//if the counter has reached the top
		if(ib31b0cffe1sf.count > (1 - (1 / ib31b0cffe1sf.resolution)))
		{
			//clear the timer
			clearInterval(ib31b0cffe1sf.clock);
			ib31b0cffe1sf.clock = null;
	
			//reset the fade direction flag
			ib31b0cffe1sf.fade = true;
			
			//reset the counter
			ib31b0cffe1sf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(ib31b0cffe1sf.type)
		{
			case 'ie' :
				ib31b0cffe1sf.obj.filters.alpha.opacity = ib31b0cffe1sf.count * 100;
				break;
				
			case 'khtml' :
				ib31b0cffe1sf.obj.style.KhtmlOpacity = ib31b0cffe1sf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				ib31b0cffe1sf.obj.style.MozOpacity = (ib31b0cffe1sf.count == 1 ? 0.9999999 : ib31b0cffe1sf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				ib31b0cffe1sf.obj.style.opacity = (ib31b0cffe1sf.count == 1 ? 0.9999999 : ib31b0cffe1sf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-b31b0cffe1-slideshow { text-align: center; width: 260px;  }');
	document.writeln('.IDX-b31b0cffe1-image { width: 240px; height: 200px;  }');
	document.writeln('#IDX-b31b0cffe1-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextb31b0cffe1 = 1;
	prevb31b0cffe1 = 7 - 1;

	document.writeln('<div id="IDX-b31b0cffe1-slideshow">');
	document.writeln('<div id="IDX-b31b0cffe1-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-b31b0cffe1-ssImageURL" class="IDX-b31b0cffe1-ssLinkText"><img id="IDX-b31b0cffe1-ssImage" name="b31b0cffe1-ssImage" alt="Slideshow image" border="0"  class="IDX-b31b0cffe1-image" src="http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/039/20930339.jpg" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-b31b0cffe1-priceLine"></div>');
	document.writeln('<div id="IDX-b31b0cffe1-addressLine"></div>');
	document.writeln('<div id="IDX-b31b0cffe1-cszLine"></div>');
	document.writeln('<div id="IDX-b31b0cffe1-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-b31b0cffe1-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-b31b0cffe1-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playb31b0cffe1()
	{
		
		
		urlVarb31b0cffe1 = '<a href="'+propertiesb31b0cffe1[cb31b0cffe1wi][6]+'" class="IDX-b31b0cffe1-ssLinkText">';
		swapb31b0cffe1fade(document.getElementById('IDX-b31b0cffe1-ssImage'), preLoadb31b0cffe1.src, '1', ' ');
		document.getElementById('IDX-b31b0cffe1-ssImageURL').href = propertiesb31b0cffe1[cb31b0cffe1wi][6];
		document.getElementById('IDX-b31b0cffe1-priceLine').innerHTML = urlVarb31b0cffe1+'$'+propertiesb31b0cffe1[cb31b0cffe1wi][0]+'</a>';
		document.getElementById('IDX-b31b0cffe1-addressLine').innerHTML =  urlVarb31b0cffe1+propertiesb31b0cffe1[cb31b0cffe1wi][1]+'</a>';
		document.getElementById('IDX-b31b0cffe1-cszLine').innerHTML = urlVarb31b0cffe1+propertiesb31b0cffe1[cb31b0cffe1wi][2]+'</a>';
		document.getElementById('IDX-b31b0cffe1-bedLine').innerHTML = urlVarb31b0cffe1+'Beds: '+propertiesb31b0cffe1[cb31b0cffe1wi][7]+'</a>';
		document.getElementById('IDX-b31b0cffe1-bathLine').innerHTML = urlVarb31b0cffe1+'Baths: '+propertiesb31b0cffe1[cb31b0cffe1wi][8]+'</a>';
		document.getElementById('IDX-b31b0cffe1-remarkLine').innerHTML = urlVarb31b0cffe1+propertiesb31b0cffe1[cb31b0cffe1wi][9]+'</a>';
		
		preLoadb31b0cffe1 = new Image();
		preLoadb31b0cffe1.src = propertiesb31b0cffe1[nextb31b0cffe1][3];
		
		updateb31b0cffe1();
		
		cb31b0cffe1 = setTimeout('playb31b0cffe1()', timeb31b0cffe1out);	
		
		
	} // end play()
	function updateb31b0cffe1()
	{		
		cb31b0cffe1wi = nextb31b0cffe1;		
		genNextb31b0cffe1();
		genPrevb31b0cffe1();
		
	}
	function genNextb31b0cffe1()
	{
		nextb31b0cffe1 = cb31b0cffe1wi + 1;
		if (nextb31b0cffe1 >= 7)
			nextb31b0cffe1 = 0;
	} // end genNext
	function genPrevb31b0cffe1()
	{
		prevb31b0cffe1 = cb31b0cffe1wi - 1;
		if (prevb31b0cffe1 < 0)
			prevb31b0cffe1 = 7 - 1;
	} // end genPrev

	var propertiesb31b0cffe1 = new Array(7);
	propertiesb31b0cffe1[0] = new Array('169,761','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...');
	propertiesb31b0cffe1[1] = new Array('199,900','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...');
	propertiesb31b0cffe1[2] = new Array('209,900','426  Bernice Ln','Sonoma, CA 95476 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/088/20930788.jpg','20930788','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20930788&idxID=047','2','2','Sonoma Charmer 2 bedroom, 2 bath end unit condo located in t...');
	propertiesb31b0cffe1[3] = new Array('212,900','18160  Barrett Ave','Sonoma, CA 95476 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/021/20932821.jpg','20932821','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20932821&idxID=047','1','1','perfect for !st time buyers, mature landscaping in both fron...');
	propertiesb31b0cffe1[4] = new Array('229,900','575  Boyes Blvd','Sonoma, CA 95476 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/084/20932684.jpg','20932684','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20932684&idxID=047','2','1','Very nice 2 bedroom 1 bath home with fireplace. Rooms are ve...');
	propertiesb31b0cffe1[5] = new Array('233,500','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 ...');
	propertiesb31b0cffe1[6] = new Array('237,500','661  Cherry Ave','Sonoma, CA 95476 ','http://mediac.rapmls.com/norcalmls/listingpics/bigphoto/094/20928494.jpg','20928494','047','http://www.sonoma.idxco.com/idx/3803/details.php?listingID=20928494&idxID=047','2','2','Enjoy Sonoma Living is this desirable west side condo amidst...');
	var urlVarb31b0cffe1;
	var preLoadb31b0cffe1 = new Image();
	preLoadb31b0cffe1.src = propertiesb31b0cffe1[cb31b0cffe1wi][3];
	onLoad = playb31b0cffe1();
