/*
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
*/
if(typeof window.console==="undefined")window.console={};
if(typeof window.console.emulated==="undefined"){if(typeof window.console.log==="function")window.console.hasLog=!0;else{if(typeof window.console.log==="undefined")window.console.log=function(){};window.console.hasLog=!1}if(typeof window.console.debug==="function")window.console.hasDebug=!0;else{if(typeof window.console.debug==="undefined")window.console.debug=!window.console.hasLog?function(){}:function(){for(var c=["console.debug:"],a=0;a<arguments.length;a++)c.push(arguments[a]);window.console.log.apply(window.console,
c)};window.console.hasDebug=!1}if(typeof window.console.warn==="function")window.console.hasWarn=!0;else{if(typeof window.console.warn==="undefined")window.console.warn=!window.console.hasLog?function(){}:function(){for(var c=["console.warn:"],a=0;a<arguments.length;a++)c.push(arguments[a]);window.console.log.apply(window.console,c)};window.console.hasWarn=!1}if(typeof window.console.error==="function")window.console.hasError=!0;else{if(typeof window.console.error==="undefined")window.console.error=
function(){var c="An error has occured.";if(window.console.hasLog){for(var c=["console.error:"],a=0;a<arguments.length;a++)c.push(arguments[a]);window.console.log.apply(window.console,c);c="An error has occured. More information is available in your browser's javascript console."}for(a=0;a<arguments.length;++a){if(typeof arguments[a]!=="string")break;c+="\n"+arguments[a]}if(typeof Error!=="undefined")throw Error(c);else throw c;};window.console.hasError=!1}if(typeof window.console.trace==="function")window.console.hasTrace=
!0;else{if(typeof window.console.trace==="undefined")window.console.trace=function(){window.console.error("console.trace does not exist")};window.console.hasTrace=!1}window.console.emulated=!0}String.prototype.trim=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.strip=String.prototype.strip||function(c,a){var c=String(c),b=this;c.length&&(a||(c=c.replace(/([\[\]\(\)\^\$\.\?\|\/\\])/g,"\\$1")),b=b.replace(eval("/^"+c+"+|"+c+"+$/g"),""));return String(b)};
String.prototype.stripLeft=String.prototype.stripLeft||function(c,a){var c=String(c),b=this;c.length&&(a||(c=c.replace(/([\[\]\(\)\^\$\.\?\|\/\\])/g,"\\$1")),b=b.replace(eval("/^"+c+"+/g"),""));return String(b)};String.prototype.stripRight=String.prototype.stripRight||function(c,a){var c=String(c),b=this;c.length&&(a||(c=c.replace(/([\[\]\(\)\^\$\.\?\|\/\\])/g,"\\$1")),b=b.replace(eval("/"+c+"+$/g"),""));return String(b)};
String.prototype.toInt=String.prototype.toInt||function(){return parseInt(this,10)};String.prototype.wrap=String.prototype.wrap||function(c,a){return c+this+a};String.prototype.wrapSelection=String.prototype.wrapSelection||function(c,a,b,d){if(typeof b==="undefined"||b===null)b=this.length;if(typeof d==="undefined"||d===null)d=this.length;return this.substring(0,b)+c+this.substring(b,d)+a+this.substring(d)};
String.prototype.toSlug=String.prototype.toSlug||function(){return this.toLowerCase().replace(/[\s_]/g,"-").replace(/[^-a-z0-9]/g,"").replace(/--+/g,"-").replace(/^-+|-+$/g,"")};
String.prototype.queryStringToJSON=String.prototype.queryStringToJSON||function(){var c=String(this),c=c.substring(c.indexOf("?")+1),c=c.replace(/\+/g,"%20");if(c.substring(0,1)==="{"&&c.substring(c.length-1)==="}")return eval(decodeURIComponent(c));for(var c=c.split(/\&(amp\;)?/),a={},b=0,d=c.length;b<d;++b){var e=c[b]||null;if(e!==null&&(e=e.split("="),e!==null)){var f=e[0]||null;if(f!==null&&typeof e[1]!=="undefined"){e=e[1];f=decodeURIComponent(f);e=decodeURIComponent(e);try{e=eval(e)}catch(g){}var h=
f.split(".");if(h.length===1)a[f]=e;else{var i="",j="";$.each(h,function(b,c){i+='["'+c.replace(/"/g,'\\"')+'"]';jsonCLOSUREGLOBAL=a;j="if ( typeof jsonCLOSUREGLOBAL"+i+' === "undefined" ) jsonCLOSUREGLOBAL'+i+" = {}";eval(j);a=jsonCLOSUREGLOBAL;delete jsonCLOSUREGLOBAL});jsonCLOSUREGLOBAL=a;valueCLOSUREGLOBAL=e;j="jsonCLOSUREGLOBAL"+i+" = valueCLOSUREGLOBAL";eval(j);a=jsonCLOSUREGLOBAL;delete jsonCLOSUREGLOBAL;delete valueCLOSUREGLOBAL}}}}return a};
(function(c){c.fn.binder=c.fn.binder||function(a,b,d){var e=c(this);d?e.bind(a,b,d):e.bind(a,b);return e};c.fn.once=c.fn.once||function(a,b,d){var e=c(this);d?(e.unbind(a,d),e.bind(a,b,d)):(d=b,e.unbind(a,d),e.bind(a,d));return e};c.fn.enter=c.fn.enter||function(a,b){return c(this).binder("enter",a,b)};c.event.special.enter=c.event.special.enter||{setup:function(){c(this).bind("keypress",c.event.special.enter.handler)},teardown:function(){c(this).unbind("keypress",c.event.special.enter.handler)},
handler:function(a){c(this);if(a.keyCode===13)return a.type="enter",c.event.handle.apply(this,[a]),!0}};c.fn.cancel=c.fn.cancel||function(a,b){return c(this).binder("cancel",a,b)};c.event.special.cancel=c.event.special.cancel||{setup:function(){c(this).bind("keyup",c.event.special.cancel.handler)},teardown:function(){c(this).unbind("keyup",c.event.special.cancel.handler)},handler:function(a){c(this);var b=a.keyCode===27;if((typeof a.DOM_VK_ESCAPE==="undefined"?0:a.DOM_VK_ESCAPE)||b)return a.type=
"cancel",c.event.handle.apply(this,[a]),!0}};c.fn.lastclick=c.fn.lastclick||function(a,b){return c(this).binder("lastclick",a,b)};c.event.special.lastclick=c.event.special.lastclick||{setup:function(){c(this).bind("click",c.event.special.lastclick.handler)},teardown:function(){c(this).unbind("click",c.event.special.lastclick.handler)},handler:function(a){var b=function(){var a=c(this),b=a.data("lastclick-timeout")||!1;b&&clearTimeout(b);a.data("lastclick-timeout",!1)};(function(a){var e=this;b.call(e);
var f=c(e);f.data("lastclick-clicks",(f.data("lastclick-clicks")||0)+1);var g=setTimeout(function(){var g=f.data("lastclick-clicks");b.apply(e,[a]);f.data("lastclick-clicks",0);a.type="lastclick";c.event.handle.apply(e,[a,g])},500);f.data("lastclick-timeout",g)}).apply(this,[a])}};c.fn.firstclick=c.fn.firstclick||function(a,b){return c(this).binder("firstclick",a,b)};c.event.special.firstclick=c.event.special.firstclick||{setup:function(){c(this).bind("click",c.event.special.firstclick.handler)},
teardown:function(){c(this).unbind("click",c.event.special.firstclick.handler)},handler:function(a){var b=function(){var a=c(this),b=a.data("firstclick-timeout")||!1;b&&clearTimeout(b);a.data("firstclick-timeout",!1)};(function(a){var e=this;b.call(e);var f=c(e);f.data("firstclick-clicks",(f.data("firstclick-clicks")||0)+1);if(f.data("firstclick-clicks")===1)a.type="firstclick",c.event.handle.apply(e,[a]);var g=setTimeout(function(){b.apply(e,[a]);f.data("firstclick-clicks",0)},500);f.data("firstclick-timeout",
g)}).apply(this,[a])}};c.fn.singleclick=c.fn.singleclick||function(a,b){return c(this).binder("singleclick",a,b)};c.event.special.singleclick=c.event.special.singleclick||{setup:function(){c(this).bind("click",c.event.special.singleclick.handler)},teardown:function(){c(this).unbind("click",c.event.special.singleclick.handler)},handler:function(a){var b=function(){var a=c(this),b=a.data("singleclick-timeout")||!1;b&&clearTimeout(b);a.data("singleclick-timeout",!1)};(function(a){var e=this;b.call(e);
var f=c(e);f.data("singleclick-clicks",(f.data("singleclick-clicks")||0)+1);var g=setTimeout(function(){var g=f.data("singleclick-clicks");b.apply(e,[a]);f.data("singleclick-clicks",0);if(g===1)a.type="singleclick",c.event.handle.apply(e,[a])},500);f.data("singleclick-timeout",g)}).apply(this,[a])}}})(jQuery);
(function(c){c.fn.opacityFix=c.fn.opacityFix||function(){var a=c(this),b=a.css("background-color");if(b&&b!=="rgba(0, 0, 0, 0)")return this;for(var d=a;d.inDOM();)if(d=d.parent(),(b=d.css("background-color"))&&b!=="rgba(0, 0, 0, 0)"){a.css("background-color",b);break}return this};c.fn.parentsAndSelf=c.fn.parentsAndSelf||function(a){return c(this).parents(a).andSelf().filter(a)};c.fn.findAndSelf=c.fn.findAndSelf||function(a){return c(this).find(a).andSelf().filter(a)};c.fn.firstInput=c.fn.firstInput||
function(){return c(this).findAndSelf(":input").filter(":first")};c.fn.choose=c.fn.choose||function(a){var b=c(this);if(typeof a==="undefined")a=b.val();else if(b.val()!==a)return this;switch(!0){case this.is("option"):b.parents("select:first").choose(a);break;case b.is(":checkbox"):b.attr("checked",!0);break;case b.is(":radio"):b.attr("checked",!0);break;case b.is("select"):b.val(a)}return this};c.fn.unchoose=c.fn.unchoose||function(){var a=c(this);switch(!0){case a.is("option"):a.parents(":select:first").unchoose();
break;case a.is(":checkbox"):a.attr("checked",!1);break;case a.is(":radio"):a.attr("checked",!1);break;case a.is("select"):a.val(a.find("option:first").val())}return this};c.fn.wouldSubmit=c.fn.wouldSubmit||function(){var a=c(this).findAndSelf(":input"),b=!0;if(!a.length||!a.attr("name")||a.is(":radio,:checkbox")&&!a.is(":selected,:checked"))b=!1;return b};c.fn.values=c.fn.values||function(){var a={};c(this).findAndSelf(":input").each(function(){var b=c(this),d=b.attr("name")||null,e=b.val();if(!b.wouldSubmit())return!0;
d.indexOf("[]")!==-1?(typeof a[d]==="undefined"&&(a[d]=[]),a[d].push(e)):a[d]=e});return a};c.fn.submitForm=c.fn.submitForm||function(){var a=c(this);a.parentsAndSelf("form:first").trigger("submit");return a};c.fn.inDOM=c.fn.inDOM||function(){var a=c(this).parent().parent();return a.size()&&(a.height()||a.width())};c.fn.valWrap=c.fn.valWrap||function(a,b){var d=c(this);return d.val(d.val().wrap(a,b))};c.fn.valWrapSelection=c.fn.valWrapSelection||function(a,b,d,e){var f=c(this),g=f.get(0),a=a||"",
b=b||"";if(d||e)f.val(f.val().wrapSelection(a,b,d,e));else if(d=g.selectionStart,e=g.selectionEnd,document.selection)g.focus(),d=document.selection.createRange(),d.text=a+d.text+b;else{var h=g.scrollTop;f.val(f.val().wrapSelection(a,b,d,e));g.focus();g.selectionStart=d+a.length;g.selectionEnd=e+a.length;g.scrollTop=h}return f};c.fn.giveFocus=c.fn.giveFocus||function(){c(this).findAndSelf(":input:visible:first").focus();return this};c.fn.giveTarget=c.fn.giveTarget||function(){var a=c(this);c(".target").removeClass("target");
a.addClass("target");return this};c.fn.highlight=c.fn.highlight||function(a){return c(this).effect("highlight",{},a||3E3)};c.fn.htmlAndSelf=c.fn.htmlAndSelf||function(){return c(this).attr("outerHTML")};c.fn.preventDefaultOnClick=c.fn.preventDefaultOnClick||function(){return c(this).click(function(a){a.preventDefault();return!1})};c.fn.attemptTypeChangeTo=c.fn.attemptTypeChangeTo||function(a){var b=c(this),d=!1,e=b.get(0),f=e.type;if(a===f)d=!0;else if(b.is("input")&&!c.browser.msie)e.type=a,e.type!==
f&&(d=!0);return d}})(jQuery);
(function(c){c.prepareObject=c.prepareObject||function(a,b){var d={};c.extend(d,a||{});c.intercept(!0,d,b);var e=arguments;e[0]=e[1]="$.prepareObject.skipValue";c.each(e,function(a,b){if(b==="$.prepareObject.skipValue")return!0;c.intercept(!0,d,b)});return d};c.intercept=c.intercept||function(){var a=arguments,b,d=!1,e=!1;typeof a[0]==="boolean"?(d=a[0],a[0]="$.intercept.skipValue",typeof a[1]==="boolean"?(e=a[1],a[1]="$.intercept.skipValue",e?b={}:(b=a[2],a[2]="$.intercept.skipValue")):(b=a[1],a[1]=
"$.intercept.skipValue")):(b=a[0],a[0]="$.intercept.skipValue");var f={};c.each(b,function(a){f[a]=!0});d?c.each(a,function(a,d){if(d==="$.intercept.skipValue")return!0;c.each(d,function(a,d){if(typeof f[a]==="undefined")return!0;typeof d==="object"&&!d.test?c.extend(b[a],d||{}):b[a]=d})}):c.each(a,function(a,d){c.each(d,function(a,d){if(typeof f[a]==="undefined")return!0;typeof d==="object"&&!d.test?c.intercept(!0,b[a],d):b[a]=d})});return b};c.promise=c.promise||function(a){var b=a.object||this;
typeof b[a.handlers]==="undefined"&&(b[a.handlers]=[]);typeof b[a.flag]==="undefined"&&(b[a.flag]=!1);var d=b[a.handlers],e=b[a.flag],f=a.arguments[0];switch(typeof f){case "boolean":e=b[a.flag]=f;case "undefined":e&&d.length&&(c.each(d,function(a,c){c.call(b)}),b[a.handlers]=[]);break;case "function":e?f.call(b):b[a.handlers].push(f);break;default:window.console.error("Unknown arguments for $.promise",[this,arguments])}return e}})(jQuery);
(function(c){c.ScrollTo?window.console.warn("$.ScrollTo has already been defined..."):(c.ScrollTo={config:{duration:400,easing:"swing",callback:void 0,durationMode:"each"},configure:function(a){c.extend(c.ScrollTo.config,a||{});return this},scroll:function(a,b){var d=c.ScrollTo,e=a.pop(),f=e.$container,g=e.$target,e=c("<span/>").css({position:"absolute",top:"0px",left:"0px"}),h=f.css("position");f.css("position","relative");e.appendTo(f);var i=e.offset().top,g=g.offset().top-i;e.remove();f.css("position",
h);f.animate({scrollTop:g+"px"},b.duration,b.easing,function(c){a.length===0?typeof b.callback==="function"&&b.callback.apply(this,[c]):d.scroll(a,b);return!0});return!0},fn:function(a){var b=c.ScrollTo,d=c(this);if(d.length===0)return this;var e=d.parent(),f=[];for(config=c.extend({},b.config,a);e.length===1&&!e.is("body");)a=e.get(0),e.css("overflow-y")!=="visible"&&a.scrollHeight!==a.clientHeight&&(f.push({$container:e,$target:d}),d=e),e=e.parent();f.push({$container:c(c.browser.msie?"html":"body"),
$target:d});config.durationMode==="all"&&(config.duration/=f.length);b.scroll(f,config);return this},construct:function(a){var b=c.ScrollTo;c.fn.ScrollTo=b.fn;b.config=c.extend(b.config,a);return this}},c.ScrollTo.construct())})(jQuery);
(function(c){c.History?window.console.warn("$.History has already been defined..."):(c.History={options:{debug:!1},state:"",$window:null,$iframe:null,handlers:{generic:[],specific:{}},extractHash:function(a){return a.replace(/^[^#]*#/,"").replace(/^#+|#+$/,"")},getState:function(){return c.History.state},setState:function(a){var b=c.History,a=b.extractHash(a);b.state=a;return b.state},getHash:function(){return c.History.extractHash(window.location.hash||location.hash)},setHash:function(a){a=c.History.extractHash(a);
if(typeof window.location.hash!=="undefined"){if(window.location.hash!==a)window.location.hash=a}else if(location.hash!==a)location.hash=a;return a},go:function(a){var b=c.History,a=b.extractHash(a),d=b.getHash(),e=b.getState();a!==d?b.setHash(a):(a!==e&&b.setState(a),b.trigger());return!0},hashchange:function(){var a=c.History,b=a.getHash();a.go(b);return!0},bind:function(a,b){var d=c.History;b?(typeof d.handlers.specific[a]==="undefined"&&(d.handlers.specific[a]=[]),d.handlers.specific[a].push(b)):
d.handlers.generic.push(a);return!0},trigger:function(a){var b=c.History;typeof a==="undefined"&&(a=b.getState());var d,e,f,g;if(typeof b.handlers.specific[a]!=="undefined"){g=b.handlers.specific[a];d=0;for(e=g.length;d<e;++d)f=g[d],f(a)}g=b.handlers.generic;d=0;for(e=g.length;d<e;++d)f=g[d],f(a);return!0},construct:function(){var a=c.History;c(document).ready(function(){a.domReady()});return!0},configure:function(a){var b=c.History;b.options=c.extend(b.options,a);return!0},domReadied:!1,domReady:function(){var a=
c.History;if(!a.domRedied)return a.domRedied=!0,a.$window=c(window),a.$window.bind("hashchange",this.hashchange),setTimeout(a.hashchangeLoader,200),!0},nativeSupport:function(a){var a=a||c.browser,b=a.version,d=parseInt(b,10),e=b.split(/[^0-9]/g),b=parseInt(e[0],10),f=parseInt(e[1],10),e=parseInt(e[2],10),g=!1;a.msie&&d>=8?g=!0:a.webkit&&d>=528?g=!0:a.mozilla?b>1?g=!0:b===1&&(f>9?g=!0:f===9&&e>=2&&(g=!0)):a.opera&&(b>10?g=!0:b===10&&f>=60&&(g=!0));return g},hashchangeLoader:function(){var a=c.History;
if(a.nativeSupport())a.getHash()&&a.$window.trigger("hashchange");else{var b;if(c.browser.msie){a.$iframe=c('<iframe id="jquery-history-iframe" style="display: none;"></$iframe>').prependTo(document.body)[0];a.$iframe.contentWindow.document.open();a.$iframe.contentWindow.document.close();var d=!1;b=function(){var b=a.getHash(),c=a.getState(),g=a.extractHash(a.$iframe.contentWindow.document.location.hash);if(c!==b){if(!d)a.$iframe.contentWindow.document.open(),a.$iframe.contentWindow.document.close(),
a.$iframe.contentWindow.document.location.hash=b;d=!1;a.$window.trigger("hashchange")}else c!==g&&(d=!0,a.setHash(g))}}else b=function(){var b=a.getHash();a.getState()!==b&&a.$window.trigger("hashchange")};setInterval(b,200)}return!0}},c.History.construct())})(jQuery);
(function(c){c(document.body).addClass("js");c.Ajaxy?window.console.warn("$.Ajaxy has already been defined..."):(c.Ajaxy={options:{root_url:"",base_url:"",relative_url:"",request_match:!1,no_log_class:"ajaxy-no_log",redirect:!1,relative_as_base:!0,support_text:!0,analytics:!0,auto_ajaxify:!0,auto_ajaxify_documentReady:!0,auto_sparkle_documentReady:!0,add_sparkle_extension:!0,scrollto_content:!1,scrollto_options:{duration:800,easing:"swing"},anchor_param_name:"anchor",track_all_anchors:!1,track_all_internal_links:!1,
debug:!0,aliases:[["","/"]],Controllers:{},method:"post"},defaults:{Controller:{classname:null,selector:null,matches:null,controller:null,response:null,request:null,error:null,refresh:null},Action:{propagate:!0,action:null,state:null,State:null,controller:null,Controller:null,forward:function(){window.console.error("Ajaxy.Action.forward: Forward never defined.",[this,arguments]);window.console.trace()},trigger:function(){window.console.error("Ajaxy.Action.trigger: Trigger never defined.",[this,arguments]);
window.console.trace()},stopPropagation:function(){this.propagate=!1},preventDefault:function(){this.propagate=!1},documentReady:function(a,b){var d=c.Ajaxy;typeof b!=="object"&&(b={});var e={};switch(this.action){case "refresh":e.auto_ajaxify_documentReady=e.auto_sparkle_documentReady=!1}e=c.extend(!0,{},e,b);return d.stateCompleted(this.State,a,e)}},State:{mode:null,el:null,isLink:!1,isForm:!1,anchor:"",querystring:"",state:"",hash:"",location:"",locationShort:"",raw:{anchor:"",querystring:"",hash:"",
state:"",location:"",locationShort:""},vanilla:{anchor:"",querystring:"",hash:"",state:"",location:"",locationShort:""},clean:{anchor:"",querystring:"",hash:"",state:"",location:"",locationShort:""},controller:null,Request:{url:null,data:{}},Response:{callback:null,data:{}},Error:{callback:null,data:{}},User:{data:{}}}},isConstructed:!1,aliases:{},postpone:!1,Controllers:{},States:{},ignoredStates:{},currentState:{},ajaxQueue:[],data:{},redirected:!1,get:function(a){var b=c.Ajaxy;if(typeof b.data[a]!==
"undefined")return b.data[a]},set:function(a,b){var d=c.Ajaxy;typeof b==="undefined"?typeof a==="object"&&d.data.extend(!0,a):d.data[a]=b},ensureString:function(a){var b="";switch(typeof a){case "number":case "string":b=String(a);break;default:b=""}return b},extractRelativeUrl:function(a,b){var d=c.Ajaxy;typeof b==="undefined"&&(b=!0);a=d.ensureString(a);d=a.stripLeft(d.options.root_url).stripLeft(d.options.base_url);b&&d==="/"&&(d="");return d},extractState:function(a){return c.Ajaxy.extractRelativeUrl(a,
!1)},extractHash:function(a){a=c.Ajaxy.extractState(a);if((a=a.match(/^([^#?]*)/)||"")&&a.length||!1===2)a=a[1]||"";return a},extractAnchor:function(a){var b=c.Ajaxy,a=b.extractState(a),b=b.options.anchor_param_name,d=a.replace(/[^#]+#/g,"#").match(/#+([^#\?]*)/)||"";if(d&&d.length||!1===2)d=d[1]||"";d===a&&(d="");if(!d&&((d=a.match(RegExp(b+"=([a-zA-Z0-9-_]+)"))||"")&&d.length||!1===2))d=d[1]||"";return d},extractQuerystring:function(a){a=c.Ajaxy.extractState(a);if((a=a.match(/\?(.*)$/)||"")&&a.length||
!1===2)a=a[1]||"";return a},track:function(a){var b=c.Ajaxy;if(typeof pageTracker!=="undefined"){var d=a.vanilla.locationShort;b.options.debug&&window.console.debug("Ajaxy.track",[this,arguments],[d]);pageTracker._trackPageview(d)}return!0},matches:function(a,b){var d=c.Ajaxy,e=!1;switch(typeof a){case "function":case "object":if(a.test){e=a.test(b);break}case "array":c.each(a,function(a,c){if(e=d.matches(c,b))return!1});break;case "number":case "string":e=String(a)===b}return e},match:function(a){var b=
c.Ajaxy,d=!1;c.each(b.Controllers,function(c,f){if(b.matches(f.matches||!1,a))return d=c,!1});return d},getController:function(a,b){var d=c.Ajaxy,e=void 0,f=typeof(a||void 0);(f==="number"||f==="string")&&typeof d.Controllers[a]!=="undefined"?e=d.Controllers[a]:f==="object"&&typeof a.controller==="string"?e=d.getController(a.controller,b):b?e=c.extend(!0,{},d.defaults.Controller):b!==!1&&(window.console.error("Ajaxy.getController: Controller does not exist",[this,arguments]),window.console.trace());
return e},getControllerAction:function(a,b,d){var e=void 0,f=c.Ajaxy.getController(a,!1);if(typeof f==="undefined")d!==!1&&(window.console.error("Ajaxy.getControllerAction: Controller does not exist",[this,arguments]),window.console.trace());else{var g=typeof(f[b]||void 0);g==="function"||g==="object"?e=f[b]:d!==!1&&(window.console.error("Ajaxy.getControllerAction: Controller Action does not exist",[this,arguments]),window.console.trace())}return e},bind:function(){return c.Ajaxy.addControllers.apply(this,
arguments)},addController:function(a,b){var d=c.Ajaxy;if(typeof b==="undefined"&&typeof a==="object")b=a;else if(typeof a==="string"&&typeof b==="function")b={controller:a,response:b};else if(typeof a==="string"&&typeof b==="object"){if(typeof b.controller==="undefined")b.controller=a}else window.console.error("Ajaxy.addController: Unknown Controller Format",[this,arguments]),window.console.trace();if(typeof d.Controllers[b.controller]!=="undefined")return window.console.error("Ajaxy.addController: Controller ["+
b.controller+"] has already been bound.",[this,arguments],[b]),window.console.trace(),!1;b=c.prepareObject(d.defaults.Controller,b);if(!b.selector&&b.classname)b.selector="."+b.classname;d.Controllers[b.controller]=b;d.options.auto_ajaxify&&d.ajaxifyController(b);return b},addControllers:function(a){var b=c.Ajaxy;typeof a==="object"&&typeof a.controller==="string"?window.console.warn("Ajaxy.addControllers: It seems you intended to call addController instead.",[this,arguments]):(typeof a==="object"||
typeof a==="array")&&c.each(a,function(a,c){b.addController(a,c)});return!0},getState:function(a,b,d){var e=c.Ajaxy,a=e.extractState((a||{}).state||a),f=void 0,g=typeof(a||void 0);(g==="number"||g==="string")&&typeof e.States[a]!=="undefined"?f=e.States[a]:b?f=e.createState(a):b!==!1&&d&&(window.console.error("Ajaxy.getState: State does not exist",[this,arguments]),window.console.trace());f&&e.rebuildState(f);return f},createState:function(a){var b=c.Ajaxy,a=b.extractState((a||{}).state||a);State=
c.extend(!0,{},b.defaults.State,{state:a});b.rebuildState(State);return State},buildState:function(a){var b=c.Ajaxy;b.options.debug&&window.console.debug("Ajaxy.buildState:",[this,arguments]);typeof a==="string"&&(a={url:a});var d=b.getState(!1,!0);c.extend(!0,d,a);if(!d.state&&d.url)d.state=b.extractState(d.url);if(!d.state)d.state="/";if(d.el){var e=c(d.el);e.is("form")?(d.isForm=!0,d.isLink=!1):e.is("a")?(d.isForm=!1,d.isLink=!0):window.console.warn("Ajaxy.buildState: Unknown element type passed.",
[this,arguments],[d.el]);delete e}b.rebuildState(d);if(d.anchor===d.state||d.anchor===d.hash)d.anchor="";if(!d.hash&&!d.raw.querystring&&d.anchor)d.hash=b.currentState.hash||"",d.querystring=d.raw.querystring,b.rebuildState(d);(!d.state||!d.hash&&!d.raw.querystring)&&window.console.warn("Ajaxy.go: No state or (hash and querystring).",[this,arguments],[d]);if(!d.mode)d.mode=d.isLink&&b.postpone?d.anchor&&!d.raw.querystring&&d.hash===b.options.relative_url?"ignore":"postpone":d.isForm?"silent":"default";
return d},rebuildState:function(a){var b=c.Ajaxy,d=b.extractState(a.state),e=b.ensureString(a.hash)||b.extractHash(d),f=b.ensureString(a.anchor)||b.extractAnchor(d),d=b.ensureString(a.querystring)||b.extractQuerystring(d),g=b.options.base_url,h=b.options.root_url,b=b.options.anchor_param_name;if(f){var i=d.queryStringToJSON();i.anchor=f;d=unescape(c.param(i));delete i}a.anchor=f;a.querystring=d;a.hash=e;a.state=e+(d?"?"+d:"");a.locationShort=g+"#"+a.state;a.location=h+a.locationShort;a.raw.anchor=
"";a.raw.querystring=a.querystring.replace(RegExp("&?"+b+"=[a-zA-Z0-9-_]+","gi"),"").replace(/^&+/g,"");a.raw.hash=a.hash;a.raw.state=a.hash+(a.raw.querystring?"?"+a.raw.querystring:"");a.raw.locationShort=g+(a.raw.state?"#"+a.raw.state:"");a.raw.location=h+a.raw.locationShort;a.vanilla.anchor=a.anchor;a.vanilla.querystring=a.raw.querystring;a.vanilla.hash=a.vanilla.anchor;a.vanilla.state=a.vanilla.anchor;a.vanilla.locationShort=g+a.raw.hash+(a.vanilla.querystring?"?"+a.vanilla.querystring:"")+(a.vanilla.anchor?
"#"+a.vanilla.anchor:"");a.vanilla.location=h+a.vanilla.locationShort;a.clean.anchor="";a.clean.querystring=a.raw.querystring;a.clean.hash="";a.clean.state="";a.clean.locationShort=g+a.hash+(a.clean.querystring?"?"+a.clean.querystring:"");a.clean.location=h+a.clean.locationShort;return a},storeState:function(a){var b=c.Ajaxy,d=!0,d=typeof(a||void 0);b.rebuildState(a);d==="object"&&typeof a.state==="string"?d=b.States[a.state]=a:(window.console.error("Ajaxy.storeState: Unknown State Format",[this,
arguments]),window.console.trace(),d=!1);return d},statesEquivalent:function(a,b){var d=c.Ajaxy,e=!1;a.isForm||b.isForm?e=!1:a.state&&c.each(d.aliases[a.hash]||[a.hash],function(c,d){if(d===b.hash&&a.raw.querystring===b.raw.querystring)return e=!0,!1});return e},stateCompleted:function(a,b,d){var e=c.Ajaxy;typeof a!=="object"&&(a={});if(!(b instanceof jQuery)||!b.length)b=c(document.body);typeof d!=="object"&&(d={});d=c.extend({},e.options,d);if(d.auto_sparkle_documentReady&&c.Sparkle){if(d.add_sparkle_extension)d.auto_ajaxify_documentReady=
!1;b.sparkle()}d.auto_ajaxify_documentReady&&b.ajaxify();(e=a.anchor||!1)?(a.anchor=!1,c("#"+e).giveTarget().ScrollTo(d.scrollto_options)):d.scrollto_content&&!b.is("body")&&b.ScrollTo(d.scrollto_options);return!0},refresh:function(){return c.Ajaxy.go(c.History.getHash())},go:function(a){var b=c.Ajaxy,d=c.History;b.options.debug&&window.console.debug("Ajaxy.go:",[this,arguments]);var e=b.buildState(a);b.storeState(e);switch(e.mode){case "silent":b.stateChange(e.state);break;case "ignore":b.ignoredStates[e.vanilla.state]=
e;document.location=e.vanilla.location;break;case "postpone":document.location=e.location;break;default:d.go(e.state)}return!0},trigger:function(a,b,d){var e=c.Ajaxy;e.options.debug&&window.console.debug("Ajaxy.trigger: ",[this,arguments]);var f=!0;a||(window.console.warn("Ajaxy.trigger: No controller was passed, reset to _generic.",[this,arguments]),a="_generic");var g=e.getController(a),h=e.getControllerAction(a,b,!1),i=e.getState(d,!0),d=i.state||void 0;if(typeof g==="undefined")return window.console.error("Ajaxy.trigger: Controller does not exist",
[this,arguments]),window.console.trace(),a!=="_generic"&&e.trigger("_generic","error",i),!1;if(typeof h==="undefined")return b==="refresh"?(window.console.warn("Ajaxy.trigger: Controller Action ["+a+"].["+b+"] does not exist. Defaulting to ["+a+"].["+b+"] Action.",[this,arguments]),e.trigger(a,"response",i)):(a==="_generic"?(window.console.error("Ajaxy.trigger: Controller Action ["+a+"].["+b+"] does not exist.",[this,arguments]),window.console.trace()):(window.console.warn("Ajaxy.trigger: Controller Action ["+
a+"].["+b+"] does not exist. Defaulting to [_generic].["+b+"] Action.",[this,arguments]),e.trigger("_generic",b,i)),!1);g=c.extend(!0,{},e.defaults.Action,{action:b,controller:a,Controller:g,state:d,State:i});g.forward=g.trigger=function(c,f,g){e.options.debug&&window.console.debug("Ajaxy.Action.trigger:",[this,arguments]);c=c||a;f=f||b;g=g||d;e.trigger(c,f,g);return!0};h.apply(g,[]);g.propagate===!1&&(f=!1);f&&a!=="_generic"&&g.forward("_generic");return!0},request:function(a){var b=c.Ajaxy,d=c.History;
b.options.debug&&window.console.debug("Ajaxy.request:",[this,arguments]);var e=!1,f=b.options.request_match instanceof RegExp&&!b.options.request_match.test(a),g=typeof b.ignoredStates[a]!=="undefined";if(f||g)return b.options.debug&&window.console.debug("Ajaxy.request: We are an ignored state",[this,arguments],[a]),!0;delete f;delete g;var h=b.getState(a,!0);if(b.redirected!==!1)b.redirected=!1;else{c(".target").removeClass("target");if(b.statesEquivalent(h,b.currentState))return h.controller=b.currentState.controller,
h.Request=b.currentState.Request,h.Response=b.currentState.Response,h.Error=b.currentState.Error,b.currentState=h,b.storeState(h),b.trigger(h.controller,"refresh",b.currentState),b.options.debug&&window.console.debug("Ajaxy.request: There has been no considerable change",[this,arguments],[b.currentState,h,a]),!0;b.ajaxQueue.push(a);if(b.ajaxQueue.length!==1)return!1;b.options.analytics&&b.track(h);b.currentState=h;f=h.controller||b.match(a)||void 0;h.controller=f;h.Request.url=h.Request.url||h.clean.location;
b.storeState(h);b.trigger(f,"request");f={data:h.Request.data,url:h.Request.url,success:function(e,f){b.options.debug&&window.console.debug("Ajaxy.request.success:",[this,arguments]);e=c.extend(!0,{},b.defaults.State.Response.data,e);e.Ajaxy=e.Ajaxy||{};if(e.Ajaxy.redirected){var g=b.extractState(e.Ajaxy.redirected.to);b.redirected={status:!0,from:a,to:g};d.go(g)}b.ajaxQueue.shift();if((g=b.ajaxQueue.pop())&&g!==a)return b.ajaxQueue=[],b.stateChange(g),!1;h.Response.data=e;h.Error.data={};g=e.controller||
h.controller||null;g===null&&(g="_generic",window.console.warn("Ajaxy.request.success.controller: The controller was unable to be determined, defaulted to _generic.",[this,arguments],[e.controller,h.controller]));return h.Response.callback&&(h.Response.callback.apply(h,arguments)||g==="callback")?!0:b.trigger(g,"response",h)},error:function(c,d,e,f){b.options.debug&&window.console.debug("Ajaxy.request.error:",[this,arguments]);f||(f={responseText:c.responseText.trim()||!1});b.ajaxQueue.shift();var g=
b.ajaxQueue.pop();if(g&&g!==a)return b.ajaxQueue=[],b.stateChange(g),!1;h.Request.XMLHttpRequest=c;h.Response.data=f;h.Error.data={};g=f.controller||h.controller||null;g===null&&(g="_generic",window.console.warn("Ajaxy.request.error.controller: The controller was unable to be determined, defaulted to _generic.",[this,arguments],[f.controller,h.controller]));return h.Error.callback&&(h.Error.callback.apply(h,arguments)||g==="callback")?!0:b.trigger(g,"error",h)},complete:function(a,c){b.options.debug&&
window.console.debug("Ajaxy.request.complete:",[this,arguments]);h.Request.XMLHttpRequest=a}};if(h.isForm){var i=c(h.el);if(i.attr("enctype")==="multipart/form-data"){var e="ajaxy_form_iframe_"+Math.floor(Math.random()*99999),j=c('<iframe style="display:none" src="about:blank" id="'+e+'" name="'+e+'" >').appendTo("body").hide(),l=c('<input type="hidden" name="ajax" value="true"/>').appendTo(i),k=c('<input type="hidden" name="Ajaxy[form]" value="true"/>').appendTo(i);j.bind("load",function(){if((this.document||
this.currentDocument||this.contentWindow.document).location.href==="about:blank")return!0;var a=j.contents().find(".response").val(),b=!1;try{b=c.parseJSON(a)}catch(d){window.console.error("Ajaxy.request.form: Invalid Response.",[this,arguments],[a])}b?request.success(b):request.error(b);i.removeAttr("target");j.remove();l.remove();k.remove()});i.attr("target",e);i.submit();g=i.values();f.data=c.extend(!0,f.data,g||{});e=!0}else g=i.values(),f.data=c.extend(!0,f.data,g||{})}g=!0;h.Request=f;e||(g=
b.ajax(f));return g}},ajax:function(a){var b=c.Ajaxy;b.options.debug&&window.console.debug("Ajaxy.ajax:",[this,arguments]);var d={};d.success=a.success||function(a,d){b.options.debug&&window.console.debug("Ajaxy.ajax.callbacks.success:",[this,arguments]);c(".error").empty()};d.error=a.error||function(a,d,e,i){b.options.debug&&window.console.debug("Ajaxy.ajax.callbacks.error:",[this,arguments]);c(".error").html(e)};d.complete=a.complete||function(a,c){b.options.debug&&window.console.debug("Ajaxy.ajax.callbacks.complete:",
[this,arguments])};delete a.success;delete a.error;delete a.complete;var e={type:b.options.method,dataType:b.options.support_text?"text":"json"};c.extend(!0,e,a);e.success=function(a,e){b.options.debug&&window.console.debug("Ajaxy.ajax.request.success:",[this,arguments]);var h={};if(typeof a!=="object"&&b.options.support_text&&a)try{h=c.parseJSON(a)}catch(i){var h=b.htmlCompat(a),j=c(h),l=j.find("#ajaxy-head"),k=j.find("#ajaxy-body"),m=j.find("#ajaxy-title"),j=j.find("#ajaxy-controller"),m=m.length?
m.text():"",l=l.length?l.htmlAndSelf():"",n=k.length?k.htmlAndSelf():"",k=k.length?k.html():h,h={controller:j.length?j.text().trim():null,responseText:a,html:h,title:m,head:l,body:n,content:k}}else h=a;b.options.debug&&window.console.debug("Ajaxy.ajax.success:",[this,arguments]);return typeof h.controller==="undefined"&&(typeof h.success!=="undefined"&&!h.success||typeof h.error!=="undefined"&&h.error)?d.error.apply(this,[null,e,h.error||!0,h]):d.success.apply(this,[h,e])};e.error=function(a,e,h){b.options.debug&&
window.console.debug("Ajaxy.ajax.request.error:",[this,arguments]);var i=a.responseText||!1;i&&(i=i.trim());i||(i=!1);var j={error:h||!0,responseText:i};if(i)try{j=c.parseJSON(i)}catch(l){}finally{return this.success.apply(this,[j,e])}return d.error.apply(this,[a,e,h,j])};return c.ajax(e)},configure:function(a){var b=c.Ajaxy,d=c.History,a=a||{};if(typeof a!=="object")window.console.error("Ajaxy.configure: Invalid Options Passed",[this,arguments]);else{var e;typeof a.Controllers==="object"?(e=a.Controllers,
delete a.Controllers):typeof a.controllers==="object"?(e=a.controllers,delete a.controllers):(e=a,a={});b.options=c.extend(!0,b.options,a.options||a);b.options.root_url=(b.options.root_url||document.location.protocol.toString()+"//"+document.location.hostname.toString()).replace(/\/+$/,"")+"/";b.options.base_url=b.options.base_url||"";b.options.relative_url=b.extractState(b.options.relative_url||document.location.pathname.toString());if(b.options.relative_as_base&&b.options.base_url.length===0)b.options.base_url=
b.options.relative_url,b.options.relative_url="";b.options.root_url=b.options.root_url.replace(/\/+$/,"");b.options.base_url=b.options.base_url.replace(/\/+$/,"");b.options.relative_url=b.extractRelativeUrl(b.options.relative_url);if(b.options.root_url==="/")b.options.root_url="";if(b.options.base_url==="/")b.options.base_url="";if(b.options.relative_url==="/")b.options.relative_url="";if(b.options.request_match===!0){var f=[];b.options.root_url&&f.push("^"+b.options.root_url+b.options.base_url);
b.options.base_url&&f.push("^"+b.options.base_url);f.push("^/");b.options.request_match=RegExp(f.join("|"),"i");delete f}b.options.debug&&window.console.debug("Ajaxy.configure:",[this,arguments]);if(b.options.relative_url&&b.options.relative_url!==null)if(b.options.redirect===!0)f=b.options.root_url+b.options.base_url+"#"+b.options.relative_url,(d=d.getHash())&&(f+="?anchor="+d),document.location=f;else if(b.options.redirect==="postpone")b.postpone=!0;else if(b.options.redirect==="disable")b.addAjaxy=
b.ajaxify=b.bind=function(){},c(function(){c(".ajaxy").removeAjaxy()});b.aliases=[];c.each(b.options.aliases,function(a,d){c.each(d,function(a,c){b.aliases[c]=d})});b.addControllers(e);b.onConfigured(!0);return!0}},construct:function(){var a=c.Ajaxy,b=c.History;if(!a.isConstructed)return a.isConstructed=!0,b.bind(function(b){return a.stateChange(b)}),c.Sparkle&&c.Sparkle.addExtension("ajaxy",function(){c(this).ajaxify()}),c.fn.ajaxy=a.fn.ajaxify,c.each(a.fn,function(a,b){c.fn[a]=b}),c(function(){a.onDocumentReady(!0)}),
a.onReady(function(){a.options.auto_ajaxify&&c("body").ajaxify()}),a.onConfigured(function(){a.onDocumentReady(function(){a.onReady(!0)})}),!0},ajaxifyController:function(a){var b=c.Ajaxy.getController(a);b&&b.selector&&c(function(){c(b.selector).data("ajaxy-controller",a).addAjaxy()});return!0},fn:{ajaxify:function(){var a=c.Ajaxy,b=c(this);c.each(a.Controllers,function(b){a.ajaxifyController(b)});if(a.options.track_all_internal_links){var d=b.findAndSelf("a[href^=/],a[href^=./]");if(a.options.root_url){var e=
c("a[href^="+a.options.root_url+"]"),d=d.add(e);delete e}d=d.filter(":not(.ajaxy,.no-ajaxy)").addClass("ajaxy");delete d}a.options.track_all_anchors&&b.findAndSelf("a[href^=#]:not(.ajaxy,.no-ajaxy)").addClass("ajaxy");b.addAjaxy();return b},addAjaxy:function(a){var b=c.Ajaxy,d=c(this);d.is("form,a")&&d.addClass("ajaxy");a&&(a=b.getController(a),a.classname&&d.addClass(a.classname));d.findAndSelf("a.ajaxy:not(.ajaxy-has)").addClass("ajaxy-has").once("click",b.ajaxifyHelpers.a);d.findAndSelf("form.ajaxy:not(.ajaxy-has)").addClass("ajaxy-has").once("submit",
b.ajaxifyHelpers.form);return d},removeAjaxy:function(a){var b=c.Ajaxy,d=c(this),a=c.extend({permanently:!0},a),e=d.findAndSelf("a.ajaxy").removeClass("ajaxy ajaxy-has").unbind("click",b.ajaxifyHelpers.a),b=d.findAndSelf("form.ajaxy").removeClass("ajaxy ajaxy-has").unbind("submit",b.ajaxifyHelpers.form);a.permanently&&e.add(b).addClass("no-ajaxy");return d}},ajaxifyHelpers:{a:function(a){var b=c.Ajaxy,d=c(this),e=b.extractRelativeUrl(d.attr("href")).replace(/^\/?\.\//,"/"),f=b.extractState(e),e=b.extractAnchor(e);
if("/"+e===f||e===f)e="";var g=!d.hasClass(b.options.no_log_class),d=d.data("ajaxy-controller")||null;b.go({state:f,controller:d,log:g,anchor:e,el:this});a.stopPropagation();a.preventDefault();return!1},form:function(a){var b=c.Ajaxy,d=c(this),e=d.attr("disabled");if(e||e==="false")return!1;if(d.attr("target"))return!0;d=b.extractRelativeUrl(d.attr("action")).replace(/^\/?\.\//,"/");d=b.extractState(d);b.go({state:d,el:this});a.stopPropagation();a.preventDefault();return!1}},htmlCompat:function(a){return String(a).replace(/<\!DOCTYPE[^>]*>/i,
"").replace(/<(html|head|body|title|meta)/gi,'<div id="ajaxy-$1"').replace(/<\/(html|head|body|title|meta)/gi,"</div")},stateChange:function(a){c.Ajaxy.request(a)},onConfigured:function(){return c.promise({object:this,handlers:"onConfiguredHandlers",flag:"isConfigured",arguments:arguments})},onDocumentReady:function(a){return c.promise({object:this,handlers:"onDocumentReadyHandlers",flag:"isDocumentReady",arguments:arguments})},onReady:function(a){return c.promise({object:this,handlers:"onReadyHandlers",
flag:"isReady",arguments:arguments})}},c.Ajaxy.construct())})(jQuery);

