﻿/*
 * Compressed by iPow(www.iPow.cn)
 */
new function(D){var A=D.separator||"&",G=D.spaces===false?false:true,E=D.suffix===false?"":"[]",B=D.prefix===false?false:true,C=B?D.hash===true?"#":"?":"",F=D.numbers===false?false:true;jQuery.query=new function(){var B=function(B,A){return B!=undefined&&B!==null&&(!!A?B.constructor==A:true)},H=function(B){var E,F=/\[([^[]*)\]/g,D=/^(\S+?)(\[\S*\])?$/.exec(B),A=D[1],C=[];while(E=F.exec(D[2]))C.push(E[1]);return[A,C]},E=function(F,I,D){var H,C=I.shift();if(typeof F!="object")F=null;if(C===""){if(!F)F=[];if(B(F,Array))F.push(I.length==0?D:E(null,I.slice(0),D));else if(B(F,Object)){var J=0;while(F[J++]!=null);F[--J]=I.length==0?D:E(F[J],I.slice(0),D)}else{F=[];F.push(I.length==0?D:E(null,I.slice(0),D))}}else if(C&&C.match(/^\s*[0-9]+\s*$/)){var A=parseInt(C,10);if(!F)F=[];F[A]=I.length==0?D:E(F[A],I.slice(0),D)}else if(C){A=C.replace(/^\s*|\s*$/g,"");if(!F)F={};if(B(F,Array)){var G={};for(J=0;J<F.length;++J)G[J]=F[J];F=G}F[A]=I.length==0?D:E(F[A],I.slice(0),D)}else return D;return F},D=function(A){var B=this;B.keys={};if(A.queryObject)jQuery.each(A.get(),function(C,A){B.SET(C,A)});else jQuery.each(arguments,function(){var A=""+this;A=A.replace(/^[?#]/,"");A=A.replace(/[;&]$/,"");if(G)A=A.replace(/[+]/g," ");jQuery.each(A.split(/[&;]/),function(){var C=decodeURIComponent(this.split("=")[0]),A=decodeURIComponent(this.split("=")[1]);if(!C)return;if(F)if(/^[+-]?[0-9]+\.[0-9]*$/.test(A))A=parseFloat(A);else if(/^[+-]?[0-9]+$/.test(A))A=parseInt(A,10);A=(!A&&A!==0)?true:A;if(A!==false&&A!==true&&typeof A!="number")A=A;B.SET(C,A)})});return B};D.prototype={queryObject:true,has:function(D,C){var A=this.get(D);return B(A,C)},GET:function(F){if(!B(F))return this.keys;var A=H(F),D=A[0],E=A[1],C=this.keys[D];while(C!=null&&E.length!=0)C=C[E.shift()];return typeof C=="number"?C:C||""},get:function(C){var A=this.GET(C);if(B(A,Object))return jQuery.extend(true,{},A);else if(B(A,Array))return A.slice(0);return A},SET:function(J,A){var G=!B(A)?null:A,C=H(J),F=C[0],I=C[1],D=this.keys[F];this.keys[F]=E(D,I.slice(0),G);return this},set:function(B,A){return this.copy().SET(B,A)},REMOVE:function(A){return this.SET(A,null).COMPACT()},remove:function(A){return this.copy().REMOVE(A)},EMPTY:function(){var A=this;jQuery.each(A.keys,function(C,B){delete A.keys[C]});return A},load:function(C){var B=C.replace(/^.*?[#](.+?)(?:\?.+)?$/,"$1"),A=C.replace(/^.*?[?](.+?)(?:#.+)?$/,"$1");return new D(C.length==A.length?"":A,C.length==B.length?"":B)},empty:function(){return this.copy().EMPTY()},copy:function(){return new D(this)},COMPACT:function(){function A(D){var C=typeof D=="object"?B(D,Array)?[]:{}:D;if(typeof D=="object"){function E(C,D,A){if(B(C,Array))C.push(A);else C[D]=A}jQuery.each(D,function(F,D){if(!B(D))return true;E(C,F,A(D))})}return C}this.keys=A(this.keys);return this},compact:function(){return this.copy().COMPACT()},toString:function(){var I=0,E=[],D=[],G=this,F=function(A,E,C){if(!B(C)||C===false)return;var D=[encodeURIComponent(E)];if(C!==true){D.push("=");D.push(encodeURIComponent(C))}A.push(D.join(""))},H=function(C,B){var A=function(A){return!B||B==""?[A].join(""):[B,"[",A,"]"].join("")};jQuery.each(C,function(C,B){if(typeof B=="object")H(B,A(C));else F(D,A(C),B)})};H(this.keys);if(D.length>0)E.push(C);E.push(D.join(A));return E.join("")}};return new D(location.search,location.hash)}}(jQuery.query||{});Array.prototype.unique=function(){var A={},B=this.length;for(var C=0;C<B;C++)if(typeof A[this[C]]=="undefined")A[this[C]]=1;this.length=0;for(C in A)this[this.length]=C;return this};Array.prototype.SortNumber=function(A){if(!A)A=0;if(A==1)return this.sort(function(B,A){return A-B});return this.sort(function(B,A){return B-A})};Array.prototype.GetMax=function(){return this.SortNumber(1)[0]};Array.prototype.GetMin=function(){return this.SortNumber(0)[0]};Array.prototype.Delete=function(A){if(A<0)return this;return this.slice(0,A).concat(this.slice(A+1,this.length))}