ACMS.Dispatch.Postinclude.ready=function(elm,setting){var method=ACMS.Config.postIncludeMethod;var effect=ACMS.Config.postIncludeEffect;var effectSpeed=ACMS.Config.postIncludeEffectSpeed;var delay=ACMS.Config.postIncludeReadyDelay;if(typeof setting!=="undefined"){if(typeof setting.method!=="undefined")method=setting.method;if(typeof setting.effect!=="undefined")effect=setting.effect;if(typeof setting.effectSpeed!=="undefined")effectSpeed=setting.effectSpeed;if(typeof setting.delay!=="undefined")delay=setting.delay}$(elm).each(function(){if(this.onsubmit){this.returnValue=this.onsubmit.apply(this,arguments)}var form=this;var $form=$(this);if($form.data("geo")){ACMS.Library.geolocation(function(latitude,longitude){$form.append($("<input/>",{type:"hidden",name:"lat",value:latitude}));$form.append($("<input/>",{type:"hidden",name:"lng",value:longitude}));$form.append($("<input/>",{type:"hidden",name:"query[]",value:"lat"}));$form.append($("<input/>",{type:"hidden",name:"query[]",value:"lng"}));setTimeout(function(){ACMS.Dispatch.Postinclude._postinclude(form,method,effect,effectSpeed)},delay)},function(message){window.alert(message)})}else{setTimeout(function(){ACMS.Dispatch.Postinclude._postinclude(form,method,effect,effectSpeed)},delay)}})};ACMS.Dispatch.Postinclude.submit=function(elm,setting){var method=ACMS.Config.postIncludeMethod;var effect=ACMS.Config.postIncludeEffect;var effectSpeed=ACMS.Config.postIncludeEffectSpeed;if(typeof setting!=="undefined"){if(typeof setting.method!=="undefined")method=setting.method;if(typeof setting.effect!=="undefined")effect=setting.effect;if(typeof setting.effectSpeed!=="undefined")effectSpeed=setting.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){event.preventDefault();var form=this;var $form=$(this);if($form.data("geo")){ACMS.Library.geolocation(function(latitude,longitude){$form.append($("<input/>",{type:"hidden",name:"lat",value:latitude}));$form.append($("<input/>",{type:"hidden",name:"lng",value:longitude}));$form.append($("<input/>",{type:"hidden",name:"query[]",value:"lat"}));$form.append($("<input/>",{type:"hidden",name:"query[]",value:"lng"}));ACMS.Dispatch.Postinclude._postinclude(form,method,effect,effectSpeed)},function(message){window.alert(message)})}else{ACMS.Dispatch.Postinclude._postinclude(form,method,effect,effectSpeed)}})})};ACMS.Dispatch.Postinclude.bottom=function(elm,setting){var method=ACMS.Config.postIncludeMethod;var effect=ACMS.Config.postIncludeEffect;var effectSpeed=ACMS.Config.postIncludeEffectSpeed;var offset=ACMS.Config.postIncludeOffset;if(typeof setting!=="undefined"){if(typeof setting.method!=="undefined")method=setting.method;if(typeof setting.effect!=="undefined")effect=setting.effect;if(typeof setting.effectSpeed!=="undefined")effectSpeed=setting.effectSpeed;if(typeof setting.offset!=="undefined")offset=setting.offset}$(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}})})};ACMS.Dispatch.Postinclude.interval=function(elm,setting){var method=ACMS.Config.postIncludeMethod;var effect=ACMS.Config.postIncludeEffect;var effectSpeed=ACMS.Config.postIncludeEffectSpeed;var interval=ACMS.Config.postIncludeIntervalTime;if(typeof setting!=="undefined"){if(typeof setting.method!=="undefined")method=setting.method;if(typeof setting.effect!=="undefined")effect=setting.effect;if(typeof setting.effectSpeed!=="undefined")effectSpeed=setting.effectSpeed;if(typeof setting.interval!=="undefined")interval=setting.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)})};