$(function() {  
  
  //IF IE6 DONT USE HOVER, stupid old browser
  /* if(!($.browser.msie && $.browser.version.indexOf("6.0") > -1)) {

    $("ul#menu li a img.mimg").bind("mouseover", function() {
      var im = $(this).attr("src");
      
      var dot    = im.indexOf(".");
      var part1  = im.substr(0, dot);
      var part2  = im.substr(dot, im.length);
      var new_im = part1 + "_hover" + part2;
    
      if(!$(this).parents("li").hasClass("on")) {
        $(this).attr("src", new_im);
      }
      
      //alert(new_im);
    });
    
    $("ul#menu li a img.mimg").bind("mouseout", function() {
      if(!$(this).parents("li").hasClass("on")) {
        var new_im = $(this).attr("src").toString().replace("_hover", "");
        $(this).attr("src", new_im);
      }
    });
  
  }   */
  //function for showing BMW and MB
  var shown = false;
  $("#btn").bind("click", function() {
    if(!shown) {
      $(".hid").fadeIn("fast");
    } else {
      $(".hid").fadeOut("fast");
    }
    shown = !shown;
  });
  
  $('#stuff-container').jScrollPane({
    scrollbarOnLeft : false,
    dragMinHeight   : 20,
    dragMaxHeight   : 88,
    scrollbarWidth  : 11
  });
  
  
});