$(document).ready(function(){
	
	// External Link
    var allowedDomains = [location.hostname];
	$("a[href^=http]:not(.internal)")
	.filter(function(el){
		for ( var i=0; i < allowedDomains.length; i++ ) {
			if ( this.href.indexOf(allowedDomains[i])>-1 ) return false;
		}
		return true;
	})
	.bind("click", function(){ return !window.open(this.href); });

});