	// 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 timeNewSlideShowNameout = 4000;
	var cNewSlideShowNamewi = 0;
	
	// iNewSlideShowNamesf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var iNewSlideShowNamesf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swapNewSlideShowNamefade setup function
	function swapNewSlideShowNamefade()
	{
		//if the timer is not already going
		if(iNewSlideShowNamesf.clock == null)
		{
			//copy the image object 
			iNewSlideShowNamesf.obj = arguments[0];
			
			//copy the image src argument 
			iNewSlideShowNamesf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof iNewSlideShowNamesf.obj.style.opacity != 'undefined')
			{
				iNewSlideShowNamesf.type = 'w3c';
			}
			else if(typeof iNewSlideShowNamesf.obj.style.MozOpacity != 'undefined')
			{
				iNewSlideShowNamesf.type = 'moz';
			}
			else if(typeof iNewSlideShowNamesf.obj.style.KhtmlOpacity != 'undefined')
			{
				iNewSlideShowNamesf.type = 'khtml';
			}
			else if(typeof iNewSlideShowNamesf.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
				iNewSlideShowNamesf.type = (iNewSlideShowNamesf.obj.filters.length > 0 && typeof iNewSlideShowNamesf.obj.filters.alpha == 'object' && typeof iNewSlideShowNamesf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				iNewSlideShowNamesf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				iNewSlideShowNamesf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(iNewSlideShowNamesf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swapNewSlideShowNamefade is two distinct transitions
				iNewSlideShowNamesf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				iNewSlideShowNamesf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				iNewSlideShowNamesf.clock = setInterval('iNewSlideShowNamesf.swapNewSlideShowNamefade()', iNewSlideShowNamesf.length/iNewSlideShowNamesf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				iNewSlideShowNamesf.obj.src = iNewSlideShowNamesf.src;
			}
			
		}
	};
	
	
	//swapNewSlideShowNamefade timer function
	iNewSlideShowNamesf.swapNewSlideShowNamefade = function()
	{
		//increase or reduce the counter on an exponential scale
		iNewSlideShowNamesf.count = (iNewSlideShowNamesf.fade) ? iNewSlideShowNamesf.count * 0.9 : (iNewSlideShowNamesf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(iNewSlideShowNamesf.count < (1 / iNewSlideShowNamesf.resolution))
		{
			//clear the timer
			clearInterval(iNewSlideShowNamesf.clock);
			iNewSlideShowNamesf.clock = null;
	
			//do the image swap
			iNewSlideShowNamesf.obj.src = iNewSlideShowNamesf.src;
	
			//reverse the fade direction flag
			iNewSlideShowNamesf.fade = false;
			
			//restart the timer
			iNewSlideShowNamesf.clock = setInterval('iNewSlideShowNamesf.swapNewSlideShowNamefade()', iNewSlideShowNamesf.length/iNewSlideShowNamesf.resolution);
	
		}
		
		//if the counter has reached the top
		if(iNewSlideShowNamesf.count > (1 - (1 / iNewSlideShowNamesf.resolution)))
		{
			//clear the timer
			clearInterval(iNewSlideShowNamesf.clock);
			iNewSlideShowNamesf.clock = null;
	
			//reset the fade direction flag
			iNewSlideShowNamesf.fade = true;
			
			//reset the counter
			iNewSlideShowNamesf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(iNewSlideShowNamesf.type)
		{
			case 'ie' :
				iNewSlideShowNamesf.obj.filters.alpha.opacity = iNewSlideShowNamesf.count * 100;
				break;
				
			case 'khtml' :
				iNewSlideShowNamesf.obj.style.KhtmlOpacity = iNewSlideShowNamesf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iNewSlideShowNamesf.obj.style.MozOpacity = (iNewSlideShowNamesf.count == 1 ? 0.9999999 : iNewSlideShowNamesf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iNewSlideShowNamesf.obj.style.opacity = (iNewSlideShowNamesf.count == 1 ? 0.9999999 : iNewSlideShowNamesf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-NewSlideShowName-slideshow { text-align: left; width: 400px;  }');
	document.writeln('.IDX-NewSlideShowName-image { width: 320px; height: 240px;  }');
	document.writeln('#IDX-NewSlideShowName-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextNewSlideShowName = 1;
	prevNewSlideShowName = 10 - 1;

	document.writeln('<div id="IDX-NewSlideShowName-slideshow">');
	document.writeln('<div id="IDX-NewSlideShowName-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-NewSlideShowName-ssImageURL" class="IDX-NewSlideShowName-ssLinkText"><img id="IDX-NewSlideShowName-ssImage" name="NewSlideShowName-ssImage" alt="Slideshow image" border="0"  class="IDX-NewSlideShowName-image" src="http://photos-10.idxco.com/190210f1e51607905ee5cb09ffd38f9ff27361871" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-NewSlideShowName-priceLine"></div>');
	document.writeln('<div id="IDX-NewSlideShowName-addressLine"></div>');
	document.writeln('<div id="IDX-NewSlideShowName-cszLine"></div>');
	document.writeln('<div id="IDX-NewSlideShowName-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-NewSlideShowName-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-NewSlideShowName-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playNewSlideShowName()
	{
		
		
		urlVarNewSlideShowName = '<a href="'+propertiesNewSlideShowName[cNewSlideShowNamewi][6]+'" class="IDX-NewSlideShowName-ssLinkText">';
		swapNewSlideShowNamefade(document.getElementById('IDX-NewSlideShowName-ssImage'), preLoadNewSlideShowName.src, '1', ' ');
		document.getElementById('IDX-NewSlideShowName-ssImageURL').href = propertiesNewSlideShowName[cNewSlideShowNamewi][6];
		document.getElementById('IDX-NewSlideShowName-priceLine').innerHTML = urlVarNewSlideShowName+'$'+propertiesNewSlideShowName[cNewSlideShowNamewi][0]+'</a>';
		document.getElementById('IDX-NewSlideShowName-addressLine').innerHTML =  urlVarNewSlideShowName+propertiesNewSlideShowName[cNewSlideShowNamewi][1]+'</a>';
		document.getElementById('IDX-NewSlideShowName-cszLine').innerHTML = urlVarNewSlideShowName+propertiesNewSlideShowName[cNewSlideShowNamewi][2]+'</a>';
		document.getElementById('IDX-NewSlideShowName-bedLine').innerHTML = urlVarNewSlideShowName+'Beds: '+propertiesNewSlideShowName[cNewSlideShowNamewi][7]+'</a>';
		document.getElementById('IDX-NewSlideShowName-bathLine').innerHTML = urlVarNewSlideShowName+'Baths: '+propertiesNewSlideShowName[cNewSlideShowNamewi][8]+'</a>';
		document.getElementById('IDX-NewSlideShowName-remarkLine').innerHTML = urlVarNewSlideShowName+propertiesNewSlideShowName[cNewSlideShowNamewi][9]+'</a>';
		
		preLoadNewSlideShowName = new Image();
		preLoadNewSlideShowName.src = propertiesNewSlideShowName[nextNewSlideShowName][3];
		
		updateNewSlideShowName();
		
		cNewSlideShowName = setTimeout('playNewSlideShowName()', timeNewSlideShowNameout);	
		
		
	} // end play()
	function updateNewSlideShowName()
	{		
		cNewSlideShowNamewi = nextNewSlideShowName;		
		genNextNewSlideShowName();
		genPrevNewSlideShowName();
		
	}
	function genNextNewSlideShowName()
	{
		nextNewSlideShowName = cNewSlideShowNamewi + 1;
		if (nextNewSlideShowName >= 10)
			nextNewSlideShowName = 0;
	} // end genNext
	function genPrevNewSlideShowName()
	{
		prevNewSlideShowName = cNewSlideShowNamewi - 1;
		if (prevNewSlideShowName < 0)
			prevNewSlideShowName = 10 - 1;
	} // end genPrev

	var propertiesNewSlideShowName = new Array(10);
	propertiesNewSlideShowName[0] = 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...');
	propertiesNewSlideShowName[1] = new Array('299,000','140 NE GRACEWOOD DR','WAUKEE, IA 50263 ','http://photos-10.idxco.com/1901f9fe7e97e25cac00ce9723c793b967f371550','371550','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=371550&idxID=190','3','3','Craftsmanship shows in this exceptional 2 story home,with wa...');
	propertiesNewSlideShowName[2] = new Array('290,000','540 SPYGLASS CT','WAUKEE, IA 50263 ','http://photos-10.idxco.com/1903ee55067bf37f6baff5dc414ff5e32b5373079','373079','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=373079&idxID=190','3','2','This is an awesome house! Walk in the front door and you are...');
	propertiesNewSlideShowName[3] = new Array('289,900','230 AIDAN ST','WAUKEE, IA 50263 ','http://photos-10.idxco.com/190b1843f0154afbe6fad0949f5b934441d370115','370115','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=370115&idxID=190','4','3','Stunning walk out in conservation community featuring a para...');
	propertiesNewSlideShowName[4] = new Array('289,900','110 AIDAN ST','WAUKEE, IA 50263 ','http://photos-10.idxco.com/190bdd0a603b908fa07085b9df7723c8697368295','368295','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=368295&idxID=190','5','3','Turn-key 5 bedroom walkout ranch w/warm vanilla trim through...');
	propertiesNewSlideShowName[5] = new Array('289,900','655 SE WACO PL','WAUKEE, IA 50263 ','http://photos-10.idxco.com/190f98b18f05e59582c90eb6b8d1189e0ba368220','368220','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=368220&idxID=190','5','3','Terrific 5 bedroom, 3 full bath ranch home on large daylight...');
	propertiesNewSlideShowName[6] = new Array('284,900','355 SE HOLIDAY CREST CIR','WAUKEE, IA 50263 ','http://photos-10.idxco.com/190a3a01e0d473d11aff0794579b5bf0161372621','372621','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=372621&idxID=190','2','3','Townhome living at its finest!  Over 2700 sq. ft. of finish ...');
	propertiesNewSlideShowName[7] = new Array('280,000','1025 SE MAPLELEAF LN','WAUKEE, IA 50263 ','http://photos-10.idxco.com/1903addcb47a5917ea02c888039e139d9f8372200','372200','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=372200&idxID=190','3','3','Stunning 3 bedroom Ranch home with 2600+ sqft of finish in v...');
	propertiesNewSlideShowName[8] = new Array('279,900','32087 SKYRIDGE DR','WAUKEE, IA 50263 ','http://photos-10.idxco.com/190e77602282ad15335afe0adc5062b1d99365104','365104','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=365104&idxID=190','4','3','A rare find acreage close to the city! Great Waukee location...');
	propertiesNewSlideShowName[9] = new Array('279,900','590 SE LEGACY POINTE BLVD','WAUKEE, IA 50263 ','http://photos-10.idxco.com/1906c8c5aa577ed1854e7f69446a67c1a1b372050','372050','190','http://idx.kevinhowe.com/idx/4772/details.php?listingID=372050&idxID=190','4','3','Stylish Builder\\\\\\\'s Personal Home, 4BR ranch in prime locat...');
	var urlVarNewSlideShowName;
	var preLoadNewSlideShowName = new Image();
	preLoadNewSlideShowName.src = propertiesNewSlideShowName[cNewSlideShowNamewi][3];
	onLoad = playNewSlideShowName();
