jQuery.extend( jQuery.easing,
{
	w2dDesignFlowMenu: function (x, t, b, c, d) {
		return -c *(t/=d)*(t-2) + b;
	}
});


var flowmenu={
	build:function(ulid) {

	jQuery(document).ready(function($) {
		$("ul#"+ulid).find("li").each(function(i) {
			if ($(this).children("ul").length>0) {
				$(this).addClass("more");
			}
			$(this).hover(function() {
				var elementUl=$(this).addClass("over").children("ul:eq(0)");
				var elementA=elementUl.children("li:eq(0)").children("a:eq(0)");
				elementA.css("padding-top","1px");
				elementUl.css("display","block");
				elementA.animate({paddingTop:13},{duration: 200, easing:'w2dDesignFlowMenu'});
			}, function() {
				$(this).removeClass("over").children("ul:eq(0)").css("display", "none");
			});
		});
	});
	}
}
