// 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 = [['/ntslf/','/ntslf/','Home','National Tidal and Sea Level Facility team home page',0,],
        ['/ntslf/about.html','/ntslf/about.html','About us','About the NTSLF'],
		['/ntslf/networks.html','/ntslf/networks.html','Sea level networks','More about the UK and other sea level networks',0,],
		['/ntslf/data.html','/ntslf/data.html','Data availability','Sea level data available'],
		['/ntslf/tidalp.html','/ntslf/tidalp.html','Tidal predictions','Get tidal predictions from the NTSLF'],
		['/ntslf/products.php','/ntslf/products.php','Products','Sea level data products'],
		['/ntslf/model.html','/ntslf/model.html','Numerical modelling','Numerical Modelling'],
		['/ntslf/software.html','/ntslf/software.html','Software','Software available from the NTSLF'],
		['/ntslf/sharing_knowledge.php','/ntslf/sharing_knowledge.php','Sharing knowledge','Sharing knowledge with the NTSLF'],
        ['/ntslf/reports.html','/ntslf/reports.html','Reports','NTSLF reports',0,]];



//document.writeln('<table border="0" cellpadding="2" cellspacing="0" align="center"><tr><td><div>');
nvbr(Lnks);
//document.writeln('</div></td></tr></table>');
