	// 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 = 5000;
	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: left; width: 200px;  }');
	document.writeln('.IDX-NewSlideShowName-image { width: 150px; height: 150px;  }');
	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://photos-4.idxco.com/076cdd15c7dbf167730fbe0205651e8e1b180013012" ></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('250,000','2305 Rock Hill Circle','Reno, NV 89519 ','http://photos-4.idxco.com/076cdd15c7dbf167730fbe0205651e8e1b180013012','80013012','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=80013012&idxID=076','3','2','This executive townhouse stands alone -- no common walls! Lo...');
	propertiesNewSlideShowName[1] = new Array('250,000','222 Toiyabe Road','Kingston, NV 89310 ','http://sweb1.idxco.com/images/noHousePhoto.png','90014275','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=90014275&idxID=076','4','3','This home has a lot going for it, 4 car 1200 sq ft garage, 2...');
	propertiesNewSlideShowName[2] = new Array('250,000','2806 Glenwood Court','Reno, NV 89509 ','http://photos-4.idxco.com/07652114b904505e2436000ff5d8cb8ea5e110005155','110005155','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=110005155&idxID=076','4','2','Single story home on quiet cul-de-sac in established SW neig...');
	propertiesNewSlideShowName[3] = new Array('250,000','4390 S Jumbo Way','Washoe Valley, NV 89704 ','http://photos-4.idxco.com/07672cf0396c8b0c53025b096dffd971b19110005640','110005640','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=110005640&idxID=076','3','2','Country feel with amazing views!  This home speak to you.  T...');
	propertiesNewSlideShowName[4] = new Array('250,000','430 Ruffian Court','Reno, NV 89521 ','http://photos-4.idxco.com/076361d887506932f2744878e672dee4930110009727','110009727','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=110009727&idxID=076','4','2','Dream Home Opportunity! Curti Ranch home in quiet cul-de-sac...');
	propertiesNewSlideShowName[5] = new Array('250,000','1450 Skyline Boulevard','Reno, NV 89509 ','http://photos-4.idxco.com/076afbcf3741deeeae202172ddf73b3c2d4110011560','110011560','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=110011560&idxID=076','3','2','Beautifully updated home in the heart of Southwest Reno. Com...');
	propertiesNewSlideShowName[6] = new Array('250,000','198 B Street','Virginia City, NV 89440 ','http://photos-4.idxco.com/0763486fb05c41ec36bd1d76e58772684ea110011877','110011877','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=110011877&idxID=076','3','2','Historic Virginia City Mansion.  Victorian architecture with...');
	propertiesNewSlideShowName[7] = new Array('250,000','3730 Piccadilly Court','Reno, NV 89509 ','http://photos-4.idxco.com/0764f213e23928cf4d8fb120ad19bdb584e110012408','110012408','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=110012408&idxID=076','4','3','Spacious family home located on a Southwest Reno cul-de-sac....');
	propertiesNewSlideShowName[8] = new Array('250,000','140 Comstock Road','Dayton, NV 89403 ','http://photos-4.idxco.com/076169955803b422797d3774e892b1a9184110013350','110013350','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=110013350&idxID=076','3','2','Dayton Valley horse ranch property. This 3 bedroom, 2 bath h...');
	propertiesNewSlideShowName[9] = new Array('250,000','10 Adair','Carson City, NV 89706 ','http://photos-4.idxco.com/0766bab0feefb47313490887da1c3435a04110014796','110014796','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=110014796&idxID=076','4','3','Live and work on this property. This is an income property p...');
	propertiesNewSlideShowName[10] = new Array('250,000','11995 Shasta Lake Road','Lovelock, NV 89419 ','http://photos-4.idxco.com/076057ed2fea0bfdfbbbd97e7461f30625c110015018','110015018','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=110015018&idxID=076','3','2','Beautiful well maintained home with (2) 1.5 acre parcels, ea...');
	propertiesNewSlideShowName[11] = new Array('250,000','15800 Rancho Drive','Reno, NV 89508 ','http://photos-4.idxco.com/07693f2d928c3ec22888db8dda733df024f110015304','110015304','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=110015304&idxID=076','3','3','Large home on 10 acres suitable for horses.  Three bedrooms,...');
	propertiesNewSlideShowName[12] = new Array('250,000','1070 SAGE STREET','Fernley, NV 89408 ','http://photos-4.idxco.com/076f01d6f46ef21bf91d276915bd4f0c91c110015563','110015563','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=110015563&idxID=076','3','2','\\\\\\&quot;THIS IS A BEAUTIFUL WELL MAINTAINED HOME IN THE SAG...');
	propertiesNewSlideShowName[13] = new Array('250,000','4936 High Pass Drive','Sparks, NV 89436 ','http://photos-4.idxco.com/07633d67122d0e46e9548767b96c57b26b5110015697','110015697','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=110015697&idxID=076','4','3','Lovely home in a lovely upscale neighborhood. Beautifully ma...');
	propertiesNewSlideShowName[14] = new Array('250,000','850 Goldfield Avenue','Yerington, NV 89447 ','http://photos-4.idxco.com/076239d38bebdce77ac6e0c24f091fc6146120000618','120000618','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=120000618&idxID=076','2','2','Property is being sold with 2 parcels totaling 2.96 acres, a...');
	propertiesNewSlideShowName[15] = new Array('250,000','15020 EDMANDS DR','Reno, NV 89511 ','http://photos-4.idxco.com/0767414bff83c4ce955327e748ad69e9a40120001016','120001016','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=120001016&idxID=076','5','3','BANK OWNED PROPERTY.  REO.  SOLD AS-IS, WHERE-IS....');
	propertiesNewSlideShowName[16] = new Array('250,000','2348 Copper Springs','Reno, NV 89521 ','http://photos-4.idxco.com/0763634f321f186ef7e4da2186fd0bf12c3120001027','120001027','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=120001027&idxID=076','4','2','Gorgeous Centex home with no rear neighbors.  Features, upgr...');
	propertiesNewSlideShowName[17] = new Array('250,000','11235 Torino Way','Reno, NV 89521 ','http://photos-4.idxco.com/0762b069c42f98d5f8b8073691cbe38b8e9120001053','120001053','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=120001053&idxID=076','4','2','Ready to call home in Curti Ranch! This four bedroom stucco ...');
	propertiesNewSlideShowName[18] = new Array('249,999','825 Southwood Blvd #1','Incline Village, NV 89451 ','http://photos-4.idxco.com/076a25580788972c052a3e2425310880968110006273','110006273','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=110006273&idxID=076','3','2','Never judge a book by it\\\\\\\'s cover. This beautifully renova...');
	propertiesNewSlideShowName[19] = new Array('249,995','10895 Serratina Drive','Reno, NV 89521 ','http://sweb1.idxco.com/images/noHousePhoto.png','120001098','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=120001098&idxID=076','4','2','Beautiful, luxurious and functional Toll Bros. home in Dorad...');
	propertiesNewSlideShowName[20] = new Array('249,950','2235 Quailwood Drive','Reno, NV 89521 ','http://photos-4.idxco.com/076560265895d3140270717fcb1c90765c6120001268','120001268','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=120001268&idxID=076','4','2','\\\\\\&quot;New Lennar home in desirable Damonte Ranch. Beautif...');
	propertiesNewSlideShowName[21] = new Array('249,900','5637 Ethel Way','Carson City, NV 89701 ','http://photos-4.idxco.com/076dc49dfd03a70598ae817530fdb26eda7100007309','100007309','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=100007309&idxID=076','4','2','Extraordinarily beautiful is the only way to describe this 1...');
	propertiesNewSlideShowName[22] = new Array('249,900','1536 Poptart Ct.','Sparks, NV 89436 ','http://photos-4.idxco.com/0766e9c3cada06fa70f0bf3af4f971b3780100016612','100016612','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=100016612&idxID=076','3','2','BRAND NEW STANDARD FEATURES! 8/1/11. 12x12 granite kitchen c...');
	propertiesNewSlideShowName[23] = new Array('249,900','50 Miranda Court','Sparks, NV 89441 ','http://photos-4.idxco.com/07690560c1e0f0f2beeae27453e9e31af47110003653','110003653','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=110003653&idxID=076','4','3','Will accept backups. Don   t pass this one by. One owner. Op...');
	propertiesNewSlideShowName[24] = new Array('249,900','4268 Timberline Drive','Carson City, NV 89701 ','http://photos-4.idxco.com/076af9c62635bdbbc393f63b9f4c40a61ae110010041','110010041','076','http://www.realtycorner.idxco.com/idx/5980/details.php?listingID=110010041&idxID=076','2','2','The best thing about this home is the view!!  Absolutely stu...');
	var urlVarNewSlideShowName;
	var preLoadNewSlideShowName = new Image();
	preLoadNewSlideShowName.src = propertiesNewSlideShowName[cNewSlideShowNamewi][3];
	onLoad = playNewSlideShowName();

