function drawNav(){

	var aboutNav = new Array("_about",
				"Overview=index.shtml",
				"History=history.shtml",
				"Contact Us=contact.shtml"
				);

				
	var whoNav = new Array("_who",
				"Research Affiliates=#",
				"Support Staff=#",
				"Fellows=#",
				"Visitors and Postdocs=#",
				"Executive Committee=#",
				"UW Centers and Programs=#",
				"Other Links=#",
				"Alpha Directory=#"
				);

				
	var researchNav = new Array("_research",
					"Research Affiliates=#",
					"Economic Development and Demographic Change=#",
					"Family Demography=#",
					"Health and Biodemography=#",
					"Inequality: Diversity and Opportunity=#",
					"Population and the Environment=#"
					);

				
	var servicesNav = new Array("_services",
    			"Administration=#",
    			"Computing=#",
    			"Information=#",
    			"Laboratory=#",
    			"Statistical Consulting=#",
    			"Partner Services=#"
    			);

	
	var trainingNav = new Array("_training",
    			"CSDE Fellowships=#",
    			"Courses=#",
    			"Training Workshops=#",
    			"Conferences=#",
    			"Employment=#",
    			"Funding Opportunities=#"
    			);

				
	var eventsNav = new Array("_events",
    			"Spotlight=#",
    			"Seminar Series=#",
    			"Workshops and Events=#",
    			"Working Papers=#",
    			"Recent Publications=#",
    			"Funding Opportunities=#",
    			"Employment Opportunities=#"
    			);

				
	var navs = new Array(aboutNav,whoNav,researchNav,servicesNav,trainingNav,eventsNav);
	
	var myLoc = (document.location + "")
	var myTitle = document.title
	
	for(var i=0; i< navs.length; i++){
	
		thisDir = "/index.php" + navs[i][0] + "/";
		
		var dirReg = eval("/" + navs[i][0] + "/");
		
		if(myLoc.match(dirReg)){
	
			for(var j=1; j<navs[i].length; j++){
				
				thisLink = navs[i][j];
				var thisList = thisLink.split("=");
				
				var titleReg = eval("/" + thisList[0] + "/");
			
				if(myTitle.match(titleReg)){
					document.write("<a href='" + thisDir + thisList[1] + "' class='nav' style='color: #cc0000'>" + thisList[0] + "</a><br><br>");
					}
				else{
					document.write("<a href='" + thisDir + thisList[1] + "' class='nav' style='color: #000000'>" + thisList[0] + "</a><br><br>");
					}
		
				}
			}
		}
	}
