$(function(){
  // open all external links in new window.
  $('a[href*=http]').each(function(){
    console.log($(this))
    
  	if (this.host != window.location.host) {
  		$(this).attr('target', '_new');
  	}
  });  
})


