// *****************************************************************************
// **                                SETTINGS                                 **
// *****************************************************************************

// 'linka' use this if part of the URL is the same in ALL the links
// In this example all the files are in a subfolder called 'pages'
linka='';

// get the filename
var pathfrag = document.location.pathname;
var frag = pathfrag.split('/');
frag.reverse();
thisPage=frag[0];

// Do you want to use images for the category bullets?
// If so then specify the path to your images folder from the menu page
imgPath='images/';

// do you want to use images for the category bullets?
lev1img='yes';					// insert yes or no

// give image names and dimensions
lev1OpName='v_green_arrow.gif';			// open image name
lev1OpHeight='4';				// image height
lev1OpWidth='9';				// image width

lev1ClosName='h_grey_arrow.gif';		// closed image name
lev1ClosHeight='7';			// image height
lev1ClosWidth='9';				// image width

// do you want to use images for the sub-category bullets?
lev2img='no';		// insert yes or no

// give image names and dimensions
lev2Name='';			// image name
lev2Height='';				// image height
lev2Width='';					// image width

// do you want to use a text character for the sub-category bullets?
lev2Char='no';		// insert yes or no

// set bullet character for level 2 bullets
bullet = '&#155; ';

// base target - the frame that the links are targetting
base = '';

// *****************************************************************************
// **                             END OF SETTINGS                             **
// *****************************************************************************

// pulls 'page' variable out of URL - do not alter
	var x = 0
	page = location.search.substr(1).split("?")
	for (x=0;x<=page.length;x++) {
		eval(page)
		}
page = escape(page);
page = page.slice(7);

// do not alter this bit
function subMenu(name,linkb) {
 this.name = name;
 this.linkb = linkb;
}
document.write('<BASE target="' + base + '">');

// *****************************************************************************
// **                             BUILD MENU DATA                             **
// *****************************************************************************

// Investor Relations
if (page=='inv') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;&nbsp;&nbsp;Item # 1','#');
thisMenu[1] = new subMenu('&nbsp;&nbsp;&nbsp;Item # 2','#');
thisMenu[2] = new subMenu('&nbsp;&nbsp;&nbsp;Item # 3','#');
}

// About Morgan Stanley
if (page=='about') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;&nbsp;&nbsp;Awards','awards/index.html?page=about');
thisMenu[1] = new subMenu('&nbsp;&nbsp;&nbsp;Facts','facts/index.html?page=about');
thisMenu[2] = new subMenu('&nbsp;&nbsp;&nbsp;Inside','inside/index.html?page=about');
}

// Pressroom
if (page=='press') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;&nbsp;&nbsp;Press Release Archive','pressroom/index.html?page=press');
}

// Diversity
if (page=='div') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;&nbsp;&nbsp;Item # 6','#');
thisMenu[1] = new subMenu('&nbsp;&nbsp;&nbsp;Item # 7','#');
thisMenu[2] = new subMenu('&nbsp;&nbsp;&nbsp;Item # 8','#');
}

// Philanthropy
if (page=='phil') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;&nbsp;&nbsp;Item # 9','#');
thisMenu[1] = new subMenu('&nbsp;&nbsp;&nbsp;Item # 10','#');
thisMenu[2] = new subMenu('&nbsp;&nbsp;&nbsp;Item # 11','#');
}

// Events
if (page=='eve') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;&nbsp;&nbsp;Item # 12','#');
thisMenu[1] = new subMenu('&nbsp;&nbsp;&nbsp;Item # 13','#');
thisMenu[2] = new subMenu('&nbsp;&nbsp;&nbsp;Item # 14','#');
}

// Proxy Voting
if (page=='prox') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;&nbsp;&nbsp;Item # 15','#');
thisMenu[1] = new subMenu('&nbsp;&nbsp;&nbsp;Item # 16','#');
thisMenu[2] = new subMenu('&nbsp;&nbsp;&nbsp;Item # 17','#');
}
