// 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('<span class="greytext">'+Lnks[i][2]+'</span>');
    }
    else {
      document.write('<a href="'+Lnks[i][0]+'"  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 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 = [['http://simplycolour.co.uk/tc.html','http://simplycolour.co.uk/tc.html','Terms & conditions','Terms & conditions',1,2],
        ['http://simplycolour.co.uk/contact.html','http://simplycolour.co.uk/contact.html','Contact','Contact Simply Colour Decorating',0,0]];



document.writeln('<table border="0" cellpadding="2" cellspacing="0" align="center"><tr><td><div>');
nvbr(Lnks);
document.writeln('</div></td></tr></table>');
