new function(n){var i=n.separator||"&",t=n.spaces===!1?!1:!0,e=n.suffix===!1?"":"[]",r=n.prefix===!1?!1:!0,u=r?n.hash===!0?"#":"?":"",f=n.numbers===!1?!1:!0;jQuery.query=new function(){var n=function(n,t){return n!=undefined&&n!==null&&(!t?!0:n.constructor==t)},o=function(n){for(var t,u=/\[([^[]*)\]/g,i=/^([^[]+)(\[.*\])?$/.exec(n),f=i[1],r=[];t=u.exec(i[2]);)r.push(t[1]);return[f,r]},r=function(t,i,u){var o=i.shift(),e,s,f;if(typeof t!="object"&&(t=null),o==="")if(t||(t=[]),n(t,Array))t.push(i.length==0?u:r(null,i.slice(0),u));else if(n(t,Object)){for(f=0;t[f++]!=null;);t[--f]=i.length==0?u:r(t[f],i.slice(0),u)}else t=[],t.push(i.length==0?u:r(null,i.slice(0),u));else if(o&&o.match(/^\s*[0-9]+\s*$/))e=parseInt(o,10),t||(t=[]),t[e]=i.length==0?u:r(t[e],i.slice(0),u);else if(o){if(e=o.replace(/^\s*|\s*$/g,""),t||(t={}),n(t,Array)){for(s={},f=0;f<t.length;++f)s[f]=t[f];t=s}t[e]=i.length==0?u:r(t[e],i.slice(0),u)}else return u;return t},e=function(n){var t=this;return t.keys={},n.queryObject?jQuery.each(n.get(),function(n,i){t.SET(n,i)}):t.parseNew.apply(t,arguments),t};return e.prototype={queryObject:!0,parseNew:function(){var n=this;return n.keys={},jQuery.each(arguments,function(){var i=""+this;i=i.replace(/^[?#]/,"");i=i.replace(/[;&]$/,"");t&&(i=i.replace(/[+]/g," "));jQuery.each(i.split(/[&;]/),function(){var i=decodeURIComponent(this.split("=")[0]||""),t=decodeURIComponent(this.split("=")[1]||"");i&&(f&&(/^[+-]?[0-9]+\.[0-9]*$/.test(t)?t=parseFloat(t):/^[+-]?[1-9][0-9]*$/.test(t)&&(t=parseInt(t,10))),t=!t&&t!==0?!0:t,n.SET(i,t))})}),n},has:function(t,i){var r=this.get(t);return n(r,i)},GET:function(t){if(!n(t))return this.keys;for(var r=o(t),f=r[0],u=r[1],i=this.keys[f];i!=null&&u.length!=0;)i=i[u.shift()];return typeof i=="number"?i:i||""},get:function(t){var i=this.GET(t);return n(i,Object)?jQuery.extend(!0,{},i):n(i,Array)?i.slice(0):i},SET:function(t,i){var e=n(i)?i:null,u=o(t),f=u[0],s=u[1],h=this.keys[f];return this.keys[f]=r(h,s.slice(0),e),this},set:function(n,t){return this.copy().SET(n,t)},REMOVE:function(t,i){var r,u;if(i)if(r=this.GET(t),n(r,Array)){for(tval in r)r[tval]=r[tval].toString();if(u=$.inArray(i,r),u>=0)t=r.splice(u,1),t=t[u];else return}else if(i!=r)return;return this.SET(t,null).COMPACT()},remove:function(n,t){return this.copy().REMOVE(n,t)},EMPTY:function(){var n=this;return jQuery.each(n.keys,function(t){delete n.keys[t]}),n},load:function(n){var t=n.replace(/^.*?[#](.+?)(?:\?.+)?$/,"$1"),i=n.replace(/^.*?[?](.+?)(?:#.+)?$/,"$1");return new e(n.length==i.length?"":i,n.length==t.length?"":t)},empty:function(){return this.copy().EMPTY()},copy:function(){return new e(this)},COMPACT:function(){function t(i){var r=typeof i=="object"?n(i,Array)?[]:{}:i;if(typeof i=="object"){function u(t,i,r){n(t,Array)?t.push(r):t[i]=r}jQuery.each(i,function(i,f){if(!n(f))return!0;u(r,i,t(f))})}return r}return this.keys=t(this.keys),this},compact:function(){return this.copy().COMPACT()},toString:function(){var r=[],f=[],h=this,e=function(n){return n=n+"",n=encodeURIComponent(n),t&&(n=n.replace(/%20/g,"+")),n},s=function(t,i,r){if(n(r)&&r!==!1){var u=[e(i)];r!==!0&&(u.push("="),u.push(e(r)));t.push(u.join(""))}},o=function(n,t){var i=function(n){return!t||t==""?[n].join(""):[t,"[",n,"]"].join("")};jQuery.each(n,function(n,t){typeof t=="object"?o(t,i(n)):s(f,i(n),t)})};return o(this.keys),f.length>0&&r.push(u),r.push(f.join(i)),r.join("")}},new e(location.search,location.hash)}}(jQuery.query||{})