jQuery.easing = {
 easeinout: function(x, t, b, c, d) {
  if (t < d/2) return 2*c*t*t/(d*d) + b;
  var ts = t - d/2;
  return -2*c*ts*ts/(d*d) + 2*c*ts/d + c/2 + b;
 },
 linear: function(x, t, b, c, d) {
  return c*t/d + b; //linear
 }
};

$(function() {
 /* Original Lavalamp menu by Ganeshji Marwaha */
 var lava = $('#lava'), marker = $('<li class="marker"></li>').appendTo(lava), lis = $('li', lava), actief = $('li.actief', lava)[0] || $(lis[0]).addClass('actief')[0], as = lis.not('.marker').find('a');
 if ($.browser.msie) {
  as.bind('mouseenter', function() {
   mark(this.parentNode);
  }).bind('mouseleave', function() {
   mark(actief);
  });
 } else {
  as.mouseover(function() {
   mark(this.parentNode);
  }).mouseout(function() {
   mark(actief);
  });
 }
 as.focus(function() {
  mark(this.parentNode);
 }).blur(function() {
  mark(actief);
 });
 marker.css({'top': $(actief).parent() == lava ? actief.offsetTop : actief.offsetTop + actief.parentNode.offsetTop + 'px' });
 function mark(e) {
  try {
   marker.dequeue().animate({'top': $(e).parent() == lava ? e.offsetTop : e.offsetTop + e.parentNode.offsetTop}, 600, 'easeinout');
  } catch(e) {
   // No idea why Fx whines here..
  }
 };
});