﻿// dirty code :(
$(document).ready(function () {
    var theDate = new Date();
    var theFile;

    if (getFileName() == "index.html" || getFileName() == "") {
        theFile = "index.html";
    }
    else {
        theFile = getFileName();
    }

    $('#copyright').html('Copyright &copy; ' + theDate.getFullYear() + ' Thor Erik Lie');
    $('a').removeClass("current");
    $('a[href$="' + theFile + '"]').addClass("current");
});


function getFileName() {
    return window.location.href.substring(window.location.href.lastIndexOf("/") + 1, window.location.href.length);
}
