$(document).ready(function(){					    
	var ulc = jQuery.noConflict(); //use 'ulc' instead of $ for jquery to not clash wiht outher JS libs
	//open external links in new windows!					   
	var hostname = window.location.hostname;	
	var exclude = "a[href^='" + "http:\/\/" + hostname + "']"; 
	var exclude2 = "a[href^='" + "https:\/\/" + hostname + "']"; 
	ulc("a[href^='http']").not(exclude).not(exclude2).addClass("external").attr({target: "_blank"});		
});