// Sitewide scripts using jquery
// these scripts will fire after html has loaded
(function ($) {

$(document).ready(function() {

// Add external link icon to text hyperlinks
	$("a").filter(function() {
		return this.hostname && this.hostname !== location.hostname;
	}).addClass("external_link").attr("target", "_blank");
  
//default text for search bar
  var defaultSearchText = "Search this site";
  
  $("#edit-search-block-form--2").focus(function() {
    //if ($(this).val() == $(this)[0].title) {
    if ($(this).val() == defaultSearchText) {
      $(this).removeClass("search-default-text").val("");
    }
  });

  $("#edit-search-block-form--2").blur(function() {
    if ($(this).val() == "") {
      $(this).addClass("search-default-text").val(defaultSearchText);
      //$(this).val($(this)[0].title);
    }
  });

  $("#edit-search-block-form--2").blur(); 


	
//end $(document).ready();
});

})(jQuery); // end jquery enclosure;

