function locationFunction () {
	//get the URL of the current page, convert it to a string and make the string lowercase	
	var location = window.location
	location = location.toString()
	location = location.toLowerCase()
	// alert(location)
	
	// define a new array to contain the pairs necessary to identify the current directory and corresponding div
	splashImage = new Array();
	
	// directory is a string containing the name of the directory each section of the site is contained in, framed by slashes
	// menuLink is a string containing the unique id of the <a> tag that the menuCurrentLoc class  needs to be applied to
	splashImage[0] = new Object();
			splashImage[0].directory = "/company_profile/"; 
			splashImage[0].menuLink = "navCompanyProfile";
			
	splashImage[1] = new Object();
			splashImage[1].directory = "/industries_markets/"; 
			splashImage[1].menuLink = "navIndustriesMarkets";
	
	splashImage[2] = new Object();
			splashImage[2].directory = "/capabilities/"; 
			splashImage[2].menuLink = "navCapabilities";
			
	splashImage[3] = new Object();
			splashImage[3].directory = "/services/"; 
			splashImage[3].menuLink = "navServices";
			
	splashImage[4] = new Object();
			splashImage[4].directory = "/case_studies/"; 
			splashImage[4].menuLink = "navCaseStudies";
			
	splashImage[5] = new Object();
			splashImage[5].directory = "/facilities_equipment/"; 
			splashImage[5].menuLink = "navFacilitiesEquipment";
			
	splashImage[6] = new Object();
			splashImage[6].directory = "/news/"; 
			splashImage[6].menuLink = "navClientBulletins";
	
    
	// initiate a for loop to cycle through the array of site directories
	for (var i=0; i < splashImage.length; i++) {
	
	// move through the array, checking if the .directory element string is present in the URl of the current page  
	if 	(location.match(splashImage[i].directory))  { 
		// change the class of the corresponding menu item if it matches the current directory
	    document.getElementById(splashImage[i].menuLink).className="menuCurrentLoc";
		return;
	}
	
	}
	
}
