/* $Id$ */

(function ($) {

$(document).ready( function () {
  $('.field-name-field-emailimage .field-item').wrapInner('<a href="#custom-get-contact-form" title="Contact this staff member"/>').find('a').click(function () {
    $('#custom-get-contact-form').show();
  });
});

})(jQuery);;
/* $Id$ */

(function ($) {


var searchFocus = {

  searchDefaultText: 'SEARCH',

  searchFocus: function() {
    var search = $('.form-item-search-block-form input');
    if (search.val() == searchFocus.searchDefaultText) {
      search.val('');
    }
  },

  searchBlur: function() {
    var search = $('.form-item-search-block-form input');
    if (search.val() == '') {
      search.val(searchFocus.searchDefaultText);
    }
  },

  init: function() {
    // Firefox remembers the default text in the form field.
    var search = $('.form-item-search-block-form input');
    if (search.val() == searchFocus.searchDefaultText) {
      // So we reset it.
      search.val('');
    }

    // Attach the event handlers to swap the dummy text in and out as needed.
    $('.form-item-search-block-form input')
      .bind('focus', searchFocus.searchFocus)
      .bind('blur', searchFocus.searchBlur)
      // And fire the blur event to intialize it.
      .blur();
  } // Note lack of a ,
};


$(document).ready( function () {
  searchFocus.init();
});


})(jQuery);
;
/* $Id$ */

(function ($) {

$(document).ready( function () {
  // Define the active class.
  var active = 'hover';
  // Delayed mouseout.
  $('.menu-block-main-menu-dropdown > ul > li').hover(function() {
    var self = $(this);
    var children = $('> ul', this);
    // Stop the "out" timer.
    clearTimeout(this.outTimer);
    // Give the link an active class.
    self.addClass(active);
    // Start the "in" timer.
    this.inTimer = setTimeout(function() {
      // Hide nephew lists.
      self.siblings('li').removeClass(active).children('ul').css({display: 'none'});
      // Display child lists.
      children.css({display: 'block'});
    }, 250);
  }, function() {
    var self = $(this);
    // Stop the "in" timer.
    clearTimeout(this.inTimer);
    // Remove the active class from the link.
    self.removeClass(active);
    // Start the "out" timer.
    this.outTimer = setTimeout(function() {
      self.children('ul').css({display: 'none'});
    }, 250);
  });
});

})(jQuery);
;

