$(document).ready(function(){
         
      // -------- search 
      var searchval = $('#searchForm input#search_term').val();
       $('#searchForm input#search_term').focus(function(){
            $(this).val('');
       });
       $('#searchForm input#search_term').blur(function(){
            newval = $(this).val();
            if (newval=="") {
                $(this).val(searchval);
            };
       });
       
        $('#nav li, #subnav li').hover(function(){
             $(this).addClass('hover');
             /*$(this).removeClass('sIFR-replaced');
             sIFR.replace(museo500, {
              selector: '#nav li',
              css: [
                  'a:{color: #ffffff;}',
                  'a:link {color: #ffffff; text-decoration:none;}',
                  'a:hover{color: #ffffff;}'
                ],preventWrap:true, fitExactly:true, forceWidth:true, wmode:'transparent', tuneHeight:"-7"
            });*/

         },function(){
              $(this).removeClass('hover');
              /* $(this).removeClass('sIFR-replaced');
              sIFR.replace(museo100, {
              selector: '#nav li',
              css: [
                  'a:{color: #99c7cb;}',
                  'a:link {color: #99c7cb; text-decoration:none;}',
                  'a:hover{color: #ffffff;}'
                ],preventWrap:true, fitExactly:true, forceWidth:true, wmode:'transparent', tuneHeight:"-7"
            });*/

         }).click(function(){
                window.location = $(this).find("a").attr("href");                  
            });;
         
         
         $("#subnav li.current").prev().addClass("pre");
         $("#footer #footnav li:last").addClass("last");
                  
          //remove this to show login again  [adam 6-2-09]
          //$("#login").hide();
         
});


       
