// create new windows for 'external' links

$(document).ready( function() {
  $("//a[@rel='external']").attr('target', '_blank');
});


// disable link to current page
$(document).ready( function() {
  activeItem = $("//li.current_page_item");
  activeItemText = activeItem.text();
  activeItem.prepend('<span class=\"current_page_item\">'+activeItemText+'</span>');
  $("a", activeItem).remove();
});
