  // Sucker fish drop down menus
  sfHover = function() {
    // first check that we actually have the nav element so we don't spit errors if it's not available
    if (document.getElementById("nav")) {
      // get an array of 'nav's list items
      var sfEls = document.getElementById("nav").getElementsByTagName("LI");
      // for each list item
      for (var i=0; i<sfEls.length; i++) {
        // add hover class on mouseover
        sfEls[i].onmouseover=function() {
          this.className+=" sfhover";
        }
        // remove hover class on mouseout
        sfEls[i].onmouseout=function() {
          this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
        }
      }
    }
  }
  // run this function when the page has loaded
  if (window.attachEvent) window.attachEvent("onload", sfHover);

  // clear Search Field
  function clearSearch () {
    // find the search box
    var f = document.getElementById('s');
    // check that we got an element so we don't spit errors
    if (f) {
      // on click, clear if value is still default
      f.onfocus = function() {
        if (this.value == 'search...') this.value = '';
      }
      // on blur, set to default if empty
      f.onblur = function() {
        if (this.value == '') this.value = 'search...';
      }
    }
  }
