	// IDX Broker Slideshow version 2.0
	// Copyright ©2012 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 timepalmspringshomesout = 8000;
	var cpalmspringshomeswi = 0;
	
	// ipalmspringshomessf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var ipalmspringshomessf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swappalmspringshomesfade setup function
	function swappalmspringshomesfade()
	{
		//if the timer is not already going
		if(ipalmspringshomessf.clock == null)
		{
			//copy the image object 
			ipalmspringshomessf.obj = arguments[0];
			
			//copy the image src argument 
			ipalmspringshomessf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof ipalmspringshomessf.obj.style.opacity != 'undefined')
			{
				ipalmspringshomessf.type = 'w3c';
			}
			else if(typeof ipalmspringshomessf.obj.style.MozOpacity != 'undefined')
			{
				ipalmspringshomessf.type = 'moz';
			}
			else if(typeof ipalmspringshomessf.obj.style.KhtmlOpacity != 'undefined')
			{
				ipalmspringshomessf.type = 'khtml';
			}
			else if(typeof ipalmspringshomessf.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
				ipalmspringshomessf.type = (ipalmspringshomessf.obj.filters.length > 0 && typeof ipalmspringshomessf.obj.filters.alpha == 'object' && typeof ipalmspringshomessf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				ipalmspringshomessf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				ipalmspringshomessf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(ipalmspringshomessf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swappalmspringshomesfade is two distinct transitions
				ipalmspringshomessf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				ipalmspringshomessf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				ipalmspringshomessf.clock = setInterval('ipalmspringshomessf.swappalmspringshomesfade()', ipalmspringshomessf.length/ipalmspringshomessf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				ipalmspringshomessf.obj.src = ipalmspringshomessf.src;
			}
			
		}
	};
	
	
	//swappalmspringshomesfade timer function
	ipalmspringshomessf.swappalmspringshomesfade = function()
	{
		//increase or reduce the counter on an exponential scale
		ipalmspringshomessf.count = (ipalmspringshomessf.fade) ? ipalmspringshomessf.count * 0.9 : (ipalmspringshomessf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(ipalmspringshomessf.count < (1 / ipalmspringshomessf.resolution))
		{
			//clear the timer
			clearInterval(ipalmspringshomessf.clock);
			ipalmspringshomessf.clock = null;
	
			//do the image swap
			ipalmspringshomessf.obj.src = ipalmspringshomessf.src;
	
			//reverse the fade direction flag
			ipalmspringshomessf.fade = false;
			
			//restart the timer
			ipalmspringshomessf.clock = setInterval('ipalmspringshomessf.swappalmspringshomesfade()', ipalmspringshomessf.length/ipalmspringshomessf.resolution);
	
		}
		
		//if the counter has reached the top
		if(ipalmspringshomessf.count > (1 - (1 / ipalmspringshomessf.resolution)))
		{
			//clear the timer
			clearInterval(ipalmspringshomessf.clock);
			ipalmspringshomessf.clock = null;
	
			//reset the fade direction flag
			ipalmspringshomessf.fade = true;
			
			//reset the counter
			ipalmspringshomessf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(ipalmspringshomessf.type)
		{
			case 'ie' :
				ipalmspringshomessf.obj.filters.alpha.opacity = ipalmspringshomessf.count * 100;
				break;
				
			case 'khtml' :
				ipalmspringshomessf.obj.style.KhtmlOpacity = ipalmspringshomessf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				ipalmspringshomessf.obj.style.MozOpacity = (ipalmspringshomessf.count == 1 ? 0.9999999 : ipalmspringshomessf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				ipalmspringshomessf.obj.style.opacity = (ipalmspringshomessf.count == 1 ? 0.9999999 : ipalmspringshomessf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-palmspringshomes-slideshow { text-align: center; border-width: 1px; border-style: none; width: 475px;  }');
	document.writeln('.IDX-palmspringshomes-image { width: 475px; height: 275px;  }');
	document.writeln('#IDX-palmspringshomes-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextpalmspringshomes = 1;
	prevpalmspringshomes = 25 - 1;

	document.writeln('<div id="IDX-palmspringshomes-slideshow">');
	document.writeln('<div id="IDX-palmspringshomes-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-palmspringshomes-ssImageURL" class="IDX-palmspringshomes-ssLinkText"><img id="IDX-palmspringshomes-ssImage" name="palmspringshomes-ssImage" alt="Slideshow image" border="0"  class="IDX-palmspringshomes-image" src="http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/042/21429542.jpg" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-palmspringshomes-priceLine"></div>');
	document.writeln('<div id="IDX-palmspringshomes-addressLine"></div>');
	document.writeln('<div id="IDX-palmspringshomes-cszLine"></div>');
	document.writeln('<div id="IDX-palmspringshomes-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-palmspringshomes-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-palmspringshomes-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playpalmspringshomes()
	{
		
		
		urlVarpalmspringshomes = '<a href="'+propertiespalmspringshomes[cpalmspringshomeswi][6]+'" class="IDX-palmspringshomes-ssLinkText">';
		swappalmspringshomesfade(document.getElementById('IDX-palmspringshomes-ssImage'), preLoadpalmspringshomes.src, '1', ' ');
		document.getElementById('IDX-palmspringshomes-ssImageURL').href = propertiespalmspringshomes[cpalmspringshomeswi][6];
		document.getElementById('IDX-palmspringshomes-priceLine').innerHTML = urlVarpalmspringshomes+'$'+propertiespalmspringshomes[cpalmspringshomeswi][0]+'</a>';
		document.getElementById('IDX-palmspringshomes-addressLine').innerHTML =  urlVarpalmspringshomes+propertiespalmspringshomes[cpalmspringshomeswi][1]+'</a>';
		document.getElementById('IDX-palmspringshomes-cszLine').innerHTML = urlVarpalmspringshomes+propertiespalmspringshomes[cpalmspringshomeswi][2]+'</a>';
		document.getElementById('IDX-palmspringshomes-bedLine').innerHTML = urlVarpalmspringshomes+'Beds: '+propertiespalmspringshomes[cpalmspringshomeswi][7]+'</a>';
		document.getElementById('IDX-palmspringshomes-bathLine').innerHTML = urlVarpalmspringshomes+'Baths: '+propertiespalmspringshomes[cpalmspringshomeswi][8]+'</a>';
		document.getElementById('IDX-palmspringshomes-remarkLine').innerHTML = urlVarpalmspringshomes+propertiespalmspringshomes[cpalmspringshomeswi][9]+'</a>';
		
		preLoadpalmspringshomes = new Image();
		preLoadpalmspringshomes.src = propertiespalmspringshomes[nextpalmspringshomes][3];
		
		updatepalmspringshomes();
		
		cpalmspringshomes = setTimeout('playpalmspringshomes()', timepalmspringshomesout);	
		
		
	} // end play()
	function updatepalmspringshomes()
	{		
		cpalmspringshomeswi = nextpalmspringshomes;		
		genNextpalmspringshomes();
		genPrevpalmspringshomes();
		
	}
	function genNextpalmspringshomes()
	{
		nextpalmspringshomes = cpalmspringshomeswi + 1;
		if (nextpalmspringshomes >= 25)
			nextpalmspringshomes = 0;
	} // end genNext
	function genPrevpalmspringshomes()
	{
		prevpalmspringshomes = cpalmspringshomeswi - 1;
		if (prevpalmspringshomes < 0)
			prevpalmspringshomes = 25 - 1;
	} // end genPrev

	var propertiespalmspringshomes = new Array(25);
	propertiespalmspringshomes[0] = new Array('200,000','1948 Lawrence St','Palm Springs, CA 92264 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/042/21429542.jpg','21429542','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=21429542&idxID=214','3','0','Fixer Great Investment....');
	propertiespalmspringshomes[1] = new Array('201,875','625 E Daisy St','Palm Springs, CA 92262 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/061/21444761.jpg','21444761','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=21444761&idxID=214','4','2','Excellent and very spacious 4 BR/2BA home in sought after Pa...');
	propertiespalmspringshomes[2] = new Array('205,000','155 W Hermosa Pl 23','Palm Springs, CA 92262 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/051/41404651.jpg','41404651','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=41404651&idxID=214','1','1','Back on the Market, buyers 1031 exchange fell through. Villa...');
	propertiespalmspringshomes[3] = new Array('205,000','1080 Mira Luna','Palm Springs, CA 92262 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/020/41444920.jpg','41444920','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=41444920&idxID=214','3','2','Beautiful home with great room concept.  Open kitchen to gre...');
	propertiespalmspringshomes[4] = new Array('209,000','423 E Via Ensenada Cir','Palm Springs, CA 92264 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/081/21445681.jpg','21445681','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=21445681&idxID=214','2','2','Great South Palm Springs unit just a short distance from Smo...');
	propertiespalmspringshomes[5] = new Array('209,000','308 Desert Lakes Dr','Palm Springs, CA 92264 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/089/21439189.jpg','21439189','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=21439189&idxID=214','2','2','This is a stunning, sophisticated condo with 2/2 and a very ...');
	propertiespalmspringshomes[6] = new Array('209,000','6288 Driver Rd','Palm Springs, CA 92264 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/098/21432898.jpg','21432898','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=21432898&idxID=214','2','2','JUST REDUCED $10,000. If location matters?  This Remodeled c...');
	propertiespalmspringshomes[7] = new Array('210,000','2102 Marguerite St','Palm Springs, CA 92264 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/087/41445887.jpg','41445887','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=41445887&idxID=214','3','3','Enjoy the warmth and beauty of Palm Springs. This home is lo...');
	propertiespalmspringshomes[8] = new Array('210,000','7445 Regency Dr','Palm Springs, CA 92264 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/018/41443418.jpg','41443418','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=41443418&idxID=214','2','2','Seller is motivated!!! This spacious condo is in move-in rea...');
	propertiespalmspringshomes[9] = new Array('211,000','1833 S Araby Dr 24','Palm Springs, CA 92264 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/004/21436904.jpg','21436904','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=21436904&idxID=214','2','3','Villa Alegria - charming complex of 39 units in South Palm S...');
	propertiespalmspringshomes[10] = new Array('214,000','4735 S Winners Cir D','Palm Springs, CA 92264 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/096/21423196.jpg','21423196','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=21423196&idxID=214','3','2','SUPER BEAUTIFUL !  Looking for Great View Of The Mountains? ...');
	propertiespalmspringshomes[11] = new Array('215,000','642 S Desert View Dr','Palm Springs, CA 92264 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/078/41438978.jpg','41438978','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=41438978&idxID=214','3','2','Charming well maintained 3 bedroom 2 bath mid-century home w...');
	propertiespalmspringshomes[12] = new Array('219,000','10 Desert Lakes Dr','Palm Springs, CA 92264 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/021/41440921.jpg','41440921','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=41440921&idxID=214','2','2','Furnished &amp; Move-in Ready! This beautiful 2bed/2bath hom...');
	propertiespalmspringshomes[13] = new Array('219,900','3666 E Paseo Barbara','Palm Springs, CA 92262 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/061/21441961.jpg','21441961','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=21441961&idxID=214','3','2','Not a Short Sale...Just priced to sell!!!  This is a gorgeou...');
	propertiespalmspringshomes[14] = new Array('219,900','316 W Dominguez Rd','Palm Springs, CA 92262 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/099/41446399.jpg','41446399','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=41446399&idxID=214','3','2','Private pool/spa home in a secluded area North side of Palm ...');
	propertiespalmspringshomes[15] = new Array('219,900','3856 Mira Arena','Palm Springs, CA 92262 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/017/41443117.jpg','41443117','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=41443117&idxID=214','3','2','Normal Sale, Can close quickly. Bring all offers. House show...');
	propertiespalmspringshomes[16] = new Array('220,000','1575 E Sunny Dunes Rd','Palm Springs, CA 92264 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/032/41429832.jpg','41429832','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=41429832&idxID=214','3','3','Short sale approved! Short sale subject to lender approval. ...');
	propertiespalmspringshomes[17] = new Array('224,000','1351 E Padua Way','Palm Springs, CA 92262 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/039/41393339.jpg?','41393339','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=41393339&idxID=214','3','2','FOR SALE at $224,000. Nice 3-bedroom home boasts an open flo...');
	propertiespalmspringshomes[18] = new Array('224,900','695 E Arenas Rd','Palm Springs, CA 92262 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/045/21435745.jpg','21435745','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=21435745&idxID=214','2','3','Property In Auction - Must see contemporary 2 bedroom 3 bath...');
	propertiespalmspringshomes[19] = new Array('225,000','1822 E Sonora Rd','Palm Springs, CA 92264 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/039/41439439.jpg','41439439','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=41439439&idxID=214','2','2','Renovated and enlarged 2 bedroom unit. This unit has an expa...');
	propertiespalmspringshomes[20] = new Array('225,000','427 N Calle Rolph','Palm Springs, CA 92262 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/053/21432453.jpg','21432453','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=21432453&idxID=214','2','2','Located in the wonderful Greenhouse East Community, this bea...');
	propertiespalmspringshomes[21] = new Array('225,000','747 Ventana','Palm Springs, CA 92262 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/090/21437890.jpg','21437890','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=21437890&idxID=214','3','2','TURNKEY FURNISHED!!!  Buy today, walk in and enjoy tomorrow!...');
	propertiespalmspringshomes[22] = new Array('228,000','939 Saint George Cir A','Palm Springs, CA 92264 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/029/21441629.jpg','21441629','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=21441629&idxID=214','2','2','Location, Views and Privacy!! Mesquite Greens is a low-densi...');
	propertiespalmspringshomes[23] = new Array('228,800','1723 E Ramon Rd','Palm Springs, CA 92264 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/071/21440871.jpg','21440871','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=21440871&idxID=214','3','3','Large, Spacious 2 story 3 bedroom condo w/garage and carport...');
	propertiespalmspringshomes[24] = new Array('229,000','2696 S Sierra Madre F15','Palm Springs, CA 92264 ','http://mediall.rapmls.com/desertareamls/listingpics/bigphoto/053/21433953.jpg','21433953','214','http://idx.epalmspringsrealestate.com/idx/5518/details.php?listingID=21433953&idxID=214','2','2','Excellent Value and Ready To Move in!Palm Springs Life style...');
	var urlVarpalmspringshomes;
	var preLoadpalmspringshomes = new Image();
	preLoadpalmspringshomes.src = propertiespalmspringshomes[cpalmspringshomeswi][3];
	onLoad = playpalmspringshomes();

