// TOP BANNER NAVIGATION BAR
// NB FastLink used instead of sitemap

function nvbr(Lnks) {
  var isCurrent = false;
  for (var i = 0; i < Lnks.length; i++) {
    isCurrent = (Lnks[i][1] == null) ? (location.pathname == Lnks[i][0]) : (location.pathname == Lnks[i][0] || location.pathname == Lnks[i][1]);
    if (Lnks[i][4] == 1) document.write('&nbsp;');
//  if (isCurrent) {
    if ((isCurrent) || (Lnks[i][0] == null)) {
	  document.write('<a href="'+Lnks[i][0]+'"  title="'+Lnks[i][2]+'" onmouseover="window.status=\''+Lnks[i][3]);
      document.write('\'; return true" onMouseOut="window.status=\'\'; return true"><span class="redtext">'+Lnks[i][2]+'</span></a>');
      
    }
    else {
      document.write('<a href="'+Lnks[i][0]+'"  title="'+Lnks[i][2]+'" onmouseover="window.status=\''+Lnks[i][3]);
      document.write('\'; return true" onMouseOut="window.status=\'\'; return true">'+Lnks[i][2]+'</a>');
    }
}
}

var Lnks = new Array();

// Change contents of arrays of Lnks 
// 0, 1 - links; 2 - title; 3 - status; 4, 5: code (0)=nothing, (1)='&nbsp;', (2)='|' 
// ----------------------------------------------------------------------------------


Lnks = [['/psmsl/','/psmsl/','Home','Permanent Service for Mean Sea Levels home page',0,],
		['/psmsl/whatispsmsl.html','/psmsl/whatispsmsl.html','About us','About the PSMSL'],
		['/psmsl/datainfo/','/psmsl/datainfo/','Obtaining &amp; supplying data','Obtaining sea level data'],
		['/psmsl/highfreq.html','/psmsl/highfreq.html','Obtaining higher frequency data','Obtaining high frequency dea level data'],
		['/psmsl/programmes/','/psmsl/programmes/','Networks &amp; programmes','Sea level networks'],
		['/psmsl/sea_level_contacts.html','/psmsl/sea_level_contacts.html','Sea level contacts','Sea level contacts'],
		['/psmsl/landmove.html','psmsl/landmove.html','Vertical land movements','Vertical land movements'],
		['/psmsl/training/','psmsl/training/','Sea level training','Sea level training'],
		['/psmsl/commentaries/','psmsl/commentaries/','PSMSL commentaries','Commentaries of records in the data set'],
        ['/psmsl/author_archive/','/psmsl/author_archive/','Author archive','Author archive'],
        ['/psmsl/puscience/','/psmsl/puscience/','FAQs','Frequently asked questions'],
        ['/psmsl/calibrations/index.html','/psmsl/calibrations/index.html','GLOSS/ODINAfrica calibrations','GLOSS/ODINAfrica calibrations',0,]];



//document.writeln('<table border="0" cellpadding="2" cellspacing="0" align="center"><tr><td><div>');
nvbr(Lnks);
//document.writeln('</div></td></tr></table>');

