	// 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 timeMixedClaytonKirkwoodout = 3000;
	var cMixedClaytonKirkwoodwi = 0;
	
	// iMixedClaytonKirkwoodsf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var iMixedClaytonKirkwoodsf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swapMixedClaytonKirkwoodfade setup function
	function swapMixedClaytonKirkwoodfade()
	{
		//if the timer is not already going
		if(iMixedClaytonKirkwoodsf.clock == null)
		{
			//copy the image object 
			iMixedClaytonKirkwoodsf.obj = arguments[0];
			
			//copy the image src argument 
			iMixedClaytonKirkwoodsf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof iMixedClaytonKirkwoodsf.obj.style.opacity != 'undefined')
			{
				iMixedClaytonKirkwoodsf.type = 'w3c';
			}
			else if(typeof iMixedClaytonKirkwoodsf.obj.style.MozOpacity != 'undefined')
			{
				iMixedClaytonKirkwoodsf.type = 'moz';
			}
			else if(typeof iMixedClaytonKirkwoodsf.obj.style.KhtmlOpacity != 'undefined')
			{
				iMixedClaytonKirkwoodsf.type = 'khtml';
			}
			else if(typeof iMixedClaytonKirkwoodsf.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
				iMixedClaytonKirkwoodsf.type = (iMixedClaytonKirkwoodsf.obj.filters.length > 0 && typeof iMixedClaytonKirkwoodsf.obj.filters.alpha == 'object' && typeof iMixedClaytonKirkwoodsf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				iMixedClaytonKirkwoodsf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				iMixedClaytonKirkwoodsf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(iMixedClaytonKirkwoodsf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swapMixedClaytonKirkwoodfade is two distinct transitions
				iMixedClaytonKirkwoodsf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				iMixedClaytonKirkwoodsf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				iMixedClaytonKirkwoodsf.clock = setInterval('iMixedClaytonKirkwoodsf.swapMixedClaytonKirkwoodfade()', iMixedClaytonKirkwoodsf.length/iMixedClaytonKirkwoodsf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				iMixedClaytonKirkwoodsf.obj.src = iMixedClaytonKirkwoodsf.src;
			}
			
		}
	};
	
	
	//swapMixedClaytonKirkwoodfade timer function
	iMixedClaytonKirkwoodsf.swapMixedClaytonKirkwoodfade = function()
	{
		//increase or reduce the counter on an exponential scale
		iMixedClaytonKirkwoodsf.count = (iMixedClaytonKirkwoodsf.fade) ? iMixedClaytonKirkwoodsf.count * 0.9 : (iMixedClaytonKirkwoodsf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(iMixedClaytonKirkwoodsf.count < (1 / iMixedClaytonKirkwoodsf.resolution))
		{
			//clear the timer
			clearInterval(iMixedClaytonKirkwoodsf.clock);
			iMixedClaytonKirkwoodsf.clock = null;
	
			//do the image swap
			iMixedClaytonKirkwoodsf.obj.src = iMixedClaytonKirkwoodsf.src;
	
			//reverse the fade direction flag
			iMixedClaytonKirkwoodsf.fade = false;
			
			//restart the timer
			iMixedClaytonKirkwoodsf.clock = setInterval('iMixedClaytonKirkwoodsf.swapMixedClaytonKirkwoodfade()', iMixedClaytonKirkwoodsf.length/iMixedClaytonKirkwoodsf.resolution);
	
		}
		
		//if the counter has reached the top
		if(iMixedClaytonKirkwoodsf.count > (1 - (1 / iMixedClaytonKirkwoodsf.resolution)))
		{
			//clear the timer
			clearInterval(iMixedClaytonKirkwoodsf.clock);
			iMixedClaytonKirkwoodsf.clock = null;
	
			//reset the fade direction flag
			iMixedClaytonKirkwoodsf.fade = true;
			
			//reset the counter
			iMixedClaytonKirkwoodsf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(iMixedClaytonKirkwoodsf.type)
		{
			case 'ie' :
				iMixedClaytonKirkwoodsf.obj.filters.alpha.opacity = iMixedClaytonKirkwoodsf.count * 100;
				break;
				
			case 'khtml' :
				iMixedClaytonKirkwoodsf.obj.style.KhtmlOpacity = iMixedClaytonKirkwoodsf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iMixedClaytonKirkwoodsf.obj.style.MozOpacity = (iMixedClaytonKirkwoodsf.count == 1 ? 0.9999999 : iMixedClaytonKirkwoodsf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iMixedClaytonKirkwoodsf.obj.style.opacity = (iMixedClaytonKirkwoodsf.count == 1 ? 0.9999999 : iMixedClaytonKirkwoodsf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-MixedClaytonKirkwood-slideshow { text-align: center; width: 185px;  }');
	document.writeln('.IDX-MixedClaytonKirkwood-image { width: 185px; height: 105px;  }');
	document.writeln('#IDX-MixedClaytonKirkwood-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextMixedClaytonKirkwood = 1;
	prevMixedClaytonKirkwood = 25 - 1;

	document.writeln('<div id="IDX-MixedClaytonKirkwood-slideshow">');
	document.writeln('<div id="IDX-MixedClaytonKirkwood-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-MixedClaytonKirkwood-ssImageURL" class="IDX-MixedClaytonKirkwood-ssLinkText"><img id="IDX-MixedClaytonKirkwood-ssImage" name="MixedClaytonKirkwood-ssImage" alt="Slideshow image" border="0"  class="IDX-MixedClaytonKirkwood-image" src="http://photos-6.idxco.com/1174da90072999eb5a10df26e9a803e98ac11041704" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-MixedClaytonKirkwood-priceLine"></div>');
	document.writeln('<div id="IDX-MixedClaytonKirkwood-addressLine"></div>');
	document.writeln('<div id="IDX-MixedClaytonKirkwood-cszLine"></div>');
	document.writeln('<div id="IDX-MixedClaytonKirkwood-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-MixedClaytonKirkwood-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-MixedClaytonKirkwood-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playMixedClaytonKirkwood()
	{
		
		
		urlVarMixedClaytonKirkwood = '<a href="'+propertiesMixedClaytonKirkwood[cMixedClaytonKirkwoodwi][6]+'" class="IDX-MixedClaytonKirkwood-ssLinkText">';
		swapMixedClaytonKirkwoodfade(document.getElementById('IDX-MixedClaytonKirkwood-ssImage'), preLoadMixedClaytonKirkwood.src, '1', ' ');
		document.getElementById('IDX-MixedClaytonKirkwood-ssImageURL').href = propertiesMixedClaytonKirkwood[cMixedClaytonKirkwoodwi][6];
		document.getElementById('IDX-MixedClaytonKirkwood-priceLine').innerHTML = urlVarMixedClaytonKirkwood+'$'+propertiesMixedClaytonKirkwood[cMixedClaytonKirkwoodwi][0]+'</a>';
		document.getElementById('IDX-MixedClaytonKirkwood-addressLine').innerHTML =  urlVarMixedClaytonKirkwood+propertiesMixedClaytonKirkwood[cMixedClaytonKirkwoodwi][1]+'</a>';
		document.getElementById('IDX-MixedClaytonKirkwood-cszLine').innerHTML = urlVarMixedClaytonKirkwood+propertiesMixedClaytonKirkwood[cMixedClaytonKirkwoodwi][2]+'</a>';
		document.getElementById('IDX-MixedClaytonKirkwood-bedLine').innerHTML = urlVarMixedClaytonKirkwood+'Beds: '+propertiesMixedClaytonKirkwood[cMixedClaytonKirkwoodwi][7]+'</a>';
		document.getElementById('IDX-MixedClaytonKirkwood-bathLine').innerHTML = urlVarMixedClaytonKirkwood+'Baths: '+propertiesMixedClaytonKirkwood[cMixedClaytonKirkwoodwi][8]+'</a>';
		document.getElementById('IDX-MixedClaytonKirkwood-remarkLine').innerHTML = urlVarMixedClaytonKirkwood+propertiesMixedClaytonKirkwood[cMixedClaytonKirkwoodwi][9]+'</a>';
		
		preLoadMixedClaytonKirkwood = new Image();
		preLoadMixedClaytonKirkwood.src = propertiesMixedClaytonKirkwood[nextMixedClaytonKirkwood][3];
		
		updateMixedClaytonKirkwood();
		
		cMixedClaytonKirkwood = setTimeout('playMixedClaytonKirkwood()', timeMixedClaytonKirkwoodout);	
		
		
	} // end play()
	function updateMixedClaytonKirkwood()
	{		
		cMixedClaytonKirkwoodwi = nextMixedClaytonKirkwood;		
		genNextMixedClaytonKirkwood();
		genPrevMixedClaytonKirkwood();
		
	}
	function genNextMixedClaytonKirkwood()
	{
		nextMixedClaytonKirkwood = cMixedClaytonKirkwoodwi + 1;
		if (nextMixedClaytonKirkwood >= 25)
			nextMixedClaytonKirkwood = 0;
	} // end genNext
	function genPrevMixedClaytonKirkwood()
	{
		prevMixedClaytonKirkwood = cMixedClaytonKirkwoodwi - 1;
		if (prevMixedClaytonKirkwood < 0)
			prevMixedClaytonKirkwood = 25 - 1;
	} // end genPrev

	var propertiesMixedClaytonKirkwood = new Array(25);
	propertiesMixedClaytonKirkwood[0] = new Array('650,000','8022 Rosiline DR','Clayton, MO 63105 ','http://photos-6.idxco.com/1174da90072999eb5a10df26e9a803e98ac11041704','11041704','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=11041704&idxID=117','4','4','This fabulous Davis Place home was completely remodeled from...');
	propertiesMixedClaytonKirkwood[1] = new Array('649,900','1724 Carroll TBB','St Louis, MO 63104 ','http://photos-6.idxco.com/117c71893ab179b389d7e0e6b7dd3455cc311053722','11053722','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=11053722&idxID=117','4','4','Enjoy the maintenance-free benefits of BRAND NEW Constructio...');
	propertiesMixedClaytonKirkwood[2] = new Array('649,900','1724 Carroll TBB','St Louis, MO 63104 ','http://photos-6.idxco.com/117c71893ab179b389d7e0e6b7dd3455cc311053708','11053708','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=11053708&idxID=117','4','4','Enjoy the maintenance-free benefits of BRAND NEW Constructio...');
	propertiesMixedClaytonKirkwood[3] = new Array('649,000','325 N Meramec AVE 25','Clayton, MO 63105 ','http://photos-6.idxco.com/1173038eeeaa05087cf5197f6cbdd6f72fe11013868','11013868','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=11013868&idxID=117','3','4','*Another Price Reduction!*Fresh New Look - Paint &amp;amp; C...');
	propertiesMixedClaytonKirkwood[4] = new Array('649,000','4200 Laclede AVE 105','St Louis, MO 63108 ','http://photos-6.idxco.com/117fc5db79871df412486122d24ab0c366010031482','10031482','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=10031482&idxID=117','3','3','This incredible Central West End loft-condo is a rare find! ...');
	propertiesMixedClaytonKirkwood[5] = new Array('649,000','2594 Bluffwood','St Louis, MO 63129 ','http://photos-6.idxco.com/1177cfa31e26242adf873a17bcc468584f012001718','12001718','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=12001718&idxID=117','4','5','Peace &amp;amp; Nature-Lover&amp;#8217;s Dream*Gorgeous &amp...');
	propertiesMixedClaytonKirkwood[6] = new Array('649,000','326 N Meramec AVE','Clayton, MO 63105 ','http://photos-6.idxco.com/117a7e4c4ce0e2c2a362299ba06615817b311048561','11048561','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=11048561&idxID=117','4','5','Custom townhome in Clayton. The step-down living room, floor...');
	propertiesMixedClaytonKirkwood[7] = new Array('649,000','2405 Oak Springs LANE','Town and Country, MO 63131 ','http://photos-6.idxco.com/117366ba3e69ee5b06fb4cfcfe2575056ab11041742','11041742','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=11041742&idxID=117','4','4','OPEN HOUSE SUNDAY 1/8 FROM 2 - 4 PM. ANOTHER GENEROUS PRICE ...');
	propertiesMixedClaytonKirkwood[8] = new Array('639,000','232 N Kingshighway BLVD 1203','St Louis, MO 63108 ','http://photos-6.idxco.com/1179d9856516e6d25fa6c7d366a1ad2555811032967','11032967','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=11032967&idxID=117','2','3','Beautiful historic renovation of the Chase Park Plaza featur...');
	propertiesMixedClaytonKirkwood[9] = new Array('639,000','232 N Kingshighway BLVD 1103','St Louis, MO 63108 ','http://photos-6.idxco.com/117b0f494713dc7b2b37366cb18cf1779a690018786','90018786','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=90018786&idxID=117','2','3','Beautiful historic renovation of the Chase Park Plaza featur...');
	propertiesMixedClaytonKirkwood[10] = new Array('639,000','13546 River Forest','St Louis, MO 63128 ','http://photos-6.idxco.com/117693ab008067f2b7a7d29855ca62159f011045583','11045583','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=11045583&idxID=117','5','6','OPEN HOUSE TUESDAY, 17th 10am -2pm!! BEST BUY IN TOWN! This ...');
	propertiesMixedClaytonKirkwood[11] = new Array('625,000','440 W Madison AVE','Kirkwood, MO 63122 ','http://photos-6.idxco.com/11760d8c273e55fda0c7a6adad12b14874511056634','11056634','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=11056634&idxID=117','4','3','A beautiful renovation-expansion transformed this century ho...');
	propertiesMixedClaytonKirkwood[12] = new Array('625,000','3075 Thornbury DR','Town and Country, MO 63131 ','http://photos-6.idxco.com/117c0531b3e413cf904826a096eb18af4c611050181','11050181','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=11050181&idxID=117','6','5','Lovely 2 story family home situated on a beautiful acre plus...');
	propertiesMixedClaytonKirkwood[13] = new Array('625,000','13721 Corrington CT','Town and Country, MO 63017 ','http://photos-6.idxco.com/1178fef3250fc170541b2a74ee361e06dc311040163','11040163','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=11040163&idxID=117','4','5','Warm and inviting 4 bd 2sty on awesome acre lot in nghbrhd a...');
	propertiesMixedClaytonKirkwood[14] = new Array('625,000','330 W Madison AVE','Kirkwood, MO 63122 ','http://photos-6.idxco.com/1176085bd103e519914f807e5fdb7d165ac11025696','11025696','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=11025696&idxID=117','4','4','Built in 2001, this custom home is in a highly desirable nei...');
	propertiesMixedClaytonKirkwood[15] = new Array('624,900','10520 Sapphire Ridge CT','St Louis, MO 63128 ','http://photos-6.idxco.com/117b7f66604457f52dfcb5695286d4bc85390063317','90063317','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=90063317&idxID=117','4','4','YOUR PLAN + YOUR LOT = YOUR HOME Featured model is an approx...');
	propertiesMixedClaytonKirkwood[16] = new Array('620,000','3013 Hawthorne BLVD','St Louis, MO 63104 ','http://photos-6.idxco.com/117a525f54159ada8cfe5a76fbf38b81fa110034361','10034361','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=10034361&idxID=117','7','4','Huge price reduction!!!You&amp;apos;re going to fall in love...');
	propertiesMixedClaytonKirkwood[17] = new Array('619,000','4545 Lindell BLVD 7','St Louis, MO 63108 ','http://photos-6.idxco.com/117c0cad9d6ebb6f0b77935e13aacafdfe511000296','11000296','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=11000296&idxID=117','2','3','** Builders Close Out Sale! Tax abated until 2018! ** The la...');
	propertiesMixedClaytonKirkwood[18] = new Array('609,000','7542 Cromwell 3E','St Louis, MO 63105 ','http://photos-6.idxco.com/1170743958d15685117501ca27188a2fd0812004095','12004095','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=12004095&idxID=117','2','2','This gorgeous, updated penthouse condominium is located in o...');
	propertiesMixedClaytonKirkwood[19] = new Array('609,000','200 Brighton WAY','Clayton, MO 63105 ','http://photos-6.idxco.com/11758e35e87d0e1c8324dc8d19e62b082ff11012838','11012838','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=11012838&idxID=117','4','3','You will love this light-filled, remodeled Clayton Gardens h...');
	propertiesMixedClaytonKirkwood[20] = new Array('599,900','915 Olive ST 1605','St Louis, MO 63101 ','http://photos-6.idxco.com/117724481de1b1b29f8c24507652922567b11055457','11055457','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=11055457&idxID=117','3','3','Open Sun 1/8 @ 12-2pm! FANTASTIC TRI-LEVEL PENTHOUSE with PR...');
	propertiesMixedClaytonKirkwood[21] = new Array('599,900','622 Forest CT 2b','Clayton, MO 63105 ','http://photos-6.idxco.com/117d01a2e471bdd6bbb7b14dba6e9b3e6db11046134','11046134','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=11046134&idxID=117','2','2','New luxury condo available for immediate occupancy.Never occ...');
	propertiesMixedClaytonKirkwood[22] = new Array('599,900','622 Pine Cone CT','Town and Country, MO 63017 ','http://photos-6.idxco.com/1174b99c97c4bcebfaf9cfaf402fd18968612003918','12003918','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=12003918&idxID=117','5','4','Prestigious French Cottage in gated community with 5BR, 4BA,...');
	propertiesMixedClaytonKirkwood[23] = new Array('599,900','1064 Woodfield Estates DR','Town and Country, MO 63017 ','http://photos-6.idxco.com/1171f15aad99bd4080ae54a08e205865dd212002819','12002819','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=12002819&idxID=117','4','4','Beautiful 2 story with architectural details throughout. Lov...');
	propertiesMixedClaytonKirkwood[24] = new Array('599,900','9914 Sappington RD','St Louis, MO 63128 ','http://photos-6.idxco.com/117700d05a4f0299b1856b7c02509399e3511056739','11056739','117','http://www.websterkirkwood.idxco.com/idx/3396/details.php?listingID=11056739&idxID=117','4','5','This Must-See pottery barn style home is set back off the ro...');
	var urlVarMixedClaytonKirkwood;
	var preLoadMixedClaytonKirkwood = new Image();
	preLoadMixedClaytonKirkwood.src = propertiesMixedClaytonKirkwood[cMixedClaytonKirkwoodwi][3];
	onLoad = playMixedClaytonKirkwood();

