	// IDX Broker Slideshow version 2.0
	// Copyright ©2010 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 time4b383b7b1bout = 9000;
	var c4b383b7b1bwi = 0;
	
	// i4b383b7b1bsf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var i4b383b7b1bsf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swap4b383b7b1bfade setup function
	function swap4b383b7b1bfade()
	{
		//if the timer is not already going
		if(i4b383b7b1bsf.clock == null)
		{
			//copy the image object 
			i4b383b7b1bsf.obj = arguments[0];
			
			//copy the image src argument 
			i4b383b7b1bsf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof i4b383b7b1bsf.obj.style.opacity != 'undefined')
			{
				i4b383b7b1bsf.type = 'w3c';
			}
			else if(typeof i4b383b7b1bsf.obj.style.MozOpacity != 'undefined')
			{
				i4b383b7b1bsf.type = 'moz';
			}
			else if(typeof i4b383b7b1bsf.obj.style.KhtmlOpacity != 'undefined')
			{
				i4b383b7b1bsf.type = 'khtml';
			}
			else if(typeof i4b383b7b1bsf.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
				i4b383b7b1bsf.type = (i4b383b7b1bsf.obj.filters.length > 0 && typeof i4b383b7b1bsf.obj.filters.alpha == 'object' && typeof i4b383b7b1bsf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				i4b383b7b1bsf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				i4b383b7b1bsf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(i4b383b7b1bsf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swap4b383b7b1bfade is two distinct transitions
				i4b383b7b1bsf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				i4b383b7b1bsf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				i4b383b7b1bsf.clock = setInterval('i4b383b7b1bsf.swap4b383b7b1bfade()', i4b383b7b1bsf.length/i4b383b7b1bsf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				i4b383b7b1bsf.obj.src = i4b383b7b1bsf.src;
			}
			
		}
	};
	
	
	//swap4b383b7b1bfade timer function
	i4b383b7b1bsf.swap4b383b7b1bfade = function()
	{
		//increase or reduce the counter on an exponential scale
		i4b383b7b1bsf.count = (i4b383b7b1bsf.fade) ? i4b383b7b1bsf.count * 0.9 : (i4b383b7b1bsf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(i4b383b7b1bsf.count < (1 / i4b383b7b1bsf.resolution))
		{
			//clear the timer
			clearInterval(i4b383b7b1bsf.clock);
			i4b383b7b1bsf.clock = null;
	
			//do the image swap
			i4b383b7b1bsf.obj.src = i4b383b7b1bsf.src;
	
			//reverse the fade direction flag
			i4b383b7b1bsf.fade = false;
			
			//restart the timer
			i4b383b7b1bsf.clock = setInterval('i4b383b7b1bsf.swap4b383b7b1bfade()', i4b383b7b1bsf.length/i4b383b7b1bsf.resolution);
	
		}
		
		//if the counter has reached the top
		if(i4b383b7b1bsf.count > (1 - (1 / i4b383b7b1bsf.resolution)))
		{
			//clear the timer
			clearInterval(i4b383b7b1bsf.clock);
			i4b383b7b1bsf.clock = null;
	
			//reset the fade direction flag
			i4b383b7b1bsf.fade = true;
			
			//reset the counter
			i4b383b7b1bsf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(i4b383b7b1bsf.type)
		{
			case 'ie' :
				i4b383b7b1bsf.obj.filters.alpha.opacity = i4b383b7b1bsf.count * 100;
				break;
				
			case 'khtml' :
				i4b383b7b1bsf.obj.style.KhtmlOpacity = i4b383b7b1bsf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				i4b383b7b1bsf.obj.style.MozOpacity = (i4b383b7b1bsf.count == 1 ? 0.9999999 : i4b383b7b1bsf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				i4b383b7b1bsf.obj.style.opacity = (i4b383b7b1bsf.count == 1 ? 0.9999999 : i4b383b7b1bsf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-4b383b7b1b-slideshow { text-align: center; width: 170px;  }');
	document.writeln('.IDX-4b383b7b1b-image { width: 125px; height: 117px;  }');
	document.writeln('#IDX-4b383b7b1b-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next4b383b7b1b = 1;
	prev4b383b7b1b = 19 - 1;

	document.writeln('<div id="IDX-4b383b7b1b-slideshow">');
	document.writeln('<div id="IDX-4b383b7b1b-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-4b383b7b1b-ssImageURL" class="IDX-4b383b7b1b-ssLinkText"><img id="IDX-4b383b7b1b-ssImage" name="4b383b7b1b-ssImage" alt="Slideshow image" border="0"  class="IDX-4b383b7b1b-image" src="http://media.mlspin.com/photo.aspx?mls=71035284&w=512&h=400&n=0" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-4b383b7b1b-priceLine"></div>');
	document.writeln('<div id="IDX-4b383b7b1b-addressLine"></div>');
	document.writeln('<div id="IDX-4b383b7b1b-cszLine"></div>');
	document.writeln('<div id="IDX-4b383b7b1b-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-4b383b7b1b-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-4b383b7b1b-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function play4b383b7b1b()
	{
		
		
		urlVar4b383b7b1b = '<a href="'+properties4b383b7b1b[c4b383b7b1bwi][6]+'" class="IDX-4b383b7b1b-ssLinkText">';
		swap4b383b7b1bfade(document.getElementById('IDX-4b383b7b1b-ssImage'), preLoad4b383b7b1b.src, '1', ' ');
		document.getElementById('IDX-4b383b7b1b-ssImageURL').href = properties4b383b7b1b[c4b383b7b1bwi][6];
		document.getElementById('IDX-4b383b7b1b-priceLine').innerHTML = urlVar4b383b7b1b+'$'+properties4b383b7b1b[c4b383b7b1bwi][0]+'</a>';
		document.getElementById('IDX-4b383b7b1b-addressLine').innerHTML =  urlVar4b383b7b1b+properties4b383b7b1b[c4b383b7b1bwi][1]+'</a>';
		document.getElementById('IDX-4b383b7b1b-cszLine').innerHTML = urlVar4b383b7b1b+properties4b383b7b1b[c4b383b7b1bwi][2]+'</a>';
		document.getElementById('IDX-4b383b7b1b-bedLine').innerHTML = urlVar4b383b7b1b+'Beds: '+properties4b383b7b1b[c4b383b7b1bwi][7]+'</a>';
		document.getElementById('IDX-4b383b7b1b-bathLine').innerHTML = urlVar4b383b7b1b+'Baths: '+properties4b383b7b1b[c4b383b7b1bwi][8]+'</a>';
		document.getElementById('IDX-4b383b7b1b-remarkLine').innerHTML = urlVar4b383b7b1b+properties4b383b7b1b[c4b383b7b1bwi][9]+'</a>';
		
		preLoad4b383b7b1b = new Image();
		preLoad4b383b7b1b.src = properties4b383b7b1b[next4b383b7b1b][3];
		
		update4b383b7b1b();
		
		c4b383b7b1b = setTimeout('play4b383b7b1b()', time4b383b7b1bout);	
		
		
	} // end play()
	function update4b383b7b1b()
	{		
		c4b383b7b1bwi = next4b383b7b1b;		
		genNext4b383b7b1b();
		genPrev4b383b7b1b();
		
	}
	function genNext4b383b7b1b()
	{
		next4b383b7b1b = c4b383b7b1bwi + 1;
		if (next4b383b7b1b >= 19)
			next4b383b7b1b = 0;
	} // end genNext
	function genPrev4b383b7b1b()
	{
		prev4b383b7b1b = c4b383b7b1bwi - 1;
		if (prev4b383b7b1b < 0)
			prev4b383b7b1b = 19 - 1;
	} // end genPrev

	var properties4b383b7b1b = new Array(19);
	properties4b383b7b1b[0] = new Array('224,000','86 Roberts Dr','Bedford, MA 01730 ','http://media.mlspin.com/photo.aspx?mls=71035284&w=512&h=400&n=0','71035284','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71035284&idxID=107','2','1','...');
	properties4b383b7b1b[1] = new Array('234,900','76 Roberts Drive','Bedford, MA 01730 ','http://media.mlspin.com/photo.aspx?mls=71072998&w=512&h=400&n=0','71072998','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71072998&idxID=107','2','1','...');
	properties4b383b7b1b[2] = new Array('237,000','21 Neillian St','Bedford, MA 01730 ','http://media.mlspin.com/photo.aspx?mls=71072695&w=512&h=400&n=0','71072695','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71072695&idxID=107','2','1','...');
	properties4b383b7b1b[3] = new Array('240,000','2 Genetti Circle','Bedford, MA 01730 ','http://media.mlspin.com/photo.aspx?mls=71131972&w=512&h=400&n=0','71131972','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71131972&idxID=107','2','1','...');
	properties4b383b7b1b[4] = new Array('250,000','9 Ashby Rd','Bedford, MA 01730 ','http://media.mlspin.com/photo.aspx?mls=71130609&w=512&h=400&n=0','71130609','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71130609&idxID=107','3','1','...');
	properties4b383b7b1b[5] = new Array('320,000','16 Concord Road','Bedford, MA 01730 ','http://media.mlspin.com/photo.aspx?mls=71027568&w=512&h=400&n=0','71027568','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71027568&idxID=107','3','2','...');
	properties4b383b7b1b[6] = new Array('369,000','36 Putnam Rd','Bedford, MA 01730 ','http://media.mlspin.com/photo.aspx?mls=71096400&w=512&h=400&n=0','71096400','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71096400&idxID=107','3','1.1','...');
	properties4b383b7b1b[7] = new Array('369,900','73 Loomis St','Bedford, MA 01730 ','http://media.mlspin.com/photo.aspx?mls=71093404&w=512&h=400&n=0','71093404','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71093404&idxID=107','3','1.1','...');
	properties4b383b7b1b[8] = new Array('389,000','197 Concord Road','Bedford, MA 01730 ','http://media.mlspin.com/photo.aspx?mls=71041577&w=512&h=400&n=0','71041577','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71041577&idxID=107','3','1.1','...');
	properties4b383b7b1b[9] = new Array('415,000','9 Norma Road','Bedford, MA 01730 ','http://media.mlspin.com/photo.aspx?mls=71105140&w=512&h=400&n=0','71105140','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71105140&idxID=107','3','1.1','...');
	properties4b383b7b1b[10] = new Array('418,000','19 Dunster Road','Bedford, MA 01730 ','http://media.mlspin.com/photo.aspx?mls=71118693&w=512&h=400&n=0','71118693','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71118693&idxID=107','3','2','...');
	properties4b383b7b1b[11] = new Array('429,000','23 Jeffrey Cir','Bedford, MA 01730 ','http://media.mlspin.com/photo.aspx?mls=71100843&w=512&h=400&n=0','71100843','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71100843&idxID=107','3','2','...');
	properties4b383b7b1b[12] = new Array('429,000','442 Great Rd','Bedford, MA 01730 ','http://media.mlspin.com/photo.aspx?mls=71104582&w=512&h=400&n=0','71104582','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71104582&idxID=107','4','2','...');
	properties4b383b7b1b[13] = new Array('429,000','11 Woodland Road','Bedford, MA 01730 ','http://media.mlspin.com/photo.aspx?mls=71128708&w=512&h=400&n=0','71128708','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71128708&idxID=107','3','2','...');
	properties4b383b7b1b[14] = new Array('439,900','17 Elmbrook Rd.','Bedford, MA 01730 ','http://media.mlspin.com/photo.aspx?mls=71094883&w=512&h=400&n=0','71094883','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71094883&idxID=107','3','2','...');
	properties4b383b7b1b[15] = new Array('440,000','35 WASHINGTON STREET','Bedford, MA 01730 ','http://media.mlspin.com/photo.aspx?mls=71099897&w=512&h=400&n=0','71099897','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71099897&idxID=107','3','2','...');
	properties4b383b7b1b[16] = new Array('499,000','23 Pickman','Bedford, MA 01730 ','http://media.mlspin.com/photo.aspx?mls=71078878&w=512&h=400&n=0','71078878','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71078878&idxID=107','2','2.1','...');
	properties4b383b7b1b[17] = new Array('499,000','19 Clark Road','Bedford, MA 01730 ','http://media.mlspin.com/photo.aspx?mls=71128555&w=512&h=400&n=0','71128555','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71128555&idxID=107','4','2','...');
	properties4b383b7b1b[18] = new Array('499,900','373 North Road','Bedford, MA 01730 ','http://media.mlspin.com/photo.aspx?mls=71131910&w=512&h=400&n=0','71131910','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71131910&idxID=107','2','2.1','...');
	var urlVar4b383b7b1b;
	var preLoad4b383b7b1b = new Image();
	preLoad4b383b7b1b.src = properties4b383b7b1b[c4b383b7b1bwi][3];
	onLoad = play4b383b7b1b();
