<!--
// -----------------------------------------------------------------------------------------
// NaviGate: builds a navigation bar based on variables
//           thisLanguage = "en"; // or "de" // or "cn"
//           thisNaviScreen = "publications"; // no match, no highlighting
// author: Jan Torres        21.08.2002
// author: Daniel Reiberg    02.09.2003 ("cn" language option introduced)
// author: Heinz Reutersberg 04.11.2003 (rebranding: gcr.com --> genre.com)
// author: Heinz Reutersberg 06.11.2003 (deactivate Product Development link in Chinese nav)
// author: Heinz Reutersberg 06.09.2004 (deactivate Product Development link in Chinese nav)
// author: Heinz Reutersberg 03.12.2004 (rename "ISC" --> "Consulting")
// author: Daniel Reiberg    22.12.2004 (set bgcolor="#12569B")
// author: Heinz Reutersberg 28.02.2008 (rename "KRisk2K" --> "KRisk")
// author: Heinz Reutersberg 28.02.2008 (rename "Helpful Tools", use all new links and labels)

// -----------------------------------------------------------------------------------------

// isProduction flag controls caching option in navigation links
// true: '/page/0,,ref=' in production environment to support caching
// false: '/page/1,,ref=' while in development (disables caching)
var isProduction = true; // set to false while in development phase
 
// Definition of navigational item
function NaviItem(name, level, caption, link, style) {
  this.name = name;       // unique ID to match with thisNaviScreen
  this.level = level;     // indentation
  this.caption = caption; // what is displayed
  this.link = link;       // the href-URL
  this.style = style;   // additional css formatting - only font-weight supported ('bold' ...)
}

var N = new Array();

N["en"] = new Array(); // English NaviItems array
NI = N["en"];

NI[NI.length] = new NaviItem("relatedlinks",              0, "Related Links",                             "",                                  "bold");
NI[NI.length] = new NaviItem("PRIME Course",       1, "PRIME Course", "IntPRIME-en", "");
NI[NI.length] = new NaviItem("catribuy",       1, "Contact GRI", "http://www.genre.com/officedir/OfficeDirectoryProfile/0,3052,site%253Dgcr-en%2526ref%253DOfficeDirectory-en%2526branchRef%253DHCL%2540Stamford-en,00.html?ContinentName=NorthAmerica", "");

//N["de"] = new Array(); // English NaviItems array
//NI = N["de"];

//NI[NI.length] = new NaviItem("relatedlinks",  0, "Related Links", "", "bold");
//NI[NI.length] = new NaviItem("PRIME Course",       0, "PRIME Course", "IntPRIME-en", "");
//NI[NI.length] = new NaviItem("catribuy",       0, "Contact GRI", "http://www.genre.com/officedir/OfficeDirectoryProfile/0,3052,site%253Dgcr-en%2526ref%253DOfficeDirectory-en%2526branchRef%253DHCL%2540Stamford-en,00.html?ContinentName=NorthAmerica", "");



//N["cn"] = new Array(); // English NaviItems array
//NI = N["cn"];

//NI[NI.length] = new NaviItem("relatedlinks",  0, "Related Links", "", "bold");
//NI[NI.length] = new NaviItem("PRIME Course",       0, "PRIME Course", "IntPRIME-en", "");
//NI[NI.length] = new NaviItem("catribuy",       0, "Contact GRI", "http://www.genre.com/officedir/OfficeDirectoryProfile/0,3052,site%253Dgcr-en%2526ref%253DOfficeDirectory-en%2526branchRef%253DHCL%2540Stamford-en,00.html?ContinentName=NorthAmerica", "");

//N["fr"] = new Array(); // English NaviItems array
//NI = N["fr"];

//NI[NI.length] = new NaviItem("relatedlinks",  0, "Related Links", "", "bold");
//NI[NI.length] = new NaviItem("PRIME Course",       0, "PRIME Course", "IntPRIME-en", "");
//NI[NI.length] = new NaviItem("catribuy",       0, "Contact GRI", "http://www.genre.com/officedir/OfficeDirectoryProfile/0,3052,site%253Dgcr-en%2526ref%253DOfficeDirectory-en%2526branchRef%253DHCL%2540Stamford-en,00.html?ContinentName=NorthAmerica", "");

NI = N[thisLanguage];

// -- NO EDITING BEYOND THIS LINE -- PLEASE
var bulletLoc = "/sharedfile/image/bullet.gif";
var spacerLoc = "/sharedfile/image/spacer11.gif";
var prevLevel = 0;


document.write(
  '<table width="100%" border="0" cellspacing="0" cellpadding="0" >\n' +
  ' <tr>\n' +
  '	<td >\n'); 

	  for(var i = 0; i < NI.length; i++) {
  iSpacerHeight = 3; // the default

  sLink = containsProtocol(NI[i].link)? NI[i].link:
  				isProduction? ('/page/0,,ref=' + NI[i].link + ',00.html'):
  											('/page/1,,ref=' + NI[i].link + ',00.html');
   if (NI[i].link == "" || NI[i].name == thisNaviScreen) {
  		sLinkOpen  = '<A class="URLMedium" HREF="' + sLink + '" >';
  	sLinkClose = '';
  }
  else {
  	sLinkOpen  = '<A class="URLMedium" HREF="' + sLink + '" >';
  	sLinkClose = '</A>';
  }

  switch (NI[i].level) {
  case 0:
    if (prevLevel!=0)
      document.write(
        ' <tr>\n' +
        '   <td width="15" ><img src="' + spacerLoc + '" border="0" height="6" width="1" /><p></p></td>\n' +
      ' </tr>\n' );
   document.write(
	   '<table width="100%" border="0" cellspacing="4" cellpadding="1"  class="gray_gradient_wSep" id="RightCol_25B">\n' +
		' <tr height="35" ><td colspan="2" valign="middle" ><span class="bluetitle11" >&#160;&#160;&#160;' + NI[i].caption + '</span><br/></td></tr>\n'  );
  
    break;

  case 1:
        
    document.write(
       ' <tr height="25">\n' +
     '   <td valign="bottom"><img src="' + spacerLoc + '" border="0" height="18" width="3" align="left" valign="bottom" /><img src="' + bulletLoc + '" border="0" align="absmiddle">' +
            		sLinkOpen + 
   
				NI[i].caption +
  
        	sLinkClose +
					
        	'</td>\n' +
      ' </tr>');

    break;

	 case 2:
        
    document.write(
       ' <tr height="25">\n' +
     '   <td align="right" width="25" valign="top" ><img src="' + bulletLoc + '" border="0"></td>\n' +
      '   <td  border="0"  align="left">' +
		
      		sLinkOpen + 
   
				NI[i].caption +
  
        	sLinkClose +
			
        	'</td>\n' +
      ' </tr>');

    break;
	
  default:
 if (prevLevel==0)
        document.write(
     ' <tr height="25">\n' +
    '   <td width="25" ><img src="' + spacerLoc + '" border="0" height="' + iSpacerHeight + '" width="1"></td>\n' +
    ' </tr>\n');
   	  document.write(
       ' <tr height="25">\n' +
    '   <td align="right" width="25" valign="top"><img src="' + bulletLoc + '" border="0"></td>\n' +
      '   <td border="0" class="textWhatsNew" align="left">' +
		  
      			sLinkOpen +
      		
      
					NI[i].caption +
        
        		sLinkClose +
					
        		'</td>\n' +
      ' </tr>\n');
   break;

  }
  prevLevel = NI[i].level;
}

	 // The closing ones ...
document.write(
 ' <tr>\n' +
 '   <td align="right"><img src="' + spacerLoc + '" border="0" height="6" width="1"><p>&nbsp;</p></td>\n' +
  ' </tr>\n' +
  '</table>\n');

document.write(
	'		</td>\n' +
  ' </tr>\n' +
  '</table>\n');

function nullValue(aValue, theDefault){
  return((aValue==null)? theDefault: aValue);
}

function containsProtocol(aURL){
  if (aURL.indexOf("http:") == 0) return true;
  if (aURL.indexOf("ftp:") == 0) return true;
  if (aURL.indexOf("mailto:") == 0) return true;
  if (aURL.indexOf("news:") == 0) return true;
  return false;
}
//-->

