// ********************************* 
// DROP DOWN MENU (c) Henrik Petersen / NetKontoret 1998 - All rights reserved 
// http://www.echoecho.com/javascript.htm
// ****************************************** 
function targetwindow(ref, target)
{
lowtarget=target.toLowerCase();
if (lowtarget=="_self") {window.location=loc;}
else {if (lowtarget=="_top") {top.location=loc;}
else {if (lowtarget=="_blank") {window.open(loc);}
else {if (lowtarget=="_parent") {parent.location=loc;}
else {parent.frames[target].location=loc;};
}}}
}

function jump(menu)
{
	ref=menu.choice.options[menu.choice.selectedIndex].value;
	splitc=ref.lastIndexOf("*");
	target="";
	if (splitc!=-1) {
		loc=ref.substring(0,splitc);
		target=ref.substring(splitc+1,1000);
	}
	else {
		loc=ref; target="_self";
	}
	if (ref != "") {
		targetwindow(loc,target);
	}
}

function load_listnames()
{
	var namelist = new Array(
		new Array("Marianne Alford", "/ngi/about/personnel/profiles/alford1.html"),
		new Array("Sibel Bargu Ates", "/ngi/about/personnel/profiles/bargu1.html"),
		new Array("Joe Baustian", "/ngi/about/personnel/profiles/baustian1.html"),
		new Array("Azure Bevington", "/ngi/about/personnel/profiles/bevington1.html"),
		new Array("Jaye E. Cable", "/ngi/about/personnel/profiles/cable1.html"),
		new Array("James H. Cowan Jr.", "/ngi/about/personnel/profiles/cowan1.html"),
		new Array("Jessica L. Czubakowski", "/ngi/about/personnel/profiles/czubakowski1.html"),
		new Array("Anindita Das", "/ngi/about/personnel/profiles/das1.html"),
		new Array("Padmanava Dash", "/ngi/about/personnel/profiles/dash1.html"),
		new Array("John W. Day Jr.", "/ngi/about/personnel/profiles/day1.html"),
		new Array("Brian Fry", "/ngi/about/personnel/profiles/fry1.html"),
		new Array("Ana Cristina Garcia", "/ngi/about/personnel/profiles/garcia1.html"),
		new Array("Sara E. Green", "/ngi/about/personnel/profiles/green1.html"),
		new Array("Aixin Hou", "/ngi/about/personnel/profiles/hou1.html"),
		new Array("Dubravko Justic", "/ngi/about/personnel/profiles/justic1.html"),
		new Array("Carola Kaiser", "/ngi/about/personnel/profiles/kaiser1.html"),
		new Array("Robert R. Lane", "/ngi/about/personnel/profiles/lane1.html"),
		new Array("Pete L. Lenaker", "/ngi/about/personnel/profiles/lenaker1.html"),
		new Array("Chunyan Li", "/ngi/about/personnel/profiles/li1.html"),
		new Array("Katja Loffler", "/ngi/about/personnel/profiles/loffler1.html"),
		new Array("Brian Matherne", "/ngi/about/personnel/profiles/matherne1.html"),
		new Array("Irving Mendelssohn", "/ngi/about/personnel/profiles/mendelssohn1.html"),
		new Array("Philip Riekenberg", "/ngi/about/personnel/profiles/riekenberg1.html"),
		new Array("Kenneth Rose", "/ngi/about/personnel/profiles/rose1.html"),
		new Array("Eurico J D'Sa", "/ngi/about/personnel/profiles/sa1.html"),
		new Array("Richard F. Shaw", "/ngi/about/personnel/profiles/shaw1.html"),
		new Array("Gregory W. Stone", "/ngi/about/personnel/profiles/stone1.html"),
		new Array("Malinda Sutor", "/ngi/about/personnel/profiles/sutor1.html"),
		new Array("Erick M. Swenson", "/ngi/about/personnel/profiles/swenson1.html"),
		new Array("R. Eugene Turner", "/ngi/about/personnel/profiles/turner1.html"),
		new Array("Robert R. Twilley", "/ngi/about/personnel/profiles/twilley1.html"),
		new Array("Benjamin Von Korff", "/ngi/about/personnel/profiles/vonkorff1.html"),
		new Array("Nan D. Walker", "/ngi/about/personnel/profiles/walker1.html"),
		new Array("John White", "/ngi/about/personnel/profiles/white1.html") /*no comma here!*/
	);
	
	form = document.forms['selectnames'];  /*retrieve the name of the form (name="selectnames")*/

	var index = -1;
	for (i = 0; i < namelist.length; i++) {
		form.choice.options[i] = new Option(namelist[i][0]);		//fill the combobox - use the name of the combobox (name="choice")
		form.choice.options[i].value = namelist[i][1]; 				//[0] = name; [1] = value (URL)
//		preselect the correct name in the combobox; var 'pagename' is defined on each html page
		if ('/ngi/about/personnel/profiles/' + pagename + '.html'== namelist[i][1])
		{
			index = i;
		}
	}
	if (index != -1)
	{
		form.choice.selectedIndex = index;
	}
}
