String.prototype.startsWith = function(str)
{ return (this.match("^" + str) == str) }
$(function() {
    if ($(".content .nav-sub *").length < 1) {
        $(".content .nav-sub").after("<br/>");
    }
    
    $("a").each(function(i, item) {
        if (typeof($(this).attr("href")) != "undefined" && $(this).attr("href").startsWith("http")) {
            $(this).attr("target", "_blank");
        }
    });
});