	// 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 timeslideshow1out = 6000;
	var cslideshow1wi = 0;
	
	// islideshow1sf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var islideshow1sf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swapslideshow1fade setup function
	function swapslideshow1fade()
	{
		//if the timer is not already going
		if(islideshow1sf.clock == null)
		{
			//copy the image object 
			islideshow1sf.obj = arguments[0];
			
			//copy the image src argument 
			islideshow1sf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof islideshow1sf.obj.style.opacity != 'undefined')
			{
				islideshow1sf.type = 'w3c';
			}
			else if(typeof islideshow1sf.obj.style.MozOpacity != 'undefined')
			{
				islideshow1sf.type = 'moz';
			}
			else if(typeof islideshow1sf.obj.style.KhtmlOpacity != 'undefined')
			{
				islideshow1sf.type = 'khtml';
			}
			else if(typeof islideshow1sf.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
				islideshow1sf.type = (islideshow1sf.obj.filters.length > 0 && typeof islideshow1sf.obj.filters.alpha == 'object' && typeof islideshow1sf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				islideshow1sf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				islideshow1sf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(islideshow1sf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swapslideshow1fade is two distinct transitions
				islideshow1sf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				islideshow1sf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				islideshow1sf.clock = setInterval('islideshow1sf.swapslideshow1fade()', islideshow1sf.length/islideshow1sf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				islideshow1sf.obj.src = islideshow1sf.src;
			}
			
		}
	};
	
	
	//swapslideshow1fade timer function
	islideshow1sf.swapslideshow1fade = function()
	{
		//increase or reduce the counter on an exponential scale
		islideshow1sf.count = (islideshow1sf.fade) ? islideshow1sf.count * 0.9 : (islideshow1sf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(islideshow1sf.count < (1 / islideshow1sf.resolution))
		{
			//clear the timer
			clearInterval(islideshow1sf.clock);
			islideshow1sf.clock = null;
	
			//do the image swap
			islideshow1sf.obj.src = islideshow1sf.src;
	
			//reverse the fade direction flag
			islideshow1sf.fade = false;
			
			//restart the timer
			islideshow1sf.clock = setInterval('islideshow1sf.swapslideshow1fade()', islideshow1sf.length/islideshow1sf.resolution);
	
		}
		
		//if the counter has reached the top
		if(islideshow1sf.count > (1 - (1 / islideshow1sf.resolution)))
		{
			//clear the timer
			clearInterval(islideshow1sf.clock);
			islideshow1sf.clock = null;
	
			//reset the fade direction flag
			islideshow1sf.fade = true;
			
			//reset the counter
			islideshow1sf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(islideshow1sf.type)
		{
			case 'ie' :
				islideshow1sf.obj.filters.alpha.opacity = islideshow1sf.count * 100;
				break;
				
			case 'khtml' :
				islideshow1sf.obj.style.KhtmlOpacity = islideshow1sf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				islideshow1sf.obj.style.MozOpacity = (islideshow1sf.count == 1 ? 0.9999999 : islideshow1sf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				islideshow1sf.obj.style.opacity = (islideshow1sf.count == 1 ? 0.9999999 : islideshow1sf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('a.IDX-slideshow1-ssLinkText, a.IDX-slideshow1-ssLinkText:active, a.IDX-slideshow1-ssLinkText:link, a.IDX-slideshow1-ssLinkText:visited, a.IDX-slideshow1-ssLinkText:hover { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; font-style: normal; color: ##000000;  }');
	document.writeln('#IDX-slideshow1-slideshow { text-align: center; width: 150px;  }');
	document.writeln('.IDX-slideshow1-image { width: 150px; height: 113px;  }');
	document.writeln('#IDX-slideshow1-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextslideshow1 = 1;
	prevslideshow1 = 1 - 1;

	document.writeln('<div id="IDX-slideshow1-slideshow">');
	document.writeln('<div id="IDX-slideshow1-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-slideshow1-ssImageURL" class="IDX-slideshow1-ssLinkText"><img id="IDX-slideshow1-ssImage" name="slideshow1-ssImage" alt="Slideshow image" border="0"  class="IDX-slideshow1-image" src="http://photos-4.idxco.com/063d4a99c207a0ef22109a81c0c4ca456a73938449" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-slideshow1-priceLine"></div>');
	document.writeln('<div id="IDX-slideshow1-addressLine"></div>');
	document.writeln('<div id="IDX-slideshow1-cszLine"></div>');
	document.writeln('<div id="IDX-slideshow1-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-slideshow1-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-slideshow1-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playslideshow1()
	{
		
		
		urlVarslideshow1 = '<a href="'+propertiesslideshow1[cslideshow1wi][6]+'" class="IDX-slideshow1-ssLinkText">';
		swapslideshow1fade(document.getElementById('IDX-slideshow1-ssImage'), preLoadslideshow1.src, '1', ' ');
		document.getElementById('IDX-slideshow1-ssImageURL').href = propertiesslideshow1[cslideshow1wi][6];
		document.getElementById('IDX-slideshow1-priceLine').innerHTML = urlVarslideshow1+'$'+propertiesslideshow1[cslideshow1wi][0]+'</a>';
		document.getElementById('IDX-slideshow1-addressLine').innerHTML =  urlVarslideshow1+propertiesslideshow1[cslideshow1wi][1]+'</a>';
		document.getElementById('IDX-slideshow1-cszLine').innerHTML = urlVarslideshow1+propertiesslideshow1[cslideshow1wi][2]+'</a>';
		document.getElementById('IDX-slideshow1-bedLine').innerHTML = urlVarslideshow1+'Beds: '+propertiesslideshow1[cslideshow1wi][7]+'</a>';
		document.getElementById('IDX-slideshow1-bathLine').innerHTML = urlVarslideshow1+'Baths: '+propertiesslideshow1[cslideshow1wi][8]+'</a>';
		document.getElementById('IDX-slideshow1-remarkLine').innerHTML = urlVarslideshow1+propertiesslideshow1[cslideshow1wi][9]+'</a>';
		
		preLoadslideshow1 = new Image();
		preLoadslideshow1.src = propertiesslideshow1[nextslideshow1][3];
		
		updateslideshow1();
		
		cslideshow1 = setTimeout('playslideshow1()', timeslideshow1out);	
		
		
	} // end play()
	function updateslideshow1()
	{		
		cslideshow1wi = nextslideshow1;		
		genNextslideshow1();
		genPrevslideshow1();
		
	}
	function genNextslideshow1()
	{
		nextslideshow1 = cslideshow1wi + 1;
		if (nextslideshow1 >= 1)
			nextslideshow1 = 0;
	} // end genNext
	function genPrevslideshow1()
	{
		prevslideshow1 = cslideshow1wi - 1;
		if (prevslideshow1 < 0)
			prevslideshow1 = 1 - 1;
	} // end genPrev

	var propertiesslideshow1 = new Array(1);
	propertiesslideshow1[0] = new Array('495,000','31429 Lakeview Avenue','Red Wing, MN 55066 ','http://photos-4.idxco.com/063d4a99c207a0ef22109a81c0c4ca456a73938449','3938449','063','http://www.nyboandassociates.idxco.com/idx/5697/details.php?listingID=3938449&idxID=063','1','1','Enjoy the breathtaking view of The Mississippi River\\\\\\\'s La...');
	var urlVarslideshow1;
	var preLoadslideshow1 = new Image();
	preLoadslideshow1.src = propertiesslideshow1[cslideshow1wi][3];
	onLoad = playslideshow1();

