$(document).ready(function() {

 //Cycle through all anchor links and add in the current page name
 $('a[@href^="#"]').each(function(index) {
    $(this).attr('href', jQuery.url.attr("path") + $(this).attr('href'));
 });

});