Permalink
Browse files

Fix cat'd minification bug and closure compiler issues.

Closure Compiler should be safed to use now.
  • Loading branch information...
1 parent edfaad1 commit c4d73e95d8042ca836c593a399ec63f78939df3a @mythz committed Dec 4, 2011
Showing with 1,416 additions and 117 deletions.
  1. +4 −4 build/build.js
  2. +60 −0 demo.min.htm
  3. +64 −64 dist/jquip.all.closure-advanced.js
  4. +11 −11 dist/jquip.all.js
  5. +1 −1 dist/jquip.all.min.js
  6. +1,270 −31 src/.wip.js
  7. +5 −5 src/jquip.css.js
  8. +1 −1 src/jquip.js
View
8 build/build.js
@@ -32,17 +32,17 @@ files.forEach(function(file) {
var topFile = 'jquip.js';
//write /dist/jquip.all.js
-var allJs = allJsMap[topFile];
+var allJs = allJsMap[topFile] + ";";
for (var file in allJsMap) {
if (file == topFile) continue;
- allJs += allJsMap[file];
+ allJs += allJsMap[file] + ";";
}
fs.writeFileSync(targetDir + '/jquip.all.js', allJs);
//write /dist/jquip.all.min.js
-var allMinJs = allMinJsMap[topFile];
+var allMinJs = allMinJsMap[topFile] + ";";
for (var file in allMinJsMap) {
if (file == topFile) continue;
- allMinJs += allMinJsMap[file];
+ allMinJs += allMinJsMap[file] + ";";
}
fs.writeFileSync(targetDir + '/jquip.all.min.js', allMinJs);
View
60 demo.min.htm
@@ -0,0 +1,60 @@
+<!doctype html>
+<html lang="en-us">
+<head>
+ <title>jquip - jQuery-in-parts</title>
+ <script type="text/javascript" src="dist/jquip.all.min.js"></script>
+ <!--script type="text/javascript" src="dist/jquip.events.min.js"></script>
+ <script type="text/javascript" src="dist/jquip.docready.min.js"></script>
+ <script type="text/javascript" src="dist/jquip.css.min.js"></script>
+ <script type="text/javascript" src="dist/jquip.ajax.min.js"></script>
+ <script type="text/javascript" src="dist/jquip.custom.min.js"></script-->
+ <script type="text/javascript">
+ $(function() {
+ $(document.body)
+ .css({'font-family':'Arial'})
+ .append("<p>This message added on document ready</p>");
+
+ $(".attrs button").click(function () {
+ var $dl = $(this).next();
+ $.each($(this).parent().data(), function (name, val) {
+ $dl.append("<dt>" + name + "</dt>").append("<dd>" + val + "</dd>");
+ });
+ });
+
+ var compiledTpl = $._template($("#tpl").html()), $win = $(window);
+ var updateTpl = function(){
+ var html = compiledTpl({width: $win.width(), height: $win.height()});
+ $("#winsize").html(html);
+ };
+
+ $win.resize(updateTpl);
+
+ function rgb() {
+ return Math.floor(Math.random() * 255);
+ }
+
+ $("body > button").click(function(){
+ $(document.body).css({background:"rgb(" + rgb() + "," + rgb() + "," + rgb() + ")"});
+ });
+
+ updateTpl();
+ });
+ </script>
+</head>
+<body>
+ <script id="tpl" type="text/tpl">
+ <p>The Size of this window is <%= width %>x<%= height %> (uses $.template - resize to update).</p>
+ </script>
+
+ <h2>Simple Demo</h2>
+
+ <div id="winsize"></div>
+ <button>Change Background</button>
+
+ <div class="attrs" data-one="uno" data-two="due" data-three="tre">
+ <button>Print Data Attributes</button>
+ <dl></dl>
+ </div>
+
+</body>
+</html>
View
128 dist/jquip.all.closure-advanced.js
@@ -1,65 +1,65 @@
-var p=void 0,u=!0,w=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 C(a,d){for(var e,i=0,Aa=W.length;i<Aa;i++)if(W[i].apply(this,arguments))return this;if(!a)return this;if(D(a))return fa?a():X.push(a),this;if(f(a))return this.make(a);if(a.nodeType||q(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!==p)return this.context=a.context,
-this.selector=a.selector,this.make(a);a=E(a)&&"<"===a.charAt(0)?(e=Ba.exec(a))?(a=[y.createElement(e[1])])&&h(d)?c.fn.attr.call(a,d)&&a:a:Y(a).childNodes:n(a,d);return this.make(a)}function c(a,d){return new C(a,d)}function A(a,d,e){d=d||0;if(D(d))return F(a,function(a,i){return!!d.call(a,i,a)===e});if(d.nodeType)return F(a,function(a){return a===d===e});if(E(d)){var i=":"==d.charAt(0)&&c.Expr[d.substring(1)];return F(a,function(a){return i?i(a):a.parentNode&&0<=G(n(d,a.parentNode),a)})}return F(a,
-function(a){return 0<=G(d,a)===e})}function j(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 s(a){if(!Z[a]){var d=c("<"+a+">").appendTo(y.body),e=c.css&&c.css(d[0],"d")||d.style.display;d.remove();Z[a]=e}return Z[a]}function g(a,d){for(var d=" "+d+" ",e=0,i=a.length;e<i;e++)if(m(a[e],d))return u;return z}function m(a,d){return 1===a.nodeType&&-1<(" "+a.className+" ").replace(ga," ").indexOf(d)}
-function t(a,d,e){d=d||y;e=e||[];1==d.nodeType&&a(d)&&e.push(d);for(var d=d.childNodes,i=0,f=d.length;i<f;i++){var b=d[i];1==b.nodeType&&t(a,b,e)}return e}function n(a,d,e){if(a&&E(a)){d instanceof c&&(d=d[0]);var d=d||y,e=e||c.query,i=a.charAt(0),f=a.substring(1),b=Ca.test(f),h;try{return b?H.call(e(a,d)):b?H.call(e(a,d)):"#"==i?(h=y.getElementById(f))?[h]:ha:M("."==i?d.getElementsByClassName?d.getElementsByClassName(f):e(a,d):d.getElementsByTagName(a))}catch(q){J(q)}}return 1==a.nodeType||9==a.nodeType?
-[a]:ha}function B(a,d,e){var i=y.head||y.getElementsByTagName("head")[0]||aa,f=y.createElement("script"),b;if(e)f.async="async";f.onreadystatechange=function(){if(!(b=f.readyState)||"loaded"==b||"complete"==b)f.onload=f.onreadystatechange=w,i&&f.parentNode&&i.removeChild(f),f=p,d&&d()};f.onload=d;f.src=a;i.insertBefore(f,i.firstChild)}function J(a){N.console&&N.console.warn(arguments)}function x(a,d,e){if(a!=w)if(ia&&a.forEach===ia)a.forEach(d,e);else if(a.length===+a.length)for(var i=0,f=a.length;i<
-f&&!(i in a&&d.call(e,a[i],i,a)===ja);i++);else for(i in a)if(T.call(a,i)&&d.call(e,a[i],i,a)===ja)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]:p):w}function v(a,d){var e=[],i,f,b,c;for(i=0,f=ba.length;i<f&&!(c=ba[i].exec(a));i++);if(i<ba.length)for(f=0;b=d[f];f++)(0==i&&c[1]==b.id||1==i&&c[1]==b.tagName||2==i&&m(b,c[1])||3==i&&c[2]==k(b,c[1]))&&e.push(b);else J(a+" not supported");return e}function G(a,d){if(a==w)return-1;
-var e,i;if(ka&&a.indexOf===ka)return a.indexOf(d);for(e=0,i=a.length;e<i;e++)if(a[e]===d)return e;return-1}function I(a,d,e){for(var i=[],a=a[d];a&&9!==a.nodeType&&(e===p||1!==a.nodeType||!c(a).U(e));)1===a.nodeType&&i.push(a),a=a[d];return i}function O(a,d,e){for(var d=d||1,i=0;a&&!(1===a.nodeType&&++i===d);a=a[e]);return a}function R(a,d){for(var e=[];a;a=a.nextSibling)1===a.nodeType&&a!==d&&e.push(a);return e}function F(a,d,e){for(var i=[],f,e=!!e,b=0,c=a.length;b<c;b++)f=!!d(a[b],b),e!==f&&i.push(a[b]);
-return i}function P(a,d,e){var i,b,h=[],q=0,o=a.length;if(a instanceof c||"number"==typeof o&&(0<o&&a[0]&&a[o-1]||0===o||f(a)))for(;q<o;q++)i=d(a[q],q,e),i!=w&&(h[h.length]=i);else for(b in a)i=d(a[b],b,e),i!=w&&(h[h.length]=i);return h.concat.apply([],h)}function L(a,d,e){if(!a)return{};if(d&&e)return a.setAttribute(d,e),w;var i={};x(S(a),function(a,d){0===d.indexOf("data-")&&a&&(i[d.substr(5)]=a)});return E(d)?i[d]:i}function S(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 K(a){return a==w?""+a:la[Da.call(a)]||"object"}function E(a){return"string"==typeof a}function D(a){return"function"==typeof a||"function"===K(a)}function f(a){return"array"===K(a)}function q(a){return a&&"object"==typeof a&&"setInterval"in a}function h(a){if(!a||"object"!==K(a)||a.nodeType||q(a))return z;try{if(a.constructor&&!T.call(a,"constructor")&&!T.call(a.constructor.prototype,"isPrototypeOf"))return z}catch(d){return z}for(var e in a);return e===p||T.call(a,
-e)}function o(a,d){var e=a.length,i=0;if("number"==typeof d.length)for(var f=d.length;i<f;i++)a[e++]=d[i];else for(;d[i]!==p;)a[e++]=d[i++];a.length=e;return a}function ma(){var a,d,e,i,b,c=arguments,q=c[0]||{},o=1,g=c.length,k=z;"boolean"==typeof q&&(k=q,q=c[1]||{},o=2);"object"!=typeof q&&!D(q)&&(q={});g===o&&(q=this,--o);for(;o<g;o++)if((a=c[o])!=w)for(d in a)e=q[d],i=a[d],q!==i&&(k&&i&&(h(i)||(b=f(i)))?(b?(b=z,e=e&&f(e)?e:[]):e=e&&h(e)?e:{},q[d]=ma(k,e,i)):i!==p&&(q[d]=i));return q}function M(a,
-d){var e=d||[];if(a!=w){var i=K(a);a.length==w||"string"==i||"function"==i||"regexp"===i||q(a)?na.call(e,a):o(e,a)}return e}function Y(a,d,e){d=d||y||d.ownerDocument||d[0]&&d[0].ownerDocument||y;e=e||d.createDocumentFragment();if(!E(a)&&"number"==typeof a.length){var i=e,f=[],b,c;for(b=0;(c=a[b])!=w;b++)E(c)&&(c=oa(c,d)),c.nodeType?f.push(c):f=o(f,c);if(i)for(b=0;b<f.length;b++)f[b].nodeType&&i.appendChild(f[b]);return f&&e}for(a=oa(a);a.firstChild;)e.appendChild(a.firstChild);return e}function oa(a,
-d){var e=(d||y).createElement("div"),i=(Ea.exec(a)||["",""])[1].toLowerCase(),i=pa[i]||pa.i,f=i[0];for(e.innerHTML=i[1]+a+i[2];f--;)e=e.lastChild;return e}function U(a){if(ca&&(V=Fa,a.sort(ca),V))for(var d=1;d<a.length;d++)a[d]===a[d-1]&&a.splice(d--,1);return a}function Ga(){if(!y.body)return w;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 qa(a,d){ra.push({url:a,g:d})}function sa(){x(X,
-function(a){a()});fa=u}var N=window,y=document,aa=y.documentElement,X=[],ra=[],fa,Ha=/Until$/,Ia=/,/,Ja=/^(?:parents|prevUntil|prevAll)/,Ea=/<([\w:]+)/,ga=/[\n\t\r]/g,ta=/\s+/,Ka=/\d/,La=/\r\n/g,Ba=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ua=/\r?\n/g,Ma=/^(?:select|textarea)/i,Na=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,va=String.prototype.trim,da,wa=/^\s+/,xa=/\s+$/,ea,ca,Oa={children:u,T:u,next:u,Z:u},Da=Object.prototype.toString,la=
-{},V=z,Fa=u,pa={X:[1,"<select multiple='multiple'>","</select>"],V:[1,"<fieldset>","</fieldset>"],ca:[1,"<table>","</table>"],da:[2,"<table><tbody>","</tbody></table>"],ba:[3,"<table><tbody><tr>","</tr></tbody></table>"],S:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],P:[1,"<map>","</map>"],i:[0,"",""]},Ca=/[,\s.#\[>+]/,ha=[],ja={},r=Array.prototype,T=Object.prototype.hasOwnProperty,H=r.slice,na=r.push,ya=r.indexOf,ia=r.forEach,za=r.filter,ka=r.indexOf;/\S/.test("\u00a0")&&(wa=/^[\s\xA0]+/,
-xa=/[\s\xA0]+$/);var W=[],Pa=0,Q={O:0},Z={},r=C.prototype=c.prototype=c.fn={constructor:c,selector:"",length:0,d:function(a,d,e){if((d=a[0])&&this[0]){if(!(a=3===d.nodeType&&d))if(a=(a=d&&d.parentNode)&&11===a.nodeType&&a.childNodes.length===this.length?a:Y(d),d=a.firstChild,1===a.childNodes.length&&(a=d),!d)return this;for(d=0,l=this.length;d<l;d++)e.call(this[d],a)}return this},a:function(a,d,e){var i=this.constructor();f(a)?na.apply(i,a):o(i,a);i.aa=this;i.j=this.j;if("find"===d)i.q=this.selector+
-(this.selector?" ":"")+e;else if(d)i.q=this.selector+"."+d+"("+e+")";return i}};r.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};r.toArray=function(){return H.call(this,0)};r.get=function(a){return a==w?this.toArray():0>a?this[this.length+a]:this[a]};r.add=function(a,d){var e="string"==typeof a?c(a,d):M(a&&a.nodeType?[a]:a),i=o(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:U(i))};r.each=function(a){if(!D(a))return this;for(var d=0,e=this.length;d<e;d++)a.call(this[d],d,this[d]);return this};r.attr=function(a,d){var e=this[0];return E(a)&&d===p?k(e,a):this.each(function(e){var f=this.nodeType;if(3!==f&&8!==f&&2!==f)if("object"==typeof a)for(var b in a)d===w?this.removeAttribute(a):this.setAttribute(b,a[b]);else this.setAttribute(a,D(d)?d.call(this,e,this.getAttribute(a)):d)})};r.removeAttr=function(a){return this.each(function(){this.removeAttribute(a)})};
-r.data=function(a,d){return L(this[0],a,d)};r.append=function(){return this.d(arguments,u,function(a){1===this.nodeType&&this.appendChild(a)})};r.prepend=function(){return this.d(arguments,u,function(a){1===this.nodeType&&this.insertBefore(a,this.firstChild)})};r.before=function(){return this.d(arguments,z,function(a){this.parentNode.insertBefore(a,this)})};r.after=function(){return this[0]&&this[0].parentNode?this.d(arguments,z,function(a){this.parentNode.insertBefore(a,this.nextSibling)}):this};
-r.hide=function(){return this.each(function(){j(this,this.style.display);this.style.display="none"})};r.show=function(){return this.each(function(){this.style.display=j(this)||s(this.tagName)})};r.toggle=function(){return this.each(function(){this.style.display=c.Expr.hidden(this)?j(this)||s(this.tagName):(j(this,this.style.display),"none")})};r.eq=function(a){return-1===a?this.slice(a):this.slice(a,+a+1)};r.first=function(){return this.eq(0)};r.last=function(){return this.eq(-1)};r.slice=function(){return this.a(H.apply(this,
-arguments),"slice",H.call(arguments).join(","))};r.map=function(a){return this.a(P(this,function(d,e){return a.call(d,e,d)}))};r.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(ea(d[e],this))return u});var f=this.a("","find",a),b,q,h;for(e=0,i=this.length;e<i;e++)if(b=f.length,o(f,c(a,this[e])),0==e)for(q=b;q<f.length;q++)for(h=0;h<b;h++)if(f[h]===f[q]){f.splice(q--,1);break}return f};r.not=function(a){return this.a(A(this,a,z),"not",a)};r.filter=
-function(a){return this.a(A(this,a,u),"filter",a)};r.indexOf=function(a){return G(this,a)};r.is=function(a){return 0<this.length&&0<c(this[0]).filter(a).length};r.remove=function(){for(var a=0,d;(d=this[a])!=w;a++)d.parentNode&&d.parentNode.removeChild(d);return this};r.closest=function(a,d){var e=[],f;for(f=0,l=this.length;f<l;f++)for(cur=this[f];cur;)if(0<v(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?U(e):
-e;return this.a(e,"closest",a)};r.val=function(a){return a==w?this[0]&&this[0].value||"":this.each(function(){this.value=a})};r.html=function(a){return a==w?this[0]&&this[0].innerHTML||"":this.each(function(){this.innerHTML=a})};r.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(La,""):3===e||4===e?d.nodeValue:w:w:this.empty().append((d&&d.ownerDocument||y).createTextNode(a))};r.empty=function(){for(var a=
-0,d;(d=this[a])!=w;a++)for(;d.firstChild;)d.removeChild(d.firstChild);return this};r.addClass=function(a){var d,e,f,b,q,h,o;if(D(a))return this.each(function(d){c(this).addClass(a.call(this,d,this.className))});if(a&&E(a)){d=a.split(ta);for(e=0,f=this.length;e<f;e++)if((b=this[e])&&1===b.nodeType)if(!b.className&&1===d.length)b.className=a;else{q=" "+b.className+" ";for(h=0,o=d.length;h<o;h++)~q.indexOf(" "+d[h]+" ")||(q+=d[h]+" ");b.className=da(q)}}return this};r.removeClass=function(a){var d,e,
-f,b,q,h,o;if(D(a))return this.each(function(d){c(this).removeClass(a.call(this,d,this.className))});if(a&&E(a)||a===p){d=(a||"").split(ta);for(e=0,f=this.length;e<f;e++)if(b=this[e],1===b.nodeType&&b.className)if(a){q=(" "+b.className+" ").replace(ga," ");for(h=0,o=d.length;h<o;h++)q=q.replace(" "+d[h]+" "," ");b.className=da(q)}else b.className=""}return this};r.hasClass=function(a){return g(this,a)};r.fadeIn=function(){this.each(function(){c(this).show()})};r.fadeOut=function(){this.each(function(){c(this).hide()})};
-r.serializeArray=function(){return this.map(function(){return this.elements?M(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Ma.test(this.nodeName)||Na.test(this.type))}).map(function(a,d){var e=c(this).val();return e==w||f(e)?P(e,function(a){return{name:d.name,value:a.replace(ua,"\r\n")}}):{name:d.name,value:e.replace(ua,"\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=g;c.walk=t;c.$$=n;c.setQuery=function(a){c.query=function(d,e){return n(d,e,a||function(a,d){return d.querySelectorAll(a)})}};r=N.Sizzle||N.qwery;c.setQuery(r||function(a,d){return y.querySelectorAll?M((d||y).querySelectorAll(a)):[]});c.loadScript=B;c.each=function(a,d,e){var f,b=0,c=a.length,q=c===p||D(a);if(e)if(q)for(f in a){if(d.apply(a[f],e)===z)break}else for(;b<c&&!(d.apply(a[b++],e)===z););else if(q)for(f in a){if(d.call(a[f],f,a[f])===
-z)break}else for(;b<c&&!(d.call(a[b],b,a[b++])===z););return a};c._each=x;var ba=[/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/];c.filter=v;c._indexOf=G;c._defaults=function(a){x(H.call(arguments,1),function(d){for(var e in d)a[e]==w&&(a[e]=d[e])});return a};c._filter=function(a,d,e){var f=[];if(a==w)return f;if(za&&a.filter===za)return a.filter(d,
-e);x(a,function(a,b,c){d.call(e,a,b,c)&&(f[f.length]=a)});return f};c.proxy=function(a,d){if("string"==typeof d)var e=a[d],d=a,a=e;if(D(a)){var f=H.call(arguments,2),e=function(){return a.apply(d,f.concat(H.call(arguments)))};e.f=a.f=a.f||e.f||Pa++;return e}};c.dir=I;c.nth=O;c.sibling=R;c.grep=F;c.map=P;c.data=L;c.attrs=S;c.eqSI=function(a,d){return!a||!d?a==d:a.toLowerCase()===d.toLowerCase()};c.trim=da=va?function(a){return a==w?"":va.call(a)}:function(a){return a==w?"":a.toString().replace(wa,
-"").replace(xa,"")};c.indexOf=c.inArray=function(a,d){if(!d)return-1;if(ya)return ya.call(d,a);for(var e=0,f=d.length;e<f;e++)if(d[e]===a)return e;return-1};x("Boolean Number String Function Array Date RegExp Object".split(" "),function(a){la["[object "+a+"]"]=a.toLowerCase();return this});c.type=K;c.isFunction=D;c.isArray=Array.isArray||f;c.isWindow=q;c.isNaN=function(a){return a==w||!Ka.test(a)||isNaN(a)};c.merge=o;c.extend=c.fn.extend=ma;c.makeArray=M;c.htmlFrag=Y;ea=c.contains=aa.contains?function(a,
-d){return a!==d&&(a.contains?a.contains(d):u)}:function(){return z};ca=aa.compareDocumentPosition?(ea=function(a,d){return!!(a.compareDocumentPosition(d)&16)})&&function(a,d){return a===d?(V=u,0):!a.compareDocumentPosition||!d.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(d)&4?-1:1}:function(a,d){if(a===d)return V=u,0;if(a.sourceIndex&&d.sourceIndex)return a.sourceIndex-d.sourceIndex;var e,f,c=[],q=[];e=a.parentNode;f=d.parentNode;var h=e;if(e===f)return b(a,d);
-if(e){if(!f)return 1}else return-1;for(;h;)c.unshift(h),h=h.parentNode;for(h=f;h;)q.unshift(h),h=h.parentNode;e=c.length;f=q.length;for(h=0;h<e&&h<f;h++)if(c[h]!==q[h])return b(c[h],q[h]);return h===e?b(a,q[h],-1):b(c[h],d,1)};c.unique=U;x({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:w},parents:function(a){return I(a,"parentNode")},parentsUntil:function(a,d,e){return I(a,"parentNode",e)},next:function(a){return O(a,2,"nextSibling")},prev:function(a){return O(a,2,"previousSibling")},
-nextAll:function(a){return I(a,"nextSibling")},prevAll:function(a){return I(a,"previousSibling")},nextUntil:function(a,d,e){return I(a,"nextSibling",e)},prevUntil:function(a,d,e){return I(a,"previousSibling",e)},siblings:function(a){return R(a.parentNode.firstChild,a)},children:function(a){return R(a.firstChild)},contents:function(a){return"iframe"===a.nodeName?a.contentDocument||a.contentWindow["document "]:M(a.childNodes)}},function(a,d){c.fn[d]=function(e,f){var b=P(this,a,e),c=H.call(arguments);
-Ha.test(d)||(f=e);"string"==typeof f&&(b=v(f,b));b=1<this.length&&!Oa[d]?U(b):b;if((1<this.length||Ia.test(f))&&Ja.test(d))b=b.reverse();return this.a(b,d,c.join(","))}});x({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after"},function(a,d){c.fn[d]=function(e){var f=[],e=c(e),b,h;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,l=e.length;b<l;b++)h=(0<b?this.R(u):this).get(),c(e[b])[a](h),
-f=f.concat(h);return this.a(f,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={Q:w,opacity:/^0.55$/.test(a.style.opacity),cssFloat:!!a.style.cssFloat};var a=/(opera)(?:.*version)?[ \/]([\w.]+)/,d=/(msie) ([\w.]+)/,e=/(mozilla)(?:.*? rv:([\w.]+))?/,f=navigator.userAgent.toLowerCase(),a=/(webkit)[ \/]([\w.]+)/.exec(f)||
-a.exec(f)||d.exec(f)||0>f.indexOf("compatible")&&e.exec(f)||[];(c.browser={version:a[2]||"0"})[a[1]||""]=u})();c.scriptsLoaded=function(a){D(a)&&X.push(a)};c.loadAsync=qa;!r&&!y.querySelectorAll&&qa("http://cdnjs.cloudflare.com/ajax/libs/sizzle/1.4.4/sizzle.min.js",function(){c.setQuery(N.Sizzle||N.qwery)});c.init=z;c.onload=function(){if(!c.init)try{c.support.boxModel=Ga();var a=0;x(ra,function(d){a++;B(d.url,function(){try{d.g&&d.g()}catch(f){}--a||sa()})});c.init=u;a||sa()}catch(d){J(d)}};y.body&&
-!c.init&&setTimeout(c.onload,1);c.hook=function(a){W.push(a)};c.plug=function(a,d){d=D(a)?a:d;if(!D(d))throw"Plugin fn required";d(c)};return c}();
-$.plug("ajax",function(b){function C(){if(s!=w)return s();for(var b=0,c=j.length;b<c;b++)try{var t=j[b],n=t();if(n!=w)return s=t,n}catch(B){}return function(){}}function c(b,c){c=c||b.getResponseHeader("Content-Type").split(";")[0];switch(c){case "text/xml":return b.responseXML;case "json":case "text/json":case "application/json":case "text/javascript":case "application/javascript":case "application/x-javascript":return window.JSON?window.JSON.parse(b.responseText):eval(b.responseText);default:return b.responseText}}
-function A(g){var m=C(),j,n=0,g=b._defaults(g,{userAgent:"XMLHttpRequest",lang:"en",type:"GET",data:w,contentType:"application/x-www-form-urlencoded",dataType:"application/json"});g.timeout&&(j=setTimeout(function(){m.abort();g.r&&g.r(g.url)},g.timeout));var B=b(g.context||document);m.onreadystatechange=function(){if(4==m.readyState){j&&clearTimeout(j);if(300>m.status){var b=c(m,g.dataType);g.success&&g.success(b);B.trigger("ajaxSuccess",[m,b,g])}else g.error&&g.error(m,m.status,m.statusText),B.trigger(B,
-"ajaxError",[m,m.statusText,g]);g.complete&&g.complete(m,m.statusText);B.trigger(B,"ajaxComplete",[m,g])}else g.progress&&g.progress(++n)};var s=g.url,x=w,k="POST"==g.type||"PUT"==g.type;!k&&g.data&&(s+="?"+formData(g.data));m.open(g.type,s);k&&(x=(s=0<=g.dataType.indexOf("json"))?JSON.stringify(g.data):formData(g.data),m.setRequestHeader("Content-Type",s?"application/json":"application/x-www-form-urlencoded"));m.send(x)}var j=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Microsoft.XMLHTTP")},
-function(){return new ActiveXObject("MSXML2.XMLHTTP.3.0")},function(){return new ActiveXObject("MSXML2.XMLHTTP")}],s=w;b.xhr=C;b._xhrResp=c;b.formData=function(b){var c=[],j=/%20/g,n;for(n in b)c.push(encodeURIComponent(n).replace(j,"+")+"="+encodeURIComponent(b[n].toString()).replace(j,"+"));return c.join("&")};b.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,m){b.fn[m]=function(b){return this.bind(m,b)}});b.ajax=A;b.getJSON=function(c,m,j){b.isFunction(m)&&
-(j=m,m=w);A({url:c,data:m,success:j,dataType:"json"})};b.get=function(c,j,t,n){b.isFunction(j)&&(n=t,t=j,j=w);A({url:c,type:"GET",data:j,success:t,dataType:n||"text/plain"})};b.post=function(c,j,t,n){b.isFunction(j)&&(n=t,t=j,j=w);A({url:c,type:"POST",data:j,success:t,dataType:n||"text/plain"})};window.JSON||b.loadAsync("http://ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js")});
-$.plug("css",function(b){function C(f,b){return b.toUpperCase()}function c(f,c,h){var o="width"===c?f.offsetWidth:f.offsetHeight,c="width"===c?F:P;return 0<o?("border"!==h&&b.each(c,function(){h||(o-=parseFloat(j(f,"padding"+this))||0);o="margin"===h?o+(parseFloat(j(f,h+this))||0):o-(parseFloat(j(f,"border"+this+"Width"))||0)}),o+"px"):""}function A(f,c,h,o){if(f&&!(3===f.nodeType||8===f.nodeType||!f.style)){var k,j=g(c),v=f.style,m=b.cssHooks[j],c=b.cssProps[j]||j;if(h!==p){if(!("number"===typeof h&&
-isNaN(h)||h==w))if("number"===typeof h&&!b.cssNumber[j]&&(h+="px"),!m||!("set"in m)||(h=m.set(f,h))!==p)try{v[c]=h}catch(n){}}else return m&&"get"in m&&(k=m.get(f,z,o))!==p?k:v[c]}}function j(f,c,h){var o,k=g(c),j=b.cssHooks[k],c=b.cssProps[k]||k;if(j&&"get"in j&&(o=j.get(f,u,h))!==p)return o;if(L)return L(f,c,k)}function s(f,b,c){var o={},k;for(k in b)o[k]=f.style[k],f.style[k]=b[k];c.call(f);for(k in b)f.style[k]=o[k]}function g(b){return b.replace(k,C)}function m(f,c,h,o,k,j){var g=f.length;if("object"===
-typeof c){for(var v in c)m(f,v,c[v],o,k,h);return f}if(h!==p){o=!j&&o&&b.isFunction(h);for(v=0;v<g;v++)k(f[v],c,o?h.call(f[v],v,k(f[v],c)):h,j);return f}return g?k(f[0],c):p}function t(f){return b.isWindow(f)?f:9===f.nodeType?f.defaultView||f.parentWindow:z}var n=document,B=n.documentElement,J=/alpha\([^)]*\)/i,x=/opacity=([^)]*)/,k=/-([a-z])/ig,v=/([A-Z])/g,G=/^-?\d+(?:px)?$/i,I=/^-?\d/,O=/^(?:body|html)$/i,R={position:"absolute",visibility:"hidden",display:"block"},F=["Left","Right"],P=["Top","Bottom"],
-L,S,K;b.cssHooks={opacity:{get:function(b,c){if(!c)return b.style.opacity;var h=L(b,"opacity","opacity");return""===h?"1":h}}};b._each(["height","width"],function(f){b.cssHooks[f]={get:function(b,h,o){var k;if(h){if(0!==b.offsetWidth)return c(b,f,o);s(b,R,function(){k=c(b,f,o)});return k}},set:function(b,f){if(G.test(f)){if(f=parseFloat(f),0<=f)return f+"px"}else return f}}});b.support.opacity||(b.support.opacity={get:function(b,c){return x.test((c&&b.currentStyle?b.currentStyle.filter:b.style.filter)||
-"")?parseFloat(RegExp.$1)/100+"":c?"1":""},set:function(f,c){var h=f.style;h.zoom=1;var o=b.isNaN(c)?"":"alpha(opacity="+100*c+")",k=h.filter||"";h.filter=J.test(k)?k.replace(J,o):h.filter+" "+o}});n.defaultView&&n.defaultView.getComputedStyle&&(S=function(f,c,h){var k,h=h.replace(v,"-$1").toLowerCase();if(c=f.ownerDocument.defaultView){if(c=c.getComputedStyle(f,w))k=c.getPropertyValue(h),""===k&&!b.contains(f.ownerDocument.documentElement,f)&&(k=b.style(f,h));return k}});n.documentElement.currentStyle&&
-(K=function(b,c){var h,k=b.currentStyle&&b.currentStyle[c],j=b.runtimeStyle&&b.runtimeStyle[c],g=b.style;if(!G.test(k)&&I.test(k)){h=g.left;if(j)b.runtimeStyle.left=b.currentStyle.left;g.left="fontSize"===c?"1em":k||0;k=g.pixelLeft+"px";g.left=h;if(j)b.runtimeStyle.left=j}return""===k?"auto":k});L=S||K;b.fn.css=function(b,c){return 2===arguments.length&&c===p?this:m(this,b,c,u,function(b,f,c){return c!==p?A(b,f,c):j(b,f)})};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=j;b.swap=s;b.camelCase=g;var E,D;b.fn.offset=function(){var f=this[0],c;if(!f||!f.ownerDocument)return w;if(f===f.ownerDocument.body){c=f.offsetTop;var h=f.offsetLeft;if(!E){var k=n.body,g=n.createElement("div"),v,m,G=parseFloat(j(k,"marginTop"))||0;b.extend(g.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});g.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>";
-k.insertBefore(g,k.firstChild);v=g.firstChild;m=v.firstChild;m.style.position="fixed";m.style.top="20px";m.style.position=m.style.top="";v.style.overflow="hidden";v.style.position="relative";D=k.offsetTop!==G;k.removeChild(g);E=u}D&&(c+=parseFloat(j(f,"marginTop"))||0,h+=parseFloat(j(f,"marginLeft"))||0);return{top:c,left:h}}try{c=f.getBoundingClientRect()}catch(s){}if(!c||!b.contains(B,f))return c?{top:c.top,left:c.left}:{top:0,left:0};f=n.body;h=t(n);return{top:c.top+(h.pageYOffset||b.support.boxModel&&
-B.scrollTop||f.scrollTop)-(B.clientTop||f.clientTop||0),left:c.left+(h.pageXOffset||b.support.boxModel&&B.scrollLeft||f.scrollLeft)-(B.clientLeft||f.clientLeft||0)}};b.fn.position=function(){if(!this[0])return w;var b=this[0],c=this.offsetParent(),h=this.offset(),k=O.test(c[0].nodeName)?{top:0,left:0}:c.offset();h.top-=parseFloat(j(b,"marginTop"))||0;h.left-=parseFloat(j(b,"marginLeft"))||0;k.top+=parseFloat(j(c[0],"borderTopWidth"))||0;k.left+=parseFloat(j(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||n.body;b&&!O.test(b.nodeName)&&"static"===j(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(j(b,k,"padding")):w};b.fn["outer"+c]=function(b){var c=this[0];return c&&c.style?parseFloat(j(c,k,b?"margin":"border")):w};b.fn[k]=function(h){var g=this[0];if(!g)return h==
-w?w:this;if(b.isFunction(h))return this.l(function(c){var f=b(this);f[k](h.call(this,c,f[k]()))});if(b.isWindow(g)){var v=g.document.documentElement["client"+c],m=g.document.body;return"CSS1Compat"===g.document.compatMode&&v||m&&m["client"+c]||v}if(9===g.nodeType)return Math.max(g.documentElement["client"+c],g.body["scroll"+c],g.documentElement["scroll"+c],g.body["offset"+c],g.documentElement["offset"+c]);return h===p?(g=j(g,k),v=parseFloat(g),b.isNaN(v)?g:v):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 f,g;if(c===p){f=this[0];return!f?w:(g=t(f))?"pageXOffset"in g?g[k?"pageYOffset":"pageXOffset"]:b.support.boxModel&&g.document.documentElement[h]||g.document.body[h]:f[h]}return this.l(function(){(g=t(this))?g.scrollTo(!k?c:b(g).scrollLeft(),k?c:b(g).scrollTop()):this[h]=c})}})});
-$.plug("custom",function(b){for(var C={},c=window.location.search.substring(1).split("&"),A=0;A<c.length;A++){var j=c[A].split("=");C[j[0]]=unescape(j[1])}b.queryString=function(b){return C[b]};var s=b.Key=function(b){this.keyCode=b};s.o={t:8,M:9,B:13,L:16,v:17,s:18,J:19,u:20,C:27,I:33,H:34,A:35,D:36,G:37,N:38,K:39,z:40,F:45,w:46};b._each(s.o,function(b,c){s.prototype["is"+c]=function(){return this.keyCode===b}});b.key=function(b){b=b||window.event;return new s(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,n:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};b._template=function(c,j){var t=b.templateSettings,t="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+c.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(t.escape,function(b,c){return"',_.escape("+c.replace(/\\'/g,"'")+"),'"}).replace(t.n,
-function(b,c){return"',"+c.replace(/\\'/g,"'")+",'"}).replace(t.evaluate||w,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('');",n=new Function("obj","$",t);return j?n(j,b):function(c){return n(c,b)}}});
-$.plug("docready",function(b){function C(){if(!t){try{j.documentElement.doScroll("left")}catch(b){setTimeout(C,1);return}c()}}function c(c){c===u&&n--;if(!n||c!==u&&!t){if(!j.body)return setTimeout(s,1);t=u;if(!(c!==u&&0<--n)&&m){var g=0,s=m;for(m=w;c=s[g++];)c.call(j,b);b.fn.trigger&&b(j).trigger("ready").unbind("ready")}}}var A=window,j=document,s,g,m=[],t=z,n=1;b.hook(function(b){if("function"==typeof b)return this.ready(b),u});b.ready=c;s=j.addEventListener?function(){j.removeEventListener("DOMContentLoaded",
-s,z);c()}:function(){"complete"===j.readyState&&(j.detachEvent("onreadystatechange",s),c())};b.bindReady=function(){if(!g){g=u;if("complete"===j.readyState)return setTimeout(c,1);if(j.addEventListener)j.addEventListener("DOMContentLoaded",s,z),A.addEventListener("load",c,z);else if(j.attachEvent){j.attachEvent("onreadystatechange",s);A.attachEvent("onload",c);var b=z;try{b=window.frameElement==w}catch(m){}j.documentElement.doScroll&&b&&C()}}};b.fn.ready=function(c){b.bindReady();t?c.call(j,b):m&&
+var p=void 0,s=!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(v(a))return this.make(a);if(a.nodeType||h(a))return this.make([a]);if("body"==a&&!d&&w.body)return this.context=a.context,this[0]=w.body,this.length=1,this.selector=a,this;if(a.selector!==p)return this.context=a.context,
+this.selector=a.selector,this.make(a);a=D(a)&&"<"===a.charAt(0)?(e=Ca.exec(a))?(a=[w.createElement(e[1])])&&C(d)?c.fn.attr.call(a,d)&&a:a:Z(a).childNodes:n(a,d);return this.make(a)}function c(a,d){return new B(a,d)}function x(a,d,e){d=d||0;if(g(d))return F(a,function(a,i){return!!d.call(a,i,a)===e});if(d.nodeType)return F(a,function(a){return a===d===e});if(D(d)){var i=":"==d.charAt(0)&&c.Expr[d.substring(1)];return F(a,function(a){return i?i(a):a.parentNode&&0<=E(n(d,a.parentNode),a)})}return F(a,
+function(a){return 0<=E(d,a)===e})}function j(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 o(a){if(!aa[a]){var d=c("<"+a+">").appendTo(w.body),e=c.css&&c.css(d[0],"display")||d[0].style.display;d.remove();aa[a]=e}return aa[a]}function f(a,d){for(var d=" "+d+" ",e=0,i=a.length;e<i;e++)if(m(a[e],d))return s;return y}function m(a,d){return 1===a.nodeType&&-1<(" "+a.className+" ").replace(ha," ").indexOf(d)}
+function z(a,d,e){d=d||w;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&&z(a,b,e)}return e}function n(a,d,e){if(a&&D(a)){d instanceof c&&(d=d[0]);var d=d||w,e=e||c.query,i=a.charAt(0),g=a.substring(1),b=Da.test(g),h;try{return b?G.call(e(a,d)):b?G.call(e(a,d)):"#"==i?(h=w.getElementById(g))?[h]:ia:L("."==i?d.getElementsByClassName?d.getElementsByClassName(g):e(a,d):d.getElementsByTagName(a))}catch(v){I(v)}}return 1==a.nodeType||9==a.nodeType?
+[a]:ia}function A(a,d,e){var i=w.head||w.getElementsByTagName("head")[0]||ba,g=w.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=p,d&&d()};g.onload=d;g.src=a;i.insertBefore(g,i.firstChild)}function I(a){M.console&&M.console.warn(arguments)}function r(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]:p):u}function t(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&&m(b,c[1])||3==i&&c[2]==k(b,c[1]))&&e.push(b);else I(a+" not supported");return e}function E(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 H(a,d,e){for(var i=[],a=a[d];a&&9!==a.nodeType&&(e===p||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 F(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,f=a.length;if(a instanceof c||"number"==typeof f&&(0<f&&a[0]&&a[f-1]||0===f||v(a)))for(;h<f;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={};r(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 J(a){return a==u?""+a:ma[Ea.call(a)]||"object"}function D(a){return"string"==typeof a}function g(a){return"function"==typeof a||"function"===J(a)}function v(a){return"array"===J(a)}function h(a){return a&&"object"==typeof a&&"setInterval"in a}function C(a){if(!a||"object"!==J(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===p||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]!==p;)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,m=y;"boolean"==typeof h&&(m=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&&(m&&i&&(C(i)||(b=v(i)))?(b?(b=y,e=e&&v(e)?e:[]):e=e&&C(e)?e:{},h[d]=na(m,e,i)):i!==p&&(h[d]=
+i));return h}function L(a,d){var e=d||[];if(a!=u){var i=J(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||w||d.ownerDocument||d[0]&&d[0].ownerDocument||w;e=e||d.createDocumentFragment();if(!D(a)&&"number"==typeof a.length){var i=e,g=[],b,c;for(b=0;(c=a[b])!=u;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||w).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(!w.body)return u;var a=w.createElement("div");w.body.appendChild(a);a.style.width="20px";a.style.padding="10px";var d=a.offsetWidth;w.body.removeChild(a);return 40==d}function ra(a,d){sa.push({url:a,
+g:d})}function ta(){r(Y,function(a){a()});ga=s}var M=window,w=document,ba=w.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:s,S:s,next:s,Y:s},Ea=Object.prototype.toString,
+ma={},W=y,Ga=s,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,G=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){if((d=a[0])&&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(d=0,l=this.length;d<l;d++)e.call(this[d],a)}return this},a:function(a,d,e){var i=this.constructor();v(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 G.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 D(a)&&d===p?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,s,function(a){1===this.nodeType&&this.appendChild(a)})};q.prepend=function(){return this.d(arguments,s,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(){j(this,this.style.display);this.style.display="none"})};q.show=function(){return this.each(function(){this.style.display=j(this)||o(this.tagName)})};q.toggle=function(){return this.each(function(){this.style.display=c.Expr.hidden(this)?j(this)||o(this.tagName):(j(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(G.apply(this,
+arguments),"slice",G.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,g;if(!D(a))return c(a).filter(function(){for(e=0,g=d.length;e<g;e++)if(fa(d[e],this))return s});var b=this.a("","find",a),h,f,v;for(e=0,g=this.length;e<g;e++)if(h=b.length,P(b,c(a,this[e])),0==e)for(f=h;f<b.length;f++)for(v=0;v<h;v++)if(b[v]===b[f]){b.splice(f--,1);break}return b};q.not=function(a){return this.a(x(this,a,y),"not",a)};q.filter=
+function(a){return this.a(x(this,a,s),"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])!=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<t(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||w).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,b,h,f,v,C;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,b=this.length;e<b;e++)if((h=this[e])&&1===h.nodeType)if(!h.className&&1===d.length)h.className=a;else{f=" "+h.className+" ";for(v=0,C=d.length;v<C;v++)~f.indexOf(" "+d[v]+" ")||(f+=d[v]+" ");h.className=ea(f)}}return this};q.removeClass=function(a){var d,e,
+b,h,f,v,C;if(g(a))return this.each(function(d){c(this).removeClass(a.call(this,d,this.className))});if(a&&D(a)||a===p){d=(a||"").split(ua);for(e=0,b=this.length;e<b;e++)if(h=this[e],1===h.nodeType&&h.className)if(a){f=(" "+h.className+" ").replace(ha," ");for(v=0,C=d.length;v<C;v++)f=f.replace(" "+d[v]+" "," ");h.className=ea(f)}else h.className=""}return this};q.hasClass=function(a){return f(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||v(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=f;c.walk=z;c.$$=n;c.setQuery=function(a){c.query=function(d,e){return n(d,e,a||function(a,d){return d.querySelectorAll(a)})}};q=M.Sizzle||M.qwery;c.setQuery(q||function(a,d){return w.querySelectorAll?L((d||w).querySelectorAll(a)):[]});c.loadScript=A;c.each=function(a,d,e){var b,h=0,c=a.length,f=c===p||g(a);if(e)if(f)for(b in a){if(d.apply(a[b],e)===y)break}else for(;h<c&&!(d.apply(a[h++],e)===y););else if(f)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=r;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=t;c._indexOf=E;c._defaults=function(a){r(G.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);r(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=G.call(arguments,2),e=function(){return a.apply(d,b.concat(G.call(arguments)))};e.f=a.f=a.f||e.f||Qa++;return e}};c.dir=H;c.nth=N;c.sibling=S;c.grep=F;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};r("Boolean Number String Function Array Date RegExp Object".split(" "),function(a){ma["[object "+a+"]"]=a.toLowerCase();return this});c.type=J;c.isFunction=g;c.isArray=Array.isArray||v;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):s)}:function(){return y};
+da=ba.compareDocumentPosition?(fa=function(a,d){return!!(a.compareDocumentPosition(d)&16)})&&function(a,d){return a===d?(W=s,0):!a.compareDocumentPosition||!d.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(d)&4?-1:1}:function(a,d){if(a===d)return W=s,0;if(a.sourceIndex&&d.sourceIndex)return a.sourceIndex-d.sourceIndex;var e,g,h=[],c=[];e=a.parentNode;g=d.parentNode;var f=e;if(e===g)return b(a,d);if(e){if(!g)return 1}else return-1;for(;f;)h.unshift(f),f=f.parentNode;
+for(f=g;f;)c.unshift(f),f=f.parentNode;e=h.length;g=c.length;for(f=0;f<e&&f<g;f++)if(h[f]!==c[f])return b(h[f],c[f]);return f===e?b(a,c[f],-1):b(h[f],d,1)};c.unique=V;r({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:u},parents:function(a){return H(a,"parentNode")},parentsUntil:function(a,d,e){return H(a,"parentNode",e)},next:function(a){return N(a,2,"nextSibling")},prev:function(a){return N(a,2,"previousSibling")},nextAll:function(a){return H(a,"nextSibling")},prevAll:function(a){return H(a,
+"previousSibling")},nextUntil:function(a,d,e){return H(a,"nextSibling",e)},prevUntil:function(a,d,e){return H(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=G.call(arguments);Ia.test(d)||(g=e);"string"==typeof g&&(b=t(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(","))}});r({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after"},function(a,d){c.fn[d]=function(e){var g=[],e=c(e),b,h;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,l=e.length;b<l;b++)h=(0<b?this.Q(s):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]||""]=s})();c.scriptsLoaded=function(a){g(a)&&Y.push(a)};c.loadAsync=ra;!q&&!w.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;r(sa,function(d){a++;A(d.url,function(){try{d.g&&d.g()}catch(g){}--a||ta()})});c.init=s;a||ta()}catch(d){I(d)}};w.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(o!=u)return o();for(var b=0,c=j.length;b<c;b++)try{var z=j[b],n=z();if(n!=u)return o=z,n}catch(A){}return function(){}}function c(b,c){c=c||b.getResponseHeader("Content-Type").split(";")[0];switch(c){case "text/xml":return b.responseXML;case "json":case "text/json":case "application/json":case "text/javascript":case "application/javascript":case "application/x-javascript":return window.JSON?window.JSON.parse(b.responseText):eval(b.responseText);default:return b.responseText}}
+function x(f){var m=B(),j,n=0,f=b._defaults(f,{userAgent:"XMLHttpRequest",lang:"en",type:"GET",data:u,contentType:"application/x-www-form-urlencoded",dataType:"application/json"});f.timeout&&(j=setTimeout(function(){m.abort();f.q&&f.q(f.url)},f.timeout));var A=b(f.context||document);m.onreadystatechange=function(){if(4==m.readyState){j&&clearTimeout(j);if(300>m.status){var b=c(m,f.dataType);f.success&&f.success(b);A.trigger("ajaxSuccess",[m,b,f])}else f.error&&f.error(m,m.status,m.statusText),A.trigger(A,
+"ajaxError",[m,m.statusText,f]);f.complete&&f.complete(m,m.statusText);A.trigger(A,"ajaxComplete",[m,f])}else f.progress&&f.progress(++n)};var o=f.url,r=u,k="POST"==f.type||"PUT"==f.type;!k&&f.data&&(o+="?"+formData(f.data));m.open(f.type,o);k&&(r=(o=0<=f.dataType.indexOf("json"))?JSON.stringify(f.data):formData(f.data),m.setRequestHeader("Content-Type",o?"application/json":"application/x-www-form-urlencoded"));m.send(r)}var j=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Microsoft.XMLHTTP")},
+function(){return new ActiveXObject("MSXML2.XMLHTTP.3.0")},function(){return new ActiveXObject("MSXML2.XMLHTTP")}],o=u;b.xhr=B;b._xhrResp=c;b.formData=function(b){var c=[],j=/%20/g,n;for(n in b)c.push(encodeURIComponent(n).replace(j,"+")+"="+encodeURIComponent(b[n].toString()).replace(j,"+"));return c.join("&")};b.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,m){b.fn[m]=function(b){return this.bind(m,b)}});b.ajax=x;b.getJSON=function(c,m,j){b.isFunction(m)&&
+(j=m,m=u);x({url:c,data:m,success:j,dataType:"json"})};b.get=function(c,m,j,n){b.isFunction(m)&&(n=j,j=m,m=u);x({url:c,type:"GET",data:m,success:j,dataType:n||"text/plain"})};b.post=function(c,j,o,n){b.isFunction(j)&&(n=o,o=j,j=u);x({url:c,type:"POST",data:j,success:o,dataType:n||"text/plain"})};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 f="width"===c?g.offsetWidth:g.offsetHeight,c="width"===c?F:O;return 0<f?("border"!==h&&b.each(c,function(){h||(f-=parseFloat(j(g,"padding"+this))||0);f="margin"===h?f+(parseFloat(j(g,h+this))||0):f-(parseFloat(j(g,"border"+this+"Width"))||0)}),f+"px"):""}function x(g,c,h,C){if(g&&!(3===g.nodeType||8===g.nodeType||!g.style)){var k,j=f(c),m=g.style,t=b.cssHooks[j],c=b.cssProps[j]||j;if(h!==p){if(!("number"===typeof h&&
+isNaN(h)||h==u))if("number"===typeof h&&!b.cssNumber[j]&&(h+="px"),!t||!("set"in t)||(h=t.set(g,h))!==p)try{m[c]=h}catch(n){}}else return t&&"get"in t&&(k=t.get(g,y,C))!==p?k:m[c]}}function j(g,c,h){var C,k=f(c),j=b.cssHooks[k],c=b.cssProps[k]||k;if(j&&"get"in j&&(C=j.get(g,s,h))!==p)return C;if(K)return K(g,c,k)}function o(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 f(b){return b.replace(k,B)}function m(g,c,h,f,k,j){var t=g.length;if("object"===
+typeof c){for(var n in c)m(g,n,c[n],f,k,h);return g}if(h!==p){f=!j&&f&&b.isFunction(h);for(n=0;n<t;n++)k(g[n],c,f?h.call(g[n],n,k(g[n],c)):h,j);return g}return t?k(g[0],c):p}function z(g){return b.isWindow(g)?g:9===g.nodeType?g.defaultView||g.parentWindow:y}var n=document,A=n.documentElement,I=/alpha\([^)]*\)/i,r=/opacity=([^)]*)/,k=/-([a-z])/ig,t=/([A-Z])/g,E=/^-?\d+(?:px)?$/i,H=/^-?\d/,N=/^(?:body|html)$/i,S={position:"absolute",visibility:"hidden",display:"block"},F=["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 k;if(h){if(0!==b.offsetWidth)return c(b,g,f);o(b,S,function(){k=c(b,g,f)});return k}},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 r.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+")",k=h.filter||"";h.filter=I.test(k)?k.replace(I,f):h.filter+" "+f}});n.defaultView&&n.defaultView.getComputedStyle&&(T=function(g,c,h){var f,h=h.replace(t,"-$1").toLowerCase();if(c=g.ownerDocument.defaultView){if(c=c.getComputedStyle(g,u))f=c.getPropertyValue(h),""===f&&!b.contains(g.ownerDocument.documentElement,g)&&(f=b.style(g,h));return f}});n.documentElement.currentStyle&&
+(R=function(b,c){var f,k=b.currentStyle&&b.currentStyle[c],j=b.runtimeStyle&&b.runtimeStyle[c],t=b.style;if(!E.test(k)&&H.test(k)){f=t.left;if(j)b.runtimeStyle.left=b.currentStyle.left;t.left="fontSize"===c?"1em":k||0;k=t.pixelLeft+"px";t.left=f;if(j)b.runtimeStyle.left=j}return""===k?"auto":k});K=T||R;b.fn.css=function(b,c){return 2===arguments.length&&c===p?this:m(this,b,c,s,function(b,c,g){return g!==p?x(b,c,g):j(b,c)})};b.cssNumber={zIndex:s,fontWeight:s,opacity:s,zoom:s,lineHeight:s};b.cssProps=
+{"float":b.support.cssFloat?"cssFloat":"styleFloat"};b.style=x;b.css=j;b.swap=o;b.camelCase=f;var J,D;b.fn.offset=function(){var c=this[0],f;if(!c||!c.ownerDocument)return u;if(c===c.ownerDocument.body){f=c.offsetTop;var h=c.offsetLeft;if(!J){var k=n.body,t=n.createElement("div"),m,E,o=parseFloat(j(k,"marginTop"))||0;b.extend(t.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});t.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>";
+k.insertBefore(t,k.firstChild);m=t.firstChild;E=m.firstChild;E.style.position="fixed";E.style.top="20px";E.style.position=E.style.top="";m.style.overflow="hidden";m.style.position="relative";D=k.offsetTop!==o;k.removeChild(t);J=s}D&&(f+=parseFloat(j(c,"marginTop"))||0,h+=parseFloat(j(c,"marginLeft"))||0);return{top:f,left:h}}try{f=c.getBoundingClientRect()}catch(r){}if(!f||!b.contains(A,c))return f?{top:f.top,left:f.left}:{top:0,left:0};c=n.body;h=z(n);return{top:f.top+(h.pageYOffset||b.support.boxModel&&
+A.scrollTop||c.scrollTop)-(A.clientTop||c.clientTop||0),left:f.left+(h.pageXOffset||b.support.boxModel&&A.scrollLeft||c.scrollLeft)-(A.clientLeft||c.clientLeft||0)}};b.fn.position=function(){if(!this[0])return u;var b=this[0],c=this.offsetParent(),f=this.offset(),k=N.test(c[0].nodeName)?{top:0,left:0}:c.offset();f.top-=parseFloat(j(b,"marginTop"))||0;f.left-=parseFloat(j(b,"marginLeft"))||0;k.top+=parseFloat(j(c[0],"borderTopWidth"))||0;k.left+=parseFloat(j(c[0],"borderLeftWidth"))||0;return{top:f.top-
+k.top,left:f.left-k.left}};b.fn.offsetParent=function(){return this.map(function(){for(var b=this.offsetParent||n.body;b&&!N.test(b.nodeName)&&"static"===j(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(j(b,f,"padding")):u};b.fn["outer"+c]=function(b){var c=this[0];return c&&c.style?parseFloat(j(c,f,b?"margin":"border")):u};b.fn[f]=function(h){var k=this[0];if(!k)return h==
+u?u: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(k)){var t=k.document.documentElement["client"+c],m=k.document.body;return"CSS1Compat"===k.document.compatMode&&t||m&&m["client"+c]||t}if(9===k.nodeType)return Math.max(k.documentElement["client"+c],k.body["scroll"+c],k.documentElement["scroll"+c],k.body["offset"+c],k.documentElement["offset"+c]);return h===p?(k=j(k,f),t=parseFloat(k),b.isNaN(t)?k:t):this.css(f,"string"===typeof h?h:h+
+"px")}});b._each(["Left","Top"],function(c,f){var k="scroll"+c;b.fn[k]=function(c){var g,j;if(c===p){g=this[0];return!g?u:(j=z(g))?"pageXOffset"in j?j[f?"pageYOffset":"pageXOffset"]:b.support.boxModel&&j.document.documentElement[k]||j.document.body[k]:g[k]}return this.each(function(){(j=z(this))?j.scrollTo(!f?c:b(j).scrollLeft(),f?c:b(j).scrollTop()):this[k]=c})}})});
+$.plug("custom",function(b){for(var B={},c=window.location.search.substring(1).split("&"),x=0;x<c.length;x++){var j=c[x].split("=");B[j[0]]=unescape(j[1])}b.queryString=function(b){return B[b]};var o=b.Key=function(b){this.keyCode=b};o.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(o.n,function(b,c){o.prototype["is"+c]=function(){return this.keyCode===b}});b.key=function(b){b=b||window.event;return new o(b.keyCode||b.which)};b.cancelEvent=
+function(b){if(!b)b=window.event;b.cancelBubble=s;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,j){var o=b.templateSettings,o="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+c.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(o.escape,function(b,c){return"',_.escape("+c.replace(/\\'/g,"'")+"),'"}).replace(o.m,
+function(b,c){return"',"+c.replace(/\\'/g,"'")+",'"}).replace(o.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('');",n=new Function("obj","$",o);return j?n(j,b):function(c){return n(c,b)}}});
+$.plug("docready",function(b){function B(){if(!z){try{j.documentElement.doScroll("left")}catch(b){setTimeout(B,1);return}c()}}function c(c){c===s&&n--;if(!n||c!==s&&!z){if(!j.body)return setTimeout(o,1);z=s;if(!(c!==s&&0<--n)&&m){var f=0,o=m;for(m=u;c=o[f++];)c.call(j,b);b.fn.trigger&&b(j).trigger("ready").unbind("ready")}}}var x=window,j=document,o,f,m=[],z=y,n=1;b.hook(function(b){if("function"==typeof b)return this.ready(b),s});b.ready=c;o=j.addEventListener?function(){j.removeEventListener("DOMContentLoaded",
+o,y);c()}:function(){"complete"===j.readyState&&(j.detachEvent("onreadystatechange",o),c())};b.bindReady=function(){if(!f){f=s;if("complete"===j.readyState)return setTimeout(c,1);if(j.addEventListener)j.addEventListener("DOMContentLoaded",o,y),x.addEventListener("load",c,y);else if(j.attachEvent){j.attachEvent("onreadystatechange",o);x.attachEvent("onload",c);var b=y;try{b=window.frameElement==u}catch(m){}j.documentElement.doScroll&&b&&B()}}};b.fn.ready=function(c){b.bindReady();z?c.call(j,b):m&&
m.push(c);return this};b.init||b(document).ready(b.onload)});
-$.plug("events",function(b){function C(b,c,g){b.addEventListener?b.addEventListener(c,g,z):(b["e"+c+g]=g,b[c+g]=function(){b["e"+c+g](window.event)},b.attachEvent("on"+c,b[c+g]))}function c(b,c,g){b.removeEventListener?b.removeEventListener(c,g,z):(b.detachEvent("on"+c,b[c+g]),b[c+g]=w)}function A(b){b=(""+b).split(".");return{c:b[0],e:b.slice(1).sort().join(" ")}}function j(c,g,j,m){g=A(g);if(g.e)var s=RegExp("(?:^| )"+g.e.replace(" "," .* ?")+"(?: |$)");return b._filter(n[c.b||(c.b=B++)]||[],function(b){return b&&
-(!g.c||b.c==g.c)&&(!g.e||s.test(b.e))&&(!j||b.h==j)&&(!m||b.p==m)})}function s(c,g,j,m,s){var t=c.b||(c.b=B++),F=n[t]||(n[t]=[]);b._each(g.split(/\s/),function(g){g=b.extend(A(g),{h:j,p:m,k:s,m:F.length});F.push(g);C(c,g.c,s||j)});c=w}function g(k,g,m,s){var t=k.b||(k.b=B++);b._each((g||"").split(/\s/),function(g){b._each(j(k,g,m,s),function(b){delete n[t][b.m];c(k,b.c,b.k||b.h)})})}function m(c){var g=b.extend({Y:c},c);b._each(J,function(b){g[b]=function(){return c[b].apply(c,arguments)}});return g}
-var t=document,n={},B=1;b.bind=C;b.unbind=c;var J=["preventDefault","stopImmediatePropagation","stopPropagation"],x=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){x[b]=function(c,g){return 0<arguments.length?this.bind(b,c,g):this.trigger(b)}});x.bind=function(b,c){return this.each(function(){s(this,b,c)})};x.unbind=function(b,
-c){return this.each(function(){g(this,b,c)})};x.one=function(b,c){return this.each(function(){var j=this;s(this,b,function(){c();g(j,b,arguments.callee)})})};x.delegate=function(c,g,j){return this.each(function(n,t){s(t,g,j,c,function(g){for(var n=g.target,s=b.$$(c,t);n&&0>s.indexOf(n);)n=n.parentNode;n&&n!==t&&n!==document&&j.call(n,b.extend(m(g||window.event),{currentTarget:n,W:t}))})})};x.undelegate=function(b,c,j){return this.each(function(){g(this,c,j,b)})};x.live=function(c,g){b(t.body).delegate(this.selector,
-c,g);return this};x.die=function(c,g){b(t.body).undelegate(this.selector,c,g);return this};x.trigger=function(b){return this.each(function(){if(("click"==b||"blur"==b||"focus"==b)&&this[b])return this[b]();if(t.createEvent){var c=t.createEvent("Events");this.dispatchEvent(c,c.initEvent(b,u,u))}else if(this.fireEvent)try{"ready"!==b&&this.fireEvent("on"+b)}catch(g){}})};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 x(b){b=(""+b).split(".");return{c:b[0],e:b.slice(1).sort().join(" ")}}function j(c,f,j,m){f=x(f);if(f.e)var o=RegExp("(?:^| )"+f.e.replace(" "," .* ?")+"(?: |$)");return b._filter(n[c.b||(c.b=A++)]||[],function(b){return b&&
+(!f.c||b.c==f.c)&&(!f.e||o.test(b.e))&&(!j||b.h==j)&&(!m||b.o==m)})}function o(c,f,j,m,o){var r=c.b||(c.b=A++),F=n[r]||(n[r]=[]);b._each(f.split(/\s/),function(f){f=b.extend(x(f),{h:j,o:m,k:o,l:F.length});F.push(f);B(c,f.c,o||j)});c=u}function f(f,m,o,r){var x=f.b||(f.b=A++);b._each((m||"").split(/\s/),function(m){b._each(j(f,m,o,r),function(b){delete n[x][b.l];c(f,b.c,b.k||b.h)})})}function m(c){var f=b.extend({X:c},c);b._each(I,function(b){f[b]=function(){return c[b].apply(c,arguments)}});return f}
+var z=document,n={},A=1;b.bind=B;b.unbind=c;var I=["preventDefault","stopImmediatePropagation","stopPropagation"],r=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){r[b]=function(c,f){return 0<arguments.length?this.bind(b,c,f):this.trigger(b)}});r.bind=function(b,c){return this.each(function(){o(this,b,c)})};r.unbind=function(b,
+c){return this.each(function(){f(this,b,c)})};r.one=function(b,c){return this.each(function(){var j=this;o(this,b,function(){c();f(j,b,arguments.callee)})})};r.delegate=function(c,f,j){return this.each(function(n,r){o(r,f,j,c,function(f){for(var n=f.target,o=b.$$(c,r);n&&0>o.indexOf(n);)n=n.parentNode;n&&n!==r&&n!==document&&j.call(n,b.extend(m(f||window.event),{currentTarget:n,V:r}))})})};r.undelegate=function(b,c,j){return this.each(function(){f(this,c,j,b)})};r.live=function(c,f){b(z.body).delegate(this.selector,
+c,f);return this};r.die=function(c,f){b(z.body).undelegate(this.selector,c,f);return this};r.trigger=function(b){return this.each(function(){if(("click"==b||"blur"==b||"focus"==b)&&this[b])return this[b]();if(z.createEvent){var c=z.createEvent("Events");this.dispatchEvent(c,c.initEvent(b,s,s))}else if(this.fireEvent)try{"ready"!==b&&this.fireEvent("on"+b)}catch(f){}})};b.init||b(window).bind("load",b.onload)});
View
22 dist/jquip.all.js
@@ -1041,7 +1041,7 @@ window['$'] = window['jquip'] = (function(){
return $;
})();
-$['plug']("ajax", function ($) {
+;$['plug']("ajax", function ($) {
var xhrs = [
function () { return new XMLHttpRequest(); },
function () { return new ActiveXObject("Microsoft.XMLHTTP"); },
@@ -1156,7 +1156,7 @@ $['plug']("ajax", function ($) {
//TODO $.getScript
});
-$['plug']("css", function ($) {
+;$['plug']("css", function ($) {
var doc = document,
docEl = doc.documentElement,
ralpha = /alpha\([^)]*\)/i,
@@ -1424,13 +1424,13 @@ $['plug']("css", function ($) {
var el = this[0];
if (!el) return size == null ? null : this;
if ($['isFunction'](size))
- return this.each(function (i) {
+ return this['each'](function (i) {
var self = $(this);
self[type](size.call(this, i, self[type]()));
});
if ($['isWindow'](el)) {
- var docElemProp = el.document.documentElement["client" + name], body = el.document.body;
- return el.document.compatMode === "CSS1Compat" && docElemProp || body && body["client" + name] || docElemProp;
+ var docElProp = el.document.documentElement["client" + name], body = el.document.body;
+ return el.document.compatMode === "CSS1Compat" && docElProp || body && body["client" + name] || docElProp;
} else if (el.nodeType === 9) {
return Math.max(
el.documentElement["client" + name],
@@ -1459,18 +1459,18 @@ $['plug']("css", function ($) {
? win[i ? "pageYOffset" : "pageXOffset"]
: $['support']['boxModel'] && win.document.documentElement[method] || win.document.body[method] : el[method];
}
- return this.each(function() {
+ return this['each'](function() {
win = getWin(this);
if (win)
- win.scrollTo(!i ? val : $(win).scrollLeft(), i ? val : $(win).scrollTop());
+ win['scrollTo'](!i ? val : $(win)['scrollLeft'](), i ? val : $(win)['scrollTop']());
else
this[method] = val;
});
};
});
});
-$['plug']("custom", function($){
+;$['plug']("custom", function($){
var win=window, doc=document, qsMap = {},
vars = win.location.search.substring(1).split("&");
@@ -1531,7 +1531,7 @@ $['plug']("custom", function($){
return data ? func(data, $) : function(data) { return func(data, $) };
};
});
-$['plug']("docready", function ($) {
+;$['plug']("docready", function ($) {
var win = window, doc = document, DOMContentLoaded, readyBound, readyList = [], isReady = false, readyWait = 1;
$['hook'](function (sel, ctx) {
if (typeof sel == "function") {
@@ -1599,7 +1599,7 @@ $['plug']("docready", function ($) {
if (!$['init']) $(document)['ready']($['onload']);
});
-$['plug']("events", function($){
+;$['plug']("events", function($){
var doc = document, handlers = {}, _jquid = 1;
function jquid(el){
return el._jquid || (el._jquid = _jquid++);
@@ -1741,4 +1741,4 @@ $['plug']("events", function($){
});
};
if (!$['init']) $(window)['bind']("load",$['onload']);
-});
+});;
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;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(h=0,l=this.length;h<l;h++)c.call(this[h],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=this.length===1&&this[0].parentNode;if(h&&h.nodeType===11&&h.childNodes.length===1&&e.length===1)return e[a](this[0]),this;for(f=0,l=e.length;f<l;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){dataType=dataType||xhr.getResponseHeader("Content-Type").split(";")[0];switch(dataType){case"text/xml":return xhr.responseXML;case"json":case"text/json":case"application/json":case"text/javascript":case"application/javascript":case"application/x-javascript":return window.JSON?window.JSON.parse(xhr.responseText):eval(xhr.responseText);default:return xhr.responseText}}function ajax(a){var b=_xhr(),c,d=0;a=$._defaults(a,{userAgent:"XMLHttpRequest",lang:"en",type:"GET",data:null,contentType:"application/x-www-form-urlencoded",dataType:"application/json"}),a.timeout&&(c=setTimeout(function(){b.abort(),a.timeoutFn&&a.timeoutFn(a.url)},a.timeout));var e=$(a.context||document),f=e;b.onreadystatechange=function(){if(b.readyState==4){c&&clearTimeout(c);if(b.status<300){var g=_xhrResp(b,a.dataType);a.success&&a.success(g),f.trigger("ajaxSuccess",[b,g,a])}else a.error&&a.error(b,b.status,b.statusText),f.trigger(e,"ajaxError",[b,b.statusText,a]);a.complete&&a.complete(b,b.statusText),f.trigger(e,"ajaxComplete",[b,a])}else a.progress&&a.progress(++d)};var g=a.url,h=null,i=a["type"]=="POST"||a["type"]=="PUT";!i&&a.data&&(g+="?"+formData(a.data)),b.open(a.type,g);if(i){var j=a.dataType.indexOf("json")>=0;h=j?JSON.stringify(a.data):formData(a.data),b.setRequestHeader("Content-Type",j?"application/json":"application/x-www-form-urlencoded")}b.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"})},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;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(h=0,l=this.length;h<l;h++)c.call(this[h],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=this.length===1&&this[0].parentNode;if(h&&h.nodeType===11&&h.childNodes.length===1&&e.length===1)return e[a](this[0]),this;for(f=0,l=e.length;f<l;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){dataType=dataType||xhr.getResponseHeader("Content-Type").split(";")[0];switch(dataType){case"text/xml":return xhr.responseXML;case"json":case"text/json":case"application/json":case"text/javascript":case"application/javascript":case"application/x-javascript":return window.JSON?window.JSON.parse(xhr.responseText):eval(xhr.responseText);default:return xhr.responseText}}function ajax(a){var b=_xhr(),c,d=0;a=$._defaults(a,{userAgent:"XMLHttpRequest",lang:"en",type:"GET",data:null,contentType:"application/x-www-form-urlencoded",dataType:"application/json"}),a.timeout&&(c=setTimeout(function(){b.abort(),a.timeoutFn&&a.timeoutFn(a.url)},a.timeout));var e=$(a.context||document),f=e;b.onreadystatechange=function(){if(b.readyState==4){c&&clearTimeout(c);if(b.status<300){var g=_xhrResp(b,a.dataType);a.success&&a.success(g),f.trigger("ajaxSuccess",[b,g,a])}else a.error&&a.error(b,b.status,b.statusText),f.trigger(e,"ajaxError",[b,b.statusText,a]);a.complete&&a.complete(b,b.statusText),f.trigger(e,"ajaxComplete",[b,a])}else a.progress&&a.progress(++d)};var g=a.url,h=null,i=a["type"]=="POST"||a["type"]=="PUT";!i&&a.data&&(g+="?"+formData(a.data)),b.open(a.type,g);if(i){var j=a.dataType.indexOf("json")>=0;h=j?JSON.stringify(a.data):formData(a.data),b.setRequestHeader("Content-Type",j?"application/json":"application/x-www-form-urlencoded")}b.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"})},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
1,301 src/.wip.js
@@ -1,31 +1,1270 @@
-var __p = [], print = function(){
- __p.push.apply(__p, arguments);
-};
-with (obj || {}){
- __p.push('\n\n <tr class="', IsTrivial ? trivial : '', '" data-timing-id="', Id, '">\n <td class="label" title="', Name && Name.length > 45 ? Name : '', '">\n ' +
- '<span class="indent">', MiniProfiler.renderIndent(Depth), '</span> ', Name.slice(0, 45), '', Name && Name.length > 45 ? '...' : '', '\n </td>\n <td class="duration" title="duration of this step without any children\'s durations">\n\t ', MiniProfiler.formatDuration(DurationWithoutChildrenMilliseconds), '\n\t</td>\n <td class="duration duration-with-children" title="duration of this step and its children">\n\t ', MiniProfiler.formatDuration(DurationMilliseconds), '\n\t</td>\n <td class="duration time-from-start" title="time elapsed since profiling started">\n <span class="unit">+</span>', MiniProfiler.formatDuration(StartMilliseconds), '\n </td>\n\n\t');
- if (HasSqlTimings){
- ;
- __p.push('\n\t <td class="duration ', HasDuplicateSqlTimings ? 'warning' : '', '" title="', HasDuplicateSqlTimings ? 'duplicate queries detected - ' : '', '', ExecutedReaders, ' reader, ', ExecutedScalars, ' scalar, ', ExecutedNonQueries, ' non-query statements executed">\n\t <a class="queries-show">\n ');
- if (HasDuplicateSqlTimings){
- ;
- __p.push('<span class="nuclear">!</span>');
- }
- ;
- __p.push('\n ', SqlTimings.length, '<span class="unit">sql</span>\n </a>\n </td>\n <td class="duration" title="aggregate duration of all queries in this step (excludes children)">\n\t ', MiniProfiler.formatDuration(SqlTimingsDurationMilliseconds), '\n </td>\n ');
- }
- ;
- __p.push('\n\n </tr>\n\n ');
- if (HasChildren){
- ;
- __p.push('\n\t');
- $._each(Children, function($value){
- ;
- __p.push('\n\t ', $.tmpl("#timingTemplate", $value), '\n\t');
- };
- __p.push('\n ');
- }
- ;
- __p.push('\n\n');
-}
-return __p.join('');
+var p = void 0, s = !0, u = null, y = !1;
+window.jQuery =
+ 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 (v(a))return this.make(a);
+ if (a.nodeType || h(a))return this.make([a]);
+ if ("body" == a && !d && w.body)return this.context = a.context, this[0] = w.body, this.length = 1, this.selector = a, this;
+ if (a.selector !== p)return this.context = a.context,
+ this.selector = a.selector, this.make(a);
+ a = D(a) && "<" === a.charAt(0) ? (e = Ca.exec(a)) ? (a = [w.createElement(e[1])]) && C(d) ? c.fn.attr.call(a, d) && a : a : Z(a).childNodes : n(a, d);
+ return this.make(a)
+ }
+
+ function c(a, d){
+ return new B(a, d)
+ }
+
+ function x(a, d, e){
+ d = d || 0;
+ if (g(d))return F(a, function(a, i){
+ return!!d.call(a, i, a) === e
+ });
+ if (d.nodeType)return F(a, function(a){
+ return a === d === e
+ });
+ if (D(d)){
+ var i = ":" == d.charAt(0) && c.Expr[d.substring(1)];
+ return F(a, function(a){
+ return i ? i(a) : a.parentNode && 0 <= E(n(d, a.parentNode), a)
+ })
+ }
+ return F(a,
+ function(a){
+ return 0 <= E(d, a) === e
+ })
+ }
+
+ function j(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 o(a){
+ if (!aa[a]){
+ var d = c("<" + a + ">").appendTo(w.body), e = c.css && c.css(d[0], "display") || d[0].style.display;
+ d.remove();
+ aa[a] = e
+ }
+ return aa[a]
+ }
+
+ function f(a, d){
+ for(var d = " " + d + " ", e = 0, i = a.length; e < i; e++)if (m(a[e], d))return s;
+ return y
+ }
+
+ function m(a, d){
+ return 1 === a.nodeType && -1 < (" " + a.className + " ").replace(ha, " ").indexOf(d)
+ }
+
+ function z(a, d, e){
+ d = d || w;
+ 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 && z(a, b, e)
+ }
+ return e
+ }
+
+ function n(a, d, e){
+ if (a && D(a)){
+ d instanceof c && (d = d[0]);
+ var d = d || w, e = e || c.query, i = a.charAt(0), g = a.substring(1), b = Da.test(g), h;
+ try{
+ return b ? G.call(e(a, d)) : b ? G.call(e(a, d)) : "#" == i ? (h = w.getElementById(g)) ? [h] : ia : L("." == i ? d.getElementsByClassName ? d.getElementsByClassName(g) : e(a, d) : d.getElementsByTagName(a))
+ }catch(v){
+ I(v)
+ }
+ }
+ return 1 == a.nodeType || 9 == a.nodeType ?
+ [a] : ia
+ }
+
+ function A(a, d, e){
+ var i = w.head || w.getElementsByTagName("head")[0] || ba, g = w.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 = p, d && d()
+ };
+ g.onload = d;
+ g.src = a;
+ i.insertBefore(g, i.firstChild)
+ }
+
+ function I(a){
+ M.console && M.console.warn(arguments)
+ }
+
+ function r(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] : p) : u
+ }
+
+ function t(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 && m(b, c[1]) || 3 == i && c[2] == k(b, c[1])) && e.push(b); else I(a + " not supported");
+ return e
+ }
+
+ function E(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 H(a, d, e){
+ for(var i = [], a = a[d]; a && 9 !== a.nodeType && (e === p || 1 !== a.nodeType || !c(a).U(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 F(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, f = a.length;
+ if (a instanceof c || "number" == typeof f && (0 < f && a[0] && a[f - 1] || 0 === f || v(a)))for(; h < f; 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 = {};
+ r(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 J(a){
+ return a == u ? "" + a : ma[Ea.call(a)] || "object"
+ }
+
+ function D(a){
+ return"string" == typeof a
+ }
+
+ function g(a){
+ return"function" == typeof a || "function" === J(a)
+ }
+
+ function v(a){
+ return"array" === J(a)
+ }
+
+ function h(a){
+ return a && "object" == typeof a && "setInterval"in a
+ }
+
+ function C(a){
+ if (!a || "object" !== J(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 === p || 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] !== p;)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, m = y;
+ "boolean" == typeof h && (m = 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 && (m && i && (C(i) || (b = v(i))) ? (b ? (b = y, e = e && v(e) ? e : []) : e = e && C(e) ? e : {}, h[d] = na(m, e, i)) : i !== p && (h[d] =
+ i));
+ return h
+ }
+
+ function L(a, d){
+ var e = d || [];
+ if (a != u){
+ var i = J(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 || w || d.ownerDocument || d[0] && d[0].ownerDocument || w;
+ e = e || d.createDocumentFragment();
+ if (!D(a) && "number" == typeof a.length){
+ var i = e, g = [], b, c;
+ for(b = 0; (c = a[b]) != u; 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 || w).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 (!w.body)return u;
+ var a = w.createElement("div");
+ w.body.appendChild(a);
+ a.style.width = "20px";
+ a.style.padding = "10px";
+ var d = a.offsetWidth;
+ w.body.removeChild(a);
+ return 40 == d
+ }
+
+ function ra(a, d){
+ sa.push({url: a,
+ g: d})
+ }
+
+ function ta(){
+ r(Y, function(a){
+ a()
+ });
+ ga = s
+ }
+
+ var M = window, w = document, ba = w.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: s, T: s, next: s, Z: s}, Ea = Object.prototype.toString,
+ ma = {}, W = y, Ga = s, qa = {X: [1, "<select multiple='multiple'>", "</select>"], V: [1, "<fieldset>", "</fieldset>"], ca: [1, "<table>", "</table>"], da: [2, "<table><tbody>", "</tbody></table>"], ba: [3, "<table><tbody><tr>", "</tr></tbody></table>"], S: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"], P: [1, "<map>", "</map>"], i: [0, "", ""]}, Da = /[,\s.#\[>+]/, ia = [], ka = {}, q = Array.prototype, U = Object.prototype.hasOwnProperty, G = 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 = {O: 0}, aa = {}, q = B.prototype = c.prototype = c.fn = {constructor: c, selector: "", length: 0, d: function(a, d, e){
+ if ((d = a[0]) && 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(d = 0, l = this.length; d < l; d++)e.call(this[d], a)
+ }
+ return this
+ }, a: function(a, d, e){
+ var i = this.constructor();
+ v(a) ? oa.apply(i, a) : P(i, a);
+ i.aa = this;
+ i.j = this.j;
+ if ("find" === d)i.q = this.selector +
+ (this.selector ? " " : "") + e; else if (d)i.q = 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 G.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 D(a) && d === p ? 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, s, function(a){
+ 1 === this.nodeType && this.appendChild(a)
+ })
+ };
+ q.prepend = function(){
+ return this.d(arguments, s, 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(){
+ j(this, this.style.display);
+ this.style.display = "none"
+ })
+ };
+ q.show = function(){
+ return this.each(function(){
+ this.style.display = j(this) || o(this.tagName)
+ })
+ };
+ q.toggle = function(){
+ return this.each(function(){
+ this.style.display = c.Expr.hidden(this) ? j(this) || o(this.tagName) : (j(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(G.apply(this,
+ arguments), "slice", G.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, g;
+ if (!D(a))return c(a).filter(function(){
+ for(e = 0, g = d.length; e < g; e++)if (fa(d[e], this))return s
+ });
+ var b = this.a("", "find", a), h, f, v;
+ for(e = 0, g = this.length; e < g; e++)if (h = b.length, P(b, c(a, this[e])), 0 == e)for(f = h; f < b.length; f++)for(v = 0; v < h; v++)if (b[v] === b[f]){
+ b.splice(f--, 1);
+ break
+ }
+ return b
+ };
+ q.not = function(a){
+ return this.a(x(this, a, y), "not", a)
+ };
+ q.filter =
+ function(a){
+ return this.a(x(this, a, s), "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]) != 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 < t(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 || w).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, b, h, f, v, C;
+ 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, b = this.length; e < b; e++)if ((h = this[e]) && 1 === h.nodeType)if (!h.className && 1 === d.length)h.className = a; else {
+ f = " " + h.className + " ";
+ for(v = 0, C = d.length; v < C; v++)~f.indexOf(" " + d[v] + " ") || (f += d[v] + " ");
+ h.className = ea(f)
+ }
+ }
+ return this
+ };
+ q.removeClass = function(a){
+ var d, e,
+ b, h, f, v, C;
+ if (g(a))return this.each(function(d){
+ c(this).removeClass(a.call(this, d, this.className))
+ });
+ if (a && D(a) || a === p){
+ d = (a || "").split(ua);
+ for(e = 0, b = this.length; e < b; e++)if (h = this[e], 1 === h.nodeType && h.className)if (a){
+ f = (" " + h.className + " ").replace(ha, " ");
+ for(v = 0, C = d.length; v < C; v++)f = f.replace(" " + d[v] + " ", " ");
+ h.className = ea(f)
+ } else h.className = ""
+ }
+ return this
+ };
+ q.hasClass = function(a){
+ return f(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 || v(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 = f;
+ c.walk = z;
+ c.$$ = n;
+ c.setQuery = function(a){
+ c.query = function(d, e){
+ return n(d, e, a || function(a, d){
+ return d.querySelectorAll(a)
+ })
+ }
+ };
+ q = M.Sizzle || M.qwery;
+ c.setQuery(q || function(a, d){
+ return w.querySelectorAll ? L((d || w).querySelectorAll(a)) : []
+ });
+ c.loadScript = A;
+ c.each = function(a, d, e){
+ var b, h = 0, c = a.length, f = c === p || g(a);
+ if (e)if (f)for(b in a){
+ if (d.apply(a[b], e) === y)break
+ } else for(; h < c && !(d.apply(a[h++], e) === y);); else if (f)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 = r;
+ 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 = t;
+ c._indexOf = E;
+ c._defaults = function(a){
+ r(G.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);
+ r(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 = G.call(arguments, 2), e = function(){
+ return a.apply(d, b.concat(G.call(arguments)))
+ };
+ e.f = a.f = a.f || e.f || Qa++;
+ return e
+ }
+ };
+ c.dir = H;
+ c.nth = N;
+ c.sibling = S;
+ c.grep = F;
+ 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
+ };
+ r("Boolean Number String Function Array Date RegExp Object".split(" "), function(a){
+ ma["[object " + a + "]"] = a.toLowerCase();
+ return this
+ });
+ c.type = J;
+ c.isFunction = g;
+ c.isArray = Array.isArray || v;
+ 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) : s)
+ } : function(){
+ return y
+ };
+ da = ba.compareDocumentPosition ? (fa = function(a, d){
+ return!!(a.compareDocumentPosition(d) & 16)
+ }) && function(a, d){
+ return a === d ? (W = s, 0) : !a.compareDocumentPosition || !d.compareDocumentPosition ? a.compareDocumentPosition ? -1 : 1 : a.compareDocumentPosition(d) & 4 ? -1 : 1
+ } : function(a, d){
+ if (a === d)return W = s, 0;
+ if (a.sourceIndex && d.sourceIndex)return a.sourceIndex - d.sourceIndex;
+ var e, g, h = [], c = [];
+ e = a.parentNode;
+ g = d.parentNode;
+ var f = e;
+ if (e === g)return b(a, d);
+ if (e){
+ if (!g)return 1
+ } else return-1;
+ for(; f;)h.unshift(f), f = f.parentNode;
+ for(f = g; f;)c.unshift(f), f = f.parentNode;
+ e = h.length;
+ g = c.length;
+ for(f = 0; f < e && f < g; f++)if (h[f] !== c[f])return b(h[f], c[f]);
+ return f === e ? b(a, c[f], -1) : b(h[f], d, 1)
+ };
+ c.unique = V;
+ r({parent: function(a){
+ return(a = a.parentNode) && 11 !== a.nodeType ? a : u
+ }, parents: function(a){
+ return H(a, "parentNode")
+ }, parentsUntil: function(a, d, e){
+ return H(a, "parentNode", e)
+ }, next: function(a){
+ return N(a, 2, "nextSibling")
+ }, prev: function(a){
+ return N(a, 2, "previousSibling")
+ }, nextAll: function(a){
+ return H(a, "nextSibling")
+ }, prevAll: function(a){
+ return H(a,
+ "previousSibling")
+ }, nextUntil: function(a, d, e){
+ return H(a, "nextSibling", e)
+ }, prevUntil: function(a, d, e){
+ return H(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 = G.call(arguments);
+ Ia.test(d) || (g = e);
+ "string" == typeof g && (b = t(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(","))
+ }
+ });
+ r({appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after"}, function(a, d){
+ c.fn[d] = function(e){
+ var g = [], e = c(e), b, h;
+ 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, l = e.length; b < l; b++)h = (0 < b ? this.R(s) : 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 = {Q: 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] || ""] = s
+ })();
+ c.scriptsLoaded = function(a){
+ g(a) && Y.push(a)
+ };
+ c.loadAsync = ra;
+ !q && !w.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;
+ r(sa, function(d){
+ a++;
+ A(d.url, function(){
+ try{
+ d.g && d.g()
+ }catch(g){
+ }
+ --a || ta()
+ })
+ });
+ c.init = s;
+ a || ta()
+ }catch(d){
+ I(d)
+ }
+ };
+ w.body && !c.init && setTimeout(c.onload, 1);
+ c.hook = function(a){
+ X.push