

$(document).ready(function() {

	$("a[href$=.pdf].download").each(function(){		
		$(this).addClass("external").attr("target", "_blank");							
	});	
	
	$('a').filter(function() {
		//Compare the anchor tag's host name with location's host name
	    return this.hostname && this.hostname != location.hostname;
	}).each(function(){
		$(this).addClass("external").attr("target", "_blank");		
	});

});
