// Using the closure to map jQuery to $.
(function ($) {
  Drupal.behaviors.infraquestTheme = {
    attach: function (context, settings) {
	
		//open external links in new window
		var h = window.location.host.toLowerCase();
		$("a[href^='http']:not(a[href^='http://" + h + "']):not(a[href^='http://www." + h + "']), a[href$='.pdf']").attr("target", "_blank");
	}
  }
}(jQuery));;

