	// 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 = 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/4/OBARMLS72844.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('129,900','338 Sandpiper Drive','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/4/OBARMLS72844.jpg','72844','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=72844&idxID=251','3','2','Ranch home in overall good condition. One level living with ...');
	propertiesNewSlideShowName[1] = new Array('145,000','23238 Surf Side Drive','Rodanthe, NC 27968 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/3/OBARMLS72263.jpg','72263','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=72263&idxID=251','3','2','Oceanfront views from this semi-oceanfront in Rodanthe. Sold...');
	propertiesNewSlideShowName[2] = new Array('147,900','3402 Barnacle Lane','Kitty Hawk, NC 27949 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/6/OBARMLS72986.jpg','72986','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=72986&idxID=251','2','2','Large, quality built townhouse style condo at sale price.  T...');
	propertiesNewSlideShowName[3] = new Array('150,900','101 E Lenwood Court','KILL DEVIL HILLS, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/6/OBARMLS72206.jpg','72206','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=72206&idxID=251','3','2','BRING YOUR IMAGINATION AND CREATIVITY  TO THIS GREAT 3 BEDRO...');
	propertiesNewSlideShowName[4] = new Array('195,000','2019 Newport News Street','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/6/OBARMLS72036.jpg','72036','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=72036&idxID=251','3','2','This home has been lovingly updated over the past 4 years to...');
	propertiesNewSlideShowName[5] = new Array('199,000','304 Havens Creek Lane','Manteo, NC 27954 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/3/OBARMLS68123.jpg','68123','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=68123&idxID=251','4','3','Bank Owned home in Manteo.  Four Bedrooms, over 1800 sq ft b...');
	propertiesNewSlideShowName[6] = new Array('199,000','24252 Resort Rodanthe Drive','Rodanthe, NC 27968 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/4/OBARMLS72854.jpg','72854','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=72854&idxID=251','2','2','Oceanfront Condo!  Brand new construction in 2008, and has n...');
	propertiesNewSlideShowName[7] = new Array('199,900','106 E First Street','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/4/OBARMLS72584.jpg','72584','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=72584&idxID=251','3','2','Great Opportunity Between the Roads in Kill Devil Hills.  Ju...');
	propertiesNewSlideShowName[8] = new Array('210,000','113 Club View Court','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/5/OBARMLS73215.jpg','73215','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=73215&idxID=251','4','2','Location, Location, Location! Water views galore. Keep your ...');
	propertiesNewSlideShowName[9] = new Array('214,900','2014 Phoebus Street','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/2/OBARMLS73242.jpg','73242','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=73242&idxID=251','3','2','Alot of interior updating is already complete! Bonus space o...');
	propertiesNewSlideShowName[10] = new Array('219,000','24252 Resort Rodanthe Drive','Rodanthe, NC 27968 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/5/OBARMLS72855.jpg','72855','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=72855&idxID=251','2','2','Oceanfront Condo! Brand new construction in 2008, and has ne...');
	propertiesNewSlideShowName[11] = new Array('225,000','204 W Eden Street','Kill Devil Hills, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/9/OBARMLS72969.jpg','72969','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=72969&idxID=251','3','2','Fannie Mae HomePath Property. Craftsman-style custom built h...');
	propertiesNewSlideShowName[12] = new Array('245,000','24252 Resort Rodanthe Drive','Rodanthe, NC 27968 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/8/OBARMLS72848.jpg','72848','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=72848&idxID=251','2','2','Oceanfront Condo!  Brand new construction in 2008, and has n...');
	propertiesNewSlideShowName[13] = new Array('249,900','42075 Cedar Circle','AVON, NC 27915 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/9/OBARMLS73219.jpg','73219','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=73219&idxID=251','4','2','SEE EXCITING WHIRLWIND NOW. BUILT BY THOM HOLIAN. THIS HOUSE...');
	propertiesNewSlideShowName[14] = new Array('268,000','9315 E Eagle Street','Nags Head, NC 27959 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/5/OBARMLS72965.jpg','72965','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=72965&idxID=251','3','2','This is a great house:great floor plan and great location. T...');
	propertiesNewSlideShowName[15] = new Array('279,000','922 Pirates Way','Manteo, NC 27954 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/0/OBARMLS72970.jpg','72970','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=72970&idxID=251','3','2','Nice sound front condo Some furniture conveys.  Bank owned ....');
	propertiesNewSlideShowName[16] = new Array('297,200','26919 Colony Drive','Salvo, NC 27972 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/3/OBARMLS72433.jpg','72433','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=72433&idxID=251','6','5','This home had a solid rental history generating over $25,000...');
	propertiesNewSlideShowName[17] = new Array('309,900','763 Cormorant Trail','Corolla, NC 27927 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/8/OBARMLS72788.jpg','72788','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=72788&idxID=251','4','3','Wonderful home seeking great owner to bring out its fullest ...');
	propertiesNewSlideShowName[18] = new Array('319,000','39011 Porpoise Place','Avon, NC 27915 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/7/OBARMLS72727.jpg','72727','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=72727&idxID=251','3','3','Breath taking water views from the living level.  Lots of sp...');
	propertiesNewSlideShowName[19] = new Array('330,000','100 Acorn Oak Avenue','Duck, NC 27948 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/3/OBARMLS73133.jpg','73133','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=73133&idxID=251','4','2','Traditional Floor plan for easy access to Great Room, Kitche...');
	propertiesNewSlideShowName[20] = new Array('339,000','1052 Creek Road','Kitty Hawk, NC 27949 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/7/OBARMLS73017.jpg','73017','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=73017&idxID=251','3','2','Unbelievable home for this price! This beautiful 3 bedroom, ...');
	propertiesNewSlideShowName[21] = new Array('349,900','5129 Locust Court','Kitty Hawk, NC 27949 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/4/OBARMLS72834.jpg','72834','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=72834&idxID=251','4','3','Unique contemporary home in a nice year round area of the Ou...');
	propertiesNewSlideShowName[22] = new Array('369,000','249 Wax Myrtle Trail','Southern Shores, NC 27949 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/3/OBARMLS71903.jpg','71903','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=71903&idxID=251','5','4','Bank Owned Home in Southern Shores with a Private Pool.  Fiv...');
	propertiesNewSlideShowName[23] = new Array('375,000','25228 Sea Isle Hills Drive','Waves, NC 27982 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/2/OBARMLS73022.jpg','73022','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=73022&idxID=251','4','4','Don\\\\\\\'t miss out on the opportunity to own your very own va...');
	propertiesNewSlideShowName[24] = new Array('389,500','5303 S Sand Wedge Lane','Nags Head, NC 27959 ','http://obarmls.fnismls.com/Paragon/ListingPictures/OBARMLS/1/OBARMLS72981.jpg','72981','251','http://mls.obxconsulting.com/idx/3944/details.php?listingID=72981&idxID=251','5','4','Bank Owned Bargain!  Views of the ocean and sound from this ...');
	var urlVarNewSlideShowName;
	var preLoadNewSlideShowName = new Image();
	preLoadNewSlideShowName.src = propertiesNewSlideShowName[cNewSlideShowNamewi][3];
	onLoad = playNewSlideShowName();

