//This is the navigation master file. it must be called on all pages that use the navigation or try to set navigation
//When adding items to the navigation, you must increase the variable listed below, so that the function knows
//to pull more cookies from the users browser. This is a global variable, so it only needs to be edited here.

var numLinks = 100;

//DISPLAYING THE NAVIGATION

//setting a function to pull cookies and unescape them
function get_cookie(cookie_name)
{
  var results = document.cookie.match ( cookie_name + '=(.*?)(;|$)' );

  if ( results )
    return ( unescape ( results[1] ) );
  else
    return null;
}

//getting prior navigation preferences as global variables, if no prior settings, sets all variables to null (ON). 

var linkStatus = new Array()

for (x=0; x<numLinks; x++) {
	 linkStatus[x] = get_cookie("Link"+[x]+"Second");
}
