	// 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 timeNewSlideShowNameout = 3000;
	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('a.IDX-NewSlideShowName-ssLinkText, a.IDX-NewSlideShowName-ssLinkText:active, a.IDX-NewSlideShowName-ssLinkText:link, a.IDX-NewSlideShowName-ssLinkText:visited, a.IDX-NewSlideShowName-ssLinkText:hover { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: ##000000;  }');
	document.writeln('#IDX-NewSlideShowName-slideshow { text-align: center; background-color: #b3d0f4; border-width: 1px; border-style: solid; border-color: ##000000; width: 221px;  }');
	document.writeln('.IDX-NewSlideShowName-image { width: 221px; 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://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/1/OBARMLS67631.jpg" ></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('112,900','501 Harbour View Drive','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/1/OBARMLS67631.jpg','67631','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=67631&idxID=251','3','1','THIS 1230 SF 3 BEDROOM HOME IS THE BEST BARGAIN IN COLINGTON...');
	propertiesNewSlideShowName[1] = new Array('114,900','804 Memorial Avenue','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/8/OBARMLS67298.jpg','67298','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=67298&idxID=251','2','2','Great Starter Condo located between the highways and a short...');
	propertiesNewSlideShowName[2] = new Array('119,650','303 Colington Drive','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/0/OBARMLS67310.jpg','67310','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=67310&idxID=251','2','1','This one won\\\\\\\'t last long! Very cute home in Colington. La...');
	propertiesNewSlideShowName[3] = new Array('124,900','1200-1 Wrightsville Boulevard','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/2/OBARMLS67342.jpg','67342','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=67342&idxID=251','2','1','End unit. List price includes new heat pump and other repair...');
	propertiesNewSlideShowName[4] = new Array('127,500','2027 Portsmouth Street','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/8/OBARMLS67678.jpg','67678','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=67678&idxID=251','2','1','Nice location in quiet area of Avalon. This one will go fast...');
	propertiesNewSlideShowName[5] = new Array('139,500','406 W Arch Street','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/5/OBARMLS67715.jpg','67715','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=67715&idxID=251','1','2','1 Bedroom, 2 full baths with tile flooring! Second room on m...');
	propertiesNewSlideShowName[6] = new Array('142,500','2908 Meekins Avenue','Nags Head, NC 27959 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/9/OBARMLS64469.jpg','64469','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=64469&idxID=251','3','2','FORECLOSURE! Ideal Location, Close to shops and beach access...');
	propertiesNewSlideShowName[7] = new Array('142,900','2206 Neptune Way','Kitty Hawk, NC 27949 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/3/OBARMLS67743.jpg','67743','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=67743&idxID=251','2','2','Best priced condo in Sandpiper Cay.  This Fannie Mae HomePat...');
	propertiesNewSlideShowName[8] = new Array('144,900','402 Angler Way','Kitty Hawk, NC 27949 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/1/OBARMLS67241.jpg','67241','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=67241&idxID=251','2','2','Easy one level living! Cozy brick fireplace and private pati...');
	propertiesNewSlideShowName[9] = new Array('149,000','2037 Smithfield Street','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/2/OBARMLS67142.jpg','67142','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=67142&idxID=251','3','1','This is a Fannie Mae HomePath property. Purchase this proper...');
	propertiesNewSlideShowName[10] = new Array('149,500','2301 Neptune Way','Kitty Hawk, NC 27949 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/1/OBARMLS66171.jpg','66171','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=66171&idxID=251','2','2','Two-level townhouse-style condo with 2 master bedrooms one w...');
	propertiesNewSlideShowName[11] = new Array('149,900','1109 Indian Drive','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/8/OBARMLS66968.jpg','66968','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=66968&idxID=251','3','2','BANK OWNED Fannie Mae Foreclosure.  This 3 BR, 2.5 BA home i...');
	propertiesNewSlideShowName[12] = new Array('152,900','805 Angler Way','Kitty Hawk, NC 27949 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/5/OBARMLS66815.jpg','66815','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=66815&idxID=251','2','2','Very convenient &amp; private end unit, nothing behind your ...');
	propertiesNewSlideShowName[13] = new Array('154,900','108 Baum Bay Drive','Kill Devil hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/0/OBARMLS67740.jpg','67740','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=67740&idxID=251','2','1','A BANG UP BARGAIN ON BAUM BAY!  THIS CUTE SHAKE COVERD 2 BED...');
	propertiesNewSlideShowName[14] = new Array('159,900','104 King Court','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/7/OBARMLS67267.jpg','67267','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=67267&idxID=251','3','2','This cute 3 bedroom, 2 bathroom home has just been updated w...');
	propertiesNewSlideShowName[15] = new Array('164,500','101 Lake Court','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/8/OBARMLS66748.jpg','66748','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=66748&idxID=251','3','2','WOW! THE 3 BEDROOM LAKE FRONT COTTAGE ON A QUIET CUL-DE-SAC ...');
	propertiesNewSlideShowName[16] = new Array('167,000','25219 Mac Oca Drive','Waves, NC 27982 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/2/OBARMLS66722.jpg','66722','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=66722&idxID=251','3','2','Older beach box in need of repairs but priced to sell quickl...');
	propertiesNewSlideShowName[17] = new Array('169,000','216 Colingwood Lane','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/3/OBARMLS64953.jpg','64953','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=64953&idxID=251','3','2','Bank Owned home in Colingwood.  This home is in great condit...');
	propertiesNewSlideShowName[18] = new Array('174,500','1103-C Cambridge Road','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/1/OBARMLS67411.jpg','67411','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=67411&idxID=251','3','3','Spacious unit; townhouse style living over four floors with ...');
	propertiesNewSlideShowName[19] = new Array('178,900','199 Dogwood Trail','Manteo, NC 27954 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/8/OBARMLS67408.jpg','67408','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=67408&idxID=251','4','2','Great potential!! Spacious rooms, kitchen with breakfast bar...');
	propertiesNewSlideShowName[20] = new Array('180,900','42196 Askins Creek Drive','Avon, NC 27915 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/5/OBARMLS67465.jpg','67465','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=67465&idxID=251','4','2','Beach box with split bedrooms and  baths.  This property is ...');
	propertiesNewSlideShowName[21] = new Array('184,900','410 W Sothel Street','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/5/OBARMLS67625.jpg','67625','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=67625&idxID=251','3','2','Beach Box with nice size bedrooms.  Great starter home for f...');
	propertiesNewSlideShowName[22] = new Array('185,000','208 Roanoke Drive','Kill Devil Hills, NC 27954 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/1/OBARMLS67341.jpg','67341','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=67341&idxID=251','3','2','This is a great house for the money - has been very well mai...');
	propertiesNewSlideShowName[23] = new Array('199,900','104 Kitty Hawk Bay Drive','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/9/OBARMLS67279.jpg','67279','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=67279&idxID=251','3','3','Very nice home, well built, low maintenance, high elevation ...');
	propertiesNewSlideShowName[24] = new Array('203,300','25226 Mac Oca Drive','Waves, NC 27962 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/7/OBARMLS67367.jpg','67367','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=67367&idxID=251','3','2','Timeless 1400 s.f. salt box floor plan on Mac Oca Dr. lives ...');
	var urlVarNewSlideShowName;
	var preLoadNewSlideShowName = new Image();
	preLoadNewSlideShowName.src = propertiesNewSlideShowName[cNewSlideShowNamewi][3];
	onLoad = playNewSlideShowName();
