$(function() {

 /*
 * LavaLamp - A menu plugin for jQuery with cool hover effects.
 * http://gmarwaha.com/blog/?p=7
 *
 * Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * Modified by Krijn Hoetmer, to allow a vertical nested menu
 */
 $('#menu').each(function() {
	 
  var me = $(this), $marker = $('<li class="marker"></li>').appendTo(me), $li = $('li', this), curr = $('li.current', this)[0] || $($li[0]).addClass('current')[0];
  $li.not('.marker').find('a').hover(function() { move(this.parentNode); }, function() { move(curr); } );
  $marker.css({'top': curr.offsetTop });
  function move(el) {
   $marker.each(function() {
    $(this).dequeue();
   }).animate({
    top: el.offsetTop
   }, 600, 'bounceout');
  };
 });

});

/*
* jQuery Easing v1.1 - http://gsgd.co.uk/sandbox/jquery.easing.php
*
* Copyright (c) 2007 George Smith
* Licensed under the MIT License:
*   http://www.opensource.org/licenses/mit-license.php
*/
