// Function to highlight the current page...
function getCurrentPage() {
	
	//Get the current url...
	var url = new String(window.location);
	
	//Extract the current page name...
	var page = new String(url.substring(url.lastIndexOf("/") + 1));
	
	//Get all the links in the menu...
	var links = document.getElementById("page-menu").getElementsByTagName("a");
	
	//For every link in the menu...
	for (i = 0; i < links.length; i ++) {
		
		//If the menu link matched the current page...
		if (links[i].href.indexOf(page) > 0) {
			
			//Add the css class to highlight the current page's menu item...
			links[i].className = ("current");
			
		}
			
	}
	
}