<!--
var arrTopMenu = new Array();
arrTopMenu[0] = new Array(); arrTopMenu[0]['name'] = "About USMDG"; arrTopMenu[0]['link'] = "about.html"; arrTopMenu[0]['items'] = 'window.mm_about';
arrTopMenu[1] = new Array(); arrTopMenu[1]['name'] = "Client Solutions"; arrTopMenu[1]['link'] = "clients.html"; arrTopMenu[1]['items'] = 'window.mm_clients';
arrTopMenu[2] = new Array(); arrTopMenu[2]['name'] = "Reference Materials"; arrTopMenu[2]['link'] = "reference.html"; arrTopMenu[2]['items'] = 'window.mm_reference';

function drawRightMenu(mtable, mtop, mitem)
{
  var i, j;
  var tempRow;
  var tempCell;
  var tempElem;
  var tempNode;
  var mItems;
  
  var menuTable = document.getElementById(mtable);
  if (!menuTable) return;
  
  // menuTable.rows.length = 0;
  for (i = 0; i < arrTopMenu.length; i++)
  {
  	tempRow = menuTable.insertRow(menuTable.rows.length);
  	// "scroll" bars
  	tempCell = tempRow.insertCell(0);
  	setClass(tempCell, (i == mtop?(mitem==-1?'rMenuScrollOrange':'rMenuScrollLightOrange'):'rMenuScrollGrey'));
  	
  	tempCell = tempRow.insertCell(1);
  	setClass(tempCell, 'rMenuEmptyCell');
  	
  	tempCell = tempRow.insertCell(2);
	setClass(tempCell, (i == mtop?(mitem==-1?'rMenuMainSelected':'rMenuMainSubSelected'):'rMenuMainSubSelected'));
  	
  	tempElem = document.createElement('a');
    tempElem.setAttribute('href', arrTopMenu[i]['link']);
    tempElem.innerHTML = arrTopMenu[i]['name'];
    tempCell.appendChild(tempElem);
    
    // 2nd level links
    if (i == mtop)
    {
    	mItems = eval(arrTopMenu[i]['items']);
    	for (j = 0; j < mItems.items.length; j++)
    	{
    		tempRow = menuTable.insertRow(menuTable.rows.length);
      	// "scroll" bars
      	tempCell = tempRow.insertCell(0);
      	setClass(tempCell, 'rMenuScrollLightOrange');
      	
      	tempCell = tempRow.insertCell(1);
      	setClass(tempCell, (j == mitem?'rMenuScrollOrange':'rMenuScrollGrey'));
      	
      	tempCell = tempRow.insertCell(2);
      	setClass(tempCell, (j == mitem?'rMenuSubLink rMenuMainSelected':'rMenuSubLink'));
      	tempElem = document.createElement('a');
        tempElem.setAttribute('href', 'javascript:'+mItems.actions[j]);
        tempElem.innerHTML = mItems.items[j];
        tempCell.appendChild(tempElem);
    	}
    }
  }
}

function setClass(obj, val)
{
  obj.setAttribute('class', val);
  obj.setAttribute('className', val);
}

function mmLoadMenus()
{
  if (window.mm_about) return;
  // about  
  window.mm_about = new Menu("root",320,24,"Verdana, Arial, Tahoma",10,"#38506C","#38506C","#CFD8F9","#E2E7FB","left","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_about.addMenuItem("Mission, Philosophy and Social Impact", "location='mission.html'");
  mm_about.addMenuItem("Newsroom","location='newsroom.html'");
  mm_about.addMenuItem("Executive Management","location='management.html'");
  mm_about.addMenuItem("Country Partners","location='countryp.html'");
  mm_about.addMenuItem("Expert Network","location='network.html'");
  mm_about.addMenuItem("Advisory Council","location='council.html'");
  mm_about.addMenuItem("Established Industry Teams","location='eiteams.html'");
  mm_about.addMenuItem("History","location='history.html'");
  mm_about.addMenuItem("Photo album ","location='photoalbum.html'");

  mm_about.fontWeight="bold";
  mm_about.hideOnMouseOut=true;
  mm_about.bgColor='#B8BCE8';
  mm_about.menuLiteBgColor='#B8BCE8';
  mm_about.menuBorderBgColor='#B8BCE8';

  // clients
  window.mm_clients = new Menu("root",230,24,"Verdana, Arial, Tahoma",10,"#38506C","#38506C","#CFD8F9","#E2E7FB","left","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_clients.addMenuItem("Global Market Development", "location='mglobal.html'");
  mm_clients.addMenuItem("USA Market Development", "location='musa.html'");
  mm_clients.addMenuItem("Global Consulting", "location='globalcons.html'");
  mm_clients.addMenuItem("Client Success Stories", "location='csuccess.html'");
  mm_clients.addMenuItem("Established Industry Teams", "location='iteams.html'");
  mm_clients.addMenuItem("Client List", "location='clientlist.html'");
  mm_clients.addMenuItem("Presentations and Brochures", "location='presentations.html'");
  mm_clients.addMenuItem("Distribution & Logistics", "location='distribution.html'");
  
  mm_clients.fontWeight="bold";
  mm_clients.hideOnMouseOut=true;
  mm_clients.bgColor='#B8BCE8';
  mm_clients.menuLiteBgColor='#B8BCE8';
  mm_clients.menuBorderBgColor='#B8BCE8';

  // reference
  window.mm_reference = new Menu("root",250,24,"Verdana, Arial, Tahoma",10,"#38506C","#38506C","#CFD8F9","#E2E7FB","left","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_reference.addMenuItem("USMDG Case Studies","location='studies.html'");
  mm_reference.addMenuItem("White papers","location='white.html'");
  mm_reference.addMenuItem("Country Reports","location='countryr.html'");
  mm_reference.addMenuItem("Industry Data","location='industry.html'");
  mm_reference.addMenuItem("Web-Links","location='links.html'");

  mm_reference.fontWeight="bold";
  mm_reference.hideOnMouseOut=true;
  mm_reference.bgColor='#B8BCE8';
  mm_reference.menuLiteBgColor='#B8BCE8';
  mm_reference.menuBorderBgColor='#B8BCE8';
  
  mm_reference.writeMenus();
}
//-->
