All scripts require MooTools 1.2.x unless otherwise stated.

Highlight current page in navigation

If you can't use PHP or ASP etc to set the selected pages to have a different class, this bit of Javascript will do it for you. The following will add a class of "selected" on the correct a tags

window.addEvent('domready', function() {
    $$('a').each(function(el) {
        if(el.getAttribute('href') == location.pathname) { 
            el.addClass('selected'); 
        }
    });
});

If you have your navigation items in an ID called "navigation" you could use something as follows

window.addEvent('domready', function() {
    $$('#navigation a').each(function(el) {
        if(el.getAttribute('href') == location.pathname) { 
            el.addClass('selected'); 
        }
    });
});