	// IDX Broker Slideshow version 2.0
	// Copyright ©2009 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 timeREOout = 5000;
	var cREOwi = 0;
	
	// iREOsf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var iREOsf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swapREOfade setup function
	function swapREOfade()
	{
		//if the timer is not already going
		if(iREOsf.clock == null)
		{
			//copy the image object 
			iREOsf.obj = arguments[0];
			
			//copy the image src argument 
			iREOsf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof iREOsf.obj.style.opacity != 'undefined')
			{
				iREOsf.type = 'w3c';
			}
			else if(typeof iREOsf.obj.style.MozOpacity != 'undefined')
			{
				iREOsf.type = 'moz';
			}
			else if(typeof iREOsf.obj.style.KhtmlOpacity != 'undefined')
			{
				iREOsf.type = 'khtml';
			}
			else if(typeof iREOsf.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
				iREOsf.type = (iREOsf.obj.filters.length > 0 && typeof iREOsf.obj.filters.alpha == 'object' && typeof iREOsf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				iREOsf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				iREOsf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(iREOsf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swapREOfade is two distinct transitions
				iREOsf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				iREOsf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				iREOsf.clock = setInterval('iREOsf.swapREOfade()', iREOsf.length/iREOsf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				iREOsf.obj.src = iREOsf.src;
			}
			
		}
	};
	
	
	//swapREOfade timer function
	iREOsf.swapREOfade = function()
	{
		//increase or reduce the counter on an exponential scale
		iREOsf.count = (iREOsf.fade) ? iREOsf.count * 0.9 : (iREOsf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(iREOsf.count < (1 / iREOsf.resolution))
		{
			//clear the timer
			clearInterval(iREOsf.clock);
			iREOsf.clock = null;
	
			//do the image swap
			iREOsf.obj.src = iREOsf.src;
	
			//reverse the fade direction flag
			iREOsf.fade = false;
			
			//restart the timer
			iREOsf.clock = setInterval('iREOsf.swapREOfade()', iREOsf.length/iREOsf.resolution);
	
		}
		
		//if the counter has reached the top
		if(iREOsf.count > (1 - (1 / iREOsf.resolution)))
		{
			//clear the timer
			clearInterval(iREOsf.clock);
			iREOsf.clock = null;
	
			//reset the fade direction flag
			iREOsf.fade = true;
			
			//reset the counter
			iREOsf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(iREOsf.type)
		{
			case 'ie' :
				iREOsf.obj.filters.alpha.opacity = iREOsf.count * 100;
				break;
				
			case 'khtml' :
				iREOsf.obj.style.KhtmlOpacity = iREOsf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iREOsf.obj.style.MozOpacity = (iREOsf.count == 1 ? 0.9999999 : iREOsf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iREOsf.obj.style.opacity = (iREOsf.count == 1 ? 0.9999999 : iREOsf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('a.IDX-REO-ssLinkText, a.IDX-REO-ssLinkText:active, a.IDX-REO-ssLinkText:link, a.IDX-REO-ssLinkText:visited, a.IDX-REO-ssLinkText:hover { font-family: \"Courier New\", Courier, monospace; font-size: 12px; font-weight: bolder; font-style: italic; text-decoration: none; color: #601721;  }');
	document.writeln('#IDX-REO-slideshow { text-align: center; width: 250px;  }');
	document.writeln('.IDX-REO-image { width: 200px; height: 200px;  }');
	document.writeln('#IDX-REO-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextREO = 1;
	prevREO = 10 - 1;

	document.writeln('<div id="IDX-REO-slideshow">');
	document.writeln('<div id="IDX-REO-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-REO-ssImageURL" class="IDX-REO-ssLinkText"><img id="IDX-REO-ssImage" name="REO-ssImage" alt="Slideshow image" border="0"  class="IDX-REO-image" src="http://photos-10.idxco.com/1948f8d8a3fd7ac71d7efa6bfa37e19eea2O4943061" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-REO-priceLine"></div>');
	document.writeln('<div id="IDX-REO-addressLine"></div>');
	document.writeln('<div id="IDX-REO-cszLine"></div>');
	document.writeln('<div id="IDX-REO-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-REO-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-REO-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playREO()
	{
		
		
		urlVarREO = '<a href="'+propertiesREO[cREOwi][6]+'" class="IDX-REO-ssLinkText">';
		swapREOfade(document.getElementById('IDX-REO-ssImage'), preLoadREO.src, '1', ' ');
		document.getElementById('IDX-REO-ssImageURL').href = propertiesREO[cREOwi][6];
		document.getElementById('IDX-REO-priceLine').innerHTML = urlVarREO+'$'+propertiesREO[cREOwi][0]+'</a>';
		document.getElementById('IDX-REO-addressLine').innerHTML =  urlVarREO+propertiesREO[cREOwi][1]+'</a>';
		document.getElementById('IDX-REO-cszLine').innerHTML = urlVarREO+propertiesREO[cREOwi][2]+'</a>';
		document.getElementById('IDX-REO-bedLine').innerHTML = urlVarREO+'Beds: '+propertiesREO[cREOwi][7]+'</a>';
		document.getElementById('IDX-REO-bathLine').innerHTML = urlVarREO+'Baths: '+propertiesREO[cREOwi][8]+'</a>';
		document.getElementById('IDX-REO-remarkLine').innerHTML = urlVarREO+propertiesREO[cREOwi][9]+'</a>';
		
		preLoadREO = new Image();
		preLoadREO.src = propertiesREO[nextREO][3];
		
		updateREO();
		
		cREO = setTimeout('playREO()', timeREOout);	
		
		
	} // end play()
	function updateREO()
	{		
		cREOwi = nextREO;		
		genNextREO();
		genPrevREO();
		
	}
	function genNextREO()
	{
		nextREO = cREOwi + 1;
		if (nextREO >= 10)
			nextREO = 0;
	} // end genNext
	function genPrevREO()
	{
		prevREO = cREOwi - 1;
		if (prevREO < 0)
			prevREO = 10 - 1;
	} // end genPrev

	var propertiesREO = new Array(10);
	propertiesREO[0] = new Array('420,255','1280 S PENNSYLVANIA AVE','WINTER PARK, FL 32789 ','http://photos-10.idxco.com/1948f8d8a3fd7ac71d7efa6bfa37e19eea2O4943061','O4943061','194','http://www.greaterorlandohomes.idxco.com/idx/4348/details.php?listingID=O4943061&idxID=194','3','2','Majestic, Unique and Impressive. One of Winter Park\\\\\\\'s fin...');
	propertiesREO[1] = new Array('259,900','26204 AVENIDA LAS COLINAS # 26204','HOWEY IN THE HILLS, FL 34737 ','http://photos-10.idxco.com/194e092d6c11df3fe448e4a7635a0cfce21O4938592','O4938592','194','http://www.greaterorlandohomes.idxco.com/idx/4348/details.php?listingID=O4938592&idxID=194','3','3','Bank owned, brand new luxury condominium, spacious 3BR/3Bth ...');
	propertiesREO[2] = new Array('259,900','26148 AVENIDA LAS COLINAS # 26148','HOWEY IN THE HILLS, FL 34737 ','http://photos-10.idxco.com/194fcb6ac3d4f76f882f9a71fa5fcfd9f23O4939085','O4939085','194','http://www.greaterorlandohomes.idxco.com/idx/4348/details.php?listingID=O4939085&idxID=194','3','3','Bank owned, brand new luxury condominium, spacious 3BR/3Bth ...');
	propertiesREO[3] = new Array('259,900','26211 AVENIDA LAS COLINAS # 26211','HOWEY IN THE HILLS, FL 34737 ','http://photos-10.idxco.com/19467229f2960b6b762abdbda7ea6c10e02O4938709','O4938709','194','http://www.greaterorlandohomes.idxco.com/idx/4348/details.php?listingID=O4938709&idxID=194','3','3','Bank owned, brand new luxury condominium, spacious 3BR/3Bth ...');
	propertiesREO[4] = new Array('255,900','26205 AVENIDA LAS COLINAS # 26205','HOWEY IN THE HILLS, FL 34737 ','http://photos-10.idxco.com/194b681cf20726b262e9b7b71ba5b8373d8O4939108','O4939108','194','http://www.greaterorlandohomes.idxco.com/idx/4348/details.php?listingID=O4939108&idxID=194','3','3','Bank owned, brand new luxury condominium, spacious 3BR/3Bth ...');
	propertiesREO[5] = new Array('239,000','1600 ALABAMA DR # 402','WINTER PARK, FL 32789 ','http://photos-10.idxco.com/194b72d071d917f47efe90052a5a2ec8486O4939423','O4939423','194','http://www.greaterorlandohomes.idxco.com/idx/4348/details.php?listingID=O4939423&idxID=194','2','2','Bank owned. BANK APPROVED PRICE!!!  Prestigious Alabama Cond...');
	propertiesREO[6] = new Array('215,900','26213 AVENIDA LAS COLINAS # 26213','HOWEY IN THE HILLS, FL 34737 ','http://photos-10.idxco.com/194fcdc2080a1a9790ad619fd63be6c387eO4939074','O4939074','194','http://www.greaterorlandohomes.idxco.com/idx/4348/details.php?listingID=O4939074&idxID=194','2','2','Bank owned, brand new luxury condominium, spacious 2BR/2Bth ...');
	propertiesREO[7] = new Array('215,900','26144 AVENIDA LAS COLINAS # 26144','HOWEY IN THE HILLS, FL 34737 ','http://photos-10.idxco.com/194f885900890d3ca23075d1957ad7edb6cO4939093','O4939093','194','http://www.greaterorlandohomes.idxco.com/idx/4348/details.php?listingID=O4939093&idxID=194','2','2','Bank owned, brand new luxury condominium, spacious 2BR/2Bth ...');
	propertiesREO[8] = new Array('209,900','26206 AVENIDA LAS COLINAS # 26206','HOWEY IN THE HILLS, FL 34737 ','http://photos-10.idxco.com/1941548fc18208be439b443fa80d598ca8bO4938653','O4938653','194','http://www.greaterorlandohomes.idxco.com/idx/4348/details.php?listingID=O4938653&idxID=194','2','2','Bank owned, brand new luxury condominium, spacious 2BR/2Bth ...');
	propertiesREO[9] = new Array('209,900','26207 AVENIDA LAS COLINAS # 26207','HOWEY IN THE HILLS, FL 34737 ','http://photos-10.idxco.com/194b681cf20726b262e9b7b71ba5b8373d8O4939097','O4939097','194','http://www.greaterorlandohomes.idxco.com/idx/4348/details.php?listingID=O4939097&idxID=194','2','2','Bank owned, brand new luxury condominium, spacious 2BR/2Bth ...');
	var urlVarREO;
	var preLoadREO = new Image();
	preLoadREO.src = propertiesREO[cREOwi][3];
	onLoad = playREO();
