$(document).ready(function(){
  
  /* correct sharepoint breadcrumbs */
  $("#breadcrumbs span span:nth-child(even)").remove();
  $("#breadcrumbs span span:nth-child(1)").addClass("home");
  
  /* search box text clear */
  $("#sitesearch > form > .textbox").focus(function(){
    if (this.value == 'Search ACAAI.org') {
      this.value = '';
      $(this).addClass('textbox_active');
    }
  });
  $("#sitesearch > form > .textbox").blur(function(){
    if (this.value == '') {
      this.value = 'Search ACAAI.org';
	  $(this).removeClass('textbox_active');
    }
  });
  
  /* hover effects */
  $(".gobtn").hover(
    function(){$(this).addClass("gobtn_hover")},
    function(){$(this).removeClass("gobtn_hover")}
  );
  
});
