function setCurrentMenuItem()
{
	var menuLinksArray = document.getElementById("menuWrapper").getElementsByTagName("a"); // Array of all links inside the menuWrapper
	for(var i=0; i < menuLinksArray.length; i++) // For each link inside the menuWrapper, ...
		if(menuLinksArray[i].href == window.location) // ... check if it is the same as the url of the current page
		{
			menuLinksArray[i].className = "current"; // If that is true, apply the .current styling on that link
		}
}

window.onload=function()
{
  setCurrentMenuItem(); // Initiate this function when the page loads
}
