forked from bitovi/documentjs
/
production.js
611 lines (611 loc) · 158 KB
/
production.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
steal.plugins("jquery/controller","jquery/controller/history","jquery/view/ejs","jquery/model","jquery/lang/json","jquery/dom/cookie","mxui/filler","mxui/positionable","mxui/menuable").resources("helpers","highlight","languages/javascript","languages/www").models("favorites","search").controllers("documentation","iframe","demo").views("//jmvcdoc/views/attribute.ejs","//jmvcdoc/views/class.ejs","//jmvcdoc/views/constructor.ejs","//jmvcdoc/views/favorite.ejs","//jmvcdoc/views/function.ejs","//jmvcdoc/views/page.ejs",
"//jmvcdoc/views/results.ejs","//jmvcdoc/views/top.ejs","//jmvcdoc/views/iframe/init.ejs","//jmvcdoc/views/iframe/menu.ejs","//jmvcdoc/views/demo/init.ejs").then(function(){var a=window.location.href.match(/docs\/(.*)\.html/);if((a=a&&a[1])&&location.hash=="")window.location.hash="&who="+a});
if(typeof COMMENTS_LOCATION!="undefined"){steal.css("http://mediacdn.disqus.com/1066/build/themes/narcissus.css?1281560657&","http://mediacdn.disqus.com/1066/styles/embed/thread.css?");if(window.location.protocol=="file:"||window.location.hostname=="localhost")window.disqus_developer=1};
;
steal.end();
steal.plugins("jquery/class","jquery/lang","jquery/event/destroyed").then(function(d){var n=function(a,b,c){var e;if(b.indexOf(">")===0){b=b.substr(1);e=function(f){if(f.target===a)c.apply(this,arguments);else f.handled=null}}d(a).bind(b,e||c);return function(){d(a).unbind(b,e||c);a=b=c=e=null}},o=function(a,b,c,e){d(a).delegate(b,c,e);return function(){d(a).undelegate(b,c,e);a=c=e=b=null}},i=function(a,b,c,e){return e?o(a,e,b,c):n(a,b,c)},h=function(a){return function(){return a.apply(null,[d(this)].concat(Array.prototype.slice.call(arguments,
0)))}},p=/\./g,q=/_?controllers?/ig,m=function(a){return d.String.underscore(a.replace(p,"_").replace(q,""))},r=/[^\w]/,s=/^(>?default\.)|(>)/,j=/\{([^\}]+)\}/g,t=/^(?:(.*?)\s)?([\w\.\:>]+)$/,k;d.Class.extend("jQuery.Controller",{init:function(){if(!(!this.shortName||this.fullName=="jQuery.Controller")){this._fullName=m(this.fullName);this._shortName=m(this.shortName);var a=this,b=this._fullName,c;d.fn[b]||(d.fn[b]=function(e){var f=d.makeArray(arguments),u=typeof e=="string"&&d.isFunction(a.prototype[e]),
v=f[0];this.each(function(){var g=d.data(this,"controllers");if(g=g&&g[b])u?g[v].apply(g,f.slice(1)):g.update.apply(g,f);else a.newInstance.apply(a,[this].concat(f))});return this});this.actions={};for(c in this.prototype)if(d.isFunction(this.prototype[c]))if(this._isAction(c))this.actions[c]=this._getAction(c);this.onDocument&&new a(document.documentElement)}},hookup:function(a){return new this(a)},_isAction:function(a){if(r.test(a))return true;else{a=a.replace(s,"");return d.inArray(a,this.listensTo)>
-1||d.event.special[a]||d.Controller.processors[a]}},_getAction:function(a,b){j.lastIndex=0;if(!b&&j.test(a))return null;a=(b?a.replace(j,function(c,e){return d.Class.getObject(e,b).toString()}):a).match(t);return{processor:this.processors[a[2]]||k,parts:a}},processors:{},listensTo:[]},{setup:function(a,b){var c,e=this.Class;a=a.jquery?a[0]:a;this.element=d(a).addClass(e._fullName);(d.data(a,"controllers")||d.data(a,"controllers",{}))[e._fullName]=this;this._bindings=[];this.options=d.extend(d.extend(true,
{},e.defaults),b);for(c in e.actions){b=e.actions[c]||e._getAction(c,this.options);this._bindings.push(b.processor(a,b.parts[2],b.parts[1],this.callback(c),this))}this.called="init";var f=h(this.callback("destroy"));this.element.bind("destroyed",f);this._bindings.push(function(){f.removed=true;d(a).unbind("destroyed",f)});return this.element},bind:function(a,b,c){if(typeof a=="string"){c=b;b=a;a=this.element}return this._binder(a,b,c)},_binder:function(a,b,c,e){if(typeof c=="string")c=h(this.callback(c));
this._bindings.push(i(a,b,c,e));return this._bindings.length},delegate:function(a,b,c,e){if(typeof a=="string"){e=c;c=b;b=a;a=this.element}return this._binder(a,c,e,b)},update:function(a){d.extend(this.options,a)},destroy:function(){if(this._destroyed)throw this.Class.shortName+" controller instance has been deleted";var a=this,b=this.Class._fullName;this._destroyed=true;this.element.removeClass(b);d.each(this._bindings,function(e,f){d.isFunction(f)&&f(a.element[0])});delete this._actions;var c=this.element.data("controllers");
c&&c[b]&&delete c[b];d(this).triggerHandler("destroyed");this.element=null},find:function(a){return this.element.find(a)},_set_called:true});k=function(a,b,c,e,f){f=f.Class;if(f.onDocument&&!/^Main(Controller)?$/.test(f.shortName))c=c?"#"+f._shortName+" "+c:"#"+f._shortName;return i(a,b,h(e),c)};var l=d.Controller.processors,w=function(a,b,c,e){return i(window,b.replace(/window/,""),h(e))};d.each("change click contextmenu dblclick keydown keyup keypress mousedown mousemove mouseout mouseover mouseup reset windowresize resize windowscroll scroll select submit dblclick focusin focusout load unload ready hashchange mouseenter mouseleave".split(" "),
function(a,b){l[b]=k});d.each(["windowresize","windowscroll","load","ready","unload","hashchange"],function(a,b){l[b]=w});l.ready=function(a,b,c,e){d(h(e))};d.fn.mixin=function(){var a=d.makeArray(arguments);return this.each(function(){for(var b=0;b<a.length;b++)new a[b](this)})};var x=function(a,b){for(var c=0;c<b.length;c++)if(typeof b[c]=="string"?a.Class._shortName==b[c]:a instanceof b[c])return true;return false};d.fn.controllers=function(){var a=d.makeArray(arguments),b=[],c;this.each(function(){if(c=
d.data(this,"controllers"))for(var e in c){var f=c[e];if(!a.length||x(f,a))b.push(f)}});return b};d.fn.controller=function(){return this.controllers.apply(this,arguments)[0]}});
;
steal.end();
steal.plugin("jquery").then(function(g){var j=false,n=/xyz/.test(function(){})?/\b_super\b/:/.*/,m=function(a,c,d){d=d||a;for(var b in a)d[b]=typeof a[b]=="function"&&typeof c[b]=="function"&&n.test(a[b])?function(h,i){return function(){var e=this._super,f;this._super=c[h];f=i.apply(this,arguments);this._super=e;return f}}(b,a[b]):a[b]};jQuery.Class=function(){arguments.length&&this.extend.apply(this,arguments)};g.extend(g.Class,{callback:function(a){var c=jQuery.makeArray(arguments),d;a=c.shift();
jQuery.isArray(a)||(a=[a]);d=this;return function(){for(var b=c.concat(jQuery.makeArray(arguments)),h,i=a.length,e=0,f;e<i;e++)if(f=a[e]){if((h=typeof f=="string")&&d._set_called)d.called=f;b=(h?d[f]:f).apply(d,b||[]);if(e<i-1)b=!jQuery.isArray(b)||b._use_call?[b]:b}return b}},getObject:function(a,c){c=c||window;a=a?a.split(/\./):[];for(var d=0;d<a.length;d++)c=c[a[d]]||(c[a[d]]={});return c},newInstance:function(){var a=this.rawInstance(),c;if(a.setup)c=a.setup.apply(a,arguments);if(a.init)a.init.apply(a,
g.isArray(c)?c:arguments);return a},setup:function(a){this.defaults=g.extend(true,{},a.defaults,this.defaults);return arguments},rawInstance:function(){j=true;var a=new this;j=false;return a},extend:function(a,c,d){function b(){if(!j)return this.constructor!==b&&arguments.length?this.extend.apply(this,arguments):this.Class.newInstance.apply(this.Class,arguments)}if(typeof a!="string"){d=c;c=a;a=null}if(!d){d=c;c=null}d=d||{};var h=this,i=this.prototype,e,f,k,l;j=true;l=new this;j=false;m(d,i,l);for(e in this)if(this.hasOwnProperty(e)&&
g.inArray(e,["prototype","defaults","getObject"])==-1)b[e]=this[e];m(c,this,b);if(a){k=a.split(/\./);f=k.pop();k=i=g.Class.getObject(k.join("."));i[f]=b}g.extend(b,{prototype:l,namespace:k,shortName:f,constructor:b,fullName:a});b.prototype.Class=b.prototype.constructor=b;h=b.setup.apply(b,[h].concat(g.makeArray(arguments)));if(b.init)b.init.apply(b,h||[]);return b}});jQuery.Class.prototype.callback=jQuery.Class.callback})();
;
steal.end();
(function(L,I){var B=L.document,O=function(){function a(){if(!p.isReady){try{B.documentElement.doScroll("left")}catch(k){setTimeout(a,1);return}p.ready()}}var p=function(k,u){return new p.fn.init(k,u)},E=L.jQuery,x=L.$,v,s=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,z=/\S/,t=/^\s+/,l=/\s+$/,h=/\W/,n=/\d/,q=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,y=/^[\],:{}\s]*$/,A=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,j=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,i=/(?:^|:|,)(?:\s*\[)+/g,g=/(webkit)[ \/]([\w.]+)/,
c=/(opera)(?:.*version)?[ \/]([\w.]+)/,d=/(msie) ([\w.]+)/,b=/(mozilla)(?:.*? rv:([\w.]+))?/,e=navigator.userAgent,f=false,m=[],o,r=Object.prototype.toString,w=Object.prototype.hasOwnProperty,F=Array.prototype.push,J=Array.prototype.slice,G=String.prototype.trim,C=Array.prototype.indexOf,K={};p.fn=p.prototype={init:function(k,u){var D,H;if(!k)return this;if(k.nodeType){this.context=this[0]=k;this.length=1;return this}if(k==="body"&&!u&&B.body){this.context=B;this[0]=B.body;this.selector="body";this.length=
1;return this}if(typeof k==="string")if((D=s.exec(k))&&(D[1]||!u))if(D[1]){H=u?u.ownerDocument||u:B;if(k=q.exec(k))if(p.isPlainObject(u)){k=[B.createElement(k[1])];p.fn.attr.call(k,u,true)}else k=[H.createElement(k[1])];else{k=p.buildFragment([D[1]],[H]);k=(k.cacheable?k.fragment.cloneNode(true):k.fragment).childNodes}return p.merge(this,k)}else{if((u=B.getElementById(D[2]))&&u.parentNode){if(u.id!==D[2])return v.find(k);this.length=1;this[0]=u}this.context=B;this.selector=k;return this}else if(!u&&
!h.test(k)){this.selector=k;this.context=B;k=B.getElementsByTagName(k);return p.merge(this,k)}else return!u||u.jquery?(u||v).find(k):p(u).find(k);else if(p.isFunction(k))return v.ready(k);if(k.selector!==I){this.selector=k.selector;this.context=k.context}return p.makeArray(k,this)},selector:"",jquery:"1.4.4pre",length:0,size:function(){return this.length},toArray:function(){return J.call(this,0)},get:function(k){return k==null?this.toArray():k<0?this.slice(k)[0]:this[k]},pushStack:function(k,u,D){var H=
p();p.isArray(k)?F.apply(H,k):p.merge(H,k);H.prevObject=this;H.context=this.context;if(u==="find")H.selector=this.selector+(this.selector?" ":"")+D;else if(u)H.selector=this.selector+"."+u+"("+D+")";return H},each:function(k,u){return p.each(this,k,u)},ready:function(k){p.bindReady();if(p.isReady)k.call(B,p);else m&&m.push(k);return this},eq:function(k){return k===-1?this.slice(k):this.slice(k,+k+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(J.apply(this,
arguments),"slice",J.call(arguments).join(","))},map:function(k){return this.pushStack(p.map(this,function(u,D){return k.call(u,D,u)}))},end:function(){return this.prevObject||p(null)},push:F,sort:[].sort,splice:[].splice};p.fn.init.prototype=p.fn;p.extend=p.fn.extend=function(){var k=arguments[0]||{},u=1,D=arguments.length,H=false,M,N,P,Q,R;if(typeof k==="boolean"){H=k;k=arguments[1]||{};u=2}if(typeof k!=="object"&&!p.isFunction(k))k={};if(D===u){k=this;--u}for(;u<D;u++)if((M=arguments[u])!=null)for(N in M){P=
k[N];Q=M[N];if(k!==Q)if(H&&Q&&(p.isPlainObject(Q)||(R=p.isArray(Q)))){if(R){R=false;clone=P&&p.isArray(P)?P:[]}else clone=P&&p.isPlainObject(P)?P:{};k[N]=p.extend(H,clone,Q)}else if(Q!==I)k[N]=Q}return k};p.extend({noConflict:function(k){L.$=x;if(k)L.jQuery=E;return p},isReady:false,readyWait:1,ready:function(k){k===true&&p.readyWait--;if(!p.readyWait||k!==true&&!p.isReady){if(!B.body)return setTimeout(p.ready,1);p.isReady=true;if(!(k!==true&&--p.readyWait>0)){if(m){for(var u=0;k=m[u++];)k.call(B,
p);m=null}p.fn.triggerHandler&&p(B).triggerHandler("ready")}}},bindReady:function(){if(!f){f=true;if(B.readyState==="complete")return setTimeout(p.ready,1);if(B.addEventListener){B.addEventListener("DOMContentLoaded",o,false);L.addEventListener("load",p.ready,false)}else if(B.attachEvent){B.attachEvent("onreadystatechange",o);L.attachEvent("onload",p.ready);var k=false;try{k=L.frameElement==null}catch(u){}B.documentElement.doScroll&&k&&a()}}},isFunction:function(k){return p.type(k)==="function"},
isArray:Array.isArray||function(k){return p.type(k)==="array"},isWindow:function(k){return k&&typeof k==="object"&&"setInterval"in k},isNaN:function(k){return k==null||!n.test(k)||isNaN(k)},type:function(k){return k==null?String(k):K[r.call(k)]||"object"},isPlainObject:function(k){if(!k||p.type(k)!=="object"||k.nodeType||p.isWindow(k))return false;if(k.constructor&&!w.call(k,"constructor")&&!w.call(k.constructor.prototype,"isPrototypeOf"))return false;var u;for(u in k);return u===I||w.call(k,u)},
isEmptyObject:function(k){for(var u in k)return false;return true},error:function(k){throw k;},parseJSON:function(k){if(typeof k!=="string"||!k)return null;k=p.trim(k);if(y.test(k.replace(A,"@").replace(j,"]").replace(i,"")))return L.JSON&&L.JSON.parse?L.JSON.parse(k):(new Function("return "+k))();else p.error("Invalid JSON: "+k)},noop:function(){},globalEval:function(k){if(k&&z.test(k)){var u=B.getElementsByTagName("head")[0]||B.documentElement,D=B.createElement("script");D.type="text/javascript";
if(p.support.scriptEval)D.appendChild(B.createTextNode(k));else D.text=k;u.insertBefore(D,u.firstChild);u.removeChild(D)}},nodeName:function(k,u){return k.nodeName&&k.nodeName.toUpperCase()===u.toUpperCase()},each:function(k,u,D){var H,M=0,N=k.length,P=N===I||p.isFunction(k);if(D)if(P)for(H in k){if(u.apply(k[H],D)===false)break}else for(;M<N;){if(u.apply(k[M++],D)===false)break}else if(P)for(H in k){if(u.call(k[H],H,k[H])===false)break}else for(D=k[0];M<N&&u.call(D,M,D)!==false;D=k[++M]);return k},
trim:G?function(k){return k==null?"":G.call(k)}:function(k){return k==null?"":k.toString().replace(t,"").replace(l,"")},makeArray:function(k,u){u=u||[];if(k!=null){var D=p.type(k);k.length==null||D==="string"||D==="function"||D==="regexp"||p.isWindow(k)?F.call(u,k):p.merge(u,k)}return u},inArray:function(k,u){if(u.indexOf)return u.indexOf(k);for(var D=0,H=u.length;D<H;D++)if(u[D]===k)return D;return-1},merge:function(k,u){var D=k.length,H=0;if(typeof u.length==="number")for(var M=u.length;H<M;H++)k[D++]=
u[H];else for(;u[H]!==I;)k[D++]=u[H++];k.length=D;return k},grep:function(k,u,D){var H=[],M;D=!!D;for(var N=0,P=k.length;N<P;N++){M=!!u(k[N],N);D!==M&&H.push(k[N])}return H},map:function(k,u,D){for(var H=[],M,N=0,P=k.length;N<P;N++){M=u(k[N],N,D);if(M!=null)H[H.length]=M}return H.concat.apply([],H)},guid:1,proxy:function(k,u,D){if(arguments.length===2)if(typeof u==="string"){D=k;k=D[u];u=I}else if(u&&!p.isFunction(u)){D=u;u=I}if(!u&&k)u=function(){return k.apply(D||this,arguments)};if(k)u.guid=k.guid=
k.guid||u.guid||p.guid++;return u},access:function(k,u,D,H,M,N){var P=k.length;if(typeof u==="object"){for(var Q in u)p.access(k,Q,u[Q],H,M,D);return k}if(D!==I){H=!N&&H&&p.isFunction(D);for(Q=0;Q<P;Q++)M(k[Q],u,H?D.call(k[Q],Q,M(k[Q],u)):D,N);return k}return P?M(k[0],u):I},now:function(){return(new Date).getTime()},uaMatch:function(k){k=k.toLowerCase();k=g.exec(k)||c.exec(k)||d.exec(k)||k.indexOf("compatible")<0&&b.exec(k)||[];return{browser:k[1]||"",version:k[2]||"0"}},browser:{}});p.each("Boolean Number String Function Array Date RegExp Object".split(" "),
function(k,u){K["[object "+u+"]"]=u.toLowerCase()});e=p.uaMatch(e);if(e.browser){p.browser[e.browser]=true;p.browser.version=e.version}if(p.browser.webkit)p.browser.safari=true;if(C)p.inArray=function(k,u){return C.call(u,k)};if(!/\s/.test("\u00a0")){t=/^[\s\xA0]+/;l=/[\s\xA0]+$/}v=p(B);if(B.addEventListener)o=function(){B.removeEventListener("DOMContentLoaded",o,false);p.ready()};else if(B.attachEvent)o=function(){if(B.readyState==="complete"){B.detachEvent("onreadystatechange",o);p.ready()}};return L.jQuery=
L.$=p}();(function(a){(function(){a.support={};var p=B.documentElement,E=B.createElement("script"),x=B.createElement("div"),v="script"+a.now();x.style.display="none";x.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var s=x.getElementsByTagName("*"),z=x.getElementsByTagName("a")[0],t=B.createElement("select"),l=t.appendChild(B.createElement("option"));if(!(!s||!s.length||!z)){a.support={leadingWhitespace:x.firstChild.nodeType===
3,tbody:!x.getElementsByTagName("tbody").length,htmlSerialize:!!x.getElementsByTagName("link").length,style:/red/.test(z.getAttribute("style")),hrefNormalized:z.getAttribute("href")==="/a",opacity:/^0.55$/.test(z.style.opacity),cssFloat:!!z.style.cssFloat,checkOn:x.getElementsByTagName("input")[0].value==="on",optSelected:l.selected,optDisabled:false,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};t.disabled=
true;a.support.optDisabled=!l.disabled;E.type="text/javascript";try{E.appendChild(B.createTextNode("window."+v+"=1;"))}catch(h){}p.insertBefore(E,p.firstChild);if(L[v]){a.support.scriptEval=true;delete L[v]}p.removeChild(E);if(x.attachEvent&&x.fireEvent){x.attachEvent("onclick",function n(){a.support.noCloneEvent=false;x.detachEvent("onclick",n)});x.cloneNode(true).fireEvent("onclick")}x=B.createElement("div");x.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";p=B.createDocumentFragment();
p.appendChild(x.firstChild);a.support.checkClone=p.cloneNode(true).cloneNode(true).lastChild.checked;a(function(){var n=B.createElement("div");n.style.width=n.style.paddingLeft="1px";B.body.appendChild(n);a.boxModel=a.support.boxModel=n.offsetWidth===2;if("zoom"in n.style){n.style.display="inline";n.style.zoom=1;a.support.inlineBlockNeedsLayout=n.offsetWidth===2;n.style.display="";n.innerHTML="<div style='width:4px;'></div>";a.support.shrinkWrapBlocks=n.offsetWidth!==2}n.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";
var q=n.getElementsByTagName("td");a.support.reliableHiddenOffsets=q[0].offsetHeight===0;q[0].style.display="";q[1].style.display="none";a.support.reliableHiddenOffsets=a.support.reliableHiddenOffsets&&q[0].offsetHeight===0;n.innerHTML="";B.body.removeChild(n).style.display="none"});p=function(n){var q=B.createElement("div");n="on"+n;var y=n in q;if(!y){q.setAttribute(n,"return;");y=typeof q[n]==="function"}return y};a.support.submitBubbles=p("submit");a.support.changeBubbles=p("change");p=E=x=s=
z=null}})();a.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"}})(O);(function(a){var p={},E=/^(?:\{.*\}|\[.*\])$/;a.extend({cache:{},uuid:0,expando:"jQuery"+a.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(x,v,s){if(a.acceptData(x)){x=x==L?p:x;var z=x.nodeType,t=z?x[a.expando]:null,
l=a.cache;if(!(z&&!t&&typeof v==="string"&&s===I)){if(z)t||(x[a.expando]=t=++a.uuid);else l=x;if(typeof v==="object")if(z)l[t]=a.extend(l[t],v);else a.extend(l,v);else if(z&&!l[t])l[t]={};x=z?l[t]:l;if(s!==I)x[v]=s;return typeof v==="string"?x[v]:x}}},removeData:function(x,v){if(a.acceptData(x)){x=x==L?p:x;var s=x.nodeType,z=s?x[a.expando]:x,t=a.cache,l=s?t[z]:z;if(v){if(l){delete l[v];s&&a.isEmptyObject(l)&&a.removeData(x)}}else if(s&&a.support.deleteExpando)delete x[a.expando];else if(x.removeAttribute)x.removeAttribute(a.expando);
else if(s)delete t[z];else for(var h in x)delete x[h]}},acceptData:function(x){if(x.nodeName){var v=a.noData[x.nodeName.toLowerCase()];if(v)return!(v===true||x.getAttribute("classid")!==v)}return true}});a.fn.extend({data:function(x,v){if(typeof x==="undefined")return this.length?a.data(this[0]):null;else if(typeof x==="object")return this.each(function(){a.data(this,x)});var s=x.split(".");s[1]=s[1]?"."+s[1]:"";if(v===I){var z=this.triggerHandler("getData"+s[1]+"!",[s[0]]);if(z===I&&this.length){z=
a.data(this[0],x);if(z===I&&this[0].nodeType===1){z=this[0].getAttribute("data-"+x);if(typeof z==="string")try{z=z==="true"?true:z==="false"?false:z==="null"?null:!a.isNaN(z)?parseFloat(z):E.test(z)?a.parseJSON(z):z}catch(t){}else z=I}}return z===I&&s[1]?this.data(s[0]):z}else return this.each(function(){var l=a(this),h=[s[0],v];l.triggerHandler("setData"+s[1]+"!",h);a.data(this,x,v);l.triggerHandler("changeData"+s[1]+"!",h)})},removeData:function(x){return this.each(function(){a.removeData(this,
x)})}})})(O);(function(a){a.extend({queue:function(p,E,x){if(p){E=(E||"fx")+"queue";var v=a.data(p,E);if(!x)return v||[];if(!v||a.isArray(x))v=a.data(p,E,a.makeArray(x));else v.push(x);return v}},dequeue:function(p,E){E=E||"fx";var x=a.queue(p,E),v=x.shift();if(v==="inprogress")v=x.shift();if(v){E==="fx"&&x.unshift("inprogress");v.call(p,function(){a.dequeue(p,E)})}}});a.fn.extend({queue:function(p,E){if(typeof p!=="string"){E=p;p="fx"}if(E===I)return a.queue(this[0],p);return this.each(function(){var x=
a.queue(this,p,E);p==="fx"&&x[0]!=="inprogress"&&a.dequeue(this,p)})},dequeue:function(p){return this.each(function(){a.dequeue(this,p)})},delay:function(p,E){p=a.fx?a.fx.speeds[p]||p:p;E=E||"fx";return this.queue(E,function(){var x=this;setTimeout(function(){a.dequeue(x,E)},p)})},clearQueue:function(p){return this.queue(p||"fx",[])}})})(O);(function(a){var p=/[\n\t]/g,E=/\s+/,x=/\r/g,v=/^(?:href|src|style)$/,s=/^(?:button|input)$/i,z=/^(?:button|input|object|select|textarea)$/i,t=/^a(?:rea)?$/i,
l=/^(?:radio|checkbox)$/i;a.fn.extend({attr:function(h,n){return a.access(this,h,n,true,a.attr)},removeAttr:function(h){return this.each(function(){a.attr(this,h,"");this.nodeType===1&&this.removeAttribute(h)})},addClass:function(h){if(a.isFunction(h))return this.each(function(d){var b=a(this);b.addClass(h.call(this,d,b.attr("class")))});if(h&&typeof h==="string")for(var n=(h||"").split(E),q=0,y=this.length;q<y;q++){var A=this[q];if(A.nodeType===1)if(A.className){for(var j=" "+A.className+" ",i=A.className,
g=0,c=n.length;g<c;g++)if(j.indexOf(" "+n[g]+" ")<0)i+=" "+n[g];A.className=a.trim(i)}else A.className=h}return this},removeClass:function(h){if(a.isFunction(h))return this.each(function(c){var d=a(this);d.removeClass(h.call(this,c,d.attr("class")))});if(h&&typeof h==="string"||h===I)for(var n=(h||"").split(E),q=0,y=this.length;q<y;q++){var A=this[q];if(A.nodeType===1&&A.className)if(h){for(var j=(" "+A.className+" ").replace(p," "),i=0,g=n.length;i<g;i++)j=j.replace(" "+n[i]+" "," ");A.className=
a.trim(j)}else A.className=""}return this},toggleClass:function(h,n){var q=typeof h,y=typeof n==="boolean";if(a.isFunction(h))return this.each(function(A){var j=a(this);j.toggleClass(h.call(this,A,j.attr("class"),n),n)});return this.each(function(){if(q==="string")for(var A,j=0,i=a(this),g=n,c=h.split(E);A=c[j++];){g=y?g:!i.hasClass(A);i[g?"addClass":"removeClass"](A)}else if(q==="undefined"||q==="boolean"){this.className&&a.data(this,"__className__",this.className);this.className=this.className||
h===false?"":a.data(this,"__className__")||""}})},hasClass:function(h){h=" "+h+" ";for(var n=0,q=this.length;n<q;n++)if((" "+this[n].className+" ").replace(p," ").indexOf(h)>-1)return true;return false},val:function(h){if(!arguments.length){var n=this[0];if(n){if(a.nodeName(n,"option")){var q=n.attributes.value;return!q||q.specified?n.value:n.text}if(a.nodeName(n,"select")){var y=n.selectedIndex;q=[];var A=n.options;n=n.type==="select-one";if(y<0)return null;var j=n?y:0;for(y=n?y+1:A.length;j<y;j++){var i=
A[j];if(i.selected&&(a.support.optDisabled?!i.disabled:i.getAttribute("disabled")===null)&&(!i.parentNode.disabled||!a.nodeName(i.parentNode,"optgroup"))){h=a(i).val();if(n)return h;q.push(h)}}return q}if(l.test(n.type)&&!a.support.checkOn)return n.getAttribute("value")===null?"on":n.value;return(n.value||"").replace(x,"")}return I}var g=a.isFunction(h);return this.each(function(c){var d=a(this),b=h;if(this.nodeType===1){if(g)b=h.call(this,c,d.val());if(b==null)b="";else if(typeof b==="number")b+=
"";else if(a.isArray(b))b=a.map(b,function(f){return f==null?"":f+""});if(a.isArray(b)&&l.test(this.type))this.checked=a.inArray(d.val(),b)>=0;else if(a.nodeName(this,"select")){var e=a.makeArray(b);a("option",this).each(function(){this.selected=a.inArray(a(this).val(),e)>=0});if(!e.length)this.selectedIndex=-1}else this.value=b}})}});a.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(h,n,q,y){if(!h||h.nodeType===3||h.nodeType===8)return I;
if(y&&n in a.attrFn)return a(h)[n](q);y=h.nodeType!==1||!a.isXMLDoc(h);var A=q!==I;n=y&&a.props[n]||n;if(h.nodeType===1){var j=v.test(n);if((n in h||h[n]!==I)&&y&&!j){if(A){n==="type"&&s.test(h.nodeName)&&h.parentNode&&a.error("type property can't be changed");if(q===null)h.nodeType===1&&h.removeAttribute(n);else h[n]=q}if(a.nodeName(h,"form")&&h.getAttributeNode(n))return h.getAttributeNode(n).nodeValue;if(n==="tabIndex")return(n=h.getAttributeNode("tabIndex"))&&n.specified?n.value:z.test(h.nodeName)||
t.test(h.nodeName)&&h.href?0:I;return h[n]}if(!a.support.style&&y&&n==="style"){if(A)h.style.cssText=""+q;return h.style.cssText}A&&h.setAttribute(n,""+q);if(!h.attributes[n]&&h.hasAttribute&&!h.hasAttribute(n))return I;h=!a.support.hrefNormalized&&y&&j?h.getAttribute(n,2):h.getAttribute(n);return h===null?I:h}}})})(O);(function(a){function p(){return false}function E(){return true}function x(b,e,f){f[0].type=b;return a.event.handle.apply(e,f)}function v(b){var e,f,m=[],o=[],r,w,F,J,G,C,K,k;G=a.data(this,
this.nodeType?"events":"__events__");if(typeof G==="function")G=G.events;if(!(b.liveFired===this||!G||!G.live||b.button&&b.type==="click")){if(b.namespace)k=new RegExp("(^|\\.)"+b.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");b.liveFired=this;var u=G.live.slice(0);for(J=0;J<u.length;J++){w=u[J];w.origType.replace(z,"")===b.type?o.push(w.selector):u.splice(J--,1)}o=a(b.target).closest(o,b.currentTarget);G=0;for(C=o.length;G<C;G++){K=o[G];for(J=0;J<u.length;J++){w=u[J];if(K.selector===w.selector&&
(!k||k.test(w.namespace))){F=K.elem;r=null;if(w.preType==="mouseenter"||w.preType==="mouseleave"){b.type=w.preType;r=a(b.relatedTarget).closest(w.selector)[0]}if(!r||r!==F)m.push({elem:F,handleObj:w,level:K.level})}}}G=0;for(C=m.length;G<C;G++){o=m[G];if(f&&o.level>f)break;b.currentTarget=o.elem;b.data=o.handleObj.data;b.handleObj=o.handleObj;w=b.handled;k=o.handleObj.origHandler.apply(o.elem,arguments);b.handled=b.handled===null?w:true;if(k===false||b.isPropagationStopped()){f=o.level;if(k===false)e=
false}}return e}}function s(b,e){return(b&&b!=="*"?b+".":"")+e.replace(l,"`").replace(h,"&")}var z=/\.(.*)$/,t=/^(?:textarea|input|select)$/i,l=/\./g,h=/ /g,n=/[^\w\s.|`]/g,q=function(b){return b.replace(n,"\\$&")},y={focusin:0,focusout:0};a.event={add:function(b,e,f,m){if(!(b.nodeType===3||b.nodeType===8)){if(a.isWindow(b)&&b!==L&&!b.frameElement)b=L;if(f===false)f=p;var o,r;if(f.handler){o=f;f=o.handler}if(!f.guid)f.guid=a.guid++;if(r=a.data(b)){var w=b.nodeType?"events":"__events__",F=r[w],J=r.handle;
if(typeof F==="function"){J=F.handle;F=F.events}else if(!F){b.nodeType||(r[w]=r=function(){});r.events=F={}}if(!J)r.handle=J=function(){return typeof a!=="undefined"&&!a.event.triggered?a.event.handle.apply(J.elem,arguments):I};J.elem=b;e=e.split(" ");for(var G=0,C;w=e[G++];){r=o?a.extend({},o):{handler:f,data:m};if(w.indexOf(".")>-1){C=w.split(".");w=C.shift();r.namespace=C.slice(0).sort().join(".")}else{C=[];r.namespace=""}r.type=w;if(!r.guid)r.guid=f.guid;var K=F[w],k=a.event.special[w]||{};if(!K){K=
F[w]=[];if(!k.setup||k.setup.call(b,m,C,J)===false)if(b.addEventListener)b.addEventListener(w,J,false);else b.attachEvent&&b.attachEvent("on"+w,J)}if(k.add){k.add.call(b,r);if(!r.handler.guid)r.handler.guid=f.guid}K.push(r);a.event.global[w]=true}b=null}}},global:{},remove:function(b,e,f,m){if(!(b.nodeType===3||b.nodeType===8)){if(f===false)f=p;var o,r,w=0,F,J,G,C,K,k,u=b.nodeType?"events":"__events__",D=a.data(b),H=D&&D[u];if(D&&H){if(typeof H==="function"){D=H;H=H.events}if(e&&e.type){f=e.handler;
e=e.type}if(!e||typeof e==="string"&&e.charAt(0)==="."){e=e||"";for(o in H)a.event.remove(b,o+e)}else{for(e=e.split(" ");o=e[w++];){C=o;F=o.indexOf(".")<0;J=[];if(!F){J=o.split(".");o=J.shift();G=new RegExp("(^|\\.)"+a.map(J.slice(0).sort(),q).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(K=H[o])if(f){C=a.event.special[o]||{};for(r=m||0;r<K.length;r++){k=K[r];if(f.guid===k.guid){if(F||G.test(k.namespace)){m==null&&K.splice(r--,1);C.remove&&C.remove.call(b,k)}if(m!=null)break}}if(K.length===0||m!=null&&K.length===
1){if(!C.teardown||C.teardown.call(b,J)===false)a.removeEvent(b,o,D.handle);delete H[o]}}else for(r=0;r<K.length;r++){k=K[r];if(F||G.test(k.namespace)){a.event.remove(b,C,k.handler,r);K.splice(r--,1)}}}if(a.isEmptyObject(H)){if(e=D.handle)e.elem=null;delete D.events;delete D.handle;if(typeof D==="function")a.removeData(b,u);else a.isEmptyObject(D)&&a.removeData(b)}}}}},trigger:function(b,e,f,m){var o=b.type||b;if(!m){b=typeof b==="object"?b[a.expando]?b:a.extend(a.Event(o),b):a.Event(o);if(o.indexOf("!")>=
0){b.type=o=o.slice(0,-1);b.exclusive=true}if(!f){b.stopPropagation();a.event.global[o]&&a.each(a.cache,function(){this.events&&this.events[o]&&a.event.trigger(b,e,this.handle.elem)})}if(!f||f.nodeType===3||f.nodeType===8)return I;b.result=I;b.target=f;e=a.makeArray(e);e.unshift(b)}b.currentTarget=f;(m=f.nodeType?a.data(f,"handle"):(a.data(f,"__events__")||{}).handle)&&m.apply(f,e);m=f.parentNode||f.ownerDocument;try{if(!(f&&f.nodeName&&a.noData[f.nodeName.toLowerCase()]))if(f["on"+o]&&f["on"+o].apply(f,
e)===false){b.result=false;b.preventDefault()}}catch(r){}if(!b.isPropagationStopped()&&m)a.event.trigger(b,e,m,true);else if(!b.isDefaultPrevented()){m=b.target;var w,F=o.replace(z,""),J=a.nodeName(m,"a")&&F==="click",G=a.event.special[F]||{};if((!G._default||G._default.call(f,b)===false)&&!J&&!(m&&m.nodeName&&a.noData[m.nodeName.toLowerCase()])){try{if(m[F]){if(w=m["on"+F])m["on"+F]=null;a.event.triggered=true;m[F]()}}catch(C){}if(w)m["on"+F]=w;a.event.triggered=false}}},handle:function(b){var e,
f,m;f=[];var o,r=a.makeArray(arguments);b=r[0]=a.event.fix(b||L.event);b.currentTarget=this;e=b.type.indexOf(".")<0&&!b.exclusive;if(!e){m=b.type.split(".");b.type=m.shift();f=m.slice(0).sort();m=new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.)?")+"(\\.|$)")}b.namespace=b.namespace||f.join(".");o=a.data(this,this.nodeType?"events":"__events__");if(typeof o==="function")o=o.events;f=(o||{})[b.type];if(o&&f){f=f.slice(0);o=0;for(var w=f.length;o<w;o++){var F=f[o];if(e||m.test(F.namespace)){b.handler=F.handler;
b.data=F.data;b.handleObj=F;var J=b.handled,G=F.handler.apply(this,r);b.handled=b.handled===null||F.handler===v?J:true;if(G!==I){b.result=G;if(G===false){b.preventDefault();b.stopPropagation()}}if(b.isImmediatePropagationStopped())break}}}return b.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(b){if(b[a.expando])return b;var e=b;b=a.Event(e);for(var f=this.props.length,m;f;){m=this.props[--f];b[m]=e[m]}if(!b.target)b.target=b.srcElement||B;if(b.target.nodeType===3)b.target=b.target.parentNode;if(!b.relatedTarget&&b.fromElement)b.relatedTarget=b.fromElement===b.target?b.toElement:b.fromElement;if(b.pageX==null&&b.clientX!=null){e=B.documentElement;f=B.body;b.pageX=b.clientX+(e&&e.scrollLeft||f&&f.scrollLeft||0)-(e&&e.clientLeft||f&&f.clientLeft||0);b.pageY=b.clientY+(e&&e.scrollTop||
f&&f.scrollTop||0)-(e&&e.clientTop||f&&f.clientTop||0)}if(b.which==null&&(b.charCode!=null||b.keyCode!=null))b.which=b.charCode!=null?b.charCode:b.keyCode;if(!b.metaKey&&b.ctrlKey)b.metaKey=b.ctrlKey;if(!b.which&&b.button!==I)b.which=b.button&1?1:b.button&2?3:b.button&4?2:0;return b},guid:1E8,proxy:a.proxy,special:{ready:{setup:a.bindReady,teardown:a.noop},live:{add:function(b){a.event.add(this,s(b.origType,b.selector),a.extend({},b,{handler:v,guid:b.handler.guid}))},remove:function(b){a.event.remove(this,
s(b.origType,b.selector),b)}},beforeunload:{setup:function(b,e,f){if(a.isWindow(this))this.onbeforeunload=f},teardown:function(b,e){if(this.onbeforeunload===e)this.onbeforeunload=null}}}};a.removeEvent=B.removeEventListener?function(b,e,f){b.removeEventListener&&b.removeEventListener(e,f,false)}:function(b,e,f){b.detachEvent&&b.detachEvent("on"+e,f)};a.Event=function(b){if(!this.preventDefault)return new a.Event(b);if(b&&b.type){this.originalEvent=b;this.type=b.type}else this.type=b;this.timeStamp=
a.now();this[a.expando]=true};a.Event.prototype={preventDefault:function(){this.isDefaultPrevented=E;var b=this.originalEvent;if(b)if(b.preventDefault)b.preventDefault();else b.returnValue=false},stopPropagation:function(){this.isPropagationStopped=E;var b=this.originalEvent;if(b){b.stopPropagation&&b.stopPropagation();b.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=E;this.stopPropagation()},isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p};
var A=function(b){var e=b.relatedTarget;try{for(;e&&e!==this;)e=e.parentNode;if(e!==this){b.type=b.data;a.event.handle.apply(this,arguments)}}catch(f){}},j=function(b){b.type=b.data;a.event.handle.apply(this,arguments)};a.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(b,e){a.event.special[b]={setup:function(f){a.event.add(this,e,f&&f.selector?j:A,b)},teardown:function(f){a.event.remove(this,e,f&&f.selector?j:A)}}});if(!a.support.submitBubbles)a.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!==
"form"){a.event.add(this,"click.specialSubmit",function(b){var e=b.target,f=e.type;if((f==="submit"||f==="image")&&a(e).closest("form").length){b.liveFired=I;return x("submit",this,arguments)}});a.event.add(this,"keypress.specialSubmit",function(b){var e=b.target,f=e.type;if((f==="text"||f==="password")&&a(e).closest("form").length&&b.keyCode===13){b.liveFired=I;return x("submit",this,arguments)}})}else return false},teardown:function(){a.event.remove(this,".specialSubmit")}};if(!a.support.changeBubbles){var i,
g=function(b){var e=b.type,f=b.value;if(e==="radio"||e==="checkbox")f=b.checked;else if(e==="select-multiple")f=b.selectedIndex>-1?a.map(b.options,function(m){return m.selected}).join("-"):"";else if(b.nodeName.toLowerCase()==="select")f=b.selectedIndex;return f},c=function(b,e){var f=b.target,m,o;if(!(!t.test(f.nodeName)||f.readOnly)){m=a.data(f,"_change_data");o=g(f);if(b.type!=="focusout"||f.type!=="radio")a.data(f,"_change_data",o);if(!(m===I||o===m))if(m!=null||o){b.type="change";b.liveFired=
I;return a.event.trigger(b,e,f)}}};a.event.special.change={filters:{focusout:c,beforedeactivate:c,click:function(b){var e=b.target,f=e.type;if(f==="radio"||f==="checkbox"||e.nodeName.toLowerCase()==="select")return c.call(this,b)},keydown:function(b){var e=b.target,f=e.type;if(b.keyCode===13&&e.nodeName.toLowerCase()!=="textarea"||b.keyCode===32&&(f==="checkbox"||f==="radio")||f==="select-multiple")return c.call(this,b)},beforeactivate:function(b){b=b.target;a.data(b,"_change_data",g(b))}},setup:function(){if(this.type===
"file")return false;for(var b in i)a.event.add(this,b+".specialChange",i[b]);return t.test(this.nodeName)},teardown:function(){a.event.remove(this,".specialChange");return t.test(this.nodeName)}};i=a.event.special.change.filters;i.focus=i.beforeactivate}B.addEventListener&&a.each({focus:"focusin",blur:"focusout"},function(b,e){function f(m){m=a.event.fix(m);m.type=e;return a.event.trigger(m,null,m.target)}a.event.special[e]={setup:function(){y[e]++===0&&B.addEventListener(b,f,true)},teardown:function(){--y[e]===
0&&B.removeEventListener(b,f,true)}}});a.each(["bind","one"],function(b,e){a.fn[e]=function(f,m,o){if(typeof f==="object"){for(var r in f)this[e](r,m,f[r],o);return this}if(a.isFunction(m)||m===false){o=m;m=I}var w=e==="one"?a.proxy(o,function(J){a(this).unbind(J,w);return o.apply(this,arguments)}):o;if(f==="unload"&&e!=="one")this.one(f,m,o);else{r=0;for(var F=this.length;r<F;r++)a.event.add(this[r],f,w,m)}return this}});a.fn.extend({unbind:function(b,e){if(typeof b==="object"&&!b.preventDefault)for(var f in b)this.unbind(f,
b[f]);else{f=0;for(var m=this.length;f<m;f++)a.event.remove(this[f],b,e)}return this},delegate:function(b,e,f,m){return this.live(e,f,m,b)},undelegate:function(b,e,f){return arguments.length===0?this.unbind("live"):this.die(e,null,f,b)},trigger:function(b,e){return this.each(function(){a.event.trigger(b,e,this)})},triggerHandler:function(b,e){if(this[0]){b=a.Event(b);b.preventDefault();b.stopPropagation();a.event.trigger(b,e,this[0]);return b.result}},toggle:function(b){for(var e=arguments,f=1;f<
e.length;)a.proxy(b,e[f++]);return this.click(a.proxy(b,function(m){var o=(a.data(this,"lastToggle"+b.guid)||0)%f;a.data(this,"lastToggle"+b.guid,o+1);m.preventDefault();return e[o].apply(this,arguments)||false}))},hover:function(b,e){return this.mouseenter(b).mouseleave(e||b)}});var d={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};a.each(["live","die"],function(b,e){a.fn[e]=function(f,m,o,r){var w,F=0,J,G,C=r||this.selector;r=r?this:a(this.context);if(typeof f==="object"&&
!f.preventDefault){for(w in f)r[e](w,m,f[w],C);return this}if(a.isFunction(m)){o=m;m=I}for(f=(f||"").split(" ");(w=f[F++])!=null;){J=z.exec(w);G="";if(J){G=J[0];w=w.replace(z,"")}if(w==="hover")f.push("mouseenter"+G,"mouseleave"+G);else{J=w;if(w==="focus"||w==="blur"){f.push(d[w]+G);w+=G}else w=(d[w]||w)+G;if(e==="live"){G=0;for(var K=r.length;G<K;G++)a.event.add(r[G],"live."+s(w,C),{data:m,selector:C,handler:o,origType:w,origHandler:o,preType:J})}else r.unbind("live."+s(w,C),o)}}return this}});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(b,e){a.fn[e]=function(f,m){if(m==null){m=f;f=null}return arguments.length>0?this.bind(e,f,m):this.trigger(e)};if(a.attrFn)a.attrFn[e]=true});L.attachEvent&&!L.addEventListener&&a(L).bind("unload",function(){for(var b in a.cache)if(a.cache[b].handle)try{a.event.remove(a.cache[b].handle.elem)}catch(e){}})})(O);(function(){function a(c,d,b,e,f,m){f=0;for(var o=e.length;f<o;f++){var r=e[f];if(r){r=r[c];for(var w=false;r;){if(r.sizcache===b){w=e[r.sizset];break}if(r.nodeType===1&&!m){r.sizcache=
b;r.sizset=f}if(r.nodeName.toLowerCase()===d){w=r;break}r=r[c]}e[f]=w}}}function p(c,d,b,e,f,m){f=0;for(var o=e.length;f<o;f++){var r=e[f];if(r){r=r[c];for(var w=false;r;){if(r.sizcache===b){w=e[r.sizset];break}if(r.nodeType===1){if(!m){r.sizcache=b;r.sizset=f}if(typeof d!=="string"){if(r===d){w=true;break}}else if(t.filter(d,[r]).length>0){w=r;break}}r=r[c]}e[f]=w}}}var E=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
x=0,v=Object.prototype.toString,s=false,z=true;[0,0].sort(function(){z=false;return 0});var t=function(c,d,b,e){b=b||[];var f=d=d||B;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!c||typeof c!=="string")return b;var m=[],o,r,w,F,J=true,G=t.isXML(d),C=c,K;do{E.exec("");if(o=E.exec(C)){C=o[3];m.push(o[1]);if(o[2]){F=o[3];break}}}while(o);if(m.length>1&&h.exec(c))if(m.length===2&&l.relative[m[0]])r=g(m[0]+m[1],d);else for(r=l.relative[m[0]]?[d]:t(m.shift(),d);m.length;){c=m.shift();if(l.relative[c])c+=
m.shift();r=g(c,r)}else{if(!e&&m.length>1&&d.nodeType===9&&!G&&l.match.ID.test(m[0])&&!l.match.ID.test(m[m.length-1])){o=t.find(m.shift(),d,G);d=o.expr?t.filter(o.expr,o.set)[0]:o.set[0]}if(d){o=e?{expr:m.pop(),set:y(e)}:t.find(m.pop(),m.length===1&&(m[0]==="~"||m[0]==="+")&&d.parentNode?d.parentNode:d,G);r=o.expr?t.filter(o.expr,o.set):o.set;if(m.length>0)w=y(r);else J=false;for(;m.length;){o=K=m.pop();if(l.relative[K])o=m.pop();else K="";if(o==null)o=d;l.relative[K](w,o,G)}}else w=[]}w||(w=r);w||
t.error(K||c);if(v.call(w)==="[object Array]")if(J)if(d&&d.nodeType===1)for(c=0;w[c]!=null;c++){if(w[c]&&(w[c]===true||w[c].nodeType===1&&t.contains(d,w[c])))b.push(r[c])}else for(c=0;w[c]!=null;c++)w[c]&&w[c].nodeType===1&&b.push(r[c]);else b.push.apply(b,w);else y(w,b);if(F){t(F,f,b,e);t.uniqueSort(b)}return b};t.uniqueSort=function(c){if(j){s=z;c.sort(j);if(s)for(var d=1;d<c.length;d++)c[d]===c[d-1]&&c.splice(d--,1)}return c};t.matches=function(c,d){return t(c,null,null,d)};t.matchesSelector=function(c,
d){return t(d,null,null,[c]).length>0};t.find=function(c,d,b){var e;if(!c)return[];for(var f=0,m=l.order.length;f<m;f++){var o=l.order[f],r;if(r=l.leftMatch[o].exec(c)){var w=r[1];r.splice(1,1);if(w.substr(w.length-1)!=="\\"){r[1]=(r[1]||"").replace(/\\/g,"");e=l.find[o](r,d,b);if(e!=null){c=c.replace(l.match[o],"");break}}}}e||(e=d.getElementsByTagName("*"));return{set:e,expr:c}};t.filter=function(c,d,b,e){for(var f=c,m=[],o=d,r,w,F=d&&d[0]&&t.isXML(d[0]);c&&d.length;){for(var J in l.filter)if((r=
l.leftMatch[J].exec(c))!=null&&r[2]){var G=l.filter[J],C,K;K=r[1];w=false;r.splice(1,1);if(K.substr(K.length-1)!=="\\"){if(o===m)m=[];if(l.preFilter[J])if(r=l.preFilter[J](r,o,b,m,e,F)){if(r===true)continue}else w=C=true;if(r)for(var k=0;(K=o[k])!=null;k++)if(K){C=G(K,r,k,o);var u=e^!!C;if(b&&C!=null)if(u)w=true;else o[k]=false;else if(u){m.push(K);w=true}}if(C!==I){b||(o=m);c=c.replace(l.match[J],"");if(!w)return[];break}}}if(c===f)if(w==null)t.error(c);else break;f=c}return o};t.error=function(c){throw"Syntax error, unrecognized expression: "+
c;};var l=t.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},
leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(c){return c.getAttribute("href")}},relative:{"+":function(c,d){var b=typeof d==="string",e=b&&!/\W/.test(d);b=b&&!e;if(e)d=d.toLowerCase();e=0;for(var f=c.length,m;e<f;e++)if(m=c[e]){for(;(m=m.previousSibling)&&m.nodeType!==1;);c[e]=b||m&&m.nodeName.toLowerCase()===d?m||false:m===d}b&&t.filter(d,c,true)},">":function(c,d){var b=typeof d==="string",e,f=0,m=c.length;if(b&&!/\W/.test(d))for(d=d.toLowerCase();f<m;f++){if(e=
c[f]){b=e.parentNode;c[f]=b.nodeName.toLowerCase()===d?b:false}}else{for(;f<m;f++)if(e=c[f])c[f]=b?e.parentNode:e.parentNode===d;b&&t.filter(d,c,true)}},"":function(c,d,b){var e=x++,f=p,m;if(typeof d==="string"&&!/\W/.test(d)){m=d=d.toLowerCase();f=a}f("parentNode",d,e,c,m,b)},"~":function(c,d,b){var e=x++,f=p,m;if(typeof d==="string"&&!/\W/.test(d)){m=d=d.toLowerCase();f=a}f("previousSibling",d,e,c,m,b)}},find:{ID:function(c,d,b){if(typeof d.getElementById!=="undefined"&&!b)return(c=d.getElementById(c[1]))&&
c.parentNode?[c]:[]},NAME:function(c,d){if(typeof d.getElementsByName!=="undefined"){var b=[];d=d.getElementsByName(c[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===c[1]&&b.push(d[e]);return b.length===0?null:b}},TAG:function(c,d){return d.getElementsByTagName(c[1])}},preFilter:{CLASS:function(c,d,b,e,f,m){c=" "+c[1].replace(/\\/g,"")+" ";if(m)return c;m=0;for(var o;(o=d[m])!=null;m++)if(o)if(f^(o.className&&(" "+o.className+" ").replace(/[\t\n]/g," ").indexOf(c)>=0))b||e.push(o);
else if(b)d[m]=false;return false},ID:function(c){return c[1].replace(/\\/g,"")},TAG:function(c){return c[1].toLowerCase()},CHILD:function(c){if(c[1]==="nth"){var d=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(c[2]==="even"&&"2n"||c[2]==="odd"&&"2n+1"||!/\D/.test(c[2])&&"0n+"+c[2]||c[2]);c[2]=d[1]+(d[2]||1)-0;c[3]=d[3]-0}c[0]=x++;return c},ATTR:function(c,d,b,e,f,m){d=c[1].replace(/\\/g,"");if(!m&&l.attrMap[d])c[1]=l.attrMap[d];if(c[2]==="~=")c[4]=" "+c[4]+" ";return c},PSEUDO:function(c,d,b,e,f){if(c[1]==="not")if((E.exec(c[3])||
"").length>1||/^\w/.test(c[3]))c[3]=t(c[3],null,null,d);else{c=t.filter(c[3],d,b,true^f);b||e.push.apply(e,c);return false}else if(l.match.POS.test(c[0])||l.match.CHILD.test(c[0]))return true;return c},POS:function(c){c.unshift(true);return c}},filters:{enabled:function(c){return c.disabled===false&&c.type!=="hidden"},disabled:function(c){return c.disabled===true},checked:function(c){return c.checked===true},selected:function(c){return c.selected===true},parent:function(c){return!!c.firstChild},empty:function(c){return!c.firstChild},
has:function(c,d,b){return!!t(b[3],c).length},header:function(c){return/h\d/i.test(c.nodeName)},text:function(c){return"text"===c.type},radio:function(c){return"radio"===c.type},checkbox:function(c){return"checkbox"===c.type},file:function(c){return"file"===c.type},password:function(c){return"password"===c.type},submit:function(c){return"submit"===c.type},image:function(c){return"image"===c.type},reset:function(c){return"reset"===c.type},button:function(c){return"button"===c.type||c.nodeName.toLowerCase()===
"button"},input:function(c){return/input|select|textarea|button/i.test(c.nodeName)}},setFilters:{first:function(c,d){return d===0},last:function(c,d,b,e){return d===e.length-1},even:function(c,d){return d%2===0},odd:function(c,d){return d%2===1},lt:function(c,d,b){return d<b[3]-0},gt:function(c,d,b){return d>b[3]-0},nth:function(c,d,b){return b[3]-0===d},eq:function(c,d,b){return b[3]-0===d}},filter:{PSEUDO:function(c,d,b,e){var f=d[1],m=l.filters[f];if(m)return m(c,b,d,e);else if(f==="contains")return(c.textContent||
c.innerText||t.getText([c])||"").indexOf(d[3])>=0;else if(f==="not"){d=d[3];b=0;for(e=d.length;b<e;b++)if(d[b]===c)return false;return true}else t.error("Syntax error, unrecognized expression: "+f)},CHILD:function(c,d){var b=d[1],e=c;switch(b){case "only":case "first":for(;e=e.previousSibling;)if(e.nodeType===1)return false;if(b==="first")return true;e=c;case "last":for(;e=e.nextSibling;)if(e.nodeType===1)return false;return true;case "nth":b=d[2];var f=d[3];if(b===1&&f===0)return true;d=d[0];var m=
c.parentNode;if(m&&(m.sizcache!==d||!c.nodeIndex)){var o=0;for(e=m.firstChild;e;e=e.nextSibling)if(e.nodeType===1)e.nodeIndex=++o;m.sizcache=d}c=c.nodeIndex-f;return b===0?c===0:c%b===0&&c/b>=0}},ID:function(c,d){return c.nodeType===1&&c.getAttribute("id")===d},TAG:function(c,d){return d==="*"&&c.nodeType===1||c.nodeName.toLowerCase()===d},CLASS:function(c,d){return(" "+(c.className||c.getAttribute("class"))+" ").indexOf(d)>-1},ATTR:function(c,d){var b=d[1];c=l.attrHandle[b]?l.attrHandle[b](c):c[b]!=
null?c[b]:c.getAttribute(b);b=c+"";var e=d[2];d=d[4];return c==null?e==="!=":e==="="?b===d:e==="*="?b.indexOf(d)>=0:e==="~="?(" "+b+" ").indexOf(d)>=0:!d?b&&c!==false:e==="!="?b!==d:e==="^="?b.indexOf(d)===0:e==="$="?b.substr(b.length-d.length)===d:e==="|="?b===d||b.substr(0,d.length+1)===d+"-":false},POS:function(c,d,b,e){var f=l.setFilters[d[2]];if(f)return f(c,b,d,e)}}},h=l.match.POS,n=function(c,d){return"\\"+(d-0+1)};for(var q in l.match){l.match[q]=new RegExp(l.match[q].source+/(?![^\[]*\])(?![^\(]*\))/.source);
l.leftMatch[q]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[q].source.replace(/\\(\d+)/g,n))}var y=function(c,d){c=Array.prototype.slice.call(c,0);if(d){d.push.apply(d,c);return d}return c};try{Array.prototype.slice.call(B.documentElement.childNodes,0)}catch(A){y=function(c,d){d=d||[];var b=0;if(v.call(c)==="[object Array]")Array.prototype.push.apply(d,c);else if(typeof c.length==="number")for(var e=c.length;b<e;b++)d.push(c[b]);else for(;c[b];b++)d.push(c[b]);return d}}var j,i;if(B.documentElement.compareDocumentPosition)j=
function(c,d){if(c===d){s=true;return 0}if(!c.compareDocumentPosition||!d.compareDocumentPosition)return c.compareDocumentPosition?-1:1;return c.compareDocumentPosition(d)&4?-1:1};else{j=function(c,d){var b=[],e=[],f=c.parentNode,m=d.parentNode,o=f;if(c===d){s=true;return 0}else if(f===m)return i(c,d);else if(f){if(!m)return 1}else return-1;for(;o;){b.unshift(o);o=o.parentNode}for(o=m;o;){e.unshift(o);o=o.parentNode}f=b.length;m=e.length;for(o=0;o<f&&o<m;o++)if(b[o]!==e[o])return i(b[o],e[o]);return o===
f?i(c,e[o],-1):i(b[o],d,1)};i=function(c,d,b){if(c===d)return b;for(c=c.nextSibling;c;){if(c===d)return-1;c=c.nextSibling}return 1}}t.getText=function(c){for(var d="",b,e=0;c[e];e++){b=c[e];if(b.nodeType===3||b.nodeType===4)d+=b.nodeValue;else if(b.nodeType!==8)d+=t.getText(b.childNodes)}return d};(function(){var c=B.createElement("div"),d="script"+(new Date).getTime();c.innerHTML="<a name='"+d+"'/>";var b=B.documentElement;b.insertBefore(c,b.firstChild);if(B.getElementById(d)){l.find.ID=function(e,
f,m){if(typeof f.getElementById!=="undefined"&&!m)return(f=f.getElementById(e[1]))?f.id===e[1]||typeof f.getAttributeNode!=="undefined"&&f.getAttributeNode("id").nodeValue===e[1]?[f]:I:[]};l.filter.ID=function(e,f){var m=typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id");return e.nodeType===1&&m&&m.nodeValue===f}}b.removeChild(c);b=c=null})();(function(){var c=B.createElement("div");c.appendChild(B.createComment(""));if(c.getElementsByTagName("*").length>0)l.find.TAG=function(d,b){b=
b.getElementsByTagName(d[1]);if(d[1]==="*"){d=[];for(var e=0;b[e];e++)b[e].nodeType===1&&d.push(b[e]);b=d}return b};c.innerHTML="<a href='#'></a>";if(c.firstChild&&typeof c.firstChild.getAttribute!=="undefined"&&c.firstChild.getAttribute("href")!=="#")l.attrHandle.href=function(d){return d.getAttribute("href",2)};c=null})();B.querySelectorAll&&function(){var c=t,d=B.createElement("div");d.innerHTML="<p class='TEST'></p>";if(!(d.querySelectorAll&&d.querySelectorAll(".TEST").length===0)){t=function(e,
f,m,o){f=f||B;if(!o&&!t.isXML(f))if(f.nodeType===1){var r=f.id,w=f.id="__sizzle__";try{return y(f.querySelectorAll("#"+w+" "+e),m)}catch(F){}finally{if(r)f.id=r;else f.removeAttribute("id")}}else try{return y(f.querySelectorAll(e),m)}catch(J){}return c(e,f,m,o)};for(var b in c)t[b]=c[b];d=null}}();(function(){var c=B.documentElement,d=c.matchesSelector||c.mozMatchesSelector||c.webkitMatchesSelector||c.msMatchesSelector,b=false;try{d.call(B.documentElement,":sizzle")}catch(e){b=true}if(d)t.matchesSelector=
function(f,m){try{if(b||!l.match.PSEUDO.test(m))return d.call(f,m)}catch(o){}return t(m,null,null,[f]).length>0}})();(function(){var c=B.createElement("div");c.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!c.getElementsByClassName||c.getElementsByClassName("e").length===0)){c.lastChild.className="e";if(c.getElementsByClassName("e").length!==1){l.order.splice(1,0,"CLASS");l.find.CLASS=function(d,b,e){if(typeof b.getElementsByClassName!=="undefined"&&!e)return b.getElementsByClassName(d[1])};
c=null}}})();t.contains=B.documentElement.contains?function(c,d){return c!==d&&(c.contains?c.contains(d):true)}:function(c,d){return!!(c.compareDocumentPosition(d)&16)};t.isXML=function(c){return(c=(c?c.ownerDocument||c:0).documentElement)?c.nodeName!=="HTML":false};var g=function(c,d){var b=[],e="",f;for(d=d.nodeType?[d]:d;f=l.match.PSEUDO.exec(c);){e+=f[0];c=c.replace(l.match.PSEUDO,"")}c=l.relative[c]?c+"*":c;f=0;for(var m=d.length;f<m;f++)t(c,d[f],b);return t.filter(e,b)};O.find=t;O.expr=t.selectors;
O.expr[":"]=O.expr.filters;O.unique=t.uniqueSort;O.text=t.getText;O.isXMLDoc=t.isXML;O.contains=t.contains})();(function(a){function p(h){return!h||!h.parentNode||h.parentNode.nodeType===11}function E(h,n,q){if(a.isFunction(n))return a.grep(h,function(A,j){return!!n.call(A,j,A)===q});else if(n.nodeType)return a.grep(h,function(A){return A===n===q});else if(typeof n==="string"){var y=a.grep(h,function(A){return A.nodeType===1});if(z.test(n))return a.filter(n,y,!q);else n=a.filter(n,y)}return a.grep(h,
function(A){return a.inArray(A,n)>=0===q})}var x=/Until$/,v=/^(?:parents|prevUntil|prevAll)/,s=/,/,z=/^.[^:#\[\.,]*$/,t=Array.prototype.slice,l=a.expr.match.POS;a.fn.extend({find:function(h){for(var n=this.pushStack("","find",h),q=0,y=0,A=this.length;y<A;y++){q=n.length;a.find(h,this[y],n);if(y>0)for(var j=q;j<n.length;j++)for(var i=0;i<q;i++)if(n[i]===n[j]){n.splice(j--,1);break}}return n},has:function(h){var n=a(h);return this.filter(function(){for(var q=0,y=n.length;q<y;q++)if(a.contains(this,
n[q]))return true})},not:function(h){return this.pushStack(E(this,h,false),"not",h)},filter:function(h){return this.pushStack(E(this,h,true),"filter",h)},is:function(h){return!!h&&a.filter(h,this).length>0},closest:function(h,n){var q=[],y,A,j=this[0];if(a.isArray(h)){var i={},g,c=1;if(j&&h.length){y=0;for(A=h.length;y<A;y++){g=h[y];i[g]||(i[g]=a.expr.match.POS.test(g)?a(g,n||this.context):g)}for(;j&&j.ownerDocument&&j!==n;){for(g in i){h=i[g];if(h.jquery?h.index(j)>-1:a(j).is(h))q.push({selector:g,
elem:j,level:c})}j=j.parentNode;c++}}return q}i=l.test(h)?a(h,n||this.context):null;y=0;for(A=this.length;y<A;y++)for(j=this[y];j;)if(i?i.index(j)>-1:a.find.matchesSelector(j,h)){q.push(j);break}else{j=j.parentNode;if(!j||!j.ownerDocument||j===n)break}q=q.length>1?a.unique(q):q;return this.pushStack(q,"closest",h)},index:function(h){if(!h||typeof h==="string")return a.inArray(this[0],h?a(h):this.parent().children());return a.inArray(h.jquery?h[0]:h,this)},add:function(h,n){h=typeof h==="string"?a(h,
n||this.context):a.makeArray(h);n=a.merge(this.get(),h);return this.pushStack(p(h[0])||p(n[0])?n:a.unique(n))},andSelf:function(){return this.add(this.prevObject)}});a.each({parent:function(h){return(h=h.parentNode)&&h.nodeType!==11?h:null},parents:function(h){return a.dir(h,"parentNode")},parentsUntil:function(h,n,q){return a.dir(h,"parentNode",q)},next:function(h){return a.nth(h,2,"nextSibling")},prev:function(h){return a.nth(h,2,"previousSibling")},nextAll:function(h){return a.dir(h,"nextSibling")},
prevAll:function(h){return a.dir(h,"previousSibling")},nextUntil:function(h,n,q){return a.dir(h,"nextSibling",q)},prevUntil:function(h,n,q){return a.dir(h,"previousSibling",q)},siblings:function(h){return a.sibling(h.parentNode.firstChild,h)},children:function(h){return a.sibling(h.firstChild)},contents:function(h){return a.nodeName(h,"iframe")?h.contentDocument||h.contentWindow.document:a.makeArray(h.childNodes)}},function(h,n){a.fn[h]=function(q,y){var A=a.map(this,n,q);x.test(h)||(y=q);if(y&&typeof y===
"string")A=a.filter(y,A);A=this.length>1?a.unique(A):A;if((this.length>1||s.test(y))&&v.test(h))A=A.reverse();return this.pushStack(A,h,t.call(arguments).join(","))}});a.extend({filter:function(h,n,q){if(q)h=":not("+h+")";return n.length===1?a.find.matchesSelector(n[0],h)?[n[0]]:[]:a.find.matches(h,n)},dir:function(h,n,q){var y=[];for(h=h[n];h&&h.nodeType!==9&&(q===I||h.nodeType!==1||!a(h).is(q));){h.nodeType===1&&y.push(h);h=h[n]}return y},nth:function(h,n,q){n=n||1;for(var y=0;h;h=h[q])if(h.nodeType===
1&&++y===n)break;return h},sibling:function(h,n){for(var q=[];h;h=h.nextSibling)h.nodeType===1&&h!==n&&q.push(h);return q}})})(O);(function(a){function p(j){return a.nodeName(j,"table")?j.getElementsByTagName("tbody")[0]||j.appendChild(j.ownerDocument.createElement("tbody")):j}function E(j,i){var g=0;i.each(function(){if(this.nodeName===(j[g]&&j[g].nodeName)){var c=a.data(j[g++]),d=a.data(this,c);if(c=c&&c.events){delete d.handle;d.events={};for(var b in c)for(var e in c[b])a.event.add(this,b,c[b][e],
c[b][e].data)}}})}function x(j,i){i.src?a.ajax({url:i.src,async:false,dataType:"script"}):a.globalEval(i.text||i.textContent||i.innerHTML||"");i.parentNode&&i.parentNode.removeChild(i)}var v=/ jQuery\d+="(?:\d+|null)"/g,s=/^\s+/,z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,t=/<([\w:]+)/,l=/<tbody/i,h=/<|&#?\w+;/,n=/<(?:script|object|embed|option|style)/i,q=/checked\s*(?:[^=]|=\s*.checked.)/i,y=/\=([^="'>\s]+\/)>/g,A={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,"",""]};A.optgroup=A.option;A.tbody=A.tfoot=A.colgroup=A.caption=A.thead;A.th=A.td;if(!a.support.htmlSerialize)A._default=[1,"div<div>","</div>"];a.fn.extend({text:function(j){if(a.isFunction(j))return this.each(function(i){var g=a(this);
g.text(j.call(this,i,g.text()))});if(typeof j!=="object"&&j!==I)return this.empty().append((this[0]&&this[0].ownerDocument||B).createTextNode(j));return a.text(this)},wrapAll:function(j){if(a.isFunction(j))return this.each(function(g){a(this).wrapAll(j.call(this,g))});if(this[0]){var i=a(j,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&i.insertBefore(this[0]);i.map(function(){for(var g=this;g.firstChild&&g.firstChild.nodeType===1;)g=g.firstChild;return g}).append(this)}return this},
wrapInner:function(j){if(a.isFunction(j))return this.each(function(i){a(this).wrapInner(j.call(this,i))});return this.each(function(){var i=a(this),g=i.contents();g.length?g.wrapAll(j):i.append(j)})},wrap:function(j){return this.each(function(){a(this).wrapAll(j)})},unwrap:function(){return this.parent().each(function(){a.nodeName(this,"body")||a(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(j){this.nodeType===1&&this.appendChild(j)})},
prepend:function(){return this.domManip(arguments,true,function(j){this.nodeType===1&&this.insertBefore(j,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(i){this.parentNode.insertBefore(i,this)});else if(arguments.length){var j=a(arguments[0]);j.push.apply(j,this.toArray());return this.pushStack(j,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(i){this.parentNode.insertBefore(i,
this.nextSibling)});else if(arguments.length){var j=this.pushStack(this,"after",arguments);j.push.apply(j,a(arguments[0]).toArray());return j}},remove:function(j,i){for(var g=0,c;(c=this[g])!=null;g++)if(!j||a.filter(j,[c]).length){if(!i&&c.nodeType===1){a.cleanData(c.getElementsByTagName("*"));a.cleanData([c])}c.parentNode&&c.parentNode.removeChild(c)}return this},empty:function(){for(var j=0,i;(i=this[j])!=null;j++)for(i.nodeType===1&&a.cleanData(i.getElementsByTagName("*"));i.firstChild;)i.removeChild(i.firstChild);
return this},clone:function(j){var i=this.map(function(){if(!a.support.noCloneEvent&&!a.isXMLDoc(this)){var g=this.outerHTML,c=this.ownerDocument;if(!g){g=c.createElement("div");g.appendChild(this.cloneNode(true));g=g.innerHTML}return a.clean([g.replace(v,"").replace(y,'="$1">').replace(s,"")],c)[0]}else return this.cloneNode(true)});if(j===true){E(this,i);E(this.find("*"),i.find("*"))}return i},html:function(j){if(j===I)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(v,""):null;else if(typeof j===
"string"&&!n.test(j)&&(a.support.leadingWhitespace||!s.test(j))&&!A[(t.exec(j)||["",""])[1].toLowerCase()]){j=j.replace(z,"<$1></$2>");try{for(var i=0,g=this.length;i<g;i++)if(this[i].nodeType===1){a.cleanData(this[i].getElementsByTagName("*"));this[i].innerHTML=j}}catch(c){this.empty().append(j)}}else a.isFunction(j)?this.each(function(d){var b=a(this);b.html(j.call(this,d,b.html()))}):this.empty().append(j);return this},replaceWith:function(j){if(this[0]&&this[0].parentNode){if(a.isFunction(j))return this.each(function(i){var g=
a(this),c=g.html();g.replaceWith(j.call(this,i,c))});if(typeof j!=="string")j=a(j).detach();return this.each(function(){var i=this.nextSibling,g=this.parentNode;a(this).remove();i?a(i).before(j):a(g).append(j)})}else return this.pushStack(a(a.isFunction(j)?j():j),"replaceWith",j)},detach:function(j){return this.remove(j,true)},domManip:function(j,i,g){var c,d,b=j[0],e=[],f;if(!a.support.checkClone&&arguments.length===3&&typeof b==="string"&&q.test(b))return this.each(function(){a(this).domManip(j,
i,g,true)});if(a.isFunction(b))return this.each(function(r){var w=a(this);j[0]=b.call(this,r,i?w.html():I);w.domManip(j,i,g)});if(this[0]){c=b&&b.parentNode;c=a.support.parentNode&&c&&c.nodeType===11&&c.childNodes.length===this.length?{fragment:c}:a.buildFragment(j,this,e);f=c.fragment;if(d=f.childNodes.length===1?(f=f.firstChild):f.firstChild){i=i&&a.nodeName(d,"tr");for(var m=0,o=this.length;m<o;m++)g.call(i?p(this[m],d):this[m],m>0||c.cacheable||this.length>1?f.cloneNode(true):f)}e.length&&a.each(e,
x)}return this}});a.buildFragment=function(j,i,g){var c,d,b;i=i&&i[0]?i[0].ownerDocument||i[0]:B;if(j.length===1&&typeof j[0]==="string"&&j[0].length<512&&i===B&&!n.test(j[0])&&(a.support.checkClone||!q.test(j[0]))){d=true;if(b=a.fragments[j[0]])if(b!==1)c=b}if(!c){c=i.createDocumentFragment();a.clean(j,i,c,g)}if(d)a.fragments[j[0]]=b?c:1;return{fragment:c,cacheable:d}};a.fragments={};a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},
function(j,i){a.fn[j]=function(g){var c=[];g=a(g);var d=this.length===1&&this[0].parentNode;if(d&&d.nodeType===11&&d.childNodes.length===1&&g.length===1){g[i](this[0]);return this}else{d=0;for(var b=g.length;d<b;d++){var e=(d>0?this.clone(true):this).get();a(g[d])[i](e);c=c.concat(e)}return this.pushStack(c,j,g.selector)}}});a.extend({clean:function(j,i,g,c){i=i||B;if(typeof i.createElement==="undefined")i=i.ownerDocument||i[0]&&i[0].ownerDocument||B;for(var d=[],b=0,e;(e=j[b])!=null;b++){if(typeof e===
"number")e+="";if(e){if(typeof e==="string"&&!h.test(e))e=i.createTextNode(e);else if(typeof e==="string"){e=e.replace(z,"<$1></$2>");var f=(t.exec(e)||["",""])[1].toLowerCase(),m=A[f]||A._default,o=m[0],r=i.createElement("div");for(r.innerHTML=m[1]+e+m[2];o--;)r=r.lastChild;if(!a.support.tbody){o=l.test(e);f=f==="table"&&!o?r.firstChild&&r.firstChild.childNodes:m[1]==="<table>"&&!o?r.childNodes:[];for(m=f.length-1;m>=0;--m)a.nodeName(f[m],"tbody")&&!f[m].childNodes.length&&f[m].parentNode.removeChild(f[m])}!a.support.leadingWhitespace&&
s.test(e)&&r.insertBefore(i.createTextNode(s.exec(e)[0]),r.firstChild);e=r.childNodes}if(e.nodeType)d.push(e);else d=a.merge(d,e)}}if(g)for(b=0;d[b];b++)if(c&&a.nodeName(d[b],"script")&&(!d[b].type||d[b].type.toLowerCase()==="text/javascript"))c.push(d[b].parentNode?d[b].parentNode.removeChild(d[b]):d[b]);else{d[b].nodeType===1&&d.splice.apply(d,[b+1,0].concat(a.makeArray(d[b].getElementsByTagName("script"))));g.appendChild(d[b])}return d},cleanData:function(j){for(var i,g,c=a.cache,d=a.event.special,
b=a.support.deleteExpando,e=0,f;(f=j[e])!=null;e++)if(!(f.nodeName&&a.noData[f.nodeName.toLowerCase()]))if(g=f[a.expando]){if((i=c[g])&&i.events)for(var m in i.events)d[m]?a.event.remove(f,m):a.removeEvent(f,m,i.handle);if(b)delete f[a.expando];else f.removeAttribute&&f.removeAttribute(a.expando);delete c[g]}}})})(O);(function(a){function p(j,i,g){var c=i==="width"?j.offsetWidth:j.offsetHeight;if(g==="border")return c;a.each(i==="width"?h:n,function(){g||(c-=parseFloat(a.css(j,"padding"+this))||0);
if(g==="margin")c+=parseFloat(a.css(j,"margin"+this))||0;else c-=parseFloat(a.css(j,"border"+this+"Width"))||0});return c}var E=/alpha\([^)]*\)/i,x=/opacity=([^)]*)/,v=/-([a-z])/ig,s=/([A-Z])/g,z=/^-?\d+(?:px)?$/i,t=/^-?\d/,l={position:"absolute",visibility:"hidden",display:"block"},h=["Left","Right"],n=["Top","Bottom"],q,y=B.defaultView&&B.defaultView.getComputedStyle,A=function(j,i){return i.toUpperCase()};a.fn.css=function(j,i){if(arguments.length===2&&i===I)return this;return a.access(this,j,
i,true,function(g,c,d){return d!==I?a.style(g,c,d):a.css(g,c)})};a.extend({cssHooks:{opacity:{get:function(j,i){if(i){j=q(j,"opacity","opacity");return j===""?"1":j}else return j.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,zoom:true,lineHeight:true},cssProps:{"float":a.support.cssFloat?"cssFloat":"styleFloat"},style:function(j,i,g,c){if(!(!j||j.nodeType===3||j.nodeType===8||!j.style)){var d,b=a.camelCase(i),e=j.style,f=a.cssHooks[b];i=a.cssProps[b]||b;if(g!==I){if(!(typeof g===
"number"&&isNaN(g)||g==null)){if(typeof g==="number"&&!a.cssNumber[b])g+="px";if(!f||!("set"in f)||(g=f.set(j,g))!==I)try{e[i]=g}catch(m){}}}else{if(f&&"get"in f&&(d=f.get(j,false,c))!==I)return d;return e[i]}}},css:function(j,i,g){var c,d=a.camelCase(i),b=a.cssHooks[d];i=a.cssProps[d]||d;if(b&&"get"in b&&(c=b.get(j,true,g))!==I)return c;else if(q)return q(j,i,d)},swap:function(j,i,g){var c={};for(var d in i){c[d]=j.style[d];j.style[d]=i[d]}g.call(j);for(d in i)j.style[d]=c[d]},camelCase:function(j){return j.replace(v,
A)}});a.curCSS=a.css;a.each(["height","width"],function(j,i){a.cssHooks[i]={get:function(g,c,d){var b;if(c){if(g.offsetWidth!==0)b=p(g,i,d);else a.swap(g,l,function(){b=p(g,i,d)});return b+"px"}},set:function(g,c){if(z.test(c)){c=parseFloat(c);if(c>=0)return c+"px"}else return c}}});if(!a.support.opacity)a.cssHooks.opacity={get:function(j,i){return x.test((i&&j.currentStyle?j.currentStyle.filter:j.style.filter)||"")?parseFloat(RegExp.$1)/100+"":i?"1":""},set:function(j,i){j=j.style;j.zoom=1;i=a.isNaN(i)?
"":"alpha(opacity="+i*100+")";var g=j.filter||"";j.filter=E.test(g)?g.replace(E,i):j.filter+" "+i}};if(y)q=function(j,i,g){var c;g=g.replace(s,"-$1").toLowerCase();if(!(i=j.ownerDocument.defaultView))return I;if(i=i.getComputedStyle(j,null)){c=i.getPropertyValue(g);if(c===""&&!a.contains(j.ownerDocument.documentElement,j))c=a.style(j,g)}return c};else if(B.documentElement.currentStyle)q=function(j,i){var g,c,d=j.currentStyle&&j.currentStyle[i],b=j.style;if(!z.test(d)&&t.test(d)){g=b.left;c=j.runtimeStyle.left;
j.runtimeStyle.left=j.currentStyle.left;b.left=i==="fontSize"?"1em":d||0;d=b.pixelLeft+"px";b.left=g;j.runtimeStyle.left=c}return d};if(a.expr&&a.expr.filters){a.expr.filters.hidden=function(j){var i=j.offsetHeight;return j.offsetWidth===0&&i===0||!a.support.reliableHiddenOffsets&&(j.style.display||a.css(j,"display"))==="none"};a.expr.filters.visible=function(j){return!a.expr.filters.hidden(j)}}})(O);(function(a){function p(i,g,c,d){if(a.isArray(g)&&g.length)a.each(g,function(b,e){c||t.test(i)?d(i,
e):p(i+"["+(typeof e==="object"||a.isArray(e)?b:"")+"]",e,c,d)});else if(!c&&g!=null&&typeof g==="object")a.isEmptyObject(g)?d(i,""):a.each(g,function(b,e){p(i+"["+b+"]",e,c,d)});else d(i,g)}var E=a.now(),x=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,v=/^(?:select|textarea)/i,s=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,z=/^(?:GET|HEAD|DELETE)$/,t=/\[\]$/,l=/\=\?(&|$)/,h=/\?/,n=/([?&])_=[^&]*/,q=/^(\w+:)?\/\/([^\/?#]+)/,y=/%20/g,A=
/#.*$/,j=a.fn.load;a.fn.extend({load:function(i,g,c){if(typeof i!=="string"&&j)return j.apply(this,arguments);else if(!this.length)return this;var d=i.indexOf(" ");if(d>=0){var b=i.slice(d,i.length);i=i.slice(0,d)}d="GET";if(g)if(a.isFunction(g)){c=g;g=null}else if(typeof g==="object"){g=a.param(g,a.ajaxSettings.traditional);d="POST"}var e=this;a.ajax({url:i,type:d,dataType:"html",data:g,complete:function(f,m){if(m==="success"||m==="notmodified")e.html(b?a("<div>").append(f.responseText.replace(x,
"")).find(b):f.responseText);c&&e.each(c,[f.responseText,m,f])}});return this},serialize:function(){return a.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?a.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||v.test(this.nodeName)||s.test(this.type))}).map(function(i,g){i=a(this).val();return i==null?null:a.isArray(i)?a.map(i,function(c){return{name:g.name,value:c}}):{name:g.name,value:i}}).get()}});
a.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(i,g){a.fn[g]=function(c){return this.bind(g,c)}});a.extend({get:function(i,g,c,d){if(a.isFunction(g)){d=d||c;c=g;g=null}return a.ajax({type:"GET",url:i,data:g,success:c,dataType:d})},getScript:function(i,g){return a.get(i,null,g,"script")},getJSON:function(i,g,c){return a.get(i,g,c,"json")},post:function(i,g,c,d){if(a.isFunction(g)){d=d||c;c=g;g={}}return a.ajax({type:"POST",url:i,data:g,success:c,dataType:d})},
ajaxSetup:function(i){a.extend(a.ajaxSettings,i)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new L.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(i){var g=a.extend(true,{},a.ajaxSettings,i),c,d,b,e=g.type.toUpperCase(),f=z.test(e);
g.url=g.url.replace(A,"");g.context=i&&i.context!=null?i.context:g;if(g.data&&g.processData&&typeof g.data!=="string")g.data=a.param(g.data,g.traditional);if(g.dataType==="jsonp"){if(e==="GET")l.test(g.url)||(g.url+=(h.test(g.url)?"&":"?")+(g.jsonp||"callback")+"=?");else if(!g.data||!l.test(g.data))g.data=(g.data?g.data+"&":"")+(g.jsonp||"callback")+"=?";g.dataType="json"}if(g.dataType==="json"&&(g.data&&l.test(g.data)||l.test(g.url))){c=g.jsonpCallback||"jsonp"+E++;if(g.data)g.data=(g.data+"").replace(l,
"="+c+"$1");g.url=g.url.replace(l,"="+c+"$1");g.dataType="script";var m=L[c];L[c]=function(M){if(a.isFunction(m))m(M);else{L[c]=I;try{delete L[c]}catch(N){}}b=M;a.handleSuccess(g,C,d,b);a.handleComplete(g,C,d,b);w&&w.removeChild(F)}}if(g.dataType==="script"&&g.cache===null)g.cache=false;if(g.cache===false&&e==="GET"){var o=a.now(),r=g.url.replace(n,"$1_="+o);g.url=r+(r===g.url?(h.test(g.url)?"&":"?")+"_="+o:"")}if(g.data&&e==="GET")g.url+=(h.test(g.url)?"&":"?")+g.data;g.global&&a.active++===0&&a.event.trigger("ajaxStart");
o=(o=q.exec(g.url))&&(o[1]&&o[1]!==location.protocol||o[2]!==location.host);if(g.dataType==="script"&&e==="GET"&&o){var w=B.getElementsByTagName("head")[0]||B.documentElement,F=B.createElement("script");if(g.scriptCharset)F.charset=g.scriptCharset;F.src=g.url;if(!c){var J=false;F.onload=F.onreadystatechange=function(){if(!J&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){J=true;a.handleSuccess(g,C,d,b);a.handleComplete(g,C,d,b);F.onload=F.onreadystatechange=null;w&&
F.parentNode&&w.removeChild(F)}}}w.insertBefore(F,w.firstChild);return I}var G=false,C=g.xhr();if(C){g.username?C.open(e,g.url,g.async,g.username,g.password):C.open(e,g.url,g.async);try{if(g.data!=null&&!f||i&&i.contentType)C.setRequestHeader("Content-Type",g.contentType);if(g.ifModified){a.lastModified[g.url]&&C.setRequestHeader("If-Modified-Since",a.lastModified[g.url]);a.etag[g.url]&&C.setRequestHeader("If-None-Match",a.etag[g.url])}o||C.setRequestHeader("X-Requested-With","XMLHttpRequest");C.setRequestHeader("Accept",
g.dataType&&g.accepts[g.dataType]?g.accepts[g.dataType]+", */*; q=0.01":g.accepts._default)}catch(K){}if(g.beforeSend&&g.beforeSend.call(g.context,C,g)===false){g.global&&a.active--===1&&a.event.trigger("ajaxStop");C.abort();return false}g.global&&a.triggerGlobal(g,"ajaxSend",[C,g]);var k=C.onreadystatechange=function(M){if(!C||C.readyState===0||M==="abort"){G||a.handleComplete(g,C,d,b);G=true;if(C)C.onreadystatechange=a.noop}else if(!G&&C&&(C.readyState===4||M==="timeout")){G=true;C.onreadystatechange=
a.noop;d=M==="timeout"?"timeout":!a.httpSuccess(C)?"error":g.ifModified&&a.httpNotModified(C,g.url)?"notmodified":"success";var N;if(d==="success")try{b=a.httpData(C,g.dataType,g)}catch(P){d="parsererror";N=P}if(d==="success"||d==="notmodified")c||a.handleSuccess(g,C,d,b);else a.handleError(g,C,d,N);c||a.handleComplete(g,C,d,b);M==="timeout"&&C.abort();if(g.async)C=null}};try{var u=C.abort;C.abort=function(){C&&u.call&&u.call(C);k("abort")}}catch(D){}g.async&&g.timeout>0&&setTimeout(function(){C&&
!G&&k("timeout")},g.timeout);try{C.send(f||g.data==null?null:g.data)}catch(H){a.handleError(g,C,null,H);a.handleComplete(g,C,d,b)}g.async||k();return C}},param:function(i,g){var c=[],d=function(e,f){f=a.isFunction(f)?f():f;c[c.length]=encodeURIComponent(e)+"="+encodeURIComponent(f)};if(g===I)g=a.ajaxSettings.traditional;if(a.isArray(i)||i.jquery)a.each(i,function(){d(this.name,this.value)});else for(var b in i)p(b,i[b],g,d);return c.join("&").replace(y,"+")}});a.extend({active:0,lastModified:{},etag:{},
handleError:function(i,g,c,d){i.error&&i.error.call(i.context,g,c,d);i.global&&a.triggerGlobal(i,"ajaxError",[g,i,d])},handleSuccess:function(i,g,c,d){i.success&&i.success.call(i.context,d,c,g);i.global&&a.triggerGlobal(i,"ajaxSuccess",[g,i])},handleComplete:function(i,g,c){i.complete&&i.complete.call(i.context,g,c);i.global&&a.triggerGlobal(i,"ajaxComplete",[g,i]);i.global&&a.active--===1&&a.event.trigger("ajaxStop")},triggerGlobal:function(i,g,c){(i.context&&i.context.url==null?a(i.context):a.event).trigger(g,
c)},httpSuccess:function(i){try{return!i.status&&location.protocol==="file:"||i.status>=200&&i.status<300||i.status===304||i.status===1223}catch(g){}return false},httpNotModified:function(i,g){var c=i.getResponseHeader("Last-Modified"),d=i.getResponseHeader("Etag");if(c)a.lastModified[g]=c;if(d)a.etag[g]=d;return i.status===304},httpData:function(i,g,c){var d=i.getResponseHeader("content-type")||"",b=g==="xml"||!g&&d.indexOf("xml")>=0;i=b?i.responseXML:i.responseText;b&&i.documentElement.nodeName===
"parsererror"&&a.error("parsererror");if(c&&c.dataFilter)i=c.dataFilter(i,g);if(typeof i==="string")if(g==="json"||!g&&d.indexOf("json")>=0)i=a.parseJSON(i);else if(g==="script"||!g&&d.indexOf("javascript")>=0)a.globalEval(i);return i}});if(L.ActiveXObject)a.ajaxSettings.xhr=function(){if(L.location.protocol!=="file:")try{return new L.XMLHttpRequest}catch(i){}try{return new L.ActiveXObject("Microsoft.XMLHTTP")}catch(g){}};a.support.ajax=!!a.ajaxSettings.xhr()})(O);(function(a){function p(l,h){var n=
{};a.each(t.concat.apply([],t.slice(0,h)),function(){n[this]=l});return n}function E(l){if(!x[l]){var h=a("<"+l+">").appendTo("body"),n=h.css("display");h.remove();if(n==="none"||n==="")n="block";x[l]=n}return x[l]}var x={},v=/^(?:toggle|show|hide)$/,s=/^([+\-]=)?([\d+.\-]+)(.*)$/,z,t=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];a.fn.extend({show:function(l,h,n){if(l||l===0)return this.animate(p("show",
3),l,h,n);else{l=0;for(h=this.length;l<h;l++){if(!a.data(this[l],"olddisplay")&&this[l].style.display==="none")this[l].style.display="";this[l].style.display===""&&a.css(this[l],"display")==="none"&&a.data(this[l],"olddisplay",E(this[l].nodeName))}for(l=0;l<h;l++)this[l].style.display=a.data(this[l],"olddisplay")||"";return this}},hide:function(l,h,n){if(l||l===0)return this.animate(p("hide",3),l,h,n);else{l=0;for(h=this.length;l<h;l++){n=a.css(this[l],"display");n!=="none"&&a.data(this[l],"olddisplay",
n)}for(l=0;l<h;l++)this[l].style.display="none";return this}},_toggle:a.fn.toggle,toggle:function(l,h,n){var q=typeof l==="boolean";if(a.isFunction(l)&&a.isFunction(h))this._toggle.apply(this,arguments);else l==null||q?this.each(function(){var y=q?l:a(this).is(":hidden");a(this)[y?"show":"hide"]()}):this.animate(p("toggle",3),l,h,n);return this},fadeTo:function(l,h,n,q){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:h},l,n,q)},animate:function(l,h,n,q){var y=a.speed(h,
n,q);if(a.isEmptyObject(l))return this.each(y.complete);return this[y.queue===false?"each":"queue"](function(){var A=a.extend({},y),j,i=this.nodeType===1,g=i&&a(this).is(":hidden"),c=this;for(j in l){var d=a.camelCase(j);if(j!==d){l[d]=l[j];delete l[j];j=d}if(l[j]==="hide"&&g||l[j]==="show"&&!g)return A.complete.call(this);if(i&&(j==="height"||j==="width")){A.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(a.css(this,"display")==="inline"&&a.css(this,"float")==="none")if(a.support.inlineBlockNeedsLayout)if(E(this.nodeName)===
"inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}else this.style.display="inline-block"}if(a.isArray(l[j])){(A.specialEasing=A.specialEasing||{})[j]=l[j][1];l[j]=l[j][0]}}if(A.overflow!=null)this.style.overflow="hidden";A.curAnim=a.extend({},l);a.each(l,function(b,e){var f=new a.fx(c,A,b);if(v.test(e))f[e==="toggle"?g?"show":"hide":e](l);else{var m=s.exec(e),o=f.cur(true)||0;if(m){e=parseFloat(m[2]);var r=m[3]||"px";if(r!=="px"){a.style(c,b,(e||1)+r);o=
(e||1)/f.cur(true)*o;a.style(c,b,o+r)}if(m[1])e=(m[1]==="-="?-1:1)*e+o;f.custom(o,e,r)}else f.custom(o,e,"")}});return true})},stop:function(l,h){var n=a.timers;l&&this.queue([]);this.each(function(){for(var q=n.length-1;q>=0;q--)if(n[q].elem===this){h&&n[q](true);n.splice(q,1)}});h||this.dequeue();return this}});a.each({slideDown:p("show",1),slideUp:p("hide",1),slideToggle:p("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(l,h){a.fn[l]=function(n,q,y){return this.animate(h,
n,q,y)}});a.extend({speed:function(l,h,n){var q=l&&typeof l==="object"?a.extend({},l):{complete:n||!n&&h||a.isFunction(l)&&l,duration:l,easing:n&&h||h&&!a.isFunction(h)&&h};q.duration=a.fx.off?0:typeof q.duration==="number"?q.duration:q.duration in a.fx.speeds?a.fx.speeds[q.duration]:a.fx.speeds._default;q.old=q.complete;q.complete=function(){q.queue!==false&&a(this).dequeue();a.isFunction(q.old)&&q.old.call(this)};return q},easing:{linear:function(l,h,n,q){return n+q*l},swing:function(l,h,n,q){return(-Math.cos(l*
Math.PI)/2+0.5)*q+n}},timers:[],fx:function(l,h,n){this.options=h;this.elem=l;this.prop=n;if(!h.orig)h.orig={}}});a.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(a.fx.step[this.prop]||a.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var l=parseFloat(a.css(this.elem,this.prop));return l&&l>-10000?l:0},custom:function(l,h,n){function q(A){return y.step(A)}
this.startTime=a.now();this.start=l;this.end=h;this.unit=n||this.unit||"px";this.now=this.start;this.pos=this.state=0;var y=this;l=a.fx;q.elem=this.elem;if(q()&&a.timers.push(q)&&!z)z=setInterval(l.tick,l.interval)},show:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());a(this.elem).show()},hide:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop);this.options.hide=true;
this.custom(this.cur(),0)},step:function(l){var h=a.now(),n=true;if(l||h>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var q in this.options.curAnim)if(this.options.curAnim[q]!==true)n=false;if(n){if(this.options.overflow!=null&&!a.support.shrinkWrapBlocks){var y=this.elem,A=this.options;a.each(["","X","Y"],function(i,g){y.style["overflow"+g]=A.overflow[i]})}this.options.hide&&a(this.elem).hide();if(this.options.hide||
this.options.show)for(var j in this.options.curAnim)a.style(this.elem,j,this.options.orig[j]);this.options.complete.call(this.elem)}return false}else{l=h-this.startTime;this.state=l/this.options.duration;h=this.options.easing||(a.easing.swing?"swing":"linear");this.pos=a.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||h](this.state,l,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};a.extend(a.fx,{tick:function(){for(var l=
a.timers,h=0;h<l.length;h++)l[h]()||l.splice(h--,1);l.length||a.fx.stop()},interval:13,stop:function(){clearInterval(z);z=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(l){a.style(l.elem,"opacity",l.now)},_default:function(l){if(l.elem.style&&l.elem.style[l.prop]!=null)l.elem.style[l.prop]=(l.prop==="width"||l.prop==="height"?Math.max(0,l.now):l.now)+l.unit;else l.elem[l.prop]=l.now}}});if(a.expr&&a.expr.filters)a.expr.filters.animated=function(l){return a.grep(a.timers,function(h){return l===
h.elem}).length}})(O);(function(a){function p(v){return a.isWindow(v)?v:v.nodeType===9?v.defaultView||v.parentWindow:false}var E=/^t(?:able|d|h)$/i,x=/^(?:body|html)$/i;a.fn.offset="getBoundingClientRect"in B.documentElement?function(v){var s=this[0],z;if(v)return this.each(function(n){a.offset.setOffset(this,v,n)});if(!s||!s.ownerDocument)return null;if(s===s.ownerDocument.body)return a.offset.bodyOffset(s);try{z=s.getBoundingClientRect()}catch(t){}var l=s.ownerDocument,h=l.documentElement;if(!z||
!a.contains(h,s))return z||{top:0,left:0};s=l.body;l=p(l);return{top:z.top+(l.pageYOffset||a.support.boxModel&&h.scrollTop||s.scrollTop)-(h.clientTop||s.clientTop||0),left:z.left+(l.pageXOffset||a.support.boxModel&&h.scrollLeft||s.scrollLeft)-(h.clientLeft||s.clientLeft||0)}}:function(v){var s=this[0];if(v)return this.each(function(j){a.offset.setOffset(this,v,j)});if(!s||!s.ownerDocument)return null;if(s===s.ownerDocument.body)return a.offset.bodyOffset(s);a.offset.initialize();var z=s.offsetParent,
t=s,l=s.ownerDocument,h,n=l.documentElement,q=l.body;t=(l=l.defaultView)?l.getComputedStyle(s,null):s.currentStyle;for(var y=s.offsetTop,A=s.offsetLeft;(s=s.parentNode)&&s!==q&&s!==n;){if(a.offset.supportsFixedPosition&&t.position==="fixed")break;h=l?l.getComputedStyle(s,null):s.currentStyle;y-=s.scrollTop;A-=s.scrollLeft;if(s===z){y+=s.offsetTop;A+=s.offsetLeft;if(a.offset.doesNotAddBorder&&!(a.offset.doesAddBorderForTableAndCells&&E.test(s.nodeName))){y+=parseFloat(h.borderTopWidth)||0;A+=parseFloat(h.borderLeftWidth)||
0}t=z;z=s.offsetParent}if(a.offset.subtractsBorderForOverflowNotVisible&&h.overflow!=="visible"){y+=parseFloat(h.borderTopWidth)||0;A+=parseFloat(h.borderLeftWidth)||0}t=h}if(t.position==="relative"||t.position==="static"){y+=q.offsetTop;A+=q.offsetLeft}if(a.offset.supportsFixedPosition&&t.position==="fixed"){y+=Math.max(n.scrollTop,q.scrollTop);A+=Math.max(n.scrollLeft,q.scrollLeft)}return{top:y,left:A}};a.offset={initialize:function(){var v=B.body,s=B.createElement("div"),z,t,l,h=parseFloat(a.css(v,
"marginTop"))||0;a.extend(s.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});s.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>";v.insertBefore(s,v.firstChild);z=s.firstChild;t=z.firstChild;l=
z.nextSibling.firstChild.firstChild;this.doesNotAddBorder=t.offsetTop!==5;this.doesAddBorderForTableAndCells=l.offsetTop===5;t.style.position="fixed";t.style.top="20px";this.supportsFixedPosition=t.offsetTop===20||t.offsetTop===15;t.style.position=t.style.top="";z.style.overflow="hidden";z.style.position="relative";this.subtractsBorderForOverflowNotVisible=t.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=v.offsetTop!==h;v.removeChild(s);a.offset.initialize=a.noop},bodyOffset:function(v){var s=
v.offsetTop,z=v.offsetLeft;a.offset.initialize();if(a.offset.doesNotIncludeMarginInBodyOffset){s+=parseFloat(a.css(v,"marginTop"))||0;z+=parseFloat(a.css(v,"marginLeft"))||0}return{top:s,left:z}},setOffset:function(v,s,z){var t=a.css(v,"position");if(t==="static")v.style.position="relative";var l=a(v),h=l.offset(),n=a.css(v,"top"),q=a.css(v,"left");t=t==="absolute"&&a.inArray("auto",[n,q])>-1;var y={};y={};if(t)y=l.position();n=t?y.top:parseInt(n,10)||0;q=t?y.left:parseInt(q,10)||0;if(a.isFunction(s))s=
s.call(v,z,h);y=!l.is(":visible")&&!h.top&&!h.left||isNaN(n)||isNaN(q)?{top:s.top,left:s.left}:{top:s.top-h.top+n,left:s.left-h.left+q};"using"in s?s.using.call(v,y):l.css(y)}};a.fn.extend({position:function(){if(!this[0])return null;var v=this[0],s=this.offsetParent(),z=this.offset(),t=x.test(s[0].nodeName)?{top:0,left:0}:s.offset();z.top-=parseFloat(a.css(v,"marginTop"))||0;z.left-=parseFloat(a.css(v,"marginLeft"))||0;t.top+=parseFloat(a.css(s[0],"borderTopWidth"))||0;t.left+=parseFloat(a.css(s[0],
"borderLeftWidth"))||0;return{top:z.top-t.top,left:z.left-t.left}},offsetParent:function(){return this.map(function(){for(var v=this.offsetParent||B.body;v&&!x.test(v.nodeName)&&a.css(v,"position")==="static";)v=v.offsetParent;return v})}});a.each(["Left","Top"],function(v,s){var z="scroll"+s;a.fn[z]=function(t){var l=this[0],h;if(!l)return null;if(t!==I)return this.each(function(){if(h=p(this))h.scrollTo(!v?t:a(h).scrollLeft(),v?t:a(h).scrollTop());else this[z]=t});else return(h=p(l))?"pageXOffset"in
h?h[v?"pageYOffset":"pageXOffset"]:a.support.boxModel&&h.document.documentElement[z]||h.document.body[z]:l[z]}})})(O);(function(a){a.each(["Height","Width"],function(p,E){var x=E.toLowerCase();a.fn["inner"+E]=function(){return this[0]?parseFloat(a.css(this[0],x,"padding")):null};a.fn["outer"+E]=function(v){return this[0]?parseFloat(a.css(this[0],x,v?"margin":"border")):null};a.fn[x]=function(v){var s=this[0];if(!s)return v==null?null:this;if(a.isFunction(v))return this.each(function(z){var t=a(this);
t[x](v.call(this,z,t[x]()))});return a.isWindow(s)?s.document.compatMode==="CSS1Compat"&&s.document.documentElement["client"+E]||s.document.body["client"+E]:s.nodeType===9?Math.max(s.documentElement["client"+E],s.body["scroll"+E],s.documentElement["scroll"+E],s.body["offset"+E],s.documentElement["offset"+E]):v===I?parseFloat(a.css(s,x)):this.css(x,typeof v==="string"?v:v+"px")}})})(O)})(window);
;
steal.end();
steal.plugins("jquery").then(function(f){var c={undHash:/_|-/,colons:/::/,words:/([A-Z]+)([A-Z][a-z])/g,lowerUpper:/([a-z\d])([A-Z])/g,dash:/([a-z\d])([A-Z])/g},d=f.String={strip:function(a){return a.replace(/^\s+/,"").replace(/\s+$/,"")},capitalize:function(a){return a.charAt(0).toUpperCase()+a.substr(1)},endsWith:function(a,b){var e=a.length-b.length;return e>=0&&a.lastIndexOf(b)===e},camelize:function(a){a=a.split(c.undHash);var b=1;for(a[0]=a[0].charAt(0).toLowerCase()+a[0].substr(1);b<a.length;b++)a[b]=
d.capitalize(a[b]);return a.join("")},classize:function(a){a=a.split(c.undHash);for(var b=0;b<a.length;b++)a[b]=d.capitalize(a[b]);return a.join("")},niceName:function(a){a=a.split(c.undHash);for(var b=0;b<a.length;b++)a[b]=d.capitalize(a[b]);return a.join(" ")},underscore:function(a){return a.replace(c.colons,"/").replace(c.words,"$1_$2").replace(c.lowerUpper,"$1_$2").replace(c.dash,"_").toLowerCase()}}});
;
steal.end();
steal.plugins("jquery/event").then(function(a){var e=jQuery.cleanData;a.cleanData=function(b){for(var c=0,d;(d=b[c])!==undefined;c++)a(d).triggerHandler("destroyed");e(b)}});
;
steal.end();
steal.plugins("jquery");
;
steal.end();
steal.plugins("jquery/controller/subscribe","jquery/event/hashchange").then(function(g){var k=/([^\[\]]+)|(\[\])/g;g.Controller.History={pathname:function(a){return(a=a.match(/#([^&]*)/))?a[1]:null},search:function(a){return(a=a.match(/#[^&]*&(.*)/))?a[1]:null},getData:function(a){var b=g.Controller.History.search(a);a=/^\d+$/;if(!b||!b.match(/([^?#]*)(#.*)?$/))return{};b=b.replace(/\+/g,"%20");var c={};b=b.split("&");for(var e,j=0;j<b.length;j++){e=c;var d=b[j].split("=");if(d.length!=2)d=[d[0],
d.slice(1).join("=")];var f=decodeURIComponent(d[0]);d=decodeURIComponent(d[1]);f=f.match(k);for(var h=0;h<f.length-1;h++){var i=f[h];e[i]||(e[i]=a.test(i)||f[h+1]=="[]"?[]:{});e=e[i]}lastPart=f[f.length-1];if(lastPart=="[]")e.push(d);else e[lastPart]=d}return c}};jQuery(function(a){a(window).bind("hashchange",function(){var b=a.Controller.History.getData(location.href),c=a.Controller.History.pathname(location.href)||"index";if(c.indexOf("/")==-1&&c!="index")c+="/index";OpenAjax.hub.publish("history."+
c.replace("/","."),b)});setTimeout(function(){a(window).trigger("hashchange")},1)});g.extend(g.Controller.prototype,{redirectTo:function(a){a=this._get_history_point(a);location.hash=a},replaceWith:function(a){a=this._get_history_point(a);location.replace(location.href.split("#")[0]+a)},historyAdd:function(a){a=this._get_history_point(a);location.hash=a},_get_history_point:function(a){var b=a.controller||this.Class.underscoreName,c=a.action||"index";a.controller&&delete a.controller;a.action&&delete a.action;
a=a?g.param(a):"";if(a.length)a="&"+a;return"#"+b+"/"+c+a},pathData:function(){return g.Controller.History.getData(location.href)}})});
;
steal.end();
steal.plugins("jquery","jquery/controller","jquery/lang/openajax").then(function(){jQuery.Controller.processors.subscribe=function(d,e,a,b){var c=OpenAjax.hub.subscribe(a,b);return function(){OpenAjax.hub.unsubscribe(c)}};jQuery.Controller.prototype.publish=function(){OpenAjax.hub.publish.apply(OpenAjax.hub,arguments)}});
;
steal.end();
steal.then(function(){if(!window.OpenAjax){OpenAjax=new (function(){var d={};this.hub=d;d.implementer="http://openajax.org";d.implVersion="1.0";d.specVersion="1.0";d.implExtraData={};var h={};d.libraries=h;d.registerLibrary=function(a,c,b,e){h[a]={prefix:a,namespaceURI:c,version:b,extraData:e};this.publish("org.openajax.hub.registerLibrary",h[a])};d.unregisterLibrary=function(a){this.publish("org.openajax.hub.unregisterLibrary",h[a]);delete h[a]};d._subscriptions={c:{},s:[]};d._cleanup=[];d._subIndex=
0;d._pubDepth=0;d.subscribe=function(a,c,b,e,f){b||(b=window);var g=a+"."+this._subIndex;c={scope:b,cb:c,fcb:f,data:e,sid:this._subIndex++,hdl:g};this._subscribe(this._subscriptions,a.split("."),0,c);return g};d.publish=function(a,c){var b=a.split(".");this._pubDepth++;this._publish(this._subscriptions,b,0,a,c);this._pubDepth--;if(this._cleanup.length>0&&this._pubDepth==0){for(a=0;a<this._cleanup.length;a++)this.unsubscribe(this._cleanup[a].hdl);delete this._cleanup;this._cleanup=[]}};d.unsubscribe=
function(a){a=a.split(".");var c=a.pop();this._unsubscribe(this._subscriptions,a,0,c)};d._subscribe=function(a,c,b,e){var f=c[b];if(b==c.length)a.s.push(e);else{if(typeof a.c=="undefined")a.c={};if(typeof a.c[f]=="undefined")a.c[f]={c:{},s:[]};this._subscribe(a.c[f],c,b+1,e)}};d._publish=function(a,c,b,e,f,g,l){if(typeof a!="undefined"){if(b==c.length)a=a;else{this._publish(a.c[c[b]],c,b+1,e,f,g,l);this._publish(a.c["*"],c,b+1,e,f,g,l);a=a.c["**"]}if(typeof a!="undefined"){a=a.s;c=a.length;for(b=
0;b<c;b++)if(a[b].cb){var j=a[b].scope,k=a[b].cb,i=a[b].fcb,m=a[b].data,n=a[b].sid,o=a[b].cid;if(typeof k=="string")k=j[k];if(typeof i=="string")i=j[i];if(!i||i.call(j,e,f,m))if(!g||g(e,f,l,o))k.call(j,e,f,m,n)}}}};d._unsubscribe=function(a,c,b,e){if(typeof a!="undefined")if(b<c.length){var f=a.c[c[b]];this._unsubscribe(f,c,b+1,e);if(f.s.length==0){for(var g in f.c)return;delete a.c[c[b]]}}else{a=a.s;c=a.length;for(b=0;b<c;b++)if(e==a[b].sid){if(this._pubDepth>0){a[b].cb=null;this._cleanup.push(a[b])}else a.splice(b,
1);return}}};d.reinit=function(){for(var a in OpenAjax.hub.libraries)delete OpenAjax.hub.libraries[a];OpenAjax.hub.registerLibrary("OpenAjax","http://openajax.org/hub","1.0",{});delete OpenAjax._subscriptions;OpenAjax._subscriptions={c:{},s:[]};delete OpenAjax._cleanup;OpenAjax._cleanup=[];OpenAjax._subIndex=0;OpenAjax._pubDepth=0}});OpenAjax.hub.registerLibrary("OpenAjax","http://openajax.org/hub","1.0",{})}OpenAjax.hub.registerLibrary("JavaScriptMVC","http://JavaScriptMVC.com","1.5",{})});
;
steal.end();
(function(a,d,u){function i(e){e=e||d[f][j];return e.replace(/^[^#]*#?(.*)$/,"$1")}var l,p=a.event.special,f="location",j="href",q=document.documentMode,r=a.browser.msie&&(q===u||q<8),s="onhashchange"in d&&!r;a.hashchangeDelay=100;p.hashchange=a.extend(p.hashchange,{setup:function(){if(s)return false;a(l.start)},teardown:function(){if(s)return false;a(l.stop)}});l=function(){function e(){g=m=function(b){return b};if(r){k=a('<iframe src="javascript:0"/>').hide().insertAfter("body")[0].contentWindow;
m=function(){return i(k.document[f][j])};g=function(b,c){if(b!==c){c=k.document;c.open().close();c[f].hash="#"+b}};g(i())}}var n={},h,k,g,m;n.start=function(){if(!h){var b=i();g||e();navigator.userAgent.match(/Rhino/)||function c(){var t=i(),o=m(b);if(t!==b){g(b=t,o);a(d).trigger("hashchange")}else if(o!==b)d[f][j]=d[f][j].replace(/#.*/,"")+"#"+o;h=setTimeout(c,a.hashchangeDelay)}()}};n.stop=function(){if(!k){h&&clearTimeout(h);h=0}};return n}()})(jQuery,this);
;
steal.end();
steal.plugins("jquery/view","jquery/lang/rsplit").then(function(f){var m=function(a){return a.substr(0,a.length-1)},k=f.extend,n=f.isArray,e=function(a){if(this.constructor!=e){var b=new e(a);return function(c,g){return b.render(c,g)}}if(typeof a=="function"){this.template={};this.template.process=a}else{f.extend(this,e.options,a);var d=new e.Compiler(this.text,this.type);d.compile(a,this.name);this.template=d}},o=/(\[%%)|(%%\])|(\[%=)|(\[%#)|(\[%)|(%\]\n)|(%\])|(\n)/;f.EJS=e;e.prototype={constructor:e,
render:function(a,b){a=a||{};this._extra_helpers=b;b=new e.Helpers(a,b||{});return this.template.process.call(a,a,b)},out:function(){return this.template.out}};e.text=function(a){if(typeof a=="string")return a;var b;if(a===null||a===undefined)return"";if(a instanceof Date)return a.toDateString();if(a.hookup){b=f.View.hookup(function(d,c){a.hookup.call(a,d,c)});return"data-view-id='"+b+"'"}if(typeof a=="function")return"data-view-id='"+f.View.hookup(a)+"'";if(n(a)){b=f.View.hookup(function(d,c){for(var g=
0;g<a.length;g++)a[g].hookup?a[g].hookup(d,c):a[g](d,c)});return"data-view-id='"+b+"'"}if(a.nodeName||a.jQuery)throw"elements in views are not supported";if(a.toString)return b?a.toString(b):a.toString();return""};e.Scanner=function(a,b,d){k(this,{leftDelimiter:b+"%",rightDelimiter:"%"+d,doubleLeft:b+"%%",doubleRight:"%%"+d,leftEqual:b+"%=",leftComment:b+"%#"});this.splitRegexp=b=="["?o:new RegExp("("+[this.doubleLeft,this.doubleRight,this.leftEqual,this.leftComment,this.leftDelimiter,this.rightDelimiter+
"\n",this.rightDelimiter,"\n"].join(")|(")+")");this.source=a;this.lines=0};e.Scanner.prototype={scan:function(a){var b=this.splitRegexp;if(this.source)for(var d=f.String.rsplit(this.source,/\n/),c=0;c<d.length;c++)this.scanline(d[c],b,a)},scanline:function(a,b,d){this.lines++;a=f.String.rsplit(a,b);for(var c=0;c<a.length;c++){b=a[c];if(b!==null)try{d(b,this)}catch(g){throw{type:"jQuery.EJS.Scanner",line:this.lines};}}}};e.Buffer=function(a,b){this.line=[];this.script=[];this.post_cmd=b;this.push.apply(this,
a)};e.Buffer.prototype={push:function(){this.line.push.apply(this.line,arguments)},cr:function(){this.script.push(this.line.join(""),"\n");this.line=[]},close:function(){if(this.line.length>0){this.script.push(this.line.join(""));this.line=[]}this.post_cmd.length&&this.push.apply(this,this.post_cmd);this.script.push(";");return this.script.join("")}};e.Compiler=function(a,b){this.source=a.replace(/\r\n/g,"\n").replace(/\r/g,"\n");b=b||"<";a=">";switch(b){case "[":a="]";break;case "<":break;default:throw b+
" is not a supported deliminator";}this.scanner=new e.Scanner(this.source,b,a);this.out=""};e.Compiler.prototype={compile:function(a,b){a=a||{};this.out="";var d=new e.Buffer(["var ___v1ew = [];"],[]),c="",g=function(i){return i.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/"/g,'\\"')},l=function(i){d.push("___v1ew.push(",'"',g(i),'");')},j=null;this.scanner.scan(function(i,h){if(j===null)switch(i){case "\n":c+="\n";l(c);d.cr();c="";break;case h.leftDelimiter:case h.leftEqual:case h.leftComment:j=
i;c.length>0&&l(c);c="";break;case h.doubleLeft:c+=h.leftDelimiter;break;default:c+=i;break}else switch(i){case h.rightDelimiter:switch(j){case h.leftDelimiter:if(c[c.length-1]=="\n"){c=m(c);d.push(c,";");d.cr()}else d.push(c,";");break;case h.leftEqual:d.push("___v1ew.push(","(jQuery.EJS.text(",c,")));");break}j=null;c="";break;case h.doubleRight:c+=h.rightDelimiter;break;default:c+=i;break}});c.length>0&&d.push("___v1ew.push(",'"',g(c)+'");');a=d.close();this.out="/*"+b+"*/ try { with(_VIEW) { with (_CONTEXT) {"+
a+" return ___v1ew.join('');}}}catch(e){e.lineNumber=null;throw e;}";eval("this.process = (function(_CONTEXT,_VIEW){"+this.out+"})")}};e.options={cache:true,type:"<",ext:".ejs"};e.Helpers=function(a,b){this._data=a;this._extras=b;k(this,b)};e.Helpers.prototype={plugin:function(){var a=f.makeArray(arguments),b=a.shift();return function(d){d=f(d);d[b].apply(d,a)}},view:function(a,b,d){d=d||this._extras;b=b||this._data;return f.View(a,b,d)}};f.View.register({suffix:"ejs",script:function(a,b){return"jQuery.EJS(function(_CONTEXT,_VIEW) { "+
(new e({text:b})).out()+" })"},renderer:function(a,b){var d=new e({text:b,name:a});return function(c,g){return d.render.call(d,c,g)}}})});
;
steal.end();
window.jQuery&&jQuery.Controller&&steal.plugins("jquery/controller/view");
steal.plugins("jquery").then(function(d){var u=function(a){return a.replace(/^\/\//,"").replace(/[\/\.]/g,"_")},v=1,o,k,j,p;o=d.View=function(a,c,b,e){var f=a.match(/\.[\w\d]+$/),g,h,i=a;if(typeof b==="function"){e=b;b=undefined}if(!f){f=d.View.ext;i+=d.View.ext}h=u(i);if(i.match(/^\/\//))i=steal.root.join(i.substr(2));f=d.View.types[f];return(a=d.View.cached[h]?d.View.cached[h]:(g=document.getElementById(a))?f.renderer(h,g.innerHTML):p(f,h,i,c,b,e))&&k(a,f,h,c,b,e)};k=function(a,c,b,e,f,g){if(d.View.cache)d.View.cached[b]=
a;a=a.call(c,e,f);g&&g(a);return a};j=function(a,c){if(!a.match(/[^\s]/))throw"$.View ERROR: There is no template or an empty template at "+c;};p=function(a,c,b,e,f,g){if(g)d.ajax({url:b,dataType:"text",error:function(){j("",b)},success:function(i){j(i,b);k(a.renderer(c,i),a,c,e,f,g)}});else{var h=d.ajax({async:false,url:b,dataType:"text",error:function(){j("",b)}}).responseText;j(h,b);return a.renderer(c,h)}};d.extend(d.View,{hookups:{},hookup:function(a){var c=++v;o.hookups[c]=a;return c},cached:{},
cache:true,register:function(a){this.types["."+a.suffix]=a},types:{},ext:".ejs",registerScript:function(a,c,b){return"$.View.preload('"+c+"',"+d.View.types["."+a].script(c,b)+");"},preload:function(a,c){d.View.cached[a]=function(b,e){return c.call(b,b,e)}}});var q,l,r,s,t,m;q=function(a){var c=jQuery.fn[a];jQuery.fn[a]=function(){var b=d.makeArray(arguments),e,f,g=this;if(r(b)){if(e=s(b)){f=b[e];b[e]=function(h){l.call(g,[h],c);f.call(g,h)};d.View.apply(d.View,b);return this}b=[d.View.apply(d.View,
b)]}return l.call(this,b,c)}};l=function(a,c){for(var b in jQuery.View.hookups);if(b)a[0]=d(a[0]);c=c.apply(this,a);b&&t(a[0]);return c};r=function(a){var c=typeof a[1];return typeof a[0]=="string"&&(c=="object"||c=="function")&&!a[1].nodeType&&!a[1].jquery};s=function(a){return typeof a[3]==="function"?3:typeof a[2]==="function"&&2};t=function(a){var c=jQuery.View.hookups,b,e=0,f,g;jQuery.View.hookups={};a=a.add("[data-view-id]",a);for(b=a.length;e<b;e++)if(a[e].getAttribute&&(f=a[e].getAttribute("data-view-id"))&&
(g=c[f])){g(a[e],f);delete c[f];a[e].removeAttribute("data-view-id")}d.extend(jQuery.View.hookups,c)};m=["prepend","append","after","before","replace","text","html","replaceWith"];for(var n=0;n<m.length;n++)q(m[n])});
;
steal.end();
steal.plugins("jquery/controller","jquery/view").then(function(){jQuery.Controller.getFolder=function(){return jQuery.String.underscore(this.fullName.replace(/\./g,"/")).replace("/Controllers","")};var g=function(a,b,c){var d=a.fullName.replace(/\./g,"/"),e=d.indexOf("/Controllers/"+a.shortName)!=-1;d=jQuery.String.underscore(d.replace("/Controllers/"+a.shortName,""));a=a._shortName;var f=typeof b=="string"&&b.match(/\.[\w\d]+$/)||jQuery.View.ext;if(typeof b=="string"){if(b.substr(0,2)!="//")b="//"+
(new steal.File("views/"+(b.indexOf("/")!==-1?b:(e?a+"/":"")+b))).joinFrom(d)+f}else b||(b="//"+(new steal.File("views/"+(e?a+"/":"")+c.replace(/\.|#/g,"").replace(/ /g,"_"))).joinFrom(d)+f);return b},h=function(a){var b={};if(a)if(jQuery.isArray(a))for(var c=0;c<a.length;c++)jQuery.extend(b,a[c]);else jQuery.extend(b,a);else{if(this._default_helpers)b=this._default_helpers;a=window;c=this.Class.fullName.split(/\./);for(var d=0;d<c.length;d++){typeof a.Helpers=="object"&&jQuery.extend(b,a.Helpers);
a=a[c[d]]}typeof a.Helpers=="object"&&jQuery.extend(b,a.Helpers);this._default_helpers=b}return b};jQuery.Controller.prototype.view=function(a,b,c){if(typeof a!="string"&&!c){c=b;b=a;a=null}a=g(this.Class,a,this.called);b=b||this;c=h.call(this,c);return jQuery.View(a,b,c)}});
;
steal.end();
steal.plugins("jquery/lang").then(function(f){f.String.rsplit=function(a,e){for(var b=e.exec(a),c=[],d;b!==null;){d=b.index;if(d!==0){c.push(a.substring(0,d));a=a.slice(d)}c.push(b[0]);a=a.slice(b[0].length);b=e.exec(a)}a!==""&&c.push(a);return c}});
;
steal.end();
steal.plugins("jquery/class","jquery/lang").then(function(){var j=$.String.underscore,k=$.String.classize;jQuery.Class.extend("jQuery.Model",{setup:function(a){if(!this.attributes||a.attributes===this.attributes)this.attributes={};if(!this.associations||a.associations===this.associations)this.associations={};if(!this.validations||a.validations===this.validations)this.validations={};if(a.convert!=this.convert)this.convert=$.extend(a.convert,this.convert);this._fullName=j(this.fullName.replace(/\./g,
"_"));if(this.fullName.substr(0,7)!="jQuery."){jQuery.Model.models[this._fullName]=this;if(this.listType)this.list=new this.listType([])}},attributes:{},defaults:{},wrap:function(a){if(!a)return null;return new this(a[this.singularName]||a.data||a.attributes||a)},wrapMany:function(a){if(!a)return null;var b=new (this.List||$.Model.List||Array),c=$.isArray(a),g=c?a:a.data,f=g.length,d=0;for(b._use_call=true;d<f;d++)b.push(this.wrap(g[d]));if(!c)for(var e in a)if(e!=="data")b[e]=a[e];return b},id:"id",
addAttr:function(a,b){if(!this.associations[a]){this.attributes[a]||(this.attributes[a]=b);return b}},models:{},publish:function(a,b){window.OpenAjax&&OpenAjax.hub.publish(j(this.shortName)+"."+a,b)},guessType:function(a){if(typeof a!="string"){if(a===null)return typeof a;if(a.constructor==Date)return"date";if($.isArray(a))return"array";return typeof a}if(a==="")return"string";if(a=="true"||a=="false")return"boolean";if(!isNaN(a)&&isFinite(+a))return"number";return typeof a},convert:{date:function(a){return typeof a===
"string"?isNaN(Date.parse(a))?null:Date.parse(a):a},number:function(a){return parseFloat(a)},"boolean":function(a){return Boolean(a)}},create:function(){throw"Model: Implement Create";},update:function(){throw"Model: Implement "+this.fullName+'\'s "update"!';},destroy:function(){throw"Model: Implement "+this.fullName+'\'s "destroy"!';},findAll:function(){},findOne:function(){}},{setup:function(a){this._initializing=true;this.Class.defaults&&this.attrs(this.Class.defaults);this.attrs(a);delete this._initializing},
update:function(a,b,c){this.attrs(a);return this.save(b,c)},errors:function(a){if(a)a=$.isArray(a)?a:$.makeArray(arguments);var b={},c=this,g=function(d,e){$.each(e,function(h,i){if(h=i.call(c)){b.hasOwnProperty(d)||(b[d]=[]);b[d].push(h)}})};$.each(a||this.Class.validations||{},function(d,e){if(typeof d=="number"){d=e;e=c.Class.validations[d]}g(d,e||[])});for(var f in b)if(b.hasOwnProperty(f))return b;return null},attr:function(a,b,c,g){var f=k(a),d="get"+f;if(b!==undefined){this._setProperty(a,
b,c,g,f);return this}return this[d]?this[d]():this[a]},bind:function(){var a=$(this);a.bind.apply(a,arguments);return this},unbind:function(){var a=$(this);a.unbind.apply(a,arguments);return this},_setProperty:function(a,b,c,g,f){f="set"+f;var d=this[a],e=this,h=function(i){g&&g.call(e,i);$(e).triggerHandler("error."+a,i)};this[f]&&(b=this[f](b,this.callback("_updateProperty",a,b,d,c,h),h))===undefined||this._updateProperty(a,b,d,c,h)},_updateProperty:function(a,b,c,g,f){var d=this.Class,e=d.attributes[a]||
d.addAttr(a,d.guessType(b)),h=d.convert[e];e=null;b=this[a]=b===null?null:h?h.call(d,b):b;this._initializing||(e=this.errors(a));if(e)f(e);else{c!==b&&!this._initializing&&$(this).triggerHandler(a,b);g&&g(this)}if(a==d.id&&b!==null&&d.list)if(c){if(c!=b){d.list.remove(c);d.list.push(this)}}else d.list.push(this)},attrs:function(a){var b;if(a){var c=this.Class.id;for(b in a)b!=c&&this.attr(b,a[b]);c in a&&this.attr(c,a[c])}else{a={};for(b in this.Class.attributes)if(this.Class.attributes.hasOwnProperty(b))a[b]=
this.attr(b)}return a},isNew:function(){return this[this.Class.id]===undefined},save:function(a,b){if(this.errors())return false;this.isNew()?this.Class.create(this.attrs(),this.callback(["created",a]),b):this.Class.update(this[this.Class.id],this.attrs(),this.callback(["updated",a]),b);return true},destroy:function(a,b){this.Class.destroy(this[this.Class.id],this.callback(["destroyed",a]),b)},identity:function(){var a=this[this.Class.id];return this.Class._fullName+"_"+(this.Class.escapeIdentity?
encodeURIComponent(a):a)},elements:function(a){return $("."+this.identity(),a)},publish:function(a,b){this.Class.publish(a,b||this)},hookup:function(a){var b=j(this.Class.shortName),c=$.data(a,"models")||$.data(a,"models",{});$(a).addClass(b+" "+this.identity());c[b]=this}});$.each(["created","updated","destroyed"],function(a,b){$.Model.prototype[b]=function(c){b==="destroyed"&&this.Class.list&&this.Class.list.remove(this[this.Class.id]);$(this).triggerHandler(b);c&&typeof c=="object"&&this.attrs(c.attrs?
c.attrs():c);this.publish(b,this);return[this].concat($.makeArray(arguments))}});$.fn.models=function(){var a=[],b,c;this.each(function(){$.each($.data(this,"models")||{},function(g,f){b=b===undefined?f.Class.List||null:f.Class.List===b?b:null;a.push(f)})});c=new (b||$.Model.List||Array);c.push.apply(c,$.unique(a));return c};$.fn.model=function(a){if(a&&a instanceof $.Model){a.hookup(this[0]);return this}else return this.models.apply(this,arguments)[0]}});
;
steal.end();
steal.plugins("jquery").then(function(){(function(e){e.toJSON=function(a,c,b,h){if(typeof JSON=="object"&&JSON.stringify)return JSON.stringify(a,c,b);if(!h&&e.isFunction(c))a=c("",a);if(typeof b=="number")b=" ".substring(0,b);b=typeof b=="string"?b.substring(0,10):"";var f=typeof a;if(a===null)return"null";if(!(f=="undefined"||f=="function")){if(f=="number"||f=="boolean")return a+"";if(f=="string")return e.quoteString(a);if(f=="object"){if(typeof a.toJSON=="function")return e.toJSON(a.toJSON(),
c,b,true);if(a.constructor===Date){b=a.getUTCMonth()+1;if(b<10)b="0"+b;h=a.getUTCDate();if(h<10)h="0"+h;var i=a.getUTCFullYear(),g=a.getUTCHours();if(g<10)g="0"+g;var d=a.getUTCMinutes();if(d<10)d="0"+d;var j=a.getUTCSeconds();if(j<10)j="0"+j;a=a.getUTCMilliseconds();if(a<100)a="0"+a;if(a<10)a="0"+a;return'"'+i+"-"+b+"-"+h+"T"+g+":"+d+":"+j+"."+a+'Z"'}h=e.isFunction(c)?function(k,l){return c(k,l)}:function(k,l){return l};i=b?"\n":"";j=b?" ":"";if(a.constructor===Array){g=[];for(d=0;d<a.length;d++)g.push((e.toJSON(h(d,
a[d]),c,b,true)||"null").replace(/^/gm,b));return"["+i+g.join(","+i)+i+"]"}var n=[];if(e.isArray(c))g=e.map(c,function(k){return typeof k=="string"||typeof k=="number"?k+"":null});for(d in a){var m;f=typeof d;if(!(g&&e.inArray(d+"",g)==-1)){if(f=="number")f='"'+d+'"';else if(f=="string")f=e.quoteString(d);else continue;m=e.toJSON(h(d,a[d]),c,b,true);typeof m!="undefined"&&n.push((f+":"+j+m).replace(/^/gm,b))}}return"{"+i+n.join(","+i)+i+"}"}}};e.evalJSON=function(a){if(typeof JSON=="object"&&JSON.parse)return JSON.parse(a);
return eval("("+a+")")};e.secureEvalJSON=function(a){if(typeof JSON=="object"&&JSON.parse)return JSON.parse(a);var c=a;c=c.replace(/\\["\\\/bfnrtu]/g,"@");c=c.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");c=c.replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(c))return eval("("+a+")");else throw new SyntaxError("Error parsing JSON, source is not valid.");};e.quoteString=function(a){if(a.match(o))return'"'+a.replace(o,function(c){var b=p[c];if(typeof b==="string")return b;
b=c.charCodeAt();return"\\u00"+Math.floor(b/16).toString(16)+(b%16).toString(16)})+'"';return'"'+a+'"'};var o=/["\\\x00-\x1f\x7f-\x9f]/g,p={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"}})(jQuery)});
;
steal.end();
steal.plugins("jquery/lang/json").then(function(){jQuery.cookie=function(d,b,a){if(typeof b!="undefined"){a=a||{};if(b===null){b="";a.expires=-1}if(typeof b=="object"&&jQuery.toJSON)b=jQuery.toJSON(b);var c="";if(a.expires&&(typeof a.expires=="number"||a.expires.toUTCString)){if(typeof a.expires=="number"){c=new Date;c.setTime(c.getTime()+a.expires*24*60*60*1E3)}else c=a.expires;c="; expires="+c.toUTCString()}var e=a.path?"; path="+a.path:"",f=a.domain?"; domain="+a.domain:"";a=a.secure?"; secure":
"";document.cookie=[d,"=",encodeURIComponent(b),c,e,f,a].join("")}else{b=null;if(document.cookie&&document.cookie!=""){a=document.cookie.split(";");for(c=0;c<a.length;c++){e=jQuery.trim(a[c]);if(e.substring(0,d.length+1)==d+"="){b=decodeURIComponent(e.substring(d.length+1));break}}}if(jQuery.evalJSON&&b&&b.match(/^\s*\{/))try{b=jQuery.evalJSON(b)}catch(g){}return b}}});
;
steal.end();
steal.plugins("jquery/dom/dimensions","jquery/event/resize").then(function(c){var i=/script|td/,j=function(a){return a===document||a===document.documentElement||a===window||a===document.body},k=function(a){if(a[0]==window)return false;a=a.curStyles("borderBottomWidth","paddingBottom");return!parseInt(a.borderBottomWidth)&&!parseInt(a.paddingBottom)},l=function(a,b){return a.outerHeight()+b(a)};pageOffset=function(a){return a.offset().top};offsetTop=function(a){return a[0].offsetTop};inFloat=function(a,
b){for(;a&&a!=b;){var d=c(a).css("float");if(d=="left"||d=="right")return d;a=a.parentNode}};filler=c.fn.mxui_filler=function(a){a||(a={});a.parent||(a.parent=c(this).parent());a.parent=c(a.parent);var b=j(a.parent[0]);if(b)a.parent=c(window);b={filler:this,inFloat:inFloat(this[0],b?document.body:a.parent[0])};c(a.parent).bind("resize",b,filler.parentResize);this.bind("destroyed",b,function(d){d.filler.removeClass("mxui_filler");c(a.parent).unbind("resize",filler.parentResize)});this.addClass("mxui_filler");
b=function(){setTimeout(function(){a.parent.triggerHandler("resize")},13)};c.isReady?b():c(b);return this};c.extend(filler,{parentResize:function(a){var b=c(this),d=this==window?c(document.body):b,g=k(b),e=d.children().filter(function(){if(i.test(this.nodeName.toLowerCase()))return false;var f=c.curStyles(this,["position","display"]);return f.position!=="absolute"&&f.position!=="fixed"&&f.display!=="none"&&!jQuery.expr.filters.hidden(this)}).eq(-1),h=a.data.filler.offsetParent()[0]===d[0];offset=
h||e.offsetParent()[0]==d.offsetParent()[0]?offsetTop:pageOffset;firstOffset=h?0:offset(d);parentHeight=b.height();if(g)e=c('<div style="height: 0px; line-height:0px;overflow:hidden;'+(a.data.inFloat?"clear: both":"")+';"/>').appendTo(d);b=l(e,offset)-0-firstOffset;b=parentHeight-b;d=a.data.filler.height();a.data.filler.height(d+b);g&&e.remove();a.data.filler.triggerHandler("resize")}})});
;
steal.end();
steal.plugins("jquery/dom/cur_styles").then(function(a){var m=/button|select/i,f={},h={width:["Left","Right"],height:["Top","Bottom"],oldOuterHeight:a.fn.outerHeight,oldOuterWidth:a.fn.outerWidth,oldInnerWidth:a.fn.innerWidth,oldInnerHeight:a.fn.innerHeight};a.each({width:"Width",height:"Height"},function(d,e){f[d]=function(c,b){var j=0;if(!m.test(c.nodeName)){var k=[];a.each(h[d],function(){var l=this;a.each(b,function(g,n){if(n)k.push(g+l+(g=="border"?"Width":""))})});a.each(a.curStyles(c,k),function(l,
g){j+=parseFloat(g)||0})}return j};a.fn["outer"+e]=function(c,b){if(typeof c=="number"){this[d](c-f[d](this[0],{padding:true,border:true,margin:b}));return this}else return h["oldOuter"+e].call(this,c)};a.fn["inner"+e]=function(c){if(typeof c=="number"){this[d](c-f[d](this[0],{padding:true}));return this}else return h["oldInner"+e].call(this,c)};var i=function(c){return function(b){if(b.state==0){b.start=a(b.elem)[d]();b.end-=f[d](b.elem,c)}b.elem.style[d]=b.pos*(b.end-b.start)+b.start+"px"}};a.fx.step["outer"+
e]=i({padding:true,border:true});a.fx.step["outer"+e+"Margin"]=i({padding:true,border:true,margin:true});a.fx.step["inner"+e]=i({padding:true})})});
;
steal.end();
steal.plugin("jquery/dom").then(function(f){var i=document.defaultView&&document.defaultView.getComputedStyle,n=/([A-Z])/g,l=/-([a-z])/ig,m=function(a,g){return g.toUpperCase()},o=function(a){if(i)return i(a,null);else if(a.currentStyle)return a.currentStyle},p=/float/i,q=/^-?\d+(?:px)?$/i,r=/^-?\d/;f.curStyles=function(a,g){if(!a)return null;for(var j=o(a),c,d,h=a.style,e={},k=0,b;k<g.length;k++){b=g[k];c=b.replace(l,m);if(p.test(b)){b=jQuery.support.cssFloat?"float":"styleFloat";c="cssFloat"}if(i){b=
b.replace(n,"-$1").toLowerCase();d=j.getPropertyValue(b);if(b==="opacity"&&d==="")d="1";e[c]=d}else{d=b.replace(l,m);e[c]=j[b]||j[d];if(!q.test(e[c])&&r.test(e[c])){b=h.left;var s=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=d==="fontSize"?"1em":e[c]||0;e[c]=h.pixelLeft+"px";h.left=b;a.runtimeStyle.left=s}}}return e};f.fn.curStyles=function(){return f.curStyles(this[0],f.makeArray(arguments))}});
;
steal.end();
steal.plugins("jquery");
;
steal.end();
steal.plugins("jquery/event").then(function(f){var c=0,a=f(window),g=a.width(),h=a.height(),i;f.event.special.resize={add:function(d){d.origHandler=d.handler;d.handler=function(b,e){if(this!==window||c===0&&!b.originalEvent){c++;d.origHandler.call(this,b,e);c--}b=a.width();e=a.height();if(c===0&&(b!=g||e!=h)){g=b;h=e;clearTimeout(i);i=setTimeout(function(){a.triggerHandler("resize")},1)}}},setup:function(){return this!==window}}});
;
steal.end();
steal.plugins("jquery","jquery/controller").then(function(d){d.Controller.extend("Phui.Positionable",{listensTo:["show","move"],iframe:false,keep:false},{init:function(){this.element.css("position","absolute");if(!this.options.keep){this.element[0].parentNode.removeChild(this.element[0]);document.body.appendChild(this.element[0])}},show:function(){this.move.apply(this,arguments)},move:function(a,b,e){var c=d.extend({},this.options);c.of=e||c.of;if(c.of){a=d(c.of);var h=(c.collision||"flip").split(" "),
g=c.offset?c.offset.split(" "):[0,0],i,j;if(c.of.nodeType===9){i=a.width();j=a.height();a={top:0,left:0}}else if(c.of.scrollTo&&c.of.document){i=a.width();j=a.height();a={top:a.scrollTop(),left:a.scrollLeft()}}else if(c.of.preventDefault){c.at="left top";i=j=0;a={top:c.of.pageY,left:c.of.pageX}}else if(c.of.top){c.at="left top";i=j=0;a={top:c.of.top,left:c.of.left}}else{i=a.outerWidth();j=a.outerHeight();if(this.options.keep){a=a.offset();b=this.element.parent().children(":first").offset();a={left:a.left-
b.left,top:a.top-b.top}}else a=a.offset()}d.each(["my","at"],function(){var f=(c[this]||"").split(" ");if(f.length===1)f=p.test(f[0])?f.concat([l]):q.test(f[0])?[m].concat(f):[m,l];f[0]=p.test(f[0])?f[0]:m;f[1]=q.test(f[1])?f[1]:l;c[this]=f});if(h.length===1)h[1]=h[0];g[0]=parseInt(g[0],10)||0;if(g.length===1)g[1]=g[0];g[1]=parseInt(g[1],10)||0;if(c.at[0]==="right")a.left+=i;else if(c.at[0]===m)a.left+=i/2;if(c.at[1]==="bottom")a.top+=j;else if(c.at[1]===l)a.top+=j/2;a.left+=g[0];a.top+=g[1];b=this.element;
var n=b.outerWidth(),o=b.outerHeight(),k=d.extend({},a);if(c.my[0]==="right")k.left-=n;else if(c.my[0]===m)k.left-=n/2;if(c.my[1]==="bottom")k.top-=o;else if(c.my[1]===l)k.top-=o/2;d.each(["left","top"],function(f,r){d.ui.position[h[f]]&&d.ui.position[h[f]][r](k,{targetWidth:i,targetHeight:j,elemWidth:n,elemHeight:o,offset:g,my:c.my,at:c.at})});b.offset(d.extend(k,{using:c.using}))}}});d.ui=d.ui||{};var p=/left|center|right/,m="center",q=/top|center|bottom/,l="center",s=d.fn.position;d.fn.position=
function(a){if(!a||!a.of)return s.apply(this,arguments)};d.ui.position={fit:{left:function(a,b){var e=d(window);b=a.left+b.elemWidth-e.width()-e.scrollLeft();a.left=b>0?a.left-b:Math.max(0,a.left)},top:function(a,b){var e=d(window);b=a.top+b.elemHeight-e.height()-e.scrollTop();a.top=b>0?a.top-b:Math.max(0,a.top)}},flip:{left:function(a,b){if(b.at[0]!=="center"){var e=d(window);e=a.left+b.elemWidth-e.width()-e.scrollLeft();var c=b.my[0]==="left"?-b.elemWidth:b.my[0]==="right"?b.elemWidth:0,h=-2*b.offset[0];
a.left+=a.left<0?c+b.targetWidth+h:e>0?c-b.targetWidth+h:0}},top:function(a,b){if(b.at[1]!=="center"){var e=d(window);e=a.top+b.elemHeight-e.height()-e.scrollTop();var c=b.my[1]==="top"?-b.elemHeight:b.my[1]==="bottom"?b.elemHeight:0,h=b.at[1]==="top"?b.targetHeight:-b.targetHeight,g=-2*b.offset[1];a.top+=a.top<0?c+b.targetHeight+g:e>0?c+h+g:0}}}}});
;
steal.end();
steal.plugins("jquery/controller","jquery/event/default","jquery/event/livehack","jquery/dom/closest").then(function(e){e.Controller.extend("Phui.Menuable",{defaults:{types:[],active:"active",select:"selected",child_selector:"li"},listensTo:["hide","show","hide:before","hide:after","show:before","show:after"]},{ifThereIs:function(a){var b=function(){if(typeof a.beforeTriggering=="string")a.on.trigger(a.beforeTriggering);else a.beforeTriggering&&a.beforeTriggering()};if(a.a.length){a.a.bind(a.andWaitFor,
function(d){if(this==d.target){e(this).unbind(a.andWaitFor,arguments.callee);b()}});if(!a.a.triggerHandled(a.trigger,a.withData)){a.ifNothingResponds&&a.ifNothingResponds(a.a);b()}}else b()},sub:function(a){return a.children().eq(1)},calculateSubmenuPosition:function(a){return a},">{child_selector} default.activate":function(a,b){if(!a.hasClass(this.options.active))if(!this.activating){this.activating=true;var d=this.find("."+this.options.active+":first"),c=this,f=function(){c.ifThereIs({a:d,trigger:"deactivate",
andWaitFor:"deactivate:after",beforeTriggering:function(){c.ifThereIs({a:c.sub(a),trigger:"show",withData:c.calculateSubmenuPosition(a,b),andWaitFor:"show:after",ifNothingResponds:function(g){g.show()},beforeTriggering:"activate:before",on:a})}})};a.hasClass(this.options.select)?f():a.one("select:after",f).trigger("select")}},">{child_selector} default.activate:before":function(a){a.trigger("activate:after")},">{child_selector} default.activate:after":function(a){a.addClass(this.options.active);this.activating=
false;this.element.trigger("change")},">{child_selector} default.deactivate":function(a){this.ifThereIs({a:this.sub(a),trigger:"hide",andWaitFor:"hide:after",ifNothingResponds:function(b){b.hide()},beforeTriggering:"deactivate:before",on:a})},">{child_selector} default.deactivate:before":function(a){a.trigger("deactivate:after")},">{child_selector} default.deactivate:after":function(a){a.removeClass(this.options.active)},">{child_selector} default.select":function(a){if(!this.selecting){this.selecting=
true;this.ifThereIs({a:this.find("."+this.options.select+":first"),trigger:"deselect",andWaitFor:"deselect:after",beforeTriggering:"select:before",on:a})}},">{child_selector} default.select:before":function(a){a.trigger("select:after")},">{child_selector} default.select:after":function(a){a.addClass(this.options.select);this.selecting=false},">{child_selector} default.deselect":function(a){a.trigger("deselect:before")},">{child_selector} default.deselect:before":function(a){a.trigger("deselect:after")},
">{child_selector} default.deselect:after":function(a){a.removeClass(this.options.select)},">default.hide":function(a){var b=this;this.ifThereIs({a:this.element.find("."+this.options.active),trigger:"deactivate",andWaitFor:"deactivate:after",beforeTriggering:function(){b.ifThereIs({a:b.element.find("."+b.options.select),trigger:"deselect",andWaitFor:"deselect:after",beforeTriggering:"hide:before",on:a})}})},">default.hide:before":function(a){a.triggerDefaults("hide:after")},">default.show":function(a){a.trigger("show:before")},
">default.show:before":function(a){a.triggerDefaults("show:after")}})});
;
steal.end();
steal.plugins("jquery/event").then(function(d){var h={},i=/\.(.*)$/;d.event.special["default"]={add:function(a){h[a.namespace.replace(i,"")]=true;var c=a.handler;a.origHandler=c;a.handler=function(b,f){if(!b._defaultActions)b._defaultActions=[];b._defaultActions.push({element:this,handler:c,event:b,data:f,currentTarget:b.currentTarget})}},setup:function(){return true}};var g=d.event.trigger;d.event.trigger=function(a,c,b,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[d.expando]?a:jQuery.extend(jQuery.Event(e),
a):jQuery.Event(e);if(e.indexOf("!")>=0){a.type=e.slice(0,-1);a.exclusive=true}a._defaultActions=[]}e=jQuery.Event("default."+a.type);d.extend(e,{target:b,_defaultActions:a._defaultActions,exclusive:true});e.stopPropagation();b&&g.call(d.event,e,[e,c],b,true);g.call(d.event,a,c,b,f);if(!a.isDefaultPrevented()&&a._defaultActions&&(a.isPropagationStopped()||!b.parentNode&&!b.ownerDocument)){a.namespace=a.type;a.type="default";a.liveFired=null;for(c=0;c<a._defaultActions.length;c++){b=a._defaultActions[c];
f=a.handled;a.currentTarget=b.currentTarget;b.handler.call(b.element,a,b.data);a.handled=a.handled===null?f:true}a._defaultActions=null}};d.fn.triggerDefault=function(a,c){if(this[0]){a=d.Event(a);a.stopPropagation();jQuery.event.trigger(a,c,this[0]);return!a.isDefaultPrevented()}return true};d.fn.triggerDefaults=function(a,c){if(this[0]){a=d.Event(a);jQuery.event.trigger(a,c,this[0]);return!a.isDefaultPrevented()}return true}});
;
steal.end();
steal.plugins("jquery/event").then(function(){var g=jQuery.event,l=function(b,d,e){for(var f=0;f<d.length;f++){var c=d[f],a,h=c.indexOf(".")<0,i;if(!h){a=c.split(".");c=a.shift();i=new RegExp("(^|\\.)"+a.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}a=(b[c]||[]).slice(0);for(var k=0;k<a.length;k++){var j=a[k];if(!j.selector&&(h||i.test(j.namespace)))e(c,j.origHandler||j.handler)}}};g.find=function(b,d,e){b=$.data(b,"events");var f=[];if(!b)return f;if(e){if(!b.live)return[];b=b.live;for(var c=
0;c<b.length;c++){var a=b[c];if(a.selector===e&&$.inArray(a.origType,d)!==-1)f.push(a.origHandler||a.handler)}}else l(b,d,function(h,i){f.push(i)});return f};g.findBySelector=function(b,d){b=$.data(b,"events");var e={},f=function(c,a,h){c=e[c]||(e[c]={});(c[a]||(c[a]=[])).push(h)};if(!b)return e;$.each(b.live||[],function(c,a){if($.inArray(a.origType,d)!==-1)f(a.selector,a.origType,a.origHandler||a.handler)});l(b,d,function(c,a){f("",c,a)});return e};$.fn.respondsTo=function(b){return this.length?
g.find(this[0],$.isArray(b)?b:[b]).length>0:false};$.fn.triggerHandled=function(b,d){b=typeof b=="string"?$.Event(b):b;this.trigger(b,d);return b.handled};g.setupHelper=function(b,d,e){if(!e){e=d;d=null}var f=function(a){if(a=a.selector||"")g.find(this,b,a).length||$(this).delegate(a,d,e);else g.find(this,b,a).length||g.add(this,d,e,{selector:a,delegate:this})},c=function(a){if(a=a.selector||"")g.find(this,b,a).length||$(this).undelegate(a,d,e);else g.find(this,b,a).length||g.remove(this,d,e,{selector:a,
delegate:this})};$.each(b,function(){g.special[this]={add:f,remove:c,setup:function(){},teardown:function(){}}})}});
;
steal.end();
steal.plugins("jquery/dom").then(function(){var k=jQuery.fn.closest;jQuery.fn.closest=function(a,i){var f={},b,c,d,g,j=true,h=a;if(typeof a=="string")h=[a];$.each(h,function(l,e){if(e.indexOf(">")==0){if(e.indexOf(" ")!=-1)throw" closest does not work with > followed by spaces!";f[h[l]=e.substr(1)]=e;if(typeof a=="string")a=e.substr(1);j=false}});b=k.call(this,a,i);if(j)return b;for(d=0;d<b.length;){c=b[d];g=c.selector;if(f[g]!==undefined){c.selector=f[g];f[g]=false;if(typeof c.selector!=="string"||
c.elem.parentNode!==i){b.splice(d,1);continue}}d++}return b}});
;
steal.end();
var orderedParams=function(a){var c=[];for(var d in a)c[a[d].order]=a[d];return c};
DocumentationHelpers={previousIndent:0,calculateDisplay:function(a,c){var d=c.split(/\./);a=a.split(/\./);for(var b=[],f=[],e=0;e<d.length;e++)if(a[e]&&a[e]==d[e])b.push(d[e]);else{f=d.slice(e);break}if(b.length==1&&(b[0]=="jQuery"||b[0]=="steal"))return{length:1,name:c};if(this.indentAdjust===undefined)this.indentAdjust=b.length?0:1;return{length:b.length<2?b.length+this.indentAdjust:b.length,name:f.join(".")}},normalizeName:function(a){return a.replace(/>/,"_gt_").replace(/\*/g,"_star_")},linkTags:function(a){for(var c=
[],d=0;d<a.length;d++)c.push("<a href='#&search="+a[d]+"'>"+a[d]+"</a>");return c.join(" ")},linkOpen:function(a){return"<a href='#&who="+a+"'>"+a+"</a>"},signiture:function(){var a=[],c=this._data.name;c=c.replace("jQuery.","$.");var d=c.lastIndexOf(".static."),b=c.lastIndexOf(".prototype.");if(d!=-1)c=c.substring(0,d)+"."+c.substring(d+8);else if(b!=-1)c=jQuery.String.underscore(c.substring(0,b).replace("$.",""))+"."+c.substring(b+11);if(this._data.construct)c="new "+c;d=orderedParams(this._data.params);
for(b=0;b<d.length;b++)a.push(d[b].name);return c+"("+a.join(", ")+")"+(this._data.ret?" -> "+this._data.ret.type:"")},link:function(a,c){return a.replace(/\[\s*((?:['"][^"']*["'])|[^\|\]\s]*)\s*\|?\s*([^\]]*)\s*\]/g,function(d,b,f){if(/^["']/.test(b))b=b.substr(1,b.length-2);var e=Search._data.list[b]?b:null;if(e){f||(f=c?b:b.replace(/\.prototype|\.static/,""));return"<a href='#&who="+e+"'>"+f+"</a>"}else if(typeof b=="string"&&b.match(/^https?|www\.|#/))return"<a href='"+b+"'>"+(f||b)+"</a>";return d})},
shortenUrl:function(a){a=a.href?a.href:a;var c=a.match(/(https?:\/\/|file:\/\/)[^\/]*\/(.*)/);return c[2]?c[2]:a}};
;
steal.end();
var hljs=new (function(){function G(d){for(var c="",g=0;g<d.childNodes.length;g++)if(d.childNodes[g].nodeType==3)c+=d.childNodes[g].nodeValue;else if(d.childNodes[g].nodeName=="BR")c+="\n";else throw"No highlight";return c}function H(d){d=d.className.split(/\s+/);for(var c=0;c<d.length;c++){if(d[c]=="no-highlight")throw"No highlight";if(l[d[c]])return d[c]}}function B(d,c){try{var g=G(d),k=H(d)}catch(m){if(m=="No highlight")return}if(k)var n=i.highlight(k,g).value;else{var v=0;for(var s in t)if(t.hasOwnProperty(s)){var u=
i.highlight(s,g),p=u.keyword_count+u.relevance;if(p>v){v=p;n=u.value;k=s}}}if(n){if(c)n=n.replace(/^(\t+)/gm,function(x,y){return y.replace(/\t/g,c)});g=d.className;g.match(k)||(g+=" "+k);k=document.createElement("div");k.innerHTML='<pre><code class="'+g+'">'+n+"</code></pre>";d.parentNode.parentNode.replaceChild(k.firstChild,d.parentNode)}}function C(){for(var d in l)if(l.hasOwnProperty(d))for(var c=l[d],g=0;g<c.modes.length;g++){if(c.modes[g].begin)c.modes[g].beginRe=i.langRe(c,"^"+c.modes[g].begin);
if(c.modes[g].end)c.modes[g].endRe=i.langRe(c,"^"+c.modes[g].end);if(c.modes[g].illegal)c.modes[g].illegalRe=i.langRe(c,"^(?:"+c.modes[g].illegal+")");c.defaultMode.illegalRe=i.langRe(c,"^(?:"+c.defaultMode.illegal+")");if(c.modes[g].relevance==undefined)c.modes[g].relevance=1}}function D(){function d(m){if(!m.keywordGroups)for(var n in m.keywords)if(m.keywords.hasOwnProperty(n)){m.keywordGroups=m.keywords[n]instanceof Object?m.keywords:{keyword:m.keywords};break}}for(var c in l)if(l.hasOwnProperty(c)){var g=
l[c];d(g.defaultMode);for(var k=0;k<g.modes.length;k++)d(g.modes[k])}}function I(d){for(var c=0;c<d.childNodes.length;c++){node=d.childNodes[c];if(node.nodeName=="CODE")return node;if(!(node.nodeType==3&&node.nodeValue.match(/\s+/)))return null}}function w(){if(!w.called){w.called=true;C();D();if(arguments.length)for(var d=0;d<arguments.length;d++){if(l[arguments[d]])t[arguments[d]]=l[arguments[d]]}else t=l;var c=document.getElementsByTagName("pre");for(d=0;d<c.length;d++){var g=I(c[d]);g&&B(g,hljs.tabReplace)}}}
function J(){var d=arguments,c=function(){w.apply(null,d)};if(window.addEventListener){window.addEventListener("DOMContentLoaded",c,false);window.addEventListener("load",c,false)}else if(window.attachEvent)window.attachEvent("onload",c);else window.onload=c}var l={},t={},i={};i.escape=function(d){return d.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">")};i.contains=function(d,c){if(!d)return false;for(var g=0;g<d.length;g++)if(d[g]==c)return true;return false};i.highlight=function(d,
c){function g(a,b){a.sub_modes=[];for(var e=0;e<a.contains.length;e++)for(var f=0;f<b.modes.length;f++)if(b.modes[f].className==a.contains[e])a.sub_modes[a.sub_modes.length]=b.modes[f]}function k(a,b){if(j[a].end&&j[a].endRe.test(b))return 1;if(j[a].endsWithParent)return(a=k(a-1,b))?a+1:0;return 0}function m(a,b){return b.illegalRe&&b.illegalRe.test(a)}function n(a,b){function e(E){i.contains(f,E)||(f[f.length]=E)}var f=[];if(a.contains)for(var h=0;h<b.modes.length;h++)i.contains(a.contains,b.modes[h].className)&&
e(b.modes[h].begin);h=j.length-1;do{j[h].end&&e(j[h].end);h--}while(j[h+1].endsWithParent);a.illegal&&e(a.illegal);a="("+f[0];for(h=0;h<f.length;h++)a+="|"+f[h];a+=")";return i.langRe(b,a)}function v(a,b){var e=j[j.length-1];if(!e.terminators)e.terminators=n(e,o);a=a.substr(b);b=e.terminators.exec(a);if(!b)return[a,"",true];return b.index==0?["",b[0],false]:[a.substr(0,b.index),b[0],false]}function s(a,b){b=o.case_insensitive?b[0].toLowerCase():b[0];for(var e in a.keywordGroups)if(a.keywordGroups.hasOwnProperty(e)){var f=
a.keywordGroups[e].hasOwnProperty(b);if(f)return[e,f]}return false}function u(a,b){if(!b.keywords||!b.lexems)return i.escape(a);if(!b.lexemsRe){for(var e="("+b.lexems[0],f=1;f<b.lexems.length;f++)e+="|"+b.lexems[f];e+=")";b.lexemsRe=i.langRe(o,e,true)}e="";var h=0;b.lexemsRe.lastIndex=0;for(f=b.lexemsRe.exec(a);f;){e+=i.escape(a.substr(h,f.index-h));if(h=s(b,f)){z+=h[1];e+='<span class="'+h[0]+'">'+i.escape(f[0])+"</span>"}else e+=i.escape(f[0]);h=b.lexemsRe.lastIndex;f=b.lexemsRe.exec(a)}e+=i.escape(a.substr(h,
a.length-h));return e}function p(a,b){if(b.subLanguage&&t[b.subLanguage]){a=i.highlight(b.subLanguage,a);z+=a.keyword_count;A+=a.relevance;return a.value}else return u(a,b)}function x(a,b){var e=a.noMarkup?"":'<span class="'+a.className+'">';if(a.returnBegin){q+=e;a.buffer=""}else if(a.excludeBegin){q+=i.escape(b)+e;a.buffer=""}else{q+=e;a.buffer=b}j[j.length]=a}function y(a,b,e){var f=j[j.length-1];if(e){q+=p(f.buffer+a,f);return false}if(e=i.subMode(b,f)){q+=p(f.buffer+a,f);x(e,b);A+=e.relevance;
return e.returnBegin}if(e=k(j.length-1,b)){var h=f.noMarkup?"":"</span>";for(q+=f.returnEnd?p(f.buffer+a,f)+h:f.excludeEnd?p(f.buffer+a,f)+h+i.escape(b):p(f.buffer+a+b,f)+h;e>1;){h=j[j.length-2].noMarkup?"":"</span>";q+=h;e--;j.length--}j.length--;j[j.length-1].buffer="";if(f.starts)for(a=0;a<o.modes.length;a++)if(o.modes[a].className==f.starts){x(o.modes[a],"");break}return f.returnEnd}if(m(b,f))throw"Illegal";}i.subMode=function(a,b){if(!b.contains)return null;b.sub_modes||g(b,o);for(var e=0;e<
b.sub_modes.length;e++)if(b.sub_modes[e].beginRe.test(a))return b.sub_modes[e];return null};var o=l[d],j=[o.defaultMode],A=0,z=0,q="";try{d=0;o.defaultMode.buffer="";do{var r=v(c,d),K=y(r[0],r[1],r[2]);d+=r[0].length;K||(d+=r[1].length)}while(!r[2]);if(j.length>1)throw"Illegal";return{relevance:A,keyword_count:z,value:q}}catch(F){if(F=="Illegal")return{relevance:0,keyword_count:0,value:i.escape(c)};else throw F;}};i.langRe=function(d,c,g){return new RegExp(c,"m"+(d.case_insensitive?"i":"")+(g?"g":
""))};this.LANGUAGES=l;this.initHighlightingOnLoad=J;this.highlightBlock=B;this.initHighlighting=w;this.IDENT_RE="[a-zA-Z][a-zA-Z0-9_]*";this.UNDERSCORE_IDENT_RE="[a-zA-Z_][a-zA-Z0-9_]*";this.NUMBER_RE="\\b\\d+(\\.\\d+)?";this.C_NUMBER_RE="\\b(0x[A-Za-z0-9]+|\\d+(\\.\\d+)?)";this.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|\\.|-|-=|/|/=|:|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~";this.APOS_STRING_MODE={className:"string",begin:"'",end:"'",
illegal:"\\n",contains:["escape"],relevance:0};this.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:["escape"],relevance:0};this.BACKSLASH_ESCAPE={className:"escape",begin:"\\\\.",end:"^",noMarkup:true,relevance:0};this.C_LINE_COMMENT_MODE={className:"comment",begin:"//",end:"$",relevance:0};this.C_BLOCK_COMMENT_MODE={className:"comment",begin:"/\\*",end:"\\*/|\\*\\|"};this.HASH_COMMENT_MODE={className:"comment",begin:"#",end:"$"};this.C_NUMBER_MODE={className:"number",
begin:this.C_NUMBER_RE,end:"^",relevance:0};this.start=function(){C();D()}});
;
steal.end();
hljs.LANGUAGES.javascript={defaultMode:{lexems:[hljs.UNDERSCORE_IDENT_RE],contains:["string","comment","number","regexp_container","function"],keywords:{keyword:{"in":1,"if":1,"for":1,"while":1,"finally":1,"var":1,"new":1,"function":1,"do":1,"return":1,"void":1,"else":1,"break":1,"catch":1,"instanceof":1,"with":1,"throw":1,"case":1,"default":1,"try":1,"this":1,"switch":1,"continue":1,"typeof":1,"delete":1},literal:{"true":1,"false":1,"null":1}}},modes:[hljs.C_LINE_COMMENT_MODE,hljs.C_BLOCK_COMMENT_MODE,
hljs.C_NUMBER_MODE,hljs.APOS_STRING_MODE,hljs.QUOTE_STRING_MODE,hljs.BACKSLASH_ESCAPE,{className:"regexp_container",begin:"("+hljs.RE_STARTERS_RE+"|case|return|throw)\\s*",end:"^",noMarkup:true,lexems:[hljs.IDENT_RE],keywords:{"return":1,"throw":1,"case":1},contains:["comment","regexp"],relevance:0},{className:"regexp",begin:"/.*?[^\\\\/]/[gim]*",end:"^"},{className:"function",begin:"\\bfunction\\b",end:"{",lexems:[hljs.UNDERSCORE_IDENT_RE],keywords:{"function":1},contains:["title","params"]},{className:"title",
begin:"[A-Za-z$_][0-9A-Za-z$_]*",end:"^"},{className:"params",begin:"\\(",end:"\\)",contains:["string","comment"]}]};
;
steal.end();
hljs.XML_COMMENT={className:"comment",begin:"<!--",end:"--\>"};hljs.XML_ATTR={className:"attribute",begin:"\\s[a-zA-Z\\:-]+=",end:"^",contains:["value"]};hljs.XML_VALUE_QUOT={className:"value",begin:'"',end:'"'};hljs.XML_VALUE_APOS={className:"value",begin:"'",end:"'"};
hljs.LANGUAGES.xml={defaultMode:{contains:["pi","comment","cdata","tag"]},case_insensitive:true,modes:[{className:"pi",begin:"<\\?",end:"\\?>",relevance:10},hljs.XML_COMMENT,{className:"cdata",begin:"<\\!\\[CDATA\\[",end:"\\]\\]>"},{className:"tag",begin:"</?",end:">",contains:["title","tag_internal"],relevance:1.5},{className:"title",begin:"[A-Za-z:_][A-Za-z0-9\\._:-]+",end:"^",relevance:0},{className:"tag_internal",begin:"^",endsWithParent:true,noMarkup:true,contains:["attribute"],relevance:0,illegal:"[\\+\\.]"},
hljs.XML_ATTR,hljs.XML_VALUE_QUOT,hljs.XML_VALUE_APOS]};
hljs.HTML_TAGS={code:1,kbd:1,font:1,noscript:1,style:1,img:1,title:1,menu:1,tt:1,tr:1,param:1,li:1,tfoot:1,th:1,input:1,td:1,dl:1,blockquote:1,fieldset:1,big:1,dd:1,abbr:1,optgroup:1,dt:1,button:1,isindex:1,p:1,small:1,div:1,dir:1,em:1,frame:1,meta:1,sub:1,bdo:1,label:1,acronym:1,sup:1,body:1,xml:1,basefont:1,base:1,br:1,address:1,strong:1,legend:1,ol:1,script:1,caption:1,s:1,col:1,h2:1,h3:1,h1:1,h6:1,h4:1,h5:1,table:1,select:1,noframes:1,span:1,area:1,dfn:1,strike:1,cite:1,thead:1,head:1,option:1,
form:1,hr:1,"var":1,link:1,b:1,colgroup:1,ul:1,applet:1,del:1,iframe:1,pre:1,frameset:1,ins:1,tbody:1,html:1,samp:1,map:1,object:1,a:1,xmlns:1,center:1,textarea:1,i:1,q:1,u:1};hljs.HTML_DOCTYPE={className:"doctype",begin:"<!DOCTYPE",end:">",relevance:10};hljs.HTML_ATTR={className:"attribute",begin:"\\s[a-zA-Z\\:-]+=",end:"^",contains:["value"]};hljs.HTML_SHORT_ATTR={className:"attribute",begin:" [a-zA-Z]+",end:"^"};hljs.HTML_VALUE={className:"value",begin:"[a-zA-Z0-9]+",end:"^"};
hljs.LANGUAGES.html={defaultMode:{contains:["tag","comment","doctype","vbscript"]},case_insensitive:true,modes:[hljs.XML_COMMENT,hljs.HTML_DOCTYPE,{className:"tag",lexems:[hljs.IDENT_RE],keywords:hljs.HTML_TAGS,begin:"<style",end:">",contains:["attribute"],illegal:"[\\+\\.]",starts:"css"},{className:"tag",lexems:[hljs.IDENT_RE],keywords:hljs.HTML_TAGS,begin:"<script",end:">",contains:["attribute"],illegal:"[\\+\\.]",starts:"javascript"},{className:"tag",lexems:[hljs.IDENT_RE],keywords:hljs.HTML_TAGS,
begin:"<[A-Za-z/]",end:">",contains:["attribute"],illegal:"[\\+\\.]"},{className:"css",end:"</style>",returnEnd:true,subLanguage:"css"},{className:"javascript",end:"<\/script>",returnEnd:true,subLanguage:"javascript"},hljs.HTML_ATTR,hljs.HTML_SHORT_ATTR,hljs.XML_VALUE_QUOT,hljs.XML_VALUE_APOS,hljs.HTML_VALUE,{className:"vbscript",begin:"<%",end:"%>",subLanguage:"vbscript"}]};
;
steal.end();
Favorites={toggle:function(a){var b=this.findAll(),c=Favorites.isFavorite(a);if(c)for(var d=0;d<b.length;d++){if(b[d].name==a.name){b.splice(d,1);break}}else b.push(a);fav=$.toJSON(b);$.cookie("favorites",fav,{expires:364});return!c},findAll:function(){var a=$.cookie("favorites");return a?eval("("+a+")"):[]},isFavorite:function(a){for(var b=Favorites.findAll(),c=0;c<b.length;c++)if(b[c].name==a.name)return true;return false}};
;
steal.end();
$.Class.extend("Search",{load:function(a){$.ajax({url:DOCS_LOCATION+"searchData.json",success:this.callback(["setData",a]),jsonpCallback:"C",dataType:"jsonp"})},setData:function(a){this._data=a;return arguments},find:function(a){var c;a=a.toLowerCase();if(!a||a==="*"){a="home";c=true}if(a=="favorites")return Favorites.findAll();for(var b=this._data,d=0;d<2;d++){if(a.length<=d||!b)break;var e=a.substring(d,d+1);b=b[e]}e=[];if(b&&a.length>2){b=this.lookup(b.list);for(d=0;d<b.length;d++)this.matches(b[d],
a,c)&&e.push(b[d])}else if(b)e=this.lookup(b.list);return e.sort(this.sortFn)},matches:function(a,c,b){if(!b&&a.name.toLowerCase().indexOf(c)>-1)return true;if(a.tags)for(b=0;b<a.tags.length;b++)if(a.tags[b].toLowerCase().indexOf(c)>-1)return true;return false},sortFn:function(a,c){a=(a.title&&a.name.indexOf(".")==-1?a.title:a.name).replace(".prototype",".zzzaprototype").replace(".static",".zzzbstatic").toLowerCase();c=(c.title&&c.name.indexOf(".")==-1?c.title:c.name).replace(".prototype",".zzzaprototype").replace(".static",
".zzzbstatic").toLowerCase();if(a<c)return-1;return 1},sortJustStrings:function(a,c){a=a.replace(".prototype",".000AAAprototype").replace(".static",".111BBBstatic");c=c.replace(".prototype",".000AAAprototype").replace(".static",".111BBBstatic");if(a<c)return-1;return 1},lookup:function(a){for(var c=[],b=0;b<a.length;b++)this._data.list[a[b]]&&c.push(this._data.list[a[b]]);return c}},{});
;
steal.end();
jQuery.Controller.extend("DocumentationController",{onDocument:true},{init:function(){this.selected=[]},searchCurrent:function(){this.search($("#search").val()||"")},search:function(a){if(a=="Search API")a="";a=Search.find(a);this.selected=[];$("#left").html("//jmvcdoc/views/results.ejs",{list:a,selected:this.selected,hide:false},DocumentationHelpers)},showDoc:function(a){$("#doc").html("//jmvcdoc/views/"+a.type.toLowerCase()+".ejs",a,DocumentationHelpers).find("h1.addFavorite").append(' <span class="favorite favorite'+
(a.isFavorite?"on":"off")+'"> </span>');$("#doc_container").scrollTop(0);$("#doc code").highlight();if($("#api").length){var b=[];for(var c in Search._data.list)b.push(c);$("#api").html(DocumentationHelpers.link("["+b.sort(Search.sortJustStrings).join("]<br/>[")+"]",true))}$(".iframe_menu_wrapper").length&&$(".iframe_menu_wrapper").remove();b=$(".iframe_wrapper");b.length&&b.iframe();b=$(".demo_wrapper");b.length&&b.demo();$(".image_tag").each(function(){var d=$(this),e=d.attr("src");
e=steal.root.join(e);d.attr("src",e)});$("#disqus_thread").children().remove();if(a.name!="index"&&typeof COMMENTS_LOCATION!="undefined"&&$("#disqus_thread").length){window.disqus_title=a.name;a=location.href.match(/\/\/(.*\.)\w*\.\w*\//);b=location.href;if(a)b=location.href.replace(a[1],"");window.disqus_url=b.replace(/\#/,"");window.disqus_identifier=window.disqus_url;steal.insertHead(COMMENTS_LOCATION)}},showResultsAndDoc:function(a,b){$("#left").html("//jmvcdoc/views/results.ejs",a,DocumentationHelpers);
$("#results").slideDown("fast");this.showDoc(b)},show:function(a,b){this.who={name:b.name,shortName:b.shortName,tag:b.name};b.isFavorite=Favorites.isFavorite(b);if(b.children&&b.children.length){a=false;for(var c=0;c<this.selected.length;c++)if(this.selected[c].name==b.name)a=true;a||this.selected.push(b);a=$.grep(Search.lookup(b.children),function(d){return d.hide!==true}).sort(Search.sortFn);$("#results").length?$("#results").slideUp("fast",this.callback("showResultsAndDoc",{list:a,selected:this.selected,
hide:true},b)):this.showResultsAndDoc({list:a,selected:this.selected,hide:true},b)}else{$("#results a").length==0&&$("#left").html("//jmvcdoc/views/results.ejs",{list:Search.find(""),selected:this.selected,hide:false},DocumentationHelpers);$(".result").removeClass("picked");$(".result[href=#&who="+a+"]").addClass("picked").focus();this.showDoc(b)}},"#search focus":function(a){a.val()=="Search API"&&a.val("").removeClass("notFocused")},"#search blur":function(a){a.val()||a.val("Search API").addClass("notFocused")},
"#search keyup":function(a,b){if(b.keyCode==40){for(a=$("#results a:first");a&&this._isInvalidMenuItem(a);)a=a.next("a");a[0].focus()}else if(b.keyCode==13)window.location.hash=$("#results a:first").attr("href");else if(this.skipSet)this.skipSet=false;else{window.location.hash="#";this.search(a.val());$("#results a:first").addClass("highlight")}},_isInvalidMenuItem:function(a){return a.hasClass("prototype")||a.hasClass("static")},_highlight:function(a){this._isInvalidMenuItem(a)||a.addClass("highlight")},
"#results a focus":function(a){this._highlight(a)},"#results a blur":function(a){a.removeClass("highlight")},"#results a mouseover":function(a){this._highlight(a)},"#results a mouseout":function(a){a.removeClass("highlight")},"#results a keyup":function(a,b){if(b.keyCode==40){for(a=a.next();a&&this._isInvalidMenuItem(a);)a=a.next("a");a.length&&a[0].focus();b.preventDefault()}else if(b.keyCode==38){for(a=a.prev("a");a&&this._isInvalidMenuItem(a);)a=a.prev("a");if(a.length)a[0].focus();else{this.skipSet=
true;$("#search")[0].focus()}b.preventDefault()}else if(b.keyCode==13)window.location.hash=a.attr("href")},"#results a keydown":function(a,b){b.preventDefault()},".remove click":function(a,b){b.stopImmediatePropagation();this.selected.pop();if(this.selected.length){var c=this.selected.pop().name;$("#results").slideUp("fast",function(){window.location.hash="#&who="+c})}else $("#results").slideUp("fast",function(){window.location.hash="#"})},".favorite click":function(a){if(Favorites.toggle(this.who)){a.removeClass("favoriteoff");
a.addClass("favoriteon")}else{a.removeClass("favoriteon");a.addClass("favoriteoff")}},"history.favorites.index subscribe":function(){this.selected=[];$("#search").val("favorites");var a=Favorites.findAll();$("#left").html("//jmvcdoc/views/results.ejs",{list:a,selected:this.selected,hide:false},DocumentationHelpers);a.length||$("#doc").html("//jmvcdoc/views/favorite.ejs",{})},ready:function(){this.loaded=true;hljs.start();this.loadText=$("#search").val();$("#search").val("Loading ...");Search.load(this.callback("setSearchReady"))},
setSearchReady:function(){this.searchReady=true;$("#search").attr("disabled",false);$("#search").val(this.loadText).focus();if(this.loadHistoryData){var a=this;setTimeout(function(){a.handleHistoryChange(a.loadHistoryData)},1)}},handleHistoryChange:function(a){if(a.search){$("#search").val(a.search);this.searchCurrent();if(!a.who)return}if(!a.who){this.searchCurrent();if(this.who)return;a.who="index"}a=a.who;for(var b=0;b<this.selected.length;b++)if(this.selected[b].name==a){this.selected.splice(b,
this.selected.length-b);break}$.ajax({url:DOCS_LOCATION+a.replace(/ /g,"_").replace(/./g,".")+".json",success:this.callback("show",a),error:this.callback("whoNotFound",a),jsonpCallback:"C",dataType:"jsonp"})},"history.index subscribe":function(a,b){if(this.searchReady)this.handleHistoryChange(b);else this.loadHistoryData=b},whoNotFound:function(a){a=a.split(".");a.pop();if(a.length){a=a.join(".");$.ajax({url:DOCS_LOCATION+a.replace(/ /g,"_").replace(/./g,".")+".json",success:this.callback("show",
a),error:this.callback("whoNotFound",a),jsonpCallback:"C",dataType:"jsonp"})}}});$.fn.highlight=function(){this.each(function(){hljs.highlightBlock(this)});return this};
;
steal.end();
jQuery.Controller.extend("IframeController",{},{init:function(){var a=this,c=320,d=[];hljs.start();this.element.html(this.view("//jmvcdoc/views/iframe/init.ejs"));var e=steal.root.join(this.element.attr("data-iframe-src"));c=!this.element.attr("data-iframe-height")?c:this.element.attr("data-iframe-height");var b=this.find("iframe");b.attr("src",e);b.attr("height",c);b.bind("load",function(){$("script",b[0].contentWindow.document).each(function(g,f){f.text.match(/steal.end()/)||d.push(f)});if(!a.iframesCache)a.iframesCache=
{};a.iframesCache[a.toId(b.attr("src"))]=d})},toId:function(a){return a.replace(/[\/\.]/g,"_")},".iframe_menu_button click":function(a){var c=this.find("iframe"),d=this.iframesCache[this.toId(c.attr("src"))];if(d&&d.length>0){var e=$(".iframe_menu_wrapper");if(e.length)e.slideToggle("slow");else{a.after("//jmvcdoc/views/iframe/menu.ejs",{scripts:d,iframeWindow:c[0].contentWindow},DocumentationController.Helpers);e=$(".iframe_menu_wrapper");e.mxui_positionable({my:"right top",at:"right bottom"}).trigger("move",
a);$iframeMenuItem=$(".iframe_menu_item a");$iframeMenuItem.bind("click",function(){var b=steal.root.join($(this).attr("data-src"));window.open(b,b)})}}},windowresize:function(){$(".iframe_menu_wrapper").trigger("move",$(".iframe_menu_button"))}});
;
steal.end();
jQuery.Controller.extend("DemoController",{},{init:function(){var a=this,d=320,g="",e="",h;hljs.start();this.element.html(this.view("//jmvcdoc/views/demo/init.ejs"));var i=steal.root.join(this.element.attr("data-demo-src")),b=this.find("iframe");b.bind("load",function(){var c=$(this.contentWindow.document.body);a.find(".demo_content").css({padding:"5px"});g=this.contentWindow.DEMO_HTML||c.find("#demo-html").html();a.find(".html_content").html('<pre><code class="html"></code></pre>').find("code").text($.trim(g)).highlight();
c.find("#demo-instructions").hide();e=c.find("#demo-source").html();a.find(".source_content").html('<pre><code class="javascript"></code></pre>').find("code").text($.trim(e)).highlight();if(!e){$("script",b[0].contentWindow.document).each(function(j,f){if(!f.text.match(/steal.end()/)){h=f.text;if(!f.src.match(/steal.js/))return false}});a.find(".source_content").html('<pre><code class="javascript"></code></pre>').find("code").text($.trim(h)).highlight()}setTimeout(function(){d=c.outerHeight();b.height(d+
50);a.find(".demo_content").height(d+55)},200)});b.attr("src",i)},".header click":function(a){a.next().toggle("slow");a.find("span").toggleClass("ui-icon-triangle-1-s").toggleClass("ui-icon-triangle-1-e")}});
;
steal.end();
$.View.preload('jmvcdoc_views_attribute_ejs',jQuery.EJS(function(_CONTEXT,_VIEW) { /*undefined*/ try { with(_VIEW) { with (_CONTEXT) {var ___v1ew = [];___v1ew.push((jQuery.EJS.text( view("//jmvcdoc/views/top.ejs",this))));___v1ew.push("\n");
___v1ew.push((jQuery.EJS.text( link(comment))));; return ___v1ew.join('');}}}catch(e){e.lineNumber=null;throw e;} }));;
steal.end();
$.View.preload('jmvcdoc_views_class_ejs',jQuery.EJS(function(_CONTEXT,_VIEW) { /*undefined*/ try { with(_VIEW) { with (_CONTEXT) {var ___v1ew = [];___v1ew.push((jQuery.EJS.text( view("//jmvcdoc/views/top.ejs",this))));___v1ew.push("\n");
___v1ew.push("\n");
___v1ew.push((jQuery.EJS.text( link(this.comment))));___v1ew.push("\n");
if(this.construct){;___v1ew.push("\n");
___v1ew.push(" <h2>Constructor</h2>\n");
___v1ew.push(" ");___v1ew.push((jQuery.EJS.text(link(this.construct))));___v1ew.push("\n");
};___v1ew.push("\n");
if(this.params || this.ret){;___v1ew.push("\n");
___v1ew.push("<pre class='signiture'><code>");___v1ew.push((jQuery.EJS.text( signiture())));___v1ew.push("</code></pre>\n");
};___v1ew.push("\n");
___v1ew.push("\n");
___v1ew.push(" <div class='params'>\n");
___v1ew.push(" ");if(this.params){;___v1ew.push("\n");
___v1ew.push(" "); for(var n in this.params){
var param = this.params[n]; ;___v1ew.push(" \n");
___v1ew.push(" <div class='param ");___v1ew.push((jQuery.EJS.text( param.optional ? "optional" : "")));___v1ew.push("'>\n");
___v1ew.push(" <label>");___v1ew.push((jQuery.EJS.text( param.name)));___v1ew.push("</label>\n");
___v1ew.push(" <code>{");___v1ew.push((jQuery.EJS.text((param.optional ? 'optional:' : '') +""+(param.type) )));___v1ew.push("}</code>\n");
___v1ew.push(" ");___v1ew.push((jQuery.EJS.text( (param.description) )));___v1ew.push("\n");
___v1ew.push(" </div>\n");
___v1ew.push(" "); } ;___v1ew.push("\n");
___v1ew.push(" ");};___v1ew.push("\n");
___v1ew.push(" "); if(this.ret && this.ret.type != "undefined") {;___v1ew.push("\n");
___v1ew.push(" <div class='return'>\n");
___v1ew.push(" <label>returns</label> \n");
___v1ew.push(" <code>{");___v1ew.push((jQuery.EJS.text((this.ret.type))));___v1ew.push("}</code>\n");
___v1ew.push(" ");___v1ew.push((jQuery.EJS.text( (this.ret.description))));___v1ew.push("\n");
___v1ew.push(" </div>\n");
___v1ew.push(" "); } ;___v1ew.push(" \n");
___v1ew.push(" \n");
___v1ew.push(" </div>\n");
___v1ew.push("\n");
; return ___v1ew.join('');}}}catch(e){e.lineNumber=null;throw e;} }));;
steal.end();
$.View.preload('jmvcdoc_views_constructor_ejs',jQuery.EJS(function(_CONTEXT,_VIEW) { /*undefined*/ try { with(_VIEW) { with (_CONTEXT) {var ___v1ew = [];___v1ew.push((jQuery.EJS.text( view("//jmvcdoc/views/top.ejs",this))));___v1ew.push("\n");
___v1ew.push("\n");
___v1ew.push((jQuery.EJS.text( link(comment))));___v1ew.push("\n");
___v1ew.push("<h2>Constructor</h2>\n");
___v1ew.push((jQuery.EJS.text(this.init)));___v1ew.push("\n");
___v1ew.push("<pre class='signiture'><code>");___v1ew.push((jQuery.EJS.text( signiture())));___v1ew.push("</code></pre>\n");
___v1ew.push("\n");
___v1ew.push(" <div class='params'>\n");
___v1ew.push(" \n");
___v1ew.push(" "); for(var name in this.params){
var param = this.params[name]; ;___v1ew.push(" \n");
___v1ew.push(" <div class='param ");___v1ew.push((jQuery.EJS.text( param.optional ? "optional" : "")));___v1ew.push("'>\n");
___v1ew.push(" <label>");___v1ew.push((jQuery.EJS.text( param.name)));___v1ew.push("</label>\n");
___v1ew.push(" <code>{");___v1ew.push((jQuery.EJS.text((param.optional ? 'optional:' : '') +""+(param.type) )));___v1ew.push("}</code> - ");___v1ew.push((jQuery.EJS.text( (param.description) )));___v1ew.push("\n");
___v1ew.push(" </div>\n");
___v1ew.push(" "); } ;___v1ew.push("\n");
___v1ew.push("\n");
___v1ew.push(" "); if(this.ret && this.ret.type != "undefined") {;___v1ew.push("\n");
___v1ew.push(" <div class='return'>\n");
___v1ew.push(" <label>returns</label> \n");
___v1ew.push(" <code>{");___v1ew.push((jQuery.EJS.text((this.ret.type))));___v1ew.push("}</code> - ");___v1ew.push((jQuery.EJS.text( (this.ret.description))));___v1ew.push("\n");
___v1ew.push(" </div>\n");
___v1ew.push(" "); } ;___v1ew.push(" \n");
___v1ew.push(" \n");
___v1ew.push(" </div>");; return ___v1ew.join('');}}}catch(e){e.lineNumber=null;throw e;} }));;
steal.end();
$.View.preload('jmvcdoc_views_favorite_ejs',jQuery.EJS(function(_CONTEXT,_VIEW) { /*undefined*/ try { with(_VIEW) { with (_CONTEXT) {var ___v1ew = [];___v1ew.push("You can add favorites by clicking the \n");
___v1ew.push("Favorite button (<span class=\"favorite favoriteoff\" style=\"background-position: center center\"> </span>) by page's title. \n");
___v1ew.push("<br/>After adding favorites, they will appear on the left.");; return ___v1ew.join('');}}}catch(e){e.lineNumber=null;throw e;} }));;
steal.end();
$.View.preload('jmvcdoc_views_function_ejs',jQuery.EJS(function(_CONTEXT,_VIEW) { /*undefined*/ try { with(_VIEW) { with (_CONTEXT) {var ___v1ew = [];___v1ew.push((jQuery.EJS.text( view("//jmvcdoc/views/top.ejs",this))));___v1ew.push("\n");
___v1ew.push(" <div class='comment'>");___v1ew.push((jQuery.EJS.text( link(this.comment))));___v1ew.push("</div>\n");
___v1ew.push(" <pre class='signiture'><code>");___v1ew.push((jQuery.EJS.text( signiture())));___v1ew.push("</code></pre>\n");
___v1ew.push(" \n");
___v1ew.push(" <div class='params'>\n");
___v1ew.push(" \n");
___v1ew.push(" "); for(var n in this.params){
var param = this.params[n]; ;___v1ew.push(" \n");
___v1ew.push(" <div class='param ");___v1ew.push((jQuery.EJS.text( param.optional ? "optional" : "")));___v1ew.push("'>\n");
___v1ew.push(" <label>");___v1ew.push((jQuery.EJS.text( param.name)));___v1ew.push("</label>\n");
___v1ew.push(" <code>{");___v1ew.push((jQuery.EJS.text((param.optional ? 'optional:' : '') +""+(param.type) )));___v1ew.push("}</code> \n");
___v1ew.push(" ");___v1ew.push((jQuery.EJS.text( (param.description) )));___v1ew.push("\n");
___v1ew.push(" </div>\n");
___v1ew.push(" "); } ;___v1ew.push("\n");
___v1ew.push("\n");
___v1ew.push(" "); if(this.ret && this.ret.type) {;___v1ew.push("\n");
___v1ew.push(" <div class='return'>\n");
___v1ew.push(" <label>returns</label> \n");
___v1ew.push(" <code>{");___v1ew.push((jQuery.EJS.text((this.ret.type))));___v1ew.push("}</code> \n");
___v1ew.push(" ");___v1ew.push((jQuery.EJS.text( (this.ret.description))));___v1ew.push("\n");
___v1ew.push(" </div>\n");
___v1ew.push(" "); } ;___v1ew.push(" \n");
___v1ew.push(" \n");
___v1ew.push(" </div>");; return ___v1ew.join('');}}}catch(e){e.lineNumber=null;throw e;} }));;
steal.end();
$.View.preload('jmvcdoc_views_page_ejs',jQuery.EJS(function(_CONTEXT,_VIEW) { /*undefined*/ try { with(_VIEW) { with (_CONTEXT) {var ___v1ew = []; if(name != "index"){ ;___v1ew.push("\n");
___v1ew.push((jQuery.EJS.text( view("//jmvcdoc/views/top.ejs",this))));___v1ew.push("\n");
} ;___v1ew.push("\n");
___v1ew.push((jQuery.EJS.text( link(comment) )));; return ___v1ew.join('');}}}catch(e){e.lineNumber=null;throw e;} }));;
steal.end();
$.View.preload('jmvcdoc_views_results_ejs',jQuery.EJS(function(_CONTEXT,_VIEW) { /*undefined*/ try { with(_VIEW) { with (_CONTEXT) {var ___v1ew = [];
var previous = "", res, current, title;;
___v1ew.push("\n");
___v1ew.push("\n");
if(selected && selected.length) { ;___v1ew.push("\n");
___v1ew.push(" <div id='selected'>\n");
___v1ew.push(" "); for(var i =0; i < selected.length; i++){;___v1ew.push("\n");
___v1ew.push(" "); current = selected[i];
title = (current.title ? current.title: current.name);
res = calculateDisplay(previous, title);
name = normalizeName(current.name) ;___v1ew.push("\n");
___v1ew.push(" <div class=\"topCorner\"><div> </div></div>\n");
___v1ew.push(" <div class=\"content\">\n");
___v1ew.push(" <a href=\"#&who=");___v1ew.push((jQuery.EJS.text(name)));___v1ew.push("\" class='selected choice ");___v1ew.push((jQuery.EJS.text(current.type)));___v1ew.push("' style=\"padding-left: ");___v1ew.push((jQuery.EJS.text( res.length * 20)));___v1ew.push("px\">\n");
___v1ew.push(" <span class='remove' title=\"close\"></span>\n");
___v1ew.push(" ");___v1ew.push((jQuery.EJS.text(res.name.replace("jQuery","$"))));___v1ew.push("\n");
___v1ew.push(" \n");
___v1ew.push(" </a>\n");
___v1ew.push(" "); previous = title;___v1ew.push("\n");
___v1ew.push(" </div>\n");
___v1ew.push(" <div class=\"bottomCorner\"><div> </div></div>\n");
___v1ew.push(" "); if(i<(selected.length-1)){ ;___v1ew.push("\n");
___v1ew.push(" <div class=\"spacer\"><div> </div></div>\n");
___v1ew.push(" ");};___v1ew.push("\n");
___v1ew.push(" ");};___v1ew.push("\n");
___v1ew.push(" </div>\n");
};___v1ew.push("\n");
___v1ew.push("<div id='results' style=\"display: ");___v1ew.push((jQuery.EJS.text( hide? 'none' : 'block')));___v1ew.push("\">\n");
___v1ew.push(" <div class=\"topCorner\"><div> </div></div>\n");
___v1ew.push(" <div class=\"content\">\n");
___v1ew.push(" "); for(var i =0; i < list.length; i++){;___v1ew.push("\n");
___v1ew.push(" "); current = list[i];
if(current.hide){ continue; }
title = (current.title ? current.title: current.name);
res = calculateDisplay(previous, title);
name = normalizeName(current.name) ;___v1ew.push("\n");
___v1ew.push(" <a href=\"");___v1ew.push((jQuery.EJS.text(current.type == 'prototype' || current.type == 'static' ? 'javascript://': '#&who='+name)));___v1ew.push("\" class='result choice ");___v1ew.push((jQuery.EJS.text(current.type)));___v1ew.push("' style=\"padding-left: ");___v1ew.push((jQuery.EJS.text( res.length * 20)));___v1ew.push("px\">\n");
___v1ew.push(" ");___v1ew.push((jQuery.EJS.text(res.name.replace("jQuery","$"))));___v1ew.push("\n");
___v1ew.push(" </a>\n");
___v1ew.push(" "); previous = title;___v1ew.push("\n");
___v1ew.push(" ");};___v1ew.push("\n");
___v1ew.push(" </div>\n");
___v1ew.push(" <div class=\"bottomCorner\"><div> </div></div>\n");
___v1ew.push("</div>\n");
___v1ew.push("\n");
___v1ew.push("\n");
; return ___v1ew.join('');}}}catch(e){e.lineNumber=null;throw e;} }));;
steal.end();
$.View.preload('jmvcdoc_views_top_ejs',jQuery.EJS(function(_CONTEXT,_VIEW) { /*undefined*/ try { with(_VIEW) { with (_CONTEXT) {var ___v1ew = [];___v1ew.push("<div class='top'>\n");
___v1ew.push(" <div class=\"topCorner\"><div> </div></div>\n");
___v1ew.push(" <div class=\"content\">\n");
___v1ew.push(" <h1>");___v1ew.push((jQuery.EJS.text(this.title || name.replace(/~/g,".") )));___v1ew.push(" \n");
___v1ew.push(" <span class='");___v1ew.push((jQuery.EJS.text( type)));___v1ew.push(" type'><span class=\"typeEnd\">");___v1ew.push((jQuery.EJS.text( type )));___v1ew.push("</span></span> \n");
___v1ew.push(" <span class=\"favorite favorite");___v1ew.push((jQuery.EJS.text( isFavorite? 'on' : 'off')));___v1ew.push("\"> </span></h1>\n");
___v1ew.push(" "); if(this.inherits){ ;___v1ew.push("\n");
___v1ew.push(" <div class='inherits'>\n");
___v1ew.push(" inherits: ");___v1ew.push((jQuery.EJS.text( linkOpen(this.inherits) )));___v1ew.push("\n");
___v1ew.push(" </div>\n");
___v1ew.push(" ");} ;___v1ew.push("\n");
___v1ew.push(" "); if(this.tags){ ;___v1ew.push("\n");
___v1ew.push(" <div class='tags'>\n");
___v1ew.push(" tags: ");___v1ew.push((jQuery.EJS.text( linkTags(this.tags) )));___v1ew.push("\n");
___v1ew.push(" </div>\n");
___v1ew.push(" ");} ;___v1ew.push("\n");
___v1ew.push(" "); if(this.plugin){ ;___v1ew.push("\n");
___v1ew.push(" <div class='plugin'>\n");
___v1ew.push(" plugin: ");___v1ew.push((jQuery.EJS.text( this.plugin )));___v1ew.push("\n");
___v1ew.push(" </div>\n");
___v1ew.push(" "); } ;___v1ew.push("\n");
___v1ew.push(" "); if(this.download){ ;___v1ew.push("\n");
___v1ew.push(" <div class='download'>\n");
___v1ew.push(" download: <a href='");___v1ew.push((jQuery.EJS.text( steal.root? steal.root.join(this.download): this.download )));___v1ew.push("'>");___v1ew.push((jQuery.EJS.text(this.download.match(/[^\/]*$/)[0])));___v1ew.push("</a>\n");
___v1ew.push(" </div>\n");
___v1ew.push(" "); } ;___v1ew.push("\n");
___v1ew.push(" "); if(this.test){ ;___v1ew.push("\n");
___v1ew.push(" <div class='test'>\n");
___v1ew.push(" test: <a href='");___v1ew.push((jQuery.EJS.text( steal.root? steal.root.join(this.test): this.test )));___v1ew.push("'>");___v1ew.push((jQuery.EJS.text(this.test.match(/[^\/]*$/)[0])));___v1ew.push("</a>\n");
___v1ew.push(" </div>\n");
___v1ew.push(" "); } ;___v1ew.push("\n");
___v1ew.push(" </div>\n");
___v1ew.push(" <div class=\"bottomCorner\"><div> </div></div> \n");
___v1ew.push("</div>\n");
; return ___v1ew.join('');}}}catch(e){e.lineNumber=null;throw e;} }));;
steal.end();
$.View.preload('jmvcdoc_views_iframe_init_ejs',jQuery.EJS(function(_CONTEXT,_VIEW) { /*undefined*/ try { with(_VIEW) { with (_CONTEXT) {var ___v1ew = [];___v1ew.push("<button class='iframe_menu_button ui-button ui-widget ui-state-default ui-corner-top ui-button-text-only'>Scripts</button>\n");
___v1ew.push("<iframe frameborder=0></iframe>\n");
___v1ew.push("\n");
; return ___v1ew.join('');}}}catch(e){e.lineNumber=null;throw e;} }));;
steal.end();
$.View.preload('jmvcdoc_views_iframe_menu_ejs',jQuery.EJS(function(_CONTEXT,_VIEW) { /*undefined*/ try { with(_VIEW) { with (_CONTEXT) {var ___v1ew = [];___v1ew.push("<div class=\"iframe_menu_wrapper\">\n");
___v1ew.push(" <ul class=\"iframe_menu\"> \n");
___v1ew.push(" <li class=\"iframe_menu_item\">\n");
___v1ew.push(" <a href=\"javascript://\" data-src=\"");___v1ew.push((jQuery.EJS.text( iframeWindow.location )));___v1ew.push(".js\">\n");
___v1ew.push(" ");___v1ew.push((jQuery.EJS.text( shortenUrl(iframeWindow.location) )));___v1ew.push("\n");
___v1ew.push(" </a>\n");
___v1ew.push(" </li> \n");
___v1ew.push(" "); for(var s=0;s<scripts.length;s++) {
var script = scripts[s]; ;___v1ew.push("\n");
___v1ew.push(" <li class=\"iframe_menu_item\">\n");
___v1ew.push(" "); if(script.src) { ;___v1ew.push("\n");
___v1ew.push(" <a href=\"javascript://\" data-src=\"");___v1ew.push((jQuery.EJS.text( script.src )));___v1ew.push("\">\n");
___v1ew.push(" ");___v1ew.push((jQuery.EJS.text( shortenUrl(script.src) )));___v1ew.push("\n");
___v1ew.push(" "); } ;___v1ew.push("\n");
___v1ew.push(" </a>\n");
___v1ew.push(" </li> \n");
___v1ew.push(" "); } ;___v1ew.push("\n");
___v1ew.push(" </ul>\n");
___v1ew.push("</div>\n");
___v1ew.push("\n");
; return ___v1ew.join('');}}}catch(e){e.lineNumber=null;throw e;} }));;
steal.end();
$.View.preload('jmvcdoc_views_demo_init_ejs',jQuery.EJS(function(_CONTEXT,_VIEW) { /*undefined*/ try { with(_VIEW) { with (_CONTEXT) {var ___v1ew = [];___v1ew.push("<div class=\"demo\">\n");
___v1ew.push(" <h3 class=\"demo_header header reset\">\n");
___v1ew.push(" <span class=\"ui-icon ui-icon-triangle-1-s\"/>\n");
___v1ew.push(" <a href=\"javascript://\">Demo</a>\n");
___v1ew.push(" </h3>\n");
___v1ew.push(" <div class=\"demo_content content\">\n");
___v1ew.push(" <iframe height=\"100%\" frameborder=0></iframe>\n");
___v1ew.push(" </div>\n");
___v1ew.push(" <h3 class=\"html_header header reset\">\n");
___v1ew.push(" <span class=\"ui-icon ui-icon-triangle-1-e\"/>\n");
___v1ew.push(" <a href=\"javascript://\">HTML</a>\n");
___v1ew.push(" </h3>\n");
___v1ew.push(" <div class=\"html_content content\" style=\"display: none\">\n");
___v1ew.push(" HTML content\n");
___v1ew.push(" </div>\n");
___v1ew.push(" <h3 class=\"source_header header reset\">\n");
___v1ew.push(" <span class=\"ui-icon ui-icon-triangle-1-e\"/>\n");
___v1ew.push(" <a href=\"javascript://\">Source</a>\n");
___v1ew.push(" </h3>\n");
___v1ew.push(" <div class=\"source_content content\" style=\"display: none\">\n");
___v1ew.push(" Source content\n");
___v1ew.push(" </div>\n");
___v1ew.push("</div>\n");
___v1ew.push("\n");
; return ___v1ew.join('');}}}catch(e){e.lineNumber=null;throw e;} }));;
steal.end()