// 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 table cells on the page...
	var cells = document.getElementsByTagName("td");
	
	//For every table cell on the page...
	for (i = 0; i < cells.length; i ++) {
		
		//If the cell contains a menu link...
		if (cells[i].className == "menu-link") {
			
			//If the menu link matched the current page...
			if (cells[i].innerHTML.indexOf(page) > 0) {
				
				//Add the css class to highlight the current page's menu item...
				cells[i].className = ("menu-link menu-current");
				
			}
			
		}
		
	}
	
}