// Looks at path to document and generates complete URL to the 
// document based on the document's location in the directory
// structure.  The URL will load the page within the proper
// frameset.

var baseURL = "http://www.nationalgeographic.com/seas/"

thisHREF = document.location.href;
thisHREF = thisHREF.substring(baseURL.length,thisHREF.length);
thisHREF = thisHREF.replace(/html\//,"");
thisHREF = thisHREF.replace(/\//g,":");
thisHREF = thisHREF.replace(/.html/,"");
thisHREF = baseURL + "index.html?" + thisHREF;
