var navArray = new Array(8);
var Features=0;
var Trips=1;
var WhatsNew=2;
var Gear=3;
var Columns=4;
var Sports=5;
var Subscribe=6;
var AboutUs=7;
var Home=8;
var NGACurrentLocation = 0;
navArray[0] = '%3Ctable%20id%3D%22yellowNav%22%20cellpadding%3D%220%22%20cellspacing%3D%220%22%20border%3D%220%22%3E%3Ctbody%3E%3Ctr%3E%3Ctd%20id%3D%22yellowNavFeatures%22%20valign%3D%22middle%22%20height%3D%2227%22%3E%3Ca%20href%3D%22/adventure/adventure-travel/family-vacations/index.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EFamily%20Trips%3C/a%3E%3Ca%20href%3D%22/adventure/scott-anderson/afghanistan.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EScott%20Anderson%20in%20Afghanistan%3C/a%3E%3Ca%20href%3D%22/adventure/relocating/where-to-live-and-play.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EBest%20Places%20to%20Live%3C/a%3E%3Ca%20href%3D%22/adventure/adventure-travel/index.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3E25%20Best%20Trips%3C/a%3E%3Ca%20href%3D%22/adventure/everest/index.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EEverest%3C/a%3E%3Ca%20href%3D%22/adventure/road-trips/index.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ERoad%20Trips%3C/a%3E%3C/td%3E%3C/tr%3E%3C/tbody%3E%3C/table%3E';
navArray[1] = '%3Ctable%20id%3D%22yellowNav%22%20cellpadding%3D%220%22%20cellspacing%3D%220%22%20border%3D%220%22%3E%3Ctbody%3E%3Ctr%3E%3Ctd%20id%3D%22yellowNavTrips%22%20valign%3D%22middle%22%20height%3D%2227%22%3E%3Ca%20href%3D%22/adventure/travel/alaska/index.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EAlaska%3C/a%3E%3Ca%20href%3D%22/adventure/travel_directory.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ETravel%20Directory%3C/a%3E%3Ca%20href%3D%22/adventure/travel/bahamas.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EWorld%20Class%3C/a%3E%3Ca%20href%3D%22/adventure/travel/beach-vacations.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EBeach%20Trips%3C/a%3E%3Ca%20href%3D%22/adventure/travel/alps/via-alpina.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EThe%20Alps%3C/a%3E%3Ca%20href%3D%22/adventure/travel/australia-queensland.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EAustralia%3C/a%3E%3Ca%20href%3D%22/adventure/travel/india-2.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EIndia%3C/a%3E%3Ca%20href%3D%22/adventure/travel/costa_rica2.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ECosta%20Rica%3C/a%3E%3Ca%20href%3D%22/adventure/travel/greek-islands.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EGreek%20Islands%3C/a%3E%3C/td%3E%3C/tr%3E%3C/tbody%3E%3C/table%3E';
navArray[2] = '%3Ctable%20id%3D%22yellowNav%22%20cellpadding%3D%220%22%20cellspacing%3D%220%22%20border%3D%220%22%3E%3Ctbody%3E%3Ctr%3E%3Ctd%20id%3D%22yellowNavWhatsNew%22%20valign%3D%22middle%22%20height%3D%2227%22%3E%3Ca%20href%3D%22/adventure/news/outward-bound.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ESpecial%20Report%3A%20Outward%20Bound%3C/a%3E%3Ca%20href%3D%22/adventure/news/gabon-josh-ponte.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EGabon%20Music%3C/a%3E%3Ca%20href%3D%22/adventure/weekend-getaways/spring-may.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EWeekend%20Trips%3C/a%3E%3Ca%20href%3D%22/adventure/video/skiing-the-eiger-switzerland.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EVideo%3A%20The%20Eiger%3C/a%3E%3Ca%20href%3D%22/adventure/video/gobi-camels-huw-cordey.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EVideo%3A%20Gobi%20Camels%3C/a%3E%3Ca%20href%3D%22/adventure/news/white-rhino-kruger.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EA%20Pet%20Rhino%3F%3C/a%3E%3C/td%3E%3C/tr%3E%3C/tbody%3E%3C/table%3E';
navArray[3] = '%3Ctable%20id%3D%22yellowNav%22%20cellpadding%3D%220%22%20cellspacing%3D%220%22%20border%3D%220%22%3E%3Ctbody%3E%3Ctr%3E%3Ctd%20id%3D%22yellowNavGear%22%20valign%3D%22middle%22%20height%3D%2227%22%3E%3Ca%20href%3D%22/adventure/reviews/camping_gear.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EUser%20Reviews%3C/a%3E%3Ca%20href%3D%22/adventure/gear/spring/hiking.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EGear%3A%20Hiking%2C%20Paddling%2C%20Mountain%20Biking%3C/a%3E%3Ca%20href%3D%22/adventure/best-of-adventure-2007/gear/mountain.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EGear%20of%20the%20Year%3C/a%3E%3Ca%20href%3D%22/adventure/best-of-adventure-2007/gear/expert-retail-stores.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EFind%20a%20Gear%20Expert%3C/a%3E%3Ca%20href%3D%22/adventure/gear/running-shoes/road.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ERunning%20Shoes%3C/a%3E%3C/td%3E%3C/tr%3E%3C/tbody%3E%3C/table%3E';
navArray[4] = '%3Ctable%20id%3D%22yellowNav%22%20cellpadding%3D%220%22%20cellspacing%3D%220%22%20border%3D%220%22%3E%3Ctbody%3E%3Ctr%3E%3Ctd%20id%3D%22yellowNavColumns%22%20valign%3D%22middle%22%20height%3D%2227%22%3E%3Ca%20href%3D%22/adventure/photography/your-turn/mike-libecki.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EClimber%20Mike%20Libecki%3C/a%3E%3Ca%20href%3D%22/adventure/your-story/paddling-newfoundland.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EYour%20Story%3A%20Paddling%20Newfoundland%3C/a%3E%3Ca%20href%3D%22/adventure/photography/your-story/alaska-argentina-bike.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EYour%20Story%3A%20Alaska%20to%20Argentina%20by%20Bike%3C/a%3E%3Ca%20href%3D%22/adventure/robert-young-pelton/travel-web-sites.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ETravel%20Web%20Sites%3C/a%3E%3C/td%3E%3C/tr%3E%3C/tbody%3E%3C/table%3E';
navArray[5] = '%3Ctable%20id%3D%22yellowNav%22%20cellpadding%3D%220%22%20cellspacing%3D%220%22%20border%3D%220%22%3E%3Ctbody%3E%3Ctr%3E%3Ctd%20id%3D%22yellowNavSports%22%20valign%3D%22middle%22%20height%3D%2227%22%3E%3Ca%20href%3D%22/adventure/streetsessions/snowboarding-new-york.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ESnowboarding%20NYC%3C/a%3E%3Ca%20href%3D%22/adventure/fitness-training/spring-exercises.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ESpring%20Fitness%20Training%3C/a%3E%3Ca%20href%3D%22/adventure/0603/sports/energy_drinks.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ESports%20Drinks%3C/a%3E%3Ca%20href%3D%22/adventure/surfing/california-lost-coast.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ESurfing%20California%27s%20Lost%20Coast%3C/a%3E%3Ca%20href%3D%22/adventure/best-of-adventure-2007/sports-trends.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ESports%20Trends%3C/a%3E%3C/td%3E%3C/tr%3E%3C/tbody%3E%3C/table%3E';
navArray[6] = '%3Ctable%20id%3D%22yellowNav%22%20cellpadding%3D%220%22%20cellspacing%3D%220%22%20border%3D%220%22%3E%3Ctbody%3E%3Ctr%3E%3Ctd%20id%3D%22yellowNavSubscribe%22%20valign%3D%22middle%22%20height%3D%2227%22%3E%3Ca%20href%3D%22https%3A//secure.customersvc.com/wes/servlet/Show%3FWESPAGE%3Dam/Services/faq/nafaq.jsp%26MSRSMAG%3DNA%23Section_B2%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EOrder%20Back%20Issues%3C/a%3E%3Ca%20href%3D%22https%3A//secure.customersvc.com/wes/servlet/Show%3FWESPAGE%3Dam/home1.jsp%26MSRSMAG%3DNA%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ERenew%20or%20Adjust%20Your%20Subscription%3C/a%3E%3Ca%20href%3D%22https%3A//secure.customersvc.com/wes/servlet/Show%3FWESPAGE%3Dam/Services/faq/nafaq.jsp%26MSRSMAG%3DNA%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EFrequently%20Asked%20Questions%3C/a%3E%3Ca%20href%3D%22https%3A//secure.customersvc.com/servlet/Show%3FWESPAGE%3Dna/040107/join.html%26MSRSMAG%3DNA%26MSCCMPLX%3DEDITORIAL5%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3E%3Cb%3ESubscribe%20Now%3C/b%3E%3C/a%3E%3C/td%3E%3C/tr%3E%3C/tbody%3E%3C/table%3E';
navArray[7] = '%3Ctable%20id%3D%22yellowNav%22%20cellpadding%3D%220%22%20cellspacing%3D%220%22%20border%3D%220%22%3E%3Ctbody%3E%3Ctr%3E%3Ctd%20id%3D%22yellowNavAboutUs%22%20valign%3D%22middle%22%20height%3D%2227%22%3E%3Ca%20href%3D%22/adventure/about.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EContact%20Us%3C/a%3E%3Ca%20href%3D%22/adventure/about_advertise.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EAdvertise%20With%20Us%3C/a%3E%3Ca%20href%3D%22http%3A//nganimbus.nimbussoftware.com/adventure/about_writers.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EWriters%27%20+%20Photographers%27%20Guidelines%3C/a%3E%3Ca%20href%3D%22/adventure/about_press.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EPress%20Inquiries%3C/a%3E%3Ca%20href%3D%22http%3A//nganimbus.nimbussoftware.com/adventure/writers-photographers.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EThe%20%3Ci%3EAdventure%3C/i%3E%20Team%3C/a%3E%3C/td%3E%3C/tr%3E%3C/tbody%3E%3C/table%3E';
navArray[8] = '%3Ctable%20id%3D%22yellowNav%22%20cellpadding%3D%220%22%20cellspacing%3D%220%22%20border%3D%220%22%3E%3Ctbody%3E%3Ctr%3E%3Ctd%20valign%3D%22middle%22%20height%3D%2227%22%3E%3Cimg%20src%3D%22/adventure/images/shim.gif%22%20height%3D%2227%22%20width%3D%221%22%3E%3C/td%3E%3C/tr%3E%3C/tbody%3E%3C/table%3E';
if(typeof(NGANavType) != 'undefined')
{
  var flipped = false; if(NGANavType == 8) { NGANavType=0; flipped = true; }
  document.write(unescape(navArray[NGANavType]));
  if(flipped)NGANavType=8
    ngaCurrentLocation = NGANavType;
}

window.onload = NavOnLoadEvent;

function NavOnLoadEvent()
{
	CheckBrowser();
	var trimmedLoc = window.location.href;
	var tableMain = document.getElementById('yellowNav');
	var kids = tableMain.getElementsByTagName('A');
	var itemCount = kids.length;

	if((typeof(NGANavType) != 'undefined' && (typeof(subNavID) == 'undefined' || NGACurrentLocation == subNavID) ))
	{
		var cPathSplit = window.location.href.split('/');
		var loc = cPathSplit[cPathSplit.length-1];

		//- Special Case for Reviews pages -//
		if( trimmedLoc.indexOf( '/reviews/' ) > -1 )
		{
			loc = cPathSplit[cPathSplit.length-2];

			for(var i=0; i<itemCount; i++)
			{
				var cPathSplit2 = kids[i].href.split('/');
				var locNav = cPathSplit2[cPathSplit2.length-2];

				if(locNav == loc  && kids[i].href.charAt(kids[i].href.length - 1) != '#')
				{
					kids[i].className = 'yellowNavOn';
					break;
				}
			}

			return;
		}

		//- Gallery and Gear pages -//
		if( loc.indexOf( '_gallery' ) > -1 || loc.indexOf( '_gear' ) > -1 )
		{
			var newLoc = "";
			loc = loc.slice( 0, loc.indexOf( '.htm' ) );
			for(var i=0; i<loc.length; i++)
			{
				if(isNaN(loc.charAt(i)))
					newLoc += loc.charAt(i);
			}

			for(var ii=0; ii<itemCount; ii++)
			{
				var cPathSplit2 = kids[ii].href.split('/');
				var temp = cPathSplit2[cPathSplit2.length-1];
				temp = temp.slice( 0, temp.indexOf( '.htm' ) );

				var locNav = "";
				for(var i=0; i<temp.length; i++)
				{
					if(isNaN(temp.charAt(i)))
						locNav += temp.charAt(i);
				}

				if(locNav == newLoc  && kids[ii].href.charAt(kids[ii].href.length - 1) != '#')
				{
					kids[ii].className = 'yellowNavOn';
					break;
				}
			}
		}
		//- Best of Africa pages -//
		else if( loc.indexOf( 'africa_' ) > -1 && window.location.href.indexOf( '/trips/africa_' ) > -1 )
		{
			var newLoc = "";
			newLoc = loc.slice( 0, loc.indexOf( 'africa_' ) + 7 );

			for(var ii=0; ii<itemCount; ii++)
			{
				var cPathSplit2 = kids[ii].href.split('/');
				var temp = cPathSplit2[cPathSplit2.length-1];
				var locNav = temp.slice( 0, temp.indexOf( 'africa_' ) + 7 );

				if(locNav == newLoc  && kids[ii].href.charAt(kids[ii].href.length - 1) != '#')
				{
					kids[ii].className = 'yellowNavOn';
					break;
				}
			}
		}
		else
		{
			for(var i=0; i<itemCount; i++)
			{
				var cPathSplit2 = kids[i].href.split('/');
				var locNav = cPathSplit2[cPathSplit2.length-1];

				if(locNav == loc  && kids[i].href.charAt(kids[i].href.length - 1) != '#')
				{
					kids[i].className = 'yellowNavOn';
					break;
				}
			}
		}
	}
	else
	{
		if((typeof(subNavID) == 'undefined' || subNavID == null) || NGACurrentLocation == subNavID)
		{
			for(var i=0; i<itemCount; i++)
			{
				if(kids[i].href == trimmedLoc)
				{
					kids[i].className = 'yellowNavOn';
					break;
				}
			}
		}
	}
}
/*<A HREF='/adventure/adventure-travel/family-vacations/index.html'>Family Trips</A>
<A HREF='/adventure/scott-anderson/afghanistan.html'>Scott Anderson in Afghanistan</A>
<A HREF='/adventure/relocating/where-to-live-and-play.html'>Best Places to Live</A>
<A HREF='/adventure/adventure-travel/index.html'>25 Best Trips</A>
<A HREF='/adventure/everest/index.html'>Everest</A>
<A HREF='/adventure/road-trips/index.html'>Road Trips</A>
<A HREF='/adventure/travel/alaska/index.html'>Alaska</A>
<A HREF='/adventure/travel_directory.html'>Travel Directory</A>
<A HREF='/adventure/travel/bahamas.html'>World Class</A>
<A HREF='/adventure/travel/beach-vacations.html'>Beach Trips</A>
<A HREF='/adventure/travel/alps/via-alpina.html'>The Alps</A>
<A HREF='/adventure/travel/australia-queensland.html'>Australia</A>
<A HREF='/adventure/travel/india-2.html'>India</A>
<A HREF='/adventure/travel/costa_rica2.html'>Costa Rica</A>
<A HREF='/adventure/travel/greek-islands.html'>Greek Islands</A>
<A HREF='/adventure/news/outward-bound.html'>Special Report: Outward Bound</A>
<A HREF='/adventure/news/gabon-josh-ponte.html'>Gabon Music</A>
<A HREF='/adventure/weekend-getaways/spring-may.html'>Weekend Trips</A>
<A HREF='/adventure/video/skiing-the-eiger-switzerland.html'>Video: The Eiger</A>
<A HREF='/adventure/video/gobi-camels-huw-cordey.html'>Video: Gobi Camels</A>
<A HREF='/adventure/news/white-rhino-kruger.html'>A Pet Rhino?</A>
<A HREF='/adventure/reviews/camping_gear.html'>User Reviews</A>
<A HREF='/adventure/gear/spring/hiking.html'>Gear: Hiking, Paddling, Mountain Biking</A>
<A HREF='/adventure/best-of-adventure-2007/gear/mountain.html'>Gear of the Year</A>
<A HREF='/adventure/best-of-adventure-2007/gear/expert-retail-stores.html'>Find a Gear Expert</A>
<A HREF='/adventure/gear/running-shoes/road.html'>Running Shoes</A>
<A HREF='/adventure/photography/your-turn/mike-libecki.html'>Climber Mike Libecki</A>
<A HREF='/adventure/your-story/paddling-newfoundland.html'>Your Story: Paddling Newfoundland</A>
<A HREF='/adventure/photography/your-story/alaska-argentina-bike.html'>Your Story: Alaska to Argentina by Bike</A>
<A HREF='/adventure/robert-young-pelton/travel-web-sites.html'>Travel Web Sites</A>
<A HREF='/adventure/streetsessions/snowboarding-new-york.html'>Snowboarding NYC</A>
<A HREF='/adventure/fitness-training/spring-exercises.html'>Spring Fitness Training</A>
<A HREF='/adventure/0603/sports/energy_drinks.html'>Sports Drinks</A>
<A HREF='/adventure/surfing/california-lost-coast.html'>Surfing California's Lost Coast</A>
<A HREF='/adventure/best-of-adventure-2007/sports-trends.html'>Sports Trends</A>
<A HREF='https://secure.customersvc.com/wes/servlet/Show?WESPAGE=am/Services/faq/nafaq.jsp&MSRSMAG=NA#Section_B2'>Order Back Issues</A>
<A HREF='https://secure.customersvc.com/wes/servlet/Show?WESPAGE=am/home1.jsp&MSRSMAG=NA'>Renew or Adjust Your Subscription</A>
<A HREF='https://secure.customersvc.com/wes/servlet/Show?WESPAGE=am/Services/faq/nafaq.jsp&MSRSMAG=NA'>Frequently Asked Questions</A>
<A HREF='https://secure.customersvc.com/servlet/Show?WESPAGE=na/040107/join.html&MSRSMAG=NA&MSCCMPLX=EDITORIAL5'><b>Subscribe Now</b></A>
<A HREF='/adventure/about.html'>Contact Us</A>
<A HREF='/adventure/about_advertise.html'>Advertise With Us</A>
<A HREF='http://nganimbus.nimbussoftware.com/adventure/about_writers.html'>Writers' + Photographers' Guidelines</A>
<A HREF='/adventure/about_press.html'>Press Inquiries</A>
<A HREF='http://nganimbus.nimbussoftware.com/adventure/writers-photographers.html'>The <i>Adventure</i> Team</A>
*/
