window.onload=function()
{
    nsidcLinkStyles();
    PathfindersLinkStyles();
    // add other functions to be called onload below
   
    writeCaption();
    window.setTimeout('cycle();',6000);
    (loadbanners());
    //(urlswitch()); // is this supposed to be doing something? doesn't look like any links coded for images, so this isn't needed
}

function PathfindersLinkStyles()
{
	var url = document.location.href;

// conditions for NOAA/NASA Polar Pathfinder navigation

// Overview-
	
	if(url.match(/\/pathfinders\/index.html/))
	{
		document.getElementById("navPathfinderOverview").className = "secondarySiteNavActiveNoSubnav";
		document.getElementById('navPathfinderOverview').innerHTML = 'Overview';
	}

// Grid Relationships
	if(url.match(/grid.html/))
	{
		document.getElementById("navPathfinderGridRelationships").className = "secondarySiteNavActiveNoSubnav";
		document.getElementById('navPathfinderGridRelationships').innerHTML = 'Grid Relationships';
	}

	
// Data Summaries
	if(url.match(/data_summaries.html/))
	{
		document.getElementById("navPathfinderDataSummaries").className = "secondarySiteNavActiveNoSubnav";
		document.getElementById('navPathfinderDataSummaries').innerHTML = 'Data Summaries';
	}

	
// Order Data
	
	if(url.match(/order_data.html/))
	{
		document.getElementById("navPathfinderOrder").className = "secondarySiteNavActiveNoSubnav";
		document.getElementById('navPathfinderOrder').innerHTML = 'Order Data';
	}
		
// if none of these conditions, do nothing
	
	else {}
	
}