	// 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 timeIRFeaturedout = 4000;
	var cIRFeaturedwi = 0;
	
	// iIRFeaturedsf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var iIRFeaturedsf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swapIRFeaturedfade setup function
	function swapIRFeaturedfade()
	{
		//if the timer is not already going
		if(iIRFeaturedsf.clock == null)
		{
			//copy the image object 
			iIRFeaturedsf.obj = arguments[0];
			
			//copy the image src argument 
			iIRFeaturedsf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof iIRFeaturedsf.obj.style.opacity != 'undefined')
			{
				iIRFeaturedsf.type = 'w3c';
			}
			else if(typeof iIRFeaturedsf.obj.style.MozOpacity != 'undefined')
			{
				iIRFeaturedsf.type = 'moz';
			}
			else if(typeof iIRFeaturedsf.obj.style.KhtmlOpacity != 'undefined')
			{
				iIRFeaturedsf.type = 'khtml';
			}
			else if(typeof iIRFeaturedsf.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
				iIRFeaturedsf.type = (iIRFeaturedsf.obj.filters.length > 0 && typeof iIRFeaturedsf.obj.filters.alpha == 'object' && typeof iIRFeaturedsf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				iIRFeaturedsf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				iIRFeaturedsf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(iIRFeaturedsf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swapIRFeaturedfade is two distinct transitions
				iIRFeaturedsf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				iIRFeaturedsf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				iIRFeaturedsf.clock = setInterval('iIRFeaturedsf.swapIRFeaturedfade()', iIRFeaturedsf.length/iIRFeaturedsf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				iIRFeaturedsf.obj.src = iIRFeaturedsf.src;
			}
			
		}
	};
	
	
	//swapIRFeaturedfade timer function
	iIRFeaturedsf.swapIRFeaturedfade = function()
	{
		//increase or reduce the counter on an exponential scale
		iIRFeaturedsf.count = (iIRFeaturedsf.fade) ? iIRFeaturedsf.count * 0.9 : (iIRFeaturedsf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(iIRFeaturedsf.count < (1 / iIRFeaturedsf.resolution))
		{
			//clear the timer
			clearInterval(iIRFeaturedsf.clock);
			iIRFeaturedsf.clock = null;
	
			//do the image swap
			iIRFeaturedsf.obj.src = iIRFeaturedsf.src;
	
			//reverse the fade direction flag
			iIRFeaturedsf.fade = false;
			
			//restart the timer
			iIRFeaturedsf.clock = setInterval('iIRFeaturedsf.swapIRFeaturedfade()', iIRFeaturedsf.length/iIRFeaturedsf.resolution);
	
		}
		
		//if the counter has reached the top
		if(iIRFeaturedsf.count > (1 - (1 / iIRFeaturedsf.resolution)))
		{
			//clear the timer
			clearInterval(iIRFeaturedsf.clock);
			iIRFeaturedsf.clock = null;
	
			//reset the fade direction flag
			iIRFeaturedsf.fade = true;
			
			//reset the counter
			iIRFeaturedsf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(iIRFeaturedsf.type)
		{
			case 'ie' :
				iIRFeaturedsf.obj.filters.alpha.opacity = iIRFeaturedsf.count * 100;
				break;
				
			case 'khtml' :
				iIRFeaturedsf.obj.style.KhtmlOpacity = iIRFeaturedsf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iIRFeaturedsf.obj.style.MozOpacity = (iIRFeaturedsf.count == 1 ? 0.9999999 : iIRFeaturedsf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iIRFeaturedsf.obj.style.opacity = (iIRFeaturedsf.count == 1 ? 0.9999999 : iIRFeaturedsf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-IRFeatured-slideshow { text-align: center;  }');
	document.writeln('.IDX-IRFeatured-image { width: 480px; height: 370px;  }');
	document.writeln('#IDX-IRFeatured-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextIRFeatured = 1;
	prevIRFeatured = 25 - 1;

	document.writeln('<div id="IDX-IRFeatured-slideshow">');
	document.writeln('<div id="IDX-IRFeatured-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-IRFeatured-ssImageURL" class="IDX-IRFeatured-ssLinkText"><img id="IDX-IRFeatured-ssImage" name="IRFeatured-ssImage" alt="Slideshow image" border="0"  class="IDX-IRFeatured-image" src="http://photos-10.idxco.com/190f0f3fefaae6e3a0f5c0f561f9404fc40368851" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-IRFeatured-priceLine"></div>');
	document.writeln('<div id="IDX-IRFeatured-addressLine"></div>');
	document.writeln('<div id="IDX-IRFeatured-cszLine"></div>');
	document.writeln('<div id="IDX-IRFeatured-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-IRFeatured-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-IRFeatured-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playIRFeatured()
	{
		
		
		urlVarIRFeatured = '<a href="'+propertiesIRFeatured[cIRFeaturedwi][6]+'" class="IDX-IRFeatured-ssLinkText">';
		swapIRFeaturedfade(document.getElementById('IDX-IRFeatured-ssImage'), preLoadIRFeatured.src, '1', ' ');
		document.getElementById('IDX-IRFeatured-ssImageURL').href = propertiesIRFeatured[cIRFeaturedwi][6];
		document.getElementById('IDX-IRFeatured-priceLine').innerHTML = urlVarIRFeatured+'$'+propertiesIRFeatured[cIRFeaturedwi][0]+'</a>';
		document.getElementById('IDX-IRFeatured-addressLine').innerHTML =  urlVarIRFeatured+propertiesIRFeatured[cIRFeaturedwi][1]+'</a>';
		document.getElementById('IDX-IRFeatured-cszLine').innerHTML = urlVarIRFeatured+propertiesIRFeatured[cIRFeaturedwi][2]+'</a>';
		document.getElementById('IDX-IRFeatured-bedLine').innerHTML = urlVarIRFeatured+'Beds: '+propertiesIRFeatured[cIRFeaturedwi][7]+'</a>';
		document.getElementById('IDX-IRFeatured-bathLine').innerHTML = urlVarIRFeatured+'Baths: '+propertiesIRFeatured[cIRFeaturedwi][8]+'</a>';
		document.getElementById('IDX-IRFeatured-remarkLine').innerHTML = urlVarIRFeatured+propertiesIRFeatured[cIRFeaturedwi][9]+'</a>';
		
		preLoadIRFeatured = new Image();
		preLoadIRFeatured.src = propertiesIRFeatured[nextIRFeatured][3];
		
		updateIRFeatured();
		
		cIRFeatured = setTimeout('playIRFeatured()', timeIRFeaturedout);	
		
		
	} // end play()
	function updateIRFeatured()
	{		
		cIRFeaturedwi = nextIRFeatured;		
		genNextIRFeatured();
		genPrevIRFeatured();
		
	}
	function genNextIRFeatured()
	{
		nextIRFeatured = cIRFeaturedwi + 1;
		if (nextIRFeatured >= 25)
			nextIRFeatured = 0;
	} // end genNext
	function genPrevIRFeatured()
	{
		prevIRFeatured = cIRFeaturedwi - 1;
		if (prevIRFeatured < 0)
			prevIRFeatured = 25 - 1;
	} // end genPrev

	var propertiesIRFeatured = new Array(25);
	propertiesIRFeatured[0] = new Array('300,000','8508 NEWBURY CT','JOHNSTON, IA 50131 ','http://photos-10.idxco.com/190f0f3fefaae6e3a0f5c0f561f9404fc40368851','368851','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=368851&idxID=190','4','5','Builder\\\\\\\'s own home. Beautiful ranch home with over sized ...');
	propertiesIRFeatured[1] = new Array('300,000','2939 SIOUX  CT','DES MOINES, IA 50321 ','http://photos-10.idxco.com/19061df96435b896e892988fd938508fd71371430','371430','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=371430&idxID=190','3','3','Must see this stunning like New townhome in exclusive Southe...');
	propertiesIRFeatured[2] = new Array('300,000','480 BLUESTEM CIR','WEST DES MOINES, IA 50266 ','http://photos-10.idxco.com/19031cf435776426cdd58b1aa6b81070cb3370858','370858','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=370858&idxID=190','2','3','Entertain under the stars, bask in the sun, watch the sunris...');
	propertiesIRFeatured[3] = new Array('300,000','6000 STONEPOINTE CT','JOHNSTON, IA 50131 ','http://photos-10.idxco.com/19071d88c484bdb4a283900aa6aa59a0f1b360976','360976','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=360976&idxID=190','3','3','central vacuum...');
	propertiesIRFeatured[4] = new Array('300,000','13596 VILLAGE CT','CLIVE, IA 50325 ','http://photos-10.idxco.com/19094c2fff5e2156701b1d9573c4ae0294d356601','356601','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=356601&idxID=190','2','3','One Owner Ranch Townhome in Country Club which has never had...');
	propertiesIRFeatured[5] = new Array('300,000','4704 94TH ST','URBANDALE, IA 50322 ','http://photos-10.idxco.com/19032dc257aa77ff9d691fd9eebcde8a0e3372616','372616','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=372616&idxID=190','5','4','Wow! Just wait until you get inside!! Much better than new! ...');
	propertiesIRFeatured[6] = new Array('299,900','16625 OAKBROOK DR','CLIVE, IA 50325 ','http://photos-10.idxco.com/190f65f2cdb45298529e6fc4972b02e8737369132','369132','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=369132&idxID=190','4','3','beautiful family home by Sunflower Development.  Come see wh...');
	propertiesIRFeatured[7] = new Array('299,900','100 S 32ND ST','WEST DES MOINES, IA 50265 ','http://photos-10.idxco.com/1905ffd99064d534c51f1ca5cbf9154e59e369735','369735','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=369735&idxID=190','4','4','Great price for executive ranch home in desirable Jordan Gro...');
	propertiesIRFeatured[8] = new Array('299,900','15908 MONROE CT','URBANDALE, IA 50323 ','http://photos-10.idxco.com/1907e8cbb444d9d3d5cbab82e5ad66b4a69370392','370392','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=370392&idxID=190','4','3','Open plan, four bedroom, trees back, daylite windows in lowe...');
	propertiesIRFeatured[9] = new Array('299,900','3131 FLEUR DR','DES MOINES, IA 50321 ','http://photos-10.idxco.com/19067194605f756eac42988949d54f87651369196','369196','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=369196&idxID=190','3','3','The most elegant and affordable condos in Des Moines on 4 ac...');
	propertiesIRFeatured[10] = new Array('299,900','3300 SW 33RD ST','DES MOINES, IA 50321 ','http://photos-10.idxco.com/190887e87a4fb7ee6fa5c3a03e69b9546d2370911','370911','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=370911&idxID=190','4','3','Beautiful 4 br, 3 ba, walk out ranch with mature trees. With...');
	propertiesIRFeatured[11] = new Array('299,900','13921 HAWTHORN DR','CLIVE, IA 50325 ','http://photos-10.idxco.com/1900b2d78d13c21f5e2f6ec926422b20db9371095','371095','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=371095&idxID=190','3','3','Custom built home by Denny Pigneri - one owner, well cared f...');
	propertiesIRFeatured[12] = new Array('299,900','813 57TH ST','WEST DES MOINES, IA 50266 ','http://photos-10.idxco.com/1905110762f43e687f4e40415be2b87437e371472','371472','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=371472&idxID=190','4','5','4 bedroom, 4 bath, 2 story in wooded West Des Moines locatio...');
	propertiesIRFeatured[13] = new Array('299,900','120 56TH ST','WEST DES MOINES, IA 50266 ','http://photos-10.idxco.com/190432ce56054f90d932a52fe6876cf0406372567','372567','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=372567&idxID=190','4','4','Location, Location, Location!  Picture perfect home with 9\\\\...');
	propertiesIRFeatured[14] = new Array('299,900','201 GRAND AVE','DES MOINES, IA 50309 ','http://photos-10.idxco.com/1903bbf22e59c608bf180259e48cf4c1da5349998','349998','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=349998&idxID=190','2','4','A downtown community with integrity.  Fantastic Brownstones ...');
	propertiesIRFeatured[15] = new Array('299,900','3316 SOUTHERN HILLS DR','DES MOINES, IA 50321 ','http://photos-10.idxco.com/190c4c227bb6a1a8f35e7efd367b14071bc367834','367834','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=367834&idxID=190','4','3','Beautiful 2 story home w/circle drive, 2 car attached garage...');
	propertiesIRFeatured[16] = new Array('299,900','201 GRAND AVE','DES MOINES, IA 50309 ','http://photos-10.idxco.com/1908b19e0646b61883c60c1b0e456eaf6a8350000','350000','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=350000&idxID=190','2','4','A downtown community with integrity. Fantastic Brownstones i...');
	propertiesIRFeatured[17] = new Array('299,900','12841 SUNSET TERRACE','CLIVE, IA 50325 ','http://photos-10.idxco.com/19065f01e09ca2585c48686a083d74e1a9e361532','361532','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=361532&idxID=190','4','3','Four bedroom two story with over 3800 square feet of finish ...');
	propertiesIRFeatured[18] = new Array('299,900','34998 360TH ST','WAUKEE, IA 50263 ','http://photos-10.idxco.com/190210f1e51607905ee5cb09ffd38f9ff27361871','361871','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=361871&idxID=190','4','4','6.26 acres w/awesome views from huge deck and peace &amp; qu...');
	propertiesIRFeatured[19] = new Array('299,900','800 59TH ST','WEST DES MOINES, IA 50266 ','http://photos-10.idxco.com/19053e020dab97c6aed35de14aa68147782363578','363578','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=363578&idxID=190','4','3','Private cul-de-sac setting for this spacious walk-out ranch....');
	propertiesIRFeatured[20] = new Array('299,900','14168 PINNACLE POINTE DR','CLIVE, IA 50325 ','http://photos-10.idxco.com/190ccb969ad4162ffba3eb1354054b76d63364591','364591','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=364591&idxID=190','4','4','New Price. Priced to sell. Fantastic townhome loaded w/upgra...');
	propertiesIRFeatured[21] = new Array('299,900','5105 SE 27TH STREET','DES MOINES, IA 50320 ','http://photos-10.idxco.com/190383cc7566c28baaa0ccab6996212f2dd365356','365356','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=365356&idxID=190','4','3','Easter Lake ranch, 4 bedrooms, 3 baths built by homebuilder ...');
	propertiesIRFeatured[22] = new Array('299,900','324 S 83TH ST','WEST DES MOINES, IA 50266 ','http://photos-10.idxco.com/1909f498737befa1e9bb8baf79ed4cc4861365718','365718','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=365718&idxID=190','4','3','Four BR, 3-car garage, mudroom, granite tops, baths and kitc...');
	propertiesIRFeatured[23] = new Array('299,900','2515 COUNTRY SIDE PL','WEST DES MOINES, IA 50265 ','http://photos-10.idxco.com/1904a5018423f904a6a987b1fe22368d93a366191','366191','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=366191&idxID=190','4','5','13,800 belowed assessed value!One of a kind home located on ...');
	propertiesIRFeatured[24] = new Array('299,900','12621 HAMMONTREE CIR','URBANDALE, IA 50323 ','http://photos-10.idxco.com/1900a0138c4db2860884657c30c4eeb7c48366646','366646','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=366646&idxID=190','3','2','Custom built ranch. Natural woodwork &amp; hardwood floors t...');
	var urlVarIRFeatured;
	var preLoadIRFeatured = new Image();
	preLoadIRFeatured.src = propertiesIRFeatured[cIRFeaturedwi][3];
	onLoad = playIRFeatured();
