// JavaScript Document
(function($){
	//Extends the jQuery element set to provide new methods 
	$.fn.extend({
		//plugin name - animatemenu
		webtoolkitMenu: function(options) {
			return this.each(function() {

				//Assign current element to variable, in this case is UL element
				var obj = $(this);

				$("li ul", obj).each(function(i) {
					$(this).css('top', $(this).parent().outerHeight());
					//$(this).css('top', $(this).parent());
				})

				$("li", obj).hover(
					function () 
					{ 
						$(this).addClass('over'); 
					},
					function () 
					{ 
						$(this).removeClass('over'); 
					}
				);

			});
		}
	});
})(jQuery);


