(function externalLinks() {
	
	$("#content a").filter(function() {
	    return ( (this.hostname !== location.hostname) 
			&& !$(this).hasClass("button") 
			&& $(this).parent().parent(".links").length === 0
			&& this.href.indexOf('mailto') === -1);
	}).append("<span class='external'>(This link opens in a new window)</span>").click(function() {
		window.open($(this).attr("href"), "new", "width=992,height=700,resizable=yes,scrollbars=yes,location=yes,menubar=yes,toolbar=yes");
		return false;
	});

	$("#content .noIcon a").click(function() {
		window.open($(this).attr("href"), "new", "width=992,height=700,resizable=yes,scrollbars=yes,location=yes,menubar=yes,toolbar=yes");
		return false;
	});

	
	$("#content a").filter(function() {
		return (this.href.indexOf('.pdf') !== -1);		
	}).click(function() {
		window.open($(this).attr("href"), "new", "width=992,height=700,resizable=yes,scrollbars=yes,location=yes,menubar=yes,toolbar=yes");
		return false;
	});
	
	$("#header .secure a.btnLogin, .product #content a.button").click(function() {
		window.open($(this).attr("href"), "", "width=992,height=700,resizable=yes,scrollbars=yes,location=yes,menubar=yes,toolbar=yes");
		return false;
	});
	
	$("a.newWindowFAQ").click(function() {
		window.open($(this).attr("href"), "", "width=992,height=700,resizable=yes,scrollbars=yes,location=yes,menubar=yes,toolbar=yes");
		return false;
	});
	
	$("#termsConditions a").filter(function() {
	    return ( (this.hostname !== location.hostname) 
			&& !$(this).hasClass("button") 
			&& $(this).parent().parent(".links").length === 0
			&& this.href.indexOf('mailto') === -1);
	}).append("<span class='external'>(This link opens in a new window)</span>").click(function() {
		window.open($(this).attr("href"), "new", "width=992,height=700,resizable=yes,scrollbars=yes,location=yes,menubar=yes,toolbar=yes");
		return false;
	});


})();
