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/0509/features/africa_kenya_walk.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ETim%20Cahill%27s%20Kenya%20Walk%3C/a%3E%3Ca%20href%3D%22/adventure/0509/features/climbing_gunks_photo_gallery.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EGunks%20Climbing%20Photos%3C/a%3E%3Ca%20href%3D%22/adventure/0509/features/snake_venom_doc.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ESnake-Feeding%20Video%3C/a%3E%3Ca%20href%3D%22/adventure/0509/features/reader_photo_gallery.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EReader%20Photo%20Album%3C/a%3E%3Ca%20href%3D%22%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3E%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/0509/trips/africa_botswana_zambia.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EBest%20of%20Africa%202005%3C/a%3E%3Ca%20href%3D%22/adventure/0509/trips/olympic_peninsula.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EWild%20Roads%3A%20Washington%3C/a%3E%3Ca%20href%3D%22/adventure/0509/trips/world_class.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EBorneo%20Jungle%20Safari%3C/a%3E%3Ca%20href%3D%22/adventure/0509/trips/world_class2.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ECrete%20Culinary%20Hiking%20Tour%3C/a%3E%3Ca%20href%3D%22/adventure/0510/trips/world_class3.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EAustralia%20Trekking%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/0509/whats_new/reinhold_messner.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EReinhold%20Messner%20Controversy%3C/a%3E%3Ca%20href%3D%22/adventure/0509/whats_new/helicopter_everest.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EHelicopter%20on%20Everest%3C/a%3E%3Ca%20href%3D%22/adventure/0509/whats_new/next_weekend.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EWeekend%20Trip%20Ideas%3C/a%3E%3Ca%20href%3D%22/adventure/0509/whats_new/events_calendar.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ESeptember%20Events%3C/a%3E%3Ca%20href%3D%22%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3E%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/0509/gear/travel_bags_gear.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ETravel%20Bags%3C/a%3E%3Ca%20href%3D%22/adventure/0509/gear/adventure_filmmaking_gear.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EAdventure%20Filmmaking%3C/a%3E%3Ca%20href%3D%22/adventure/reviews/camping_gear.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EUser%20Reviews%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/0509/columns/peltons_world.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EPelton%27s%20Travel%20Advice%3C/a%3E%3Ca%20href%3D%22/adventure/0509/columns/there_back.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EThere%20+%20Back%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/0509/sports/paddling_big_sur.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EPaddling%20Big%20Sur%3C/a%3E%3Ca%20href%3D%22/adventure/0509/sports/rock_climbing.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ERock%20Climbing%20the%20Gunks%3C/a%3E%3Ca%20href%3D%22/adventure/0509/sports/rock_climbing2.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EU.S.%20Climbing%20Spots%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/servlet/Show%3FWESPAGE%3Dna/012804/joinin.html%26MSRSMAG%3DNA%26MSCCMPLX%3DADVTOP9%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ESubscribe%20Now%3C/a%3E%3Ca%20href%3D%22https%3A//secure.customersvc.com/wes/servlet/Show%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3ERenew%20Your%20Subscription%3C/a%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/Services/faq/nafaq.jsp%26MSRSMAG%3DNA%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EFrequently%20Asked%20Questions%3C/a%3E%3Ca%20href%3D%22%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%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%22/adventure/about_press.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EPress%20Inquiries%3C/a%3E%3Ca%20href%3D%22/adventure/about_internships.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EInternships%3C/a%3E%3Ca%20href%3D%22/adventure/about_writers.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EWriters%27%20Guidelines%3C/a%3E%3Ca%20href%3D%22/adventure/about_photographers.html%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3EPhotographers%27%20Guidelines%3C/a%3E%3Ca%20href%3D%22%22%20class%3D%22yellowNav%22%20onClick%3D%22%22%3E%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/0509/features/africa_kenya_walk.html'>Tim Cahill's Kenya Walk</A>
<A HREF='/adventure/0509/features/climbing_gunks_photo_gallery.html'>Gunks Climbing Photos</A>
<A HREF='/adventure/0509/features/snake_venom_doc.html'>Snake-Feeding Video</A>
<A HREF='/adventure/0509/features/reader_photo_gallery.html'>Reader Photo Album</A>
<A HREF=''></A>
<A HREF='/adventure/0509/trips/africa_botswana_zambia.html'>Best of Africa 2005</A>
<A HREF='/adventure/0509/trips/olympic_peninsula.html'>Wild Roads: Washington</A>
<A HREF='/adventure/0509/trips/world_class.html'>Borneo Jungle Safari</A>
<A HREF='/adventure/0509/trips/world_class2.html'>Crete Culinary Hiking Tour</A>
<A HREF='/adventure/0510/trips/world_class3.html'>Australia Trekking</A>
<A HREF='/adventure/0509/whats_new/reinhold_messner.html'>Reinhold Messner Controversy</A>
<A HREF='/adventure/0509/whats_new/helicopter_everest.html'>Helicopter on Everest</A>
<A HREF='/adventure/0509/whats_new/next_weekend.html'>Weekend Trip Ideas</A>
<A HREF='/adventure/0509/whats_new/events_calendar.html'>September Events</A>
<A HREF=''></A>
<A HREF='/adventure/0509/gear/travel_bags_gear.html'>Travel Bags</A>
<A HREF='/adventure/0509/gear/adventure_filmmaking_gear.html'>Adventure Filmmaking</A>
<A HREF='/adventure/reviews/camping_gear.html'>User Reviews</A>
<A HREF='/adventure/0509/columns/peltons_world.html'>Pelton's Travel Advice</A>
<A HREF='/adventure/0509/columns/there_back.html'>There + Back</A>
<A HREF='/adventure/0509/sports/paddling_big_sur.html'>Paddling Big Sur</A>
<A HREF='/adventure/0509/sports/rock_climbing.html'>Rock Climbing the Gunks</A>
<A HREF='/adventure/0509/sports/rock_climbing2.html'>U.S. Climbing Spots</A>
<A HREF='https://secure.customersvc.com/servlet/Show?WESPAGE=na/012804/joinin.html&MSRSMAG=NA&MSCCMPLX=ADVTOP9'>Subscribe Now</A>
<A HREF='https://secure.customersvc.com/wes/servlet/Show'>Renew Your Subscription</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/Services/faq/nafaq.jsp&MSRSMAG=NA'>Frequently Asked Questions</A>
<A HREF=''></A>
<A HREF='/adventure/about.html'>Contact Us</A>
<A HREF='/adventure/about_advertise.html'>Advertise With Us</A>
<A HREF='/adventure/about_press.html'>Press Inquiries</A>
<A HREF='/adventure/about_internships.html'>Internships</A>
<A HREF='/adventure/about_writers.html'>Writers' Guidelines</A>
<A HREF='/adventure/about_photographers.html'>Photographers' Guidelines</A>
<A HREF=''></A>
*/

