
	var aNav = new Array;
	var aQuote = new Array;
	var aboutQuote = new Array;

	/***********************************************/
	/*           BEGIN NAVIGATION                  */
	/***********************************************/
	aNav["aboutus"] = "About Us";
	aNav["aboutus/ataglance.html"] = "At a Glance";		
	aNav["aboutus/work.html"] = "Our Work";
	aNav["aboutus/senior.html"] = "Our Senior Staff";
	//aNav["aboutus/people.html"] = "Our People";
	aNav["aboutus/employment"] = "Employment";
	aNav["aboutus/employment/careers.aspx"] = "Opportunities";
	//aNav["aboutus/employment/ongoing.aspx"] = "Positions - Ongoing";
	//aNav["aboutus/employment/seasonal.aspx"] = "Positions - Temporary";
	//aNav["aboutus/employment/freelance.aspx"] = "Positions - Freelance";
	aNav["aboutus/employment/benefits.html"] = "Benefits";
	aNav["aboutus/employment/nhliving.html"] = "NH Living";
	aNav["aboutus/news"] = "News and Media";
	aNav["aboutus/partners.html"] = "Partners";
	aNav["aboutus/conferences.html"] = "Exhibits & Conferences";
	aNav["aboutus/contactus.html"] = "Contact Us";
	
	aNav["assessments"] = "K-12 Assessments";
	aNav["assessments/largescale"] = "Large-Scale";
	aNav["assessments/largescale/general"] = "General Education";	
	aNav["assessments/largescale/general/clients.html"] = "Current Clients";
	aNav["assessments/largescale/general/faqs.html"] = "FAQs";
	aNav["assessments/largescale/special"] = "Special Education";
	aNav["assessments/largescale/special/clients.html"] = "Current Clients";
	aNav["assessments/largescale/special/assessment.html"] = "Assessment";
	aNav["assessments/largescale/special/consulting.html"] = "Consulting Services";
	aNav["assessments/largescale/special/research.html"] = "Research";
	aNav["assessments/largescale/special/software.html"] = "Software";	
	aNav["assessments/largescale/special/faqs.html"] = "FAQs";
	aNav["assessments/largescale/special/higherexpectations.html"] = "Newsletter";
	aNav["assessments/classroom"] = "Classroom";
	aNav["assessments/classroom/pts3"] = "PTS3";
	aNav["assessments/classroom/pts3/features.html"] = "Features";
	aNav["assessments/classroom/pts3/content.html"] = "Content";
	aNav["assessments/classroom/pts3/delivery.html"] = "Delivery";
	aNav["assessments/classroom/pts3/reporting.html"] = "Reporting";
	aNav["assessments/classroom/pts3/ordering.html"] = "Ordering";
	aNav["assessments/classroom/itembank.html"] = "Item Bank";
	aNav["assessments/classroom/one"] = "Integrated Offerings";
	aNav["assessments/online"] = "Online";
	aNav["assessments/online/server.html"] = "Server Architecture";
	aNav["assessments/online/security.html"] = "Security Features";
	aNav["assessments/online/administration.html"] = "Administration System";
	aNav["assessments/online/student.html"] = "Student Workstation";
	//aNav["assessments/online/proctor.html"] = "Proctor Workstation";
	aNav["assessments/clients"] = "Clients";
		
	aNav["employment"] = "Employment";
	aNav["employment/careers.aspx"] = "Opportunities";
	//aNav["employment/ongoing.aspx"] = "Positions - Ongoing";
	//aNav["employment/seasonal.aspx"] = "Positions - Temporary";
	//aNav["employment/freelance.aspx"] = "Positions - Freelance";
	aNav["employment/benefits.html"] = "Benefits";
	aNav["employment/nhliving.html"] = "NH Living";
	
	aNav["pd"] = "Professional Development";
	aNav["pd/programs"] = "Customized Programs";
	aNav["pd/workshops"] = "Workshops & Institutes";
	aNav["pd/one"] = "Integrated Offerings";
	aNav["pd/conferences"] = "Conference Sessions";
	aNav["pd/clients"] = "Clients";
	aNav["pd/alumni"] = "Alumni Sites";	
	aNav["pd/products"] = "Products and Resources";
	//aNav["pd/elc"] = "2007 Education Leadership Conference";
	//aNav["pd/products/partners.html"] = "Partners";
		
	aNav["resources"] = "Educational Resources";
	aNav["resources/education"] = "NCLB/Education Reform";
	aNav["resources/assessment"] = "General Assessment";	
	aNav["resources/inclusive"] = "Inclusive Assessment";
	aNav["resources/measurement"] = "Measurement Research";
	aNav["resources/scoring"] = "Scoring";
	aNav["resources/advisoryservices.html"] = "Advisory Services";
	aNav["resources/newsletter"] = "Our Newsletter";
	

	/***********************************************/
	/*               				BEGIN QUOTES                                   */
	/***********************************************/
	aQuote[0] = "\"If you study to remember, you will forget, but if you study to understand, you will remember.\"<br><div class='author'>Unknown</div>";
	aQuote[1] = "\"While we try to teach our children all about life, our children teach us what life is all about.\"<br><div class='author'>Angela Schwindt</div>";
	aQuote[2] = "\"Education is the best provision for old age.\"<br><div class='author'>Aristotle</div>";
	aQuote[3] = "\"It is the mark of an<br>educated mind to be able to entertain a thought without accepting it.\"<br><div class='author'>Aristotle</div>";
	aQuote[4] = "\"Education is what survives when what has been learned has been forgotten.\"<br><div class='author'>B. F. Skinner</div>";
	aQuote[5] = "\"I have never met a man so ignorant that I couldn't learn something from him.\"<br><div class='author'>Galileo Galilei</div>";
	aQuote[6] = "\"Even the best assessment does not improve instruction.<br>Teachers do.\"<br><div class='author'>Unknown</div>";
	aQuote[7] = "\"It is the supreme art of the teacher to awaken joy in creative expression and knowledge.\"<br><div class='author'>Albert Einstein</div>";
	aQuote[8] = "\"We cannot hold a torch to light another's path without brightening our own.\"<br><div class='author'>Ben Sweetland</div>";
	aQuote[9] = "\"Education is not the filling of a pail, but the lighting of a fire.\"<br><div class='author'>William Butler Yeats</div>";
	aQuote[10] = "\"America believes in education: the average professor earns more money in a year than a professional athlete earns in a whole week.\"<br><div class='author'>Evan Esar</div>";
	aQuote[11] = "\"The foundation of every state is the education of its youth.\"<br><div class='author'>Diogenes Laertius</div>";
	aQuote[12] = "\"Public education is an investment in our future.\"<br><div class='author'>Matt Blunt</div>";
	aQuote[13] = "\"Education costs money, but then so does ignorance.\"<br><div class='author'>Claus Moser</div>";
	aQuote[14] = "\"Education is the key to unlock the golden door of freedom.\"<br><div class='author'>George Washington Carver</div>";
	aQuote[15] = "\"Every truth has four corners: as a teacher I give you one corner, and it is for you to find the other three.\"<br><div class='author'>Confucius</div>";
	aQuote[16] = "\"The task of the modern educator is not to cut down jungles, but to irrigate deserts.\"<br><div class='author'>C. S. Lewis</div>";
	aQuote[17] = "\"No bubble is so iridescent or floats longer than that blown by the successful teacher. \"<br><div class='author'>Sir William Osler</div>";
	aQuote[18] = "\"The secret in education lies in respecting the student.\"<br><div class='author'>Ralph Waldo Emerson</div>";
	aQuote[19] = "\"Theories and goals of education don’t matter a whit if you do not consider your students to be human beings.\"<br><div class='author'>Lou Ann Walker</div>";
	aQuote[20] = "\"Great teachers empathize with kids, respect them, and believe that each one has something special that can be built upon.\"<br><div class='author'>Ann Lieberman</div>";
	aQuote[21] = "\"A child miseducated is a child lost.\"<br><div class='author'>John F. Kennedy</div>";
	aQuote[22] = "\"A miracle has happened! The light of understanding has shone upon my little pupil's mind, and behold, all things are changed.\"<br><div class='author'>Anne Sullivan</div>";
	aQuote[23] = "\"When you appeal to the highest level of thinking, you get the highest level of performance.\"<br><div class='author'>Jack Stack</div>";
	aQuote[24] = "\"The road to wisdom? Well, it's plain and simple to express: Err and err and err again but less and less and less.\"<br><div class='author'>Piet Hein</div>";
	aQuote[25] = "\"Those who trust us educate us.\"<br><div class='author'>George Eliot</div>";
	aQuote[26] = "\"Genius without education is like silver in the mine.\"<br><div class='author'>Benjamin Franklin</div>";
	aQuote[27] = "\"Our progress as a nation can be no swifter than our progress in education.\"<br><div class='author'>John F. Kennedy</div>";
	//aQuote[20] = "\"Quote\"<br><div class='author'>Author</div>";

	// Quotes Specific to About Us Section
	aboutQuote[0] = "\"The intention of the company is, always has been, and always will be to impact how well teachers can help students to learn. It's why we exist.\"<br><div class='author'>Kevin Sweeney<br>Measured Progress</div>";
	aboutQuote[1] = "\"Measured Progress gives us every opportunity to do the right thing.\"<br><div class='author'>Measured Progress Client</div>";
	aboutQuote[2] = "\"Every relationship I have with a client is personal.\"<br><div class='author'>Michael Ehringhaus<br>Measured Progress</div>";
	aboutQuote[3] = "\"Measured Progress leads in expertise, stability, and caring, top to bottom.\"<br><div class='author'>Measured Progress Client</div>";
	aboutQuote[4] = "\"We care that the assessment is going to be viewed by real people; some of them are only seven years old and some are high-school age. For all of these kids, it's a very real experience to actually be taking the test.\"<br><div class='author'>Dona Carling<br>Measured Progress</div>";
	aboutQuote[5] = "\"The greatest source of pride is that we've preserved the small company orientation&#151;the client and service orientation&#151;but more importantly, the commitment to students and teaching and learning.\"<br><div class='author'>Stuart Kahl<br>Measured Progress</div>";
	aboutQuote[6] = "\"Measured Progress always delivers and meets expectations; we're never disappointed.\"<br><div class='author'>Measured Progress Client</div>";
	aboutQuote[7] = "\"Measured Progress leads in partnering with states to achieve goals.\"<br><div class='author'>Measured Progress Client</div>";
	aboutQuote[8] = "\"The assessment community clearly looks to Measured Progress as experts.\"<br><div class='author'>Measured Progress Client</div>";
	aboutQuote[9] = "\"Measured Progress works with each client to figure out what's best for the client and the culture.\"<br><div class='author'>Measured Progress Client</div>";
	aboutQuote[10] = "\"We have confidence in Measured Progress's psychometric expertise and vision of assessments to drive positive change for students.\"<br><div class='author'>Measured Progress Client</div>";
	aboutQuote[11] = "\"We do understand&#151;more than any other vendor (or contractor) in the business&#151;what it really takes.\"<br><div class='author'>Rick Dobbs<br>Measured Progress</div>";
	aboutQuote[12] = "\"Clients feel they can get their questions answered by highly qualified testing experts without going through several layers of sales people.\"<br><div class='author'>Stuart Kahl<br>Measured Progress</div>";
	aboutQuote[13] = "\"Measured Progress is a company that understands what real student achievement is all about.\"<br><div class='author'>Measured Progress Client</div>";
	
		
	/******************************************/
	/* 				  DO NOT EDIT BELOW THIS LINE               */
	/******************************************/

	// Get the pathname of the document's location
	// When we go live remove the sTmp stuff
	var sRoot = document.location.host;
	var sPath = String(document.location.pathname);
	var sPrev = getQStringVal("prev");
	var sFile = '';
	var i=0;
	
	// Format Path Information
	sPath = sPath.toLowerCase();
	sPath = sPath.replace(/^\//, '');  // Remove leading slash
	sPath = sPath.replace(/\/$/, '');	 // Remove trailing slash

	// Added for employment fix
	if (sPath.indexOf("employment") > -1) sPath = sPath.replace("employment", "aboutus/employment");	
		
	//next line for debug
	//document.write("Path: " + sPath + "<br>");
		
	// Parse Path on forward slash
	var aPath = sPath.split("/");

	// If last item is not a file add index.html
	if (aPath.length > 0 && aPath[aPath.length-1].indexOf(".") < 0) {
		aPath.push("index.html");
	}
		
		
	/****************************************/
	/*			Function create Bread-Crumb Navigation        */
	/****************************************/
	function createNavTrail() {

		// Put together Navigation Trail
		var sPath = "";
		var sTrail = "";
		
		if (aPath.length > 0) {
			// First item is always Home
			sTrail = "<a href='/'>Home</a>";
			
			// Check for prev
			if (sPrev) sTrail += " | <a href='/" + sPrev + "'>" + aNav[sPrev] + "</a>";
			
			for (i=0; i<aPath.length-1; i++) {
				sPath += aPath[i];
				//document.write(i + ":" + sPath + "<br>");
				if (aNav[sPath]) {
					if (aPath[i+1].indexOf(".") < 0) {
						sTrail += " | <a href='/" + sPath + "'>" + aNav[sPath] + "</a>";
					} else {
						sTrail += " | " + aNav[sPath];
					}
				}
				sPath += "/";
			}
		}
		// Write Navigation Trail
		document.write(sTrail);
	}
	
	/*************************************/
	/*    	  			Function creates Side Nav            */
	/*************************************/
	function createSideNav() {
		var bStart = false;
		var nLvl = 0;
		var nLvlMax = 0;
		var sKeyHold = '';
		var nIndent = 0;
	
		document.write("<div id='sidenav'>");
		for (sKey in aNav) {
			if (sKey.indexOf(aPath[0]) == 0) {
				bStart = true;				
				aSplit = sKey.split("/"); 
				nCnt = aSplit.length;
	
				// Determine Indent
				for (i=0; i<nCnt; i++) {
					if (aSplit[i] == aPath[i]) {
						nLvl = i;
						nIndent = i;
					} else {
						nIndent = nLvl + 1;
						break;
					} 					
				}
				
				// Set Indent Class
				sClass = "navindent" + nIndent;
				
				// Set Max Indent 
				if (nLvl > nLvlMax) {
					nLvlMax = nLvl;
					sKeyHold = sKey;
				}
				
				// Write Nav
				if (nCnt - nIndent <= 1) {
					// Added for employment fix
					if (sKey.indexOf("aboutus/employment") > -1) sKey = sKey.replace("aboutus/employment","employment");
					document.write("<div class='" + sClass + "'>" + aNav[sKey].link("/"+sKey) + "</div>");
				}
	
			} else if (bStart) break;			
		}		
		document.write("</div>");

		// Added for employment fix
		if (sKeyHold.indexOf("aboutus/employment") > -1) sKeyHold = sKeyHold.replace("aboutus/employment", "employment");

		// Change color of currently selected file/directory
		oDiv = document.getElementById('sidenav').getElementsByTagName('DIV');
		for (i=0; i<oDiv.length; i++) {
			sHold = oDiv[i].innerHTML;	
			sHold = sHold.substring(sHold.indexOf('"')+2, sHold.lastIndexOf('"'));
			if (sHold == sKeyHold || nLvlMax == 0) {
				oDiv[i].childNodes[0].style.color = '#0099CC';
				break;	
			}		
		}
		document.write("<div style='margin-top:7px'><a href='/'>Home</a></div>");


		// Write Side Navigation
		//document.write(sNav);
		addSearch();
		getQuote();		
	}
	
	/**************************************/
	/* 	       Function writes quote in Side Nav          */
	/**************************************/
	function getQuote() {

		if (aPath[0] == "aboutus")
			document.write("<div class='quotes'>" + aboutQuote[getRnd(aboutQuote.length)] + "</div>");
		else
			document.write("<div class='quotes'>" + aQuote[getRnd(aQuote.length)] + "</div>");
		
		// Edit nav.css to change position, font, color, etc... of quote
	}
	
	
	/*********************************************/
	/*   Function returns a random number between 0 and UBnd */
	/*********************************************/
	function getRnd(nUBnd) {
		var nMultiplier = Math.pow(10, Math.floor(Math.log(nUBnd)/Math.log(10))+1);
		
		do {
			nRnd = Math.floor(Math.random() * nMultiplier);					
		} while(nRnd >= nUBnd);
		
		return nRnd;
	}

	
	/************************************************/
	/*   Function returns the Query String value for a given key      */
	/************************************************/
	function getQStringVal(sKey) {
		var qString = unescape(document.location.search.substring(1));
		var pairs = qString.split(/\&/);
		for (var i in pairs) {
			var keyVal = pairs[i].split(/\=/);
			if (keyVal[0] == sKey) return keyVal[1];
		} 
	}
	
	/***************************************/
	/*   Function adds Search capability to Side Nav     */
	/***************************************/
	function addSearch() {
		var str = '';
		// Edit nav.css to change position, font, color, etc... of quote
		str = "<div class='search'>"
		str += "<form method='GET' action='/search/searchmp.asp' name='Search'>";
		str += "<div align='left'><p>Search our site:<br>";
		str += "<table border='0' cellspacing='0' cellpadding='0'><tr><td align='top'>"
		str += "<input type='text' name='zoom_query' size='13' value=''></td><td align='middle' style='padding-left:2px'><input type='image' src='images/goberry.gif'></td></tr></table><input type='hidden' name='zoom_per_page' value='10'><input type='hidden' name='zoom_and' value='0'></p></div></form></div>";
		document.write("<br>"+str);
	}
	

	/**************************************/
	/* 						Functions for Rollovers                */
	/**************************************/
	
	function newImage(arg) {
		if (document.images) {
			rslt = new Image();
			rslt.src = arg;
			return rslt;
		}
	}
	
	function changeImages() {
		if (document.images && (preloadFlag == true)) {
			for (var i=0; i<changeImages.arguments.length; i+=2) {
				document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
			}
		}
	}
	
	var preloadFlag = false;
	function preloadImages() {
		if (document.images) {
			assessments_over = newImage("images/assessments-over.gif");
			pd_over = newImage("images/pd-over.gif");
			resources_over = newImage("images/resources-over.gif");
			aboutus_over = newImage("images/aboutus-over.gif");
			preloadFlag = true;
		}
	}
	