$(document).ready(function() {

   // Add class to current links (todo: check in ie)
    $(".menu a").each(function() {
        if(this.href == window.location.href.split("#")[0]) {
            $(this).addClass("current");
        }
    });

 
    
});