	// 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 timeLeftColumnout = 10000;
	var cLeftColumnwi = 0;
	
	// iLeftColumnsf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var iLeftColumnsf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swapLeftColumnfade setup function
	function swapLeftColumnfade()
	{
		//if the timer is not already going
		if(iLeftColumnsf.clock == null)
		{
			//copy the image object 
			iLeftColumnsf.obj = arguments[0];
			
			//copy the image src argument 
			iLeftColumnsf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof iLeftColumnsf.obj.style.opacity != 'undefined')
			{
				iLeftColumnsf.type = 'w3c';
			}
			else if(typeof iLeftColumnsf.obj.style.MozOpacity != 'undefined')
			{
				iLeftColumnsf.type = 'moz';
			}
			else if(typeof iLeftColumnsf.obj.style.KhtmlOpacity != 'undefined')
			{
				iLeftColumnsf.type = 'khtml';
			}
			else if(typeof iLeftColumnsf.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
				iLeftColumnsf.type = (iLeftColumnsf.obj.filters.length > 0 && typeof iLeftColumnsf.obj.filters.alpha == 'object' && typeof iLeftColumnsf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				iLeftColumnsf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				iLeftColumnsf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(iLeftColumnsf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swapLeftColumnfade is two distinct transitions
				iLeftColumnsf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				iLeftColumnsf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				iLeftColumnsf.clock = setInterval('iLeftColumnsf.swapLeftColumnfade()', iLeftColumnsf.length/iLeftColumnsf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				iLeftColumnsf.obj.src = iLeftColumnsf.src;
			}
			
		}
	};
	
	
	//swapLeftColumnfade timer function
	iLeftColumnsf.swapLeftColumnfade = function()
	{
		//increase or reduce the counter on an exponential scale
		iLeftColumnsf.count = (iLeftColumnsf.fade) ? iLeftColumnsf.count * 0.9 : (iLeftColumnsf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(iLeftColumnsf.count < (1 / iLeftColumnsf.resolution))
		{
			//clear the timer
			clearInterval(iLeftColumnsf.clock);
			iLeftColumnsf.clock = null;
	
			//do the image swap
			iLeftColumnsf.obj.src = iLeftColumnsf.src;
	
			//reverse the fade direction flag
			iLeftColumnsf.fade = false;
			
			//restart the timer
			iLeftColumnsf.clock = setInterval('iLeftColumnsf.swapLeftColumnfade()', iLeftColumnsf.length/iLeftColumnsf.resolution);
	
		}
		
		//if the counter has reached the top
		if(iLeftColumnsf.count > (1 - (1 / iLeftColumnsf.resolution)))
		{
			//clear the timer
			clearInterval(iLeftColumnsf.clock);
			iLeftColumnsf.clock = null;
	
			//reset the fade direction flag
			iLeftColumnsf.fade = true;
			
			//reset the counter
			iLeftColumnsf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(iLeftColumnsf.type)
		{
			case 'ie' :
				iLeftColumnsf.obj.filters.alpha.opacity = iLeftColumnsf.count * 100;
				break;
				
			case 'khtml' :
				iLeftColumnsf.obj.style.KhtmlOpacity = iLeftColumnsf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iLeftColumnsf.obj.style.MozOpacity = (iLeftColumnsf.count == 1 ? 0.9999999 : iLeftColumnsf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iLeftColumnsf.obj.style.opacity = (iLeftColumnsf.count == 1 ? 0.9999999 : iLeftColumnsf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('a.IDX-LeftColumn-ssLinkText, a.IDX-LeftColumn-ssLinkText:active, a.IDX-LeftColumn-ssLinkText:link, a.IDX-LeftColumn-ssLinkText:visited, a.IDX-LeftColumn-ssLinkText:hover { font-family: Arial, Helvetica, sans-serif; font-size: 9px;  }');
	document.writeln('#IDX-LeftColumn-slideshow { text-align: center; width: 180px;  }');
	document.writeln('.IDX-LeftColumn-image { width: 180px; height: 135px;  }');
	document.writeln('#IDX-LeftColumn-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextLeftColumn = 1;
	prevLeftColumn = 2 - 1;

	document.writeln('<div id="IDX-LeftColumn-slideshow">');
	document.writeln('<div id="IDX-LeftColumn-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-LeftColumn-ssImageURL" class="IDX-LeftColumn-ssLinkText"><img id="IDX-LeftColumn-ssImage" name="LeftColumn-ssImage" alt="Slideshow image" border="0"  class="IDX-LeftColumn-image" src="http://photos-17.idxco.com/324006f33043d9639107d0bf720286da4ca56790" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-LeftColumn-priceLine"></div>');
	document.writeln('<div id="IDX-LeftColumn-addressLine"></div>');
	document.writeln('<div id="IDX-LeftColumn-cszLine"></div>');
	document.writeln('<div id="IDX-LeftColumn-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-LeftColumn-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-LeftColumn-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playLeftColumn()
	{
		
		
		urlVarLeftColumn = '<a href="'+propertiesLeftColumn[cLeftColumnwi][6]+'" class="IDX-LeftColumn-ssLinkText">';
		swapLeftColumnfade(document.getElementById('IDX-LeftColumn-ssImage'), preLoadLeftColumn.src, '1', ' ');
		document.getElementById('IDX-LeftColumn-ssImageURL').href = propertiesLeftColumn[cLeftColumnwi][6];
		document.getElementById('IDX-LeftColumn-priceLine').innerHTML = urlVarLeftColumn+'$'+propertiesLeftColumn[cLeftColumnwi][0]+'</a>';
		document.getElementById('IDX-LeftColumn-addressLine').innerHTML =  urlVarLeftColumn+propertiesLeftColumn[cLeftColumnwi][1]+'</a>';
		document.getElementById('IDX-LeftColumn-cszLine').innerHTML = urlVarLeftColumn+propertiesLeftColumn[cLeftColumnwi][2]+'</a>';
		document.getElementById('IDX-LeftColumn-bedLine').innerHTML = urlVarLeftColumn+'Beds: '+propertiesLeftColumn[cLeftColumnwi][7]+'</a>';
		document.getElementById('IDX-LeftColumn-bathLine').innerHTML = urlVarLeftColumn+'Baths: '+propertiesLeftColumn[cLeftColumnwi][8]+'</a>';
		document.getElementById('IDX-LeftColumn-remarkLine').innerHTML = urlVarLeftColumn+propertiesLeftColumn[cLeftColumnwi][9]+'</a>';
		
		preLoadLeftColumn = new Image();
		preLoadLeftColumn.src = propertiesLeftColumn[nextLeftColumn][3];
		
		updateLeftColumn();
		
		cLeftColumn = setTimeout('playLeftColumn()', timeLeftColumnout);	
		
		
	} // end play()
	function updateLeftColumn()
	{		
		cLeftColumnwi = nextLeftColumn;		
		genNextLeftColumn();
		genPrevLeftColumn();
		
	}
	function genNextLeftColumn()
	{
		nextLeftColumn = cLeftColumnwi + 1;
		if (nextLeftColumn >= 2)
			nextLeftColumn = 0;
	} // end genNext
	function genPrevLeftColumn()
	{
		prevLeftColumn = cLeftColumnwi - 1;
		if (prevLeftColumn < 0)
			prevLeftColumn = 2 - 1;
	} // end genPrev

	var propertiesLeftColumn = new Array(2);
	propertiesLeftColumn[0] = new Array('1,550,000','39181 Cedar','Bass Lake, CA 93604 ','http://photos-17.idxco.com/324006f33043d9639107d0bf720286da4ca56790','56790','324','http://searchmls.basslakerealty.com/idx/3192/details.php?listingID=56790&idxID=324','3','3','Knotty Pine Home in the prestigious Willow Cove area, with a...');
	propertiesLeftColumn[1] = new Array('1,650,000','54124 North Shore 432','Bass Lake, CA 93604 ','http://photos-17.idxco.com/3248b3fc5fc9b1a4d52113cfd024ea843ba55716','55716','324','http://searchmls.basslakerealty.com/idx/3192/details.php?listingID=55716&idxID=324','4','3','Bass Lake, California waterfront vacation home has its own p...');
	var urlVarLeftColumn;
	var preLoadLeftColumn = new Image();
	preLoadLeftColumn.src = propertiesLeftColumn[cLeftColumnwi][3];
	onLoad = playLeftColumn();
