ACMS.Dispatch.Postinclude.ready=function(elm){(function(method,effect,effectSpeed,delay){$(elm).each(function(){if(this.onsubmit)this.returnValue=this.onsubmit.apply(this,arguments);var form=this;setTimeout(function(){ACMS.Dispatch.Postinclude._postinclude(form,method,effect,effectSpeed)},delay)})})(ACMS.Config.postIncludeMethod,ACMS.Config.postIncludeEffect,ACMS.Config.postIncludeEffectSpeed,ACMS.Config.postIncludeReadyDelay)};
ACMS.Dispatch.Postinclude.submit=function(elm){(function(method,effect,effectSpeed){$(elm).each(function(){if(this.onsubmit){var func=this.onsubmit;this.onsubmit=new Function;$(this).submit(function(){this.returnValue=func.apply(this,arguments);return this.returnValue})}$(this).submit(function(event){ACMS.Dispatch.Postinclude._postinclude(this,method,effect,effectSpeed);event.preventDefault();return false})})})(ACMS.Config.postIncludeMethod,ACMS.Config.postIncludeEffect,ACMS.Config.postIncludeEffectSpeed)};
ACMS.Dispatch.Postinclude.bottom=function(elm){(function(method,effect,effectSpeed,offset){var scrollHeight=$(document).height();$(elm).each(function(){if(this.onsubmit)this.returnValue=this.onsubmit.apply(this,arguments);var obj=$(window);var form=this;form.execute=false;obj.bind("scroll",function(){var scrollHeight=$(document).height();var scrollPosition=obj.height()+obj.scrollTop();if(scrollHeight-scrollPosition<=offset){if(!form.execute)ACMS.Dispatch.Postinclude._postinclude(form,method,effect,
effectSpeed);obj.unbind("scroll");form.execute=true}return false})})})(ACMS.Config.postIncludeMethod,ACMS.Config.postIncludeEffect,ACMS.Config.postIncludeEffectSpeed,ACMS.Config.postIncludeOffset)};
ACMS.Dispatch.Postinclude.interval=function(elm){(function(method,effect,effectSpeed,interval){$(elm).each(function(){if(this.onsubmit)this.returnValue=this.onsubmit.apply(this,arguments);var form=this;setInterval(function(){ACMS.Dispatch.Postinclude._postinclude(form,method,effect,effectSpeed)},interval)})})(ACMS.Config.postIncludeMethod,ACMS.Config.postIncludeEffect,ACMS.Config.postIncludeEffectSpeed,ACMS.Config.postIncludeIntervalTime)};
