$(document).ready(function() {
	// find all links that begin with "http://"
    $('a[href^="http://"]').filter(function(){ 
	
	// filter out links that have the same domain name as the current site
	return this.hostname && this.hostname !== location.hostname; })
        
		// add a CSS class of "external" to each external link (for styling)
		.addClass("external")
		
		// inform visitor that link will open in new window
        .attr({ title: "Link will open in new window" })
		
		// open link in new window once clicked
		.click( function() {
				window.open(this.href);
				return false;
			});
});