// END NAVIGATION BAR is the Same as TOP NAVIGATION BAR, except include copyright, disclaimer and Site Map, and no FastLink
// NB topnavbr.js MUST have previously been called

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('<span class="greytext">'+Lnks[i][2]+'</span>');
    }
    else {
      document.write('<a href="'+Lnks[i][0]+'" class="navbar" accesskey="'+Lnks[i][6]+'" onmouseover="window.status=\''+Lnks[i][3]);
      document.write('\'; return true" onMouseOut="window.status=\'\'; return true">'+Lnks[i][2]+'</a>');
    }
    if (Lnks[i][5] == 1) document.writeln('&nbsp;');
    if (Lnks[i][5] == 2) document.writeln(' |');
  }
}

var lLnk = rLnk = new Array();


lLnk =  [['/home/admin/copyright.html','null','Copyright','POL copyright statement',1,2,8],
		 ['/home/admin/foi.html','null','Freedom of Information','Freedom of information',0,2],
		 ['/home/admin/accessibility.html','/home/admin/accessibility.html','Accessibility','Accessibility keys',0,2,0],
        ['/home/admin/disclaimer.html','/home/legal/disclaimer.html','Disclaimer','Disclaimer statement',0,0,7]];
rLnk = [['/home/contact.htm',null,'Contact us','How to get in touch with us',0,0,9]];



document.writeln('<table width="100%" border="0" cellpadding="2" cellspacing="0" align="center"><tr><td class="bluebkg"><div class="whitetext">');
nvbr(lLnk);
document.writeln('<br /></div></td><td class="bluebkg"><div class="whitetext" align="right">');
nvbr(rLnk);
document.writeln('</div></td></tr></table>');
