var $Q = jQuery.noConflict();

$Q(document).ready(function() {
	// find all links that begin with "http://"
    $Q('a[href^="http://"]').filter(function(){ 
	
		// filter out links that have the same domain name as the current page
		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;
		});

});
