// Drupal.behaviors.inFocusLoader = function (context) {
//    This function is fine but every jquery selector absolutely must take context
//    as its argument. $('.something', context) because this function will be run
//    repeatedly whenever something ajax-y happens like a colorbox popup. The
//    differing factor is that when the dom loads the context will be document, when
//    a colorbox loads the context will be $('#cboxLoadedContent') so most of these
//    selectors would fail in that context.
//    This is good, it's healthy, but we have a lot of selectors and we're late so
//    I'm switching back to $(document).ready().
// }
(function ($) {
jQuery(document).ready(function() {
  //search block
  $('#search-block-form #edit-actions').css('cursor','pointer').click(function(){
         $('#search-block-form').submit();
  });

  //search page
  $('.page-search #search-form #edit-submit').wrap('<div id="edit-action" />');
  $('.page-search #search-form #edit-action').css('cursor','pointer').click(function(){
         $('#search-form').submit();
  });
  $('.page-search #page-title').replaceWith('<h1 id="page-title" class="title">Search Results</h1>');
  //Marquee hover
  $('.front .marquee-list .views-row:not(:first)').css('display', 'none');
  $('.front .marquee-list .views-row:first').css('display', 'block');
  $('.front #block-menu-menu-home-bottom-navigation .content .menu li a').hover(
     function () {
       $('.front .marquee-list .views-row-1').css('display','none');
       $('.front .marquee-list .' + $(this).attr('id')).css('display','block');
     },
     function () {
       $('.front .marquee-list .' + $(this).attr('id')).css('display','none');
       $('.front .marquee-list .views-row-1').css('display','block');
     }
   );

});



})(jQuery);
;

