Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add headers:[] ajax args with default of X-Requested-With:XMLHttpRequest

  • Loading branch information...
commit a8a3875a7ca16f29e2206eb9488c0bcf4fa77d46 1 parent a72b488
@mythz authored
View
2  dist/jquip.ajax.min.js
@@ -1 +1 @@
-$.plug("ajax",function($){function _xhr(){if(_xhrf!=null)return _xhrf();for(var a=0,b=xhrs.length;a<b;a++)try{var c=xhrs[a],d=c();if(d!=null)return _xhrf=c,d}catch(e){}return function(){}}function _xhrResp(xhr,dataType){return dataType=(dataType||xhr.getResponseHeader("Content-Type").split(";")[0]).toLowerCase(),dataType.indexOf("json")>=0?window.JSON?window.JSON.parse(xhr.responseText):eval(xhr.responseText):dataType.indexOf("script")>=0?eval(xhr.responseText):dataType.indexOf("xml")>=0?xhr.responseXML:xhr.responseText}function ajax(a,b){var c=_xhr(),d,e=0;typeof a=="object"?b=a:b.url=a,b=$._defaults(b,{userAgent:"XMLHttpRequest",lang:"en",type:"GET",data:null,contentType:"application/x-www-form-urlencoded",dataType:null,processData:!0}),b.timeout&&(d=setTimeout(function(){c.abort(),b.timeoutFn&&b.timeoutFn(b.url)},b.timeout));var f=$(b.context||document),g=f;c.onreadystatechange=function(){if(c.readyState==4){d&&clearTimeout(d);if(c.status<300){var a=_xhrResp(c,b.dataType);b.success&&b.success(a),g.trigger("ajaxSuccess",[c,a,b])}else b.error&&b.error(c,c.status,c.statusText),g.trigger(f,"ajaxError",[c,c.statusText,b]);b.complete&&b.complete(c,c.statusText),g.trigger(f,"ajaxComplete",[c,b])}else b.progress&&b.progress(++e)};var a=b.url,h=null,i=b["type"]=="POST"||b["type"]=="PUT";b.data&&b.processData&&typeof b["data"]=="object"&&(h=$.formData(b.data)),!i&&h&&(a+="?"+h),c.open(b.type,a),i&&c.setRequestHeader("Content-Type",b.contentType),c.send(h)}var xhrs=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new ActiveXObject("MSXML2.XMLHTTP.3.0")},function(){return new ActiveXObject("MSXML2.XMLHTTP")}],_xhrf=null;$.xhr=_xhr,$._xhrResp=_xhrResp,$.formData=function(a){var b=[],c=/%20/g;for(var d in a)b.push(encodeURIComponent(d).replace(c,"+")+"="+encodeURIComponent(a[d].toString()).replace(c,"+"));return b.join("&")},$.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){$.fn[b]=function(a){return this.bind(b,a)}}),$.ajax=ajax,$.getJSON=function(a,b,c,d){$.isFunction(b)&&(d=c,c=b,b=null),ajax({url:a,data:b,success:c,dataType:"json"})},$.get=function(a,b,c,d){$.isFunction(b)&&(d=c,c=b,b=null),ajax({url:a,type:"GET",data:b,success:c,dataType:d||"text/plain"})},$.post=function(a,b,c,d){$.isFunction(b)&&(d=c,c=b,b=null),ajax({url:a,type:"POST",data:b,success:c,dataType:d||"text/plain"})},$.getScript=function(a,b){return $.get(a,undefined,b,"script")},window.JSON||$.loadAsync("http://ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js")})
+$.plug("ajax",function($){function _xhr(){if(_xhrf!=null)return _xhrf();for(var a=0,b=xhrs.length;a<b;a++)try{var c=xhrs[a],d=c();if(d!=null)return _xhrf=c,d}catch(e){}return function(){}}function _xhrResp(xhr,dataType){return dataType=(dataType||xhr.getResponseHeader("Content-Type").split(";")[0]).toLowerCase(),dataType.indexOf("json")>=0?window.JSON?window.JSON.parse(xhr.responseText):eval(xhr.responseText):dataType.indexOf("script")>=0?eval(xhr.responseText):dataType.indexOf("xml")>=0?xhr.responseXML:xhr.responseText}function ajax(a,b){var c=_xhr(),d,e=0;typeof a=="object"?b=a:b.url=a,b=$._defaults(b,{userAgent:"XMLHttpRequest",lang:"en",type:"GET",data:null,contentType:"application/x-www-form-urlencoded",dataType:null,processData:!0,headers:{"X-Requested-With":"XMLHttpRequest"}}),b.timeout&&(d=setTimeout(function(){c.abort(),b.timeoutFn&&b.timeoutFn(b.url)},b.timeout));var f=$(b.context||document),g=f;c.onreadystatechange=function(){if(c.readyState==4){d&&clearTimeout(d);if(c.status<300){var a=_xhrResp(c,b.dataType);b.success&&b.success(a),g.trigger("ajaxSuccess",[c,a,b])}else b.error&&b.error(c,c.status,c.statusText),g.trigger(f,"ajaxError",[c,c.statusText,b]);b.complete&&b.complete(c,c.statusText),g.trigger(f,"ajaxComplete",[c,b])}else b.progress&&b.progress(++e)};var a=b.url,h=null,i=b["type"]=="POST"||b["type"]=="PUT";b.data&&b.processData&&typeof b["data"]=="object"&&(h=$.formData(b.data)),!i&&h&&(a+="?"+h),c.open(b.type,a);try{for(var j in b.headers)c.setRequestHeader(j,b.headers[j])}catch(k){console.log(k)}i&&c.setRequestHeader("Content-Type",b.contentType),c.send(h)}var xhrs=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new ActiveXObject("MSXML2.XMLHTTP.3.0")},function(){return new ActiveXObject("MSXML2.XMLHTTP")}],_xhrf=null;$.xhr=_xhr,$._xhrResp=_xhrResp,$.formData=function(a){var b=[],c=/%20/g;for(var d in a)b.push(encodeURIComponent(d).replace(c,"+")+"="+encodeURIComponent(a[d].toString()).replace(c,"+"));return b.join("&")},$.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){$.fn[b]=function(a){return this.bind(b,a)}}),$.ajax=ajax,$.getJSON=function(a,b,c,d){$.isFunction(b)&&(d=c,c=b,b=null),ajax({url:a,data:b,success:c,dataType:"json"})},$.get=function(a,b,c,d){$.isFunction(b)&&(d=c,c=b,b=null),ajax({url:a,type:"GET",data:b,success:c,dataType:d||"text/plain"})},$.post=function(a,b,c,d){$.isFunction(b)&&(d=c,c=b,b=null),ajax({url:a,type:"POST",data:b,success:c,dataType:d||"text/plain"})},$.getScript=function(a,b){return $.get(a,undefined,b,"script")},window.JSON||$.loadAsync("http://ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js")})
View
126 dist/jquip.all.closure-advanced.js
@@ -1,65 +1,65 @@
-var n=void 0,u=!0,v=null,z=!1;
-window.$=window.jquip=function(){function b(a,d,e){if(a===d)return e;for(a=a.nextSibling;a;){if(a===d)return-1;a=a.nextSibling}return 1}function B(a,d){for(var e,i=0,Ba=X.length;i<Ba;i++)if(X[i].apply(this,arguments))return this;if(!a)return this;if(g(a))return ga?a():Y.push(a),this;if(o(a))return this.make(a);if(a.nodeType||h(a))return this.make([a]);if("body"==a&&!d&&y.body)return this.context=a.context,this[0]=y.body,this.length=1,this.selector=a,this;if(a.selector!==n)return this.context=a.context,
-this.selector=a.selector,this.make(a);a=D(a)&&"<"===a.charAt(0)?(e=Ca.exec(a))?(a=[y.createElement(e[1])])&&s(d)?c.fn.attr.call(a,d)&&a:a:Z(a).childNodes:w(a,d);return this.make(a)}function c(a,d){return new B(a,d)}function A(a,d,e){d=d||0;if(g(d))return J(a,function(a,i){return!!d.call(a,i,a)===e});if(d.nodeType)return J(a,function(a){return a===d===e});if(D(d)){var i=":"==d.charAt(0)&&c.Expr[d.substring(1)];return J(a,function(a){return i?i(a):a.parentNode&&0<=E(w(d,a.parentNode),a)})}return J(a,
-function(a){return 0<=E(d,a)===e})}function k(a,d){var e=c.data(a,"_J");if("undefined"===typeof d)return e&&Q[e]&&Q[e].display;e||c.data(a,"_J",e=++Q.id);return(Q[e]||(Q[e]={})).display=d}function p(a){if(!aa[a]){var d=c("<"+a+">").appendTo(y.body),e=c.css&&c.css(d[0],"display")||d[0].style.display;d.remove();aa[a]=e}return aa[a]}function r(a,d){for(var d=" "+d+" ",e=0,i=a.length;e<i;e++)if(f(a[e],d))return u;return z}function f(a,d){return 1===a.nodeType&&-1<(" "+a.className+" ").replace(ha," ").indexOf(d)}
-function j(a,d,e){d=d||y;e=e||[];1==d.nodeType&&a(d)&&e.push(d);for(var d=d.childNodes,i=0,g=d.length;i<g;i++){var b=d[i];1==b.nodeType&&j(a,b,e)}return e}function w(a,d,e){if(a&&D(a)){d instanceof c&&(d=d[0]);var d=d||y,e=e||c.query,i=a.charAt(0),g=a.substring(1),b=Da.test(g),h;try{return b?F.call(e(a,d)):b?F.call(e(a,d)):"#"==i?(h=y.getElementById(g))?[h]:ia:L("."==i?d.getElementsByClassName?d.getElementsByClassName(g):e(a,d):d.getElementsByTagName(a))}catch(o){H(o)}}return 1==a.nodeType||9==a.nodeType?
-[a]:ia}function C(a,d,e){var i=y.head||y.getElementsByTagName("head")[0]||ba,g=y.createElement("script"),b;if(e)g.async="async";g.onreadystatechange=function(){if(!(b=g.readyState)||"loaded"==b||"complete"==b)g.onload=g.onreadystatechange=v,i&&g.parentNode&&i.removeChild(g),g=n,d&&d()};g.onload=d;g.src=a;i.insertBefore(g,i.firstChild)}function H(a){M.console&&M.console.warn(arguments)}function t(a,d,e){if(a!=v)if(ja&&a.forEach===ja)a.forEach(d,e);else if(a.length===+a.length)for(var i=0,g=a.length;i<
-g&&!(i in a&&d.call(e,a[i],i,a)===ka);i++);else for(i in a)if(U.call(a,i)&&d.call(e,a[i],i,a)===ka)break}function m(a,d){return a&&"INPUT"===a.nodeName&&"text"===a.type&&"value"===d?a.value:a?a.getAttribute(d)||(d in a?a[d]:n):v}function x(a,d){var e=[],i,g,b,c;for(i=0,g=ca.length;i<g&&!(c=ca[i].exec(a));i++);if(i<ca.length)for(g=0;b=d[g];g++)(0==i&&c[1]==b.id||1==i&&R(c[1],b.tagName)||2==i&&f(b,c[1])||3==i&&c[2]==m(b,c[1]))&&e.push(b);else H(a+" not supported");return e}function E(a,d){if(a==v)return-1;
-var e,i;if(la&&a.indexOf===la)return a.indexOf(d);for(e=0,i=a.length;e<i;e++)if(a[e]===d)return e;return-1}function G(a,d,e){for(var i=[],a=a[d];a&&9!==a.nodeType&&(e===n||1!==a.nodeType||!c(a).T(e));)1===a.nodeType&&i.push(a),a=a[d];return i}function N(a,d,e){for(var d=d||1,i=0;a&&!(1===a.nodeType&&++i===d);a=a[e]);return a}function S(a,d){for(var e=[];a;a=a.nextSibling)1===a.nodeType&&a!==d&&e.push(a);return e}function J(a,d,e){for(var i=[],g,e=!!e,b=0,c=a.length;b<c;b++)g=!!d(a[b],b),e!==g&&i.push(a[b]);
-return i}function O(a,d,e){var i,g,b=[],h=0,s=a.length;if(a instanceof c||"number"==typeof s&&(0<s&&a[0]&&a[s-1]||0===s||o(a)))for(;h<s;h++)i=d(a[h],h,e),i!=v&&(b[b.length]=i);else for(g in a)i=d(a[g],g,e),i!=v&&(b[b.length]=i);return b.concat.apply([],b)}function K(a,d,e){if(!a)return{};if(d&&e)return a.setAttribute(d,e),v;var i={};t(T(a),function(a,d){0===d.indexOf("data-")&&a&&(i[d.substr(5)]=a)});return D(d)?i[d]:i}function T(a){for(var d={},e=0,a=a.attributes,i=a.length;e<i;e++)d[a.item(e).nodeName]=
-a.item(e).nodeValue;return d}function R(a,d){return!a||!d?a==d:a.toLowerCase()===d.toLowerCase()}function I(a){return a==v?""+a:ma[Ea.call(a)]||"object"}function D(a){return"string"==typeof a}function g(a){return"function"==typeof a||"function"===I(a)}function o(a){return"array"===I(a)}function h(a){return a&&"object"==typeof a&&"setInterval"in a}function s(a){if(!a||"object"!==I(a)||a.nodeType||h(a))return z;try{if(a.constructor&&!U.call(a,"constructor")&&!U.call(a.constructor.prototype,"isPrototypeOf"))return z}catch(d){return z}for(var e in a);
-return e===n||U.call(a,e)}function P(a,d){var e=a.length,i=0;if("number"==typeof d.length)for(var g=d.length;i<g;i++)a[e++]=d[i];else for(;d[i]!==n;)a[e++]=d[i++];a.length=e;return a}function na(){var a,d,e,i,b,c=arguments,h=c[0]||{},f=1,m=c.length,r=z;"boolean"==typeof h&&(r=h,h=c[1]||{},f=2);"object"!=typeof h&&!g(h)&&(h={});m===f&&(h=this,--f);for(;f<m;f++)if((a=c[f])!=v)for(d in a)e=h[d],i=a[d],h!==i&&(r&&i&&(s(i)||(b=o(i)))?(b?(b=z,e=e&&o(e)?e:[]):e=e&&s(e)?e:{},h[d]=na(r,e,i)):i!==n&&(h[d]=
-i));return h}function L(a,d){var e=d||[];if(a!=v){var i=I(a);a.length==v||"string"==i||"function"==i||"regexp"===i||h(a)?oa.call(e,a):P(e,a)}return e}function Z(a,d,e){d=d||y||d.ownerDocument||d[0]&&d[0].ownerDocument||y;e=e||d.createDocumentFragment();if(!D(a)&&"number"==typeof a.length){var i=e,g=[],b,c;for(b=0;(c=a[b])!=v;b++)D(c)&&(c=pa(c,d)),c.nodeType?g.push(c):g=P(g,c);if(i)for(b=0;b<g.length;b++)g[b].nodeType&&i.appendChild(g[b]);return g&&e}for(a=pa(a);a.firstChild;)e.appendChild(a.firstChild);
-return e}function pa(a,d){var e=(d||y).createElement("div"),i=(Fa.exec(a)||["",""])[1].toLowerCase(),i=qa[i]||qa.i,g=i[0];for(e.innerHTML=i[1]+a+i[2];g--;)e=e.lastChild;return e}function V(a){if(da&&(W=Ga,a.sort(da),W))for(var d=1;d<a.length;d++)a[d]===a[d-1]&&a.splice(d--,1);return a}function Ha(){if(!y.body)return v;var a=y.createElement("div");y.body.appendChild(a);a.style.width="20px";a.style.padding="10px";var d=a.offsetWidth;y.body.removeChild(a);return 40==d}function ra(a,d){sa.push({url:a,
-g:d})}function ta(){t(Y,function(a){a()});ga=u}var M=window,y=document,ba=y.documentElement,Y=[],sa=[],ga,Ia=/Until$/,Ja=/,/,Ka=/^(?:parents|prevUntil|prevAll)/,Fa=/<([\w:]+)/,ha=/[\n\t\r]/g,ua=/\s+/,La=/\d/,Ma=/\r\n/g,Ca=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,va=/\r?\n/g,Na=/^(?:select|textarea)/i,Oa=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,wa=String.prototype.trim,ea,xa=/^\s+/,ya=/\s+$/,fa,da,Pa={children:u,S:u,next:u,Y:u},Ea=Object.prototype.toString,
-ma={},W=z,Ga=u,qa={W:[1,"<select multiple='multiple'>","</select>"],U:[1,"<fieldset>","</fieldset>"],ba:[1,"<table>","</table>"],ca:[2,"<table><tbody>","</tbody></table>"],aa:[3,"<table><tbody><tr>","</tr></tbody></table>"],R:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],O:[1,"<map>","</map>"],i:[0,"",""]},Da=/[,\s.#\[>+]/,ia=[],ka={},q=Array.prototype,U=Object.prototype.hasOwnProperty,F=q.slice,oa=q.push,za=q.indexOf,ja=q.forEach,Aa=q.filter,la=q.indexOf;/\S/.test("\u00a0")&&(xa=/^[\s\xA0]+/,
-ya=/[\s\xA0]+$/);var X=[],Qa=0,Q={N:0},aa={},q=B.prototype=c.prototype=c.fn={constructor:c,selector:"",length:0,d:function(a,d,e){var d=a[0],i;if(d&&this[0]){if(!(a=3===d.nodeType&&d))if(a=(a=d&&d.parentNode)&&11===a.nodeType&&a.childNodes.length===this.length?a:Z(d),d=a.firstChild,1===a.childNodes.length&&(a=d),!d)return this;for(i=0,d=this.length;i<d;i++)e.call(this[i],a)}return this},a:function(a,d,e){var i=this.constructor();o(a)?oa.apply(i,a):P(i,a);i.Z=this;i.j=this.j;if("find"===d)i.p=this.selector+
-(this.selector?" ":"")+e;else if(d)i.p=this.selector+"."+d+"("+e+")";return i}};q.make=function(a){this.length=a&&a.length||0;if(0!=this.length)for(var d=0,e=a.length;d<e;d++)this[d]=a[d];return this};q.toArray=function(){return F.call(this,0)};q.get=function(a){return a==v?this.toArray():0>a?this[this.length+a]:this[a]};q.add=function(a,d){var e="string"==typeof a?c(a,d):L(a&&a.nodeType?[a]:a),i=P(this.get(),e);return this.a(!e[0]||!e[0].parentNode||11==e[0].parentNode.nodeType||!i[0]||!i[0].parentNode||
-11==i[0].parentNode.nodeType?i:V(i))};q.each=function(a){if(!g(a))return this;for(var d=0,e=this.length;d<e;d++)a.call(this[d],d,this[d]);return this};q.attr=function(a,d){var e=this[0];return D(a)&&d===n?m(e,a):this.each(function(e){var b=this.nodeType;if(3!==b&&8!==b&&2!==b)if("object"==typeof a)for(var c in a)d===v?this.removeAttribute(a):this.setAttribute(c,a[c]);else this.setAttribute(a,g(d)?d.call(this,e,this.getAttribute(a)):d)})};q.removeAttr=function(a){return this.each(function(){this.removeAttribute(a)})};
-q.data=function(a,d){return K(this[0],a,d)};q.append=function(){return this.d(arguments,u,function(a){1===this.nodeType&&this.appendChild(a)})};q.prepend=function(){return this.d(arguments,u,function(a){1===this.nodeType&&this.insertBefore(a,this.firstChild)})};q.before=function(){return this.d(arguments,z,function(a){this.parentNode.insertBefore(a,this)})};q.after=function(){return this[0]&&this[0].parentNode?this.d(arguments,z,function(a){this.parentNode.insertBefore(a,this.nextSibling)}):this};
-q.hide=function(){return this.each(function(){k(this,this.style.display);this.style.display="none"})};q.show=function(){return this.each(function(){this.style.display=k(this)||p(this.tagName)})};q.toggle=function(){return this.each(function(){this.style.display=c.Expr.hidden(this)?k(this)||p(this.tagName):(k(this,this.style.display),"none")})};q.eq=function(a){return-1===a?this.slice(a):this.slice(a,+a+1)};q.first=function(){return this.eq(0)};q.last=function(){return this.eq(-1)};q.slice=function(){return this.a(F.apply(this,
-arguments),"slice",F.call(arguments).join(","))};q.map=function(a){return this.a(O(this,function(d,e){return a.call(d,e,d)}))};q.find=function(a){var d=this,e,i;if(!D(a))return c(a).filter(function(){for(e=0,i=d.length;e<i;e++)if(fa(d[e],this))return u});var g=this.a("","find",a),b,h,o;for(e=0,i=this.length;e<i;e++)if(b=g.length,P(g,c(a,this[e])),0==e)for(h=b;h<g.length;h++)for(o=0;o<b;o++)if(g[o]===g[h]){g.splice(h--,1);break}return g};q.not=function(a){return this.a(A(this,a,z),"not",a)};q.filter=
-function(a){return this.a(A(this,a,u),"filter",a)};q.indexOf=function(a){return E(this,a)};q.is=function(a){return 0<this.length&&0<c(this[0]).filter(a).length};q.remove=function(){for(var a=0,d;(d=this[a])!=v;a++)d.parentNode&&d.parentNode.removeChild(d);return this};q.closest=function(a,d){var e=[],g;for(g=0,l=this.length;g<l;g++)for(cur=this[g];cur;)if(0<x(a,[cur]).length){e.push(cur);break}else if(cur=cur.parentNode,!cur||!cur.ownerDocument||cur===d||11===cur.nodeType)break;e=1<e.length?V(e):
-e;return this.a(e,"closest",a)};q.val=function(a){return a==v?this[0]&&this[0].value||"":this.each(function(){this.value=a})};q.html=function(a){return a==v?this[0]&&this[0].innerHTML||"":this.each(function(){this.innerHTML=a})};q.text=function(a){var d=this[0],e;return"undefined"==typeof a?d&&(e=d.nodeType)?1===e||9===e?"string"==typeof d.textContent?d.textContent:d.innerText.replace(Ma,""):3===e||4===e?d.nodeValue:v:v:this.empty().append((d&&d.ownerDocument||y).createTextNode(a))};q.empty=function(){for(var a=
-0,d;(d=this[a])!=v;a++)for(;d.firstChild;)d.removeChild(d.firstChild);return this};q.addClass=function(a){var d,e,i,b,h,o,s;if(g(a))return this.each(function(d){c(this).addClass(a.call(this,d,this.className))});if(a&&D(a)){d=a.split(ua);for(e=0,i=this.length;e<i;e++)if((b=this[e])&&1===b.nodeType)if(!b.className&&1===d.length)b.className=a;else{h=" "+b.className+" ";for(o=0,s=d.length;o<s;o++)~h.indexOf(" "+d[o]+" ")||(h+=d[o]+" ");b.className=ea(h)}}return this};q.removeClass=function(a){var d,e,
-b,h,o,s,f;if(g(a))return this.each(function(d){c(this).removeClass(a.call(this,d,this.className))});if(a&&D(a)||a===n){d=(a||"").split(ua);for(e=0,b=this.length;e<b;e++)if(h=this[e],1===h.nodeType&&h.className)if(a){o=(" "+h.className+" ").replace(ha," ");for(s=0,f=d.length;s<f;s++)o=o.replace(" "+d[s]+" "," ");h.className=ea(o)}else h.className=""}return this};q.hasClass=function(a){return r(this,a)};q.fadeIn=function(){this.each(function(){c(this).show()})};q.fadeOut=function(){this.each(function(){c(this).hide()})};
-q.serializeArray=function(){return this.map(function(){return this.elements?L(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Na.test(this.nodeName)||Oa.test(this.type))}).map(function(a,d){var e=c(this).val();return e==v||o(e)?O(e,function(a){return{name:d.name,value:a.replace(va,"\r\n")}}):{name:d.name,value:e.replace(va,"\r\n")}}).get()};c.Expr={hidden:function(a){return 0===a.offsetWidth||0==a.offsetHeight||"none"===(c.css&&c.css(a,"display")||a.style.display)},
-visible:function(a){return!c.Expr.hidden(a)}};c.hasClass=r;c.walk=j;c.$$=w;c.setQuery=function(a){c.query=function(d,e){return w(d,e,a||function(a,d){return d.querySelectorAll(a)})}};q=M.Sizzle||M.qwery;c.setQuery(q||function(a,d){return y.querySelectorAll?L((d||y).querySelectorAll(a)):[]});c.loadScript=C;c.each=function(a,d,e){var b,h=0,c=a.length,o=c===n||g(a);if(e)if(o)for(b in a){if(d.apply(a[b],e)===z)break}else for(;h<c&&!(d.apply(a[h++],e)===z););else if(o)for(b in a){if(d.call(a[b],b,a[b])===
-z)break}else for(;h<c&&!(d.call(a[h],h,a[h++])===z););return a};c._each=t;var ca=[/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/];c.filter=x;c._indexOf=E;c._defaults=function(a){t(F.call(arguments,1),function(d){for(var e in d)a[e]==v&&(a[e]=d[e])});return a};c._filter=function(a,d,e){var g=[];if(a==v)return g;if(Aa&&a.filter===Aa)return a.filter(d,
-e);t(a,function(a,b,h){d.call(e,a,b,h)&&(g[g.length]=a)});return g};c.proxy=function(a,d){if("string"==typeof d)var e=a[d],d=a,a=e;if(g(a)){var b=F.call(arguments,2),e=function(){return a.apply(d,b.concat(F.call(arguments)))};e.f=a.f=a.f||e.f||Qa++;return e}};c.dir=G;c.nth=N;c.sibling=S;c.grep=J;c.map=O;c.data=K;c.attrs=T;c.eqSI=R;c.trim=ea=wa?function(a){return a==v?"":wa.call(a)}:function(a){return a==v?"":a.toString().replace(xa,"").replace(ya,"")};c.indexOf=c.inArray=function(a,d){if(!d)return-1;
-if(za)return za.call(d,a);for(var e=0,g=d.length;e<g;e++)if(d[e]===a)return e;return-1};t("Boolean Number String Function Array Date RegExp Object".split(" "),function(a){ma["[object "+a+"]"]=a.toLowerCase();return this});c.type=I;c.isFunction=g;c.isArray=Array.isArray||o;c.isWindow=h;c.isNaN=function(a){return a==v||!La.test(a)||isNaN(a)};c.merge=P;c.extend=c.fn.extend=na;c.makeArray=L;c.htmlFrag=Z;fa=c.contains=ba.contains?function(a,d){return a!==d&&(a.contains?a.contains(d):u)}:function(){return z};
-da=ba.compareDocumentPosition?(fa=function(a,d){return!!(a.compareDocumentPosition(d)&16)})&&function(a,d){return a===d?(W=u,0):!a.compareDocumentPosition||!d.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(d)&4?-1:1}:function(a,d){if(a===d)return W=u,0;if(a.sourceIndex&&d.sourceIndex)return a.sourceIndex-d.sourceIndex;var e,g,h=[],c=[];e=a.parentNode;g=d.parentNode;var o=e;if(e===g)return b(a,d);if(e){if(!g)return 1}else return-1;for(;o;)h.unshift(o),o=o.parentNode;
-for(o=g;o;)c.unshift(o),o=o.parentNode;e=h.length;g=c.length;for(o=0;o<e&&o<g;o++)if(h[o]!==c[o])return b(h[o],c[o]);return o===e?b(a,c[o],-1):b(h[o],d,1)};c.unique=V;t({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:v},parents:function(a){return G(a,"parentNode")},parentsUntil:function(a,d,e){return G(a,"parentNode",e)},next:function(a){return N(a,2,"nextSibling")},prev:function(a){return N(a,2,"previousSibling")},nextAll:function(a){return G(a,"nextSibling")},prevAll:function(a){return G(a,
-"previousSibling")},nextUntil:function(a,d,e){return G(a,"nextSibling",e)},prevUntil:function(a,d,e){return G(a,"previousSibling",e)},siblings:function(a){return S(a.parentNode.firstChild,a)},children:function(a){return S(a.firstChild)},contents:function(a){return"iframe"===a.nodeName?a.contentDocument||a.contentWindow["document "]:L(a.childNodes)}},function(a,d){c.fn[d]=function(e,g){var b=O(this,a,e),h=F.call(arguments);Ia.test(d)||(g=e);"string"==typeof g&&(b=x(g,b));b=1<this.length&&!Pa[d]?V(b):
-b;if((1<this.length||Ja.test(g))&&Ka.test(d))b=b.reverse();return this.a(b,d,h.join(","))}});t({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after"},function(a,d){c.fn[d]=function(e){var g=[],e=c(e),b,h,o;if((b=1===this.length&&this[0].parentNode)&&11===b.nodeType&&1===b.childNodes.length&&1===e.length)return e[a](this[0]),this;for(b=0,o=e.length;b<o;b++)h=(0<b?this.Q(u):this).get(),c(e[b])[a](h),g=g.concat(h);return this.a(g,d,e.selector)}});(function(){var a=document.createElement("div");
-a.style.display="none";a.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";a=a.getElementsByTagName("a")[0];c.support={P:v,opacity:/^0.55$/.test(a.style.opacity),cssFloat:!!a.style.cssFloat};var a=/(opera)(?:.*version)?[ \/]([\w.]+)/,d=/(msie) ([\w.]+)/,e=/(mozilla)(?:.*? rv:([\w.]+))?/,g=navigator.userAgent.toLowerCase(),a=/(webkit)[ \/]([\w.]+)/.exec(g)||a.exec(g)||d.exec(g)||0>g.indexOf("compatible")&&e.exec(g)||[];(c.browser=
-{version:a[2]||"0"})[a[1]||""]=u})();c.scriptsLoaded=function(a){g(a)&&Y.push(a)};c.loadAsync=ra;!q&&!y.querySelectorAll&&ra("http://cdnjs.cloudflare.com/ajax/libs/sizzle/1.4.4/sizzle.min.js",function(){c.setQuery(M.Sizzle||M.qwery)});c.init=z;c.onload=function(){if(!c.init)try{c.support.boxModel=Ha();var a=0;t(sa,function(d){a++;C(d.url,function(){try{d.g&&d.g()}catch(g){}--a||ta()})});c.init=u;a||ta()}catch(d){H(d)}};y.body&&!c.init&&setTimeout(c.onload,1);c.hook=function(a){X.push(a)};c.plug=function(a,
+var o=void 0,t=!0,u=null,y=!1;
+window.$=window.jquip=function(){function b(a,d,e){if(a===d)return e;for(a=a.nextSibling;a;){if(a===d)return-1;a=a.nextSibling}return 1}function B(a,d){for(var e,i=0,Ba=X.length;i<Ba;i++)if(X[i].apply(this,arguments))return this;if(!a)return this;if(g(a))return ga?a():Y.push(a),this;if(p(a))return this.make(a);if(a.nodeType||h(a))return this.make([a]);if("body"==a&&!d&&x.body)return this.context=a.context,this[0]=x.body,this.length=1,this.selector=a,this;if(a.selector!==o)return this.context=a.context,
+this.selector=a.selector,this.make(a);a=E(a)&&"<"===a.charAt(0)?(e=Ca.exec(a))?(a=[x.createElement(e[1])])&&w(d)?c.fn.attr.call(a,d)&&a:a:Z(a).childNodes:v(a,d);return this.make(a)}function c(a,d){return new B(a,d)}function A(a,d,e){d=d||0;if(g(d))return J(a,function(a,i){return!!d.call(a,i,a)===e});if(d.nodeType)return J(a,function(a){return a===d===e});if(E(d)){var i=":"==d.charAt(0)&&c.Expr[d.substring(1)];return J(a,function(a){return i?i(a):a.parentNode&&0<=C(v(d,a.parentNode),a)})}return J(a,
+function(a){return 0<=C(d,a)===e})}function m(a,d){var e=c.data(a,"_J");if("undefined"===typeof d)return e&&Q[e]&&Q[e].display;e||c.data(a,"_J",e=++Q.id);return(Q[e]||(Q[e]={})).display=d}function r(a){if(!aa[a]){var d=c("<"+a+">").appendTo(x.body),e=c.css&&c.css(d[0],"display")||d[0].style.display;d.remove();aa[a]=e}return aa[a]}function n(a,d){for(var d=" "+d+" ",e=0,i=a.length;e<i;e++)if(f(a[e],d))return t;return y}function f(a,d){return 1===a.nodeType&&-1<(" "+a.className+" ").replace(ha," ").indexOf(d)}
+function j(a,d,e){d=d||x;e=e||[];1==d.nodeType&&a(d)&&e.push(d);for(var d=d.childNodes,i=0,g=d.length;i<g;i++){var b=d[i];1==b.nodeType&&j(a,b,e)}return e}function v(a,d,e){if(a&&E(a)){d instanceof c&&(d=d[0]);var d=d||x,e=e||c.query,i=a.charAt(0),g=a.substring(1),b=Da.test(g),h;try{return b?F.call(e(a,d)):b?F.call(e(a,d)):"#"==i?(h=x.getElementById(g))?[h]:ia:L("."==i?d.getElementsByClassName?d.getElementsByClassName(g):e(a,d):d.getElementsByTagName(a))}catch(p){H(p)}}return 1==a.nodeType||9==a.nodeType?
+[a]:ia}function D(a,d,e){var i=x.head||x.getElementsByTagName("head")[0]||ba,g=x.createElement("script"),b;if(e)g.async="async";g.onreadystatechange=function(){if(!(b=g.readyState)||"loaded"==b||"complete"==b)g.onload=g.onreadystatechange=u,i&&g.parentNode&&i.removeChild(g),g=o,d&&d()};g.onload=d;g.src=a;i.insertBefore(g,i.firstChild)}function H(a){M.console&&M.console.warn(arguments)}function s(a,d,e){if(a!=u)if(ja&&a.forEach===ja)a.forEach(d,e);else if(a.length===+a.length)for(var i=0,g=a.length;i<
+g&&!(i in a&&d.call(e,a[i],i,a)===ka);i++);else for(i in a)if(U.call(a,i)&&d.call(e,a[i],i,a)===ka)break}function k(a,d){return a&&"INPUT"===a.nodeName&&"text"===a.type&&"value"===d?a.value:a?a.getAttribute(d)||(d in a?a[d]:o):u}function z(a,d){var e=[],i,g,b,c;for(i=0,g=ca.length;i<g&&!(c=ca[i].exec(a));i++);if(i<ca.length)for(g=0;b=d[g];g++)(0==i&&c[1]==b.id||1==i&&R(c[1],b.tagName)||2==i&&f(b,c[1])||3==i&&c[2]==k(b,c[1]))&&e.push(b);else H(a+" not supported");return e}function C(a,d){if(a==u)return-1;
+var e,i;if(la&&a.indexOf===la)return a.indexOf(d);for(e=0,i=a.length;e<i;e++)if(a[e]===d)return e;return-1}function G(a,d,e){for(var i=[],a=a[d];a&&9!==a.nodeType&&(e===o||1!==a.nodeType||!c(a).T(e));)1===a.nodeType&&i.push(a),a=a[d];return i}function N(a,d,e){for(var d=d||1,i=0;a&&!(1===a.nodeType&&++i===d);a=a[e]);return a}function S(a,d){for(var e=[];a;a=a.nextSibling)1===a.nodeType&&a!==d&&e.push(a);return e}function J(a,d,e){for(var i=[],g,e=!!e,b=0,c=a.length;b<c;b++)g=!!d(a[b],b),e!==g&&i.push(a[b]);
+return i}function O(a,d,e){var i,g,b=[],h=0,w=a.length;if(a instanceof c||"number"==typeof w&&(0<w&&a[0]&&a[w-1]||0===w||p(a)))for(;h<w;h++)i=d(a[h],h,e),i!=u&&(b[b.length]=i);else for(g in a)i=d(a[g],g,e),i!=u&&(b[b.length]=i);return b.concat.apply([],b)}function K(a,d,e){if(!a)return{};if(d&&e)return a.setAttribute(d,e),u;var i={};s(T(a),function(a,d){0===d.indexOf("data-")&&a&&(i[d.substr(5)]=a)});return E(d)?i[d]:i}function T(a){for(var d={},e=0,a=a.attributes,i=a.length;e<i;e++)d[a.item(e).nodeName]=
+a.item(e).nodeValue;return d}function R(a,d){return!a||!d?a==d:a.toLowerCase()===d.toLowerCase()}function I(a){return a==u?""+a:ma[Ea.call(a)]||"object"}function E(a){return"string"==typeof a}function g(a){return"function"==typeof a||"function"===I(a)}function p(a){return"array"===I(a)}function h(a){return a&&"object"==typeof a&&"setInterval"in a}function w(a){if(!a||"object"!==I(a)||a.nodeType||h(a))return y;try{if(a.constructor&&!U.call(a,"constructor")&&!U.call(a.constructor.prototype,"isPrototypeOf"))return y}catch(d){return y}for(var e in a);
+return e===o||U.call(a,e)}function P(a,d){var e=a.length,i=0;if("number"==typeof d.length)for(var g=d.length;i<g;i++)a[e++]=d[i];else for(;d[i]!==o;)a[e++]=d[i++];a.length=e;return a}function na(){var a,d,e,i,b,c=arguments,h=c[0]||{},f=1,k=c.length,n=y;"boolean"==typeof h&&(n=h,h=c[1]||{},f=2);"object"!=typeof h&&!g(h)&&(h={});k===f&&(h=this,--f);for(;f<k;f++)if((a=c[f])!=u)for(d in a)e=h[d],i=a[d],h!==i&&(n&&i&&(w(i)||(b=p(i)))?(b?(b=y,e=e&&p(e)?e:[]):e=e&&w(e)?e:{},h[d]=na(n,e,i)):i!==o&&(h[d]=
+i));return h}function L(a,d){var e=d||[];if(a!=u){var i=I(a);a.length==u||"string"==i||"function"==i||"regexp"===i||h(a)?oa.call(e,a):P(e,a)}return e}function Z(a,d,e){d=d||x||d.ownerDocument||d[0]&&d[0].ownerDocument||x;e=e||d.createDocumentFragment();if(!E(a)&&"number"==typeof a.length){var i=e,g=[],b,c;for(b=0;(c=a[b])!=u;b++)E(c)&&(c=pa(c,d)),c.nodeType?g.push(c):g=P(g,c);if(i)for(b=0;b<g.length;b++)g[b].nodeType&&i.appendChild(g[b]);return g&&e}for(a=pa(a);a.firstChild;)e.appendChild(a.firstChild);
+return e}function pa(a,d){var e=(d||x).createElement("div"),i=(Fa.exec(a)||["",""])[1].toLowerCase(),i=qa[i]||qa.i,g=i[0];for(e.innerHTML=i[1]+a+i[2];g--;)e=e.lastChild;return e}function V(a){if(da&&(W=Ga,a.sort(da),W))for(var d=1;d<a.length;d++)a[d]===a[d-1]&&a.splice(d--,1);return a}function Ha(){if(!x.body)return u;var a=x.createElement("div");x.body.appendChild(a);a.style.width="20px";a.style.padding="10px";var d=a.offsetWidth;x.body.removeChild(a);return 40==d}function ra(a,d){sa.push({url:a,
+g:d})}function ta(){s(Y,function(a){a()});ga=t}var M=window,x=document,ba=x.documentElement,Y=[],sa=[],ga,Ia=/Until$/,Ja=/,/,Ka=/^(?:parents|prevUntil|prevAll)/,Fa=/<([\w:]+)/,ha=/[\n\t\r]/g,ua=/\s+/,La=/\d/,Ma=/\r\n/g,Ca=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,va=/\r?\n/g,Na=/^(?:select|textarea)/i,Oa=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,wa=String.prototype.trim,ea,xa=/^\s+/,ya=/\s+$/,fa,da,Pa={children:t,S:t,next:t,Y:t},Ea=Object.prototype.toString,
+ma={},W=y,Ga=t,qa={W:[1,"<select multiple='multiple'>","</select>"],U:[1,"<fieldset>","</fieldset>"],ba:[1,"<table>","</table>"],ca:[2,"<table><tbody>","</tbody></table>"],aa:[3,"<table><tbody><tr>","</tr></tbody></table>"],R:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],O:[1,"<map>","</map>"],i:[0,"",""]},Da=/[,\s.#\[>+]/,ia=[],ka={},q=Array.prototype,U=Object.prototype.hasOwnProperty,F=q.slice,oa=q.push,za=q.indexOf,ja=q.forEach,Aa=q.filter,la=q.indexOf;/\S/.test("\u00a0")&&(xa=/^[\s\xA0]+/,
+ya=/[\s\xA0]+$/);var X=[],Qa=0,Q={N:0},aa={},q=B.prototype=c.prototype=c.fn={constructor:c,selector:"",length:0,d:function(a,d,e){var d=a[0],i;if(d&&this[0]){if(!(a=3===d.nodeType&&d))if(a=(a=d&&d.parentNode)&&11===a.nodeType&&a.childNodes.length===this.length?a:Z(d),d=a.firstChild,1===a.childNodes.length&&(a=d),!d)return this;for(i=0,d=this.length;i<d;i++)e.call(this[i],a)}return this},a:function(a,d,e){var i=this.constructor();p(a)?oa.apply(i,a):P(i,a);i.Z=this;i.j=this.j;if("find"===d)i.p=this.selector+
+(this.selector?" ":"")+e;else if(d)i.p=this.selector+"."+d+"("+e+")";return i}};q.make=function(a){this.length=a&&a.length||0;if(0!=this.length)for(var d=0,e=a.length;d<e;d++)this[d]=a[d];return this};q.toArray=function(){return F.call(this,0)};q.get=function(a){return a==u?this.toArray():0>a?this[this.length+a]:this[a]};q.add=function(a,d){var e="string"==typeof a?c(a,d):L(a&&a.nodeType?[a]:a),i=P(this.get(),e);return this.a(!e[0]||!e[0].parentNode||11==e[0].parentNode.nodeType||!i[0]||!i[0].parentNode||
+11==i[0].parentNode.nodeType?i:V(i))};q.each=function(a){if(!g(a))return this;for(var d=0,e=this.length;d<e;d++)a.call(this[d],d,this[d]);return this};q.attr=function(a,d){var e=this[0];return E(a)&&d===o?k(e,a):this.each(function(e){var b=this.nodeType;if(3!==b&&8!==b&&2!==b)if("object"==typeof a)for(var c in a)d===u?this.removeAttribute(a):this.setAttribute(c,a[c]);else this.setAttribute(a,g(d)?d.call(this,e,this.getAttribute(a)):d)})};q.removeAttr=function(a){return this.each(function(){this.removeAttribute(a)})};
+q.data=function(a,d){return K(this[0],a,d)};q.append=function(){return this.d(arguments,t,function(a){1===this.nodeType&&this.appendChild(a)})};q.prepend=function(){return this.d(arguments,t,function(a){1===this.nodeType&&this.insertBefore(a,this.firstChild)})};q.before=function(){return this.d(arguments,y,function(a){this.parentNode.insertBefore(a,this)})};q.after=function(){return this[0]&&this[0].parentNode?this.d(arguments,y,function(a){this.parentNode.insertBefore(a,this.nextSibling)}):this};
+q.hide=function(){return this.each(function(){m(this,this.style.display);this.style.display="none"})};q.show=function(){return this.each(function(){this.style.display=m(this)||r(this.tagName)})};q.toggle=function(){return this.each(function(){this.style.display=c.Expr.hidden(this)?m(this)||r(this.tagName):(m(this,this.style.display),"none")})};q.eq=function(a){return-1===a?this.slice(a):this.slice(a,+a+1)};q.first=function(){return this.eq(0)};q.last=function(){return this.eq(-1)};q.slice=function(){return this.a(F.apply(this,
+arguments),"slice",F.call(arguments).join(","))};q.map=function(a){return this.a(O(this,function(d,e){return a.call(d,e,d)}))};q.find=function(a){var d=this,e,i;if(!E(a))return c(a).filter(function(){for(e=0,i=d.length;e<i;e++)if(fa(d[e],this))return t});var g=this.a("","find",a),b,h,p;for(e=0,i=this.length;e<i;e++)if(b=g.length,P(g,c(a,this[e])),0==e)for(h=b;h<g.length;h++)for(p=0;p<b;p++)if(g[p]===g[h]){g.splice(h--,1);break}return g};q.not=function(a){return this.a(A(this,a,y),"not",a)};q.filter=
+function(a){return this.a(A(this,a,t),"filter",a)};q.indexOf=function(a){return C(this,a)};q.is=function(a){return 0<this.length&&0<c(this[0]).filter(a).length};q.remove=function(){for(var a=0,d;(d=this[a])!=u;a++)d.parentNode&&d.parentNode.removeChild(d);return this};q.closest=function(a,d){var e=[],g;for(g=0,l=this.length;g<l;g++)for(cur=this[g];cur;)if(0<z(a,[cur]).length){e.push(cur);break}else if(cur=cur.parentNode,!cur||!cur.ownerDocument||cur===d||11===cur.nodeType)break;e=1<e.length?V(e):
+e;return this.a(e,"closest",a)};q.val=function(a){return a==u?this[0]&&this[0].value||"":this.each(function(){this.value=a})};q.html=function(a){return a==u?this[0]&&this[0].innerHTML||"":this.each(function(){this.innerHTML=a})};q.text=function(a){var d=this[0],e;return"undefined"==typeof a?d&&(e=d.nodeType)?1===e||9===e?"string"==typeof d.textContent?d.textContent:d.innerText.replace(Ma,""):3===e||4===e?d.nodeValue:u:u:this.empty().append((d&&d.ownerDocument||x).createTextNode(a))};q.empty=function(){for(var a=
+0,d;(d=this[a])!=u;a++)for(;d.firstChild;)d.removeChild(d.firstChild);return this};q.addClass=function(a){var d,e,i,b,h,p,f;if(g(a))return this.each(function(d){c(this).addClass(a.call(this,d,this.className))});if(a&&E(a)){d=a.split(ua);for(e=0,i=this.length;e<i;e++)if((b=this[e])&&1===b.nodeType)if(!b.className&&1===d.length)b.className=a;else{h=" "+b.className+" ";for(p=0,f=d.length;p<f;p++)~h.indexOf(" "+d[p]+" ")||(h+=d[p]+" ");b.className=ea(h)}}return this};q.removeClass=function(a){var d,e,
+b,h,p,f,w;if(g(a))return this.each(function(d){c(this).removeClass(a.call(this,d,this.className))});if(a&&E(a)||a===o){d=(a||"").split(ua);for(e=0,b=this.length;e<b;e++)if(h=this[e],1===h.nodeType&&h.className)if(a){p=(" "+h.className+" ").replace(ha," ");for(f=0,w=d.length;f<w;f++)p=p.replace(" "+d[f]+" "," ");h.className=ea(p)}else h.className=""}return this};q.hasClass=function(a){return n(this,a)};q.fadeIn=function(){this.each(function(){c(this).show()})};q.fadeOut=function(){this.each(function(){c(this).hide()})};
+q.serializeArray=function(){return this.map(function(){return this.elements?L(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Na.test(this.nodeName)||Oa.test(this.type))}).map(function(a,d){var e=c(this).val();return e==u||p(e)?O(e,function(a){return{name:d.name,value:a.replace(va,"\r\n")}}):{name:d.name,value:e.replace(va,"\r\n")}}).get()};c.Expr={hidden:function(a){return 0===a.offsetWidth||0==a.offsetHeight||"none"===(c.css&&c.css(a,"display")||a.style.display)},
+visible:function(a){return!c.Expr.hidden(a)}};c.hasClass=n;c.walk=j;c.$$=v;c.setQuery=function(a){c.query=function(d,e){return v(d,e,a||function(a,d){return d.querySelectorAll(a)})}};q=M.Sizzle||M.qwery;c.setQuery(q||function(a,d){return x.querySelectorAll?L((d||x).querySelectorAll(a)):[]});c.loadScript=D;c.each=function(a,d,e){var b,h=0,c=a.length,p=c===o||g(a);if(e)if(p)for(b in a){if(d.apply(a[b],e)===y)break}else for(;h<c&&!(d.apply(a[h++],e)===y););else if(p)for(b in a){if(d.call(a[b],b,a[b])===
+y)break}else for(;h<c&&!(d.call(a[h],h,a[h++])===y););return a};c._each=s;var ca=[/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/];c.filter=z;c._indexOf=C;c._defaults=function(a){s(F.call(arguments,1),function(d){for(var e in d)a[e]==u&&(a[e]=d[e])});return a};c._filter=function(a,d,e){var g=[];if(a==u)return g;if(Aa&&a.filter===Aa)return a.filter(d,
+e);s(a,function(a,b,h){d.call(e,a,b,h)&&(g[g.length]=a)});return g};c.proxy=function(a,d){if("string"==typeof d)var e=a[d],d=a,a=e;if(g(a)){var b=F.call(arguments,2),e=function(){return a.apply(d,b.concat(F.call(arguments)))};e.f=a.f=a.f||e.f||Qa++;return e}};c.dir=G;c.nth=N;c.sibling=S;c.grep=J;c.map=O;c.data=K;c.attrs=T;c.eqSI=R;c.trim=ea=wa?function(a){return a==u?"":wa.call(a)}:function(a){return a==u?"":a.toString().replace(xa,"").replace(ya,"")};c.indexOf=c.inArray=function(a,d){if(!d)return-1;
+if(za)return za.call(d,a);for(var e=0,g=d.length;e<g;e++)if(d[e]===a)return e;return-1};s("Boolean Number String Function Array Date RegExp Object".split(" "),function(a){ma["[object "+a+"]"]=a.toLowerCase();return this});c.type=I;c.isFunction=g;c.isArray=Array.isArray||p;c.isWindow=h;c.isNaN=function(a){return a==u||!La.test(a)||isNaN(a)};c.merge=P;c.extend=c.fn.extend=na;c.makeArray=L;c.htmlFrag=Z;fa=c.contains=ba.contains?function(a,d){return a!==d&&(a.contains?a.contains(d):t)}:function(){return y};
+da=ba.compareDocumentPosition?(fa=function(a,d){return!!(a.compareDocumentPosition(d)&16)})&&function(a,d){return a===d?(W=t,0):!a.compareDocumentPosition||!d.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(d)&4?-1:1}:function(a,d){if(a===d)return W=t,0;if(a.sourceIndex&&d.sourceIndex)return a.sourceIndex-d.sourceIndex;var e,g,h=[],c=[];e=a.parentNode;g=d.parentNode;var p=e;if(e===g)return b(a,d);if(e){if(!g)return 1}else return-1;for(;p;)h.unshift(p),p=p.parentNode;
+for(p=g;p;)c.unshift(p),p=p.parentNode;e=h.length;g=c.length;for(p=0;p<e&&p<g;p++)if(h[p]!==c[p])return b(h[p],c[p]);return p===e?b(a,c[p],-1):b(h[p],d,1)};c.unique=V;s({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:u},parents:function(a){return G(a,"parentNode")},parentsUntil:function(a,d,e){return G(a,"parentNode",e)},next:function(a){return N(a,2,"nextSibling")},prev:function(a){return N(a,2,"previousSibling")},nextAll:function(a){return G(a,"nextSibling")},prevAll:function(a){return G(a,
+"previousSibling")},nextUntil:function(a,d,e){return G(a,"nextSibling",e)},prevUntil:function(a,d,e){return G(a,"previousSibling",e)},siblings:function(a){return S(a.parentNode.firstChild,a)},children:function(a){return S(a.firstChild)},contents:function(a){return"iframe"===a.nodeName?a.contentDocument||a.contentWindow["document "]:L(a.childNodes)}},function(a,d){c.fn[d]=function(e,g){var b=O(this,a,e),h=F.call(arguments);Ia.test(d)||(g=e);"string"==typeof g&&(b=z(g,b));b=1<this.length&&!Pa[d]?V(b):
+b;if((1<this.length||Ja.test(g))&&Ka.test(d))b=b.reverse();return this.a(b,d,h.join(","))}});s({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after"},function(a,d){c.fn[d]=function(e){var g=[],e=c(e),b,h,p;if((b=1===this.length&&this[0].parentNode)&&11===b.nodeType&&1===b.childNodes.length&&1===e.length)return e[a](this[0]),this;for(b=0,p=e.length;b<p;b++)h=(0<b?this.Q(t):this).get(),c(e[b])[a](h),g=g.concat(h);return this.a(g,d,e.selector)}});(function(){var a=document.createElement("div");
+a.style.display="none";a.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";a=a.getElementsByTagName("a")[0];c.support={P:u,opacity:/^0.55$/.test(a.style.opacity),cssFloat:!!a.style.cssFloat};var a=/(opera)(?:.*version)?[ \/]([\w.]+)/,d=/(msie) ([\w.]+)/,e=/(mozilla)(?:.*? rv:([\w.]+))?/,g=navigator.userAgent.toLowerCase(),a=/(webkit)[ \/]([\w.]+)/.exec(g)||a.exec(g)||d.exec(g)||0>g.indexOf("compatible")&&e.exec(g)||[];(c.browser=
+{version:a[2]||"0"})[a[1]||""]=t})();c.scriptsLoaded=function(a){g(a)&&Y.push(a)};c.loadAsync=ra;!q&&!x.querySelectorAll&&ra("http://cdnjs.cloudflare.com/ajax/libs/sizzle/1.4.4/sizzle.min.js",function(){c.setQuery(M.Sizzle||M.qwery)});c.init=y;c.onload=function(){if(!c.init)try{c.support.boxModel=Ha();var a=0;s(sa,function(d){a++;D(d.url,function(){try{d.g&&d.g()}catch(g){}--a||ta()})});c.init=t;a||ta()}catch(d){H(d)}};x.body&&!c.init&&setTimeout(c.onload,1);c.hook=function(a){X.push(a)};c.plug=function(a,
d){d=g(a)?a:d;if(!g(d))throw"Plugin fn required";d(c)};return c}();
-$.plug("ajax",function(b){function B(){if(p!=v)return p();for(var b=0,c=k.length;b<c;b++)try{var j=k[b],w=j();if(w!=v)return p=j,w}catch(C){}return function(){}}function c(b,c){c=(c||b.getResponseHeader("Content-Type").split(";")[0]).toLowerCase();return 0<=c.indexOf("json")?window.JSON?window.JSON.parse(b.responseText):eval(b.responseText):0<=c.indexOf("script")?eval(b.responseText):0<=c.indexOf("xml")?b.responseXML:b.responseText}function A(r,f){var j=B(),k,C=0;"object"===typeof r?f=r:f.url=r;f=
-b._defaults(f,{userAgent:"XMLHttpRequest",lang:"en",type:"GET",data:v,contentType:"application/x-www-form-urlencoded",dataType:v,processData:u});f.timeout&&(k=setTimeout(function(){j.abort();f.q&&f.q(f.url)},f.timeout));var p=b(f.context||document);j.onreadystatechange=function(){if(4==j.readyState){k&&clearTimeout(k);if(300>j.status){var b=c(j,f.dataType);f.success&&f.success(b);p.trigger("ajaxSuccess",[j,b,f])}else f.error&&f.error(j,j.status,j.statusText),p.trigger(p,"ajaxError",[j,j.statusText,
-f]);f.complete&&f.complete(j,j.statusText);p.trigger(p,"ajaxComplete",[j,f])}else f.progress&&f.progress(++C)};var r=f.url,t=v,m="POST"==f.type||"PUT"==f.type;f.data&&f.processData&&"object"==typeof f.data&&(t=b.formData(f.data));!m&&t&&(r+="?"+t);j.open(f.type,r);m&&j.setRequestHeader("Content-Type",f.contentType);j.send(t)}var k=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new ActiveXObject("MSXML2.XMLHTTP.3.0")},function(){return new ActiveXObject("MSXML2.XMLHTTP")}],
-p=v;b.xhr=B;b._xhrResp=c;b.formData=function(b){var c=[],j=/%20/g,k;for(k in b)c.push(encodeURIComponent(k).replace(j,"+")+"="+encodeURIComponent(b[k].toString()).replace(j,"+"));return c.join("&")};b.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,f){b.fn[f]=function(b){return this.bind(f,b)}});b.ajax=A;b.getJSON=function(c,f,j){b.isFunction(f)&&(j=f,f=v);A({url:c,data:f,success:j,dataType:"json"})};b.get=function(c,f,j,k){b.isFunction(f)&&(k=j,j=f,f=v);
-A({url:c,type:"GET",data:f,success:j,dataType:k||"text/plain"})};b.post=function(c,f,j,k){b.isFunction(f)&&(k=j,j=f,f=v);A({url:c,type:"POST",data:f,success:j,dataType:k||"text/plain"})};b.getScript=function(c,f){return b.get(c,n,f,"script")};window.JSON||b.loadAsync("http://ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js")});
-$.plug("css",function(b){function B(b,c){return c.toUpperCase()}function c(g,c,h){var s="width"===c?g.offsetWidth:g.offsetHeight,c="width"===c?J:O;return 0<s?("border"!==h&&b.each(c,function(){h||(s-=parseFloat(k(g,"padding"+this))||0);s="margin"===h?s+(parseFloat(k(g,h+this))||0):s-(parseFloat(k(g,"border"+this+"Width"))||0)}),s+"px"):""}function A(g,c,h,s){if(g&&!(3===g.nodeType||8===g.nodeType||!g.style)){var f,m=r(c),k=g.style,j=b.cssHooks[m],c=b.cssProps[m]||m;if(h!==n){if(!("number"===typeof h&&
-isNaN(h)||h==v))if("number"===typeof h&&!b.cssNumber[m]&&(h+="px"),!j||!("set"in j)||(h=j.set(g,h))!==n)try{k[c]=h}catch(x){}}else return j&&"get"in j&&(f=j.get(g,z,s))!==n?f:k[c]}}function k(g,c,h){var s,f=r(c),m=b.cssHooks[f],c=b.cssProps[f]||f;if(m&&"get"in m&&(s=m.get(g,u,h))!==n)return s;if(K)return K(g,c,f)}function p(b,c,h){var s={},f;for(f in c)s[f]=b.style[f],b.style[f]=c[f];h.call(b);for(f in c)b.style[f]=s[f]}function r(b){return b.replace(m,B)}function f(g,c,h,s,m,j){var k=g.length;if("object"===
-typeof c){for(var x in c)f(g,x,c[x],s,m,h);return g}if(h!==n){s=!j&&s&&b.isFunction(h);for(x=0;x<k;x++)m(g[x],c,s?h.call(g[x],x,m(g[x],c)):h,j);return g}return k?m(g[0],c):n}function j(g){return b.isWindow(g)?g:9===g.nodeType?g.defaultView||g.parentWindow:z}var w=document,C=w.documentElement,H=/alpha\([^)]*\)/i,t=/opacity=([^)]*)/,m=/-([a-z])/ig,x=/([A-Z])/g,E=/^-?\d+(?:px)?$/i,G=/^-?\d/,N=/^(?:body|html)$/i,S={position:"absolute",visibility:"hidden",display:"block"},J=["Left","Right"],O=["Top","Bottom"],
-K,T,R;b.cssHooks={opacity:{get:function(b,c){if(!c)return b.style.opacity;var h=K(b,"opacity","opacity");return""===h?"1":h}}};b._each(["height","width"],function(g){b.cssHooks[g]={get:function(b,h,f){var m;if(h){if(0!==b.offsetWidth)return c(b,g,f);p(b,S,function(){m=c(b,g,f)});return m}},set:function(b,g){if(E.test(g)){if(g=parseFloat(g),0<=g)return g+"px"}else return g}}});b.support.opacity||(b.support.opacity={get:function(b,c){return t.test((c&&b.currentStyle?b.currentStyle.filter:b.style.filter)||
-"")?parseFloat(RegExp.$1)/100+"":c?"1":""},set:function(g,c){var h=g.style;h.zoom=1;var f=b.isNaN(c)?"":"alpha(opacity="+100*c+")",m=h.filter||"";h.filter=H.test(m)?m.replace(H,f):h.filter+" "+f}});w.defaultView&&w.defaultView.getComputedStyle&&(T=function(g,c,h){var f,h=h.replace(x,"-$1").toLowerCase();if(c=g.ownerDocument.defaultView){if(c=c.getComputedStyle(g,v))f=c.getPropertyValue(h),""===f&&!b.contains(g.ownerDocument.documentElement,g)&&(f=b.style(g,h));return f}});w.documentElement.currentStyle&&
-(R=function(b,c){var h,f=b.currentStyle&&b.currentStyle[c],m=b.runtimeStyle&&b.runtimeStyle[c],j=b.style;if(!E.test(f)&&G.test(f)){h=j.left;if(m)b.runtimeStyle.left=b.currentStyle.left;j.left="fontSize"===c?"1em":f||0;f=j.pixelLeft+"px";j.left=h;if(m)b.runtimeStyle.left=m}return""===f?"auto":f});K=T||R;b.fn.css=function(b,c){return 2===arguments.length&&c===n?this:f(this,b,c,u,function(b,c,g){return g!==n?A(b,c,g):k(b,c)})};b.cssNumber={zIndex:u,fontWeight:u,opacity:u,zoom:u,lineHeight:u};b.cssProps=
-{"float":b.support.cssFloat?"cssFloat":"styleFloat"};b.style=A;b.css=k;b.swap=p;b.camelCase=r;var I,D;b.fn.offset=function(){var c=this[0],f;if(!c||!c.ownerDocument)return v;if(c===c.ownerDocument.body){f=c.offsetTop;var h=c.offsetLeft;if(!I){var m=w.body,x=w.createElement("div"),r,E,p=parseFloat(k(m,"marginTop"))||0;b.extend(x.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});x.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
-m.insertBefore(x,m.firstChild);r=x.firstChild;E=r.firstChild;E.style.position="fixed";E.style.top="20px";E.style.position=E.style.top="";r.style.overflow="hidden";r.style.position="relative";D=m.offsetTop!==p;m.removeChild(x);I=u}D&&(f+=parseFloat(k(c,"marginTop"))||0,h+=parseFloat(k(c,"marginLeft"))||0);return{top:f,left:h}}try{f=c.getBoundingClientRect()}catch(t){}if(!f||!b.contains(C,c))return f?{top:f.top,left:f.left}:{top:0,left:0};c=w.body;h=j(w);return{top:f.top+(h.pageYOffset||b.support.boxModel&&
-C.scrollTop||c.scrollTop)-(C.clientTop||c.clientTop||0),left:f.left+(h.pageXOffset||b.support.boxModel&&C.scrollLeft||c.scrollLeft)-(C.clientLeft||c.clientLeft||0)}};b.fn.position=function(){if(!this[0])return v;var b=this[0],c=this.offsetParent(),h=this.offset(),f=N.test(c[0].nodeName)?{top:0,left:0}:c.offset();h.top-=parseFloat(k(b,"marginTop"))||0;h.left-=parseFloat(k(b,"marginLeft"))||0;f.top+=parseFloat(k(c[0],"borderTopWidth"))||0;f.left+=parseFloat(k(c[0],"borderLeftWidth"))||0;return{top:h.top-
-f.top,left:h.left-f.left}};b.fn.offsetParent=function(){return this.map(function(){for(var b=this.offsetParent||w.body;b&&!N.test(b.nodeName)&&"static"===k(b,"position");)b=b.offsetParent;return b})};b._each(["Height","Width"],function(c){var f=c.toLowerCase();b.fn["inner"+c]=function(){var b=this[0];return b&&b.style?parseFloat(k(b,f,"padding")):v};b.fn["outer"+c]=function(b){var c=this[0];return c&&c.style?parseFloat(k(c,f,b?"margin":"border")):v};b.fn[f]=function(h){var m=this[0];if(!m)return h==
-v?v:this;if(b.isFunction(h))return this.each(function(c){var g=b(this);g[f](h.call(this,c,g[f]()))});if(b.isWindow(m)){var j=m.document.documentElement["client"+c],x=m.document.body;return"CSS1Compat"===m.document.compatMode&&j||x&&x["client"+c]||j}if(9===m.nodeType)return Math.max(m.documentElement["client"+c],m.body["scroll"+c],m.documentElement["scroll"+c],m.body["offset"+c],m.documentElement["offset"+c]);return h===n?(m=k(m,f),j=parseFloat(m),b.isNaN(j)?m:j):this.css(f,"string"===typeof h?h:h+
-"px")}});b._each(["Left","Top"],function(c,f){var h="scroll"+c;b.fn[h]=function(c){var g,m;if(c===n){g=this[0];return!g?v:(m=j(g))?"pageXOffset"in m?m[f?"pageYOffset":"pageXOffset"]:b.support.boxModel&&m.document.documentElement[h]||m.document.body[h]:g[h]}return this.each(function(){(m=j(this))?m.scrollTo(!f?c:b(m).scrollLeft(),f?c:b(m).scrollTop()):this[h]=c})}})});
-$.plug("custom",function(b){for(var B={},c=window.location.search.substring(1).split("&"),A=0;A<c.length;A++){var k=c[A].split("=");B[k[0]]=unescape(k[1])}b.queryString=function(b){return B[b]};var p=b.Key=function(b){this.keyCode=b};p.n={s:8,L:9,A:13,K:16,u:17,r:18,I:19,t:20,B:27,H:33,G:34,z:35,C:36,F:37,M:38,J:39,w:40,D:45,v:46};b._each(p.n,function(b,c){p.prototype["is"+c]=function(){return this.keyCode===b}});b.key=function(b){b=b||window.event;return new p(b.keyCode||b.which)};b.cancelEvent=
-function(b){if(!b)b=window.event;b.cancelBubble=u;b.returnValue=z;b.stopPropagation&&(b.stopPropagation(),b.preventDefault());return z};b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,m:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};b._template=function(c,f){var j=b.templateSettings,j="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+c.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(j.escape,function(b,c){return"',_.escape("+c.replace(/\\'/g,"'")+"),'"}).replace(j.m,
-function(b,c){return"',"+c.replace(/\\'/g,"'")+",'"}).replace(j.evaluate||v,function(b,c){return"');"+c.replace(/\\'/g,"'").replace(/[\r\n\t]/g," ")+";__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');",k=new Function("obj","$",j);return f?k(f,b):function(c){return k(c,b)}}});
-$.plug("docready",function(b){function B(){if(!j){try{k.documentElement.doScroll("left")}catch(b){setTimeout(B,1);return}c()}}function c(c){c===u&&w--;if(!w||c!==u&&!j){if(!k.body)return setTimeout(r,1);j=u;if(!(c!==u&&0<--w)&&f){var p=0,r=f;for(f=v;c=r[p++];)c.call(k,b);b.fn.trigger&&b(k).trigger("ready").unbind("ready")}}}var A=window,k=document,p,r,f=[],j=z,w=1;b.hook(function(b){if("function"==typeof b)return this.ready(b),u});b.ready=c;p=k.addEventListener?function(){k.removeEventListener("DOMContentLoaded",
-p,z);c()}:function(){"complete"===k.readyState&&(k.detachEvent("onreadystatechange",p),c())};b.bindReady=function(){if(!r){r=u;if("complete"===k.readyState)return setTimeout(c,1);if(k.addEventListener)k.addEventListener("DOMContentLoaded",p,z),A.addEventListener("load",c,z);else if(k.attachEvent){k.attachEvent("onreadystatechange",p);A.attachEvent("onload",c);var b=z;try{b=window.frameElement==v}catch(f){}k.documentElement.doScroll&&b&&B()}}};b.fn.ready=function(c){b.bindReady();j?c.call(k,b):f&&
+$.plug("ajax",function(b){function B(){if(r!=u)return r();for(var b=0,c=m.length;b<c;b++)try{var j=m[b],v=j();if(v!=u)return r=j,v}catch(D){}return function(){}}function c(b,c){c=(c||b.getResponseHeader("Content-Type").split(";")[0]).toLowerCase();return 0<=c.indexOf("json")?window.JSON?window.JSON.parse(b.responseText):eval(b.responseText):0<=c.indexOf("script")?eval(b.responseText):0<=c.indexOf("xml")?b.responseXML:b.responseText}function A(n,f){var j=B(),m,D=0;"object"===typeof n?f=n:f.url=n;f=
+b._defaults(f,{userAgent:"XMLHttpRequest",lang:"en",type:"GET",data:u,contentType:"application/x-www-form-urlencoded",dataType:u,processData:t,headers:{"X-Requested-With":"XMLHttpRequest"}});f.timeout&&(m=setTimeout(function(){j.abort();f.q&&f.q(f.url)},f.timeout));var r=b(f.context||document);j.onreadystatechange=function(){if(4==j.readyState){m&&clearTimeout(m);if(300>j.status){var b=c(j,f.dataType);f.success&&f.success(b);r.trigger("ajaxSuccess",[j,b,f])}else f.error&&f.error(j,j.status,j.statusText),
+r.trigger(r,"ajaxError",[j,j.statusText,f]);f.complete&&f.complete(j,j.statusText);r.trigger(r,"ajaxComplete",[j,f])}else f.progress&&f.progress(++D)};var n=f.url,s=u,k="POST"==f.type||"PUT"==f.type;f.data&&f.processData&&"object"==typeof f.data&&(s=b.formData(f.data));!k&&s&&(n+="?"+s);j.open(f.type,n);try{for(var z in f.headers)j.setRequestHeader(z,f.headers[z])}catch(C){console.log(C)}k&&j.setRequestHeader("Content-Type",f.contentType);j.send(s)}var m=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Microsoft.XMLHTTP")},
+function(){return new ActiveXObject("MSXML2.XMLHTTP.3.0")},function(){return new ActiveXObject("MSXML2.XMLHTTP")}],r=u;b.xhr=B;b._xhrResp=c;b.formData=function(b){var c=[],j=/%20/g,m;for(m in b)c.push(encodeURIComponent(m).replace(j,"+")+"="+encodeURIComponent(b[m].toString()).replace(j,"+"));return c.join("&")};b.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,f){b.fn[f]=function(b){return this.bind(f,b)}});b.ajax=A;b.getJSON=function(c,f,j){b.isFunction(f)&&
+(j=f,f=u);A({url:c,data:f,success:j,dataType:"json"})};b.get=function(c,f,j,m){b.isFunction(f)&&(m=j,j=f,f=u);A({url:c,type:"GET",data:f,success:j,dataType:m||"text/plain"})};b.post=function(c,f,j,m){b.isFunction(f)&&(m=j,j=f,f=u);A({url:c,type:"POST",data:f,success:j,dataType:m||"text/plain"})};b.getScript=function(c,f){return b.get(c,o,f,"script")};window.JSON||b.loadAsync("http://ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js")});
+$.plug("css",function(b){function B(b,c){return c.toUpperCase()}function c(g,c,h){var w="width"===c?g.offsetWidth:g.offsetHeight,c="width"===c?J:O;return 0<w?("border"!==h&&b.each(c,function(){h||(w-=parseFloat(m(g,"padding"+this))||0);w="margin"===h?w+(parseFloat(m(g,h+this))||0):w-(parseFloat(m(g,"border"+this+"Width"))||0)}),w+"px"):""}function A(g,c,h,w){if(g&&!(3===g.nodeType||8===g.nodeType||!g.style)){var f,k=n(c),m=g.style,j=b.cssHooks[k],c=b.cssProps[k]||k;if(h!==o){if(!("number"===typeof h&&
+isNaN(h)||h==u))if("number"===typeof h&&!b.cssNumber[k]&&(h+="px"),!j||!("set"in j)||(h=j.set(g,h))!==o)try{m[c]=h}catch(z){}}else return j&&"get"in j&&(f=j.get(g,y,w))!==o?f:m[c]}}function m(g,c,h){var w,f=n(c),k=b.cssHooks[f],c=b.cssProps[f]||f;if(k&&"get"in k&&(w=k.get(g,t,h))!==o)return w;if(K)return K(g,c,f)}function r(b,c,h){var f={},k;for(k in c)f[k]=b.style[k],b.style[k]=c[k];h.call(b);for(k in c)b.style[k]=f[k]}function n(b){return b.replace(k,B)}function f(g,c,h,k,j,m){var z=g.length;if("object"===
+typeof c){for(var n in c)f(g,n,c[n],k,j,h);return g}if(h!==o){k=!m&&k&&b.isFunction(h);for(n=0;n<z;n++)j(g[n],c,k?h.call(g[n],n,j(g[n],c)):h,m);return g}return z?j(g[0],c):o}function j(g){return b.isWindow(g)?g:9===g.nodeType?g.defaultView||g.parentWindow:y}var v=document,D=v.documentElement,H=/alpha\([^)]*\)/i,s=/opacity=([^)]*)/,k=/-([a-z])/ig,z=/([A-Z])/g,C=/^-?\d+(?:px)?$/i,G=/^-?\d/,N=/^(?:body|html)$/i,S={position:"absolute",visibility:"hidden",display:"block"},J=["Left","Right"],O=["Top","Bottom"],
+K,T,R;b.cssHooks={opacity:{get:function(b,c){if(!c)return b.style.opacity;var h=K(b,"opacity","opacity");return""===h?"1":h}}};b._each(["height","width"],function(g){b.cssHooks[g]={get:function(b,h,k){var f;if(h){if(0!==b.offsetWidth)return c(b,g,k);r(b,S,function(){f=c(b,g,k)});return f}},set:function(b,g){if(C.test(g)){if(g=parseFloat(g),0<=g)return g+"px"}else return g}}});b.support.opacity||(b.support.opacity={get:function(b,c){return s.test((c&&b.currentStyle?b.currentStyle.filter:b.style.filter)||
+"")?parseFloat(RegExp.$1)/100+"":c?"1":""},set:function(g,c){var h=g.style;h.zoom=1;var k=b.isNaN(c)?"":"alpha(opacity="+100*c+")",f=h.filter||"";h.filter=H.test(f)?f.replace(H,k):h.filter+" "+k}});v.defaultView&&v.defaultView.getComputedStyle&&(T=function(g,c,h){var k,h=h.replace(z,"-$1").toLowerCase();if(c=g.ownerDocument.defaultView){if(c=c.getComputedStyle(g,u))k=c.getPropertyValue(h),""===k&&!b.contains(g.ownerDocument.documentElement,g)&&(k=b.style(g,h));return k}});v.documentElement.currentStyle&&
+(R=function(b,c){var h,k=b.currentStyle&&b.currentStyle[c],f=b.runtimeStyle&&b.runtimeStyle[c],j=b.style;if(!C.test(k)&&G.test(k)){h=j.left;if(f)b.runtimeStyle.left=b.currentStyle.left;j.left="fontSize"===c?"1em":k||0;k=j.pixelLeft+"px";j.left=h;if(f)b.runtimeStyle.left=f}return""===k?"auto":k});K=T||R;b.fn.css=function(b,c){return 2===arguments.length&&c===o?this:f(this,b,c,t,function(b,c,g){return g!==o?A(b,c,g):m(b,c)})};b.cssNumber={zIndex:t,fontWeight:t,opacity:t,zoom:t,lineHeight:t};b.cssProps=
+{"float":b.support.cssFloat?"cssFloat":"styleFloat"};b.style=A;b.css=m;b.swap=r;b.camelCase=n;var I,E;b.fn.offset=function(){var c=this[0],k;if(!c||!c.ownerDocument)return u;if(c===c.ownerDocument.body){k=c.offsetTop;var h=c.offsetLeft;if(!I){var f=v.body,z=v.createElement("div"),n,C,r=parseFloat(m(f,"marginTop"))||0;b.extend(z.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});z.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
+f.insertBefore(z,f.firstChild);n=z.firstChild;C=n.firstChild;C.style.position="fixed";C.style.top="20px";C.style.position=C.style.top="";n.style.overflow="hidden";n.style.position="relative";E=f.offsetTop!==r;f.removeChild(z);I=t}E&&(k+=parseFloat(m(c,"marginTop"))||0,h+=parseFloat(m(c,"marginLeft"))||0);return{top:k,left:h}}try{k=c.getBoundingClientRect()}catch(s){}if(!k||!b.contains(D,c))return k?{top:k.top,left:k.left}:{top:0,left:0};c=v.body;h=j(v);return{top:k.top+(h.pageYOffset||b.support.boxModel&&
+D.scrollTop||c.scrollTop)-(D.clientTop||c.clientTop||0),left:k.left+(h.pageXOffset||b.support.boxModel&&D.scrollLeft||c.scrollLeft)-(D.clientLeft||c.clientLeft||0)}};b.fn.position=function(){if(!this[0])return u;var b=this[0],c=this.offsetParent(),h=this.offset(),k=N.test(c[0].nodeName)?{top:0,left:0}:c.offset();h.top-=parseFloat(m(b,"marginTop"))||0;h.left-=parseFloat(m(b,"marginLeft"))||0;k.top+=parseFloat(m(c[0],"borderTopWidth"))||0;k.left+=parseFloat(m(c[0],"borderLeftWidth"))||0;return{top:h.top-
+k.top,left:h.left-k.left}};b.fn.offsetParent=function(){return this.map(function(){for(var b=this.offsetParent||v.body;b&&!N.test(b.nodeName)&&"static"===m(b,"position");)b=b.offsetParent;return b})};b._each(["Height","Width"],function(c){var k=c.toLowerCase();b.fn["inner"+c]=function(){var b=this[0];return b&&b.style?parseFloat(m(b,k,"padding")):u};b.fn["outer"+c]=function(b){var c=this[0];return c&&c.style?parseFloat(m(c,k,b?"margin":"border")):u};b.fn[k]=function(h){var f=this[0];if(!f)return h==
+u?u:this;if(b.isFunction(h))return this.each(function(c){var g=b(this);g[k](h.call(this,c,g[k]()))});if(b.isWindow(f)){var j=f.document.documentElement["client"+c],z=f.document.body;return"CSS1Compat"===f.document.compatMode&&j||z&&z["client"+c]||j}if(9===f.nodeType)return Math.max(f.documentElement["client"+c],f.body["scroll"+c],f.documentElement["scroll"+c],f.body["offset"+c],f.documentElement["offset"+c]);return h===o?(f=m(f,k),j=parseFloat(f),b.isNaN(j)?f:j):this.css(k,"string"===typeof h?h:h+
+"px")}});b._each(["Left","Top"],function(c,k){var h="scroll"+c;b.fn[h]=function(c){var g,f;if(c===o){g=this[0];return!g?u:(f=j(g))?"pageXOffset"in f?f[k?"pageYOffset":"pageXOffset"]:b.support.boxModel&&f.document.documentElement[h]||f.document.body[h]:g[h]}return this.each(function(){(f=j(this))?f.scrollTo(!k?c:b(f).scrollLeft(),k?c:b(f).scrollTop()):this[h]=c})}})});
+$.plug("custom",function(b){for(var B={},c=window.location.search.substring(1).split("&"),A=0;A<c.length;A++){var m=c[A].split("=");B[m[0]]=unescape(m[1])}b.queryString=function(b){return B[b]};var r=b.Key=function(b){this.keyCode=b};r.n={s:8,L:9,A:13,K:16,u:17,r:18,I:19,t:20,B:27,H:33,G:34,z:35,C:36,F:37,M:38,J:39,w:40,D:45,v:46};b._each(r.n,function(b,c){r.prototype["is"+c]=function(){return this.keyCode===b}});b.key=function(b){b=b||window.event;return new r(b.keyCode||b.which)};b.cancelEvent=
+function(b){if(!b)b=window.event;b.cancelBubble=t;b.returnValue=y;b.stopPropagation&&(b.stopPropagation(),b.preventDefault());return y};b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,m:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};b._template=function(c,f){var j=b.templateSettings,j="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+c.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(j.escape,function(b,c){return"',_.escape("+c.replace(/\\'/g,"'")+"),'"}).replace(j.m,
+function(b,c){return"',"+c.replace(/\\'/g,"'")+",'"}).replace(j.evaluate||u,function(b,c){return"');"+c.replace(/\\'/g,"'").replace(/[\r\n\t]/g," ")+";__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');",m=new Function("obj","$",j);return f?m(f,b):function(c){return m(c,b)}}});
+$.plug("docready",function(b){function B(){if(!j){try{m.documentElement.doScroll("left")}catch(b){setTimeout(B,1);return}c()}}function c(c){c===t&&v--;if(!v||c!==t&&!j){if(!m.body)return setTimeout(r,1);j=t;if(!(c!==t&&0<--v)&&f){var n=0,r=f;for(f=u;c=r[n++];)c.call(m,b);b.fn.trigger&&b(m).trigger("ready").unbind("ready")}}}var A=window,m=document,r,n,f=[],j=y,v=1;b.hook(function(b){if("function"==typeof b)return this.ready(b),t});b.ready=c;r=m.addEventListener?function(){m.removeEventListener("DOMContentLoaded",
+r,y);c()}:function(){"complete"===m.readyState&&(m.detachEvent("onreadystatechange",r),c())};b.bindReady=function(){if(!n){n=t;if("complete"===m.readyState)return setTimeout(c,1);if(m.addEventListener)m.addEventListener("DOMContentLoaded",r,y),A.addEventListener("load",c,y);else if(m.attachEvent){m.attachEvent("onreadystatechange",r);A.attachEvent("onload",c);var b=y;try{b=window.frameElement==u}catch(f){}m.documentElement.doScroll&&b&&B()}}};b.fn.ready=function(c){b.bindReady();j?c.call(m,b):f&&
f.push(c);return this};b.init||b(document).ready(b.onload)});
-$.plug("events",function(b){function B(b,c,f){b.addEventListener?b.addEventListener(c,f,z):(b["e"+c+f]=f,b[c+f]=function(){b["e"+c+f](window.event)},b.attachEvent("on"+c,b[c+f]))}function c(b,c,f){b.removeEventListener?b.removeEventListener(c,f,z):(b.detachEvent("on"+c,b[c+f]),b[c+f]=v)}function A(b){b=(""+b).split(".");return{c:b[0],e:b.slice(1).sort().join(" ")}}function k(c,f,j,k){f=A(f);if(f.e)var p=RegExp("(?:^| )"+f.e.replace(" "," .* ?")+"(?: |$)");return b._filter(w[c.b||(c.b=C++)]||[],function(b){return b&&
-(!f.c||b.c==f.c)&&(!f.e||p.test(b.e))&&(!j||b.h==j)&&(!k||b.o==k)})}function p(c,f,j,k,p){var r=c.b||(c.b=C++),t=w[r]||(w[r]=[]);b._each(f.split(/\s/),function(f){f=b.extend(A(f),{h:j,o:k,k:p,l:t.length});t.push(f);B(c,f.c,p||j)});c=v}function r(f,j,p,r){var t=f.b||(f.b=C++);b._each((j||"").split(/\s/),function(j){b._each(k(f,j,p,r),function(b){delete w[t][b.l];c(f,b.c,b.k||b.h)})})}function f(c){var f=b.extend({X:c},c);b._each(H,function(b){f[b]=function(){return c[b].apply(c,arguments)}});return f}
-var j=document,w={},C=1;b.bind=B;b.unbind=c;var H=["preventDefault","stopImmediatePropagation","stopPropagation"],t=b.fn;b._each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(b){t[b]=function(c,f){return 0<arguments.length?this.bind(b,c,f):this.trigger(b)}});t.bind=function(b,c){return this.each(function(){p(this,b,c)})};t.unbind=function(b,
-c){return this.each(function(){r(this,b,c)})};t.one=function(b,c){return this.each(function(){var f=this;p(this,b,function(){c();r(f,b,arguments.callee)})})};t.delegate=function(c,j,k){return this.each(function(r,t){p(t,j,k,c,function(j){for(var p=j.target,r=b.$$(c,t);p&&0>r.indexOf(p);)p=p.parentNode;p&&p!==t&&p!==document&&k.call(p,b.extend(f(j||window.event),{currentTarget:p,V:t}))})})};t.undelegate=function(b,c,f){return this.each(function(){r(this,c,f,b)})};t.live=function(c,f){b(j.body).delegate(this.selector,
-c,f);return this};t.die=function(c,f){b(j.body).undelegate(this.selector,c,f);return this};t.trigger=function(b){return this.each(function(){if(("click"==b||"blur"==b||"focus"==b)&&this[b])return this[b]();if(j.createEvent){var c=j.createEvent("Events");this.dispatchEvent(c,c.initEvent(b,u,u))}else if(this.fireEvent)try{"ready"!==b&&this.fireEvent("on"+b)}catch(f){}})};b.init||b(window).bind("load",b.onload)});
+$.plug("events",function(b){function B(b,c,f){b.addEventListener?b.addEventListener(c,f,y):(b["e"+c+f]=f,b[c+f]=function(){b["e"+c+f](window.event)},b.attachEvent("on"+c,b[c+f]))}function c(b,c,f){b.removeEventListener?b.removeEventListener(c,f,y):(b.detachEvent("on"+c,b[c+f]),b[c+f]=u)}function A(b){b=(""+b).split(".");return{c:b[0],e:b.slice(1).sort().join(" ")}}function m(c,f,j,m){f=A(f);if(f.e)var n=RegExp("(?:^| )"+f.e.replace(" "," .* ?")+"(?: |$)");return b._filter(v[c.b||(c.b=D++)]||[],function(b){return b&&
+(!f.c||b.c==f.c)&&(!f.e||n.test(b.e))&&(!j||b.h==j)&&(!m||b.o==m)})}function r(c,f,j,m,n){var r=c.b||(c.b=D++),s=v[r]||(v[r]=[]);b._each(f.split(/\s/),function(f){f=b.extend(A(f),{h:j,o:m,k:n,l:s.length});s.push(f);B(c,f.c,n||j)});c=u}function n(f,j,n,r){var s=f.b||(f.b=D++);b._each((j||"").split(/\s/),function(j){b._each(m(f,j,n,r),function(b){delete v[s][b.l];c(f,b.c,b.k||b.h)})})}function f(c){var f=b.extend({X:c},c);b._each(H,function(b){f[b]=function(){return c[b].apply(c,arguments)}});return f}
+var j=document,v={},D=1;b.bind=B;b.unbind=c;var H=["preventDefault","stopImmediatePropagation","stopPropagation"],s=b.fn;b._each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(b){s[b]=function(c,f){return 0<arguments.length?this.bind(b,c,f):this.trigger(b)}});s.bind=function(b,c){return this.each(function(){r(this,b,c)})};s.unbind=function(b,
+c){return this.each(function(){n(this,b,c)})};s.one=function(b,c){return this.each(function(){var f=this;r(this,b,function(){c();n(f,b,arguments.callee)})})};s.delegate=function(c,j,m){return this.each(function(n,s){r(s,j,m,c,function(j){for(var n=j.target,r=b.$$(c,s);n&&0>r.indexOf(n);)n=n.parentNode;n&&n!==s&&n!==document&&m.call(n,b.extend(f(j||window.event),{currentTarget:n,V:s}))})})};s.undelegate=function(b,c,f){return this.each(function(){n(this,c,f,b)})};s.live=function(c,f){b(j.body).delegate(this.selector,
+c,f);return this};s.die=function(c,f){b(j.body).undelegate(this.selector,c,f);return this};s.trigger=function(b){return this.each(function(){if(("click"==b||"blur"==b||"focus"==b)&&this[b])return this[b]();if(j.createEvent){var c=j.createEvent("Events");this.dispatchEvent(c,c.initEvent(b,t,t))}else if(this.fireEvent)try{"ready"!==b&&this.fireEvent("on"+b)}catch(f){}})};b.init||b(window).bind("load",b.onload)});
View
7 dist/jquip.all.js
@@ -1086,7 +1086,7 @@ window['$'] = window['jquip'] = (function(){
var xhr = _xhr(), timer, n = 0;
if (typeof url === "object") o = url;
else o['url'] = url;
- o = $['_defaults'](o, { 'userAgent': "XMLHttpRequest", 'lang': "en", 'type': "GET", 'data': null, 'contentType': "application/x-www-form-urlencoded", 'dataType': null, 'processData': true });
+ o = $['_defaults'](o, { 'userAgent': "XMLHttpRequest", 'lang': "en", 'type': "GET", 'data': null, 'contentType': "application/x-www-form-urlencoded", 'dataType': null, 'processData': true, 'headers': {"X-Requested-With": "XMLHttpRequest" }});
if (o.timeout) timer = setTimeout(function () { xhr.abort(); if (o.timeoutFn) o.timeoutFn(o.url); }, o.timeout);
var cbCtx = $(o['context'] || document), evtCtx = cbCtx;
xhr.onreadystatechange = function() {
@@ -1117,6 +1117,11 @@ window['$'] = window['jquip'] = (function(){
if (!isPost && data) url += "?" + data;
xhr.open(o['type'], url);
+ try {
+ for (var i in o.headers)
+ xhr.setRequestHeader(i, o.headers[i]);
+ } catch(_) { console.log(_) }
+
if (isPost)
xhr.setRequestHeader("Content-Type", o['contentType']);
View
2  dist/jquip.all.min.js
@@ -1 +1 @@
-window.$=window.jquip=function(){function U(a,b){var c;for(var e=0,g=V.length;e<g;e++)if(V[e].apply(this,arguments))return this;return a?bD(a)?(h?a():f.push(a),this):bE(a)?this.make(a):a.nodeType||bG(a)?this.make([a]):a=="body"&&!b&&d.body?(this.context=a.context,this[0]=d.body,this.length=1,this.selector=a,this):a.selector!==undefined?(this.context=a.context,this.selector=a.selector,this.make(a)):(a=bB(a)&&a.charAt(0)==="<"?(c=s.exec(a))?(a=[d.createElement(c[1])])&&bI(b)?_.fn.attr.call(a,b)&&a:a:bM(a).childNodes:bi(a,b),this.make(a)):this}function _(a,b){return new U(a,b)}function ba(a){return!a||!a.parentNode||a.parentNode.nodeType==11}function bb(a,b,c){b=b||0;if(bD(b))return bv(a,function(a,d){return!!b.call(a,d,a)===c});if(b.nodeType)return bv(a,function(a){return a===b===c});if(bB(b)){var d=b.charAt(0)==":"&&_.Expr[b.substring(1)];return bv(a,function(a){return d?d(a):a.parentNode&&bq(bi(b,a.parentNode),a)>=0})}return bv(a,function(a){return bq(b,a)>=0===c})}function bc(a,b,c){var d=_.data(a,"_J");return typeof c=="undefined"?d&&Y[d]&&Y[d][b]:(d||_.data(a,"_J",d=++Y.id),(Y[d]||(Y[d]={}))[b]=c)}function bd(a){if(!Z[a]){var b=_("<"+a+">").appendTo(d.body),c=_.css&&_.css(b[0],"display")||b[0].style.display;b.remove(),Z[a]=c}return Z[a]}function be(a,b){a.length=b&&b.length||0;if(a.length==0)return a;for(var c=0,d=b.length;c<d;c++)a[c]=b[c];return a}function bf(a,b){var b=" "+b+" ";for(var c=0,d=a.length;c<d;c++)if(bg(a[c],b))return!0;return!1}function bg(a,b){return a.nodeType===1&&(" "+a.className+" ").replace(n," ").indexOf(b)>-1}function bh(a,b,c){b=b||d,c=c||[],b.nodeType==1&&a(b)&&c.push(b);var e=b.childNodes;for(var f=0,g=e.length;f<g;f++){var h=e[f];h.nodeType==1&&bh(a,h,c)}return c}function bi(a,b,c){if(a&&bB(a)){b instanceof _&&(b=b[0]),b=b||d,c=c||_.query;var e=a.charAt(0),f=a.substring(1),g=I.test(f),h;try{return g?O.call(c(a,b)):g?O.call(c(a,b)):e=="#"?(h=d.getElementById(f))?[h]:J:bL(e=="."?b.getElementsByClassName?b.getElementsByClassName(f):c(a,b):b.getElementsByTagName(a))}catch(i){bl(i)}}return a.nodeType==1||a.nodeType==9?[a]:J}function bk(a,b,c){var f=d.head||d.getElementsByTagName("head")[0]||e,g=d.createElement("script"),h;c&&(g.async="async"),g.onreadystatechange=function(){if(!(h=g.readyState)||h=="loaded"||h=="complete")g.onload=g.onreadystatechange=null,f&&g.parentNode&&f.removeChild(g),g=undefined,b&&b()},g.onload=b,g.src=a,f.insertBefore(g,f.firstChild)}function bl(b){a.console&&a.console.warn(arguments)}function bm(a,b,c){if(a==null)return;if(R&&a.forEach===R)a.forEach(b,c);else if(a.length===+a.length){for(var d=0,e=a.length;d<e;d++)if(d in a&&b.call(c,a[d],d,a)===K)return}else for(var f in a)if(N.call(a,f)&&b.call(c,a[f],f,a)===K)return}function bn(a,b){return a&&a.nodeName==="INPUT"&&a.type==="text"&&b==="value"?a.value:a?a.getAttribute(b)||(b in a?a[b]:undefined):null}function bp(a,b){var c=[],d,e,f,g,h;for(d=0,f=bo.length;d<f;d++)if(h=bo[d].exec(a))break;if(d<bo.length)for(e=0;g=b[e];e++)(d==0&&h[1]==g.id||d==1&&bz(h[1],g.tagName)||d==2&&bg(g,h[1])||d==3&&h[2]==bn(g,h[1]))&&c.push(g);else bl(a+" not supported");return c}function bq(a,b){if(a==null)return-1;var c,d;if(T&&a.indexOf===T)return a.indexOf(b);for(c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1}function br(a,b,c){var d=[];return a==null?d:S&&a.filter===S?a.filter(b,c):(bm(a,function(a,e,f){b.call(c,a,e,f)&&(d[d.length]=a)}),d)}function bs(a,b,c){var d=[],e=a[b];while(e&&e.nodeType!==9&&(c===undefined||e.nodeType!==1||!_(e).is(c)))e.nodeType===1&&d.push(e),e=e[b];return d}function bt(a,b,c){b=b||1;var d=0;for(;a;a=a[c])if(a.nodeType===1&&++d===b)break;return a}function bu(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}function bv(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d}function bw(a,b,c){var d,e,f=[],g=0,h=a.length,i=a instanceof _||typeof h=="number"&&(h>0&&a[0]&&a[h-1]||h===0||bE(a));if(i)for(;g<h;g++)d=b(a[g],g,c),d!=null&&(f[f.length]=d);else for(e in a)d=b(a[e],e,c),d!=null&&(f[f.length]=d);return f.concat.apply([],f)}function bx(a,b,c){if(!a)return{};if(b&&c)return a.setAttribute(b,c),null;var d={};return bm(by(a),function(a,b){if(b.indexOf("data-")!==0||!a)return;d[b.substr("data-".length)]=a}),bB(b)?d[b]:d}function by(a){var b={};for(var c=0,d=a.attributes,e=d.length;c<e;c++)b[d.item(c).nodeName]=d.item(c).nodeValue;return b}function bz(a,b){return!a||!b?a==b:a.toLowerCase()===b.toLowerCase()}function bA(a){return a==null?String(a):E[D.call(a)]||"object"}function bB(a){return typeof a=="string"}function bC(a){return typeof a=="object"}function bD(a){return typeof a=="function"||bA(a)==="function"}function bE(a){return bA(a)==="array"}function bF(a){return!bB(a)&&typeof a.length=="number"}function bG(a){return a&&typeof a=="object"&&"setInterval"in a}function bH(a){return a==null||!p.test(a)||isNaN(a)}function bI(a){if(!a||bA(a)!=="object"||a.nodeType||bG(a))return!1;try{if(a.constructor&&!N.call(a,"constructor")&&!N.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(b){return!1}var c;for(c in a);return c===undefined||N.call(a,c)}function bJ(a,b){var c=a.length,d=0;if(typeof b.length=="number")for(var e=b.length;d<e;d++)a[c++]=b[d];else while(b[d]!==undefined)a[c++]=b[d++];return a.length=c,a}function bK(){var a,b,c,d,e,f,g=arguments,h=g[0]||{},i=1,j=g.length,k=!1;typeof h=="boolean"&&(k=h,h=g[1]||{},i=2),typeof h!="object"&&!bD(h)&&(h={}),j===i&&(h=this,--i);for(;i<j;i++)if((a=g[i])!=null)for(b in a){c=h[b],d=a[b];if(h===d)continue;k&&d&&(bI(d)||(e=bE(d)))?(e?(e=!1,f=c&&bE(c)?c:[]):f=c&&bI(c)?c:{},h[b]=bK(k,f,d)):d!==undefined&&(h[b]=d)}return h}function bL(a,b){var c=b||[];if(a!=null){var d=bA(a);a.length==null||d=="string"||d=="function"||d==="regexp"||bG(a)?P.call(c,a):bJ(c,a)}return c}function bM(a,b,c){b=b||d||b.ownerDocument||b[0]&&b[0].ownerDocument||d,c=c||b.createDocumentFragment();if(bF(a))return bO(a,b,c)&&c;var e=bN(a);while(e.firstChild)c.appendChild(e.firstChild);return c}function bN(a,b){var c=(b||d).createElement("div"),e=(m.exec(a)||["",""])[1].toLowerCase(),f=H[e]||H._default,g=f[0];c.innerHTML=f[1]+a+f[2];while(g--)c=c.lastChild;return c}function bO(a,b,c){var d=[],e,f;for(e=0;(f=a[e])!=null;e++)bB(f)&&(f=bN(f,b)),f.nodeType?d.push(f):d=bJ(d,f);if(c)for(e=0;e<d.length;e++)d[e].nodeType&&c.appendChild(d[e]);return d}function bQ(a){if(B){F=G,a.sort(B);if(F)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a}function bR(){if(!d.body)return null;var a=d.createElement("div");d.body.appendChild(a),a.style.width="20px",a.style.padding="10px";var b=a.offsetWidth;return d.body.removeChild(a),b==40}function bS(a,b){g.push({url:a,cb:b})}function bT(){bm(f,function(a){a()}),h=!0}var a=window,b="http://cdnjs.cloudflare.com/ajax/libs/sizzle/1.4.4/sizzle.min.js",c=function(){return a.Sizzle||a.qwery},d=document,e=d.documentElement,f=[],g=[],h,i=/Until$/,j=/,/,k=/^(?:parents|prevUntil|prevAll)/,m=/<([\w:]+)/,n=/[\n\t\r]/g,o=/\s+/,p=/\d/,q=/\S/,r=/\r\n/g,s=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,t=/\r?\n/g,u=/^(?:select|textarea)/i,v=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,w=String.prototype.trim,x,y=/^\s+/,z=/\s+$/,A,B,C={children:!0,contents:!0,next:!0,prev:!0},D=Object.prototype.toString,E={},F=!1,G=!0,H={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},I=/[,\s.#\[>+]/,J=[],K={},L=Array.prototype,M=Object.prototype,N=M.hasOwnProperty,O=L.slice,P=L.push,Q=L.indexOf,R=L.forEach,S=L.filter,T=L.indexOf;q.test(" ")&&(y=/^[\s\xA0]+/,z=/[\s\xA0]+$/);var V=[],W={},X=0,Y={_id:0},Z={},$;$=U.prototype=_.prototype=_.fn={constructor:_,selector:"",length:0,dm:function(a,b,c){var d=a[0],e,f,g,h,i;if(d&&this[0]){if(!(f=d.nodeType===3&&d)){e=d&&d.parentNode,f=e&&e.nodeType===11&&e.childNodes.length===this.length?e:bM(d),g=f.firstChild,f.childNodes.length===1&&(f=g);if(!g)return this}for(i=0,h=this.length;i<h;i++)c.call(this[i],f)}return this},ps:function(a,b,c){var d=this.constructor();return bE(a)?P.apply(d,a):bJ(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d}},$.make=function(a){return be(this,a),this},$.toArray=function(){return O.call(this,0)},$.get=function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},$.add=function(a,b){var c=typeof a=="string"?_(a,b):bL(a&&a.nodeType?[a]:a),d=bJ(this.get(),c);return this.ps(ba(c[0])||ba(d[0])?d:bQ(d))},$.each=function(a){if(!bD(a))return this;for(var b=0,c=this.length;b<c;b++)a.call(this[b],b,this[b]);return this},$.attr=function(a,b){var c=this[0];return bB(a)&&b===undefined?bn(c,a):this.each(function(c){var d=this.nodeType;if(d!==3&&d!==8&&d!==2)if(bC(a))for(var e in a)b===null?this.removeAttribute(a):this.setAttribute(e,a[e]);else this.setAttribute(a,bD(b)?b.call(this,c,this.getAttribute(a)):b)})},$.removeAttr=function(a){return this.each(function(){this.removeAttribute(a)})},$.data=function(a,b){return bx(this[0],a,b)},$.append=function(){return this.dm(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},$.prepend=function(){return this.dm(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},$.before=function(){return this.dm(arguments,!1,function(a){this.parentNode.insertBefore(a,this)})},$.after=function(){return this[0]&&this[0].parentNode?this.dm(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)}):this},$.hide=function(){return this.each(function(){bc(this,"display",this.style.display),this.style.display="none"})},$.show=function(){return this.each(function(){this.style.display=bc(this,"display")||bd(this.tagName)})},$.toggle=function(){return this.each(function(){this.style.display=_.Expr.hidden(this)?bc(this,"display")||bd(this.tagName):(bc(this,"display",this.style.display),"none")})},$.eq=function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},$.first=function(){return this.eq(0)},$.last=function(){return this.eq(-1)},$.slice=function(){return this.ps(O.apply(this,arguments),"slice",O.call(arguments).join(","))},$.map=function(a){return this.ps(bw(this,function(b,c){return a.call(b,c,b)}))},$.find=function(a){var b=this,c,d;if(!bB(a))return _(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(A(b[c],this))return!0});var e=this.ps("","find",a),f,g,h;for(c=0,d=this.length;c<d;c++){f=e.length,bJ(e,_(a,this[c]));if(c==0)for(g=f;g<e.length;g++)for(h=0;h<f;h++)if(e[h]===e[g]){e.splice(g--,1);break}}return e},$.not=function(a){return this.ps(bb(this,a,!1),"not",a)},$.filter=function(a){return this.ps(bb(this,a,!0),"filter",a)},$.indexOf=function(a){return bq(this,a)},$.is=function(a){return this.length>0&&_(this[0]).filter(a).length>0},$.remove=function(){for(var a=0,b;(b=this[a])!=null;a++)b.parentNode&&b.parentNode.removeChild(b);return this},$.closest=function(a,b){var c=[],d;for(d=0,l=this.length;d<l;d++){cur=this[d];while(cur){if(bp(a,[cur]).length>0){c.push(cur);break}cur=cur.parentNode;if(!cur||!cur.ownerDocument||cur===b||cur.nodeType===11)break}}return c=c.length>1?bQ(c):c,this.ps(c,"closest",a)},$.val=function(a){return a==null?this[0]&&this[0].value||"":this.each(function(){this.value=a})},$.html=function(a){return a==null?this[0]&&this[0].innerHTML||"":this.each(function(){this.innerHTML=a})},$.text=function(a){var b=this[0],c;return typeof a=="undefined"?b&&(c=b.nodeType)?c===1||c===9?typeof b.textContent=="string"?b.textContent:b.innerText.replace(r,""):c===3||c===4?b.nodeValue:null:null:this.empty().append((b&&b.ownerDocument||d).createTextNode(a))},$.empty=function(){for(var a=0,b;(b=this[a])!=null;a++)while(b.firstChild)b.removeChild(b.firstChild);return this},$.addClass=function(a){var b,c,d,e,f,g,h;if(bD(a))return this.each(function(b){_(this).addClass(a.call(this,b,this.className))});if(a&&bB(a)){b=a.split(o);for(c=0,d=this.length;c<d;c++){e=this[c];if(e&&e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{f=" "+e.className+" ";for(g=0,h=b.length;g<h;g++)~f.indexOf(" "+b[g]+" ")||(f+=b[g]+" ");e.className=x(f)}}}return this},$.removeClass=function(a){var b,c,d,e,f,g,h;if(bD(a))return this.each(function(b){_(this).removeClass(a.call(this,b,this.className))});if(a&&bB(a)||a===undefined){b=(a||"").split(o);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1&&e.className)if(a){f=(" "+e.className+" ").replace(n," ");for(g=0,h=b.length;g<h;g++)f=f.replace(" "+b[g]+" "," ");e.className=x(f)}else e.className=""}}return this},$.hasClass=function(a){return bf(this,a)},$.fadeIn=function(){this.each(function(){_(this).show()})},$.fadeOut=function(){this.each(function(){_(this).hide()})},$.serializeArray=function(){return this.map(function(){return this.elements?bL(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||u.test(this.nodeName)||v.test(this.type))}).map(function(a,b){var c=_(this).val();return c==null||bE(c)?bw(c,function(a){return{name:b.name,value:a.replace(t,"\r\n")}}):{name:b.name,value:c.replace(t,"\r\n")}}).get()},_.Expr={hidden:function(a){return a.offsetWidth===0||a.offsetHeight==0||(_.css&&_.css(a,"display")||a.style.display)==="none"},visible:function(a){return!_.Expr.hidden(a)}},_.hasClass=bf,_.walk=bh,_.$$=bi,_.setQuery=function(a){_.query=function(b,c){return bi(b,c,a||function(a,b){return b.querySelectorAll(a)})}};var bj=c();_.setQuery(bj||function(a,b){return d.querySelectorAll?bL((b||d).querySelectorAll(a)):[]}),_.loadScript=bk,_.each=function(a,b,c){var d,e=0,f=a.length,g=f===undefined||bD(a);if(c){if(g){for(d in a)if(b.apply(a[d],c)===!1)break}else for(;e<f;)if(b.apply(a[e++],c)===!1)break}else if(g){for(d in a)if(b.call(a[d],d,a[d])===!1)break}else for(;e<f;)if(b.call(a[e],e,a[e++])===!1)break;return a},_._each=bm;var bo=[/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/];_.filter=bp,_._indexOf=bq,_._defaults=function(a){return bm(O.call(arguments,1),function(b){for(var c in b)a[c]==null&&(a[c]=b[c])}),a},_._filter=br,_.proxy=function(a,b){if(typeof b=="string"){var c=a[b];b=a,a=c}if(bD(a)){var d=O.call(arguments,2),e=function(){return a.apply(b,d.concat(O.call(arguments)))};return e.guid=a.guid=a.guid||e.guid||X++,e}},_.dir=bs,_.nth=bt,_.sibling=bu,_.grep=bv,_.map=bw,_.data=bx,_.attrs=by,_.eqSI=bz,_.trim=x=w?function(a){return a==null?"":w.call(a)}:function(a){return a==null?"":a.toString().replace(y,"").replace(z,"")},_.indexOf=_.inArray=function(a,b){if(!b)return-1;if(Q)return Q.call(b,a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},bm("Boolean Number String Function Array Date RegExp Object".split(" "),function(a){return E["[object "+a+"]"]=a.toLowerCase(),this}),_.type=bA,_.isFunction=bD,_.isArray=Array.isArray||bE,_.isWindow=bG,_.isNaN=bH,_.merge=bJ,_.extend=_.fn.extend=bK,_.makeArray=bL,_.htmlFrag=bM;var bP=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1};return A=_.contains=e.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:function(){return!1},B=e.compareDocumentPosition?(A=function(a,b){return!!(a.compareDocumentPosition(b)&16)})&&function(a,b){return a===b?(F=!0,0):!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&4?-1:1}:function(a,b){if(a===b)return F=!0,0;if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,h=b.parentNode,i=g;if(g===h)return bP(a,b);if(!g)return-1;if(!h)return 1;while(i)e.unshift(i),i=i.parentNode;i=h;while(i)f.unshift(i),i=i.parentNode;c=e.length,d=f.length;for(var j=0;j<c&&j<d;j++)if(e[j]!==f[j])return bP(e[j],f[j]);return j===c?bP(a,f[j],-1):bP(e[j],b,1)},_.unique=bQ,bm({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return bs(a,"parentNode")},parentsUntil:function(a,b,c){return bs(a,"parentNode",c)},next:function(a){return bt(a,2,"nextSibling")},prev:function(a){return bt(a,2,"previousSibling")},nextAll:function(a){return bs(a,"nextSibling")},prevAll:function(a){return bs(a,"previousSibling")},nextUntil:function(a,b,c){return bs(a,"nextSibling",c)},prevUntil:function(a,b,c){return bs(a,"previousSibling",c)},siblings:function(a){return bu(a.parentNode.firstChild,a)},children:function(a){return bu(a.firstChild)},contents:function(a){return a.nodeName==="iframe"?a.contentDocument||a.contentWindow["document "]:bL(a.childNodes)}},function(a,b){_.fn[b]=function(c,d){var e=bw(this,a,c),f=O.call(arguments);return i.test(b)||(d=c),typeof d=="string"&&(e=bp(d,e)),e=this.length>1&&!C[b]?bQ(e):e,(this.length>1||j.test(d))&&k.test(b)&&(e=e.reverse()),this.ps(e,b,f.join(","))}}),bm({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after"},function(a,b){_.fn[b]=function(c){var d=[],e=_(c),f,g,h,i=this.length===1&&this[0].parentNode;if(i&&i.nodeType===11&&i.childNodes.length===1&&e.length===1)return e[a](this[0]),this;for(f=0,h=e.length;f<h;f++)g=(f>0?this.clone(!0):this).get(),_(e[f])[a](g),d=d.concat(g);return this.ps(d,b,e.selector)}}),function(){var a=document.createElement("div");a.style.display="none",a.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var b=a.getElementsByTagName("a")[0];_.support={boxModel:null,opacity:/^0.55$/.test(b.style.opacity),cssFloat:!!b.style.cssFloat};var c=/(webkit)[ \/]([\w.]+)/,d=/(opera)(?:.*version)?[ \/]([\w.]+)/,e=/(msie) ([\w.]+)/,f=/(mozilla)(?:.*? rv:([\w.]+))?/,g=navigator.userAgent.toLowerCase(),h=c.exec(g)||d.exec(g)||e.exec(g)||g.indexOf("compatible")<0&&f.exec(g)||[],i;i=_.browser={version:h[2]||"0"},i[h[1]||""]=!0}(),_.scriptsLoaded=function(a){bD(a)&&f.push(a)},_.loadAsync=bS,!bj&&!d.querySelectorAll&&bS(b,function(){_.setQuery(c())}),_.init=!1,_.onload=function(){if(!_.init)try{_.support.boxModel=bR();var a=0;bm(g,function(b){a++,bk(b.url,function(){try{b.cb&&b.cb()}catch(c){}--a||bT()})}),_.init=!0,a||bT()}catch(b){bl(b)}},d.body&&!_.init&&setTimeout(_.onload,1),_.hook=function(a){V.push(a)},_.plug=function(a,b){var c=bB(a)?a:a.name;b=bD(a)?a:b;if(!bD(b))throw"Plugin fn required";c&&b&&(W[c]=b),b(_)},_}();$.plug("ajax",function($){function _xhr(){if(_xhrf!=null)return _xhrf();for(var a=0,b=xhrs.length;a<b;a++)try{var c=xhrs[a],d=c();if(d!=null)return _xhrf=c,d}catch(e){}return function(){}}function _xhrResp(xhr,dataType){return dataType=(dataType||xhr.getResponseHeader("Content-Type").split(";")[0]).toLowerCase(),dataType.indexOf("json")>=0?window.JSON?window.JSON.parse(xhr.responseText):eval(xhr.responseText):dataType.indexOf("script")>=0?eval(xhr.responseText):dataType.indexOf("xml")>=0?xhr.responseXML:xhr.responseText}function ajax(a,b){var c=_xhr(),d,e=0;typeof a=="object"?b=a:b.url=a,b=$._defaults(b,{userAgent:"XMLHttpRequest",lang:"en",type:"GET",data:null,contentType:"application/x-www-form-urlencoded",dataType:null,processData:!0}),b.timeout&&(d=setTimeout(function(){c.abort(),b.timeoutFn&&b.timeoutFn(b.url)},b.timeout));var f=$(b.context||document),g=f;c.onreadystatechange=function(){if(c.readyState==4){d&&clearTimeout(d);if(c.status<300){var a=_xhrResp(c,b.dataType);b.success&&b.success(a),g.trigger("ajaxSuccess",[c,a,b])}else b.error&&b.error(c,c.status,c.statusText),g.trigger(f,"ajaxError",[c,c.statusText,b]);b.complete&&b.complete(c,c.statusText),g.trigger(f,"ajaxComplete",[c,b])}else b.progress&&b.progress(++e)};var a=b.url,h=null,i=b["type"]=="POST"||b["type"]=="PUT";b.data&&b.processData&&typeof b["data"]=="object"&&(h=$.formData(b.data)),!i&&h&&(a+="?"+h),c.open(b.type,a),i&&c.setRequestHeader("Content-Type",b.contentType),c.send(h)}var xhrs=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new ActiveXObject("MSXML2.XMLHTTP.3.0")},function(){return new ActiveXObject("MSXML2.XMLHTTP")}],_xhrf=null;$.xhr=_xhr,$._xhrResp=_xhrResp,$.formData=function(a){var b=[],c=/%20/g;for(var d in a)b.push(encodeURIComponent(d).replace(c,"+")+"="+encodeURIComponent(a[d].toString()).replace(c,"+"));return b.join("&")},$.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){$.fn[b]=function(a){return this.bind(b,a)}}),$.ajax=ajax,$.getJSON=function(a,b,c,d){$.isFunction(b)&&(d=c,c=b,b=null),ajax({url:a,data:b,success:c,dataType:"json"})},$.get=function(a,b,c,d){$.isFunction(b)&&(d=c,c=b,b=null),ajax({url:a,type:"GET",data:b,success:c,dataType:d||"text/plain"})},$.post=function(a,b,c,d){$.isFunction(b)&&(d=c,c=b,b=null),ajax({url:a,type:"POST",data:b,success:c,dataType:d||"text/plain"})},$.getScript=function(a,b){return $.get(a,undefined,b,"script")},window.JSON||$.loadAsync("http://ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js")});$.plug("css",function(a){function r(b,c,d){var e=c==="width"?b.offsetWidth:b.offsetHeight,f=c==="width"?l:m;return e>0?(d!=="border"&&a.each(f,function(){d||(e-=parseFloat(t(b,"padding"+this))||0),d==="margin"?e+=parseFloat(t(b,d+this))||0:e-=parseFloat(t(b,"border"+this+"Width"))||0}),e+"px"):""}function s(b,c,d,e){if(!b||b.nodeType===3||b.nodeType===8||!b.style)return;var f,g=v(c),h=b.style,i=a.cssHooks[g];c=a.cssProps[g]||g;if(d===undefined)return i&&"get"in i&&(f=i.get(b,!1,e))!==undefined?f:h[c];if(typeof d=="number"&&isNaN(d)||d==null)return;typeof d=="number"&&!a.cssNumber[g]&&(d+="px");if(!i||!("set"in i)||(d=i.set(b,d))!==undefined)try{h[c]=d}catch(j){}}function t(b,c,d){var e,f=v(c),g=a.cssHooks[f];c=a.cssProps[f]||f;if(g&&"get"in g&&(e=g.get(b,!0,d))!==undefined)return e;if(n)return n(b,c,f)}function u(a,b,c){var d={},e;for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}function v(a){return a.replace(f,q)}function w(b,c,d,e,f,g){var h=b.length;if(typeof c=="object"){for(var i in c)w(b,i,c[i],e,f,d);return b}if(d!==undefined){e=!g&&e&&a.isFunction(d);for(var j=0;j<h;j++)f(b[j],c,e?d.call(b[j],j,f(b[j],c)):d,g);return b}return h?f(b[0],c):undefined}function F(b){return a.isWindow(b)?b:b.nodeType===9?b.defaultView||b.parentWindow:!1}var b=document,c=b.documentElement,d=/alpha\([^)]*\)/i,e=/opacity=([^)]*)/,f=/-([a-z])/ig,g=/([A-Z])/g,h=/^-?\d+(?:px)?$/i,i=/^-?\d/,j=/^(?:body|html)$/i,k={position:"absolute",visibility:"hidden",display:"block"},l=["Left","Right"],m=["Top","Bottom"],n,o,p,q=function(a,b){return b.toUpperCase()};a.cssHooks={opacity:{get:function(a,b){if(!b)return a.style.opacity;var c=n(a,"opacity","opacity");return c===""?"1":c}}},a._each(["height","width"],function(b){a.cssHooks[b]={get:function(a,c,d){var e;if(c)return a.offsetWidth!==0?r(a,b,d):(u(a,k,function(){e=r(a,b,d)}),e)},set:function(a,b){if(!h.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),a.support.opacity||(a.support.opacity={get:function(a,b){return e.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(b,c){var e=b.style;e.zoom=1;var f=a.isNaN(c)?"":"alpha(opacity="+c*100+")",g=e.filter||"";e.filter=d.test(g)?g.replace(d,f):e.filter+" "+f}}),b.defaultView&&b.defaultView.getComputedStyle&&(o=function(b,c,d){var e,f,h;d=d.replace(g,"-$1").toLowerCase();if(!(f=b.ownerDocument.defaultView))return undefined;if(h=f.getComputedStyle(b,null))e=h.getPropertyValue(d),e===""&&!a.contains(b.ownerDocument.documentElement,b)&&(e=a.style(b,d));return e}),b.documentElement.currentStyle&&(p=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;return!h.test(d)&&i.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e)),d===""?"auto":d}),n=o||p,a.fn.css=function(a,b){return arguments.length===2&&b===undefined?this:w(this,a,b,!0,function(a,b,c){return c!==undefined?s(a,b,c):t(a,b)})},a.cssNumber={zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},a.cssProps={"float":a.support.cssFloat?"cssFloat":"styleFloat"},a.style=s,a.css=t,a.swap=u,a.camelCase=v;var x,y,z,A,B,C,D=function(){if(x)return;var c=b.body,d=b.createElement("div"),e,f,g,h,i=parseFloat(t(c,"marginTop"))||0,j="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.extend(d.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),d.innerHTML=j,c.insertBefore(d,c.firstChild),e=d.firstChild,f=e.firstChild,h=e.nextSibling.firstChild.firstChild,B=f.offsetTop!==5,C=h.offsetTop===5,f.style.position="fixed",f.style.top="20px",A=f.offsetTop===20||f.offsetTop===15,f.style.position=f.style.top="",e.style.overflow="hidden",e.style.position="relative",z=f.offsetTop===-5,y=c.offsetTop!==i,c.removeChild(d),x=!0},E=function(a){var b=a.offsetTop,c=a.offsetLeft;return D(),y&&(b+=parseFloat(t(a,"marginTop"))||0,c+=parseFloat(t(a,"marginLeft"))||0),{top:b,left:c}};a.fn.offset=function(){var d=this[0],e;if(!d||!d.ownerDocument)return null;if(d===d.ownerDocument.body)return E(d);try{e=d.getBoundingClientRect()}catch(f){}if(!e||!a.contains(c,d))return e?{top:e.top,left:e.left}:{top:0,left:0};var g=b.body,h=F(b),i=c.clientTop||g.clientTop||0,j=c.clientLeft||g.clientLeft||0,k=h.pageYOffset||a.support.boxModel&&c.scrollTop||g.scrollTop,l=h.pageXOffset||a.support.boxModel&&c.scrollLeft||g.scrollLeft,m=e.top+k-i,n=e.left+l-j;return{top:m,left:n}},a.fn.position=function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=j.test(b[0].nodeName)?{top:0,left:0}:b.offset();return c.top-=parseFloat(t(a,"marginTop"))||0,c.left-=parseFloat(t(a,"marginLeft"))||0,d.top+=parseFloat(t(b[0],"borderTopWidth"))||0,d.left+=parseFloat(t(b[0],"borderLeftWidth"))||0,{top:c.top-d.top,left:c.left-d.left}},a.fn.offsetParent=function(){return this.map(function(){var a=this.offsetParent||b.body;while(a&&!j.test(a.nodeName)&&t(a,"position")==="static")a=a.offsetParent;return a})},a._each(["Height","Width"],function(b,c){var d=b.toLowerCase();a.fn["inner"+b]=function(){var a=this[0];return a&&a.style?parseFloat(t(a,d,"padding")):null},a.fn["outer"+b]=function(a){var b=this[0];return b&&b.style?parseFloat(t(b,d,a?"margin":"border")):null},a.fn[d]=function(c){var e=this[0];if(!e)return c==null?null:this;if(a.isFunction(c))return this.each(function(b){var e=a(this);e[d](c.call(this,b,e[d]()))});if(a.isWindow(e)){var f=e.document.documentElement["client"+b],g=e.document.body;return e.document.compatMode==="CSS1Compat"&&f||g&&g["client"+b]||f}if(e.nodeType===9)return Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]);if(c===undefined){var h=t(e,d),i=parseFloat(h);return a.isNaN(i)?h:i}return this.css(d,typeof c=="string"?c:c+"px")}}),a._each(["Left","Top"],function(b,c){var d="scroll"+b;a.fn[d]=function(b){var e,f;return b===undefined?(e=this[0],e?(f=F(e),f?"pageXOffset"in f?f[c?"pageYOffset":"pageXOffset"]:a.support.boxModel&&f.document.documentElement[d]||f.document.body[d]:e[d]):null):this.each(function(){f=F(this),f?f.scrollTo(c?a(f).scrollLeft():b,c?b:a(f).scrollTop()):this[d]=b})}})});$.plug("custom",function(a){var b=window,c=document,d={},e=b.location.search.substring(1).split("&");for(var f=0;f<e.length;f++){var g=e[f].split("=");d[g[0]]=unescape(g[1])}a.queryString=function(a){return d[a]};var h=a.Key=function(a){this.keyCode=a};h.namedKeys={Backspace:8,Tab:9,Enter:13,Shift:16,Ctrl:17,Alt:18,Pause:19,Capslock:20,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,LeftArrow:37,UpArrow:38,RightArrow:39,DownArrow:40,Insert:45,Delete:46},a._each(h.namedKeys,function(a,b){var c=a;h.prototype["is"+b]=function(){return this.keyCode===c}}),a.key=function(a){return a=a||window.event,new h(a.keyCode||a.which)},a.cancelEvent=function(a){return a||(a=window.event),a.cancelBubble=!0,a.returnValue=!1,a.stopPropagation&&(a.stopPropagation(),a.preventDefault()),!1},a.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},a._template=function(b,c){var d=a.templateSettings,e="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+b.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(d.escape,function(a,b){return"',_.escape("+b.replace(/\\'/g,"'")+"),'"}).replace(d.interpolate,function(a,b){return"',"+b.replace(/\\'/g,"'")+",'"}).replace(d.evaluate||null,function(a,b){return"');"+b.replace(/\\'/g,"'").replace(/[\r\n\t]/g," ")+";__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');",f=new Function("obj","$",e);return c?f(c,a):function(b){return f(b,a)}}});$.plug("docready",function(a){function i(){if(g)return;try{c.documentElement.doScroll("left")}catch(a){setTimeout(i,1);return}j()}function j(b){b===!0&&h--;if(!h||b!==!0&&!g){if(!c.body)return setTimeout(i,1);g=!0;if(b!==!0&&--h>0)return;if(f){var d,e=0,i=f;f=null;while(d=i[e++])d.call(c,a);a.fn.trigger&&a(c).trigger("ready").unbind("ready")}}}var b=window,c=document,d,e,f=[],g=!1,h=1;a.hook(function(a,b){if(typeof a=="function")return this.ready(a),!0}),a.ready=j,d=c.addEventListener?function(){c.removeEventListener("DOMContentLoaded",d,!1),j()}:function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",d),j())},a.bindReady=function(){if(e)return;e=!0;if(c.readyState==="complete")return setTimeout(j,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",d,!1),b.addEventListener("load",j,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",d),b.attachEvent("onload",j);var a=!1;try{a=window.frameElement==null}catch(f){}c.documentElement.doScroll&&a&&i()}},a.fn.ready=function(b){return a.bindReady(),g?b.call(c,a):f&&f.push(b),this},a.init||a(document).ready(a.onload)});$.plug("events",function(a){function e(a){return a._jquid||(a._jquid=d++)}function f(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):(a["e"+b+c]=c,a[b+c]=function(){a["e"+b+c](window.event)},a.attachEvent("on"+b,a[b+c]))}function g(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):(a.detachEvent("on"+b,a[b+c]),a[b+c]=null)}function h(a){var b=(""+a).split(".");return{e:b[0],ns:b.slice(1).sort().join(" ")}}function i(a){return new RegExp("(?:^| )"+a.replace(" "," .* ?")+"(?: |$)")}function j(b,d,f,g){d=h(d);if(d.ns)var j=i(d.ns);return a._filter(c[e(b)]||[],function(a){return a&&(!d.e||a.e==d.e)&&(!d.ns||j.test(a.ns))&&(!f||a.fn==f)&&(!g||a.sel==g)})}function k(b,d,g,i,j){var k=e(b),l=c[k]||(c[k]=[]);a._each(d.split(/\s/),function(c){var d=a.extend(h(c),{fn:g,sel:i,del:j,i:l.length});l.push(d),f(b,d.e,j||g)}),b=null}function l(b,d,f,h){var i=e(b);a._each((d||"").split(/\s/),function(d){a._each(j(b,d,f,h),function(a){delete c[i][a.i],g(b,a.e,a.del||a.fn)})})}function n(b){var c=a.extend({originalEvent:b},b);return a._each(m,function(a){c[a]=function(){return b[a].apply(b,arguments)}}),c}var b=document,c={},d=1;a.bind=f,a.unbind=g;var m=["preventDefault","stopImmediatePropagation","stopPropagation"],o=a.fn;a._each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a){o[a]=function(b,c){return arguments.length>0?this.bind(a,b,c):this.trigger(a)}}),o.bind=function(a,b){return this.each(function(){k(this,a,b)})},o.unbind=function(a,b){return this.each(function(){l(this,a,b)})},o.one=function(a,b){return this.each(function(){var c=this;k(this,a,function(){b(),l(c,a,arguments.callee)})})},o.delegate=function(b,c,d){return this.each(function(e,f){k(f,c,d,b,function(c){var e=c.target,g=a.$$(b,f);while(e&&g.indexOf(e)<0)e=e.parentNode;e&&e!==f&&e!==document&&d.call(e,a.extend(n(c||window.event),{currentTarget:e,liveFired:f}))})})},o.undelegate=function(a,b,c){return this.each(function(){l(this,b,c,a)})},o.live=function(c,d){return a(b.body).delegate(this.selector,c,d),this},o.die=function(c,d){return a(b.body).undelegate(this.selector,c,d),this},o.trigger=function(a){return this.each(function(){if(!(a!="click"&&a!="blur"&&a!="focus"||!this[a]))return this[a]();if(b.createEvent){var c=b.createEvent("Events");this.dispatchEvent(c,c.initEvent(a,!0,!0))}else if(this.fireEvent)try{a!=="ready"&&this.fireEvent("on"+a)}catch(c){}})},a.init||a(window).bind("load",a.onload)});
+window.$=window.jquip=function(){function U(a,b){var c;for(var e=0,g=V.length;e<g;e++)if(V[e].apply(this,arguments))return this;return a?bD(a)?(h?a():f.push(a),this):bE(a)?this.make(a):a.nodeType||bG(a)?this.make([a]):a=="body"&&!b&&d.body?(this.context=a.context,this[0]=d.body,this.length=1,this.selector=a,this):a.selector!==undefined?(this.context=a.context,this.selector=a.selector,this.make(a)):(a=bB(a)&&a.charAt(0)==="<"?(c=s.exec(a))?(a=[d.createElement(c[1])])&&bI(b)?_.fn.attr.call(a,b)&&a:a:bM(a).childNodes:bi(a,b),this.make(a)):this}function _(a,b){return new U(a,b)}function ba(a){return!a||!a.parentNode||a.parentNode.nodeType==11}function bb(a,b,c){b=b||0;if(bD(b))return bv(a,function(a,d){return!!b.call(a,d,a)===c});if(b.nodeType)return bv(a,function(a){return a===b===c});if(bB(b)){var d=b.charAt(0)==":"&&_.Expr[b.substring(1)];return bv(a,function(a){return d?d(a):a.parentNode&&bq(bi(b,a.parentNode),a)>=0})}return bv(a,function(a){return bq(b,a)>=0===c})}function bc(a,b,c){var d=_.data(a,"_J");return typeof c=="undefined"?d&&Y[d]&&Y[d][b]:(d||_.data(a,"_J",d=++Y.id),(Y[d]||(Y[d]={}))[b]=c)}function bd(a){if(!Z[a]){var b=_("<"+a+">").appendTo(d.body),c=_.css&&_.css(b[0],"display")||b[0].style.display;b.remove(),Z[a]=c}return Z[a]}function be(a,b){a.length=b&&b.length||0;if(a.length==0)return a;for(var c=0,d=b.length;c<d;c++)a[c]=b[c];return a}function bf(a,b){var b=" "+b+" ";for(var c=0,d=a.length;c<d;c++)if(bg(a[c],b))return!0;return!1}function bg(a,b){return a.nodeType===1&&(" "+a.className+" ").replace(n," ").indexOf(b)>-1}function bh(a,b,c){b=b||d,c=c||[],b.nodeType==1&&a(b)&&c.push(b);var e=b.childNodes;for(var f=0,g=e.length;f<g;f++){var h=e[f];h.nodeType==1&&bh(a,h,c)}return c}function bi(a,b,c){if(a&&bB(a)){b instanceof _&&(b=b[0]),b=b||d,c=c||_.query;var e=a.charAt(0),f=a.substring(1),g=I.test(f),h;try{return g?O.call(c(a,b)):g?O.call(c(a,b)):e=="#"?(h=d.getElementById(f))?[h]:J:bL(e=="."?b.getElementsByClassName?b.getElementsByClassName(f):c(a,b):b.getElementsByTagName(a))}catch(i){bl(i)}}return a.nodeType==1||a.nodeType==9?[a]:J}function bk(a,b,c){var f=d.head||d.getElementsByTagName("head")[0]||e,g=d.createElement("script"),h;c&&(g.async="async"),g.onreadystatechange=function(){if(!(h=g.readyState)||h=="loaded"||h=="complete")g.onload=g.onreadystatechange=null,f&&g.parentNode&&f.removeChild(g),g=undefined,b&&b()},g.onload=b,g.src=a,f.insertBefore(g,f.firstChild)}function bl(b){a.console&&a.console.warn(arguments)}function bm(a,b,c){if(a==null)return;if(R&&a.forEach===R)a.forEach(b,c);else if(a.length===+a.length){for(var d=0,e=a.length;d<e;d++)if(d in a&&b.call(c,a[d],d,a)===K)return}else for(var f in a)if(N.call(a,f)&&b.call(c,a[f],f,a)===K)return}function bn(a,b){return a&&a.nodeName==="INPUT"&&a.type==="text"&&b==="value"?a.value:a?a.getAttribute(b)||(b in a?a[b]:undefined):null}function bp(a,b){var c=[],d,e,f,g,h;for(d=0,f=bo.length;d<f;d++)if(h=bo[d].exec(a))break;if(d<bo.length)for(e=0;g=b[e];e++)(d==0&&h[1]==g.id||d==1&&bz(h[1],g.tagName)||d==2&&bg(g,h[1])||d==3&&h[2]==bn(g,h[1]))&&c.push(g);else bl(a+" not supported");return c}function bq(a,b){if(a==null)return-1;var c,d;if(T&&a.indexOf===T)return a.indexOf(b);for(c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1}function br(a,b,c){var d=[];return a==null?d:S&&a.filter===S?a.filter(b,c):(bm(a,function(a,e,f){b.call(c,a,e,f)&&(d[d.length]=a)}),d)}function bs(a,b,c){var d=[],e=a[b];while(e&&e.nodeType!==9&&(c===undefined||e.nodeType!==1||!_(e).is(c)))e.nodeType===1&&d.push(e),e=e[b];return d}function bt(a,b,c){b=b||1;var d=0;for(;a;a=a[c])if(a.nodeType===1&&++d===b)break;return a}function bu(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}function bv(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d}function bw(a,b,c){var d,e,f=[],g=0,h=a.length,i=a instanceof _||typeof h=="number"&&(h>0&&a[0]&&a[h-1]||h===0||bE(a));if(i)for(;g<h;g++)d=b(a[g],g,c),d!=null&&(f[f.length]=d);else for(e in a)d=b(a[e],e,c),d!=null&&(f[f.length]=d);return f.concat.apply([],f)}function bx(a,b,c){if(!a)return{};if(b&&c)return a.setAttribute(b,c),null;var d={};return bm(by(a),function(a,b){if(b.indexOf("data-")!==0||!a)return;d[b.substr("data-".length)]=a}),bB(b)?d[b]:d}function by(a){var b={};for(var c=0,d=a.attributes,e=d.length;c<e;c++)b[d.item(c).nodeName]=d.item(c).nodeValue;return b}function bz(a,b){return!a||!b?a==b:a.toLowerCase()===b.toLowerCase()}function bA(a){return a==null?String(a):E[D.call(a)]||"object"}function bB(a){return typeof a=="string"}function bC(a){return typeof a=="object"}function bD(a){return typeof a=="function"||bA(a)==="function"}function bE(a){return bA(a)==="array"}function bF(a){return!bB(a)&&typeof a.length=="number"}function bG(a){return a&&typeof a=="object"&&"setInterval"in a}function bH(a){return a==null||!p.test(a)||isNaN(a)}function bI(a){if(!a||bA(a)!=="object"||a.nodeType||bG(a))return!1;try{if(a.constructor&&!N.call(a,"constructor")&&!N.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(b){return!1}var c;for(c in a);return c===undefined||N.call(a,c)}function bJ(a,b){var c=a.length,d=0;if(typeof b.length=="number")for(var e=b.length;d<e;d++)a[c++]=b[d];else while(b[d]!==undefined)a[c++]=b[d++];return a.length=c,a}function bK(){var a,b,c,d,e,f,g=arguments,h=g[0]||{},i=1,j=g.length,k=!1;typeof h=="boolean"&&(k=h,h=g[1]||{},i=2),typeof h!="object"&&!bD(h)&&(h={}),j===i&&(h=this,--i);for(;i<j;i++)if((a=g[i])!=null)for(b in a){c=h[b],d=a[b];if(h===d)continue;k&&d&&(bI(d)||(e=bE(d)))?(e?(e=!1,f=c&&bE(c)?c:[]):f=c&&bI(c)?c:{},h[b]=bK(k,f,d)):d!==undefined&&(h[b]=d)}return h}function bL(a,b){var c=b||[];if(a!=null){var d=bA(a);a.length==null||d=="string"||d=="function"||d==="regexp"||bG(a)?P.call(c,a):bJ(c,a)}return c}function bM(a,b,c){b=b||d||b.ownerDocument||b[0]&&b[0].ownerDocument||d,c=c||b.createDocumentFragment();if(bF(a))return bO(a,b,c)&&c;var e=bN(a);while(e.firstChild)c.appendChild(e.firstChild);return c}function bN(a,b){var c=(b||d).createElement("div"),e=(m.exec(a)||["",""])[1].toLowerCase(),f=H[e]||H._default,g=f[0];c.innerHTML=f[1]+a+f[2];while(g--)c=c.lastChild;return c}function bO(a,b,c){var d=[],e,f;for(e=0;(f=a[e])!=null;e++)bB(f)&&(f=bN(f,b)),f.nodeType?d.push(f):d=bJ(d,f);if(c)for(e=0;e<d.length;e++)d[e].nodeType&&c.appendChild(d[e]);return d}function bQ(a){if(B){F=G,a.sort(B);if(F)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a}function bR(){if(!d.body)return null;var a=d.createElement("div");d.body.appendChild(a),a.style.width="20px",a.style.padding="10px";var b=a.offsetWidth;return d.body.removeChild(a),b==40}function bS(a,b){g.push({url:a,cb:b})}function bT(){bm(f,function(a){a()}),h=!0}var a=window,b="http://cdnjs.cloudflare.com/ajax/libs/sizzle/1.4.4/sizzle.min.js",c=function(){return a.Sizzle||a.qwery},d=document,e=d.documentElement,f=[],g=[],h,i=/Until$/,j=/,/,k=/^(?:parents|prevUntil|prevAll)/,m=/<([\w:]+)/,n=/[\n\t\r]/g,o=/\s+/,p=/\d/,q=/\S/,r=/\r\n/g,s=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,t=/\r?\n/g,u=/^(?:select|textarea)/i,v=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,w=String.prototype.trim,x,y=/^\s+/,z=/\s+$/,A,B,C={children:!0,contents:!0,next:!0,prev:!0},D=Object.prototype.toString,E={},F=!1,G=!0,H={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},I=/[,\s.#\[>+]/,J=[],K={},L=Array.prototype,M=Object.prototype,N=M.hasOwnProperty,O=L.slice,P=L.push,Q=L.indexOf,R=L.forEach,S=L.filter,T=L.indexOf;q.test(" ")&&(y=/^[\s\xA0]+/,z=/[\s\xA0]+$/);var V=[],W={},X=0,Y={_id:0},Z={},$;$=U.prototype=_.prototype=_.fn={constructor:_,selector:"",length:0,dm:function(a,b,c){var d=a[0],e,f,g,h,i;if(d&&this[0]){if(!(f=d.nodeType===3&&d)){e=d&&d.parentNode,f=e&&e.nodeType===11&&e.childNodes.length===this.length?e:bM(d),g=f.firstChild,f.childNodes.length===1&&(f=g);if(!g)return this}for(i=0,h=this.length;i<h;i++)c.call(this[i],f)}return this},ps:function(a,b,c){var d=this.constructor();return bE(a)?P.apply(d,a):bJ(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d}},$.make=function(a){return be(this,a),this},$.toArray=function(){return O.call(this,0)},$.get=function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},$.add=function(a,b){var c=typeof a=="string"?_(a,b):bL(a&&a.nodeType?[a]:a),d=bJ(this.get(),c);return this.ps(ba(c[0])||ba(d[0])?d:bQ(d))},$.each=function(a){if(!bD(a))return this;for(var b=0,c=this.length;b<c;b++)a.call(this[b],b,this[b]);return this},$.attr=function(a,b){var c=this[0];return bB(a)&&b===undefined?bn(c,a):this.each(function(c){var d=this.nodeType;if(d!==3&&d!==8&&d!==2)if(bC(a))for(var e in a)b===null?this.removeAttribute(a):this.setAttribute(e,a[e]);else this.setAttribute(a,bD(b)?b.call(this,c,this.getAttribute(a)):b)})},$.removeAttr=function(a){return this.each(function(){this.removeAttribute(a)})},$.data=function(a,b){return bx(this[0],a,b)},$.append=function(){return this.dm(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},$.prepend=function(){return this.dm(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},$.before=function(){return this.dm(arguments,!1,function(a){this.parentNode.insertBefore(a,this)})},$.after=function(){return this[0]&&this[0].parentNode?this.dm(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)}):this},$.hide=function(){return this.each(function(){bc(this,"display",this.style.display),this.style.display="none"})},$.show=function(){return this.each(function(){this.style.display=bc(this,"display")||bd(this.tagName)})},$.toggle=function(){return this.each(function(){this.style.display=_.Expr.hidden(this)?bc(this,"display")||bd(this.tagName):(bc(this,"display",this.style.display),"none")})},$.eq=function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},$.first=function(){return this.eq(0)},$.last=function(){return this.eq(-1)},$.slice=function(){return this.ps(O.apply(this,arguments),"slice",O.call(arguments).join(","))},$.map=function(a){return this.ps(bw(this,function(b,c){return a.call(b,c,b)}))},$.find=function(a){var b=this,c,d;if(!bB(a))return _(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(A(b[c],this))return!0});var e=this.ps("","find",a),f,g,h;for(c=0,d=this.length;c<d;c++){f=e.length,bJ(e,_(a,this[c]));if(c==0)for(g=f;g<e.length;g++)for(h=0;h<f;h++)if(e[h]===e[g]){e.splice(g--,1);break}}return e},$.not=function(a){return this.ps(bb(this,a,!1),"not",a)},$.filter=function(a){return this.ps(bb(this,a,!0),"filter",a)},$.indexOf=function(a){return bq(this,a)},$.is=function(a){return this.length>0&&_(this[0]).filter(a).length>0},$.remove=function(){for(var a=0,b;(b=this[a])!=null;a++)b.parentNode&&b.parentNode.removeChild(b);return this},$.closest=function(a,b){var c=[],d;for(d=0,l=this.length;d<l;d++){cur=this[d];while(cur){if(bp(a,[cur]).length>0){c.push(cur);break}cur=cur.parentNode;if(!cur||!cur.ownerDocument||cur===b||cur.nodeType===11)break}}return c=c.length>1?bQ(c):c,this.ps(c,"closest",a)},$.val=function(a){return a==null?this[0]&&this[0].value||"":this.each(function(){this.value=a})},$.html=function(a){return a==null?this[0]&&this[0].innerHTML||"":this.each(function(){this.innerHTML=a})},$.text=function(a){var b=this[0],c;return typeof a=="undefined"?b&&(c=b.nodeType)?c===1||c===9?typeof b.textContent=="string"?b.textContent:b.innerText.replace(r,""):c===3||c===4?b.nodeValue:null:null:this.empty().append((b&&b.ownerDocument||d).createTextNode(a))},$.empty=function(){for(var a=0,b;(b=this[a])!=null;a++)while(b.firstChild)b.removeChild(b.firstChild);return this},$.addClass=function(a){var b,c,d,e,f,g,h;if(bD(a))return this.each(function(b){_(this).addClass(a.call(this,b,this.className))});if(a&&bB(a)){b=a.split(o);for(c=0,d=this.length;c<d;c++){e=this[c];if(e&&e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{f=" "+e.className+" ";for(g=0,h=b.length;g<h;g++)~f.indexOf(" "+b[g]+" ")||(f+=b[g]+" ");e.className=x(f)}}}return this},$.removeClass=function(a){var b,c,d,e,f,g,h;if(bD(a))return this.each(function(b){_(this).removeClass(a.call(this,b,this.className))});if(a&&bB(a)||a===undefined){b=(a||"").split(o);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1&&e.className)if(a){f=(" "+e.className+" ").replace(n," ");for(g=0,h=b.length;g<h;g++)f=f.replace(" "+b[g]+" "," ");e.className=x(f)}else e.className=""}}return this},$.hasClass=function(a){return bf(this,a)},$.fadeIn=function(){this.each(function(){_(this).show()})},$.fadeOut=function(){this.each(function(){_(this).hide()})},$.serializeArray=function(){return this.map(function(){return this.elements?bL(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||u.test(this.nodeName)||v.test(this.type))}).map(function(a,b){var c=_(this).val();return c==null||bE(c)?bw(c,function(a){return{name:b.name,value:a.replace(t,"\r\n")}}):{name:b.name,value:c.replace(t,"\r\n")}}).get()},_.Expr={hidden:function(a){return a.offsetWidth===0||a.offsetHeight==0||(_.css&&_.css(a,"display")||a.style.display)==="none"},visible:function(a){return!_.Expr.hidden(a)}},_.hasClass=bf,_.walk=bh,_.$$=bi,_.setQuery=function(a){_.query=function(b,c){return bi(b,c,a||function(a,b){return b.querySelectorAll(a)})}};var bj=c();_.setQuery(bj||function(a,b){return d.querySelectorAll?bL((b||d).querySelectorAll(a)):[]}),_.loadScript=bk,_.each=function(a,b,c){var d,e=0,f=a.length,g=f===undefined||bD(a);if(c){if(g){for(d in a)if(b.apply(a[d],c)===!1)break}else for(;e<f;)if(b.apply(a[e++],c)===!1)break}else if(g){for(d in a)if(b.call(a[d],d,a[d])===!1)break}else for(;e<f;)if(b.call(a[e],e,a[e++])===!1)break;return a},_._each=bm;var bo=[/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/];_.filter=bp,_._indexOf=bq,_._defaults=function(a){return bm(O.call(arguments,1),function(b){for(var c in b)a[c]==null&&(a[c]=b[c])}),a},_._filter=br,_.proxy=function(a,b){if(typeof b=="string"){var c=a[b];b=a,a=c}if(bD(a)){var d=O.call(arguments,2),e=function(){return a.apply(b,d.concat(O.call(arguments)))};return e.guid=a.guid=a.guid||e.guid||X++,e}},_.dir=bs,_.nth=bt,_.sibling=bu,_.grep=bv,_.map=bw,_.data=bx,_.attrs=by,_.eqSI=bz,_.trim=x=w?function(a){return a==null?"":w.call(a)}:function(a){return a==null?"":a.toString().replace(y,"").replace(z,"")},_.indexOf=_.inArray=function(a,b){if(!b)return-1;if(Q)return Q.call(b,a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},bm("Boolean Number String Function Array Date RegExp Object".split(" "),function(a){return E["[object "+a+"]"]=a.toLowerCase(),this}),_.type=bA,_.isFunction=bD,_.isArray=Array.isArray||bE,_.isWindow=bG,_.isNaN=bH,_.merge=bJ,_.extend=_.fn.extend=bK,_.makeArray=bL,_.htmlFrag=bM;var bP=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1};return A=_.contains=e.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:function(){return!1},B=e.compareDocumentPosition?(A=function(a,b){return!!(a.compareDocumentPosition(b)&16)})&&function(a,b){return a===b?(F=!0,0):!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&4?-1:1}:function(a,b){if(a===b)return F=!0,0;if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,h=b.parentNode,i=g;if(g===h)return bP(a,b);if(!g)return-1;if(!h)return 1;while(i)e.unshift(i),i=i.parentNode;i=h;while(i)f.unshift(i),i=i.parentNode;c=e.length,d=f.length;for(var j=0;j<c&&j<d;j++)if(e[j]!==f[j])return bP(e[j],f[j]);return j===c?bP(a,f[j],-1):bP(e[j],b,1)},_.unique=bQ,bm({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return bs(a,"parentNode")},parentsUntil:function(a,b,c){return bs(a,"parentNode",c)},next:function(a){return bt(a,2,"nextSibling")},prev:function(a){return bt(a,2,"previousSibling")},nextAll:function(a){return bs(a,"nextSibling")},prevAll:function(a){return bs(a,"previousSibling")},nextUntil:function(a,b,c){return bs(a,"nextSibling",c)},prevUntil:function(a,b,c){return bs(a,"previousSibling",c)},siblings:function(a){return bu(a.parentNode.firstChild,a)},children:function(a){return bu(a.firstChild)},contents:function(a){return a.nodeName==="iframe"?a.contentDocument||a.contentWindow["document "]:bL(a.childNodes)}},function(a,b){_.fn[b]=function(c,d){var e=bw(this,a,c),f=O.call(arguments);return i.test(b)||(d=c),typeof d=="string"&&(e=bp(d,e)),e=this.length>1&&!C[b]?bQ(e):e,(this.length>1||j.test(d))&&k.test(b)&&(e=e.reverse()),this.ps(e,b,f.join(","))}}),bm({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after"},function(a,b){_.fn[b]=function(c){var d=[],e=_(c),f,g,h,i=this.length===1&&this[0].parentNode;if(i&&i.nodeType===11&&i.childNodes.length===1&&e.length===1)return e[a](this[0]),this;for(f=0,h=e.length;f<h;f++)g=(f>0?this.clone(!0):this).get(),_(e[f])[a](g),d=d.concat(g);return this.ps(d,b,e.selector)}}),function(){var a=document.createElement("div");a.style.display="none",a.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var b=a.getElementsByTagName("a")[0];_.support={boxModel:null,opacity:/^0.55$/.test(b.style.opacity),cssFloat:!!b.style.cssFloat};var c=/(webkit)[ \/]([\w.]+)/,d=/(opera)(?:.*version)?[ \/]([\w.]+)/,e=/(msie) ([\w.]+)/,f=/(mozilla)(?:.*? rv:([\w.]+))?/,g=navigator.userAgent.toLowerCase(),h=c.exec(g)||d.exec(g)||e.exec(g)||g.indexOf("compatible")<0&&f.exec(g)||[],i;i=_.browser={version:h[2]||"0"},i[h[1]||""]=!0}(),_.scriptsLoaded=function(a){bD(a)&&f.push(a)},_.loadAsync=bS,!bj&&!d.querySelectorAll&&bS(b,function(){_.setQuery(c())}),_.init=!1,_.onload=function(){if(!_.init)try{_.support.boxModel=bR();var a=0;bm(g,function(b){a++,bk(b.url,function(){try{b.cb&&b.cb()}catch(c){}--a||bT()})}),_.init=!0,a||bT()}catch(b){bl(b)}},d.body&&!_.init&&setTimeout(_.onload,1),_.hook=function(a){V.push(a)},_.plug=function(a,b){var c=bB(a)?a:a.name;b=bD(a)?a:b;if(!bD(b))throw"Plugin fn required";c&&b&&(W[c]=b),b(_)},_}();$.plug("ajax",function($){function _xhr(){if(_xhrf!=null)return _xhrf();for(var a=0,b=xhrs.length;a<b;a++)try{var c=xhrs[a],d=c();if(d!=null)return _xhrf=c,d}catch(e){}return function(){}}function _xhrResp(xhr,dataType){return dataType=(dataType||xhr.getResponseHeader("Content-Type").split(";")[0]).toLowerCase(),dataType.indexOf("json")>=0?window.JSON?window.JSON.parse(xhr.responseText):eval(xhr.responseText):dataType.indexOf("script")>=0?eval(xhr.responseText):dataType.indexOf("xml")>=0?xhr.responseXML:xhr.responseText}function ajax(a,b){var c=_xhr(),d,e=0;typeof a=="object"?b=a:b.url=a,b=$._defaults(b,{userAgent:"XMLHttpRequest",lang:"en",type:"GET",data:null,contentType:"application/x-www-form-urlencoded",dataType:null,processData:!0,headers:{"X-Requested-With":"XMLHttpRequest"}}),b.timeout&&(d=setTimeout(function(){c.abort(),b.timeoutFn&&b.timeoutFn(b.url)},b.timeout));var f=$(b.context||document),g=f;c.onreadystatechange=function(){if(c.readyState==4){d&&clearTimeout(d);if(c.status<300){var a=_xhrResp(c,b.dataType);b.success&&b.success(a),g.trigger("ajaxSuccess",[c,a,b])}else b.error&&b.error(c,c.status,c.statusText),g.trigger(f,"ajaxError",[c,c.statusText,b]);b.complete&&b.complete(c,c.statusText),g.trigger(f,"ajaxComplete",[c,b])}else b.progress&&b.progress(++e)};var a=b.url,h=null,i=b["type"]=="POST"||b["type"]=="PUT";b.data&&b.processData&&typeof b["data"]=="object"&&(h=$.formData(b.data)),!i&&h&&(a+="?"+h),c.open(b.type,a);try{for(var j in b.headers)c.setRequestHeader(j,b.headers[j])}catch(k){console.log(k)}i&&c.setRequestHeader("Content-Type",b.contentType),c.send(h)}var xhrs=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new ActiveXObject("MSXML2.XMLHTTP.3.0")},function(){return new ActiveXObject("MSXML2.XMLHTTP")}],_xhrf=null;$.xhr=_xhr,$._xhrResp=_xhrResp,$.formData=function(a){var b=[],c=/%20/g;for(var d in a)b.push(encodeURIComponent(d).replace(c,"+")+"="+encodeURIComponent(a[d].toString()).replace(c,"+"));return b.join("&")},$.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){$.fn[b]=function(a){return this.bind(b,a)}}),$.ajax=ajax,$.getJSON=function(a,b,c,d){$.isFunction(b)&&(d=c,c=b,b=null),ajax({url:a,data:b,success:c,dataType:"json"})},$.get=function(a,b,c,d){$.isFunction(b)&&(d=c,c=b,b=null),ajax({url:a,type:"GET",data:b,success:c,dataType:d||"text/plain"})},$.post=function(a,b,c,d){$.isFunction(b)&&(d=c,c=b,b=null),ajax({url:a,type:"POST",data:b,success:c,dataType:d||"text/plain"})},$.getScript=function(a,b){return $.get(a,undefined,b,"script")},window.JSON||$.loadAsync("http://ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js")});$.plug("css",function(a){function r(b,c,d){var e=c==="width"?b.offsetWidth:b.offsetHeight,f=c==="width"?l:m;return e>0?(d!=="border"&&a.each(f,function(){d||(e-=parseFloat(t(b,"padding"+this))||0),d==="margin"?e+=parseFloat(t(b,d+this))||0:e-=parseFloat(t(b,"border"+this+"Width"))||0}),e+"px"):""}function s(b,c,d,e){if(!b||b.nodeType===3||b.nodeType===8||!b.style)return;var f,g=v(c),h=b.style,i=a.cssHooks[g];c=a.cssProps[g]||g;if(d===undefined)return i&&"get"in i&&(f=i.get(b,!1,e))!==undefined?f:h[c];if(typeof d=="number"&&isNaN(d)||d==null)return;typeof d=="number"&&!a.cssNumber[g]&&(d+="px");if(!i||!("set"in i)||(d=i.set(b,d))!==undefined)try{h[c]=d}catch(j){}}function t(b,c,d){var e,f=v(c),g=a.cssHooks[f];c=a.cssProps[f]||f;if(g&&"get"in g&&(e=g.get(b,!0,d))!==undefined)return e;if(n)return n(b,c,f)}function u(a,b,c){var d={},e;for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}function v(a){return a.replace(f,q)}function w(b,c,d,e,f,g){var h=b.length;if(typeof c=="object"){for(var i in c)w(b,i,c[i],e,f,d);return b}if(d!==undefined){e=!g&&e&&a.isFunction(d);for(var j=0;j<h;j++)f(b[j],c,e?d.call(b[j],j,f(b[j],c)):d,g);return b}return h?f(b[0],c):undefined}function F(b){return a.isWindow(b)?b:b.nodeType===9?b.defaultView||b.parentWindow:!1}var b=document,c=b.documentElement,d=/alpha\([^)]*\)/i,e=/opacity=([^)]*)/,f=/-([a-z])/ig,g=/([A-Z])/g,h=/^-?\d+(?:px)?$/i,i=/^-?\d/,j=/^(?:body|html)$/i,k={position:"absolute",visibility:"hidden",display:"block"},l=["Left","Right"],m=["Top","Bottom"],n,o,p,q=function(a,b){return b.toUpperCase()};a.cssHooks={opacity:{get:function(a,b){if(!b)return a.style.opacity;var c=n(a,"opacity","opacity");return c===""?"1":c}}},a._each(["height","width"],function(b){a.cssHooks[b]={get:function(a,c,d){var e;if(c)return a.offsetWidth!==0?r(a,b,d):(u(a,k,function(){e=r(a,b,d)}),e)},set:function(a,b){if(!h.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),a.support.opacity||(a.support.opacity={get:function(a,b){return e.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(b,c){var e=b.style;e.zoom=1;var f=a.isNaN(c)?"":"alpha(opacity="+c*100+")",g=e.filter||"";e.filter=d.test(g)?g.replace(d,f):e.filter+" "+f}}),b.defaultView&&b.defaultView.getComputedStyle&&(o=function(b,c,d){var e,f,h;d=d.replace(g,"-$1").toLowerCase();if(!(f=b.ownerDocument.defaultView))return undefined;if(h=f.getComputedStyle(b,null))e=h.getPropertyValue(d),e===""&&!a.contains(b.ownerDocument.documentElement,b)&&(e=a.style(b,d));return e}),b.documentElement.currentStyle&&(p=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;return!h.test(d)&&i.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e)),d===""?"auto":d}),n=o||p,a.fn.css=function(a,b){return arguments.length===2&&b===undefined?this:w(this,a,b,!0,function(a,b,c){return c!==undefined?s(a,b,c):t(a,b)})},a.cssNumber={zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},a.cssProps={"float":a.support.cssFloat?"cssFloat":"styleFloat"},a.style=s,a.css=t,a.swap=u,a.camelCase=v;var x,y,z,A,B,C,D=function(){if(x)return;var c=b.body,d=b.createElement("div"),e,f,g,h,i=parseFloat(t(c,"marginTop"))||0,j="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.extend(d.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),d.innerHTML=j,c.insertBefore(d,c.firstChild),e=d.firstChild,f=e.firstChild,h=e.nextSibling.firstChild.firstChild,B=f.offsetTop!==5,C=h.offsetTop===5,f.style.position="fixed",f.style.top="20px",A=f.offsetTop===20||f.offsetTop===15,f.style.position=f.style.top="",e.style.overflow="hidden",e.style.position="relative",z=f.offsetTop===-5,y=c.offsetTop!==i,c.removeChild(d),x=!0},E=function(a){var b=a.offsetTop,c=a.offsetLeft;return D(),y&&(b+=parseFloat(t(a,"marginTop"))||0,c+=parseFloat(t(a,"marginLeft"))||0),{top:b,left:c}};a.fn.offset=function(){var d=this[0],e;if(!d||!d.ownerDocument)return null;if(d===d.ownerDocument.body)return E(d);try{e=d.getBoundingClientRect()}catch(f){}if(!e||!a.contains(c,d))return e?{top:e.top,left:e.left}:{top:0,left:0};var g=b.body,h=F(b),i=c.clientTop||g.clientTop||0,j=c.clientLeft||g.clientLeft||0,k=h.pageYOffset||a.support.boxModel&&c.scrollTop||g.scrollTop,l=h.pageXOffset||a.support.boxModel&&c.scrollLeft||g.scrollLeft,m=e.top+k-i,n=e.left+l-j;return{top:m,left:n}},a.fn.position=function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=j.test(b[0].nodeName)?{top:0,left:0}:b.offset();return c.top-=parseFloat(t(a,"marginTop"))||0,c.left-=parseFloat(t(a,"marginLeft"))||0,d.top+=parseFloat(t(b[0],"borderTopWidth"))||0,d.left+=parseFloat(t(b[0],"borderLeftWidth"))||0,{top:c.top-d.top,left:c.left-d.left}},a.fn.offsetParent=function(){return this.map(function(){var a=this.offsetParent||b.body;while(a&&!j.test(a.nodeName)&&t(a,"position")==="static")a=a.offsetParent;return a})},a._each(["Height","Width"],function(b,c){var d=b.toLowerCase();a.fn["inner"+b]=function(){var a=this[0];return a&&a.style?parseFloat(t(a,d,"padding")):null},a.fn["outer"+b]=function(a){var b=this[0];return b&&b.style?parseFloat(t(b,d,a?"margin":"border")):null},a.fn[d]=function(c){var e=this[0];if(!e)return c==null?null:this;if(a.isFunction(c))return this.each(function(b){var e=a(this);e[d](c.call(this,b,e[d]()))});if(a.isWindow(e)){var f=e.document.documentElement["client"+b],g=e.document.body;return e.document.compatMode==="CSS1Compat"&&f||g&&g["client"+b]||f}if(e.nodeType===9)return Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]);if(c===undefined){var h=t(e,d),i=parseFloat(h);return a.isNaN(i)?h:i}return this.css(d,typeof c=="string"?c:c+"px")}}),a._each(["Left","Top"],function(b,c){var d="scroll"+b;a.fn[d]=function(b){var e,f;return b===undefined?(e=this[0],e?(f=F(e),f?"pageXOffset"in f?f[c?"pageYOffset":"pageXOffset"]:a.support.boxModel&&f.document.documentElement[d]||f.document.body[d]:e[d]):null):this.each(function(){f=F(this),f?f.scrollTo(c?a(f).scrollLeft():b,c?b:a(f).scrollTop()):this[d]=b})}})});$.plug("custom",function(a){var b=window,c=document,d={},e=b.location.search.substring(1).split("&");for(var f=0;f<e.length;f++){var g=e[f].split("=");d[g[0]]=unescape(g[1])}a.queryString=function(a){return d[a]};var h=a.Key=function(a){this.keyCode=a};h.namedKeys={Backspace:8,Tab:9,Enter:13,Shift:16,Ctrl:17,Alt:18,Pause:19,Capslock:20,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,LeftArrow:37,UpArrow:38,RightArrow:39,DownArrow:40,Insert:45,Delete:46},a._each(h.namedKeys,function(a,b){var c=a;h.prototype["is"+b]=function(){return this.keyCode===c}}),a.key=function(a){return a=a||window.event,new h(a.keyCode||a.which)},a.cancelEvent=function(a){return a||(a=window.event),a.cancelBubble=!0,a.returnValue=!1,a.stopPropagation&&(a.stopPropagation(),a.preventDefault()),!1},a.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},a._template=function(b,c){var d=a.templateSettings,e="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+b.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(d.escape,function(a,b){return"',_.escape("+b.replace(/\\'/g,"'")+"),'"}).replace(d.interpolate,function(a,b){return"',"+b.replace(/\\'/g,"'")+",'"}).replace(d.evaluate||null,function(a,b){return"');"+b.replace(/\\'/g,"'").replace(/[\r\n\t]/g," ")+";__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');",f=new Function("obj","$",e);return c?f(c,a):function(b){return f(b,a)}}});$.plug("docready",function(a){function i(){if(g)return;try{c.documentElement.doScroll("left")}catch(a){setTimeout(i,1);return}j()}function j(b){b===!0&&h--;if(!h||b!==!0&&!g){if(!c.body)return setTimeout(i,1);g=!0;if(b!==!0&&--h>0)return;if(f){var d,e=0,i=f;f=null;while(d=i[e++])d.call(c,a);a.fn.trigger&&a(c).trigger("ready").unbind("ready")}}}var b=window,c=document,d,e,f=[],g=!1,h=1;a.hook(function(a,b){if(typeof a=="function")return this.ready(a),!0}),a.ready=j,d=c.addEventListener?function(){c.removeEventListener("DOMContentLoaded",d,!1),j()}:function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",d),j())},a.bindReady=function(){if(e)return;e=!0;if(c.readyState==="complete")return setTimeout(j,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",d,!1),b.addEventListener("load",j,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",d),b.attachEvent("onload",j);var a=!1;try{a=window.frameElement==null}catch(f){}c.documentElement.doScroll&&a&&i()}},a.fn.ready=function(b){return a.bindReady(),g?b.call(c,a):f&&f.push(b),this},a.init||a(document).ready(a.onload)});$.plug("events",function(a){function e(a){return a._jquid||(a._jquid=d++)}function f(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):(a["e"+b+c]=c,a[b+c]=function(){a["e"+b+c](window.event)},a.attachEvent("on"+b,a[b+c]))}function g(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):(a.detachEvent("on"+b,a[b+c]),a[b+c]=null)}function h(a){var b=(""+a).split(".");return{e:b[0],ns:b.slice(1).sort().join(" ")}}function i(a){return new RegExp("(?:^| )"+a.replace(" "," .* ?")+"(?: |$)")}function j(b,d,f,g){d=h(d);if(d.ns)var j=i(d.ns);return a._filter(c[e(b)]||[],function(a){return a&&(!d.e||a.e==d.e)&&(!d.ns||j.test(a.ns))&&(!f||a.fn==f)&&(!g||a.sel==g)})}function k(b,d,g,i,j){var k=e(b),l=c[k]||(c[k]=[]);a._each(d.split(/\s/),function(c){var d=a.extend(h(c),{fn:g,sel:i,del:j,i:l.length});l.push(d),f(b,d.e,j||g)}),b=null}function l(b,d,f,h){var i=e(b);a._each((d||"").split(/\s/),function(d){a._each(j(b,d,f,h),function(a){delete c[i][a.i],g(b,a.e,a.del||a.fn)})})}function n(b){var c=a.extend({originalEvent:b},b);return a._each(m,function(a){c[a]=function(){return b[a].apply(b,arguments)}}),c}var b=document,c={},d=1;a.bind=f,a.unbind=g;var m=["preventDefault","stopImmediatePropagation","stopPropagation"],o=a.fn;a._each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a){o[a]=function(b,c){return arguments.length>0?this.bind(a,b,c):this.trigger(a)}}),o.bind=function(a,b){return this.each(function(){k(this,a,b)})},o.unbind=function(a,b){return this.each(function(){l(this,a,b)})},o.one=function(a,b){return this.each(function(){var c=this;k(this,a,function(){b(),l(c,a,arguments.callee)})})},o.delegate=function(b,c,d){return this.each(function(e,f){k(f,c,d,b,function(c){var e=c.target,g=a.$$(b,f);while(e&&g.indexOf(e)<0)e=e.parentNode;e&&e!==f&&e!==document&&d.call(e,a.extend(n(c||window.event),{currentTarget:e,liveFired:f}))})})},o.undelegate=function(a,b,c){return this.each(function(){l(this,b,c,a)})},o.live=function(c,d){return a(b.body).delegate(this.selector,c,d),this},o.die=function(c,d){return a(b.body).undelegate(this.selector,c,d),this},o.trigger=function(a){return this.each(function(){if(!(a!="click"&&a!="blur"&&a!="focus"||!this[a]))return this[a]();if(b.createEvent){var c=b.createEvent("Events");this.dispatchEvent(c,c.initEvent(a,!0,!0))}else if(this.fireEvent)try{a!=="ready"&&this.fireEvent("on"+a)}catch(c){}})},a.init||a(window).bind("load",a.onload)});
View
7 src/jquip.ajax.js
@@ -44,7 +44,7 @@ $['plug']("ajax", function ($) {
var xhr = _xhr(), timer, n = 0;
if (typeof url === "object") o = url;
else o['url'] = url;
- o = $['_defaults'](o, { 'userAgent': "XMLHttpRequest", 'lang': "en", 'type': "GET", 'data': null, 'contentType': "application/x-www-form-urlencoded", 'dataType': null, 'processData': true });
+ o = $['_defaults'](o, { 'userAgent': "XMLHttpRequest", 'lang': "en", 'type': "GET", 'data': null, 'contentType': "application/x-www-form-urlencoded", 'dataType': null, 'processData': true, 'headers': {"X-Requested-With": "XMLHttpRequest" }});
if (o.timeout) timer = setTimeout(function () { xhr.abort(); if (o.timeoutFn) o.timeoutFn(o.url); }, o.timeout);
var cbCtx = $(o['context'] || document), evtCtx = cbCtx;
xhr.onreadystatechange = function() {
@@ -75,6 +75,11 @@ $['plug']("ajax", function ($) {
if (!isPost && data) url += "?" + data;
xhr.open(o['type'], url);
+ try {
+ for (var i in o.headers)
+ xhr.setRequestHeader(i, o.headers[i]);
+ } catch(_) { console.log(_) }
+
if (isPost)
xhr.setRequestHeader("Content-Type", o['contentType']);
Please sign in to comment.
Something went wrong with that request. Please try again.