// JavaScript Document
//The selected will have class= class+Selected and the id must = pageLink.
var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
if(document.getElementById(sPage) != null){
    document.getElementById(sPage).className = document.getElementById(sPage).className + 'Selected';
}