/** Adds a marker for the currently active page, if possible. */
if ($("#left").length > 0) {
    var links = $("#left a");
    var page = new String(document.location);
    page = page.replace(/http:\/\/[^\/]*/, "");
    page = page.replace(/\?.*/, "");
    page = page.replace(/#.*/, "");
    links.each(function(index, item) {
        var ref = $(item).attr("href");
        if (ref == page) 
            $(item).addClass("active");
    });
}

