	// 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 timee1b2b2037fout = 5000;
	var ce1b2b2037fwi = 0;
	
	// ie1b2b2037fsf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var ie1b2b2037fsf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swape1b2b2037ffade setup function
	function swape1b2b2037ffade()
	{
		//if the timer is not already going
		if(ie1b2b2037fsf.clock == null)
		{
			//copy the image object 
			ie1b2b2037fsf.obj = arguments[0];
			
			//copy the image src argument 
			ie1b2b2037fsf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof ie1b2b2037fsf.obj.style.opacity != 'undefined')
			{
				ie1b2b2037fsf.type = 'w3c';
			}
			else if(typeof ie1b2b2037fsf.obj.style.MozOpacity != 'undefined')
			{
				ie1b2b2037fsf.type = 'moz';
			}
			else if(typeof ie1b2b2037fsf.obj.style.KhtmlOpacity != 'undefined')
			{
				ie1b2b2037fsf.type = 'khtml';
			}
			else if(typeof ie1b2b2037fsf.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
				ie1b2b2037fsf.type = (ie1b2b2037fsf.obj.filters.length > 0 && typeof ie1b2b2037fsf.obj.filters.alpha == 'object' && typeof ie1b2b2037fsf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				ie1b2b2037fsf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				ie1b2b2037fsf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(ie1b2b2037fsf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swape1b2b2037ffade is two distinct transitions
				ie1b2b2037fsf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				ie1b2b2037fsf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				ie1b2b2037fsf.clock = setInterval('ie1b2b2037fsf.swape1b2b2037ffade()', ie1b2b2037fsf.length/ie1b2b2037fsf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				ie1b2b2037fsf.obj.src = ie1b2b2037fsf.src;
			}
			
		}
	};
	
	
	//swape1b2b2037ffade timer function
	ie1b2b2037fsf.swape1b2b2037ffade = function()
	{
		//increase or reduce the counter on an exponential scale
		ie1b2b2037fsf.count = (ie1b2b2037fsf.fade) ? ie1b2b2037fsf.count * 0.9 : (ie1b2b2037fsf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(ie1b2b2037fsf.count < (1 / ie1b2b2037fsf.resolution))
		{
			//clear the timer
			clearInterval(ie1b2b2037fsf.clock);
			ie1b2b2037fsf.clock = null;
	
			//do the image swap
			ie1b2b2037fsf.obj.src = ie1b2b2037fsf.src;
	
			//reverse the fade direction flag
			ie1b2b2037fsf.fade = false;
			
			//restart the timer
			ie1b2b2037fsf.clock = setInterval('ie1b2b2037fsf.swape1b2b2037ffade()', ie1b2b2037fsf.length/ie1b2b2037fsf.resolution);
	
		}
		
		//if the counter has reached the top
		if(ie1b2b2037fsf.count > (1 - (1 / ie1b2b2037fsf.resolution)))
		{
			//clear the timer
			clearInterval(ie1b2b2037fsf.clock);
			ie1b2b2037fsf.clock = null;
	
			//reset the fade direction flag
			ie1b2b2037fsf.fade = true;
			
			//reset the counter
			ie1b2b2037fsf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(ie1b2b2037fsf.type)
		{
			case 'ie' :
				ie1b2b2037fsf.obj.filters.alpha.opacity = ie1b2b2037fsf.count * 100;
				break;
				
			case 'khtml' :
				ie1b2b2037fsf.obj.style.KhtmlOpacity = ie1b2b2037fsf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				ie1b2b2037fsf.obj.style.MozOpacity = (ie1b2b2037fsf.count == 1 ? 0.9999999 : ie1b2b2037fsf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				ie1b2b2037fsf.obj.style.opacity = (ie1b2b2037fsf.count == 1 ? 0.9999999 : ie1b2b2037fsf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-e1b2b2037f-slideshow { text-align: center; width: 300px;  }');
	document.writeln('.IDX-e1b2b2037f-image { width: 250px;  }');
	document.writeln('#IDX-e1b2b2037f-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nexte1b2b2037f = 1;
	preve1b2b2037f = 2 - 1;

	document.writeln('<div id="IDX-e1b2b2037f-slideshow">');
	document.writeln('<div id="IDX-e1b2b2037f-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-e1b2b2037f-ssImageURL" class="IDX-e1b2b2037f-ssLinkText"><img id="IDX-e1b2b2037f-ssImage" name="e1b2b2037f-ssImage" alt="Slideshow image" border="0"  class="IDX-e1b2b2037f-image" src="http://photos.flexmls.com/key/20090827030432688886000000.jpg" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-e1b2b2037f-priceLine"></div>');
	document.writeln('<div id="IDX-e1b2b2037f-addressLine"></div>');
	document.writeln('<div id="IDX-e1b2b2037f-cszLine"></div>');
	document.writeln('<div id="IDX-e1b2b2037f-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-e1b2b2037f-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-e1b2b2037f-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playe1b2b2037f()
	{
		
		
		urlVare1b2b2037f = '<a href="'+propertiese1b2b2037f[ce1b2b2037fwi][6]+'" class="IDX-e1b2b2037f-ssLinkText">';
		swape1b2b2037ffade(document.getElementById('IDX-e1b2b2037f-ssImage'), preLoade1b2b2037f.src, '1', ' ');
		document.getElementById('IDX-e1b2b2037f-ssImageURL').href = propertiese1b2b2037f[ce1b2b2037fwi][6];
		document.getElementById('IDX-e1b2b2037f-priceLine').innerHTML = urlVare1b2b2037f+'$'+propertiese1b2b2037f[ce1b2b2037fwi][0]+'</a>';
		document.getElementById('IDX-e1b2b2037f-addressLine').innerHTML =  urlVare1b2b2037f+propertiese1b2b2037f[ce1b2b2037fwi][1]+'</a>';
		document.getElementById('IDX-e1b2b2037f-cszLine').innerHTML = urlVare1b2b2037f+propertiese1b2b2037f[ce1b2b2037fwi][2]+'</a>';
		document.getElementById('IDX-e1b2b2037f-bedLine').innerHTML = urlVare1b2b2037f+'Beds: '+propertiese1b2b2037f[ce1b2b2037fwi][7]+'</a>';
		document.getElementById('IDX-e1b2b2037f-bathLine').innerHTML = urlVare1b2b2037f+'Baths: '+propertiese1b2b2037f[ce1b2b2037fwi][8]+'</a>';
		document.getElementById('IDX-e1b2b2037f-remarkLine').innerHTML = urlVare1b2b2037f+propertiese1b2b2037f[ce1b2b2037fwi][9]+'</a>';
		
		preLoade1b2b2037f = new Image();
		preLoade1b2b2037f.src = propertiese1b2b2037f[nexte1b2b2037f][3];
		
		updatee1b2b2037f();
		
		ce1b2b2037f = setTimeout('playe1b2b2037f()', timee1b2b2037fout);	
		
		
	} // end play()
	function updatee1b2b2037f()
	{		
		ce1b2b2037fwi = nexte1b2b2037f;		
		genNexte1b2b2037f();
		genPreve1b2b2037f();
		
	}
	function genNexte1b2b2037f()
	{
		nexte1b2b2037f = ce1b2b2037fwi + 1;
		if (nexte1b2b2037f >= 2)
			nexte1b2b2037f = 0;
	} // end genNext
	function genPreve1b2b2037f()
	{
		preve1b2b2037f = ce1b2b2037fwi - 1;
		if (preve1b2b2037f < 0)
			preve1b2b2037f = 2 - 1;
	} // end genPrev

	var propertiese1b2b2037f = new Array(2);
	propertiese1b2b2037f[0] = new Array('2,150,000','1156 LONG LANE','MOUNT JOY, PA 17552 ','http://photos.flexmls.com/key/20090827030432688886000000.jpg','153851','202','http://www.searchlancastercountyhomes.idxco.com/idx/5754/details.php?listingID=153851&idxID=202','5','4','Elegant Southern Estate home on 50 rolling acres! Kitchen fe...');
	propertiese1b2b2037f[1] = new Array('639,000','1629 S COLEBROOK ROAD','LANCASTER, PA 17601 ','http://photos.flexmls.com/key/20100802202436968035000000.jpg','145043','202','http://www.searchlancastercountyhomes.idxco.com/idx/5754/details.php?listingID=145043&idxID=202','4','3','Rare opportunity to call this Hempfield Beauty home. 8.5 acr...');
	var urlVare1b2b2037f;
	var preLoade1b2b2037f = new Image();
	preLoade1b2b2037f.src = propertiese1b2b2037f[ce1b2b2037fwi][3];
	onLoad = playe1b2b2037f();

