

$(document).ready(function () {


	// ---- External Links ----------------------------------------------------------------------------------------------------

$("a[href*='http://']:not([href*='" + location.hostname + "']),[href*='https://']:not([href*='" + location.hostname + "'])").attr("target", "_blank").attr("title", "Opens new window"); // Detect all the external links and add target blank to open them in a new window. It also adds a title and a class="external" to the link.

$("a[href*=.ashx]").click(function() {
    window.open(this.href);
    return false;
});

});

