  var sectionsList = new Array(
'1000	<=>	1		<=>	1 			<=> 005D9D');
  var subSectionList = new Array(
'1001	<=>	technology		        <=>	Technology.htm		<=>	urlpath',
'1002	<=>	corporate/government	<=>	Corporate.htm		<=>	urlpath',
'1003	<=>	consumer/travel		    <=>	Consumer.htm	    <=>	urlpath'
  );
 //var urlPre = "http://cms.bm.com/BmCms/ShowPage?target=";
  var urlRoot = "/";
  var urlPre = urlRoot + "pages/";
  var urlSuff = "";
  // for the news section
  var currentNewsYear = "2004";
  var sectionsArr = new Array();
  var subSectionsArr = new Array();

  for (i=0;i<sectionsList.length;i++){
		var sectionsplit = sectionsList[i].replace(/[\t*]/g,'').split("<=>");
		sectionsArr[i] = new createSection(sectionsplit[0].replace(/\s/g,''),sectionsplit[1].replace(/\s+/g,' '),sectionsplit[2].replace(/\s/g,''),sectionsplit[3].replace(/\s/g,''));
		subSectionsArr[eval(sectionsplit[0])] = new Array();
  }
  var currentsect, j;
  for (i=0;i<subSectionList.length;i++){
	var subSectionsplit = subSectionList[i].replace(/[\t*]/g,'').split("<=>");
	if(subSectionsplit[0].replace(/\s/g,'').substring(0,1) != currentsect){
		currentsect = subSectionsplit[0].replace(/\s/g,'').substring(0,1);
		j=0
	}else{
		j++;
	}
//alert(subSectionsplit[0].replace(/\s/g,'')+subSectionsplit[1].replace(/\s+/g,' ')+subSectionsplit[2].replace(/\s/g,'')+subSectionsplit[3].replace(/\s/g,''));
	subSectionsArr[eval(subSectionsplit[0].replace(/\s/g,'').substring(0,1)+'000')][j] = new createSubSection(subSectionsplit[0].replace(/\s/g,''),subSectionsplit[1].replace(/\s+/g,' '),subSectionsplit[2].replace(/\s/g,''),subSectionsplit[3].replace(/\s/g,''));

  }
  
  
  function createSection(id, name, shortname, colorCode) { 
    this.id = id;
    this.name = name;
    this.shortname = shortname;
    this.colorCode = colorCode;
  }

  function createSubSection(id, name, shortname, target) {
    this.id = id;
    this.name = name;
    this.shortname = shortname;
    this.target = target;
  }

  function displaySubMenu(currentID, highliteID) {
    for (var i = 0; i < sectionsArr.length; i++) {
      if (sectionsArr[i].id == currentID){
	  	   sectionShortName = sectionsArr[i].shortname;
   		   sectionName = sectionsArr[i].name;
		}
    }
	//document.write('<span class="leftnavTitle">'+sectionName+'</span><br><br>');
    for (var i = 0; i < subSectionsArr[currentID].length; i++) {
	// remove any forced line breaks
	var lineBr = new RegExp ('<br>', 'gi');
		if ((subSectionsArr[currentID][i].shortname).indexOf("http://")==0) {
	      		document.write( ""
			);
		} else if ((subSectionsArr[currentID][i].name) != "&nbsp;") {
      			//document.write("<span class=td><a href=\"" + urlPre + sectionShortName + "\/" + subSectionsArr[currentID][i].shortname + urlSuff + "\" class=\"leftnavHi" + ((subSectionsArr[currentID][i].id == highliteID) ? "Current" : "") + "\">" + subSectionsArr[currentID][i].name.replace(lineBr,' ') + "</a></span><br><br>");
      			document.write("<span class=td><a href=\"" + subSectionsArr[currentID][i].shortname + urlSuff + "\" class=\"leftnavHi" + ((subSectionsArr[currentID][i].id == highliteID) ? "Current" : "") + "\">" + subSectionsArr[currentID][i].name.replace(lineBr,' ') + "</a></span><br><br>");

		}
    }
  }


QueryString_Parse();