	// 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 timeNewSlideShowNameout = 6000;
	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('a.IDX-NewSlideShowName-ssLinkText, a.IDX-NewSlideShowName-ssLinkText:active, a.IDX-NewSlideShowName-ssLinkText:link, a.IDX-NewSlideShowName-ssLinkText:visited, a.IDX-NewSlideShowName-ssLinkText:hover { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; font-style: normal; text-decoration: none;  }');
	document.writeln('#IDX-NewSlideShowName-slideshow { text-align: center; border-width: 1px; border-style: inset; width: 450px;  }');
	document.writeln('#IDX-NewSlideShowName-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextNewSlideShowName = 1;
	prevNewSlideShowName = 25 - 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-2.idxco.com/0341932be50ab9711933ed50c1fa6d7c2654008712" ></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 >= 25)
			nextNewSlideShowName = 0;
	} // end genNext
	function genPrevNewSlideShowName()
	{
		prevNewSlideShowName = cNewSlideShowNamewi - 1;
		if (prevNewSlideShowName < 0)
			prevNewSlideShowName = 25 - 1;
	} // end genPrev

	var propertiesNewSlideShowName = new Array(25);
	propertiesNewSlideShowName[0] = new Array('249,900','10 CHESHIRE Court','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/0341932be50ab9711933ed50c1fa6d7c2654008712','4008712','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4008712&idxID=034','4','1','Outstanding spacious home on a beautiful mature cul-de-sac l...');
	propertiesNewSlideShowName[1] = new Array('247,000','216 N FILLMORE ST','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/034b88022494e230dc76f5e0d24197142614014413','4014413','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4014413&idxID=034','3','2','Talk of the town.  The style &amp; grace of yesteryear, yet ...');
	propertiesNewSlideShowName[2] = new Array('245,000','5 ASTER Court','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/034f1a1b9a4d6769db19c5b1583c10f53734009969','4009969','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4009969&idxID=034','3','2','Quiet cul-de-sac location in desirable established  neighbor...');
	propertiesNewSlideShowName[3] = new Array('240,500','564 CLOVER Drive','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/034a63d30913d818fff9ce8a457dfd80a834015782','4015782','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4015782&idxID=034','3','2','Looking for that perfect ranch home with all the extras! Thi...');
	propertiesNewSlideShowName[4] = new Array('239,900','2102 LITTLE ROUND TOP','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/03477365ad2837c29a02615d46b9dcf9f244014816','4014816','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4014816&idxID=034','4','2','GREAT HOUSE ON CORNER LOT, HAD BEEN THE BUILDER\\\\\\\'S DISPLAY...');
	propertiesNewSlideShowName[5] = new Array('239,900','211 COUNTRY CLUB VIEW','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/034ce085e994bc7f5eb1b2a7be2f83071804011329','4011329','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4011329&idxID=034','2','2','SPECTACULAR VIEW OF GOLF COURSE FROM YOUR COVERED PATIO. THI...');
	propertiesNewSlideShowName[6] = new Array('239,500','7009 REMINGTON Court','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/0341ea5d6585f7dc4059f69f3d0346081bd4010154','4010154','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4010154&idxID=034','4','3','IRRESISTIBLE ONE STORY WITH UPGRADES GALORE. VAULTED GREAT R...');
	propertiesNewSlideShowName[7] = new Array('237,500','7008 REMINGTON Court','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/034dbdd28a19ff3318f0bd2e28dcab804ea4004617','4004617','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4004617&idxID=034','3','2','Beautifully finished ranch home located on large, lushly lan...');
	propertiesNewSlideShowName[8] = new Array('235,500','42 WILLOW COURT','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/03481b4c1c6db11e7f34a9519fb9ad00a6d4013154','4013154','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4013154&idxID=034','3','2','Looking for a home that feels like new then look no further....');
	propertiesNewSlideShowName[9] = new Array('235,000','4009 SEQUOIA Drive','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/034edd271d5e253e0292e3fdb1db2c099004010131','4010131','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4010131&idxID=034','3','2','OPEN FLOOR PLAN. THE COMBINATION LIVING, DINING &amp; KITCHE...');
	propertiesNewSlideShowName[10] = new Array('232,500','15 DUNLAP Cove','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/034109fbad694e881a0032be1e4d6de03274011590','4011590','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4011590&idxID=034','4','4','This large, family friendly home has 4 bedrooms, 4 complete ...');
	propertiesNewSlideShowName[11] = new Array('230,000','2524 SPYGLASS Court','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/03456d016d02954928a8669b7e55bab9efc4000554','4000554','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4000554&idxID=034','3','2','Beautiful one-owner ranch is ready for you to call home! Thi...');
	propertiesNewSlideShowName[12] = new Array('229,900','2506 HUNTERS POINTE Boulevard','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/034a97f30c5c4c37015927073a10c52b58b4008773','4008773','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4008773&idxID=034','4','2','EXCELLENT FEATURES IN THIS HOME INCLUDE THE BEAUTIFUL HARDWO...');
	propertiesNewSlideShowName[13] = new Array('229,900','120 ANGEL OAK Court','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/0343f22dd24f1db2b2ec2a1f248c54ee42d4007135','4007135','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4007135&idxID=034','3','2','BEAUTIFULLY LANDSCAPED STORY AND A HALF ON A LARGE CUL-DE-SA...');
	propertiesNewSlideShowName[14] = new Array('229,000','1323 GERBER WOODS Drive','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/0340f273ed139d0994bf846bb12d20f7b954005482','4005482','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4005482&idxID=034','3','2','Lookin\\\\\\\' Good!  We\\\\\\\'ve installed five new light fixtures...');
	propertiesNewSlideShowName[15] = new Array('228,000','408 ALDERWOOD','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/0346534898705b915c0bdb1a247308806d84011095','4011095','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4011095&idxID=034','3','2','Gorgeous custom built home on a beautiful wooded lot. Very p...');
	propertiesNewSlideShowName[16] = new Array('227,900','100 Angel Oak','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/034cacbcebe5c1646e8b25440b9234e8c344014125','4014125','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4014125&idxID=034','3','2','This very well located 2 Story in Edwardsville features a sp...');
	propertiesNewSlideShowName[17] = new Array('227,000','3832 SEQUOIA Drive','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/0349a96c39f50a298047fe107bf19325efc4010610','4010610','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4010610&idxID=034','3','2','Move in ready ranch with Brazilian Cherry hardwood floors th...');
	propertiesNewSlideShowName[18] = new Array('225,000','2508 SPYGLASS','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/0348a6f62987b0ae72c7eb0e6a96afb48904100517','4100517','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4100517&idxID=034','3','2','Spacious 3 bedroom, 2 bath home in Country Club Manors. Open...');
	propertiesNewSlideShowName[19] = new Array('224,900','7005 STONEY CREEK Drive','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/034b5a89ede98f3ac3e919aecec49c5a5114014806','4014806','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4014806&idxID=034','3','3','LOOK AT THIS MUST SEE. EXTENSIVE CLOSET SPACE. TWO LAUNDRY A...');
	propertiesNewSlideShowName[20] = new Array('220,000','725 ST LOUIS Street','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/034cbe1ee385c2f22750bea8f31940bcb8d4010643','4010643','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4010643&idxID=034','5','2','Victorian home historically detailed with wrap around porch ...');
	propertiesNewSlideShowName[21] = new Array('219,900','1179 TAMPICO','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/034fae6553e5e3309a0bda31d591ad6eac34014420','4014420','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4014420&idxID=034','4','3','Open 1-3, Jan. 22.  All you could want.  Three-lot setting p...');
	propertiesNewSlideShowName[22] = new Array('215,000','103 SPRINGER Avenue','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/034ddb4df2a3246a9d0997aa2d46470038a4014724','4014724','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4014724&idxID=034','4','1','Turn of the century 2 story home built in 1891. Awarded Gosh...');
	propertiesNewSlideShowName[23] = new Array('211,900','4930 N STATE ROUTE 157','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/0343a9306f4397b704e4ca14ead7182a73d4002435','4002435','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4002435&idxID=034','3','1','THIS CHARMING HOME ON 2 ACRES HAS BEEN BEAUTIFULLY UPDATED A...');
	propertiesNewSlideShowName[24] = new Array('209,000','1702 Cloverdale Drive','EDWARDSVILLE, IL 62025 ','http://photos-2.idxco.com/0347b2674b08db8ef538325cbf69f9e8a1d4015786','4015786','034','http://www.goshenrealtygroup.idxco.com/idx/5164/details.php?listingID=4015786&idxID=034','3','2','Move-in ready home with many upgrades and updates. Some feat...');
	var urlVarNewSlideShowName;
	var preLoadNewSlideShowName = new Image();
	preLoadNewSlideShowName.src = propertiesNewSlideShowName[cNewSlideShowNamewi][3];
	onLoad = playNewSlideShowName();

