	// 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 timeNewSlideShowNameout = 4000;
	var cNewSlideShowNamewi = 0;
	
	// iNewSlideShowNamesf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var iNewSlideShowNamesf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swapNewSlideShowNamefade setup function
	function swapNewSlideShowNamefade()
	{
		//if the timer is not already going
		if(iNewSlideShowNamesf.clock == null)
		{
			//copy the image object 
			iNewSlideShowNamesf.obj = arguments[0];
			
			//copy the image src argument 
			iNewSlideShowNamesf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof iNewSlideShowNamesf.obj.style.opacity != 'undefined')
			{
				iNewSlideShowNamesf.type = 'w3c';
			}
			else if(typeof iNewSlideShowNamesf.obj.style.MozOpacity != 'undefined')
			{
				iNewSlideShowNamesf.type = 'moz';
			}
			else if(typeof iNewSlideShowNamesf.obj.style.KhtmlOpacity != 'undefined')
			{
				iNewSlideShowNamesf.type = 'khtml';
			}
			else if(typeof iNewSlideShowNamesf.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
				iNewSlideShowNamesf.type = (iNewSlideShowNamesf.obj.filters.length > 0 && typeof iNewSlideShowNamesf.obj.filters.alpha == 'object' && typeof iNewSlideShowNamesf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				iNewSlideShowNamesf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				iNewSlideShowNamesf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(iNewSlideShowNamesf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swapNewSlideShowNamefade is two distinct transitions
				iNewSlideShowNamesf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				iNewSlideShowNamesf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				iNewSlideShowNamesf.clock = setInterval('iNewSlideShowNamesf.swapNewSlideShowNamefade()', iNewSlideShowNamesf.length/iNewSlideShowNamesf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				iNewSlideShowNamesf.obj.src = iNewSlideShowNamesf.src;
			}
			
		}
	};
	
	
	//swapNewSlideShowNamefade timer function
	iNewSlideShowNamesf.swapNewSlideShowNamefade = function()
	{
		//increase or reduce the counter on an exponential scale
		iNewSlideShowNamesf.count = (iNewSlideShowNamesf.fade) ? iNewSlideShowNamesf.count * 0.9 : (iNewSlideShowNamesf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(iNewSlideShowNamesf.count < (1 / iNewSlideShowNamesf.resolution))
		{
			//clear the timer
			clearInterval(iNewSlideShowNamesf.clock);
			iNewSlideShowNamesf.clock = null;
	
			//do the image swap
			iNewSlideShowNamesf.obj.src = iNewSlideShowNamesf.src;
	
			//reverse the fade direction flag
			iNewSlideShowNamesf.fade = false;
			
			//restart the timer
			iNewSlideShowNamesf.clock = setInterval('iNewSlideShowNamesf.swapNewSlideShowNamefade()', iNewSlideShowNamesf.length/iNewSlideShowNamesf.resolution);
	
		}
		
		//if the counter has reached the top
		if(iNewSlideShowNamesf.count > (1 - (1 / iNewSlideShowNamesf.resolution)))
		{
			//clear the timer
			clearInterval(iNewSlideShowNamesf.clock);
			iNewSlideShowNamesf.clock = null;
	
			//reset the fade direction flag
			iNewSlideShowNamesf.fade = true;
			
			//reset the counter
			iNewSlideShowNamesf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(iNewSlideShowNamesf.type)
		{
			case 'ie' :
				iNewSlideShowNamesf.obj.filters.alpha.opacity = iNewSlideShowNamesf.count * 100;
				break;
				
			case 'khtml' :
				iNewSlideShowNamesf.obj.style.KhtmlOpacity = iNewSlideShowNamesf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iNewSlideShowNamesf.obj.style.MozOpacity = (iNewSlideShowNamesf.count == 1 ? 0.9999999 : iNewSlideShowNamesf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iNewSlideShowNamesf.obj.style.opacity = (iNewSlideShowNamesf.count == 1 ? 0.9999999 : iNewSlideShowNamesf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-NewSlideShowName-slideshow { text-align: center; width: 800px;  }');
	document.writeln('#IDX-NewSlideShowName-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextNewSlideShowName = 1;
	prevNewSlideShowName = 25 - 1;

	document.writeln('<div id="IDX-NewSlideShowName-slideshow">');
	document.writeln('<div id="IDX-NewSlideShowName-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-NewSlideShowName-ssImageURL" class="IDX-NewSlideShowName-ssLinkText"><img id="IDX-NewSlideShowName-ssImage" name="NewSlideShowName-ssImage" alt="Slideshow image" border="0"  class="IDX-NewSlideShowName-image" src="http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1057589&ObjectID=1" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-NewSlideShowName-priceLine"></div>');
	document.writeln('<div id="IDX-NewSlideShowName-addressLine"></div>');
	document.writeln('<div id="IDX-NewSlideShowName-cszLine"></div>');
	document.writeln('<div id="IDX-NewSlideShowName-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-NewSlideShowName-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-NewSlideShowName-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playNewSlideShowName()
	{
		
		
		urlVarNewSlideShowName = '<a href="'+propertiesNewSlideShowName[cNewSlideShowNamewi][6]+'" class="IDX-NewSlideShowName-ssLinkText">';
		swapNewSlideShowNamefade(document.getElementById('IDX-NewSlideShowName-ssImage'), preLoadNewSlideShowName.src, '1', ' ');
		document.getElementById('IDX-NewSlideShowName-ssImageURL').href = propertiesNewSlideShowName[cNewSlideShowNamewi][6];
		document.getElementById('IDX-NewSlideShowName-priceLine').innerHTML = urlVarNewSlideShowName+'$'+propertiesNewSlideShowName[cNewSlideShowNamewi][0]+'</a>';
		document.getElementById('IDX-NewSlideShowName-addressLine').innerHTML =  urlVarNewSlideShowName+propertiesNewSlideShowName[cNewSlideShowNamewi][1]+'</a>';
		document.getElementById('IDX-NewSlideShowName-cszLine').innerHTML = urlVarNewSlideShowName+propertiesNewSlideShowName[cNewSlideShowNamewi][2]+'</a>';
		document.getElementById('IDX-NewSlideShowName-bedLine').innerHTML = urlVarNewSlideShowName+'Beds: '+propertiesNewSlideShowName[cNewSlideShowNamewi][7]+'</a>';
		document.getElementById('IDX-NewSlideShowName-bathLine').innerHTML = urlVarNewSlideShowName+'Baths: '+propertiesNewSlideShowName[cNewSlideShowNamewi][8]+'</a>';
		document.getElementById('IDX-NewSlideShowName-remarkLine').innerHTML = urlVarNewSlideShowName+propertiesNewSlideShowName[cNewSlideShowNamewi][9]+'</a>';
		
		preLoadNewSlideShowName = new Image();
		preLoadNewSlideShowName.src = propertiesNewSlideShowName[nextNewSlideShowName][3];
		
		updateNewSlideShowName();
		
		cNewSlideShowName = setTimeout('playNewSlideShowName()', timeNewSlideShowNameout);	
		
		
	} // end play()
	function updateNewSlideShowName()
	{		
		cNewSlideShowNamewi = nextNewSlideShowName;		
		genNextNewSlideShowName();
		genPrevNewSlideShowName();
		
	}
	function genNextNewSlideShowName()
	{
		nextNewSlideShowName = cNewSlideShowNamewi + 1;
		if (nextNewSlideShowName >= 25)
			nextNewSlideShowName = 0;
	} // end genNext
	function genPrevNewSlideShowName()
	{
		prevNewSlideShowName = cNewSlideShowNamewi - 1;
		if (prevNewSlideShowName < 0)
			prevNewSlideShowName = 25 - 1;
	} // end genPrev

	var propertiesNewSlideShowName = new Array(25);
	propertiesNewSlideShowName[0] = new Array('507,000','26535 FISHER DR','Carmel, CA 93923 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1057589&ObjectID=1','81150148','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81150148&idxID=108','3','2','New on the market and ready to sell! Charming 3 bedroom home...');
	propertiesNewSlideShowName[1] = new Array('529,000','26203 JEANETTE RD','Carmel Valley, CA 93924 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1061306&ObjectID=1','81202428','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81202428&idxID=108','3','1','Beautiful, private setting with room to grow.  This home is ...');
	propertiesNewSlideShowName[2] = new Array('529,900','4156 EL BOSQUE DR','Pebble Beach, CA 93953 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1037981&ObjectID=1','81130540','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81130540&idxID=108','2','2','Perfect Cabin style living on huge 15000+ sf lot in Pebble B...');
	propertiesNewSlideShowName[3] = new Array('529,900','230 7TH ST','Pacific Grove, CA 93950 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1054686&ObjectID=1','81147245','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81147245&idxID=108','4','2','PACIFIC GROVE HILL TOP DELIGHT WITH OCEAN VIEWS FROM EVERY R...');
	propertiesNewSlideShowName[4] = new Array('529,900','739 MERMAID AV','Pacific Grove, CA 93950 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1047706&ObjectID=1','81140265','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81140265&idxID=108','3','2','This is your chance to be near the water in Pacific Grove!. ...');
	propertiesNewSlideShowName[5] = new Array('534,900','2969 SLOAT RD','Pebble Beach, CA 93953 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1052611&ObjectID=1','81145170','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81145170&idxID=108','3','2','Price Reduction!!!  Updated 3 bedroom 2 bath Pebble Beach ho...');
	propertiesNewSlideShowName[6] = new Array('545,000','25 CIELO VISTA DR','Monterey, CA 93940 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1022766&ObjectID=1','81115325','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81115325&idxID=108','4','3','Scenic Hillside Location.  Updated Interior. Huge Master Sui...');
	propertiesNewSlideShowName[7] = new Array('579,900','454 17 MILE DR','Pacific Grove, CA 93950 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1056311&ObjectID=1','81148870','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81148870&idxID=108','3','1','3 bedroom 1 bath home with attached garage. New interior pai...');
	propertiesNewSlideShowName[8] = new Array('593,900','28880 ROBINSON CANYON RD','Carmel Valley, CA 93923 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1043459&ObjectID=1','81136018','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81136018&idxID=108','3','2','Price Reduced! -Great Carmel Valley location with lots of pr...');
	propertiesNewSlideShowName[9] = new Array('599,000','0 TORRES ST 3NW FIFTH AVE #3','Carmel, CA 93921 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=988772&ObjectID=1','81040257','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81040257&idxID=108','2','2','New Construction! 1 of 4 units, close to down-town Carmel-By...');
	propertiesNewSlideShowName[10] = new Array('599,000','1048 LOST BARRANCA RD','Pebble Beach, CA 93953 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1042453&ObjectID=1','81135012','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81135012&idxID=108','3','2','This is a very clean classic Ranch Style home that Has Not b...');
	propertiesNewSlideShowName[11] = new Array('629,900','25565 HIDDEN MESA RD','Salinas Monterey Highway, CA 93940 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1047833&ObjectID=1','81140392','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81140392&idxID=108','3','2','This is a magnificent home. Incredible views of the bay from...');
	propertiesNewSlideShowName[12] = new Array('645,000','0 TORRES ST 3NW FIFTH AVE #4','Carmel, CA 93921 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=988851&ObjectID=1','81040336','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81040336&idxID=108','2','2','New Construction! 1 of 4 units, close to down-town Carmel-By...');
	propertiesNewSlideShowName[13] = new Array('669,900','26172 LEGENDS CT','Salinas Monterey Highway, CA 93908 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1061972&ObjectID=1','81203094','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81203094&idxID=108','3','2','Single story 3266 square foot Las Palmas home with gourmet k...');
	propertiesNewSlideShowName[14] = new Array('689,000','4056 CREST RD','Pebble Beach, CA 93953 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1055659&ObjectID=1','81148218','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81148218&idxID=108','3','2','Bank owned property to be sold as is....');
	propertiesNewSlideShowName[15] = new Array('725,000','0 TORRES ST 3NW FIFTH AVE #2','Carmel, CA 93921 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=988766&ObjectID=1','81040251','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81040251&idxID=108','2','2','New construction! 1 of 4 units, close to downtown Carmel-By-...');
	propertiesNewSlideShowName[16] = new Array('775,000','25943 DEER RUN LN','Salinas Monterey Highway, CA 93908 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1053090&ObjectID=1','81145649','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81145649&idxID=108','6','5','VIEWS**VIEWS**VIEWS! 6BD/5.5BA with extra room that could be...');
	propertiesNewSlideShowName[17] = new Array('899,000','23720 SPECTACULAR BID LN','Salinas Monterey Highway, CA 93940 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1061834&ObjectID=1','81202956','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81202956&idxID=108','4','3','High in the hills, this home offers dramatic valley and ocea...');
	propertiesNewSlideShowName[18] = new Array('899,900','2915 RIBERA RD','Carmel, CA 93923 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1058685&ObjectID=1','81151244','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81151244&idxID=108','4','3','SPECTACULAR AND PEACEFUL VIEWS OF THE MOUNTAINS,WILD LIFE SA...');
	propertiesNewSlideShowName[19] = new Array('1,195,500','4016 COSTADO RD','Pebble Beach, CA 93953 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1055280&ObjectID=1','81147839','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81147839&idxID=108','4','3','Absolutely stunning home custom built Pebble Beach home with...');
	propertiesNewSlideShowName[20] = new Array('1,203,000','1092 OASIS RD','Pebble Beach, CA 93953 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1056880&ObjectID=1','81149439','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81149439&idxID=108','4','3','Craftsmanship throughout this Mediterranean masterpiece. 18f...');
	propertiesNewSlideShowName[21] = new Array('1,350,000','43 MIDDLE CANYON RD','Carmel Valley, CA 93924 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1061258&ObjectID=1','81202380','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81202380&idxID=108','3','3','Beautifully remodeled Mediterranean home in a great Carmel V...');
	propertiesNewSlideShowName[22] = new Array('1,749,000','1043 LOST BARRANCA RD','Pebble Beach, CA 93953 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1051744&ObjectID=1','81144303','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81144303&idxID=108','4','2','Bank Sale. Delightful home with all the amenities. 1 acre ne...');
	propertiesNewSlideShowName[23] = new Array('1,767,000','25343 HATTON RD','Carmel, CA 93923 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1056709&ObjectID=1','81149268','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81149268&idxID=108','3','2','A truly unique home that offers \\\\\\&quot;Old World\\\\\\&quot; ...');
	propertiesNewSlideShowName[24] = new Array('3,995,000','7422 ALTURAS CT','Salinas Monterey Highway, CA 93940 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=1018196&ObjectID=1','81110755','108','http://www.montereypeninsulacondos.idxco.com/idx/5078/details.php?listingID=81110755&idxID=108','4','4','SELLER FINANCING! Stunning &amp; One-of-a-kind behind the ga...');
	var urlVarNewSlideShowName;
	var preLoadNewSlideShowName = new Image();
	preLoadNewSlideShowName.src = propertiesNewSlideShowName[cNewSlideShowNamewi][3];
	onLoad = playNewSlideShowName();

