 var lhnavid = 'nnmainnavleft'; //Constant
 ua = navigator.userAgent.toLowerCase(); an = navigator.appName.toLowerCase();
 ie4 = ie5 = ie6up = ns4 = ns6up = op5 = op6 = op7up = false;
 ieBrowser = (an.indexOf('microsoft internet explorer') != -1 && ua.indexOf('opera') == -1) ;
 nsBrowser = (an.indexOf('netscape') != -1 && ua.indexOf('opera') == -1);
 opBrowser = (ua.indexOf('opera') != -1);

 if ( ieBrowser ) {
   version = parseFloat(ua.substring(ua.indexOf('msie')+5 , ua.indexOf('msie')+9)); 
 } else if ( nsBrowser) {
   version = parseFloat(navigator.appVersion);
 } else if ( opBrowser ) {
   version = ua.indexOf('opera') + 5;
   while  ((version != 4) && (ua.charAt(version) == ' ' && version < ua.length) ) {
     version++;
   } //loop
   version = version != 4 && version < ua.length ? parseFloat(ua.substring(version,ua.length)) : 4;
 } //end if..Is Opera / IE / Netscape Browser?

 ie4 = ieBrowser && (version >=4 && version < 5); ie5 = ieBrowser && (version >=5 && version < 6);
 ie6up = ieBrowser && (version >=6);
 ns4 = nsBrowser && (version >=4.0 && version <5.0); ns6up = nsBrowser && (version >=5);
 op5 = opBrowser && (version < 6.0 && version >=5.0); op6 = opBrowser && (version >=6.0 && version <7.0); op7up = opBrowser && (version >=6.0);

  function showNavOnThisPage() {
  var iI, iNumNavRows, iThisProgI; var oHtmlRow;
  oHtmlRow = null; iThisProgI = 0;
    if ( !ns4 ) {
      if ( ie4 ) {
        iNumNavRows = document.all.nnmainnavleft.all.tags('TR').length;
      } else if ( ie5 || ie6up || ns6up || op6 || op7up ) {
        iNumNavRows = document.getElementById('nnmainnavleft').getElementsByTagName('TR').length;  
      }

      for (var iI=0; iI < iNumNavRows; iI++) {
        if ( ie4 ) {
          oHtmlRow = document.all.nnmainnavleft.all.tags('TR').item(iI);
        } else if ( ie5 || ie6up || ns6up || op6 || op7up ) {
          oHtmlRow = document.getElementById('nnmainnavleft').getElementsByTagName('TR').item(iI);  
        }
        if ( (ie4 || ie5 || op6 || op7up)  && oHtmlRow.className == 'navlinktxt') {
	//I might be able to roll in the IE5 cod einto this browser dependant code fork
          if (++iThisProgI == self.thisprog) {//If yes, then we've found the prog-
	                                          //ramme nav row for this page.&Icirc;
              if ( ie4 || ie5 ) {
                oHtmlRow.style.backgroundColor = '#000000';
			  } else {
                oHtmlRow.all.item(0).style.backgroundColor = '#000000';
			  }			  
              break;//Distinguish this nav box by making border black then job done.
          } //end if..Is this the row whose border is to be made black.
        } //end if..Is this row  a 'class="navlinktxt"' i.e. is it a white border?
        //Do the same for Internet Explorer 5 and 6
        if ( ie6up  && oHtmlRow.currentStyle.backgroundColor.indexOf('ffffff') != -1) {
          if (++iThisProgI == self.thisprog) {//If yes, then we've found the prog-
	                                          //ramme nav row for this page.
            oHtmlRow.style.backgroundColor = '#000000';
            break;//Distinguish this nav box by making border black then job done.
          } //end if..Is this the row whose border is to be made black.
        } //end if..Is this row  a 'class="navlinktxt"' i.e. is it a white border?
        //Do the same for Netscape 6
	    if ( ns6up && oHtmlRow.getAttribute('class') == 'navlinktxt') {
          if (++iThisProgI == self.thisprog) {//If yes, then we've found the prog-
	                                          //ramme nav row for this page.
            oHtmlRow.setAttribute('class','shownavonthis');
            break;//Distinguish this nav box by making border black then job done.
          } //end if..Is this the row whose border is to be made black.
        } //end if..Is this row  a 'class="navlinktxt"' i.e. is it a white border?
      } // next iI
    } //End if..Is NOT Netscape 4?
  } //End function
  
