-
Notifications
You must be signed in to change notification settings - Fork 0
/
video_player.js
593 lines (593 loc) · 305 KB
/
video_player.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
(function(a,b){function c(a){return g.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}function d(a){if(!ua[a]){var b=p.body,c=g("<"+a+">").appendTo(b),e=c.css("display");c.remove();if(e==="none"||e===""){X||(X=p.createElement("iframe"),X.frameBorder=X.width=X.height=0);b.appendChild(X);if(!fa||!X.createElement)fa=(X.contentWindow||X.contentDocument).document,fa.write((p.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),fa.close();c=fa.createElement(a);fa.body.appendChild(c);
e=g.css(c,"display");b.removeChild(X)}ua[a]=e}return ua[a]}function f(a,b){var c={};g.each(Ba.concat.apply([],Ba.slice(0,b)),function(){c[this]=a});return c}function j(){na=b}function l(){setTimeout(j,0);return na=g.now()}function h(){try{return new a.XMLHttpRequest}catch(z){}}function k(a,b,c,e){if(g.isArray(b))g.each(b,function(b,H){c||Sa.test(a)?e(a,H):k(a+"["+(typeof H=="object"||g.isArray(H)?b:"")+"]",H,c,e)});else if(!c&&b!=null&&typeof b=="object")for(var d in b)k(a+"["+d+"]",b[d],c,e);else e(a,
b)}function e(a,H){var c,e,d=g.ajaxSettings.flatOptions||{};for(c in H)H[c]!==b&&((d[c]?a:e||(e={}))[c]=H[c]);e&&g.extend(true,a,e)}function o(a,H,g,c,e,d){e=e||H.dataTypes[0];d=d||{};d[e]=true;for(var e=a[e],h=0,f=e?e.length:0,k=a===va,j;h<f&&(k||!j);h++)j=e[h](H,g,c),typeof j=="string"&&(!k||d[j]?j=b:(H.dataTypes.unshift(j),j=o(a,H,g,c,j,d)));(k||!j)&&!d["*"]&&(j=o(a,H,g,c,"*",d));return j}function q(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(g.isFunction(c))for(var e=b.toLowerCase().split(Ca),
d=0,h=e.length,f,k,j;d<h;d++)f=e[d],j=/^\+/.test(f),j&&(f=f.substr(1)||"*"),k=a[f]=a[f]||[],k[j?"unshift":"push"](c)}}function w(a,b,c){var e=b==="width"?a.offsetWidth:a.offsetHeight,d=b==="width"?Ta:Ua;if(e>0)return c!=="border"&&g.each(d,function(){c||(e-=parseFloat(g.css(a,"padding"+this))||0);c==="margin"?e+=parseFloat(g.css(a,c+this))||0:e-=parseFloat(g.css(a,"border"+this+"Width"))||0}),e+"px";e=ga(a,b,b);if(e<0||e==null)e=a.style[b]||0;e=parseFloat(e)||0;c&&g.each(d,function(){e+=parseFloat(g.css(a,
"padding"+this))||0;c!=="padding"&&(e+=parseFloat(g.css(a,"border"+this+"Width"))||0);c==="margin"&&(e+=parseFloat(g.css(a,c+this))||0)});return e+"px"}function u(a,b){b.src?g.ajax({url:b.src,async:false,dataType:"script"}):g.globalEval((b.text||b.textContent||b.innerHTML||"").replace(Va,"/*$0*/"));b.parentNode&&b.parentNode.removeChild(b)}function x(a){g.nodeName(a,"input")?n(a):"getElementsByTagName"in a&&g.grep(a.getElementsByTagName("input"),n)}function n(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=
a.checked}function y(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function t(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes();b.mergeAttributes&&b.mergeAttributes(a);c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio")if(c==="option")b.selected=a.defaultSelected;else{if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&
(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(g.expando)}}function s(a,b){if(b.nodeType===1&&g.hasData(a)){var c=g.expando,e=g.data(a),d=g.data(b,e);if(e=e[c]){var h=e.events,d=d[c]=g.extend({},e);if(h){delete d.handle;d.events={};for(var f in h){c=0;for(e=h[f].length;c<e;c++)g.event.add(b,f+(h[f][c].namespace?".":"")+h[f][c].namespace,h[f][c],h[f][c].data)}}}}}function v(a,b,c){b=b||0;if(g.isFunction(b))return g.grep(a,function(a,z){return!!b.call(a,
z,a)===c});if(b.nodeType)return g.grep(a,function(a){return a===b===c});if(typeof b=="string"){var e=g.grep(a,function(a){return a.nodeType===1});if(Wa.test(b))return g.filter(b,e,!c);b=g.filter(b,e)}return g.grep(a,function(a){return g.inArray(a,b)>=0===c})}function m(a,b){return(a&&a!=="*"?a+".":"")+b.replace(ja,"`").replace(oa,"&")}function C(a){var b,c,e,d,h,f,k,j,m,l,p,v=[];d=[];k=g._data(this,"events");if(!(a.liveFired===this||!k||!k.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&
(p=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)"));a.liveFired=this;var o=k.live.slice(0);for(k=0;k<o.length;k++)h=o[k],h.origType.replace(ba,"")===a.type?d.push(h.selector):o.splice(k--,1);d=g(a.target).closest(d,a.currentTarget);for(j=0,m=d.length;j<m;j++){l=d[j];for(k=0;k<o.length;k++)if(h=o[k],l.selector===h.selector&&(!p||p.test(h.namespace))&&!l.elem.disabled){f=l.elem;e=null;if(h.preType==="mouseenter"||h.preType==="mouseleave")a.type=h.preType,e=g(a.relatedTarget).closest(h.selector)[0],
e&&g.contains(f,e)&&(e=f);(!e||e!==f)&&v.push({elem:f,handleObj:h,level:l.level})}}for(j=0,m=v.length;j<m;j++){d=v[j];if(c&&d.level>c)break;a.currentTarget=d.elem;a.data=d.handleObj.data;a.handleObj=d.handleObj;h=d.handleObj.origHandler.apply(d.elem,arguments);if(h===false||a.isPropagationStopped())if(c=d.level,h===false&&(b=false),a.isImmediatePropagationStopped())break}return b}}function A(a,H,c){var e=g.extend({},c[0]);e.type=a;e.originalEvent={};e.liveFired=b;g.event.handle.call(H,e);e.isDefaultPrevented()&&
c[0].preventDefault()}function I(){return true}function G(){return false}function J(a,H,c){var e=H+"defer",d=H+"queue",h=H+"mark",f=g.data(a,e,b,true);f&&(c==="queue"||!g.data(a,d,b,true))&&(c==="mark"||!g.data(a,h,b,true))&&setTimeout(function(){!g.data(a,d,b,true)&&!g.data(a,h,b,true)&&(g.removeData(a,e,true),f.resolve())},0)}function K(a){for(var b in a)if(b!=="toJSON")return false;return true}function B(a,H,c){if(c===b&&a.nodeType===1)if(c="data-"+H.replace(V,"-$1").toLowerCase(),c=a.getAttribute(c),
typeof c=="string"){try{c=c==="true"?true:c==="false"?false:c==="null"?null:g.isNaN(c)?Y.test(c)?g.parseJSON(c):c:parseFloat(c)}catch(e){}g.data(a,H,c)}else c=b;return c}var p=a.document,E=a.navigator,F=a.location,g=function(){function z(){if(!g.isReady){try{p.documentElement.doScroll("left")}catch(a){setTimeout(z,1);return}g.ready()}}var g=function(a,b){return new g.fn.init(a,b,d)},c=a.jQuery,e=a.$,d,h=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,f=/\S/,k=/^\s+/,j=/\s+$/,m=/\d/,l=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,
v=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,n=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,w=/(webkit)[ \/]([\w.]+)/,A=/(opera)(?:.*version)?[ \/]([\w.]+)/,x=/(msie) ([\w.]+)/,C=/(mozilla)(?:.*? rv:([\w.]+))?/,Xa=/-([a-z]|[0-9])/ig,y=/^-ms-/,t=function(a,b){return(b+"").toUpperCase()},s=E.userAgent,u,B,F,K=Object.prototype.toString,J=Object.prototype.hasOwnProperty,I=Array.prototype.push,U=Array.prototype.slice,G=String.prototype.trim,L=
Array.prototype.indexOf,N={};g.fn=g.prototype={constructor:g,init:function(a,z,c){var e,d,f;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(a==="body"&&!z&&p.body)return this.context=p,this[0]=p.body,this.selector=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?e=h.exec(a):e=[null,a,null];if(e&&(e[1]||!z)){if(e[1])return z=z instanceof g?z[0]:z,f=z?z.ownerDocument||z:p,d=l.exec(a),d?g.isPlainObject(z)?(a=[p.createElement(d[1])],
g.fn.attr.call(a,z,true)):a=[f.createElement(d[1])]:(d=g.buildFragment([e[1]],[f]),a=(d.cacheable?g.clone(d.fragment):d.fragment).childNodes),g.merge(this,a);if((z=p.getElementById(e[2]))&&z.parentNode){if(z.id!==e[2])return c.find(a);this.length=1;this[0]=z}this.context=p;this.selector=a;return this}return!z||z.jquery?(z||c).find(a):this.constructor(z).find(a)}if(g.isFunction(a))return c.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return g.makeArray(a,this)},selector:"",
jquery:"1.6.4",length:0,size:function(){return this.length},toArray:function(){return U.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,z,b){var c=this.constructor();g.isArray(a)?I.apply(c,a):g.merge(c,a);c.prevObject=this;c.context=this.context;z==="find"?c.selector=this.selector+(this.selector?" ":"")+b:z&&(c.selector=this.selector+"."+z+"("+b+")");return c},each:function(a,z){return g.each(this,a,z)},ready:function(a){g.bindReady();
B.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(U.apply(this,arguments),"slice",U.call(arguments).join(","))},map:function(a){return this.pushStack(g.map(this,function(z,b){return a.call(z,b,z)}))},end:function(){return this.prevObject||this.constructor(null)},push:I,sort:[].sort,splice:[].splice};g.fn.init.prototype=g.fn;g.extend=g.fn.extend=function(){var a,
z,c,e,d,h,f=arguments[0]||{},k=1,j=arguments.length,Q=false;for(typeof f=="boolean"&&(Q=f,f=arguments[1]||{},k=2),typeof f!="object"&&!g.isFunction(f)&&(f={}),j===k&&(f=this,--k);k<j;k++)if((a=arguments[k])!=null)for(z in a)c=f[z],e=a[z],f!==e&&(Q&&e&&(g.isPlainObject(e)||(d=g.isArray(e)))?(d?(d=false,h=c&&g.isArray(c)?c:[]):h=c&&g.isPlainObject(c)?c:{},f[z]=g.extend(Q,h,e)):e!==b&&(f[z]=e));return f};g.extend({noConflict:function(z){a.$===g&&(a.$=e);z&&a.jQuery===g&&(a.jQuery=c);return g},isReady:false,
readyWait:1,holdReady:function(a){a?g.readyWait++:g.ready(true)},ready:function(a){if(a===true&&!--g.readyWait||a!==true&&!g.isReady){if(!p.body)return setTimeout(g.ready,1);g.isReady=true;a!==true&&--g.readyWait>0||(B.resolveWith(p,[g]),g.fn.trigger&&g(p).trigger("ready").unbind("ready"))}},bindReady:function(){if(!B){B=g._Deferred();if(p.readyState==="complete")return setTimeout(g.ready,1);if(p.addEventListener)p.addEventListener("DOMContentLoaded",F,false),a.addEventListener("load",g.ready,false);
else if(p.attachEvent){p.attachEvent("onreadystatechange",F);a.attachEvent("onload",g.ready);var b=false;try{b=a.frameElement==null}catch(c){}p.documentElement.doScroll&&b&&z()}}},isFunction:function(a){return g.type(a)==="function"},isArray:Array.isArray||function(a){return g.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):N[K.call(a)]||"object"},isPlainObject:function(a){if(!a||
g.type(a)!=="object"||a.nodeType||g.isWindow(a))return false;try{if(a.constructor&&!J.call(a,"constructor")&&!J.call(a.constructor.prototype,"isPrototypeOf"))return false}catch(z){return false}for(var c in a);return c===b||J.call(a,c)},isEmptyObject:function(a){for(var z in a)return false;return true},error:function(a){throw a;},parseJSON:function(z){if(typeof z!="string"||!z)return null;z=g.trim(z);if(a.JSON&&a.JSON.parse)return a.JSON.parse(z);if(v.test(z.replace(o,"@").replace(n,"]").replace(q,
"")))return(new Function("return "+z))();g.error("Invalid JSON: "+z)},parseXML:function(z){var c,e;try{a.DOMParser?(e=new DOMParser,c=e.parseFromString(z,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(z))}catch(d){c=b}(!c||!c.documentElement||c.getElementsByTagName("parsererror").length)&&g.error("Invalid XML: "+z);return c},noop:function(){},globalEval:function(z){z&&f.test(z)&&(a.execScript||function(z){a.eval.call(a,z)})(z)},camelCase:function(a){return a.replace(y,
"ms-").replace(Xa,t)},nodeName:function(a,z){return a.nodeName&&a.nodeName.toUpperCase()===z.toUpperCase()},each:function(a,z,c){var e,d=0,h=a.length,f=h===b||g.isFunction(a);if(c)if(f)for(e in a){if(z.apply(a[e],c)===false)break}else for(;d<h;){if(z.apply(a[d++],c)===false)break}else if(f)for(e in a){if(z.call(a[e],e,a[e])===false)break}else for(;d<h;)if(z.call(a[d],d,a[d++])===false)break;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(j,
"")},makeArray:function(a,z){var b=z||[];if(a!=null){var c=g.type(a);a.length==null||c==="string"||c==="function"||c==="regexp"||g.isWindow(a)?I.call(b,a):g.merge(b,a)}return b},inArray:function(a,z){if(!z)return-1;if(L)return L.call(z,a);for(var b=0,g=z.length;b<g;b++)if(z[b]===a)return b;return-1},merge:function(a,z){var g=a.length,c=0;if(typeof z.length=="number")for(var e=z.length;c<e;c++)a[g++]=z[c];else for(;z[c]!==b;)a[g++]=z[c++];a.length=g;return a},grep:function(a,z,b){for(var g=[],c,b=
!!b,e=0,H=a.length;e<H;e++)c=!!z(a[e],e),b!==c&&g.push(a[e]);return g},map:function(a,z,c){var e,d,h=[],f=0,k=a.length;if(a instanceof g||k!==b&&typeof k=="number"&&(k>0&&a[0]&&a[k-1]||k===0||g.isArray(a)))for(;f<k;f++)e=z(a[f],f,c),e!=null&&(h[h.length]=e);else for(d in a)e=z(a[d],d,c),e!=null&&(h[h.length]=e);return h.concat.apply([],h)},guid:1,proxy:function(a,z){if(typeof z=="string"){var c=a[z];z=a;a=c}if(!g.isFunction(a))return b;var e=U.call(arguments,2),c=function(){return a.apply(z,e.concat(U.call(arguments)))};
c.guid=a.guid=a.guid||c.guid||g.guid++;return c},access:function(a,z,c,e,d,h){var f=a.length;if(typeof z=="object"){for(var k in z)g.access(a,k,z[k],e,d,c);return a}if(c!==b){e=!h&&e&&g.isFunction(c);for(k=0;k<f;k++)d(a[k],z,e?c.call(a[k],k,d(a[k],z)):c,h);return a}return f?d(a[0],z):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();a=w.exec(a)||A.exec(a)||x.exec(a)||a.indexOf("compatible")<0&&C.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(z,
b){return new a.fn.init(z,b)}g.extend(true,a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function(b,c){c&&c instanceof g&&!(c instanceof a)&&(c=a(c));return g.fn.init.call(this,b,c,z)};a.fn.init.prototype=a.fn;var z=a(p);return a},browser:{}});g.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,z){N["[object "+z+"]"]=z.toLowerCase()});u=g.uaMatch(s);u.browser&&(g.browser[u.browser]=true,g.browser.version=u.version);
g.browser.webkit&&(g.browser.safari=true);f.test("\u00a0")&&(k=/^[\s\xA0]+/,j=/[\s\xA0]+$/);d=g(p);p.addEventListener?F=function(){p.removeEventListener("DOMContentLoaded",F,false);g.ready()}:p.attachEvent&&(F=function(){p.readyState==="complete"&&(p.detachEvent("onreadystatechange",F),g.ready())});return g}(),L="done fail isResolved isRejected promise then always pipe".split(" "),M=[].slice;g.extend({_Deferred:function(){var a=[],b,c,e,d={done:function(){if(!e){var c=arguments,h,f,k,j,Q;b&&(Q=b,
b=0);for(h=0,f=c.length;h<f;h++)k=c[h],j=g.type(k),j==="array"?d.done.apply(d,k):j==="function"&&a.push(k);Q&&d.resolveWith(Q[0],Q[1])}return this},resolveWith:function(g,d){if(!e&&!b&&!c){d=d||[];c=1;try{for(;a[0];)a.shift().apply(g,d)}finally{b=[g,d],c=0}}return this},resolve:function(){d.resolveWith(this,arguments);return this},isResolved:function(){return!!c||!!b},cancel:function(){e=1;a=[];return this}};return d},Deferred:function(a){var b=g._Deferred(),c=g._Deferred(),e;g.extend(b,{then:function(a,
z){b.done(a).fail(z);return this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,pipe:function(a,z){return g.Deferred(function(c){g.each({done:[a,"resolve"],fail:[z,"reject"]},function(a,z){var e=z[0],d=z[1],h;g.isFunction(e)?b[a](function(){h=e.apply(this,arguments);h&&g.isFunction(h.promise)?h.promise().then(c.resolve,c.reject):c[d+"With"](this===b?c:this,[h])}):b[a](c[d])})}).promise()},
promise:function(a){if(a==null){if(e)return e;e=a={}}for(var z=L.length;z--;)a[L[z]]=b[L[z]];return a}});b.done(c.cancel).fail(b.cancel);delete b.cancel;a&&a.call(b,b);return b},when:function(a){function b(a){return function(z){c[a]=arguments.length>1?M.call(arguments,0):z;--h||f.resolveWith(f,M.call(c,0))}}var c=arguments,e=0,d=c.length,h=d,f=d<=1&&a&&g.isFunction(a.promise)?a:g.Deferred();if(d>1){for(;e<d;e++)c[e]&&g.isFunction(c[e].promise)?c[e].promise().then(b(e),f.reject):--h;h||f.resolveWith(f,
c)}else f!==a&&f.resolveWith(f,d?[a]:[]);return f.promise()}});g.support=function(){var a=p.createElement("div"),b=p.documentElement,c,e,d,h,f,k,j,m,l,v,o,n,q,w,A;a.setAttribute("className","t");a.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";c=a.getElementsByTagName("*");e=a.getElementsByTagName("a")[0];if(!c||!c.length||!e)return{};d=p.createElement("select");h=d.appendChild(p.createElement("option"));f=a.getElementsByTagName("input")[0];
j={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:f.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,
shrinkWrapBlocks:false,reliableMarginRight:true};f.checked=true;j.noCloneChecked=f.cloneNode(true).checked;d.disabled=true;j.optDisabled=!h.disabled;try{delete a.test}catch(x){j.deleteExpando=false}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){j.noCloneEvent=false}),a.cloneNode(true).fireEvent("onclick"));f=p.createElement("input");f.value="t";f.setAttribute("type","radio");j.radioValue=f.value==="t";f.setAttribute("checked","checked");a.appendChild(f);m=p.createDocumentFragment();
m.appendChild(a.firstChild);j.checkClone=m.cloneNode(true).cloneNode(true).lastChild.checked;a.innerHTML="";a.style.width=a.style.paddingLeft="1px";l=p.getElementsByTagName("body")[0];c=p.createElement(l?"div":"body");o={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};l&&g.extend(o,{position:"absolute",left:"-1000px",top:"-1000px"});for(w in o)c.style[w]=o[w];c.appendChild(a);v=l||b;v.insertBefore(c,v.firstChild);j.appendChecked=f.checked;j.boxModel=a.offsetWidth===2;"zoom"in
a.style&&(a.style.display="inline",a.style.zoom=1,j.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",j.shrinkWrapBlocks=a.offsetWidth!==2);a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";n=a.getElementsByTagName("td");A=n[0].offsetHeight===0;n[0].style.display="";n[1].style.display="none";j.reliableHiddenOffsets=A&&n[0].offsetHeight===0;a.innerHTML="";p.defaultView&&p.defaultView.getComputedStyle&&
(k=p.createElement("div"),k.style.width="0",k.style.marginRight="0",a.appendChild(k),j.reliableMarginRight=(parseInt((p.defaultView.getComputedStyle(k,null)||{marginRight:0}).marginRight,10)||0)===0);c.innerHTML="";v.removeChild(c);if(a.attachEvent)for(w in{submit:1,change:1,focusin:1})q="on"+w,A=q in a,A||(a.setAttribute(q,"return;"),A=typeof a[q]=="function"),j[w+"Bubbles"]=A;c=m=d=h=l=k=a=f=null;return j}();g.boxModel=g.support.boxModel;var Y=/^(?:\{.*\}|\[.*\])$/,V=/([A-Z])/g;g.extend({cache:{},
uuid:0,expando:"jQuery"+(g.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(a){a=a.nodeType?g.cache[a[g.expando]]:a[g.expando];return!!a&&!K(a)},data:function(a,c,e,d){if(g.acceptData(a)){var h,f,k=g.expando,j=typeof c=="string",l=a.nodeType,m=l?g.cache:a,p=l?a[g.expando]:a[g.expando]&&g.expando;if(p&&(!d||!p||!m[p]||m[p][k])||!(j&&e===b)){p||(l?a[g.expando]=p=++g.uuid:p=g.expando);m[p]||(m[p]={},l||(m[p].toJSON=
g.noop));if(typeof c=="object"||typeof c=="function")d?m[p][k]=g.extend(m[p][k],c):m[p]=g.extend(m[p],c);h=m[p];d&&(h[k]||(h[k]={}),h=h[k]);e!==b&&(h[g.camelCase(c)]=e);if(c==="events"&&!h[c])return h[k]&&h[k].events;j?(f=h[c],f==null&&(f=h[g.camelCase(c)])):f=h;return f}}},removeData:function(a,b,c){if(g.acceptData(a)){var e,d=g.expando,h=a.nodeType,f=h?g.cache:a,k=h?a[g.expando]:g.expando;if(f[k]){if(b&&(e=c?f[k][d]:f[k]))if(e[b]||(b=g.camelCase(b)),delete e[b],!K(e))return;if(c&&(delete f[k][d],
!K(f[k])))return;b=f[k][d];g.support.deleteExpando||!f.setInterval?delete f[k]:f[k]=null;b?(f[k]={},h||(f[k].toJSON=g.noop),f[k][d]=b):h&&(g.support.deleteExpando?delete a[g.expando]:a.removeAttribute?a.removeAttribute(g.expando):a[g.expando]=null)}}},_data:function(a,b,c){return g.data(a,b,c,true)},acceptData:function(a){if(a.nodeName){var b=g.noData[a.nodeName.toLowerCase()];if(b)return b!==true&&a.getAttribute("classid")===b}return true}});g.fn.extend({data:function(a,c){var e=null;if(typeof a==
"undefined"){if(this.length&&(e=g.data(this[0]),this[0].nodeType===1))for(var d=this[0].attributes,h,f=0,k=d.length;f<k;f++)h=d[f].name,h.indexOf("data-")===0&&(h=g.camelCase(h.substring(5)),B(this[0],h,e[h]));return e}if(typeof a=="object")return this.each(function(){g.data(this,a)});var j=a.split(".");j[1]=j[1]?"."+j[1]:"";return c===b?(e=this.triggerHandler("getData"+j[1]+"!",[j[0]]),e===b&&this.length&&(e=g.data(this[0],a),e=B(this[0],a,e)),e===b&&j[1]?this.data(j[0]):e):this.each(function(){var b=
g(this),e=[j[0],c];b.triggerHandler("setData"+j[1]+"!",e);g.data(this,a,c);b.triggerHandler("changeData"+j[1]+"!",e)})},removeData:function(a){return this.each(function(){g.removeData(this,a)})}});g.extend({_mark:function(a,c){a&&(c=(c||"fx")+"mark",g.data(a,c,(g.data(a,c,b,true)||0)+1,true))},_unmark:function(a,c,e){a!==true&&(e=c,c=a,a=false);if(c){var e=e||"fx",d=e+"mark";(a=a?0:(g.data(c,d,b,true)||1)-1)?g.data(c,d,a,true):(g.removeData(c,d,true),J(c,e,"mark"))}},queue:function(a,c,e){if(a){var c=
(c||"fx")+"queue",d=g.data(a,c,b,true);e&&(!d||g.isArray(e)?d=g.data(a,c,g.makeArray(e),true):d.push(e));return d||[]}},dequeue:function(a,b){var b=b||"fx",c=g.queue(a,b),e=c.shift();e==="inprogress"&&(e=c.shift());e&&(b==="fx"&&c.unshift("inprogress"),e.call(a,function(){g.dequeue(a,b)}));c.length||(g.removeData(a,b+"queue",true),J(a,b,"queue"))}});g.fn.extend({queue:function(a,c){typeof a!="string"&&(c=a,a="fx");return c===b?g.queue(this[0],a):this.each(function(){var b=g.queue(this,a,c);a==="fx"&&
b[0]!=="inprogress"&&g.dequeue(this,a)})},dequeue:function(a){return this.each(function(){g.dequeue(this,a)})},delay:function(a,b){a=g.fx?g.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var c=this;setTimeout(function(){g.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a){function c(){--f||e.resolveWith(d,[d])}typeof a!="string"&&(a=b);a=a||"fx";var e=g.Deferred(),d=this,h=d.length,f=1,k=a+"defer",j=a+"queue";a+="mark";for(var m;h--;)if(m=g.data(d[h],
k,b,true)||(g.data(d[h],j,b,true)||g.data(d[h],a,b,true))&&g.data(d[h],k,g._Deferred(),true))f++,m.done(c);c();return e.promise()}});var O=/[\n\t\r]/g,P=/\s+/,pa=/\r/g,qa=/^(?:button|input)$/i,D=/^(?:button|input|object|select|textarea)$/i,Z=/^a(?:rea)?$/i,S=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,T,aa;g.fn.extend({attr:function(a,b){return g.access(this,a,b,true,g.attr)},removeAttr:function(a){return this.each(function(){g.removeAttr(this,
a)})},prop:function(a,b){return g.access(this,a,b,true,g.prop)},removeProp:function(a){a=g.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,e,d,h,f,k;if(g.isFunction(a))return this.each(function(b){g(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(P);for(c=0,e=this.length;c<e;c++)if(d=this[c],d.nodeType===1)if(!d.className&&b.length===1)d.className=a;else{h=" "+d.className+" ";for(f=0,k=b.length;f<
k;f++)~h.indexOf(" "+b[f]+" ")||(h+=b[f]+" ");d.className=g.trim(h)}}return this},removeClass:function(a){var c,e,d,h,f,k,j;if(g.isFunction(a))return this.each(function(b){g(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(P);for(e=0,d=this.length;e<d;e++)if(h=this[e],h.nodeType===1&&h.className)if(a){f=(" "+h.className+" ").replace(O," ");for(k=0,j=c.length;k<j;k++)f=f.replace(" "+c[k]+" "," ");h.className=g.trim(f)}else h.className=""}return this},
toggleClass:function(a,b){var c=typeof a,e=typeof b=="boolean";return g.isFunction(a)?this.each(function(c){g(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if(c==="string")for(var d,h=0,f=g(this),k=b,j=a.split(P);d=j[h++];)k=e?k:!f.hasClass(d),f[k?"addClass":"removeClass"](d);else if(c==="undefined"||c==="boolean")this.className&&g._data(this,"__className__",this.className),this.className=this.className||a===false?"":g._data(this,"__className__")||""})},hasClass:function(a){for(var a=
" "+a+" ",b=0,c=this.length;b<c;b++)if(this[b].nodeType===1&&(" "+this[b].className+" ").replace(O," ").indexOf(a)>-1)return true;return false},val:function(a){var c,e,d=this[0];if(!arguments.length){if(d){if((c=g.valHooks[d.nodeName.toLowerCase()]||g.valHooks[d.type])&&"get"in c&&(e=c.get(d,"value"))!==b)return e;e=d.value;return typeof e=="string"?e.replace(pa,""):e==null?"":e}return b}var h=g.isFunction(a);return this.each(function(e){var d=g(this),f;if(this.nodeType===1&&(h?f=a.call(this,e,d.val()):
f=a,f==null?f="":typeof f=="number"?f+="":g.isArray(f)&&(f=g.map(f,function(a){return a==null?"":a+""})),c=g.valHooks[this.nodeName.toLowerCase()]||g.valHooks[this.type],!c||!("set"in c)||c.set(this,f,"value")===b))this.value=f})}});g.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,e=[],d=a.options,a=a.type==="select-one";if(c<0)return null;for(var h=a?c:0,f=a?c+1:d.length;h<f;h++)if(b=d[h],b.selected&&
(g.support.optDisabled?!b.disabled:b.getAttribute("disabled")===null)&&(!b.parentNode.disabled||!g.nodeName(b.parentNode,"optgroup"))){b=g(b).val();if(a)return b;e.push(b)}return a&&!e.length&&d.length?g(d[c]).val():e},set:function(a,b){var c=g.makeArray(b);g(a).find("option").each(function(){this.selected=g.inArray(g(this).val(),c)>=0});c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attrFix:{tabindex:"tabIndex"},
attr:function(a,c,e,d){var h=a.nodeType;if(!a||h===3||h===8||h===2)return b;if(d&&c in g.attrFn)return g(a)[c](e);if(!("getAttribute"in a))return g.prop(a,c,e);var f,k;(d=h!==1||!g.isXMLDoc(a))&&(c=g.attrFix[c]||c,k=g.attrHooks[c],k||(S.test(c)?k=aa:T&&(k=T)));if(e!==b){if(e===null)return g.removeAttr(a,c),b;if(k&&"set"in k&&d&&(f=k.set(a,e,c))!==b)return f;a.setAttribute(c,""+e);return e}if(k&&"get"in k&&d&&(f=k.get(a,c))!==null)return f;f=a.getAttribute(c);return f===null?b:f},removeAttr:function(a,
b){var c;a.nodeType===1&&(b=g.attrFix[b]||b,g.attr(a,b,""),a.removeAttribute(b),S.test(b)&&(c=g.propFix[b]||b)in a&&(a[c]=false))},attrHooks:{type:{set:function(a,b){if(qa.test(a.nodeName)&&a.parentNode)g.error("type property can't be changed");else if(!g.support.radioValue&&b==="radio"&&g.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b);c&&(a.value=c);return b}}},value:{get:function(a,b){return T&&g.nodeName(a,"button")?T.get(a,b):b in a?a.value:null},set:function(a,b,c){if(T&&g.nodeName(a,
"button"))return T.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,e){var d=a.nodeType;if(!a||d===3||d===8||d===2)return b;var f,h;(d!==1||!g.isXMLDoc(a))&&(c=g.propFix[c]||c,h=g.propHooks[c]);return e!==b?h&&"set"in h&&(f=h.set(a,e,c))!==
b?f:a[c]=e:h&&"get"in h&&(f=h.get(a,c))!==null?f:a[c]},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):D.test(a.nodeName)||Z.test(a.nodeName)&&a.href?0:b}}}});g.attrHooks.tabIndex=g.propHooks.tabIndex;aa={get:function(a,c){var e;return g.prop(a,c)===true||(e=a.getAttributeNode(c))&&e.nodeValue!==false?c.toLowerCase():b},set:function(a,b,c){var e;b===false?g.removeAttr(a,c):(e=g.propFix[c]||c,e in a&&(a[e]=true),a.setAttribute(c,
c.toLowerCase()));return c}};g.support.getSetAttribute||(T=g.valHooks.button={get:function(a,c){var g;return(g=a.getAttributeNode(c))&&g.nodeValue!==""?g.nodeValue:b},set:function(a,b,c){var g=a.getAttributeNode(c);g||(g=p.createAttribute(c),a.setAttributeNode(g));return g.nodeValue=b+""}},g.each(["width","height"],function(a,b){g.attrHooks[b]=g.extend(g.attrHooks[b],{set:function(a,c){if(c==="")return a.setAttribute(b,"auto"),c}})}));g.support.hrefNormalized||g.each(["href","src","width","height"],
function(a,c){g.attrHooks[c]=g.extend(g.attrHooks[c],{get:function(a){a=a.getAttribute(c,2);return a===null?b:a}})});g.support.style||(g.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}});g.support.optSelected||(g.propHooks.selected=g.extend(g.propHooks.selected,{get:function(){return null}}));g.support.checkOn||g.each(["radio","checkbox"],function(){g.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":
a.value}}});g.each(["radio","checkbox"],function(){g.valHooks[this]=g.extend(g.valHooks[this],{set:function(a,b){if(g.isArray(b))return a.checked=g.inArray(g(a).val(),b)>=0}})});var ba=/\.(.*)$/,ca=/^(?:textarea|input|select)$/i,ja=/\./g,oa=/ /g,ra=/[^\w\s.|`]/g,ka=function(a){return a.replace(ra,"\\$&")};g.event={add:function(a,c,e,d){if(a.nodeType!==3&&a.nodeType!==8){if(e===false)e=G;else if(!e)return;var h,f;e.handler&&(h=e,e=h.handler);e.guid||(e.guid=g.guid++);var k=g._data(a);if(k){var j=k.events,
m=k.handle;j||(k.events=j={});m||(k.handle=m=function(a){return typeof g!="undefined"&&(!a||g.event.triggered!==a.type)?g.event.handle.apply(m.elem,arguments):b});m.elem=a;c=c.split(" ");for(var l=0,p;k=c[l++];){f=h?g.extend({},h):{handler:e,data:d};k.indexOf(".")>-1?(p=k.split("."),k=p.shift(),f.namespace=p.slice(0).sort().join(".")):(p=[],f.namespace="");f.type=k;f.guid||(f.guid=e.guid);var v=j[k],o=g.event.special[k]||{};if(!v&&(v=j[k]=[],!o.setup||o.setup.call(a,d,p,m)===false))a.addEventListener?
a.addEventListener(k,m,false):a.attachEvent&&a.attachEvent("on"+k,m);o.add&&(o.add.call(a,f),f.handler.guid||(f.handler.guid=e.guid));v.push(f);g.event.global[k]=true}a=null}}},global:{},remove:function(a,c,e,d){if(a.nodeType!==3&&a.nodeType!==8){e===false&&(e=G);var f,h,k=0,j,m,l,p,v,o,n=g.hasData(a)&&g._data(a),q=n&&n.events;if(n&&q)if(c&&c.type&&(e=c.handler,c=c.type),!c||typeof c=="string"&&c.charAt(0)===".")for(f in c=c||"",q)g.event.remove(a,f+c);else{for(c=c.split(" ");f=c[k++];)if(p=f,j=f.indexOf(".")<
0,m=[],j||(m=f.split("."),f=m.shift(),l=RegExp("(^|\\.)"+g.map(m.slice(0).sort(),ka).join("\\.(?:.*\\.)?")+"(\\.|$)")),v=q[f],v)if(e){p=g.event.special[f]||{};for(h=d||0;h<v.length;h++)if(o=v[h],e.guid===o.guid){if(j||l.test(o.namespace))d==null&&v.splice(h--,1),p.remove&&p.remove.call(a,o);if(d!=null)break}if(v.length===0||d!=null&&v.length===1)(!p.teardown||p.teardown.call(a,m)===false)&&g.removeEvent(a,f,n.handle),delete q[f]}else for(h=0;h<v.length;h++)if(o=v[h],j||l.test(o.namespace))g.event.remove(a,
p,o.handler,h),v.splice(h--,1);if(g.isEmptyObject(q))c=n.handle,c&&(c.elem=null),delete n.events,delete n.handle,g.isEmptyObject(n)&&g.removeData(a,b,true)}}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(c,e,d,f){var h=c.type||c,k=[],j;h.indexOf("!")>=0&&(h=h.slice(0,-1),j=true);h.indexOf(".")>=0&&(k=h.split("."),h=k.shift(),k.sort());if(d&&!g.event.customEvent[h]||g.event.global[h]){c=typeof c=="object"?c[g.expando]?c:new g.Event(h,c):new g.Event(h);c.type=h;c.exclusive=
j;c.namespace=k.join(".");c.namespace_re=RegExp("(^|\\.)"+k.join("\\.(?:.*\\.)?")+"(\\.|$)");if(f||!d)c.preventDefault(),c.stopPropagation();if(d){if(!(d.nodeType===3||d.nodeType===8)){c.result=b;c.target=d;e=e!=null?g.makeArray(e):[];e.unshift(c);k=d;f=h.indexOf(":")<0?"on"+h:"";do j=g._data(k,"handle"),c.currentTarget=k,j&&j.apply(k,e),f&&g.acceptData(k)&&k[f]&&k[f].apply(k,e)===false&&(c.result=false,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a;while(k&&!c.isPropagationStopped());
if(!c.isDefaultPrevented()){var m,k=g.event.special[h]||{};if((!k._default||k._default.call(d.ownerDocument,c)===false)&&(h!=="click"||!g.nodeName(d,"a"))&&g.acceptData(d)){try{f&&d[h]&&(m=d[f],m&&(d[f]=null),g.event.triggered=h,d[h]())}catch(l){}m&&(d[f]=m);g.event.triggered=b}}return c.result}}else g.each(g.cache,function(){var a=this[g.expando];a&&a.events&&a.events[h]&&g.event.trigger(c,e,a.handle.elem)})}},handle:function(c){var c=g.event.fix(c||a.event),e=((g._data(this,"events")||{})[c.type]||
[]).slice(0),d=!c.exclusive&&!c.namespace,h=Array.prototype.slice.call(arguments,0);h[0]=c;c.currentTarget=this;for(var f=0,k=e.length;f<k;f++){var j=e[f];if(d||c.namespace_re.test(j.namespace))if(c.handler=j.handler,c.data=j.data,c.handleObj=j,j=j.handler.apply(this,h),j!==b&&(c.result=j,j===false&&(c.preventDefault(),c.stopPropagation())),c.isImmediatePropagationStopped())break}return c.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(a){if(a[g.expando])return a;for(var c=a,a=g.Event(c),e=this.props.length,d;e;)d=this.props[--e],a[d]=c[d];a.target||(a.target=a.srcElement||p);a.target.nodeType===3&&(a.target=a.target.parentNode);!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null)e=a.target.ownerDocument||p,c=e.documentElement,e=e.body,a.pageX=a.clientX+(c&&c.scrollLeft||e&&e.scrollLeft||0)-(c&&c.clientLeft||e&&e.clientLeft||0),a.pageY=
a.clientY+(c&&c.scrollTop||e&&e.scrollTop||0)-(c&&c.clientTop||e&&e.clientTop||0);a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode);!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey);!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1E8,proxy:g.proxy,special:{ready:{setup:g.bindReady,teardown:g.noop},live:{add:function(a){g.event.add(this,m(a.origType,a.selector),g.extend({},a,{handler:C,guid:a.handler.guid}))},remove:function(a){g.event.remove(this,
m(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){g.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}};g.removeEvent=p.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,false)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)};g.Event=function(a,b){if(!this.preventDefault)return new g.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||
a.returnValue===false||a.getPreventDefault&&a.getPreventDefault()?I:G):this.type=a;b&&g.extend(this,b);this.timeStamp=g.now();this[g.expando]=true};g.Event.prototype={preventDefault:function(){this.isDefaultPrevented=I;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=false)},stopPropagation:function(){this.isPropagationStopped=I;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=true)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=
I;this.stopPropagation()},isDefaultPrevented:G,isPropagationStopped:G,isImmediatePropagationStopped:G};var la=function(a){var b=a.relatedTarget,c=false,e=a.type;a.type=a.data;b!==this&&(b&&(c=g.contains(this,b)),c||(g.event.handle.apply(this,arguments),a.type=e))},U=function(a){a.type=a.data;g.event.handle.apply(this,arguments)};g.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){g.event.special[a]={setup:function(c){g.event.add(this,b,c&&c.selector?U:la,a)},teardown:function(a){g.event.remove(this,
b,a&&a.selector?U:la)}}});g.support.submitBubbles||(g.event.special.submit={setup:function(){if(g.nodeName(this,"form"))return false;else g.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=g.nodeName(b,"input")||g.nodeName(b,"button")?b.type:"";(c==="submit"||c==="image")&&g(b).closest("form").length&&A("submit",this,arguments)}),g.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=g.nodeName(b,"input")||g.nodeName(b,"button")?b.type:"";(c==="text"||c==="password")&&
g(b).closest("form").length&&a.keyCode===13&&A("submit",this,arguments)})},teardown:function(){g.event.remove(this,".specialSubmit")}});if(!g.support.changeBubbles){var N,ha=function(a){var b=g.nodeName(a,"input")?a.type:"",c=a.value;b==="radio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?g.map(a.options,function(a){return a.selected}).join("-"):"":g.nodeName(a,"select")&&(c=a.selectedIndex);return c},W=function(a,c){var e=a.target,d,h;if(ca.test(e.nodeName)&&!e.readOnly&&
(d=g._data(e,"_change_data"),h=ha(e),(a.type!=="focusout"||e.type!=="radio")&&g._data(e,"_change_data",h),!(d===b||h===d)))if(d!=null||h)a.type="change",a.liveFired=b,g.event.trigger(a,c,e)};g.event.special.change={filters:{focusout:W,beforedeactivate:W,click:function(a){var b=a.target,c=g.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||g.nodeName(b,"select"))&&W.call(this,a)},keydown:function(a){var b=a.target,c=g.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!g.nodeName(b,"textarea")||
a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&W.call(this,a)},beforeactivate:function(a){a=a.target;g._data(a,"_change_data",ha(a))}},setup:function(){if(this.type==="file")return false;for(var a in N)g.event.add(this,a+".specialChange",N[a]);return ca.test(this.nodeName)},teardown:function(){g.event.remove(this,".specialChange");return ca.test(this.nodeName)}};N=g.event.special.change.filters;N.focus=N.beforeactivate}g.support.focusinBubbles||g.each({focus:"focusin",blur:"focusout"},
function(a,b){function c(a){var e=g.event.fix(a);e.type=b;e.originalEvent={};g.event.trigger(e,null,e.target);e.isDefaultPrevented()&&a.preventDefault()}var e=0;g.event.special[b]={setup:function(){e++===0&&p.addEventListener(a,c,true)},teardown:function(){--e===0&&p.removeEventListener(a,c,true)}}});g.each(["bind","one"],function(a,c){g.fn[c]=function(a,e,d){var h;if(typeof a=="object"){for(var f in a)this[c](f,e,a[f],d);return this}if(arguments.length===2||e===false)d=e,e=b;c==="one"?(h=function(a){g(this).unbind(a,
h);return d.apply(this,arguments)},h.guid=d.guid||g.guid++):h=d;if(a==="unload"&&c!=="one")this.one(a,e,d);else{f=0;for(var k=this.length;f<k;f++)g.event.add(this[f],a,h,e)}return this}});g.fn.extend({unbind:function(a,b){if(typeof a=="object"&&!a.preventDefault)for(var c in a)this.unbind(c,a[c]);else{c=0;for(var e=this.length;c<e;c++)g.event.remove(this[c],a,b)}return this},delegate:function(a,b,c,e){return this.live(b,c,e,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):
this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){g.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return g.event.trigger(a,b,this[0],true)},toggle:function(a){var b=arguments,c=a.guid||g.guid++,e=0,d=function(c){var d=(g.data(this,"lastToggle"+a.guid)||0)%e;g.data(this,"lastToggle"+a.guid,d+1);c.preventDefault();return b[d].apply(this,arguments)||false};for(d.guid=c;e<b.length;)b[e++].guid=c;return this.click(d)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||
a)}});var wa={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};g.each(["live","die"],function(a,c){g.fn[c]=function(a,e,d,h){var f=0,k,j,z,l=h||this.selector,p=h?this:g(this.context);if(typeof a=="object"&&!a.preventDefault){for(z in a)p[c](z,e,a[z],l);return this}if(c==="die"&&!a&&h&&h.charAt(0)===".")return p.unbind(h),this;if(e===false||g.isFunction(e))d=e||G,e=b;for(a=(a||"").split(" ");(h=a[f++])!=null;)if(k=ba.exec(h),j="",k&&(j=k[0],h=h.replace(ba,"")),h==="hover")a.push("mouseenter"+
j,"mouseleave"+j);else if(z=h,wa[h]?(a.push(wa[h]+j),h+=j):h=(wa[h]||h)+j,c==="live"){j=0;for(var v=p.length;j<v;j++)g.event.add(p[j],"live."+m(h,l),{data:e,selector:l,handler:d,origType:h,origHandler:d,preType:z})}else p.unbind("live."+m(h,l),d);return this}});g.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){g.fn[b]=function(a,
c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)};g.attrFn&&(g.attrFn[b]=true)});(function(){function a(b,c,e,g,d,h){for(var d=0,f=g.length;d<f;d++){var k=g[d];if(k){for(var j=false,k=k[b];k;){if(k.sizcache===e){j=g[k.sizset];break}if(k.nodeType===1)if(h||(k.sizcache=e,k.sizset=d),typeof c!="string"){if(k===c){j=true;break}}else if(l.filter(c,[k]).length>0){j=k;break}k=k[b]}g[d]=j}}}function c(a,b,e,g,d,h){for(var d=0,f=g.length;d<f;d++){var k=g[d];if(k){for(var j=
false,k=k[a];k;){if(k.sizcache===e){j=g[k.sizset];break}k.nodeType===1&&!h&&(k.sizcache=e,k.sizset=d);if(k.nodeName.toLowerCase()===b){j=k;break}k=k[a]}g[d]=j}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,h=Object.prototype.toString,f=false,k=true,j=/\\/g,m=/\W/;[0,0].sort(function(){k=false;return 0});var l=function(a,b,c,g){c=c||[];b=b||p;var d=b;if(b.nodeType!==1&&b.nodeType!==9)return[];if(!a||
typeof a!="string")return c;var f,k,j,z,m,n,H,q=true,ma=l.isXML(b),A=[],x=a;do if(e.exec(""),f=e.exec(x),f&&(x=f[3],A.push(f[1]),f[2])){z=f[3];break}while(f);if(A.length>1&&o.exec(a))if(A.length===2&&v.relative[A[0]])k=y(A[0]+A[1],b);else for(k=v.relative[A[0]]?[b]:l(A.shift(),b);A.length;)a=A.shift(),v.relative[a]&&(a+=A.shift()),k=y(a,k);else if(!g&&A.length>1&&b.nodeType===9&&!ma&&v.match.ID.test(A[0])&&!v.match.ID.test(A[A.length-1])&&(m=l.find(A.shift(),b,ma),b=m.expr?l.filter(m.expr,m.set)[0]:
m.set[0]),b)for(m=g?{expr:A.pop(),set:w(g)}:l.find(A.pop(),A.length===1&&(A[0]==="~"||A[0]==="+")&&b.parentNode?b.parentNode:b,ma),k=m.expr?l.filter(m.expr,m.set):m.set,A.length>0?j=w(k):q=false;A.length;)n=A.pop(),H=n,v.relative[n]?H=A.pop():n="",H==null&&(H=b),v.relative[n](j,H,ma);else j=[];j||(j=k);j||l.error(n||a);if(h.call(j)==="[object Array]")if(q)if(b&&b.nodeType===1)for(a=0;j[a]!=null;a++)j[a]&&(j[a]===true||j[a].nodeType===1&&l.contains(b,j[a]))&&c.push(k[a]);else for(a=0;j[a]!=null;a++)j[a]&&
j[a].nodeType===1&&c.push(k[a]);else c.push.apply(c,j);else w(j,c);z&&(l(z,d,c,g),l.uniqueSort(c));return c};l.uniqueSort=function(a){if(x&&(f=k,a.sort(x),f))for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1);return a};l.matches=function(a,b){return l(a,null,null,b)};l.matchesSelector=function(a,b){return l(b,null,null,[a]).length>0};l.find=function(a,b,c){var e;if(!a)return[];for(var g=0,d=v.order.length;g<d;g++){var h,f=v.order[g];if(h=v.leftMatch[f].exec(a)){var k=h[1];h.splice(1,1);if(k.substr(k.length-
1)!=="\\"&&(h[1]=(h[1]||"").replace(j,""),e=v.find[f](h,b,c),e!=null)){a=a.replace(v.match[f],"");break}}}e||(e=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:e,expr:a}};l.filter=function(a,c,e,g){for(var d,h,f=a,k=[],j=c,z=c&&c[0]&&l.isXML(c[0]);a&&c.length;){for(var m in v.filter)if((d=v.leftMatch[m].exec(a))!=null&&d[2]){var p,o,n=v.filter[m];o=d[1];h=false;d.splice(1,1);if(o.substr(o.length-1)!=="\\"){j===k&&(k=[]);if(v.preFilter[m])if(d=v.preFilter[m](d,
j,e,k,g,z)){if(d===true)continue}else h=p=true;if(d)for(var H=0;(o=j[H])!=null;H++)if(o){p=n(o,d,H,j);var q=g^!!p;e&&p!=null?q?h=true:j[H]=false:q&&(k.push(o),h=true)}if(p!==b){e||(j=k);a=a.replace(v.match[m],"");if(!h)return[];break}}}if(a===f)if(h==null)l.error(a);else break;f=a}return j};l.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var v=l.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|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},
type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",e=c&&!m.test(b),c=c&&!e;e&&(b=b.toLowerCase());for(var e=0,g=a.length,d;e<g;e++)if(d=a[e]){for(;(d=d.previousSibling)&&d.nodeType!==1;);a[e]=c||d&&d.nodeName.toLowerCase()===b?d||false:d===b}c&&l.filter(b,a,true)},">":function(a,b){var c,e=typeof b=="string",g=0,d=a.length;if(e&&!m.test(b))for(b=b.toLowerCase();g<d;g++){if(c=a[g])c=c.parentNode,a[g]=c.nodeName.toLowerCase()===b?c:false}else{for(;g<
d;g++)c=a[g],c&&(a[g]=e?c.parentNode:c.parentNode===b);e&&l.filter(b,a,true)}},"":function(b,e,g){var h,f=d++,k=a;typeof e=="string"&&!m.test(e)&&(e=e.toLowerCase(),h=e,k=c);k("parentNode",e,f,b,h,g)},"~":function(b,e,g){var h,f=d++,k=a;typeof e=="string"&&!m.test(e)&&(e=e.toLowerCase(),h=e,k=c);k("previousSibling",e,f,b,h,g)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c)return(a=b.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,b){if(typeof b.getElementsByName!=
"undefined"){for(var c=[],e=b.getElementsByName(a[1]),g=0,d=e.length;g<d;g++)e[g].getAttribute("name")===a[1]&&c.push(e[g]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,e,g,d){a=" "+a[1].replace(j,"")+" ";if(d)return a;for(var d=0,h;(h=b[d])!=null;d++)h&&(g^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||e.push(h):c&&(b[d]=false));return false},ID:function(a){return a[1].replace(j,
"")},TAG:function(a){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||l.error(a[0]);a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}else a[2]&&l.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,e,g,d){b=a[1]=a[1].replace(j,"");!d&&v.attrMap[b]&&(a[1]=v.attrMap[b]);a[4]=(a[4]||a[5]||"").replace(j,"");a[2]==="~="&&(a[4]=" "+a[4]+
" ");return a},PSEUDO:function(a,b,c,g,d){if(a[1]==="not")if((e.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=l(a[3],null,null,b);else return a=l.filter(a[3],b,c,1^d),c||g.push.apply(g,a),false;else if(v.match.POS.test(a[0])||v.match.CHILD.test(a[0]))return true;return a},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){return a.selected===
true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!l(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()===
"input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},
focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,e){return b===e.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,e){var g=b[1],d=v.filters[g];if(d)return d(a,c,b,e);if(g==="contains")return(a.textContent||a.innerText||
l.getText([a])||"").indexOf(b[3])>=0;if(g==="not"){b=b[3];c=0;for(e=b.length;c<e;c++)if(b[c]===a)return false;return true}l.error(g)},CHILD:function(a,b){var c=b[1],e=a;switch(c){case "only":case "first":for(;e=e.previousSibling;)if(e.nodeType===1)return false;if(c==="first")return true;e=a;case "last":for(;e=e.nextSibling;)if(e.nodeType===1)return false;return true;case "nth":var c=b[2],g=b[3];if(c===1&&g===0)return true;var d=b[0],h=a.parentNode;if(h&&(h.sizcache!==d||!a.nodeIndex)){for(var f=0,
e=h.firstChild;e;e=e.nextSibling)e.nodeType===1&&(e.nodeIndex=++f);h.sizcache=d}e=a.nodeIndex-g;return c===0?e===0:e%c===0&&e/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],c=v.attrHandle[c]?v.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=c+"",g=b[2],d=b[4];return c==
null?g==="!=":g==="="?e===d:g==="*="?e.indexOf(d)>=0:g==="~="?(" "+e+" ").indexOf(d)>=0:d?g==="!="?e!==d:g==="^="?e.indexOf(d)===0:g==="$="?e.substr(e.length-d.length)===d:g==="|="?e===d||e.substr(0,d.length+1)===d+"-":false:e&&c!==false},POS:function(a,b,c,e){var g=v.setFilters[b[2]];if(g)return g(a,c,b,e)}}},o=v.match.POS,n=function(a,b){return"\\"+(b-0+1)},q;for(q in v.match)v.match[q]=RegExp(v.match[q].source+/(?![^\[]*\])(?![^\(]*\))/.source),v.leftMatch[q]=RegExp(/(^(?:.|\r|\n)*?)/.source+v.match[q].source.replace(/\\(\d+)/g,
n));var w=function(a,b){a=Array.prototype.slice.call(a,0);return b?(b.push.apply(b,a),b):a};try{Array.prototype.slice.call(p.documentElement.childNodes,0)}catch(A){w=function(a,b){var c=0,e=b||[];if(h.call(a)==="[object Array]")Array.prototype.push.apply(e,a);else if(typeof a.length=="number")for(var g=a.length;c<g;c++)e.push(a[c]);else for(;a[c];c++)e.push(a[c]);return e}}var x,C;p.documentElement.compareDocumentPosition?x=function(a,b){return a===b?(f=true,0):!a.compareDocumentPosition||!b.compareDocumentPosition?
a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&4?-1:1}:(x=function(a,b){if(a===b)return f=true,0;if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,e,g=[],d=[];c=a.parentNode;e=b.parentNode;var h=c;if(c===e)return C(a,b);if(!c)return-1;if(!e)return 1;for(;h;)g.unshift(h),h=h.parentNode;for(h=e;h;)d.unshift(h),h=h.parentNode;c=g.length;e=d.length;for(h=0;h<c&&h<e;h++)if(g[h]!==d[h])return C(g[h],d[h]);return h===c?C(a,d[h],-1):C(g[h],b,1)},C=function(a,b,c){if(a===
b)return c;for(a=a.nextSibling;a;){if(a===b)return-1;a=a.nextSibling}return 1});l.getText=function(a){for(var b="",c,e=0;a[e];e++)c=a[e],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=l.getText(c.childNodes));return b};(function(){var a=p.createElement("div"),c="script"+(new Date).getTime(),e=p.documentElement;a.innerHTML="<a name='"+c+"'/>";e.insertBefore(a,e.firstChild);p.getElementById(c)&&(v.find.ID=function(a,c,e){if(typeof c.getElementById!="undefined"&&!e)return(c=c.getElementById(a[1]))?
c.id===a[1]||typeof c.getAttributeNode!="undefined"&&c.getAttributeNode("id").nodeValue===a[1]?[c]:b:[]},v.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b});e.removeChild(a);e=a=null})();(function(){var a=p.createElement("div");a.appendChild(p.createComment(""));a.getElementsByTagName("*").length>0&&(v.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){for(var e=[],g=0;c[g];g++)c[g].nodeType===
1&&e.push(c[g]);c=e}return c});a.innerHTML="<a href='#'></a>";a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(v.attrHandle.href=function(a){return a.getAttribute("href",2)});a=null})();p.querySelectorAll&&function(){var a=l,b=p.createElement("div");b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){l=function(b,c,e,g){c=c||p;if(!g&&!l.isXML(c)){var d=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);
if(d&&(c.nodeType===1||c.nodeType===9)){if(d[1])return w(c.getElementsByTagName(b),e);if(d[2]&&v.find.CLASS&&c.getElementsByClassName)return w(c.getElementsByClassName(d[2]),e)}if(c.nodeType===9){if(b==="body"&&c.body)return w([c.body],e);if(d&&d[3]){var h=c.getElementById(d[3]);if(!h||!h.parentNode)return w([],e);if(h.id===d[3])return w([h],e)}try{return w(c.querySelectorAll(b),e)}catch(f){}}else if(c.nodeType===1&&c.nodeName.toLowerCase()!=="object"){var d=c,k=(h=c.getAttribute("id"))||"__sizzle__",
j=c.parentNode,z=/^\s*[+~]/.test(b);h?k=k.replace(/'/g,"\\$&"):c.setAttribute("id",k);z&&j&&(c=c.parentNode);try{if(!z||j)return w(c.querySelectorAll("[id='"+k+"'] "+b),e)}catch(m){}finally{h||d.removeAttribute("id")}}}return a(b,c,e,g)};for(var c in a)l[c]=a[c];b=null}}();(function(){var a=p.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var c=!b.call(p.createElement("div"),"div"),e=false;try{b.call(p.documentElement,"[test!='']:sizzle")}catch(g){e=
true}l.matchesSelector=function(a,g){g=g.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!l.isXML(a))try{if(e||!v.match.PSEUDO.test(g)&&!/!=/.test(g)){var d=b.call(a,g);if(d||!c||a.document&&a.document.nodeType!==11)return d}}catch(h){}return l(g,null,null,[a]).length>0}}})();(function(){var a=p.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0&&(a.lastChild.className="e",a.getElementsByClassName("e").length!==
1))v.order.splice(1,0,"CLASS"),v.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null})();p.documentElement.contains?l.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):true)}:p.documentElement.compareDocumentPosition?l.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:l.contains=function(){return false};l.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":false};
var y=function(a,b){for(var c,e=[],g="",d=b.nodeType?[b]:b;c=v.match.PSEUDO.exec(a);)g+=c[0],a=a.replace(v.match.PSEUDO,"");a=v.relative[a]?a+"*":a;c=0;for(var h=d.length;c<h;c++)l(a,d[c],e);return l.filter(g,e)};g.find=l;g.expr=l.selectors;g.expr[":"]=g.expr.filters;g.unique=l.uniqueSort;g.text=l.getText;g.isXMLDoc=l.isXML;g.contains=l.contains})();var Ya=/Until$/,xa=/^(?:parents|prevUntil|prevAll)/,Za=/,/,Wa=/^.[^:#\[\.,]*$/,$a=Array.prototype.slice,Da=g.expr.match.POS,ab={children:true,contents:true,
next:true,prev:true};g.fn.extend({find:function(a){var b=this,c,e;if(typeof a!="string")return g(a).filter(function(){for(c=0,e=b.length;c<e;c++)if(g.contains(b[c],this))return true});var d=this.pushStack("","find",a),h,f,k;for(c=0,e=this.length;c<e;c++)if(h=d.length,g.find(a,this[c],d),c>0)for(f=h;f<d.length;f++)for(k=0;k<h;k++)if(d[k]===d[f]){d.splice(f--,1);break}return d},has:function(a){var b=g(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(g.contains(this,b[a]))return true})},
not:function(a){return this.pushStack(v(this,a,false),"not",a)},filter:function(a){return this.pushStack(v(this,a,true),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?g.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],e,d,h=this[0];if(g.isArray(a)){var f,k,j={},l=1;if(h&&a.length){for(e=0,d=a.length;e<d;e++)k=a[e],j[k]||(j[k]=Da.test(k)?g(k,b||this.context):k);for(;h&&h.ownerDocument&&h!==b;){for(k in j)f=j[k],(f.jquery?f.index(h)>-1:g(h).is(f))&&c.push({selector:k,
elem:h,level:l});h=h.parentNode;l++}}return c}f=Da.test(a)||typeof a!="string"?g(a,b||this.context):0;for(e=0,d=this.length;e<d;e++)for(h=this[e];h;){if(f?f.index(h)>-1:g.find.matchesSelector(h,a)){c.push(h);break}h=h.parentNode;if(!h||!h.ownerDocument||h===b||h.nodeType===11)break}c=c.length>1?g.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){return!a?this[0]&&this[0].parentNode?this.prevAll().length:-1:typeof a=="string"?g.inArray(this[0],g(a)):g.inArray(a.jquery?a[0]:a,this)},
add:function(a,b){var c=typeof a=="string"?g(a,b):g.makeArray(a&&a.nodeType?[a]:a),e=g.merge(this.get(),c);return this.pushStack(!c[0]||!c[0].parentNode||c[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:g.unique(e))},andSelf:function(){return this.add(this.prevObject)}});g.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return g.dir(a,"parentNode")},parentsUntil:function(a,b,c){return g.dir(a,"parentNode",c)},next:function(a){return g.nth(a,
2,"nextSibling")},prev:function(a){return g.nth(a,2,"previousSibling")},nextAll:function(a){return g.dir(a,"nextSibling")},prevAll:function(a){return g.dir(a,"previousSibling")},nextUntil:function(a,b,c){return g.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return g.dir(a,"previousSibling",c)},siblings:function(a){return g.sibling(a.parentNode.firstChild,a)},children:function(a){return g.sibling(a.firstChild)},contents:function(a){return g.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:
g.makeArray(a.childNodes)}},function(a,b){g.fn[a]=function(c,e){var d=g.map(this,b,c),h=$a.call(arguments);Ya.test(a)||(e=c);e&&typeof e=="string"&&(d=g.filter(e,d));d=this.length>1&&!ab[a]?g.unique(d):d;(this.length>1||Za.test(e))&&xa.test(a)&&(d=d.reverse());return this.pushStack(d,a,h.join(","))}});g.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?g.find.matchesSelector(b[0],a)?[b[0]]:[]:g.find.matches(a,b)},dir:function(a,c,e){for(var d=[],a=a[c];a&&a.nodeType!==9&&(e===
b||a.nodeType!==1||!g(a).is(e));)a.nodeType===1&&d.push(a),a=a[c];return d},nth:function(a,b,c){for(var b=b||1,e=0;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var bb=/ jQuery\d+="(?:\d+|null)"/g,ya=/^\s+/,Ea=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Fa=/<([\w:]+)/,cb=/<tbody/i,db=/<|&#?\w+;/,Ga=/<(?:script|object|embed|option|style)/i,Ha=/checked\s*(?:[^=]|=\s*.checked.)/i,
eb=/\/(java|ecma)script/i,Va=/^\s*<!(?:\[CDATA\[|\-\-)/,R={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,"",""]};R.optgroup=R.option;R.tbody=R.tfoot=R.colgroup=R.caption=R.thead;R.th=R.td;g.support.htmlSerialize||(R._default=[1,
"div<div>","</div>"]);g.fn.extend({text:function(a){return g.isFunction(a)?this.each(function(b){var c=g(this);c.text(a.call(this,b,c.text()))}):typeof a!="object"&&a!==b?this.empty().append((this[0]&&this[0].ownerDocument||p).createTextNode(a)):g.text(this)},wrapAll:function(a){if(g.isFunction(a))return this.each(function(b){g(this).wrapAll(a.call(this,b))});if(this[0]){var b=g(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&
a.firstChild.nodeType===1;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return g.isFunction(a)?this.each(function(b){g(this).wrapInner(a.call(this,b))}):this.each(function(){var b=g(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){g(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){g.nodeName(this,"body")||g(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,
true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=g(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,
false,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,g(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||g.filter(a,[e]).length)!b&&e.nodeType===1&&(g.cleanData(e.getElementsByTagName("*")),g.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&g.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
return this},clone:function(a,b){a=a==null?false:a;b=b==null?a:b;return this.map(function(){return g.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(bb,""):null;if(typeof a=="string"&&!Ga.test(a)&&(g.support.leadingWhitespace||!ya.test(a))&&!R[(Fa.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ea,"<$1></$2>");try{for(var c=0,e=this.length;c<e;c++)this[c].nodeType===1&&(g.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(d){this.empty().append(a)}}else g.isFunction(a)?
this.each(function(b){var c=g(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(g.isFunction(a))return this.each(function(b){var c=g(this),e=c.html();c.replaceWith(a.call(this,b,e))});typeof a!="string"&&(a=g(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;g(this).remove();b?g(b).before(a):g(c).append(a)})}return this.length?this.pushStack(g(g.isFunction(a)?a():a),"replaceWith",a):
this},detach:function(a){return this.remove(a,true)},domManip:function(a,c,e){var d,h,f,k,j=a[0],l=[];if(!g.support.checkClone&&arguments.length===3&&typeof j=="string"&&Ha.test(j))return this.each(function(){g(this).domManip(a,c,e,true)});if(g.isFunction(j))return this.each(function(d){var h=g(this);a[0]=j.call(this,d,c?h.html():b);h.domManip(a,c,e)});if(this[0]){k=j&&j.parentNode;g.support.parentNode&&k&&k.nodeType===11&&k.childNodes.length===this.length?d={fragment:k}:d=g.buildFragment(a,this,
l);f=d.fragment;f.childNodes.length===1?h=f=f.firstChild:h=f.firstChild;if(h){c=c&&g.nodeName(h,"tr");h=0;k=this.length;for(var m=k-1;h<k;h++)e.call(c?g.nodeName(this[h],"table")?this[h].getElementsByTagName("tbody")[0]||this[h].appendChild(this[h].ownerDocument.createElement("tbody")):this[h]:this[h],d.cacheable||k>1&&h<m?g.clone(f,true,true):f)}l.length&&g.each(l,u)}return this}});g.buildFragment=function(a,b,c){var e,d,h,f;b&&b[0]&&(f=b[0].ownerDocument||b[0]);f.createDocumentFragment||(f=p);a.length===
1&&typeof a[0]=="string"&&a[0].length<512&&f===p&&a[0].charAt(0)==="<"&&!Ga.test(a[0])&&(g.support.checkClone||!Ha.test(a[0]))&&(d=true,h=g.fragments[a[0]],h&&h!==1&&(e=h));e||(e=f.createDocumentFragment(),g.clean(a,f,e,c));d&&(g.fragments[a[0]]=h?e:1);return{fragment:e,cacheable:d}};g.fragments={};g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){g.fn[a]=function(c){var e=[],c=g(c),d=this.length===1&&this[0].parentNode;
if(d&&d.nodeType===11&&d.childNodes.length===1&&c.length===1)return c[b](this[0]),this;for(var d=0,h=c.length;d<h;d++){var f=(d>0?this.clone(true):this).get();g(c[d])[b](f);e=e.concat(f)}return this.pushStack(e,a,c.selector)}});g.extend({clone:function(a,b,c){var e=a.cloneNode(true),d,h,f;if((!g.support.noCloneEvent||!g.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!g.isXMLDoc(a)){t(a,e);d=y(a);h=y(e);for(f=0;d[f];++f)h[f]&&t(d[f],h[f])}if(b&&(s(a,e),c)){d=y(a);h=y(e);for(f=0;d[f];++f)s(d[f],
h[f])}return e},clean:function(a,b,c,e){b=b||p;typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||p);for(var d=[],h,f=0,k;(k=a[f])!=null;f++)if(typeof k=="number"&&(k+=""),k){if(typeof k=="string")if(db.test(k)){k=k.replace(Ea,"<$1></$2>");h=(Fa.exec(k)||["",""])[1].toLowerCase();var j=R[h]||R._default,l=j[0],m=b.createElement("div");for(m.innerHTML=j[1]+k+j[2];l--;)m=m.lastChild;if(!g.support.tbody){l=cb.test(k);j=h==="table"&&!l?m.firstChild&&m.firstChild.childNodes:
j[1]==="<table>"&&!l?m.childNodes:[];for(h=j.length-1;h>=0;--h)g.nodeName(j[h],"tbody")&&!j[h].childNodes.length&&j[h].parentNode.removeChild(j[h])}!g.support.leadingWhitespace&&ya.test(k)&&m.insertBefore(b.createTextNode(ya.exec(k)[0]),m.firstChild);k=m.childNodes}else k=b.createTextNode(k);var v;if(!g.support.appendChecked)if(k[0]&&typeof(v=k.length)=="number")for(h=0;h<v;h++)x(k[h]);else x(k);k.nodeType?d.push(k):d=g.merge(d,k)}if(c){a=function(a){return!a.type||eb.test(a.type)};for(f=0;d[f];f++)e&&
g.nodeName(d[f],"script")&&(!d[f].type||d[f].type.toLowerCase()==="text/javascript")?e.push(d[f].parentNode?d[f].parentNode.removeChild(d[f]):d[f]):(d[f].nodeType===1&&(b=g.grep(d[f].getElementsByTagName("script"),a),d.splice.apply(d,[f+1,0].concat(b))),c.appendChild(d[f]))}return d},cleanData:function(a){for(var b,c,e=g.cache,d=g.expando,h=g.event.special,f=g.support.deleteExpando,k=0,j;(j=a[k])!=null;k++)if(!j.nodeName||!g.noData[j.nodeName.toLowerCase()])if(c=j[g.expando]){if((b=e[c]&&e[c][d])&&
b.events){for(var l in b.events)h[l]?g.event.remove(j,l):g.removeEvent(j,l,b.handle);b.handle&&(b.handle.elem=null)}f?delete j[g.expando]:j.removeAttribute&&j.removeAttribute(g.expando);delete e[c]}}});var za=/alpha\([^)]*\)/i,fb=/opacity=([^)]*)/,gb=/([A-Z]|^ms)/g,Ia=/^-?\d+(?:px)?$/i,hb=/^-?\d/,ib=/^([\-+])=([\-+.\de]+)/,jb={position:"absolute",visibility:"hidden",display:"block"},Ta=["Left","Right"],Ua=["Top","Bottom"],ga,Ja,Ka;g.fn.css=function(a,c){return arguments.length===2&&c===b?this:g.access(this,
a,c,true,function(a,c,e){return e!==b?g.style(a,c,e):g.css(a,c)})};g.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=ga(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":g.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,e,d){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var h,f,k=g.camelCase(c),j=a.style,l=g.cssHooks[k],
c=g.cssProps[k]||k;if(e===b)return l&&"get"in l&&(h=l.get(a,false,d))!==b?h:j[c];f=typeof e;f==="string"&&(h=ib.exec(e))&&(e=+(h[1]+1)*+h[2]+parseFloat(g.css(a,c)),f="number");if(!(e==null||f==="number"&&isNaN(e)))if(f==="number"&&!g.cssNumber[k]&&(e+="px"),!l||!("set"in l)||(e=l.set(a,e))!==b)try{j[c]=e}catch(m){}}},css:function(a,c,e){var d,h;c=g.camelCase(c);h=g.cssHooks[c];c=g.cssProps[c]||c;c==="cssFloat"&&(c="float");if(h&&"get"in h&&(d=h.get(a,true,e))!==b)return d;if(ga)return ga(a,c)},swap:function(a,
b,c){var e={},d;for(d in b)e[d]=a.style[d],a.style[d]=b[d];c.call(a);for(d in b)a.style[d]=e[d]}});g.curCSS=g.css;g.each(["height","width"],function(a,b){g.cssHooks[b]={get:function(a,c,e){var d;if(c){if(a.offsetWidth!==0)return w(a,b,e);g.swap(a,jb,function(){d=w(a,b,e)});return d}},set:function(a,b){if(!Ia.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}});g.support.opacity||(g.cssHooks.opacity={get:function(a,b){return fb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?
parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,e=a.currentStyle,d=g.isNaN(b)?"":"alpha(opacity="+b*100+")",h=e&&e.filter||c.filter||"";c.zoom=1;if(b>=1&&g.trim(h.replace(za,""))===""&&(c.removeAttribute("filter"),e&&!e.filter))return;c.filter=za.test(h)?h.replace(za,d):h+" "+d}});g(function(){g.support.reliableMarginRight||(g.cssHooks.marginRight={get:function(a,b){var c;g.swap(a,{display:"inline-block"},function(){b?c=ga(a,"margin-right","marginRight"):c=a.style.marginRight});
return c}})});p.defaultView&&p.defaultView.getComputedStyle&&(Ja=function(a,c){var e,d,c=c.replace(gb,"-$1").toLowerCase();if(!(d=a.ownerDocument.defaultView))return b;if(d=d.getComputedStyle(a,null))e=d.getPropertyValue(c),e===""&&!g.contains(a.ownerDocument.documentElement,a)&&(e=g.style(a,c));return e});p.documentElement.currentStyle&&(Ka=function(a,b){var c,e=a.currentStyle&&a.currentStyle[b],d=a.runtimeStyle&&a.runtimeStyle[b],g=a.style;!Ia.test(e)&&hb.test(e)&&(c=g.left,d&&(a.runtimeStyle.left=
a.currentStyle.left),g.left=b==="fontSize"?"1em":e||0,e=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return e===""?"auto":e});ga=Ja||Ka;g.expr&&g.expr.filters&&(g.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!g.support.reliableHiddenOffsets&&(a.style.display||g.css(a,"display"))==="none"},g.expr.filters.visible=function(a){return!g.expr.filters.hidden(a)});var kb=/%20/g,Sa=/\[\]$/,La=/\r?\n/g,lb=/#.*$/,mb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,nb=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
ob=/^(?:GET|HEAD)$/,pb=/^\/\//,Ma=/\?/,qb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,rb=/^(?:select|textarea)/i,Ca=/\s+/,sb=/([?&])_=[^&]*/,Na=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Oa=g.fn.load,va={},Pa={},da,ea,Qa=["*/"]+["*"];try{da=F.href}catch(yb){da=p.createElement("a"),da.href="",da=da.href}ea=Na.exec(da.toLowerCase())||[];g.fn.extend({load:function(a,c,e){if(typeof a!="string"&&Oa)return Oa.apply(this,arguments);if(!this.length)return this;var d=a.indexOf(" ");if(d>=0)var h=
a.slice(d,a.length),a=a.slice(0,d);d="GET";c&&(g.isFunction(c)?(e=c,c=b):typeof c=="object"&&(c=g.param(c,g.ajaxSettings.traditional),d="POST"));var f=this;g.ajax({url:a,type:d,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText;a.isResolved()&&(a.done(function(a){c=a}),f.html(h?g("<div>").append(c.replace(qb,"")).find(h):c));e&&f.each(e,[c,b,a])}});return this},serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?
g.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||rb.test(this.nodeName)||nb.test(this.type))}).map(function(a,b){var c=g(this).val();return c==null?null:g.isArray(c)?g.map(c,function(a){return{name:b.name,value:a.replace(La,"\r\n")}}):{name:b.name,value:c.replace(La,"\r\n")}}).get()}});g.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){g.fn[b]=function(a){return this.bind(b,a)}});g.each(["get","post"],
function(a,c){g[c]=function(a,e,d,h){g.isFunction(e)&&(h=h||d,d=e,e=b);return g.ajax({type:c,url:a,data:e,success:d,dataType:h})}});g.extend({getScript:function(a,c){return g.get(a,b,c,"script")},getJSON:function(a,b,c){return g.get(a,b,c,"json")},ajaxSetup:function(a,b){b?e(a,g.ajaxSettings):(b=a,a=g.ajaxSettings);e(a,b);return a},ajaxSettings:{url:da,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(ea[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",
processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Qa},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":true,"text json":g.parseJSON,"text xml":g.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:q(va),ajaxTransport:q(Pa),ajax:function(a,c){function e(a,c,p,v){if(C!==2){C=2;w&&clearTimeout(w);A=b;n=
v||"";u.readyState=a>0?4:0;var o,q,z,v=c;if(p){var x=d,t=u,s=x.contents,E=x.dataTypes,H=x.responseFields,F,B,K,J;for(B in H)B in p&&(t[H[B]]=p[B]);for(;E[0]==="*";)E.shift(),F===b&&(F=x.mimeType||t.getResponseHeader("content-type"));if(F)for(B in s)if(s[B]&&s[B].test(F)){E.unshift(B);break}if(E[0]in p)K=E[0];else{for(B in p){if(!E[0]||x.converters[B+" "+E[0]]){K=B;break}J||(J=B)}K=K||J}K?(K!==E[0]&&E.unshift(K),p=p[K]):p=void 0}else p=b;if(a>=200&&a<300||a===304){if(d.ifModified){if(F=u.getResponseHeader("Last-Modified"))g.lastModified[m]=
F;if(F=u.getResponseHeader("Etag"))g.etag[m]=F}if(a===304)v="notmodified",o=true;else try{F=d;F.dataFilter&&(p=F.dataFilter(p,F.dataType));var U=F.dataTypes;B={};var I,Q,G=U.length,L,N=U[0],D,ha,M,P,W;for(I=1;I<G;I++){if(I===1)for(Q in F.converters)typeof Q=="string"&&(B[Q.toLowerCase()]=F.converters[Q]);D=N;N=U[I];if(N==="*")N=D;else if(D!=="*"&&D!==N){ha=D+" "+N;M=B[ha]||B["* "+N];if(!M)for(P in W=b,B)if(L=P.split(" "),L[0]===D||L[0]==="*")if(W=B[L[1]+" "+N]){P=B[P];P===true?M=W:W===true&&(M=P);
break}!M&&!W&&g.error("No conversion from "+ha.replace(" "," to "));M!==true&&(p=M?M(p):W(P(p)))}}q=p;v="success";o=true}catch(xa){v="parsererror",z=xa}}else if(z=v,!v||a)v="error",a<0&&(a=0);u.status=a;u.statusText=""+(c||v);o?k.resolveWith(h,[q,v,u]):k.rejectWith(h,[u,v,z]);u.statusCode(l);l=b;y&&f.trigger("ajax"+(o?"Success":"Error"),[u,d,o?q:z]);j.resolveWith(h,[u,v]);y&&(f.trigger("ajaxComplete",[u,d]),--g.active||g.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b);c=c||{};var d=g.ajaxSetup({},
c),h=d.context||d,f=h!==d&&(h.nodeType||h instanceof g)?g(h):g.event,k=g.Deferred(),j=g._Deferred(),l=d.statusCode||{},m,p={},v={},n,q,A,w,x,C=0,y,t,u={readyState:0,setRequestHeader:function(a,b){if(!C){var c=a.toLowerCase();a=v[c]=v[c]||a;p[a]=b}return this},getAllResponseHeaders:function(){return C===2?n:null},getResponseHeader:function(a){var c;if(C===2){if(!q)for(q={};c=mb.exec(n);)q[c[1].toLowerCase()]=c[2];c=q[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){C||(d.mimeType=
a);return this},abort:function(a){a=a||"abort";A&&A.abort(a);e(0,a);return this}};k.promise(u);u.success=u.done;u.error=u.fail;u.complete=j.done;u.statusCode=function(a){if(a){var b;if(C<2)for(b in a)l[b]=[l[b],a[b]];else b=a[u.status],u.then(b,b)}return this};d.url=((a||d.url)+"").replace(lb,"").replace(pb,ea[1]+"//");d.dataTypes=g.trim(d.dataType||"*").toLowerCase().split(Ca);d.crossDomain==null&&(x=Na.exec(d.url.toLowerCase()),d.crossDomain=!(!x||x[1]==ea[1]&&x[2]==ea[2]&&(x[3]||(x[1]==="http:"?
80:443))==(ea[3]||(ea[1]==="http:"?80:443))));d.data&&d.processData&&typeof d.data!="string"&&(d.data=g.param(d.data,d.traditional));o(va,d,c,u);if(C===2)return false;y=d.global;d.type=d.type.toUpperCase();d.hasContent=!ob.test(d.type);y&&g.active++===0&&g.event.trigger("ajaxStart");if(!d.hasContent&&(d.data&&(d.url+=(Ma.test(d.url)?"&":"?")+d.data,delete d.data),m=d.url,d.cache===false)){x=g.now();var s=d.url.replace(sb,"$1_="+x);d.url=s+(s===d.url?(Ma.test(d.url)?"&":"?")+"_="+x:"")}(d.data&&d.hasContent&&
d.contentType!==false||c.contentType)&&u.setRequestHeader("Content-Type",d.contentType);d.ifModified&&(m=m||d.url,g.lastModified[m]&&u.setRequestHeader("If-Modified-Since",g.lastModified[m]),g.etag[m]&&u.setRequestHeader("If-None-Match",g.etag[m]));u.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+Qa+"; q=0.01":""):d.accepts["*"]);for(t in d.headers)u.setRequestHeader(t,d.headers[t]);if(d.beforeSend&&(d.beforeSend.call(h,u,d)===
false||C===2))return u.abort(),false;for(t in{success:1,error:1,complete:1})u[t](d[t]);if(A=o(Pa,d,c,u)){u.readyState=1;y&&f.trigger("ajaxSend",[u,d]);d.async&&d.timeout>0&&(w=setTimeout(function(){u.abort("timeout")},d.timeout));try{C=1,A.send(p,e)}catch(E){C<2?e(-1,E):g.error(E)}}else e(-1,"No Transport");return u},param:function(a,c){var e=[],d=function(a,b){b=g.isFunction(b)?b():b;e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=g.ajaxSettings.traditional);if(g.isArray(a)||
a.jquery&&!g.isPlainObject(a))g.each(a,function(){d(this.name,this.value)});else for(var h in a)k(h,a[h],c,d);return e.join("&").replace(kb,"+")}});g.extend({active:0,lastModified:{},etag:{}});var tb=g.now(),sa=/(\=)\?(&|$)|\?\?/i;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return g.expando+"_"+tb++}});g.ajaxPrefilter("json jsonp",function(b,c,e){c=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==false&&(sa.test(b.url)||
c&&sa.test(b.data))){var d,h=b.jsonpCallback=g.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,f=a[h],k=b.url,j=b.data,l="$1"+h+"$2";b.jsonp!==false&&(k=k.replace(sa,l),b.url===k&&(c&&(j=j.replace(sa,l)),b.data===j&&(k+=(/\?/.test(k)?"&":"?")+b.jsonp+"="+h)));b.url=k;b.data=j;a[h]=function(a){d=[a]};e.always(function(){a[h]=f;d&&g.isFunction(f)&&a[h](d[0])});b.converters["script json"]=function(){d||g.error(h+" was not called");return d[0]};b.dataTypes[0]="json";return"script"}});g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},
contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){g.globalEval(a);return a}}});g.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=false);a.crossDomain&&(a.type="GET",a.global=false)});g.ajaxTransport("script",function(a){if(a.crossDomain){var c,e=p.head||p.getElementsByTagName("head")[0]||p.documentElement;return{send:function(d,g){c=p.createElement("script");c.async="async";a.scriptCharset&&(c.charset=a.scriptCharset);c.src=a.url;c.onload=c.onreadystatechange=
function(a,d){if(d||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,e&&c.parentNode&&e.removeChild(c),c=b,d||g(200,"success")};e.insertBefore(c,e.firstChild)},abort:function(){c&&c.onload(0,1)}}}});var Aa=a.ActiveXObject?function(){for(var a in ia)ia[a](0,1)}:false,ub=0,ia;g.ajaxSettings.xhr=a.ActiveXObject?function(){var b;if(!(b=!this.isLocal&&h()))a:{try{b=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(c){}b=void 0}return b}:h;(function(a){g.extend(g.support,
{ajax:!!a,cors:!!a&&"withCredentials"in a})})(g.ajaxSettings.xhr());g.support.ajax&&g.ajaxTransport(function(c){if(!c.crossDomain||g.support.cors){var e;return{send:function(d,h){var f=c.xhr(),k,j;c.username?f.open(c.type,c.url,c.async,c.username,c.password):f.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)f[j]=c.xhrFields[j];c.mimeType&&f.overrideMimeType&&f.overrideMimeType(c.mimeType);!c.crossDomain&&!d["X-Requested-With"]&&(d["X-Requested-With"]="XMLHttpRequest");try{for(j in d)f.setRequestHeader(j,
d[j])}catch(l){}f.send(c.hasContent&&c.data||null);e=function(a,d){var j,l,m,p,v;try{if(e&&(d||f.readyState===4))if(e=b,k&&(f.onreadystatechange=g.noop,Aa&&delete ia[k]),d)f.readyState!==4&&f.abort();else{j=f.status;m=f.getAllResponseHeaders();p={};v=f.responseXML;v&&v.documentElement&&(p.xml=v);p.text=f.responseText;try{l=f.statusText}catch(o){l=""}!j&&c.isLocal&&!c.crossDomain?j=p.text?200:404:j===1223&&(j=204)}}catch(n){d||h(-1,n)}p&&h(j,l,p,m)};!c.async||f.readyState===4?e():(k=++ub,Aa&&(ia||
(ia={},g(a).unload(Aa)),ia[k]=e),f.onreadystatechange=e)},abort:function(){e&&e(0,1)}}}});var ua={},X,fa,vb=/^(?:toggle|show|hide)$/,wb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ta,Ba=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],na;g.fn.extend({show:function(a,b,c){var e,h;if(a||a===0)return this.animate(f("show",3),a,b,c);a=0;for(b=this.length;a<b;a++)e=this[a],e.style&&(h=e.style.display,!g._data(e,"olddisplay")&&
h==="none"&&(h=e.style.display=""),h===""&&g.css(e,"display")==="none"&&g._data(e,"olddisplay",d(e.nodeName)));for(a=0;a<b;a++)if(e=this[a],e.style&&(h=e.style.display,h===""||h==="none"))e.style.display=g._data(e,"olddisplay")||"";return this},hide:function(a,b,c){if(a||a===0)return this.animate(f("hide",3),a,b,c);a=0;for(b=this.length;a<b;a++)this[a].style&&(c=g.css(this[a],"display"),c!=="none"&&!g._data(this[a],"olddisplay")&&g._data(this[a],"olddisplay",c));for(a=0;a<b;a++)this[a].style&&(this[a].style.display=
"none");return this},_toggle:g.fn.toggle,toggle:function(a,b,c){var e=typeof a=="boolean";g.isFunction(a)&&g.isFunction(b)?this._toggle.apply(this,arguments):a==null||e?this.each(function(){var b=e?a:g(this).is(":hidden");g(this)[b?"show":"hide"]()}):this.animate(f("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,e)},animate:function(a,b,c,e){var h=g.speed(b,c,e);if(g.isEmptyObject(a))return this.each(h.complete,
[false]);a=g.extend({},a);return this[h.queue===false?"each":"queue"](function(){var z;h.queue===false&&g._mark(this);var b=g.extend({},h),c=this.nodeType===1,e=c&&g(this).is(":hidden"),f,k,j,l,m,p,v,o,n;b.animatedProperties={};for(j in a){f=g.camelCase(j);j!==f&&(a[f]=a[j],delete a[j]);k=a[f];g.isArray(k)?(b.animatedProperties[f]=k[1],z=a[f]=k[0],k=z):b.animatedProperties[f]=b.specialEasing&&b.specialEasing[f]||b.easing||"swing";if(k==="hide"&&e||k==="show"&&!e)return b.complete.call(this);c&&(f===
"height"||f==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],g.css(this,"display")==="inline"&&g.css(this,"float")==="none"&&(g.support.inlineBlockNeedsLayout?(l=d(this.nodeName),l==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"))}b.overflow!=null&&(this.style.overflow="hidden");for(j in a)m=new g.fx(this,b,j),k=a[j],vb.test(k)?m[k==="toggle"?e?"show":"hide":k]():(p=wb.exec(k),v=
m.cur(),p?(o=parseFloat(p[2]),n=p[3]||(g.cssNumber[j]?"":"px"),n!=="px"&&(g.style(this,j,(o||1)+n),v*=(o||1)/m.cur(),g.style(this,j,v+n)),p[1]&&(o=(p[1]==="-="?-1:1)*o+v),m.custom(v,o,n)):m.custom(v,k,""));return true})},stop:function(a,b){a&&this.queue([]);this.each(function(){var a=g.timers,c=a.length;for(b||g._unmark(true,this);c--;)a[c].elem===this&&(b&&a[c](true),a.splice(c,1))});b||this.dequeue();return this}});g.each({slideDown:f("show",1),slideUp:f("hide",1),slideToggle:f("toggle",1),fadeIn:{opacity:"show"},
fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){g.fn[a]=function(a,c,e){return this.animate(b,a,c,e)}});g.extend({speed:function(a,b,c){var e=a&&typeof a=="object"?g.extend({},a):{complete:c||!c&&b||g.isFunction(a)&&a,duration:a,easing:c&&b||b&&!g.isFunction(b)&&b};e.duration=g.fx.off?0:typeof e.duration=="number"?e.duration:e.duration in g.fx.speeds?g.fx.speeds[e.duration]:g.fx.speeds._default;e.old=e.complete;e.complete=function(a){g.isFunction(e.old)&&e.old.call(this);e.queue!==
false?g.dequeue(this):a!==false&&g._unmark(this)};return e},easing:{linear:function(a,b,c,e){return c+e*a},swing:function(a,b,c,e){return(-Math.cos(a*Math.PI)/2+0.5)*e+c}},timers:[],fx:function(a,b,c){this.options=b;this.elem=a;this.prop=c;b.orig=b.orig||{}}});g.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(g.fx.step[this.prop]||g.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 a,b=g.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function e(a){return d.step(a)}var d=this,h=g.fx;this.startTime=na||l();this.start=a;this.end=b;this.unit=c||this.unit||(g.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;e.elem=this.elem;e()&&g.timers.push(e)&&!ta&&(ta=setInterval(h.tick,h.interval))},show:function(){this.options.orig[this.prop]=g.style(this.elem,this.prop);this.options.show=
true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());g(this.elem).show()},hide:function(){this.options.orig[this.prop]=g.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=na||l(),c=true,e=this.elem,d=this.options,h,f;if(a||b>=d.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();d.animatedProperties[this.prop]=true;for(h in d.animatedProperties)d.animatedProperties[h]!==true&&(c=false);if(c){d.overflow!=
null&&!g.support.shrinkWrapBlocks&&g.each(["","X","Y"],function(a,b){e.style["overflow"+b]=d.overflow[a]});d.hide&&g(e).hide();if(d.hide||d.show)for(var k in d.animatedProperties)g.style(e,k,d.orig[k]);d.complete.call(e)}return false}d.duration==Infinity?this.now=b:(f=b-this.startTime,this.state=f/d.duration,this.pos=g.easing[d.animatedProperties[this.prop]](this.state,f,0,1,d.duration),this.now=this.start+(this.end-this.start)*this.pos);this.update();return true}};g.extend(g.fx,{tick:function(){for(var a=
g.timers,b=0;b<a.length;++b)a[b]()||a.splice(b--,1);a.length||g.fx.stop()},interval:13,stop:function(){clearInterval(ta);ta=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){g.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}});g.expr&&g.expr.filters&&(g.expr.filters.animated=function(a){return g.grep(g.timers,function(b){return a===
b.elem}).length});var xb=/^t(?:able|d|h)$/i,Ra=/^(?:body|html)$/i;"getBoundingClientRect"in p.documentElement?g.fn.offset=function(a){var b=this[0],e;if(a)return this.each(function(b){g.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return g.offset.bodyOffset(b);try{e=b.getBoundingClientRect()}catch(d){}var h=b.ownerDocument,f=h.documentElement;if(!e||!g.contains(f,b))return e?{top:e.top,left:e.left}:{top:0,left:0};b=h.body;h=c(h);return{top:e.top+(h.pageYOffset||
g.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:e.left+(h.pageXOffset||g.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:g.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){g.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return g.offset.bodyOffset(b);g.offset.initialize();for(var c,e=b.offsetParent,d=b.ownerDocument,h=d.documentElement,f=d.body,k=(d=d.defaultView)?d.getComputedStyle(b,
null):b.currentStyle,j=b.offsetTop,l=b.offsetLeft;(b=b.parentNode)&&b!==f&&b!==h;){if(g.offset.supportsFixedPosition&&k.position==="fixed")break;c=d?d.getComputedStyle(b,null):b.currentStyle;j-=b.scrollTop;l-=b.scrollLeft;b===e&&(j+=b.offsetTop,l+=b.offsetLeft,g.offset.doesNotAddBorder&&(!g.offset.doesAddBorderForTableAndCells||!xb.test(b.nodeName))&&(j+=parseFloat(c.borderTopWidth)||0,l+=parseFloat(c.borderLeftWidth)||0),e=b.offsetParent);g.offset.subtractsBorderForOverflowNotVisible&&c.overflow!==
"visible"&&(j+=parseFloat(c.borderTopWidth)||0,l+=parseFloat(c.borderLeftWidth)||0);k=c}if(k.position==="relative"||k.position==="static")j+=f.offsetTop,l+=f.offsetLeft;g.offset.supportsFixedPosition&&k.position==="fixed"&&(j+=Math.max(h.scrollTop,f.scrollTop),l+=Math.max(h.scrollLeft,f.scrollLeft));return{top:j,left:l}};g.offset={initialize:function(){var a=p.body,b=p.createElement("div"),c,e,d,h=parseFloat(g.css(a,"marginTop"))||0;g.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,
width:"1px",height:"1px",visibility:"hidden"});b.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>";a.insertBefore(b,a.firstChild);c=b.firstChild;e=c.firstChild;d=c.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=
d.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";c.style.overflow="hidden";c.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==h;a.removeChild(b);g.offset.initialize=g.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;g.offset.initialize();g.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(g.css(a,
"marginTop"))||0,c+=parseFloat(g.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var e=g.css(a,"position");e==="static"&&(a.style.position="relative");var d=g(a),h=d.offset(),f=g.css(a,"top"),k=g.css(a,"left"),j={},l={},m,p;(e==="absolute"||e==="fixed")&&g.inArray("auto",[f,k])>-1?(l=d.position(),m=l.top,p=l.left):(m=parseFloat(f)||0,p=parseFloat(k)||0);g.isFunction(b)&&(b=b.call(a,c,h));b.top!=null&&(j.top=b.top-h.top+m);b.left!=null&&(j.left=b.left-h.left+p);"using"in b?
b.using.call(a,j):d.css(j)}};g.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),e=Ra.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(g.css(a,"marginTop"))||0;c.left-=parseFloat(g.css(a,"marginLeft"))||0;e.top+=parseFloat(g.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(g.css(b[0],"borderLeftWidth"))||0;return{top:c.top-e.top,left:c.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||
p.body;a&&!Ra.test(a.nodeName)&&g.css(a,"position")==="static";)a=a.offsetParent;return a})}});g.each(["Left","Top"],function(a,e){var d="scroll"+e;g.fn[d]=function(e){var h,f;if(e===b){h=this[0];return!h?null:(f=c(h))?"pageXOffset"in f?f[a?"pageYOffset":"pageXOffset"]:g.support.boxModel&&f.document.documentElement[d]||f.document.body[d]:h[d]}return this.each(function(){f=c(this);f?f.scrollTo(a?g(f).scrollLeft():e,a?e:g(f).scrollTop()):this[d]=e})}});g.each(["Height","Width"],function(a,c){var e=
c.toLowerCase();g.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(g.css(a,e,"padding")):null};g.fn["outer"+c]=function(a){var b=this[0];return b&&b.style?parseFloat(g.css(b,e,a?"margin":"border")):null};g.fn[e]=function(a){var d=this[0];if(!d)return a==null?null:this;if(g.isFunction(a))return this.each(function(b){var c=g(this);c[e](a.call(this,b,c[e]()))});if(g.isWindow(d)){var h=d.document.documentElement["client"+c],f=d.document.body;return d.document.compatMode==="CSS1Compat"&&
h||f&&f["client"+c]||h}if(d.nodeType===9)return Math.max(d.documentElement["client"+c],d.body["scroll"+c],d.documentElement["scroll"+c],d.body["offset"+c],d.documentElement["offset"+c]);return a===b?(d=g.css(d,e),h=parseFloat(d),g.isNaN(h)?d:h):this.css(e,typeof a=="string"?a:a+"px")}});a.jQuery=a.$=g})(window);/*
: Licensed under The MIT License. See license.txt and http://www.datejs.com/license/.
@website: http://www.datejs.com/
*/
Date.CultureInfo={name:"en-US",englishName:"English (United States)",nativeName:"English (United States)",dayNames:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),abbreviatedDayNames:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),shortestDayNames:"Su,Mo,Tu,We,Th,Fr,Sa".split(","),firstLetterDayNames:"S,M,T,W,T,F,S".split(","),monthNames:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),abbreviatedMonthNames:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),
amDesignator:"AM",pmDesignator:"PM",firstDayOfWeek:0,twoDigitYearMax:2029,dateElementOrder:"mdy",formatPatterns:{shortDate:"M/d/yyyy",longDate:"dddd, MMMM dd, yyyy",shortTime:"h:mm tt",longTime:"h:mm:ss tt",fullDateTime:"dddd, MMMM dd, yyyy h:mm:ss tt",sortableDateTime:"yyyy-MM-ddTHH:mm:ss",universalSortableDateTime:"yyyy-MM-dd HH:mm:ssZ",rfc1123:"ddd, dd MMM yyyy HH:mm:ss GMT",monthDay:"MMMM dd",yearMonth:"MMMM, yyyy"},regexPatterns:{jan:/^jan(uary)?/i,feb:/^feb(ruary)?/i,mar:/^mar(ch)?/i,apr:/^apr(il)?/i,
may:/^may/i,jun:/^jun(e)?/i,jul:/^jul(y)?/i,aug:/^aug(ust)?/i,sep:/^sep(t(ember)?)?/i,oct:/^oct(ober)?/i,nov:/^nov(ember)?/i,dec:/^dec(ember)?/i,sun:/^su(n(day)?)?/i,mon:/^mo(n(day)?)?/i,tue:/^tu(e(s(day)?)?)?/i,wed:/^we(d(nesday)?)?/i,thu:/^th(u(r(s(day)?)?)?)?/i,fri:/^fr(i(day)?)?/i,sat:/^sa(t(urday)?)?/i,future:/^next/i,past:/^last|past|prev(ious)?/i,add:/^(\+|aft(er)?|from|hence)/i,subtract:/^(\-|bef(ore)?|ago)/i,yesterday:/^yes(terday)?/i,today:/^t(od(ay)?)?/i,tomorrow:/^tom(orrow)?/i,now:/^n(ow)?/i,
millisecond:/^ms|milli(second)?s?/i,second:/^sec(ond)?s?/i,minute:/^mn|min(ute)?s?/i,hour:/^h(our)?s?/i,week:/^w(eek)?s?/i,month:/^m(onth)?s?/i,day:/^d(ay)?s?/i,year:/^y(ear)?s?/i,shortMeridian:/^(a|p)/i,longMeridian:/^(a\.?m?\.?|p\.?m?\.?)/i,timezone:/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\s*(\+|\-)\s*\d\d\d\d?)|gmt|utc)/i,ordinalSuffix:/^\s*(st|nd|rd|th)/i,timeContext:/^\s*(\:|a(?!u|p)|p)/i},timezones:[{name:"UTC",offset:"-000"},{name:"GMT",offset:"-000"},{name:"EST",offset:"-0500"},{name:"EDT",
offset:"-0400"},{name:"CST",offset:"-0600"},{name:"CDT",offset:"-0500"},{name:"MST",offset:"-0700"},{name:"MDT",offset:"-0600"},{name:"PST",offset:"-0800"},{name:"PDT",offset:"-0700"}]};
(function(){var a=Date,b=a.prototype,c=a.CultureInfo,d=function(a,b){b||(b=2);return("000"+a).slice(b*-1)};b.clearTime=function(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);return this};b.setTimeToNow=function(){var a=new Date;this.setHours(a.getHours());this.setMinutes(a.getMinutes());this.setSeconds(a.getSeconds());this.setMilliseconds(a.getMilliseconds());return this};a.today=function(){return(new Date).clearTime()};a.compare=function(a,b){if(isNaN(a)||isNaN(b))throw Error(a+
" - "+b);else if(a instanceof Date&&b instanceof Date)return a<b?-1:a>b?1:0;else throw new TypeError(a+" - "+b);};a.equals=function(a,b){return a.compareTo(b)===0};a.getDayNumberFromName=function(a){for(var b=c.dayNames,e=c.abbreviatedDayNames,d=c.shortestDayNames,a=a.toLowerCase(),f=0;f<b.length;f++)if(b[f].toLowerCase()==a||e[f].toLowerCase()==a||d[f].toLowerCase()==a)return f;return-1};a.getMonthNumberFromName=function(a){for(var b=c.monthNames,e=c.abbreviatedMonthNames,a=a.toLowerCase(),d=0;d<
b.length;d++)if(b[d].toLowerCase()==a||e[d].toLowerCase()==a)return d;return-1};a.isLeapYear=function(a){return a%4===0&&a%100!==0||a%400===0};a.getDaysInMonth=function(b,c){return[31,a.isLeapYear(b)?29:28,31,30,31,30,31,31,30,31,30,31][c]};a.getTimezoneAbbreviation=function(a){for(var b=c.timezones,e=0;e<b.length;e++)if(b[e].offset===a)return b[e].name;return null};a.getTimezoneOffset=function(a){for(var b=c.timezones,e=0;e<b.length;e++)if(b[e].name===a.toUpperCase())return b[e].offset;return null};
b.clone=function(){return new Date(this.getTime())};b.compareTo=function(a){return Date.compare(this,a)};b.equals=function(a){return Date.equals(this,a||new Date)};b.between=function(a,b){return this.getTime()>=a.getTime()&&this.getTime()<=b.getTime()};b.isAfter=function(a){return this.compareTo(a||new Date)===1};b.isBefore=function(a){return this.compareTo(a||new Date)===-1};b.isToday=function(){return this.isSameDay(new Date)};b.isSameDay=function(a){return this.clone().clearTime().equals(a.clone().clearTime())};
b.addMilliseconds=function(a){this.setMilliseconds(this.getMilliseconds()+a);return this};b.addSeconds=function(a){return this.addMilliseconds(a*1E3)};b.addMinutes=function(a){return this.addMilliseconds(a*6E4)};b.addHours=function(a){return this.addMilliseconds(a*36E5)};b.addDays=function(a){this.setDate(this.getDate()+a);return this};b.addWeeks=function(a){return this.addDays(a*7)};b.addMonths=function(b){var c=this.getDate();this.setDate(1);this.setMonth(this.getMonth()+b);this.setDate(Math.min(c,
a.getDaysInMonth(this.getFullYear(),this.getMonth())));return this};b.addYears=function(a){return this.addMonths(a*12)};b.add=function(a){if(typeof a=="number")return this._orient=a,this;a.milliseconds&&this.addMilliseconds(a.milliseconds);a.seconds&&this.addSeconds(a.seconds);a.minutes&&this.addMinutes(a.minutes);a.hours&&this.addHours(a.hours);a.weeks&&this.addWeeks(a.weeks);a.months&&this.addMonths(a.months);a.years&&this.addYears(a.years);a.days&&this.addDays(a.days);return this};var f,j,l;b.getWeek=
function(){var a,b,c,d,q;f=!f?this.getFullYear():f;j=!j?this.getMonth()+1:j;l=!l?this.getDate():l;j<=2?(a=f-1,b=(a/4|0)-(a/100|0)+(a/400|0),c=b-(((a-1)/4|0)-((a-1)/100|0)+((a-1)/400|0)),d=0,q=l-1+31*(j-1)):(a=f,b=(a/4|0)-(a/100|0)+(a/400|0),c=b-(((a-1)/4|0)-((a-1)/100|0)+((a-1)/400|0)),d=c+1,q=l+(153*(j-3)+2)/5+58+c);a=(a+b)%7;d=q+3-(q+a-d)%7|0;f=j=l=null;return d<0?53-((a-c)/5|0):d>364+c?1:(d/7|0)+1};b.getISOWeek=function(){f=this.getUTCFullYear();j=this.getUTCMonth()+1;l=this.getUTCDate();return d(this.getWeek())};
b.setWeek=function(a){return this.moveToDayOfWeek(1).addWeeks(a-this.getWeek())};a._validate=function(a,b,c,d){if(typeof a=="undefined")return false;else if(typeof a!="number")throw new TypeError(a+" is not a Number.");else if(a<b||a>c)throw new RangeError(a+" is not a valid value for "+d+".");return true};a.validateMillisecond=function(b){return a._validate(b,0,999,"millisecond")};a.validateSecond=function(b){return a._validate(b,0,59,"second")};a.validateMinute=function(b){return a._validate(b,
0,59,"minute")};a.validateHour=function(b){return a._validate(b,0,23,"hour")};a.validateDay=function(b,c,e){return a._validate(b,1,a.getDaysInMonth(c,e),"day")};a.validateMonth=function(b){return a._validate(b,0,11,"month")};a.validateYear=function(b){return a._validate(b,0,9999,"year")};b.set=function(b){a.validateMillisecond(b.millisecond)&&this.addMilliseconds(b.millisecond-this.getMilliseconds());a.validateSecond(b.second)&&this.addSeconds(b.second-this.getSeconds());a.validateMinute(b.minute)&&
this.addMinutes(b.minute-this.getMinutes());a.validateHour(b.hour)&&this.addHours(b.hour-this.getHours());a.validateMonth(b.month)&&this.addMonths(b.month-this.getMonth());a.validateYear(b.year)&&this.addYears(b.year-this.getFullYear());a.validateDay(b.day,this.getFullYear(),this.getMonth())&&this.addDays(b.day-this.getDate());b.timezone&&this.setTimezone(b.timezone);b.timezoneOffset&&this.setTimezoneOffset(b.timezoneOffset);b.week&&a._validate(b.week,0,53,"week")&&this.setWeek(b.week);return this};
b.moveToFirstDayOfMonth=function(){return this.set({day:1})};b.moveToLastDayOfMonth=function(){return this.set({day:a.getDaysInMonth(this.getFullYear(),this.getMonth())})};b.moveToNthOccurrence=function(a,b){var c=0;if(b>0)c=b-1;else if(b===-1)return this.moveToLastDayOfMonth(),this.getDay()!==a&&this.moveToDayOfWeek(a,-1),this;return this.moveToFirstDayOfMonth().addDays(-1).moveToDayOfWeek(a,1).addWeeks(c)};b.moveToDayOfWeek=function(a,b){var c=(a-this.getDay()+7*(b||1))%7;return this.addDays(c===
0?c+7*(b||1):c)};b.moveToMonth=function(a,b){var c=(a-this.getMonth()+12*(b||1))%12;return this.addMonths(c===0?c+12*(b||1):c)};b.getOrdinalNumber=function(){return Math.ceil((this.clone().clearTime()-new Date(this.getFullYear(),0,1))/864E5)+1};b.getTimezone=function(){return a.getTimezoneAbbreviation(this.getUTCOffset())};b.setTimezoneOffset=function(a){var b=this.getTimezoneOffset();return this.addMinutes(Number(a)*-6/10-b)};b.setTimezone=function(b){return this.setTimezoneOffset(a.getTimezoneOffset(b))};
b.hasDaylightSavingTime=function(){return Date.today().set({month:0,day:1}).getTimezoneOffset()!==Date.today().set({month:6,day:1}).getTimezoneOffset()};b.isDaylightSavingTime=function(){return this.hasDaylightSavingTime()&&(new Date).getTimezoneOffset()===Date.today().set({month:6,day:1}).getTimezoneOffset()};b.getUTCOffset=function(){var a=this.getTimezoneOffset()*-10/6;return a<0?(a=(a-1E4).toString(),a.charAt(0)+a.substr(2)):(a=(a+1E4).toString(),"+"+a.substr(1))};b.getElapsed=function(a){return(a||
new Date)-this};if(!b.toISOString)b.toISOString=function(){function a(b){return b<10?"0"+b:b}return'"'+this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+'Z"'};b._toString=b.toString;b.toString=function(a){var b=this;if(a&&a.length==1){var e=c.formatPatterns;b.t=b.toString;switch(a){case "d":return b.t(e.shortDate);case "D":return b.t(e.longDate);case "F":return b.t(e.fullDateTime);case "m":return b.t(e.monthDay);
case "r":return b.t(e.rfc1123);case "s":return b.t(e.sortableDateTime);case "t":return b.t(e.shortTime);case "T":return b.t(e.longTime);case "u":return b.t(e.universalSortableDateTime);case "y":return b.t(e.yearMonth)}}var f=function(a){switch(a*1){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}};return a?a.replace(/(\\)?(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|S)/g,function(a){if(a.charAt(0)==="\\")return a.replace("\\","");b.h=b.getHours;
switch(a){case "hh":return d(b.h()<13?b.h()===0?12:b.h():b.h()-12);case "h":return b.h()<13?b.h()===0?12:b.h():b.h()-12;case "HH":return d(b.h());case "H":return b.h();case "mm":return d(b.getMinutes());case "m":return b.getMinutes();case "ss":return d(b.getSeconds());case "s":return b.getSeconds();case "yyyy":return d(b.getFullYear(),4);case "yy":return d(b.getFullYear());case "dddd":return c.dayNames[b.getDay()];case "ddd":return c.abbreviatedDayNames[b.getDay()];case "dd":return d(b.getDate());
case "d":return b.getDate();case "MMMM":return c.monthNames[b.getMonth()];case "MMM":return c.abbreviatedMonthNames[b.getMonth()];case "MM":return d(b.getMonth()+1);case "M":return b.getMonth()+1;case "t":return b.h()<12?c.amDesignator.substring(0,1):c.pmDesignator.substring(0,1);case "tt":return b.h()<12?c.amDesignator:c.pmDesignator;case "S":return f(b.getDate());default:return a}}):this._toString()}})();
(function(){var a=Date,b=a.prototype,c=a.CultureInfo,d=Number.prototype;b._orient=1;b._nth=null;b._is=false;b._same=false;b._isSecond=false;d._dateElement="day";b.next=function(){this._orient=1;return this};a.next=function(){return a.today().next()};b.last=b.prev=b.previous=function(){this._orient=-1;return this};a.last=a.prev=a.previous=function(){return a.today().last()};b.is=function(){this._is=true;return this};b.same=function(){this._same=true;this._isSecond=false;return this};b.today=function(){return this.same().day()};
b.weekday=function(){return this._is?(this._is=false,!this.is().sat()&&!this.is().sun()):false};b.at=function(b){return typeof b==="string"?a.parse(this.toString("d")+" "+b):this.set(b)};d.fromNow=d.after=function(a){var b={};b[this._dateElement]=this;return(!a?new Date:a.clone()).add(b)};d.ago=d.before=function(a){var b={};b[this._dateElement]=this*-1;return(!a?new Date:a.clone()).add(b)};var f="sunday monday tuesday wednesday thursday friday saturday".split(/\s/),j="january february march april may june july august september october november december".split(/\s/),
l="Millisecond Second Minute Hour Day Week Month Year".split(/\s/),h="Milliseconds Seconds Minutes Hours Date Week Month FullYear".split(/\s/),k="final first second third fourth fifth".split(/\s/);b.toObject=function(){for(var a={},b=0;b<l.length;b++)a[l[b].toLowerCase()]=this["get"+h[b]]();return a};a.fromObject=function(a){a.week=null;return Date.today().set(a)};for(var e=function(b){return function(){if(this._is)return this._is=false,this.getDay()==b;if(this._nth!==null){this._isSecond&&this.addSeconds(this._orient*
-1);this._isSecond=false;var c=this._nth;this._nth=null;var e=this.clone().moveToLastDayOfMonth();this.moveToNthOccurrence(b,c);if(this>e)throw new RangeError(a.getDayName(b)+" does not occur "+c+" times in the month of "+a.getMonthName(e.getMonth())+" "+e.getFullYear()+".");return this}return this.moveToDayOfWeek(b,this._orient)}},o=function(b){return function(){var e=a.today(),d=b-e.getDay();b===0&&c.firstDayOfWeek===1&&e.getDay()!==0&&(d+=7);return e.addDays(d)}},q=0;q<f.length;q++)a[f[q].toUpperCase()]=
a[f[q].toUpperCase().substring(0,3)]=q,a[f[q]]=a[f[q].substring(0,3)]=o(q),b[f[q]]=b[f[q].substring(0,3)]=e(q);f=function(a){return function(){return this._is?(this._is=false,this.getMonth()===a):this.moveToMonth(a,this._orient)}};e=function(b){return function(){return a.today().set({month:b,day:1})}};for(o=0;o<j.length;o++)a[j[o].toUpperCase()]=a[j[o].toUpperCase().substring(0,3)]=o,a[j[o]]=a[j[o].substring(0,3)]=e(o),b[j[o]]=b[j[o].substring(0,3)]=f(o);f=function(a){return function(b){if(this._isSecond)return this._isSecond=
false,this;if(this._same){this._same=this._is=false;for(var c=this.toObject(),b=(b||new Date).toObject(),e="",d=a.toLowerCase(),f=l.length-1;f>-1;f--){e=l[f].toLowerCase();if(c[e]!=b[e])return false;if(d==e)break}return true}a.substring(a.length-1)!="s"&&(a+="s");return this["add"+a](this._orient)}};e=function(a){return function(){this._dateElement=a;return this}};for(o=0;o<l.length;o++)j=l[o].toLowerCase(),b[j]=b[j+"s"]=f(l[o]),d[j]=d[j+"s"]=e(j);b._ss=f("Second");d=function(a){return function(b){if(this._same)return this._ss(b);
if(b||b===0)return this.moveToNthOccurrence(b,a);this._nth=a;return a===2&&(b===void 0||b===null)?(this._isSecond=true,this.addSeconds(this._orient)):this}};for(j=0;j<k.length;j++)b[k[j]]=j===0?d(-1):d(j)})();
(function(){Date.Parsing={Exception:function(a){this.message="Parse error at '"+a.substring(0,10)+" ...'"}};for(var a=Date.Parsing,b=a.Operators={rtoken:function(b){return function(c){var d=c.match(b);if(d)return[d[0],c.substring(d[0].length)];else throw new a.Exception(c);}},token:function(){return function(a){return b.rtoken(RegExp("^s*"+a+"s*"))(a)}},stoken:function(a){return b.rtoken(RegExp("^"+a))},until:function(a){return function(b){for(var c=[],d=null;b.length;){try{d=a.call(this,b)}catch(e){c.push(d[0]);
b=d[1];continue}break}return[c,b]}},many:function(a){return function(b){for(var c=[],d=null;b.length;){try{d=a.call(this,b)}catch(e){break}c.push(d[0]);b=d[1]}return[c,b]}},optional:function(a){return function(b){var c=null;try{c=a.call(this,b)}catch(d){return[null,b]}return[c[0],c[1]]}},not:function(b){return function(c){try{b.call(this,c)}catch(d){return[null,c]}throw new a.Exception(c);}},ignore:function(a){return a?function(b){var c=null,c=a.call(this,b);return[null,c[1]]}:null},product:function(){for(var a=
arguments[0],c=Array.prototype.slice.call(arguments,1),d=[],f=0;f<a.length;f++)d.push(b.each(a[f],c));return d},cache:function(b){var c={},d=null;return function(f){try{d=c[f]=c[f]||b.call(this,f)}catch(e){d=c[f]=e}if(d instanceof a.Exception)throw d;else return d}},any:function(){var b=arguments;return function(c){for(var d=null,f=0;f<b.length;f++)if(b[f]!=null){try{d=b[f].call(this,c)}catch(e){d=null}if(d)return d}throw new a.Exception(c);}},each:function(){var b=arguments;return function(c){for(var d=
[],f=null,e=0;e<b.length;e++)if(b[e]!=null){try{f=b[e].call(this,c)}catch(o){throw new a.Exception(c);}d.push(f[0]);c=f[1]}return[d,c]}},all:function(){var a=a;return a.each(a.optional(arguments))},sequence:function(c,d,f){d=d||b.rtoken(/^\s*/);f=f||null;return c.length==1?c[0]:function(b){for(var e=null,o=null,q=[],w=0;w<c.length;w++){try{e=c[w].call(this,b)}catch(u){break}q.push(e[0]);try{o=d.call(this,e[1])}catch(x){o=null;break}b=o[1]}if(!e)throw new a.Exception(b);if(o)throw new a.Exception(o[1]);
if(f)try{e=f.call(this,e[1])}catch(n){throw new a.Exception(e[1]);}return[q,e?e[1]:b]}},between:function(a,c,d){var d=d||a,f=b.each(b.ignore(a),c,b.ignore(d));return function(a){a=f.call(this,a);return[[a[0][0],r[0][2]],a[1]]}},list:function(a,c,d){c=c||b.rtoken(/^\s*/);d=d||null;return a instanceof Array?b.each(b.product(a.slice(0,-1),b.ignore(c)),a.slice(-1),b.ignore(d)):b.each(b.many(b.each(a,b.ignore(c))),px,b.ignore(d))},set:function(c,d,f){d=d||b.rtoken(/^\s*/);f=f||null;return function(k){for(var e=
null,o=e=null,q=null,w=[[],k],u=false,x=0;x<c.length;x++){e=o=null;u=c.length==1;try{e=c[x].call(this,k)}catch(n){continue}q=[[e[0]],e[1]];if(e[1].length>0&&!u)try{o=d.call(this,e[1])}catch(y){u=true}else u=true;!u&&o[1].length===0&&(u=true);if(!u){e=[];for(u=0;u<c.length;u++)x!=u&&e.push(c[u]);e=b.set(e,d).call(this,o[1]);e[0].length>0&&(q[0]=q[0].concat(e[0]),q[1]=e[1])}q[1].length<w[1].length&&(w=q);if(w[1].length===0)break}if(w[0].length===0)return w;if(f){try{o=f.call(this,w[1])}catch(t){throw new a.Exception(w[1]);
}w[1]=o[1]}return w}},forward:function(a,b){return function(c){return a[b].call(this,c)}},replace:function(a,b){return function(c){c=a.call(this,c);return[b,c[1]]}},process:function(a,b){return function(c){c=a.call(this,c);return[b.call(this,c[0]),c[1]]}},min:function(b,c){return function(d){var f=c.call(this,d);if(f[0].length<b)throw new a.Exception(d);return f}}},c=function(a){return function(){var b=null,c=[];arguments.length>1?b=Array.prototype.slice.call(arguments):arguments[0]instanceof Array&&
(b=arguments[0]);if(b)for(var d=b.shift();0<d.length;)return b.unshift(d[0]),c.push(a.apply(null,b)),b.shift(),c;else return a.apply(null,arguments)}},d="optional not ignore cache".split(/\s/),f=0;f<d.length;f++)b[d[f]]=c(b[d[f]]);c=function(a){return function(){return arguments[0]instanceof Array?a.apply(null,arguments[0]):a.apply(null,arguments)}};d="each any all".split(/\s/);for(f=0;f<d.length;f++)b[d[f]]=c(b[d[f]])})();
(function(){var a=Date,b=a.CultureInfo,c=function(a){for(var b=[],d=0;d<a.length;d++)a[d]instanceof Array?b=b.concat(c(a[d])):a[d]&&b.push(a[d]);return b};a.Grammar={};a.Translator={hour:function(a){return function(){this.hour=Number(a)}},minute:function(a){return function(){this.minute=Number(a)}},second:function(a){return function(){this.second=Number(a)}},meridian:function(a){return function(){this.meridian=a.slice(0,1).toLowerCase()}},timezone:function(a){return function(){var b=a.replace(/[^\d\+\-]/g,
"");b.length?this.timezoneOffset=Number(b):this.timezone=a.toLowerCase()}},day:function(a){var b=a[0];return function(){this.day=Number(b.match(/\d+/)[0])}},month:function(a){return function(){this.month=a.length==3?"jan feb mar apr may jun jul aug sep oct nov dec".indexOf(a)/4:Number(a)-1}},year:function(a){return function(){var c=Number(a);this.year=a.length>2?c:c+(c+2E3<b.twoDigitYearMax?2E3:1900)}},rday:function(a){return function(){switch(a){case "yesterday":this.days=-1;break;case "tomorrow":this.days=
1;break;case "today":this.days=0;break;case "now":this.days=0,this.now=true}}},finishExact:function(b){for(var b=b instanceof Array?b:[b],c=0;c<b.length;c++)b[c]&&b[c].call(this);b=new Date;if((this.hour||this.minute)&&!this.month&&!this.year&&!this.day)this.day=b.getDate();if(!this.year)this.year=b.getFullYear();if(!this.month&&this.month!==0)this.month=b.getMonth();if(!this.day)this.day=1;if(!this.hour)this.hour=0;if(!this.minute)this.minute=0;if(!this.second)this.second=0;if(this.meridian&&this.hour)if(this.meridian==
"p"&&this.hour<12)this.hour+=12;else if(this.meridian=="a"&&this.hour==12)this.hour=0;if(this.day>a.getDaysInMonth(this.year,this.month))throw new RangeError(this.day+" is not a valid value for days.");b=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second);this.timezone?b.set({timezone:this.timezone}):this.timezoneOffset&&b.set({timezoneOffset:this.timezoneOffset});return b},finish:function(b){b=b instanceof Array?c(b):[b];if(b.length===0)return null;for(var d=0;d<b.length;d++)typeof b[d]==
"function"&&b[d].call(this);b=a.today();if(this.now&&!this.unit&&!this.operator)return new Date;else this.now&&(b=new Date);var d=!!(this.days&&this.days!==null||this.orient||this.operator),f,h,k;k=this.orient=="past"||this.operator=="subtract"?-1:1;!this.now&&"hour minute second".indexOf(this.unit)!=-1&&b.setTimeToNow();if((this.month||this.month===0)&&"year day hour minute second".indexOf(this.unit)!=-1)this.value=this.month+1,this.month=null,d=true;if(!d&&this.weekday&&!this.day&&!this.days){f=
Date[this.weekday]();this.day=f.getDate();if(!this.month)this.month=f.getMonth();this.year=f.getFullYear()}if(d&&this.weekday&&this.unit!="month")this.unit="day",f=a.getDayNumberFromName(this.weekday)-b.getDay(),h=7,this.days=f?(f+k*h)%h:k*h;if(this.month&&this.unit=="day"&&this.operator)this.value=this.month+1,this.month=null;if(this.value!=null&&this.month!=null&&this.year!=null)this.day=this.value*1;if(this.month&&!this.day&&this.value&&(b.set({day:this.value*1}),!d))this.day=this.value*1;if(!this.month&&
this.value&&this.unit=="month"&&!this.now)this.month=this.value,d=true;if(d&&(this.month||this.month===0)&&this.unit!="year")this.unit="month",f=this.month-b.getMonth(),h=12,this.months=f?(f+k*h)%h:k*h,this.month=null;if(!this.unit)this.unit="day";if(!this.value&&this.operator&&this.operator!==null&&this[this.unit+"s"]&&this[this.unit+"s"]!==null)this[this.unit+"s"]=this[this.unit+"s"]+(this.operator=="add"?1:-1)+(this.value||0)*k;else if(this[this.unit+"s"]==null||this.operator!=null){if(!this.value)this.value=
1;this[this.unit+"s"]=this.value*k}if(this.meridian&&this.hour)if(this.meridian=="p"&&this.hour<12)this.hour+=12;else if(this.meridian=="a"&&this.hour==12)this.hour=0;if(this.weekday&&!this.day&&!this.days&&(f=Date[this.weekday](),this.day=f.getDate(),f.getMonth()!==b.getMonth()))this.month=f.getMonth();if((this.month||this.month===0)&&!this.day)this.day=1;if(!this.orient&&!this.operator&&this.unit=="week"&&this.value&&!this.day&&!this.month)return Date.today().setWeek(this.value);if(d&&this.timezone&&
this.day&&this.days)this.day=this.days;return d?b.add(this):b.set(this)}};var d=a.Parsing.Operators,f=a.Grammar,j=a.Translator,l;f.datePartDelimiter=d.rtoken(/^([\s\-\.\,\/\x27]+)/);f.timePartDelimiter=d.stoken(":");f.whiteSpace=d.rtoken(/^\s*/);f.generalDelimiter=d.rtoken(/^(([\s\,]|at|@|on)+)/);var h={};f.ctoken=function(a){var c=h[a];if(!c){for(var c=b.regexPatterns,f=a.split(/\s+/),k=[],j=0;j<f.length;j++)k.push(d.replace(d.rtoken(c[f[j]]),f[j]));c=h[a]=d.any.apply(null,k)}return c};f.ctoken2=
function(a){return d.rtoken(b.regexPatterns[a])};f.h=d.cache(d.process(d.rtoken(/^(0[0-9]|1[0-2]|[1-9])/),j.hour));f.hh=d.cache(d.process(d.rtoken(/^(0[0-9]|1[0-2])/),j.hour));f.H=d.cache(d.process(d.rtoken(/^([0-1][0-9]|2[0-3]|[0-9])/),j.hour));f.HH=d.cache(d.process(d.rtoken(/^([0-1][0-9]|2[0-3])/),j.hour));f.m=d.cache(d.process(d.rtoken(/^([0-5][0-9]|[0-9])/),j.minute));f.mm=d.cache(d.process(d.rtoken(/^[0-5][0-9]/),j.minute));f.s=d.cache(d.process(d.rtoken(/^([0-5][0-9]|[0-9])/),j.second));f.ss=
d.cache(d.process(d.rtoken(/^[0-5][0-9]/),j.second));f.hms=d.cache(d.sequence([f.H,f.m,f.s],f.timePartDelimiter));f.t=d.cache(d.process(f.ctoken2("shortMeridian"),j.meridian));f.tt=d.cache(d.process(f.ctoken2("longMeridian"),j.meridian));f.z=d.cache(d.process(d.rtoken(/^((\+|\-)\s*\d\d\d\d)|((\+|\-)\d\d\:?\d\d)/),j.timezone));f.zz=d.cache(d.process(d.rtoken(/^((\+|\-)\s*\d\d\d\d)|((\+|\-)\d\d\:?\d\d)/),j.timezone));f.zzz=d.cache(d.process(f.ctoken2("timezone"),j.timezone));f.timeSuffix=d.each(d.ignore(f.whiteSpace),
d.set([f.tt,f.zzz]));f.time=d.each(d.optional(d.ignore(d.stoken("T"))),f.hms,f.timeSuffix);f.d=d.cache(d.process(d.each(d.rtoken(/^([0-2]\d|3[0-1]|\d)/),d.optional(f.ctoken2("ordinalSuffix"))),j.day));f.dd=d.cache(d.process(d.each(d.rtoken(/^([0-2]\d|3[0-1])/),d.optional(f.ctoken2("ordinalSuffix"))),j.day));f.ddd=f.dddd=d.cache(d.process(f.ctoken("sun mon tue wed thu fri sat"),function(a){return function(){this.weekday=a}}));f.M=d.cache(d.process(d.rtoken(/^(1[0-2]|0\d|\d)/),j.month));f.MM=d.cache(d.process(d.rtoken(/^(1[0-2]|0\d)/),
j.month));f.MMM=f.MMMM=d.cache(d.process(f.ctoken("jan feb mar apr may jun jul aug sep oct nov dec"),j.month));f.y=d.cache(d.process(d.rtoken(/^(\d\d?)/),j.year));f.yy=d.cache(d.process(d.rtoken(/^(\d\d)/),j.year));f.yyy=d.cache(d.process(d.rtoken(/^(\d\d?\d?\d?)/),j.year));f.yyyy=d.cache(d.process(d.rtoken(/^(\d\d\d\d)/),j.year));l=function(){return d.each(d.any.apply(null,arguments),d.not(f.ctoken2("timeContext")))};f.day=l(f.d,f.dd);f.month=l(f.M,f.MMM);f.year=l(f.yyyy,f.yy);f.orientation=d.process(f.ctoken("past future"),
function(a){return function(){this.orient=a}});f.operator=d.process(f.ctoken("add subtract"),function(a){return function(){this.operator=a}});f.rday=d.process(f.ctoken("yesterday tomorrow today now"),j.rday);f.unit=d.process(f.ctoken("second minute hour day week month year"),function(a){return function(){this.unit=a}});f.value=d.process(d.rtoken(/^\d\d?(st|nd|rd|th)?/),function(a){return function(){this.value=a.replace(/\D/g,"")}});f.expression=d.set([f.rday,f.operator,f.value,f.unit,f.orientation,
f.ddd,f.MMM]);l=function(){return d.set(arguments,f.datePartDelimiter)};f.mdy=l(f.ddd,f.month,f.day,f.year);f.ymd=l(f.ddd,f.year,f.month,f.day);f.dmy=l(f.ddd,f.day,f.month,f.year);f.date=function(a){return(f[b.dateElementOrder]||f.mdy).call(this,a)};f.format=d.process(d.many(d.any(d.process(d.rtoken(/^(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?)/),function(b){if(f[b])return f[b];else throw a.Parsing.Exception(b);}),d.process(d.rtoken(/^[^dMyhHmstz]+/),function(a){return d.ignore(d.stoken(a))}))),
function(a){return d.process(d.each.apply(null,a),j.finishExact)});var k={};f.formats=function(a){if(a instanceof Array){for(var b=[],c=0;c<a.length;c++)b.push(k[a[c]]=k[a[c]]||f.format(a[c])[0]);return d.any.apply(null,b)}else return k[a]=k[a]||f.format(a)[0]};f._formats=f.formats('"yyyy-MM-ddTHH:mm:ssZ";yyyy-MM-ddTHH:mm:ssZ;yyyy-MM-ddTHH:mm:ssz;yyyy-MM-ddTHH:mm:ss;yyyy-MM-ddTHH:mmZ;yyyy-MM-ddTHH:mmz;yyyy-MM-ddTHH:mm;ddd, MMM dd, yyyy H:mm:ss tt;ddd MMM d yyyy HH:mm:ss zzz;MMddyyyy;ddMMyyyy;Mddyyyy;ddMyyyy;Mdyyyy;dMyyyy;yyyy;Mdyy;dMyy;d'.split(";"));
f._start=d.process(d.set([f.date,f.time,f.expression],f.generalDelimiter,f.whiteSpace),j.finish);f.start=function(a){try{var b=f._formats.call({},a);if(b[1].length===0)return b}catch(c){}return f._start.call({},a)};a._parse=a.parse;a.parse=function(b){var c=null;if(!b)return null;if(b instanceof Date)return b;try{c=a.Grammar.start.call({},b.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1"))}catch(d){return null}return c[1].length===0?c[0]:null};a.getParseFunction=function(b){var c=a.Grammar.formats(b);return function(a){var b=
null;try{b=c.call({},a)}catch(d){return null}return b[1].length===0?b[0]:null}};a.parseExact=function(b,c){return a.getParseFunction(c)(b)}})();(function(){var a=this,b=a._,c={},d=Array.prototype,f=Object.prototype,j=d.slice,l=d.unshift,h=f.toString,k=f.hasOwnProperty,e=d.forEach,o=d.map,q=d.reduce,w=d.reduceRight,u=d.filter,x=d.every,n=d.some,y=d.indexOf,t=d.lastIndexOf,f=Array.isArray,s=Object.keys,v=Function.prototype.bind,m=function(a){return new J(a)};typeof module!=="undefined"&&module.exports?(module.exports=m,m._=m):a._=m;m.VERSION="1.1.7";var C=m.each=m.forEach=function(a,b,d){if(a!=null)if(e&&a.forEach===e)a.forEach(b,d);else if(a.length===
+a.length)for(var f=0,h=a.length;f<h;f++){if(f in a&&b.call(d,a[f],f,a)===c)break}else for(f in a)if(k.call(a,f)&&b.call(d,a[f],f,a)===c)break};m.map=function(a,b,c){var d=[];if(a==null)return d;if(o&&a.map===o)return a.map(b,c);C(a,function(a,e,f){d[d.length]=b.call(c,a,e,f)});return d};m.reduce=m.foldl=m.inject=function(a,b,c,d){var e=c!==void 0;a==null&&(a=[]);if(q&&a.reduce===q)return d&&(b=m.bind(b,d)),e?a.reduce(b,c):a.reduce(b);C(a,function(a,f,h){e?c=b.call(d,c,a,f,h):(c=a,e=true)});if(!e)throw new TypeError("Reduce of empty array with no initial value");
return c};m.reduceRight=m.foldr=function(a,b,c,d){a==null&&(a=[]);if(w&&a.reduceRight===w)return d&&(b=m.bind(b,d)),c!==void 0?a.reduceRight(b,c):a.reduceRight(b);a=(m.isArray(a)?a.slice():m.toArray(a)).reverse();return m.reduce(a,b,c,d)};m.find=m.detect=function(a,b,c){var d;A(a,function(a,e,f){if(b.call(c,a,e,f))return d=a,true});return d};m.filter=m.select=function(a,b,c){var d=[];if(a==null)return d;if(u&&a.filter===u)return a.filter(b,c);C(a,function(a,e,f){b.call(c,a,e,f)&&(d[d.length]=a)});
return d};m.reject=function(a,b,c){var d=[];if(a==null)return d;C(a,function(a,e,f){b.call(c,a,e,f)||(d[d.length]=a)});return d};m.every=m.all=function(a,b,d){var e=true;if(a==null)return e;if(x&&a.every===x)return a.every(b,d);C(a,function(a,f,h){if(!(e=e&&b.call(d,a,f,h)))return c});return e};var A=m.some=m.any=function(a,b,d){var b=b||m.identity,e=false;if(a==null)return e;if(n&&a.some===n)return a.some(b,d);C(a,function(a,f,h){if(e|=b.call(d,a,f,h))return c});return!!e};m.include=m.contains=function(a,
b){var c=false;if(a==null)return c;if(y&&a.indexOf===y)return a.indexOf(b)!=-1;A(a,function(a){if(c=a===b)return true});return c};m.invoke=function(a,b){var c=j.call(arguments,2);return m.map(a,function(a){return(b.call?b||a:a[b]).apply(a,c)})};m.pluck=function(a,b){return m.map(a,function(a){return a[b]})};m.max=function(a,b,c){if(!b&&m.isArray(a))return Math.max.apply(Math,a);var d={computed:-Infinity};C(a,function(a,e,f){e=b?b.call(c,a,e,f):a;e>=d.computed&&(d={value:a,computed:e})});return d.value};
m.min=function(a,b,c){if(!b&&m.isArray(a))return Math.min.apply(Math,a);var d={computed:Infinity};C(a,function(a,e,f){e=b?b.call(c,a,e,f):a;e<d.computed&&(d={value:a,computed:e})});return d.value};m.sortBy=function(a,b,c){return m.pluck(m.map(a,function(a,d,e){return{value:a,criteria:b.call(c,a,d,e)}}).sort(function(a,b){var c=a.criteria,d=b.criteria;return c<d?-1:c>d?1:0}),"value")};m.groupBy=function(a,b){var c={};C(a,function(a,d){var e=b(a,d);(c[e]||(c[e]=[])).push(a)});return c};m.sortedIndex=
function(a,b,c){c||(c=m.identity);for(var d=0,e=a.length;d<e;){var f=d+e>>1;c(a[f])<c(b)?d=f+1:e=f}return d};m.toArray=function(a){return!a?[]:a.toArray?a.toArray():m.isArray(a)?j.call(a):m.isArguments(a)?j.call(a):m.values(a)};m.size=function(a){return m.toArray(a).length};m.first=m.head=function(a,b,c){return b!=null&&!c?j.call(a,0,b):a[0]};m.rest=m.tail=function(a,b,c){return j.call(a,b==null||c?1:b)};m.last=function(a){return a[a.length-1]};m.compact=function(a){return m.filter(a,function(a){return!!a})};
m.flatten=function(a){return m.reduce(a,function(a,b){if(m.isArray(b))return a.concat(m.flatten(b));a[a.length]=b;return a},[])};m.without=function(a){return m.difference(a,j.call(arguments,1))};m.uniq=m.unique=function(a,b){return m.reduce(a,function(a,c,d){if(0==d||(b===true?m.last(a)!=c:!m.include(a,c)))a[a.length]=c;return a},[])};m.union=function(){return m.uniq(m.flatten(arguments))};m.intersection=m.intersect=function(a){var b=j.call(arguments,1);return m.filter(m.uniq(a),function(a){return m.every(b,
function(b){return m.indexOf(b,a)>=0})})};m.difference=function(a,b){return m.filter(a,function(a){return!m.include(b,a)})};m.zip=function(){for(var a=j.call(arguments),b=m.max(m.pluck(a,"length")),c=Array(b),d=0;d<b;d++)c[d]=m.pluck(a,""+d);return c};m.indexOf=function(a,b,c){if(a==null)return-1;var d;if(c)return c=m.sortedIndex(a,b),a[c]===b?c:-1;if(y&&a.indexOf===y)return a.indexOf(b);c=0;for(d=a.length;c<d;c++)if(a[c]===b)return c;return-1};m.lastIndexOf=function(a,b){if(a==null)return-1;if(t&&
a.lastIndexOf===t)return a.lastIndexOf(b);for(var c=a.length;c--;)if(a[c]===b)return c;return-1};m.range=function(a,b,c){arguments.length<=1&&(b=a||0,a=0);for(var c=arguments[2]||1,d=Math.max(Math.ceil((b-a)/c),0),e=0,f=Array(d);e<d;)f[e++]=a,a+=c;return f};m.bind=function(a,b){if(a.bind===v&&v)return v.apply(a,j.call(arguments,1));var c=j.call(arguments,2);return function(){return a.apply(b,c.concat(j.call(arguments)))}};m.bindAll=function(a){var b=j.call(arguments,1);b.length==0&&(b=m.functions(a));
C(b,function(b){a[b]=m.bind(a[b],a)});return a};m.memoize=function(a,b){var c={};b||(b=m.identity);return function(){var d=b.apply(this,arguments);return k.call(c,d)?c[d]:c[d]=a.apply(this,arguments)}};m.delay=function(a,b){var c=j.call(arguments,2);return setTimeout(function(){return a.apply(a,c)},b)};m.defer=function(a){return m.delay.apply(m,[a,1].concat(j.call(arguments,1)))};var I=function(a,b,c){var d;return function(){var e=this,f=arguments,h=function(){d=null;a.apply(e,f)};c&&clearTimeout(d);
if(c||!d)d=setTimeout(h,b)}};m.throttle=function(a,b){return I(a,b,false)};m.debounce=function(a,b){return I(a,b,true)};m.once=function(a){var b=false,c;return function(){if(b)return c;b=true;return c=a.apply(this,arguments)}};m.wrap=function(a,b){return function(){var c=[a].concat(j.call(arguments));return b.apply(this,c)}};m.compose=function(){var a=j.call(arguments);return function(){for(var b=j.call(arguments),c=a.length-1;c>=0;c--)b=[a[c].apply(this,b)];return b[0]}};m.after=function(a,b){return function(){if(--a<
1)return b.apply(this,arguments)}};m.keys=s||function(a){if(a!==Object(a))throw new TypeError("Invalid object");var b=[],c;for(c in a)k.call(a,c)&&(b[b.length]=c);return b};m.values=function(a){return m.map(a,m.identity)};m.functions=m.methods=function(a){var b=[],c;for(c in a)m.isFunction(a[c])&&b.push(c);return b.sort()};m.extend=function(a){C(j.call(arguments,1),function(b){for(var c in b)b[c]!==void 0&&(a[c]=b[c])});return a};m.defaults=function(a){C(j.call(arguments,1),function(b){for(var c in b)a[c]==
null&&(a[c]=b[c])});return a};m.clone=function(a){return m.isArray(a)?a.slice():m.extend({},a)};m.tap=function(a,b){b(a);return a};m.isEqual=function(a,b){if(a===b)return true;var c=typeof a;if(c!=typeof b)return false;if(a==b)return true;if(!a&&b||a&&!b)return false;if(a._chain)a=a._wrapped;if(b._chain)b=b._wrapped;if(a.isEqual)return a.isEqual(b);if(b.isEqual)return b.isEqual(a);if(m.isDate(a)&&m.isDate(b))return a.getTime()===b.getTime();if(m.isNaN(a)&&m.isNaN(b))return false;if(m.isRegExp(a)&&
m.isRegExp(b))return a.source===b.source&&a.global===b.global&&a.ignoreCase===b.ignoreCase&&a.multiline===b.multiline;if(c!=="object")return false;if(a.length&&a.length!==b.length)return false;var c=m.keys(a),d=m.keys(b);if(c.length!=d.length)return false;for(var e in a)if(!(e in b)||!m.isEqual(a[e],b[e]))return false;return true};m.isEmpty=function(a){if(m.isArray(a)||m.isString(a))return a.length===0;for(var b in a)if(k.call(a,b))return false;return true};m.isElement=function(a){return!!(a&&a.nodeType==
1)};m.isArray=f||function(a){return h.call(a)==="[object Array]"};m.isObject=function(a){return a===Object(a)};m.isArguments=function(a){return!(!a||!k.call(a,"callee"))};m.isFunction=function(a){return!(!a||!a.constructor||!a.call||!a.apply)};m.isString=function(a){return!!(a===""||a&&a.charCodeAt&&a.substr)};m.isNumber=function(a){return!!(a===0||a&&a.toExponential&&a.toFixed)};m.isNaN=function(a){return a!==a};m.isBoolean=function(a){return a===true||a===false};m.isDate=function(a){return!(!a||
!a.getTimezoneOffset||!a.setUTCFullYear)};m.isRegExp=function(a){return!(!a||!a.test||!a.exec||!(a.ignoreCase||a.ignoreCase===false))};m.isNull=function(a){return a===null};m.isUndefined=function(a){return a===void 0};m.noConflict=function(){a._=b;return this};m.identity=function(a){return a};m.times=function(a,b,c){for(var d=0;d<a;d++)b.call(c,d)};m.mixin=function(a){C(m.functions(a),function(b){B(b,m[b]=a[b])})};var G=0;m.uniqueId=function(a){var b=G++;return a?a+b:b};m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,
interpolate:/<%=([\s\S]+?)%>/g};m.template=function(a,b){var c=m.templateSettings,c="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(c.interpolate,function(a,b){return"',"+b.replace(/\\'/g,"'")+",'"}).replace(c.evaluate||null,function(a,b){return"');"+b.replace(/\\'/g,"'").replace(/[\r\n\t]/g," ")+"__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');",c=new Function("obj",
c);return b?c(b):c};var J=function(a){this._wrapped=a};m.prototype=J.prototype;var K=function(a,b){return b?m(a).chain():a},B=function(a,b){J.prototype[a]=function(){var a=j.call(arguments);l.call(a,this._wrapped);return K(b.apply(m,a),this._chain)}};m.mixin(m);C("pop,push,reverse,shift,sort,splice,unshift".split(","),function(a){var b=d[a];J.prototype[a]=function(){b.apply(this._wrapped,arguments);return K(this._wrapped,this._chain)}});C(["concat","join","slice"],function(a){var b=d[a];J.prototype[a]=
function(){return K(b.apply(this._wrapped,arguments),this._chain)}});J.prototype.chain=function(){this._chain=true;return this};J.prototype.value=function(){return this._wrapped}})();(function(a){if(typeof _!="undefined")var b=_().reverse,c=_.include;var d=String.prototype.trim,f=function(a,b){for(var c=[];b>0;c[--b]=a);return c.join("")},j=function(a){return function(){for(var b=Array.prototype.slice.call(arguments),c=0;c<b.length;c++)b[c]=b[c]==null?"":""+b[c];return a.apply(null,b)}},l=function(){function a(b){return Object.prototype.toString.call(b).slice(8,-1).toLowerCase()}var b=function(){b.cache.hasOwnProperty(arguments[0])||(b.cache[arguments[0]]=b.parse(arguments[0]));
return b.format.call(null,b.cache[arguments[0]],arguments)};b.format=function(b,c){var d=1,e=b.length,h="",j=[],y,t,s,v;for(y=0;y<e;y++)if(h=a(b[y]),h==="string")j.push(b[y]);else if(h==="array"){s=b[y];if(s[2]){h=c[d];for(t=0;t<s[2].length;t++){if(!h.hasOwnProperty(s[2][t]))throw l('[_.sprintf] property "%s" does not exist',s[2][t]);h=h[s[2][t]]}}else h=s[1]?c[s[1]]:c[d++];if(/[^s]/.test(s[8])&&a(h)!="number")throw l("[_.sprintf] expecting number but found %s",a(h));switch(s[8]){case "b":h=h.toString(2);
break;case "c":h=String.fromCharCode(h);break;case "d":h=parseInt(h,10);break;case "e":h=s[7]?h.toExponential(s[7]):h.toExponential();break;case "f":h=s[7]?parseFloat(h).toFixed(s[7]):parseFloat(h);break;case "o":h=h.toString(8);break;case "s":h=(h=String(h))&&s[7]?h.substring(0,s[7]):h;break;case "u":h=Math.abs(h);break;case "x":h=h.toString(16);break;case "X":h=h.toString(16).toUpperCase()}h=/[def]/.test(s[8])&&s[3]&&h>=0?"+"+h:h;t=s[4]?s[4]=="0"?"0":s[4].charAt(1):" ";v=s[6]-String(h).length;t=
s[6]?f(t,v):"";j.push(s[5]?h+t:t+h)}return j.join("")};b.cache={};b.parse=function(a){for(var b=[],c=[],d=0;a;){if((b=/^[^\x25]+/.exec(a))!==null)c.push(b[0]);else if((b=/^\x25{2}/.exec(a))!==null)c.push("%");else if((b=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(a))!==null){if(b[2]){d|=1;var e=[],f=b[2],h=[];if((h=/^([a-z_][a-z_\d]*)/i.exec(f))!==null)for(e.push(h[1]);(f=f.substring(h[0].length))!=="";)if((h=/^\.([a-z_][a-z_\d]*)/i.exec(f))!==null)e.push(h[1]);
else if((h=/^\[(\d+)\]/.exec(f))!==null)e.push(h[1]);else throw"[_.sprintf] huh?";else throw"[_.sprintf] huh?";b[2]=e}else d|=2;if(d===3)throw"[_.sprintf] mixing positional and named placeholders is not (yet) supported";c.push(b)}else throw"[_.sprintf] huh?";a=a.substring(b[0].length)}return c};return b}(),h={isBlank:j(function(a){return/^\s*$/.test(a)}),stripTags:j(function(a){return a.replace(/<\/?[^>]+>/ig,"")}),capitalize:j(function(a){return a.charAt(0).toUpperCase()+a.substring(1).toLowerCase()}),
chop:j(function(a,b){for(var b=b*1||a.length,c=[],d=0;d<a.length;)c.push(a.slice(d,d+b)),d+=b;return c}),clean:j(function(a){return h.strip(a.replace(/\s+/g," "))}),count:j(function(a,b){for(var c=0,d,f=0;f<a.length;)d=a.indexOf(b,f),d>=0&&c++,f=f+(d>=0?d:0)+b.length;return c}),chars:j(function(a){return a.split("")}),escapeHTML:j(function(a){return a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}),unescapeHTML:j(function(a){return a.replace(/</g,
"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&")}),escapeRegExp:j(function(a){return a.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")}),insert:j(function(a,b,c){a=a.split("");a.splice(b*1||0,0,c);return a.join("")}),includes:j(function(a,b){return a.indexOf(b)!==-1}),include:function(a,b){return!c||/string|number/.test(typeof a)?this.includes(a,b):c(a,b)},join:j(function(a){var b=Array.prototype.slice.call(arguments);return b.join(b.shift())}),lines:j(function(a){return a.split("\n")}),
reverse:function(a){return!b||/string|number/.test(typeof a)?Array.prototype.reverse.apply(String(a).split("")).join(""):b.call(_(a))},splice:j(function(a,b,c,d){a=a.split("");a.splice(b*1||0,c*1||0,d);return a.join("")}),startsWith:j(function(a,b){return a.length>=b.length&&a.substring(0,b.length)===b}),endsWith:j(function(a,b){return a.length>=b.length&&a.substring(a.length-b.length)===b}),succ:j(function(a){var b=a.split("");b.splice(a.length-1,1,String.fromCharCode(a.charCodeAt(a.length-1)+1));
return b.join("")}),titleize:j(function(a){for(var a=a.split(" "),b,c=0;c<a.length;c++)b=a[c].split(""),typeof b[0]!=="undefined"&&(b[0]=b[0].toUpperCase()),c+1===a.length?a[c]=b.join(""):a[c]=b.join("")+" ";return a.join("")}),camelize:j(function(a){return h.trim(a).replace(/(\-|_|\s)+(.)?/g,function(a,b,c){return c?c.toUpperCase():""})}),underscored:function(a){return h.trim(a).replace(/([a-z\d])([A-Z]+)/g,"$1_$2").replace(/\-|\s+/g,"_").toLowerCase()},dasherize:function(a){return h.trim(a).replace(/([a-z\d])([A-Z]+)/g,
"$1-$2").replace(/^([A-Z]+)/,"-$1").replace(/\_|\s+/g,"-").toLowerCase()},trim:j(function(a,b){if(!b&&d)return d.call(a);b=b?h.escapeRegExp(b):"\\s";return a.replace(RegExp("^["+b+"]+|["+b+"]+$","g"),"")}),ltrim:j(function(a,b){b=b?h.escapeRegExp(b):"\\s";return a.replace(RegExp("^["+b+"]+","g"),"")}),rtrim:j(function(a,b){b=b?h.escapeRegExp(b):"\\s";return a.replace(RegExp("["+b+"]+$","g"),"")}),truncate:j(function(a,b,c){b=b*1||0;return a.length>b?a.slice(0,b)+(c||"..."):a}),words:function(a,b){return String(a).split(b||
" ")},pad:j(function(a,b,c,d){var h="",h=0,b=b*1||0;c?c.length>1&&(c=c.charAt(0)):c=" ";switch(d){case "right":h=b-a.length;h=f(c,h);a+=h;break;case "both":h=b-a.length;h={left:f(c,Math.ceil(h/2)),right:f(c,Math.floor(h/2))};a=h.left+a+h.right;break;default:h=b-a.length,h=f(c,h),a=h+a}return a}),lpad:function(a,b,c){return h.pad(a,b,c)},rpad:function(a,b,c){return h.pad(a,b,c,"right")},lrpad:function(a,b,c){return h.pad(a,b,c,"both")},sprintf:l,vsprintf:function(a,b){b.unshift(a);return l.apply(null,
b)},toNumber:function(a,b){var c;c=(a*1||0).toFixed(b*1||0)*1||0;return!(c===0&&a!=="0"&&a!==0)?c:Number.NaN},strRight:j(function(a,b){var c=!b?-1:a.indexOf(b);return c!=-1?a.slice(c+b.length,a.length):a}),strRightBack:j(function(a,b){var c=!b?-1:a.lastIndexOf(b);return c!=-1?a.slice(c+b.length,a.length):a}),strLeft:j(function(a,b){var c=!b?-1:a.indexOf(b);return c!=-1?a.slice(0,c):a}),strLeftBack:j(function(a,b){var c=a.lastIndexOf(b);return c!=-1?a.slice(0,c):a})};h.strip=h.trim;h.lstrip=h.ltrim;
h.rstrip=h.rtrim;h.center=h.lrpad;h.ljust=h.lpad;h.rjust=h.rpad;typeof module!=="undefined"&&module.exports?module.exports=h:typeof a._!=="undefined"?a._.mixin(h):a._=h})(this||window);(function(){var a=this,b=a.Backbone,c;c=typeof exports!=="undefined"?exports:a.Backbone={};c.VERSION="0.5.3";var d=a._;if(!d&&typeof require!=="undefined")d=require("underscore")._;var f=a.jQuery||a.Zepto;c.noConflict=function(){a.Backbone=b;return this};c.emulateHTTP=false;c.emulateJSON=false;c.Events={bind:function(a,b,c){var d=this._callbacks||(this._callbacks={});(d[a]||(d[a]=[])).push([b,c]);return this},unbind:function(a,b){var c;if(a){if(c=this._callbacks)if(b){c=c[a];if(!c)return this;for(var d=
0,e=c.length;d<e;d++)if(c[d]&&b===c[d][0]){c[d]=null;break}}else c[a]=[]}else this._callbacks={};return this},trigger:function(a){var b,c,d,e,f=2;if(!(c=this._callbacks))return this;for(;f--;)if(b=f?a:"all",b=c[b])for(var h=0,j=b.length;h<j;h++)(d=b[h])?(e=f?Array.prototype.slice.call(arguments,1):arguments,d[0].apply(d[1]||this,e)):(b.splice(h,1),h--,j--);return this}};c.Model=function(a,b){var c;a||(a={});if(c=this.defaults)d.isFunction(c)&&(c=c.call(this)),a=d.extend({},c,a);this.attributes={};
this._escapedAttributes={};this.cid=d.uniqueId("c");this.set(a,{silent:true});this._changed=false;this._previousAttributes=d.clone(this.attributes);if(b&&b.collection)this.collection=b.collection;this.initialize(a,b)};d.extend(c.Model.prototype,c.Events,{_previousAttributes:null,_changed:false,idAttribute:"id",initialize:function(){},toJSON:function(){return d.clone(this.attributes)},get:function(a){return this.attributes[a]},escape:function(a){var b;if(b=this._escapedAttributes[a])return b;b=this.attributes[a];
return this._escapedAttributes[a]=(b==null?"":""+b).replace(/&(?!\w+;|#\d+;|#x[\da-f]+;)/gi,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},has:function(a){return this.attributes[a]!=null},set:function(a,b){b||(b={});if(!a)return this;if(a.attributes)a=a.attributes;var c=this.attributes,e=this._escapedAttributes;if(!b.silent&&this.validate&&!this._performValidation(a,b))return false;if(this.idAttribute in a)this.id=a[this.idAttribute];
var f=this._changing;this._changing=true;for(var h in a){var j=a[h];if(!d.isEqual(c[h],j))c[h]=j,delete e[h],this._changed=true,b.silent||this.trigger("change:"+h,this,j,b)}!f&&!b.silent&&this._changed&&this.change(b);this._changing=false;return this},unset:function(a,b){if(!(a in this.attributes))return this;b||(b={});var c={};c[a]=void 0;if(!b.silent&&this.validate&&!this._performValidation(c,b))return false;delete this.attributes[a];delete this._escapedAttributes[a];a==this.idAttribute&&delete this.id;
this._changed=true;b.silent||(this.trigger("change:"+a,this,void 0,b),this.change(b));return this},clear:function(a){a||(a={});var b,c=this.attributes,d={};for(b in c)d[b]=void 0;if(!a.silent&&this.validate&&!this._performValidation(d,a))return false;this.attributes={};this._escapedAttributes={};this._changed=true;if(!a.silent){for(b in c)this.trigger("change:"+b,this,void 0,a);this.change(a)}return this},fetch:function(a){a||(a={});var b=this,d=a.success;a.success=function(c,e,f){if(!b.set(b.parse(c,
f),a))return false;d&&d(b,c)};a.error=s(a.error,b,a);return(this.sync||c.sync).call(this,"read",this,a)},save:function(a,b){b||(b={});if(a&&!this.set(a,b))return false;var d=this,e=b.success;b.success=function(a,c,f){if(!d.set(d.parse(a,f),b))return false;e&&e(d,a,f)};b.error=s(b.error,d,b);var f=this.isNew()?"create":"update";return(this.sync||c.sync).call(this,f,this,b)},destroy:function(a){a||(a={});if(this.isNew())return this.trigger("destroy",this,this.collection,a);var b=this,d=a.success;a.success=
function(c){b.trigger("destroy",b,b.collection,a);d&&d(b,c)};a.error=s(a.error,b,a);return(this.sync||c.sync).call(this,"delete",this,a)},url:function(){var a=y(this.collection)||this.urlRoot||t();return this.isNew()?a:a+(a.charAt(a.length-1)=="/"?"":"/")+encodeURIComponent(this.id)},parse:function(a){return a},clone:function(){return new this.constructor(this)},isNew:function(){return this.id==null},change:function(a){this.trigger("change",this,a);this._previousAttributes=d.clone(this.attributes);
this._changed=false},hasChanged:function(a){return a?this._previousAttributes[a]!=this.attributes[a]:this._changed},changedAttributes:function(a){a||(a=this.attributes);var b=this._previousAttributes,c=false,e;for(e in a)d.isEqual(b[e],a[e])||(c=c||{},c[e]=a[e]);return c},previous:function(a){return!a||!this._previousAttributes?null:this._previousAttributes[a]},previousAttributes:function(){return d.clone(this._previousAttributes)},_performValidation:function(a,b){var c=this.validate(a);return c?
(b.error?b.error(this,c,b):this.trigger("error",this,c,b),false):true}});c.Collection=function(a,b){b||(b={});if(b.comparator)this.comparator=b.comparator;d.bindAll(this,"_onModelEvent","_removeReference");this._reset();a&&this.reset(a,{silent:true});this.initialize.apply(this,arguments)};d.extend(c.Collection.prototype,c.Events,{model:c.Model,initialize:function(){},toJSON:function(){return this.map(function(a){return a.toJSON()})},add:function(a,b){if(d.isArray(a))for(var c=0,e=a.length;c<e;c++)this._add(a[c],
b);else this._add(a,b);return this},remove:function(a,b){if(d.isArray(a))for(var c=0,e=a.length;c<e;c++)this._remove(a[c],b);else this._remove(a,b);return this},get:function(a){return a==null?null:this._byId[a.id!=null?a.id:a]},getByCid:function(a){return a&&this._byCid[a.cid||a]},at:function(a){return this.models[a]},sort:function(a){a||(a={});if(!this.comparator)throw Error("Cannot sort a set without a comparator");this.models=this.sortBy(this.comparator);a.silent||this.trigger("reset",this,a);
return this},pluck:function(a){return d.map(this.models,function(b){return b.get(a)})},reset:function(a,b){a||(a=[]);b||(b={});this.each(this._removeReference);this._reset();this.add(a,{silent:true});b.silent||this.trigger("reset",this,b);return this},fetch:function(a){a||(a={});var b=this,d=a.success;a.success=function(c,e,f){b[a.add?"add":"reset"](b.parse(c,f),a);d&&d(b,c)};a.error=s(a.error,b,a);return(this.sync||c.sync).call(this,"read",this,a)},create:function(a,b){var c=this;b||(b={});a=this._prepareModel(a,
b);if(!a)return false;var d=b.success;b.success=function(a,e,f){c.add(a,b);d&&d(a,e,f)};a.save(null,b);return a},parse:function(a){return a},chain:function(){return d(this.models).chain()},_reset:function(){this.length=0;this.models=[];this._byId={};this._byCid={}},_prepareModel:function(a,b){if(a instanceof c.Model){if(!a.collection)a.collection=this}else{var d=a,a=new this.model(d,{collection:this});a.validate&&!a._performValidation(d,b)&&(a=false)}return a},_add:function(a,b){b||(b={});a=this._prepareModel(a,
b);if(!a)return false;var c=this.getByCid(a);if(c)throw Error(["Can't add the same model to a set twice",c.id]);this._byId[a.id]=a;this._byCid[a.cid]=a;this.models.splice(b.at!=null?b.at:this.comparator?this.sortedIndex(a,this.comparator):this.length,0,a);a.bind("all",this._onModelEvent);this.length++;b.silent||a.trigger("add",a,this,b);return a},_remove:function(a,b){b||(b={});a=this.getByCid(a)||this.get(a);if(!a)return null;delete this._byId[a.id];delete this._byCid[a.cid];this.models.splice(this.indexOf(a),
1);this.length--;b.silent||a.trigger("remove",a,this,b);this._removeReference(a);return a},_removeReference:function(a){this==a.collection&&delete a.collection;a.unbind("all",this._onModelEvent)},_onModelEvent:function(a,b,c,d){(a=="add"||a=="remove")&&c!=this||(a=="destroy"&&this._remove(b,d),b&&a==="change:"+b.idAttribute&&(delete this._byId[b.previous(b.idAttribute)],this._byId[b.id]=b),this.trigger.apply(this,arguments))}});d.each("forEach,each,map,reduce,reduceRight,find,detect,filter,select,reject,every,all,some,any,include,contains,invoke,max,min,sortBy,sortedIndex,toArray,size,first,rest,last,without,indexOf,lastIndexOf,isEmpty,groupBy".split(","),
function(a){c.Collection.prototype[a]=function(){return d[a].apply(d,[this.models].concat(d.toArray(arguments)))}});c.Router=function(a){a||(a={});if(a.routes)this.routes=a.routes;this._bindRoutes();this.initialize.apply(this,arguments)};var j=/:([\w\d]+)/g,l=/\*([\w\d]+)/g,h=/[-[\]{}()+?.,\\^$|#\s]/g;d.extend(c.Router.prototype,c.Events,{initialize:function(){},route:function(a,b,e){c.history||(c.history=new c.History);d.isRegExp(a)||(a=this._routeToRegExp(a));c.history.route(a,d.bind(function(c){c=
this._extractParameters(a,c);e.apply(this,c);this.trigger.apply(this,["route:"+b].concat(c))},this))},navigate:function(a,b){c.history.navigate(a,b)},_bindRoutes:function(){if(this.routes){var a=[],b;for(b in this.routes)a.unshift([b,this.routes[b]]);b=0;for(var c=a.length;b<c;b++)this.route(a[b][0],a[b][1],this[a[b][1]])}},_routeToRegExp:function(a){a=a.replace(h,"\\$&").replace(j,"([^/]*)").replace(l,"(.*?)");return RegExp("^"+a+"$")},_extractParameters:function(a,b){return a.exec(b).slice(1)}});
c.History=function(){this.handlers=[];d.bindAll(this,"checkUrl")};var k=/^#*/,e=/msie [\w.]+/,o=false;d.extend(c.History.prototype,{interval:50,getFragment:function(a,b){if(a==null)if(this._hasPushState||b){var a=window.location.pathname,c=window.location.search;c&&(a+=c);a.indexOf(this.options.root)==0&&(a=a.substr(this.options.root.length))}else a=window.location.hash;return decodeURIComponent(a.replace(k,""))},start:function(a){if(o)throw Error("Backbone.history has already been started");this.options=
d.extend({},{root:"/"},this.options,a);this._wantsPushState=!!this.options.pushState;this._hasPushState=!(!this.options.pushState||!window.history||!window.history.pushState);var a=this.getFragment(),b=document.documentMode;if(b=e.exec(navigator.userAgent.toLowerCase())&&(!b||b<=7))this.iframe=f('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow,this.navigate(a);this._hasPushState?f(window).bind("popstate",this.checkUrl):"onhashchange"in window&&!b?f(window).bind("hashchange",
this.checkUrl):setInterval(this.checkUrl,this.interval);this.fragment=a;o=true;a=window.location;b=a.pathname==this.options.root;if(this._wantsPushState&&!this._hasPushState&&!b)return this.fragment=this.getFragment(null,true),window.location.replace(this.options.root+"#"+this.fragment),true;else if(this._wantsPushState&&this._hasPushState&&b&&a.hash)this.fragment=a.hash.replace(k,""),window.history.replaceState({},document.title,a.protocol+"//"+a.host+this.options.root+this.fragment);if(!this.options.silent)return this.loadUrl()},
route:function(a,b){this.handlers.unshift({route:a,callback:b})},checkUrl:function(){var a=this.getFragment();a==this.fragment&&this.iframe&&(a=this.getFragment(this.iframe.location.hash));if(a==this.fragment||a==decodeURIComponent(this.fragment))return false;this.iframe&&this.navigate(a);this.loadUrl()||this.loadUrl(window.location.hash)},loadUrl:function(a){var b=this.fragment=this.getFragment(a);return d.any(this.handlers,function(a){if(a.route.test(b))return a.callback(b),true})},navigate:function(a,
b){var c=(a||"").replace(k,"");if(!(this.fragment==c||this.fragment==decodeURIComponent(c))){if(this._hasPushState){var d=window.location;c.indexOf(this.options.root)!=0&&(c=this.options.root+c);this.fragment=c;window.history.pushState({},document.title,d.protocol+"//"+d.host+c)}else if(window.location.hash=this.fragment=c,this.iframe&&c!=this.getFragment(this.iframe.location.hash))this.iframe.document.open().close(),this.iframe.location.hash=c;b&&this.loadUrl(a)}}});c.View=function(a){this.cid=d.uniqueId("view");
this._configure(a||{});this._ensureElement();this.delegateEvents();this.initialize.apply(this,arguments)};var q=/^(\S+)\s*(.*)$/,w="model,collection,el,id,attributes,className,tagName".split(",");d.extend(c.View.prototype,c.Events,{tagName:"div",$:function(a){return f(a,this.el)},initialize:function(){},render:function(){return this},remove:function(){f(this.el).remove();return this},make:function(a,b,c){a=document.createElement(a);b&&f(a).attr(b);c&&f(a).html(c);return a},delegateEvents:function(a){if(a||
(a=this.events))for(var b in d.isFunction(a)&&(a=a.call(this)),f(this.el).unbind(".delegateEvents"+this.cid),a){var c=this[a[b]];if(!c)throw Error('Event "'+a[b]+'" does not exist');var e=b.match(q),h=e[1],e=e[2],c=d.bind(c,this);h+=".delegateEvents"+this.cid;e===""?f(this.el).bind(h,c):f(this.el).delegate(e,h,c)}},_configure:function(a){this.options&&(a=d.extend({},this.options,a));for(var b=0,c=w.length;b<c;b++){var e=w[b];a[e]&&(this[e]=a[e])}this.options=a},_ensureElement:function(){if(this.el){if(d.isString(this.el))this.el=
f(this.el).get(0)}else{var a=this.attributes||{};if(this.id)a.id=this.id;if(this.className)a["class"]=this.className;this.el=this.make(this.tagName,a)}}});c.Model.extend=c.Collection.extend=c.Router.extend=c.View.extend=function(a,b){var c=n(this,a,b);c.extend=this.extend;return c};var u={create:"POST",update:"PUT","delete":"DELETE",read:"GET"};c.sync=function(a,b,e){var h=u[a],e=d.extend({type:h,dataType:"json"},e);if(!e.url)e.url=y(b)||t();if(!e.data&&b&&(a=="create"||a=="update"))e.contentType=
"application/json",e.data=JSON.stringify(b.toJSON());if(c.emulateJSON)e.contentType="application/x-www-form-urlencoded",e.data=e.data?{model:e.data}:{};if(c.emulateHTTP&&(h==="PUT"||h==="DELETE")){if(c.emulateJSON)e.data._method=h;e.type="POST";e.beforeSend=function(a){a.setRequestHeader("X-HTTP-Method-Override",h)}}if(e.type!=="GET"&&!c.emulateJSON)e.processData=false;return f.ajax(e)};var x=function(){},n=function(a,b,c){var e;e=b&&b.hasOwnProperty("constructor")?b.constructor:function(){return a.apply(this,
arguments)};d.extend(e,a);x.prototype=a.prototype;e.prototype=new x;b&&d.extend(e.prototype,b);c&&d.extend(e,c);e.prototype.constructor=e;e.__super__=a.prototype;return e},y=function(a){return!a||!a.url?null:d.isFunction(a.url)?a.url():a.url},t=function(){throw Error('A "url" property or function must be specified');},s=function(a,b,c){return function(d){a?a(b,d,c):b.trigger("error",b,d,c)}}}).call(this);if(typeof jwplayer=="undefined"){var jwplayer=function(a){if(jwplayer.api)return jwplayer.api.selectPlayer(a)},$jw=jwplayer;jwplayer.version="5.7.1896";jwplayer.vid=document.createElement("video");jwplayer.audio=document.createElement("audio");jwplayer.source=document.createElement("source");(function(a){a.utils=function(){};a.utils.typeOf=function(a){var c=typeof a;c==="object"&&(a?a instanceof Array&&(c="array"):c="null");return c};a.utils.extend=function(){var b=a.utils.extend.arguments;if(b.length>
1){for(var c=1;c<b.length;c++)for(var d in b[c])b[0][d]=b[c][d];return b[0]}return null};a.utils.clone=function(){var b,c=a.utils.clone.arguments;if(c.length==1)switch(a.utils.typeOf(c[0])){case "object":b={};for(var d in c[0])b[d]=a.utils.clone(c[0][d]);break;case "array":b=[];for(d in c[0])b[d]=a.utils.clone(c[0][d]);break;default:return c[0]}return b};a.utils.extension=function(a){if(!a)return"";a=a.substring(a.lastIndexOf("/")+1,a.length);a=a.split("?")[0];if(a.lastIndexOf(".")>-1)return a.substr(a.lastIndexOf(".")+
1,a.length).toLowerCase()};a.utils.html=function(a,c){a.innerHTML=c};a.utils.wrap=function(a,c){a.parentNode&&a.parentNode.replaceChild(c,a);c.appendChild(a)};a.utils.ajax=function(a,c,d){var f;f=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");f.onreadystatechange=function(){f.readyState===4&&(f.status===200?c&&c(f):d&&d(a))};try{f.open("GET",a,true),f.send(null)}catch(j){d&&d(a)}return f};a.utils.load=function(a,c,d){a.onreadystatechange=function(){a.readyState===
4&&(a.status===200?c&&c():d&&d())}};a.utils.find=function(a,c){return a.getElementsByTagName(c)};a.utils.append=function(a,c){a.appendChild(c)};a.utils.isIE=function(){return!+"\u000b1"||typeof window.ActiveXObject!="undefined"};a.utils.isLegacyAndroid=function(){return navigator.userAgent.toLowerCase().match(/android 2.[012]/i)!==null};a.utils.isIOS=function(a){typeof a=="undefined"&&(a=/iP(hone|ad|od)/i);return navigator.userAgent.toLowerCase().match(a)!==null};a.utils.isIPad=function(){return a.utils.isIOS(/iPad/i)};
a.utils.isIPod=function(){return a.utils.isIOS(/iP(hone|od)/i)};a.utils.getFirstPlaylistItemFromConfig=function(a){var c={},a=a.playlist&&a.playlist.length?a.playlist[0]:a;c.file=a.file;c.levels=a.levels;c.streamer=a.streamer;c.playlistfile=a.playlistfile;c.provider=a.provider;if(!c.provider){if(c.file&&(c.file.toLowerCase().indexOf("youtube.com")>-1||c.file.toLowerCase().indexOf("youtu.be")>-1))c.provider="youtube";if(c.streamer&&c.streamer.toLowerCase().indexOf("rtmp://")==0)c.provider="rtmp";if(a.type)c.provider=
a.type.toLowerCase()}if(c.provider=="audio")c.provider="sound";return c};a.utils.getOuterHTML=function(a){if(a.outerHTML)return a.outerHTML;else try{return(new XMLSerializer).serializeToString(a)}catch(c){return""}};a.utils.setOuterHTML=function(a,c){if(a.outerHTML)a.outerHTML=c;else{var d=document.createElement("div");d.innerHTML=c;var f=document.createRange();f.selectNodeContents(d);d=f.extractContents();a.parentNode.insertBefore(d,a);a.parentNode.removeChild(a)}};a.utils.hasFlash=function(){if(typeof navigator.plugins!=
"undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined")return true;if(typeof window.ActiveXObject!="undefined")try{return new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),true}catch(a){}return false};a.utils.getPluginName=function(a){a.lastIndexOf("/")>=0&&(a=a.substring(a.lastIndexOf("/")+1,a.length));a.lastIndexOf("-")>=0&&(a=a.substring(0,a.lastIndexOf("-")));a.lastIndexOf(".swf")>=0&&(a=a.substring(0,a.lastIndexOf(".swf")));a.lastIndexOf(".js")>=0&&(a=a.substring(0,a.lastIndexOf(".js")));
return a};a.utils.getPluginVersion=function(a){return a.lastIndexOf("-")>=0?a.lastIndexOf(".js")>=0?a.substring(a.lastIndexOf("-")+1,a.lastIndexOf(".js")):a.lastIndexOf(".swf")>=0?a.substring(a.lastIndexOf("-")+1,a.lastIndexOf(".swf")):a.substring(a.lastIndexOf("-")+1):""};a.utils.getAbsolutePath=function(b,c){if(!a.utils.exists(c))c=document.location.href;if(a.utils.exists(b)){var d;if(a.utils.exists(b)){d=b.indexOf("://");var f=b.indexOf("?");d=d>0&&(f<0||f>d)}else d=void 0;if(d)return b;d=c.substring(0,
c.indexOf("://")+3);var f=c.substring(d.length,c.indexOf("/",d.length+1)),j;b.indexOf("/")===0?j=b.split("/"):(j=c.split("?")[0],j=j.substring(d.length+f.length+1,j.lastIndexOf("/")),j=j.split("/").concat(b.split("/")));for(var l=[],h=0;h<j.length;h++)j[h]&&a.utils.exists(j[h])&&j[h]!="."&&(j[h]==".."?l.pop():l.push(j[h]));return d+f+"/"+l.join("/")}};a.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"};a.utils.getPluginPathType=function(b){if(typeof b=="string"){var b=b.split("?")[0],
c=b.indexOf("://");if(c>0)return a.utils.pluginPathType.ABSOLUTE;var d=b.indexOf("/"),b=a.utils.extension(b);return c<0&&d<0&&(!b||!isNaN(b))?a.utils.pluginPathType.CDN:a.utils.pluginPathType.RELATIVE}};a.utils.mapEmpty=function(a){for(var c in a)return false;return true};a.utils.mapLength=function(a){var c=0,d;for(d in a)c++;return c};a.utils.log=function(a,c){typeof console!="undefined"&&typeof console.log!="undefined"&&(c?console.log(a,c):console.log(a))};a.utils.css=function(b,c){if(a.utils.exists(b))for(var d in c)try{if(typeof c[d]!==
"undefined"){if(typeof c[d]=="number"&&!(d=="zIndex"||d=="opacity")){if(isNaN(c[d]))continue;c[d]=d.match(/color/i)?"#"+a.utils.strings.pad(c[d].toString(16),6):Math.ceil(c[d])+"px"}b.style[d]=c[d]}}catch(f){}};a.utils.isYouTube=function(a){return a.indexOf("youtube.com")>-1||a.indexOf("youtu.be")>-1};a.utils.transform=function(a,c){a.style.webkitTransform=c;a.style.MozTransform=c;a.style.OTransform=c};a.utils.stretch=function(b,c,d,f,j,l){if(!(typeof d=="undefined"||typeof f=="undefined"||typeof j==
"undefined"||typeof l=="undefined")){var h=d/j,k=f/l;c.style.overflow="hidden";a.utils.transform(c,"");var e={};switch(b.toUpperCase()){case a.utils.stretching.NONE:e.width=j;e.height=l;break;case a.utils.stretching.UNIFORM:h>k?(e.width=j*k,e.height=l*k):(e.width=j*h,e.height=l*h);break;case a.utils.stretching.FILL:h>k?(e.width=j*h,e.height=l*h):(e.width=j*k,e.height=l*k);break;case a.utils.stretching.EXACTFIT:a.utils.transform(c,["scale(",h,",",k,") translate(0px,0px)"].join("")),e.width=j,e.height=
l}e.top=(f-e.height)/2;e.left=(d-e.width)/2;a.utils.css(c,e)}};a.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"};a.utils.deepReplaceKeyName=function(b,c,d){switch(a.utils.typeOf(b)){case "array":for(var f=0;f<b.length;f++)b[f]=a.utils.deepReplaceKeyName(b[f],c,d);break;case "object":for(f in b){var j=f.replace(RegExp(c,"g"),d);b[j]=a.utils.deepReplaceKeyName(b[f],c,d);f!=j&&delete b[f]}}return b};a.utils.isInArray=function(a,c){if(!a||!(a instanceof Array))return false;
for(var d=0;d<a.length;d++)if(c===a[d])return true;return false};a.utils.exists=function(a){switch(typeof a){case "string":return a.length>0;case "object":return a!==null;case "undefined":return false}return true};a.utils.empty=function(a){if(typeof a.hasChildNodes=="function")for(;a.hasChildNodes();)a.removeChild(a.firstChild)};a.utils.parseDimension=function(a){if(typeof a=="string")if(a==="")return 0;else if(!(a.lastIndexOf("%")>-1))return parseInt(a.replace("px",""),10);return a};a.utils.getDimensions=
function(b){return b&&b.style?{x:a.utils.parseDimension(b.style.left),y:a.utils.parseDimension(b.style.top),width:a.utils.parseDimension(b.style.width),height:a.utils.parseDimension(b.style.height)}:{}};a.utils.timeFormat=function(a){str="00:00";a>0&&(str=Math.floor(a/60)<10?"0"+Math.floor(a/60)+":":Math.floor(a/60)+":",str+=Math.floor(a%60)<10?"0"+Math.floor(a%60):Math.floor(a%60));return str}})(jwplayer);(function(a){a.events=function(){};a.events.COMPLETE="COMPLETE";a.events.ERROR="ERROR"})(jwplayer);
(function(a){a.events.eventdispatcher=function(b){var c,d;this.resetEventListeners=function(){c={};d=[]};this.resetEventListeners();this.addEventListener=function(b,d,l){try{a.utils.exists(c[b])||(c[b]=[]),typeof d=="string"&&eval("listener = "+d),c[b].push({listener:d,count:l})}catch(h){a.utils.log("error",h)}return false};this.removeEventListener=function(b,d){if(c[b]){try{for(var l=0;l<c[b].length;l++)if(c[b][l].listener.toString()==d.toString()){c[b].splice(l,1);break}}catch(h){a.utils.log("error",
h)}return false}};this.addGlobalListener=function(b,c){try{typeof b=="string"&&eval("listener = "+b),d.push({listener:b,count:c})}catch(l){a.utils.log("error",l)}return false};this.removeGlobalListener=function(b){if(d[type]){try{for(var c=0;c<d.length;c++)if(d[c].listener.toString()==b.toString()){d.splice(c,1);break}}catch(l){a.utils.log("error",l)}return false}};this.sendEvent=function(f,j){a.utils.exists(j)||(j={});b&&a.utils.log(f,j);if(typeof c[f]!="undefined")for(var l=0;l<c[f].length;l++){try{c[f][l].listener(j)}catch(h){a.utils.log("There was an error while handling a listener: "+
h.toString(),c[f][l].listener)}c[f][l]&&(c[f][l].count===1?delete c[f][l]:c[f][l].count>0&&(c[f][l].count-=1))}for(l=0;l<d.length;l++){try{d[l].listener(j)}catch(k){a.utils.log("There was an error while handling a listener: "+k.toString(),d[l].listener)}d[l]&&(d[l].count===1?delete d[l]:d[l].count>0&&(d[l].count-=1))}}}})(jwplayer);(function(a){var b={};a.utils.animations=function(){};a.utils.animations.transform=function(a,b){a.style.webkitTransform=b;a.style.MozTransform=b;a.style.OTransform=b;
a.style.msTransform=b};a.utils.animations.transformOrigin=function(a,b){a.style.webkitTransformOrigin=b;a.style.MozTransformOrigin=b;a.style.OTransformOrigin=b;a.style.msTransformOrigin=b};a.utils.animations.rotate=function(b,d){a.utils.animations.transform(b,["rotate(",d,"deg)"].join(""))};a.utils.cancelAnimation=function(a){delete b[a.id]};a.utils.fadeTo=function(c,d,f,j,l,h){if(!(b[c.id]!=h&&a.utils.exists(h))&&c.style.opacity!=d){var k=(new Date).getTime();h>k&&setTimeout(function(){a.utils.fadeTo(c,
d,f,j,0,h)},h-k);if(c.style.display=="none")c.style.display="block";a.utils.exists(j)||(j=c.style.opacity===""?1:c.style.opacity);if(c.style.opacity==d&&c.style.opacity!==""&&a.utils.exists(h)){if(d===0)c.style.display="none"}else a.utils.exists(h)||(h=k,b[c.id]=h),a.utils.exists(l)||(l=0),k=f>0?(k-h)/(f*1E3):0,k=j+(k>1?1:k)*(d-j),k>1?k=1:k<0&&(k=0),c.style.opacity=k,l>0?(b[c.id]=h+l*1E3,a.utils.fadeTo(c,d,f,j,0,b[c.id])):setTimeout(function(){a.utils.fadeTo(c,d,f,j,0,h)},10)}}})(jwplayer);(function(a){a.utils.arrays=
function(){};a.utils.arrays.indexOf=function(a,c){for(var d=0;d<a.length;d++)if(a[d]==c)return d;return-1};a.utils.arrays.remove=function(b,c){var d=a.utils.arrays.indexOf(b,c);d>-1&&b.splice(d,1)}})(jwplayer);(function(a){a.utils.extensionmap={"3gp":{html5:"video/3gpp",flash:"video"},"3gpp":{html5:"video/3gpp"},"3g2":{html5:"video/3gpp2",flash:"video"},"3gpp2":{html5:"video/3gpp2"},flv:{flash:"video"},f4a:{html5:"audio/mp4"},f4b:{html5:"audio/mp4",flash:"video"},f4v:{html5:"video/mp4",flash:"video"},
mov:{html5:"video/quicktime",flash:"video"},m4a:{html5:"audio/mp4",flash:"video"},m4b:{html5:"audio/mp4"},m4p:{html5:"audio/mp4"},m4v:{html5:"video/mp4",flash:"video"},mp4:{html5:"video/mp4",flash:"video"},rbs:{flash:"sound"},aac:{html5:"audio/aac",flash:"video"},mp3:{html5:"audio/mp3",flash:"sound"},ogg:{html5:"audio/ogg"},oga:{html5:"audio/ogg"},ogv:{html5:"video/ogg"},webm:{html5:"video/webm"},m3u8:{html5:"audio/x-mpegurl"},gif:{flash:"image"},jpeg:{flash:"image"},jpg:{flash:"image"},swf:{flash:"image"},
png:{flash:"image"},wav:{html5:"audio/x-wav"}}})(jwplayer);(function(a){function b(b,c){a.utils.exists(c)?a.utils.extend(c,j[b]):c=j[b];return c}function c(c,d){if(l[c.tagName.toLowerCase()]&&!a.utils.exists(d))return l[c.tagName.toLowerCase()](c);else{var d=b("element",d),e={},f;for(f in d)if(f!="length"){var j=c.getAttribute(f);a.utils.exists(j)&&(e[d[f]]=j)}if((f=c.style["#background-color"])&&!(f=="transparent"||f=="rgba(0, 0, 0, 0)"))e.screencolor=f;return e}}function d(d,j){var j=b("media",
j),e=[],l=a.utils.selectors("source",d),q;for(q in l)isNaN(q)||e.push(f(l[q]));l=c(d,j);a.utils.exists(l.file)&&(e[0]={file:l.file});l.levels=e;return l}function f(a,d){var d=b("source",d),e=c(a,d);e.width=e.width?e.width:0;e.bitrate=e.bitrate?e.bitrate:0;return e}a.utils.mediaparser=function(){};var j={element:{width:"width",height:"height",id:"id","class":"className",name:"name"},media:{src:"file",preload:"preload",autoplay:"autostart",loop:"repeat",controls:"controls"},source:{src:"file",type:"type",
media:"media","data-jw-width":"width","data-jw-bitrate":"bitrate"},video:{poster:"image"}},l={};a.utils.mediaparser.parseMedia=function(a){return c(a)};l.media=d;l.audio=d;l.source=f;l.video=function(a,c){c=b("video",c);return d(a,c)}})(jwplayer);(function(a){a.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"};a.utils.scriptloader=function(b){var c=a.utils.loaderstatus.NEW,d=new a.events.eventdispatcher;a.utils.extend(this,d);this.load=function(){if(c==a.utils.loaderstatus.NEW){c=
a.utils.loaderstatus.LOADING;var f=document.createElement("script");f.onload=function(){c=a.utils.loaderstatus.COMPLETE;d.sendEvent(a.events.COMPLETE)};f.onerror=function(){c=a.utils.loaderstatus.ERROR;d.sendEvent(a.events.ERROR)};f.onreadystatechange=function(){if(f.readyState=="loaded"||f.readyState=="complete")c=a.utils.loaderstatus.COMPLETE,d.sendEvent(a.events.COMPLETE)};document.getElementsByTagName("head")[0].appendChild(f);f.src=b}};this.getStatus=function(){return c}}})(jwplayer);(function(a){a.utils.selectors=
function(b,c){a.utils.exists(c)||(c=document);var b=a.utils.strings.trim(b),d=b.charAt(0);return d=="#"?c.getElementById(b.substr(1)):d=="."?c.getElementsByClassName?c.getElementsByClassName(b.substr(1)):a.utils.selectors.getElementsByTagAndClass("*",b.substr(1)):b.indexOf(".")>0?(d=b.split("."),a.utils.selectors.getElementsByTagAndClass(d[0],d[1])):c.getElementsByTagName(b)};a.utils.selectors.getElementsByTagAndClass=function(b,c,d){var f=[];a.utils.exists(d)||(d=document);b=d.getElementsByTagName(b);
for(d=0;d<b.length;d++)if(a.utils.exists(b[d].className))for(var j=b[d].className.split(" "),l=0;l<j.length;l++)j[l]==c&&f.push(b[d]);return f}})(jwplayer);(function(a){a.utils.strings=function(){};a.utils.strings.trim=function(a){return a.replace(/^\s*/,"").replace(/\s*$/,"")};a.utils.strings.pad=function(a,c,d){for(d||(d="0");a.length<c;)a=d+a;return a};a.utils.strings.serialize=function(a){return a==null?null:a=="true"?true:a=="false"?false:isNaN(Number(a))||a.length>5||a.length==0?a:Number(a)};
a.utils.strings.seconds=function(a){var a=a.replace(",","."),c=a.split(":"),d=0;a.substr(-1)=="s"?d=Number(a.substr(0,a.length-1)):a.substr(-1)=="m"?d=Number(a.substr(0,a.length-1))*60:a.substr(-1)=="h"?d=Number(a.substr(0,a.length-1))*3600:c.length>1?(d=Number(c[c.length-1]),d+=Number(c[c.length-2])*60,c.length==3&&(d+=Number(c[c.length-3])*3600)):d=Number(a);return d};a.utils.strings.xmlAttribute=function(a,c){for(var d=0;d<a.attributes.length;d++)if(a.attributes[d].name&&a.attributes[d].name.toLowerCase()==
c.toLowerCase())return a.attributes[d].value.toString();return""};a.utils.strings.jsonToString=function(b){var c=c||{};if(c&&c.stringify)return c.stringify(b);c=typeof b;if(c!="object"||b===null){if(c!="string")return String(b)}else{var c=[],d=b&&b.constructor==Array,f;for(f in b){var j=b[f];switch(typeof j){case "string":j='"'+j+'"';break;case "object":a.utils.exists(j)&&(j=a.utils.strings.jsonToString(j))}d?typeof j!="function"&&c.push(String(j)):typeof j!="function"&&c.push('"'+f+'":'+String(j))}return d?
"["+String(c)+"]":"{"+String(c)+"}"}}})(jwplayer);(function(a){function b(a){if(["true","false","t","f"].toString().indexOf(a.toLowerCase().replace(" ",""))>=0)return"boolean";else if(f.test(a))return"color";else if(!isNaN(parseInt(a,10))&&parseInt(a,10).toString().length==a.length)return"integer";else if(!isNaN(parseFloat(a))&&parseFloat(a).toString().length==a.length)return"float";return"string"}function c(b,c){if(!a.utils.exists(c))return b;switch(c){case "color":return b.length>0?d(b):null;case "integer":return parseInt(b,
10);case "float":return parseFloat(b);case "boolean":if(b.toLowerCase()=="true")return true;else if(b=="1")return true;return false}return b}function d(a){switch(a.toLowerCase()){case "blue":return 255;case "green":return 65280;case "red":return 16711680;case "cyan":return 65535;case "magenta":return 16711935;case "yellow":return 16776960;case "black":return 0;case "white":return 16777215;default:return a=a.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2"),a.length==3&&(a=a.charAt(0)+a.charAt(0)+a.charAt(1)+
a.charAt(1)+a.charAt(2)+a.charAt(2)),parseInt(a,16)}}var f=RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);a.utils.typechecker=function(d,f){f=!a.utils.exists(f)?b(d):f;return c(d,f)}})(jwplayer);(function(a){a.utils.parsers=function(){};a.utils.parsers.localName=function(a){return a?a.localName?a.localName:a.baseName?a.baseName:"":""};a.utils.parsers.textContent=function(a){return a?a.textContent?a.textContent:a.text?a.text:"":""}})(jwplayer);(function(a){a.utils.parsers.jwparser=function(){};a.utils.parsers.jwparser.PREFIX=
"jwplayer";a.utils.parsers.jwparser.parseEntry=function(b,c){for(var d=0;d<b.childNodes.length;d++)if(b.childNodes[d].prefix==a.utils.parsers.jwparser.PREFIX&&(c[a.utils.parsers.localName(b.childNodes[d])]=a.utils.strings.serialize(a.utils.parsers.textContent(b.childNodes[d]))),!c.file&&String(c.link).toLowerCase().indexOf("youtube")>-1)c.file=c.link;return c};a.utils.parsers.jwparser.getProvider=function(b){if(b.type)return b.type;else if(b.file.indexOf("youtube.com/w")>-1||b.file.indexOf("youtube.com/v")>
-1||b.file.indexOf("youtu.be/")>-1)return"youtube";else if(b.streamer&&b.streamer.indexOf("rtmp")==0)return"rtmp";else if(b.streamer&&b.streamer.indexOf("http")==0)return"http";else if(b=a.utils.strings.extension(b.file),extensions.hasOwnProperty(b))return extensions[b];return""}})(jwplayer);(function(a){a.utils.parsers.mediaparser=function(){};a.utils.parsers.mediaparser.PREFIX="media";a.utils.parsers.mediaparser.parseGroup=function(b,c){for(var d=false,f=0;f<b.childNodes.length;f++)if(b.childNodes[f].prefix==
a.utils.parsers.mediaparser.PREFIX&&a.utils.parsers.localName(b.childNodes[f]))switch(a.utils.parsers.localName(b.childNodes[f]).toLowerCase()){case "content":if(!d)c.file=a.utils.strings.xmlAttribute(b.childNodes[f],"url");if(a.utils.strings.xmlAttribute(b.childNodes[f],"duration"))c.duration=a.utils.strings.seconds(a.utils.strings.xmlAttribute(b.childNodes[f],"duration"));if(a.utils.strings.xmlAttribute(b.childNodes[f],"start"))c.start=a.utils.strings.seconds(a.utils.strings.xmlAttribute(b.childNodes[f],
"start"));b.childNodes[f].childNodes&&b.childNodes[f].childNodes.length>0&&(c=a.utils.parsers.mediaparser.parseGroup(b.childNodes[f],c));if(a.utils.strings.xmlAttribute(b.childNodes[f],"width")||a.utils.strings.xmlAttribute(b.childNodes[f],"bitrate")||a.utils.strings.xmlAttribute(b.childNodes[f],"url")){if(!c.levels)c.levels=[];c.levels.push({width:a.utils.strings.xmlAttribute(b.childNodes[f],"width"),bitrate:a.utils.strings.xmlAttribute(b.childNodes[f],"bitrate"),file:a.utils.strings.xmlAttribute(b.childNodes[f],
"url")})}break;case "title":c.title=a.utils.parsers.textContent(b.childNodes[f]);break;case "description":c.description=a.utils.parsers.textContent(b.childNodes[f]);break;case "keywords":c.tags=a.utils.parsers.textContent(b.childNodes[f]);break;case "thumbnail":c.image=a.utils.strings.xmlAttribute(b.childNodes[f],"url");break;case "credit":c.author=a.utils.parsers.textContent(b.childNodes[f]);break;case "player":var j=b.childNodes[f].url;if(j.indexOf("youtube.com")>=0||j.indexOf("youtu.be")>=0)d=
true,c.file=a.utils.strings.xmlAttribute(b.childNodes[f],"url");break;case "group":a.utils.parsers.mediaparser.parseGroup(b.childNodes[f],c)}return c}})(jwplayer);(function(a){function b(b){for(var d={},f=0;f<b.childNodes.length;f++)if(a.utils.parsers.localName(b.childNodes[f]))switch(a.utils.parsers.localName(b.childNodes[f]).toLowerCase()){case "enclosure":d.file=a.utils.strings.xmlAttribute(b.childNodes[f],"url");break;case "title":d.title=a.utils.parsers.textContent(b.childNodes[f]);break;case "pubdate":d.date=
a.utils.parsers.textContent(b.childNodes[f]);break;case "description":d.description=a.utils.parsers.textContent(b.childNodes[f]);break;case "link":d.link=a.utils.parsers.textContent(b.childNodes[f]);break;case "category":d.tags?d.tags+=a.utils.parsers.textContent(b.childNodes[f]):d.tags=a.utils.parsers.textContent(b.childNodes[f])}d=a.utils.parsers.mediaparser.parseGroup(b,d);d=a.utils.parsers.jwparser.parseEntry(b,d);return new a.html5.playlistitem(d)}a.utils.parsers.rssparser=function(){};a.utils.parsers.rssparser.parse=
function(c){for(var d=[],f=0;f<c.childNodes.length;f++)if(a.utils.parsers.localName(c.childNodes[f]).toLowerCase()=="channel")for(var j=0;j<c.childNodes[f].childNodes.length;j++)a.utils.parsers.localName(c.childNodes[f].childNodes[j]).toLowerCase()=="item"&&d.push(b(c.childNodes[f].childNodes[j]));return d}})(jwplayer);(function(a){var b={},c={};a.plugins=function(){};a.plugins.loadPlugins=function(d,f){c[d]=new a.plugins.pluginloader(new a.plugins.model(b),f);return c[d]};a.plugins.registerPlugin=
function(d,f,j){var l=a.utils.getPluginName(d);if(b[l])b[l].registerPlugin(d,f,j);else{a.utils.log("A plugin ("+d+") was registered with the player that was not loaded. Please check your configuration.");for(var h in c)c[h].pluginFailed()}}})(jwplayer);(function(a){a.plugins.model=function(b){this.addPlugin=function(c){var d=a.utils.getPluginName(c);b[d]||(b[d]=new a.plugins.plugin(c));return b[d]}}})(jwplayer);(function(a){a.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"};
a.plugins.plugin=function(b){function c(){switch(a.utils.getPluginPathType(b)){case a.utils.pluginPathType.ABSOLUTE:return b;case a.utils.pluginPathType.RELATIVE:return a.utils.getAbsolutePath(b,window.location.href);case a.utils.pluginPathType.CDN:var c=a.utils.getPluginName(b),d=a.utils.getPluginVersion(b);return j+"/"+a.version.split(".")[0]+"/"+c+"/"+c+(d!==""?"-"+d:"")+".js"}}function d(){e=setTimeout(function(){l=a.utils.loaderstatus.COMPLETE;o.sendEvent(a.events.COMPLETE)},1E3)}function f(){l=
a.utils.loaderstatus.ERROR;o.sendEvent(a.events.ERROR)}var j="http://plugins.longtailvideo.com",l=a.utils.loaderstatus.NEW,h,k,e,o=new a.events.eventdispatcher;a.utils.extend(this,o);this.load=function(){if(l==a.utils.loaderstatus.NEW)if(b.lastIndexOf(".swf")>0)h=b,l=a.utils.loaderstatus.COMPLETE,o.sendEvent(a.events.COMPLETE);else{l=a.utils.loaderstatus.LOADING;var e=new a.utils.scriptloader(c());e.addEventListener(a.events.COMPLETE,d);e.addEventListener(a.events.ERROR,f);e.load()}};this.registerPlugin=
function(b,c,d){e&&(clearTimeout(e),e=void 0);c&&d?(h=d,k=c):typeof c=="string"?h=c:typeof c=="function"?k=c:!c&&!d&&(h=b);l=a.utils.loaderstatus.COMPLETE;o.sendEvent(a.events.COMPLETE)};this.getStatus=function(){return l};this.getPluginName=function(){return a.utils.getPluginName(b)};this.getFlashPath=function(){if(h)switch(a.utils.getPluginPathType(h)){case a.utils.pluginPathType.ABSOLUTE:return h;case a.utils.pluginPathType.RELATIVE:return b.lastIndexOf(".swf")>0?a.utils.getAbsolutePath(h,window.location.href):
a.utils.getAbsolutePath(h,c());case a.utils.pluginPathType.CDN:return h.indexOf("-")>-1?h+"h":h+"-h"}return null};this.getJS=function(){return k};this.getPluginmode=function(){if(typeof h!="undefined"&&typeof k!="undefined")return a.plugins.pluginmodes.HYBRID;else if(typeof h!="undefined")return a.plugins.pluginmodes.FLASH;else if(typeof k!="undefined")return a.plugins.pluginmodes.JAVASCRIPT};this.getNewInstance=function(a,b,c){return new k(a,b,c)};this.getURL=function(){return b}}})(jwplayer);(function(a){a.plugins.pluginloader=
function(b,c){function d(){if(!h)h=true,l=a.utils.loaderstatus.COMPLETE,k.sendEvent(a.events.COMPLETE)}function f(){if(!h){var b=0;for(plugin in j){var c=j[plugin].getStatus();(c==a.utils.loaderstatus.LOADING||c==a.utils.loaderstatus.NEW)&&b++}b==0&&d()}}var j={},l=a.utils.loaderstatus.NEW,h=false,k=new a.events.eventdispatcher;a.utils.extend(this,k);this.setupPlugins=function(a,b,c){var d={length:0,plugins:{}},f=0,h={},k;for(k in j){var l=j[k].getPluginName();if(j[k].getFlashPath())d.plugins[j[k].getFlashPath()]=
b.plugins[k],d.plugins[j[k].getFlashPath()].pluginmode=j[k].getPluginmode(),d.length++;if(j[k].getJS()){var t=document.createElement("div");t.id=a.id+"_"+l;t.style.position="absolute";t.style.zIndex=f+10;h[l]=j[k].getNewInstance(a,b.plugins[k],t);f++;typeof h[l].resize!="undefined"&&(a.onReady(c(h[l],t,true)),a.onResize(c(h[l],t)))}}a.plugins=h;return d};this.load=function(){l=a.utils.loaderstatus.LOADING;for(var d in c)a.utils.exists(d)&&(j[d]=b.addPlugin(d),j[d].addEventListener(a.events.COMPLETE,
f),j[d].addEventListener(a.events.ERROR,f));for(d in j)j[d].load();f()};this.pluginFailed=function(){d()};this.getStatus=function(){return l}}})(jwplayer);(function(a){var b=[];a.api=function(b){function d(a,b){return function(c,d,f,h){if(a.renderingMode=="flash"||a.renderingMode=="html5"){var j;d?(x[c]=d,j="jwplayer('"+a.id+"').callback('"+c+"')"):!d&&x[c]&&delete x[c];e.jwDockSetButton(c,j,f,h)}return b}}function f(a){return function(b){var c=b.newstate,b=b.oldstate;if(c==a){var d=h[c];if(d)for(var e=
0;e<d.length;e++)typeof d[e]=="function"&&d[e].call(this,{oldstate:b,newstate:c})}}}function j(a,b){return function(c){if(a==c.component){var d=k[a][b];if(d)for(var e=0;e<d.length;e++)typeof d[e]=="function"&&d[e].call(this,c)}}}this.container=b;this.id=b.id;var l={},h={},k={},e=void 0,o=false,q=[],w=a.utils.getOuterHTML(b),u={},x={};this.getBuffer=function(){return this.callInternal("jwGetBuffer")};this.getContainer=function(){return this.container};this.getPlugin=function(b){var c=this,e={};return b==
"dock"?a.utils.extend(e,{setButton:d(c,e),show:function(){c.callInternal("jwDockShow");return e},hide:function(){c.callInternal("jwDockHide");return e},onShow:function(b){c.componentListener("dock",a.api.events.JWPLAYER_COMPONENT_SHOW,b);return e},onHide:function(b){c.componentListener("dock",a.api.events.JWPLAYER_COMPONENT_HIDE,b);return e}}):b=="controlbar"?a.utils.extend(e,{show:function(){c.callInternal("jwControlbarShow");return e},hide:function(){c.callInternal("jwControlbarHide");return e},
onShow:function(b){c.componentListener("controlbar",a.api.events.JWPLAYER_COMPONENT_SHOW,b);return e},onHide:function(b){c.componentListener("controlbar",a.api.events.JWPLAYER_COMPONENT_HIDE,b);return e}}):b=="display"?a.utils.extend(e,{show:function(){c.callInternal("jwDisplayShow");return e},hide:function(){c.callInternal("jwDisplayHide");return e},onShow:function(b){c.componentListener("display",a.api.events.JWPLAYER_COMPONENT_SHOW,b);return e},onHide:function(b){c.componentListener("display",
a.api.events.JWPLAYER_COMPONENT_HIDE,b);return e}}):this.plugins[b]};this.callback=function(a){if(x[a])return x[a]()};this.getDuration=function(){return this.callInternal("jwGetDuration")};this.getFullscreen=function(){return this.callInternal("jwGetFullscreen")};this.getHeight=function(){return this.callInternal("jwGetHeight")};this.getLockState=function(){return this.callInternal("jwGetLockState")};this.getMeta=function(){return this.getItemMeta()};this.getMute=function(){return this.callInternal("jwGetMute")};
this.getPlaylist=function(){var b=this.callInternal("jwGetPlaylist");this.renderingMode=="flash"&&a.utils.deepReplaceKeyName(b,"__dot__",".");for(var c=0;c<b.length;c++)if(!a.utils.exists(b[c].index))b[c].index=c;return b};this.getPlaylistItem=function(b){a.utils.exists(b)||(b=this.getCurrentItem());return this.getPlaylist()[b]};this.getPosition=function(){return this.callInternal("jwGetPosition")};this.getRenderingMode=function(){return this.renderingMode};this.getState=function(){return this.callInternal("jwGetState")};
this.getVolume=function(){return this.callInternal("jwGetVolume")};this.getWidth=function(){return this.callInternal("jwGetWidth")};this.setFullscreen=function(b){a.utils.exists(b)?this.callInternal("jwSetFullscreen",b):this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen"));return this};this.setMute=function(b){a.utils.exists(b)?this.callInternal("jwSetMute",b):this.callInternal("jwSetMute",!this.callInternal("jwGetMute"));return this};this.lock=function(){return this};this.unlock=
function(){return this};this.load=function(a){this.callInternal("jwLoad",a);return this};this.playlistItem=function(a){this.callInternal("jwPlaylistItem",a);return this};this.playlistPrev=function(){this.callInternal("jwPlaylistPrev");return this};this.playlistNext=function(){this.callInternal("jwPlaylistNext");return this};this.resize=function(a,b){this.renderingMode=="html5"?e.jwResize(a,b):(this.container.width=a,this.container.height=b);return this};this.play=function(b){typeof b=="undefined"?
(b=this.getState(),b==a.api.events.state.PLAYING||b==a.api.events.state.BUFFERING?this.callInternal("jwPause"):this.callInternal("jwPlay")):this.callInternal("jwPlay",b);return this};this.pause=function(b){typeof b=="undefined"?(b=this.getState(),b==a.api.events.state.PLAYING||b==a.api.events.state.BUFFERING?this.callInternal("jwPause"):this.callInternal("jwPlay")):this.callInternal("jwPause",b);return this};this.stop=function(){this.callInternal("jwStop");return this};this.seek=function(a){this.callInternal("jwSeek",
a);return this};this.setVolume=function(a){this.callInternal("jwSetVolume",a);return this};this.onBufferChange=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_BUFFER,b)};this.onBufferFull=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL,b)};this.onError=function(b){return this.eventListener(a.api.events.JWPLAYER_ERROR,b)};this.onFullscreen=function(b){return this.eventListener(a.api.events.JWPLAYER_FULLSCREEN,b)};this.onMeta=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_META,
b)};this.onMute=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_MUTE,b)};this.onPlaylist=function(b){return this.eventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,b)};this.onPlaylistItem=function(b){return this.eventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,b)};this.onReady=function(b){return this.eventListener(a.api.events.API_READY,b)};this.onResize=function(b){return this.eventListener(a.api.events.JWPLAYER_RESIZE,b)};this.onComplete=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,
b)};this.onSeek=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_SEEK,b)};this.onTime=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_TIME,b)};this.onVolume=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_VOLUME,b)};this.onBuffer=function(b){return this.stateListener(a.api.events.state.BUFFERING,b)};this.onPause=function(b){return this.stateListener(a.api.events.state.PAUSED,b)};this.onPlay=function(b){return this.stateListener(a.api.events.state.PLAYING,
b)};this.onIdle=function(b){return this.stateListener(a.api.events.state.IDLE,b)};this.remove=function(){l={};q=[];a.utils.getOuterHTML(this.container)!=w&&a.api.destroyPlayer(this.id,w)};this.setup=function(b){if(a.embed){var c=this.id;this.remove();c=a(c);c.config=b;return new a.embed(c)}return this};this.registerPlugin=function(b,c,d){a.plugins.registerPlugin(b,c,d)};this.setPlayer=function(a,b){e=a;this.renderingMode=b};this.stateListener=function(b,c){h[b]||(h[b]=[],this.eventListener(a.api.events.JWPLAYER_PLAYER_STATE,
f(b)));h[b].push(c);return this};this.componentListener=function(a,b,c){k[a]||(k[a]={});k[a][b]||(k[a][b]=[],this.eventListener(b,j(a,b)));k[a][b].push(c);return this};this.addInternalListener=function(a,b){a.jwAddEventListener(b,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+b+'", dat); }')};this.eventListener=function(a,b){l[a]||(l[a]=[],e&&o&&this.addInternalListener(e,a));l[a].push(b);return this};this.dispatchEvent=function(b,c){if(l[b]){var d;d=a.utils.extend({},c);b==a.api.events.JWPLAYER_FULLSCREEN&&
!d.fullscreen?(d.fullscreen=d.message=="true"?true:false,delete d.message):typeof d.data=="object"&&(d=a.utils.extend(d,d.data),delete d.data);var e=["position","duration","offset"],f;for(f in e)d[e[f]]&&(d[e[f]]=Math.round(d[e[f]]*1E3)/1E3);for(e=0;e<l[b].length;e++)typeof l[b][e]=="function"&&l[b][e].call(this,d)}};this.callInternal=function(b,c){if(o)return typeof e!="undefined"&&typeof e[b]=="function"?a.utils.exists(c)?e[b](c):e[b]():null;else q.push({method:b,parameters:c})};this.playerReady=
function(b){o=true;e||this.setPlayer(document.getElementById(b.id));this.container=document.getElementById(this.id);for(var c in l)this.addInternalListener(e,c);this.eventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,function(){u={}});this.eventListener(a.api.events.JWPLAYER_MEDIA_META,function(b){a.utils.extend(u,b.metadata)});for(this.dispatchEvent(a.api.events.API_READY);q.length>0;)b=q.shift(),this.callInternal(b.method,b.parameters)};this.getItemMeta=function(){return u};this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex")};
return this};a.api.selectPlayer=function(b){var d;a.utils.exists(b)||(b=0);b.nodeType?d=b:typeof b=="string"&&(d=document.getElementById(b));if(d)return(b=a.api.playerById(d.id))?b:a.api.addPlayer(new a.api(d));else if(typeof b=="number")return a.getPlayers()[b];return null};a.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_COMPONENT_SHOW:"jwplayerComponentShow",
JWPLAYER_COMPONENT_HIDE:"jwplayerComponentHide",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",JWPLAYER_MEDIA_SEEK:"jwplayerMediaSeek",JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",
JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem"};a.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"};a.api.playerById=function(a){for(var d=0;d<b.length;d++)if(b[d].id==a)return b[d];return null};a.api.addPlayer=function(a){for(var d=0;d<b.length;d++)if(b[d]==a)return a;b.push(a);return a};a.api.destroyPlayer=function(c,d){for(var f=-1,j=0;j<b.length;j++)b[j].id==c&&(f=j);if(f>=0){j=document.getElementById(b[f].id);
document.getElementById(b[f].id+"_wrapper")&&(j=document.getElementById(b[f].id+"_wrapper"));if(j)if(d)a.utils.setOuterHTML(j,d);else{var l=document.createElement("div"),h=j.id;j.id.indexOf("_wrapper")==j.id.length-8&&(newID=j.id.substring(0,j.id.length-8));l.setAttribute("id",h);j.parentNode.replaceChild(l,j)}b.splice(f,1)}return null};a.getPlayers=function(){return b.slice(0)}})(jwplayer);var _userPlayerReady=typeof playerReady=="function"?playerReady:void 0;playerReady=function(a){var b=jwplayer.api.playerById(a.id);
b?b.playerReady(a):jwplayer.api.selectPlayer(a.id).playerReady(a);_userPlayerReady&&_userPlayerReady.call(this,a)};(function(a){function b(){if(!document.body)return setTimeout(b,15);for(var c=a.utils.selectors.getElementsByTagAndClass("video","jwplayer"),d=0;d<c.length;d++)a(c[d].id).setup({})}a.embed=function(b){function d(){if(l.getStatus()==a.utils.loaderstatus.COMPLETE){for(var d=0;d<j.modes.length;d++)if(j.modes[d].type&&a.embed[j.modes[d].type]){var f=j;j.modes[d].config&&(f=a.utils.extend(a.utils.clone(j),
j.modes[d].config));f=new a.embed[j.modes[d].type](document.getElementById(b.id),j.modes[d],f,l,b);if(f.supportsConfig()){f.embed();var d=b,f=j.events,e=void 0;for(e in f)typeof d[e]=="function"&&d[e].call(d,f[e]);return b}}a.utils.log("No suitable players found");new a.embed.logo(a.utils.extend({hide:true},j.components.logo),"none",b.id)}}var f=a.utils.mediaparser.parseMedia(b.container),j=new a.embed.config(a.utils.extend({width:400,height:300,components:{controlbar:{position:"over"}}},f,b.config),
this),l=a.plugins.loadPlugins(b.id,j.plugins);l.addEventListener(a.events.COMPLETE,d);l.addEventListener(a.events.ERROR,d);l.load();return b};b()})(jwplayer);(function(a){function b(){return[{type:"flash",src:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}]}function c(a){return typeof a=="string"&&(parseInt(a).toString()==a||a.toLowerCase().indexOf("px")>-1)?parseInt(a):a}function d(b,c,d,e){a.utils.typeOf(b[c])!="object"&&(b[c]={});var f=b[c][d];a.utils.typeOf(f)!="object"&&(b[c][d]=f={});
e&&(c=="plugins"?(c=a.utils.getPluginName(d),f[e]=b[c+"."+e],delete b[c+"."+e]):(f[e]=b[d+"."+e],delete b[d+"."+e]))}var f={players:"modes",autoplay:"autostart"},j=["playlist","dock","controlbar","logo","display"];a.embed.deserialize=function(b){var c={};switch(a.utils.typeOf(b.plugins)){case "object":for(var f in b.plugins)c[a.utils.getPluginName(f)]=f;break;case "string":f=b.plugins.split(",");for(var e=0;e<f.length;e++)c[a.utils.getPluginName(f[e])]=f[e]}for(var o in c)d(b,"plugins",c[o]);for(var q in b)q.indexOf(".")>
-1&&(q=q.split("."),o=q[0],q=q[1],a.utils.isInArray(j,o)?d(b,"components",o,q):c[o]&&d(b,"plugins",c[o],q));return b};a.embed.config=function(d){var d=a.utils.extend({},d),h,k=d.playlist,e=false;if(e=k instanceof Array||typeof k=="object"&&!k.position&&!k.size)h=d.playlist,delete d.playlist;d=a.embed.deserialize(d);d.height=c(d.height);d.width=c(d.width);if(typeof d.plugins=="string"){k=d.plugins.split(",");if(typeof d.plugins!="object")d.plugins={};for(e=0;e<k.length;e++){var o=a.utils.getPluginName(k[e]);
typeof d[o]=="object"?(d.plugins[k[e]]=d[o],delete d[o]):d.plugins[k[e]]={}}}for(k=0;k<j.length;k++){e=j[k];if(a.utils.exists(d[e]))typeof d[e]!="object"?(d.components[e]||(d.components[e]={}),e=="logo"?d.components[e].file=d[e]:d.components[e].position=d[e]):(d.components[e]||(d.components[e]={}),a.utils.extend(d.components[e],d[e])),delete d[e];if(typeof d[e+"size"]!="undefined")d.components[e]||(d.components[e]={}),d.components[e].size=d[e+"size"],delete d[e+"size"]}if(typeof d.icons!="undefined"){if(!d.components.display)d.components.display=
{};d.components.display.icons=d.icons;delete d.icons}for(var q in f)d[q]&&(d[f[q]]||(d[f[q]]=d[q]),delete d[q]);var w;d.flashplayer&&!d.modes?(w=b(),w[0].src=d.flashplayer,delete d.flashplayer):d.modes?(typeof d.modes=="string"?(w=b(),w[0].src=d.modes):d.modes instanceof Array?w=d.modes:typeof d.modes=="object"&&d.modes.type&&(w=[d.modes]),delete d.modes):w=b();d.modes=w;if(h)d.playlist=h;return d}})(jwplayer);(function(a){a.embed.download=function(b,c,d,f,j){function l(b,c,d){if(d)return false;d=
["image","sound","youtube","http"];if(c&&d.toString().indexOf(c)>-1)return true;if(!c||c&&c=="video")if((b=a.utils.extension(b))&&a.utils.extensionmap[b])return true;return false}this.embed=function(){var c,f,e,l;a.utils.extend({},d);c=void 0;f=void 0;e=void 0;l=void 0;var q=d.width?d.width:480;typeof q!="number"&&(q=parseInt(q,10));var w=d.height?d.height:320;typeof w!="number"&&(w=parseInt(w,10));var u;d.playlist&&d.playlist.length?(f=d.playlist[0].file,e=d.playlist[0].image,l=d.playlist[0].levels):
(f=d.file,e=d.image,l=d.levels);if(f)u=f;else if(l&&l.length)u=l[0].file;f=u?"pointer":"auto";var x={display:{style:{cursor:f,width:q,height:w,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:f,position:"absolute",display:u?"block":"none",top:0,left:0,border:0,margin:0,padding:0,zIndex:3,width:50,height:50,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg==)"}},
display_iconBackground:{style:{cursor:f,position:"absolute",display:u?"block":"none",top:(w-50)/2,left:(q-50)/2,border:0,width:50,height:50,margin:0,padding:0,zIndex:2,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC)"}},display_image:{style:{width:q,height:w,display:e?"block":"none",
position:"absolute",cursor:f,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}};l=function(c,d,e){c=document.createElement(c);c.id=e?e:b.id+"_jwplayer_"+d;a.utils.css(c,x[d].style);return c};f=l("a","display",b.id);u&&f.setAttribute("href",a.utils.getAbsolutePath(u));c=l("img","display_image");c.setAttribute("alt","Click to download...");e&&c.setAttribute("src",a.utils.getAbsolutePath(e));e=l("div","display_icon");l=l("div","display_iconBackground");f.appendChild(c);l.appendChild(e);
f.appendChild(l);_css=a.utils.css;_hide=function(a){_css(a,{display:"none"})};c.onerror=function(){_hide(c)};c.onload=function(){_imageWidth=c.naturalWidth;_imageHeight=c.naturalHeight;a.utils.stretch(a.utils.stretching.UNIFORM,c,q,w,_imageWidth,_imageHeight)};b.parentNode.replaceChild(f,b);f.appendChild(new a.embed.logo(d.components.logo,"download",b.id));j.container=document.getElementById(j.id);j.setPlayer(f,"download")};this.supportsConfig=function(){if(d){var b=a.utils.getFirstPlaylistItemFromConfig(d);
if(typeof b.file=="undefined"&&typeof b.levels=="undefined")return true;else if(b.file)return l(b.file,b.provider,b.playlistfile);else if(b.levels&&b.levels.length)for(var c=0;c<b.levels.length;c++)if(b.levels[c].file&&l(b.levels[c].file,b.provider,b.playlistfile))return true}else return true}}})(jwplayer);(function(a){a.embed.flash=function(b,c,d,f,j){function l(a,b,c){var d=document.createElement("param");d.setAttribute("name",b);d.setAttribute("value",c);a.appendChild(d)}function h(b,c,d){return function(){d&&
document.getElementById(j.id+"_wrapper").appendChild(c);var e=document.getElementById(j.id).getPluginConfig("display");b.resize(e.width,e.height);a.utils.css(c,{left:e.x,top:e.y})}}function k(a,b){if(a[b]){var c=a[b],d;for(d in c){var e=c[d];if(typeof e=="string")a[d]||(a[d]=e);else for(var f in e)a[d+"."+f]||(a[d+"."+f]=e[f])}delete a[b]}}function e(b){if(!b)return{};var c={},d=[],e;for(e in b){var f=a.utils.getPluginName(e),h=b[e];d.push(e);for(var j in h)c[f+"."+j]=h[j]}c.plugins=d.join(",");return c}
function o(b){var c=b.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href.split("#")[0])+"&",d;for(d in b)c+=typeof b[d]=="object"?d+"="+encodeURIComponent("[[JSON]]"+a.utils.strings.jsonToString(b[d]))+"&":d+"="+encodeURIComponent(b[d])+"&";return c.substring(0,c.length-1)}this.embed=function(){d.id=j.id;var q,w=a.utils.extend({},d),u=w.width,x=w.height;b.id+"_wrapper"==b.parentNode.id?document.getElementById(b.id+"_wrapper"):(q=document.createElement("div"),q.id=b.id+
"_wrapper",a.utils.wrap(b,q),a.utils.css(q,{position:"relative",width:u,height:x}));q=f.setupPlugins(j,w,h);q.length>0?a.utils.extend(w,e(q.plugins)):delete w.plugins;q=["height","width","modes","events"];for(u=0;u<q.length;u++)delete w[q[u]];q="opaque";if(w.wmode)q=w.wmode;k(w,"components");k(w,"providers");if(typeof w["dock.position"]!="undefined"&&w["dock.position"].toString().toLowerCase()=="false")w.dock=w["dock.position"],delete w["dock.position"];a.utils.isIE()?(u='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="#000000" width="100%" height="100%" id="'+
b.id+'" name="'+b.id+'" tabindex=0"">',u+='<param name="movie" value="'+c.src+'">',u+='<param name="allowfullscreen" value="true">',u+='<param name="allowscriptaccess" value="always">',u+='<param name="seamlesstabbing" value="true">',u+='<param name="wmode" value="'+q+'">',u+='<param name="flashvars" value="'+o(w)+'">',u+="</object>",a.utils.setOuterHTML(b,u),w=document.getElementById(b.id)):(u=document.createElement("object"),u.setAttribute("type","application/x-shockwave-flash"),u.setAttribute("data",
c.src),u.setAttribute("width","100%"),u.setAttribute("height","100%"),u.setAttribute("bgcolor","#000000"),u.setAttribute("id",b.id),u.setAttribute("name",b.id),u.setAttribute("tabindex",0),l(u,"allowfullscreen","true"),l(u,"allowscriptaccess","always"),l(u,"seamlesstabbing","true"),l(u,"wmode",q),l(u,"flashvars",o(w)),b.parentNode.replaceChild(u,b),w=u);j.container=w;j.setPlayer(w,"flash")};this.supportsConfig=function(){if(a.utils.hasFlash())if(d){var b=a.utils.getFirstPlaylistItemFromConfig(d);
if(typeof b.file=="undefined"&&typeof b.levels=="undefined")return true;else if(b.file)return flashCanPlay(b.file,b.provider);else if(b.levels&&b.levels.length)for(var c=0;c<b.levels.length;c++)if(b.levels[c].file&&flashCanPlay(b.levels[c].file,b.provider))return true}else return true;return false};flashCanPlay=function(b,c){var d=["video","http","sound","image"];if(c&&d.toString().indexOf(c<0))return true;d=a.utils.extension(b);return!d?true:a.utils.exists(a.utils.extensionmap[d])&&!a.utils.exists(a.utils.extensionmap[d].flash)?
false:true}}})(jwplayer);(function(a){a.embed.html5=function(b,c,d,f,j){function l(a,c,d){return function(){var f=document.getElementById(b.id+"_displayarea");d&&f.appendChild(c);f=f.style;a.resize(parseInt(f.width.replace("px","")),parseInt(f.height.replace("px","")));c.left=f.left;c.top=f.top}}this.embed=function(){if(a.html5){f.setupPlugins(j,d,l);b.innerHTML="";for(var c=a.utils.extend({screencolor:"0x000000"},d),k=["plugins","modes","events"],e=0;e<k.length;e++)delete c[k[e]];if(c.levels&&!c.sources)c.sources=
d.levels;if(c.skin&&c.skin.toLowerCase().indexOf(".zip")>0)c.skin=c.skin.replace(/\.zip/i,".xml");c=new (a.html5(b).setup)(c);j.container=document.getElementById(j.id);j.setPlayer(c,"html5")}else return null};this.supportsConfig=function(){if(a.vid.canPlayType)if(d){var b=a.utils.getFirstPlaylistItemFromConfig(d);if(typeof b.file=="undefined"&&typeof b.levels=="undefined")return true;else if(b.file)return html5CanPlay(a.vid,b.file,b.provider,b.playlistfile);else if(b.levels&&b.levels.length)for(var c=
0;c<b.levels.length;c++)if(b.levels[c].file&&html5CanPlay(a.vid,b.levels[c].file,b.provider,b.playlistfile))return true}else return true;return false};html5CanPlay=function(b,c,d,f){if(f)return false;if(d&&d=="youtube")return true;if(d&&d!="video"&&d!="http"&&d!="sound")return false;c=a.utils.extension(c);return!a.utils.exists(c)||!a.utils.exists(a.utils.extensionmap[c])?true:!a.utils.exists(a.utils.extensionmap[c].html5)?false:a.utils.isLegacyAndroid()&&c.match(/m4v|mp4/)?true:browserCanPlay(b,a.utils.extensionmap[c].html5)};
browserCanPlay=function(a,b){return!b?true:a.canPlayType(b)?true:b=="audio/mp3"&&navigator.userAgent.match(/safari/i)?a.canPlayType("audio/mpeg"):false}}})(jwplayer);(function(a){a.embed.logo=function(b,c,d){function f(a){typeof a!="undefined"&&(a.preventDefault(),a.stopPropagation());e.link&&window.open(e.link,"_blank")}function j(){if(e.link)k.style.opacity=e.out}function l(){if(e.hide)k.style.opacity=e.over}var h={prefix:"http://l.longtailvideo.com/"+c+"/",file:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",
margin:8,out:0.5,over:1,timeout:5,hide:false,position:"bottom-left"};_css=a.utils.css;var k,e;(function(){if(h.prefix){var b=a.version.split(/\W/).splice(0,2).join("/");h.prefix.indexOf(b)<0&&(h.prefix+=b+"/")}e=a.utils.extend({},h)})();(function(){k=document.createElement("img");k.id=d+"_jwplayer_logo";k.style.display="none";k.onload=function(){var a=_css,b=k,c={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10};c.display=e.hide?"none":"block";var d=e.position.toLowerCase().split("-"),
f;for(f in d)c[d[f]]=e.margin;a(b,c);j()};if(e.file)k.src=e.file.indexOf("http://")===0?e.file:e.prefix+e.file})();(function(){e.link?(k.onmouseover=l,k.onmouseout=j,k.onclick=f):this.mouseEnabled=false})();return!e.file?void 0:k}})(jwplayer);(function(a){a.html5=function(b){this.setup=function(c){a.utils.extend(this,new a.html5.api(b,c));return this};return this}})(jwplayer);(function(a){var b=a.utils,c=b.css;a.html5.view=function(d,f,j){function l(){for(var a=0;a<s.plugins.order.length;a++){var c=
s.plugins.order[a];if(b.exists(s.plugins.object[c].getDisplayElement))s.plugins.object[c].height=b.parseDimension(s.plugins.object[c].getDisplayElement().style.height),s.plugins.object[c].width=b.parseDimension(s.plugins.object[c].getDisplayElement().style.width),s.plugins.config[c].currentPosition=s.plugins.config[c].position}k()}function h(){c(A,{display:s.getMedia().hasChrome()?"none":"block"})}function k(){var a=s.getMedia()?s.getMedia().getDisplayElement():null;if(b.exists(a)){G!=a&&(G&&G.parentNode&&
G.parentNode.replaceChild(a,G),G=a);for(a=0;a<s.plugins.order.length;a++){var c=s.plugins.order[a];if(b.exists(s.plugins.object[c].getDisplayElement))s.plugins.config[c].currentPosition=s.plugins.config[c].position}}o(s.width,s.height)}function e(b){switch(b.keyCode){case 27:y.jwGetFullscreen()&&y.jwSetFullscreen(false);break;case 32:y.jwGetState()!=a.api.events.state.IDLE&&y.jwGetState()!=a.api.events.state.PAUSED?y.jwPause():y.jwPlay()}}function o(a,b){if(v.style.display!="none"){var d=[].concat(s.plugins.order);
d.reverse();I=d.length+2;if(s.fullscreen)(!navigator||!(navigator.vendor&&navigator.vendor.indexOf("Apple")==0))&&q(x,d,true);else if(s.width=a,s.height=b,m=a,C=b,c(A,{top:0,bottom:0,left:0,right:0,width:a,height:b,position:"relative"}),c(v,{height:C,width:m}),d=q(w,d),d.length>0){I+=d.length;var e=d.indexOf("playlist"),f=d.indexOf("controlbar");e>=0&&f>=0&&(d[e]=d.splice(f,1,d[e])[0]);q(u,d,true)}n()}}function q(d,e,f){for(var h=[],j=0;j<e.length;j++){var k=e[j];if(b.exists(s.plugins.object[k].getDisplayElement))if(s.plugins.config[k].currentPosition!=
a.html5.view.positions.NONE){var g=d(k,I--);g?(s.plugins.object[k].resize(g.width,g.height),f&&(delete g.width,delete g.height),c(s.plugins.object[k].getDisplayElement(),g)):h.push(k)}else c(s.plugins.object[k].getDisplayElement(),{display:"none"})}return h}function w(c,d){if(b.exists(s.plugins.object[c].getDisplayElement)&&s.plugins.config[c].position&&[a.html5.view.positions.TOP,a.html5.view.positions.RIGHT,a.html5.view.positions.BOTTOM,a.html5.view.positions.LEFT].toString().indexOf(s.plugins.config[c].position.toUpperCase())>
-1){b.exists(s.plugins.object[c].getDisplayElement().parentNode)||v.appendChild(s.plugins.object[c].getDisplayElement());var e={position:"absolute",margin:0,padding:0,top:null},f=s.plugins.config[c].currentPosition.toLowerCase();switch(f.toUpperCase()){case a.html5.view.positions.TOP:e.top=b.parseDimension(A.style.top);e.left=b.parseDimension(A.style.left);e.width=m-b.parseDimension(A.style.left)-b.parseDimension(A.style.right);e.height=s.plugins.object[c].height;A.style[f]=b.parseDimension(A.style[f])+
s.plugins.object[c].height+"px";A.style.height=b.parseDimension(A.style.height)-e.height+"px";break;case a.html5.view.positions.RIGHT:e.top=b.parseDimension(A.style.top);e.right=b.parseDimension(A.style.right);e.width=s.plugins.object[c].width;e.height=C-b.parseDimension(A.style.top)-b.parseDimension(A.style.bottom);A.style[f]=b.parseDimension(A.style[f])+s.plugins.object[c].width+"px";A.style.width=b.parseDimension(A.style.width)-e.width+"px";break;case a.html5.view.positions.BOTTOM:e.bottom=b.parseDimension(A.style.bottom);
e.left=b.parseDimension(A.style.left);e.width=m-b.parseDimension(A.style.left)-b.parseDimension(A.style.right);e.height=s.plugins.object[c].height;A.style[f]=b.parseDimension(A.style[f])+s.plugins.object[c].height+"px";A.style.height=b.parseDimension(A.style.height)-e.height+"px";break;case a.html5.view.positions.LEFT:e.top=b.parseDimension(A.style.top),e.left=b.parseDimension(A.style.left),e.width=s.plugins.object[c].width,e.height=C-b.parseDimension(A.style.top)-b.parseDimension(A.style.bottom),
A.style[f]=b.parseDimension(A.style[f])+s.plugins.object[c].width+"px",A.style.width=b.parseDimension(A.style.width)-e.width+"px"}e.zIndex=d;return e}return false}function u(a,c){b.exists(s.plugins.object[a].getDisplayElement().parentNode)||A.appendChild(s.plugins.object[a].getDisplayElement());var d=s.width,e=s.height;typeof s.width=="string"&&s.width.lastIndexOf("%")>-1&&(percentage=parseFloat(s.width.substring(0,s.width.lastIndexOf("%")))/100,d=Math.round(window.innerWidth*percentage));typeof s.height==
"string"&&s.height.lastIndexOf("%")>-1&&(percentage=parseFloat(s.height.substring(0,s.height.lastIndexOf("%")))/100,e=Math.round(window.innerHeight*percentage));return{position:"absolute",width:d-b.parseDimension(A.style.left)-b.parseDimension(A.style.right),height:e-b.parseDimension(A.style.top)-b.parseDimension(A.style.bottom),zIndex:c}}function x(a,b){return{position:"fixed",width:s.width,height:s.height,zIndex:b}}function n(){if(b.exists(s.getMedia())){A.style.position="absolute";var a=s.getMedia().getDisplayElement();
if(a&&a.tagName.toLowerCase()=="video"){a.style.position="absolute";var c,d;A.style.width.toString().lastIndexOf("%")>-1||A.style.width.toString().lastIndexOf("%")>-1?(d=A.getBoundingClientRect(),c=Math.abs(d.left)+Math.abs(d.right),d=Math.abs(d.top)+Math.abs(d.bottom)):(c=b.parseDimension(A.style.width),d=b.parseDimension(A.style.height));if(a.parentNode)a.parentNode.style.left=A.style.left,a.parentNode.style.top=A.style.top;b.stretch(y.jwGetStretching(),a,c,d,a.videoWidth?a.videoWidth:400,a.videoHeight?
a.videoHeight:300)}else(a=s.plugins.object.display.getDisplayElement())?s.getMedia().resize(b.parseDimension(a.style.width),b.parseDimension(a.style.height)):s.getMedia().resize(b.parseDimension(A.style.width),b.parseDimension(A.style.height))}}var y=d,t=f,s=j,v,m,C,A,I,G;this.setup=function(){s&&s.getMedia()&&(t=s.getMedia().getDisplayElement());v=document.createElement("div");v.id=t.id;v.className=t.className;_videowrapper=document.createElement("div");_videowrapper.id=v.id+"_video_wrapper";t.id=
v.id+"_video";c(v,{position:"relative",height:s.height,width:s.width,padding:0,backgroundColor:y.skin.getComponentSettings("display")&&y.skin.getComponentSettings("display").backgroundcolor?y.skin.getComponentSettings("display").backgroundcolor:0,zIndex:0});c(t,{width:s.width,height:s.height,top:0,left:0,zIndex:1,margin:"auto",display:"block"});c(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0});b.wrap(t,v);b.wrap(t,_videowrapper);A=document.createElement("div");
A.id=v.id+"_displayarea";v.appendChild(A);l();y.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,h);y.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_LOADED,k);y.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_META,function(){n()});var d;if(b.exists(window.onresize))d=window.onresize;window.onresize=function(a){if(b.exists(d))try{d(a)}catch(c){}if(y.jwGetFullscreen())a=document.body.getBoundingClientRect(),s.width=Math.abs(a.left)+Math.abs(a.right),s.height=window.innerHeight;o(s.width,s.height)}};
this.resize=o;this.fullscreen=function(a){if(navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")===0){if(s.getMedia().getDisplayElement().webkitSupportsFullscreen)if(a)try{s.getMedia().getDisplayElement().webkitEnterFullscreen()}catch(b){}else try{s.getMedia().getDisplayElement().webkitExitFullscreen()}catch(d){}}else a?(document.onkeydown=e,clearInterval(void 0),a=document.body.getBoundingClientRect(),s.width=Math.abs(a.left)+Math.abs(a.right),s.height=window.innerHeight,a={position:"fixed",
width:"100%",height:"100%",top:0,left:0,zIndex:2147483E3},c(v,a),a.zIndex=1,s.getMedia()&&s.getMedia().getDisplayElement()&&c(s.getMedia().getDisplayElement(),a),a.zIndex=2,c(A,a)):(document.onkeydown="",s.width=m,s.height=C,c(v,{position:"relative",height:s.height,width:s.width,zIndex:0})),o(s.width,s.height)}};a.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}})(jwplayer);(function(a){var b={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,
fontcolor:0,fontstyle:"normal",fontweight:"bold",buttoncolor:16777215,position:a.html5.view.positions.BOTTOM,idlehide:false,layout:{left:{position:"left",elements:[{name:"play",type:"button"},{name:"divider",type:"divider"},{name:"prev",type:"button"},{name:"divider",type:"divider"},{name:"next",type:"button"},{name:"divider",type:"divider"},{name:"elapsed",type:"text"}]},center:{position:"center",elements:[{name:"time",type:"slider"}]},right:{position:"right",elements:[{name:"duration",type:"text"},
{name:"blank",type:"button"},{name:"divider",type:"divider"},{name:"mute",type:"button"},{name:"volume",type:"slider"},{name:"divider",type:"divider"},{name:"fullscreen",type:"button"}]}}};_utils=a.utils;_css=_utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};a.html5.controlbar=function(c,d){function f(){T||(T=B.skin.getSkinElement("controlbar","background"))||(T={width:0,height:0,src:null});return T}function j(){F=L=g=0;if(!Z){var a={height:f().height,
backgroundColor:p.backgroundcolor};E=document.createElement("div");E.id=B.id+"_jwplayer_controlbar";_css(E,a)}var b=B.skin.getSkinElement("controlbar","capLeft"),a=B.skin.getSkinElement("controlbar","capRight");b&&x("capLeft","left",false,E);b={position:"absolute",height:f().height,left:b?b.width:0,zIndex:0};q("background",E,b,"img");if(f().src)D.background.src=f().src;b.zIndex=1;q("elements",E,b);a&&x("capRight","right",false,E)}function l(){var a=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"],
b;for(b in a){var c=a[b];typeof D[c]!="undefined"&&(S[c]=D[c].getBoundingClientRect())}}function h(b){if(!aa&&(p.position==a.html5.view.positions.OVER||B.jwGetFullscreen()))switch(clearTimeout(ba),B.jwGetState()){case a.api.events.state.PAUSED:case a.api.events.state.IDLE:(!p.idlehide||_utils.exists(b))&&e();p.idlehide&&(ba=setTimeout(function(){k()},2E3));break;default:b&&e(),ba=setTimeout(function(){k()},2E3)}}function k(){la();_utils.cancelAnimation(E);_utils.fadeTo(E,0,0.1,1,0)}function e(){ka();
_utils.cancelAnimation(E);_utils.fadeTo(E,1,0,1,0)}function o(b){return function(){ja&&ca!=b&&(ca=b,ra.sendEvent(b,{component:"controlbar",boundingRect:p.position==a.html5.view.positions.OVER||B.jwGetFullscreen()?_utils.getDimensions(E):{x:0,y:0,width:0,height:0}}))}}function q(a,b,c,d){Z?d=document.getElementById(E.id+"_"+a):(d||(d="div"),d=document.createElement(d),D[a]=d,d.id=E.id+"_"+a,b.appendChild(d));_utils.exists(c)&&_css(d,c);return d}function w(){u(p.layout.left);u(p.layout.right,-1);u(p.layout.center)}
function u(a,b){var c=a.position=="right"?"right":"left",d=_utils.extend([],a.elements);_utils.exists(b)&&d.reverse();for(var e=0;e<d.length;e++){var h=d[e],j=c,k=void 0,l=void 0,m=void 0,l=l=void 0;if(h.type=="divider")x("divider"+F++,j,true,void 0,void 0,h.width,h.element);else switch(h.name){case "play":x("playButton",j,false);x("pauseButton",j,true);s("playButton","jwPlay");s("pauseButton","jwPause");break;case "prev":x("prevButton",j,true);s("prevButton","jwPlaylistPrev");break;case "stop":x("stopButton",
j,true);s("stopButton","jwStop");break;case "next":x("nextButton",j,true);s("nextButton","jwPlaylistNext");break;case "elapsed":x("elapsedText",j,true);break;case "time":l=!_utils.exists(B.skin.getSkinElement("controlbar","timeSliderCapLeft"))?0:B.skin.getSkinElement("controlbar","timeSliderCapLeft").width;m=!_utils.exists(B.skin.getSkinElement("controlbar","timeSliderCapRight"))?0:B.skin.getSkinElement("controlbar","timeSliderCapRight").width;k=j=="left"?l:m;l=B.skin.getSkinElement("controlbar",
"timeSliderRail").width+l+m;l={height:f().height,position:"absolute",top:0,width:l};l[j]=j=="left"?g:L;h=q("timeSlider",D.elements,l);x("timeSliderCapLeft",j,true,h,j=="left"?0:k);x("timeSliderRail",j,false,h,k);x("timeSliderBuffer",j,false,h,k);x("timeSliderProgress",j,false,h,k);x("timeSliderThumb",j,false,h,k);x("timeSliderCapRight",j,true,h,j=="right"?0:k);v("time");break;case "fullscreen":x("fullscreenButton",j,false);x("normalscreenButton",j,true);s("fullscreenButton","jwSetFullscreen",true);
s("normalscreenButton","jwSetFullscreen",false);break;case "volume":l=!_utils.exists(B.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?0:B.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;m=!_utils.exists(B.skin.getSkinElement("controlbar","volumeSliderCapRight"))?0:B.skin.getSkinElement("controlbar","volumeSliderCapRight").width;k=j=="left"?l:m;l=B.skin.getSkinElement("controlbar","volumeSliderRail").width+l+m;l={height:f().height,position:"absolute",top:0,width:l};l[j]=j==
"left"?g:L;h=q("volumeSlider",D.elements,l);x("volumeSliderCapLeft",j,true,h,j=="left"?0:k);x("volumeSliderRail",j,true,h,k);x("volumeSliderProgress",j,false,h,k);x("volumeSliderCapRight",j,true,h,j=="right"?0:k);v("volume");break;case "mute":x("muteButton",j,false);x("unmuteButton",j,true);s("muteButton","jwSetMute",true);s("unmuteButton","jwSetMute",false);break;case "duration":x("durationText",j,true)}}}function x(a,b,c,d,e,h,j){if(_utils.exists(B.skin.getSkinElement("controlbar",a))||a.indexOf("Text")>
0||a.indexOf("divider")===0){var k={height:f().height,position:"absolute",display:"block",top:0};if((a.indexOf("next")===0||a.indexOf("prev")===0)&&B.jwGetPlaylist().length<2)c=false,k.display="none";var l;if(a.indexOf("Text")>0)a.innerhtml="00:00",k.font=p.fontsize+"px/"+(f().height+1)+"px "+p.font,k.color=p.fontcolor,k.textAlign="center",k.fontWeight=p.fontweight,k.fontStyle=p.fontstyle,k.cursor="default",l=14+3*p.fontsize;else if(a.indexOf("divider")===0)if(h)isNaN(parseInt(h))||(l=parseInt(h));
else if(j){if(h=B.skin.getSkinElement("controlbar",j))k.background="url("+h.src+") repeat-x center left",l=h.width}else k.background="url("+B.skin.getSkinElement("controlbar","divider").src+") repeat-x center left",l=B.skin.getSkinElement("controlbar","divider").width;else k.background="url("+B.skin.getSkinElement("controlbar",a).src+") repeat-x center left",l=B.skin.getSkinElement("controlbar",a).width;if(b=="left")k.left=isNaN(e)?g:e,c&&(g+=l);else if(b=="right")k.right=isNaN(e)?L:e,c&&(L+=l);if(_utils.typeOf(d)==
"undefined")d=D.elements;k.width=l;if(Z)_css(D[a],k);else{var m=q(a,d,k);if(_utils.exists(B.skin.getSkinElement("controlbar",a+"Over")))m.onmouseover=function(){m.style.backgroundImage=["url(",B.skin.getSkinElement("controlbar",a+"Over").src,")"].join("")},m.onmouseout=function(){m.style.backgroundImage=["url(",B.skin.getSkinElement("controlbar",a).src,")"].join("")}}}}function n(){j();w();J();t()}function y(a){O=B.jwGetPlaylist()[a.index].duration;G({id:B.id,duration:O,position:0});m({id:B.id,bufferProgress:0})}
function t(){G({id:B.id,duration:B.jwGetDuration(),position:0});m({id:B.id,bufferProgress:0});C({id:B.id,mute:B.jwGetMute()});A({id:B.id,newstate:a.api.events.state.IDLE});K({id:B.id,volume:B.jwGetVolume()})}function s(a,b,c){if(!Z&&_utils.exists(B.skin.getSkinElement("controlbar",a))&&(a=D[a],_utils.exists(a)))_css(a,{cursor:"pointer"}),a.onmouseup=b=="fullscreen"?function(a){a.stopPropagation();B.jwSetFullscreen(!B.jwGetFullscreen())}:function(a){a.stopPropagation();if(_utils.exists(c))B[b](c);
else B[b]()}}function v(b){if(!Z){var c=D[b+"Slider"];_css(D.elements,{cursor:"pointer"});_css(c,{cursor:"pointer"});c.onmousedown=function(){M=b};c.onmouseup=function(b){b.stopPropagation();b=b.pageX;Y=false;M=="time"?(b=b-S.timeSliderRail.left+window.pageXOffset,b=b/S.timeSliderRail.width*O,b<0?b=0:b>O&&(b=O-3),(B.jwGetState()==a.api.events.state.PAUSED||B.jwGetState()==a.api.events.state.IDLE)&&B.jwPlay(),B.jwSeek(b)):M=="volume"&&(b=b-S.volumeSliderRail.left-window.pageXOffset,b=Math.round(b/
S.volumeSliderRail.width*100),b<0?b=0:b>100&&(b=100),B.jwGetMute()&&B.jwSetMute(false),B.jwSetVolume(b));M="none"};c.onmousemove=function(a){M=="time"&&(Y=true,_css(D.timeSliderThumb,{left:a.pageX-S[b+"Slider"].left-window.pageXOffset}))}}}function m(a){if(_utils.exists(a.bufferPercent))P=a.bufferPercent;if(S.timeSliderRail)a=S.timeSliderRail.width,a=isNaN(Math.round(a*P/100))?0:Math.round(a*P/100),_css(D.timeSliderBuffer,{width:a})}function C(a){a.mute?(_hide(D.muteButton),_show(D.unmuteButton),
_hide(D.volumeSliderProgress)):(_show(D.muteButton),_hide(D.unmuteButton),_show(D.volumeSliderProgress))}function A(b){b.newstate==a.api.events.state.BUFFERING||b.newstate==a.api.events.state.PLAYING?(_show(D.pauseButton),_hide(D.playButton)):(_hide(D.pauseButton),_show(D.playButton));h();b.newstate==a.api.events.state.IDLE?(_hide(D.timeSliderBuffer),_hide(D.timeSliderProgress),_hide(D.timeSliderThumb),G({id:B.id,duration:B.jwGetDuration(),position:0})):(_show(D.timeSliderBuffer),b.newstate!=a.api.events.state.BUFFERING&&
(_show(D.timeSliderProgress),_show(D.timeSliderThumb)))}function I(a){m({bufferPercent:0});G(_utils.extend(a,{position:0,duration:O}))}function G(a){if(_utils.exists(a.position))V=a.position;if(_utils.exists(a.duration))O=a.duration;var a=V===O===0?0:V/O,b=S.timeSliderRail;if(b&&(a=isNaN(Math.round(b.width*a))?0:Math.round(b.width*a),D.timeSliderProgress&&(D.timeSliderProgress.style.width=a+"px",!Y&&D.timeSliderThumb)))D.timeSliderThumb.style.left=a+"px";if(D.durationText)D.durationText.innerHTML=
_utils.timeFormat(O);if(D.elapsedText)D.elapsedText.innerHTML=_utils.timeFormat(V)}function J(){var b,c,d=document.getElementById(E.id+"_elements");if(d){var e=d.childNodes,h;for(h in d.childNodes)if(!isNaN(parseInt(h,10))){if(e[h].id.indexOf(E.id+"_divider")===0&&c&&c.id.indexOf(E.id+"_divider")===0&&e[h].style.backgroundImage==c.style.backgroundImage)e[h].style.display="none";else if(e[h].id.indexOf(E.id+"_divider")===0&&b&&b.style.display!="none")e[h].style.display="block";e[h].style.display!=
"none"&&(c=e[h]);b=e[h]}}B.jwGetFullscreen()?(_show(D.normalscreenButton),_hide(D.fullscreenButton)):(_hide(D.normalscreenButton),_show(D.fullscreenButton));b={width:pa};c={};if(p.position==a.html5.view.positions.OVER||B.jwGetFullscreen())b.left=p.margin,b.width-=2*p.margin,b.top=qa-f().height-p.margin,b.height=f().height;d=B.skin.getSkinElement("controlbar","capLeft");e=B.skin.getSkinElement("controlbar","capRight");c.left=d?d.width:0;c.width=b.width-c.left-(e?e.width:0);d=!_utils.exists(B.skin.getSkinElement("controlbar",
"timeSliderCapLeft"))?0:B.skin.getSkinElement("controlbar","timeSliderCapLeft").width;_css(D.timeSliderRail,{width:c.width-g-L,left:d});_utils.exists(D.timeSliderCapRight)&&_css(D.timeSliderCapRight,{left:d+(c.width-g-L)});_css(E,b);_css(D.elements,c);_css(D.background,c);l();return b}function K(a){if(_utils.exists(D.volumeSliderRail)){var a=isNaN(a.volume/100)?1:a.volume/100,b=_utils.parseDimension(D.volumeSliderRail.style.width),a=isNaN(Math.round(b*a))?0:Math.round(b*a);_utils.parseDimension(D.volumeSliderRail.style.right);
b=!_utils.exists(B.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?0:B.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(D.volumeSliderProgress,{width:a,left:b});_utils.exists(D.volumeSliderCapLeft)&&_css(D.volumeSliderCapLeft,{left:0})}}var B=c,p=_utils.extend({},b,B.skin.getComponentSettings("controlbar"),d);if(!(p.position==a.html5.view.positions.NONE||typeof a.html5.view.positions[p.position]=="undefined")){if(_utils.mapLength(B.skin.getComponentLayout("controlbar"))>
0)p.layout=B.skin.getComponentLayout("controlbar");var E,F,g,L,M="none",Y,V,O,P,pa,qa,D={},Z=false,S={},T,aa=false,ba,ca,ja=false,oa=false,ra=new a.html5.eventdispatcher;_utils.extend(this,ra);this.getDisplayElement=function(){return E};this.resize=function(a,b){_utils.cancelAnimation(E);document.getElementById(B.id).onmousemove=h;pa=a;qa=b;oa!=B.jwGetFullscreen()&&(oa=B.jwGetFullscreen(),ca=void 0);var c=J();h();G({id:B.id,duration:O,position:V});m({id:B.id,bufferPercent:P});return c};this.show=
function(){aa&&(aa=false,_show(E),ka())};this.hide=function(){aa||(aa=true,_hide(E),la())};var ka=o(a.api.events.JWPLAYER_COMPONENT_SHOW),la=o(a.api.events.JWPLAYER_COMPONENT_HIDE);(function(){j();w();l();Z=true;B.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,n);B.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,y);B.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_BUFFER,m);B.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,A);B.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_TIME,
G);B.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,C);B.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_VOLUME,K);B.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,I);p.idlehide=p.idlehide.toString().toLowerCase()=="true";p.position==a.html5.view.positions.OVER&&p.idlehide?(E.style.opacity=0,ja=true):setTimeout(function(){ja=true;ka()},1);t()})();return this}}})(jwplayer);(function(a){var b=a.utils;a.html5.controller=function(c,d,f,j){function l(){try{return q(n.item),n.playlist[n.item].levels[0].file.length>
0&&(y||n.state==a.api.events.state.IDLE?(n.getMedia().load(n.playlist[n.item]),y=false):n.state==a.api.events.state.PAUSED&&n.getMedia().play()),true}catch(b){s.sendEvent(a.api.events.JWPLAYER_ERROR,b)}return false}function h(c){b.exists(c)||(c=true);try{return n.getMedia().stop(c),true}catch(d){s.sendEvent(a.api.events.JWPLAYER_ERROR,d)}return false}function k(){try{n.playlist[n.item].levels[0].file.length>0&&(n.config.shuffle?q(e()):n.item+1==n.playlist.length?q(0):q(n.item+1));if(n.state!=a.api.events.state.IDLE){var b=
n.state;n.state=a.api.events.state.IDLE;s.sendEvent(a.api.events.JWPLAYER_PLAYER_STATE,{oldstate:b,newstate:a.api.events.state.IDLE})}l();return true}catch(c){s.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return false}function e(){var a=null;if(n.playlist.length>1)for(;!b.exists(a);)a=Math.floor(Math.random()*n.playlist.length),a==n.item&&(a=null);else a=0;return a}function o(b){if(!n.playlist||!n.playlist[b])return false;try{return n.playlist[b].levels[0].file.length>0&&(n.state!==a.api.events.state.IDLE&&
(n.playlist[n.item].provider==n.playlist[b].provider?h(false):h()),q(b),l()),true}catch(c){s.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return false}function q(b){if(n.playlist[b]&&(n.setActiveMediaProvider(n.playlist[b]),n.item!=b))n.item=b,y=true,s.sendEvent(a.api.events.JWPLAYER_PLAYLIST_ITEM,{index:b})}function w(){switch(n.config.repeat.toUpperCase()){case a.html5.controller.repeatoptions.SINGLE:l();break;case a.html5.controller.repeatoptions.ALWAYS:n.item==n.playlist.length-1&&!n.config.shuffle?
o(0):k();break;case a.html5.controller.repeatoptions.LIST:n.item==n.playlist.length-1&&!n.config.shuffle?(h(),q(0)):k();break;default:h()}}function u(a){return function(){m?x(a,arguments):C.push({method:a,arguments:arguments})}}function x(a,b){var c=[];for(i=0;i<b.length;i++)c.push(b[i]);a.apply(this,c)}var n=f,y=true,t=-1,c=b.exists(n.config.debug)&&n.config.debug.toString().toLowerCase()=="console",s=new a.html5.eventdispatcher(d.id,c);b.extend(this,s);var v=[],m=false;n.addGlobalListener(function(a){m?
s.sendEvent(a.type,a):v.push(a)});n.addEventListener(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){n.getMedia().play()});n.addEventListener(a.api.events.JWPLAYER_MEDIA_TIME,function(a){if(a.position>=n.playlist[n.item].start&&t>=0)n.playlist[n.item].start=t,t=-1});n.addEventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,function(){setTimeout(w,25)});a.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};var C=[];this.play=u(l);this.pause=u(function(){try{if(n.playlist[n.item].levels[0].file.length>
0)switch(n.state){case a.api.events.state.PLAYING:case a.api.events.state.BUFFERING:n.getMedia().pause()}return true}catch(b){s.sendEvent(a.api.events.JWPLAYER_ERROR,b)}return false});this.seek=u(function(b){try{if(n.playlist[n.item].levels[0].file.length>0)switch(typeof b!="number"&&(b=parseFloat(b)),n.state){case a.api.events.state.IDLE:if(t<0)t=n.playlist[n.item].start,n.playlist[n.item].start=b;l();break;case a.api.events.state.PLAYING:case a.api.events.state.PAUSED:case a.api.events.state.BUFFERING:n.seek(b)}return true}catch(c){s.sendEvent(a.api.events.JWPLAYER_ERROR,
c)}return false});this.stop=u(h);this.next=u(k);this.prev=u(function(){try{n.playlist[n.item].levels[0].file.length>0&&(n.config.shuffle?q(e()):n.item===0?q(n.playlist.length-1):q(n.item-1));if(n.state!=a.api.events.state.IDLE){var b=n.state;n.state=a.api.events.state.IDLE;s.sendEvent(a.api.events.JWPLAYER_PLAYER_STATE,{oldstate:b,newstate:a.api.events.state.IDLE})}l();return true}catch(c){s.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return false});this.item=u(o);this.setVolume=u(function(b){try{q(n.item);
var c=n.getMedia();switch(typeof b){case "number":c.volume(b);break;case "string":c.volume(parseInt(b,10))}return true}catch(d){s.sendEvent(a.api.events.JWPLAYER_ERROR,d)}return false});this.setMute=u(function(b){try{q(n.item);var c=n.getMedia();typeof b=="undefined"?c.mute(!n.mute):b.toString().toLowerCase()=="true"?c.mute(true):c.mute(false);return true}catch(d){s.sendEvent(a.api.events.JWPLAYER_ERROR,d)}return false});this.resize=u(function(b,c){try{return n.width=b,n.height=c,j.resize(b,c),s.sendEvent(a.api.events.JWPLAYER_RESIZE,
{width:n.width,height:n.height}),true}catch(d){s.sendEvent(a.api.events.JWPLAYER_ERROR,d)}return false});this.setFullscreen=u(function(b){try{return typeof b=="undefined"?(n.fullscreen=!n.fullscreen,j.fullscreen(!n.fullscreen)):b.toString().toLowerCase()=="true"?(n.fullscreen=true,j.fullscreen(true)):(n.fullscreen=false,j.fullscreen(false)),s.sendEvent(a.api.events.JWPLAYER_RESIZE,{width:n.width,height:n.height}),s.sendEvent(a.api.events.JWPLAYER_FULLSCREEN,{fullscreen:b}),true}catch(c){s.sendEvent(a.api.events.JWPLAYER_ERROR,
c)}return false});this.load=u(function(b){try{return h(),n.loadPlaylist(b),q(n.item),true}catch(c){s.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return false});this.playerReady=function(b){if(!m){s.sendEvent(a.api.events.JWPLAYER_READY,b);a.utils.exists(window.playerReady)&&playerReady(b);if(a.utils.exists(window[f.config.playerReady]))window[f.config.playerReady](b);for(;v.length>0;)b=v.shift(),s.sendEvent(b.type,b);for(f.config.autostart&&!a.utils.isIOS()&&o(n.item);C.length>0;)b=C.shift(),x(b.method,
b.arguments);m=true}}}})(jwplayer);(function(a){a.html5.defaultSkin=function(){this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.0"><settings><setting name="backcolor" value="0xFFFFFF"/><setting name="frontcolor" value="0x000000"/><setting name="lightcolor" value="0x000000"/><setting name="screencolor" value="0x000000"/></settings><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/></settings><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFJJREFUeNrslLENwAAIwxLU/09j5AiOgD5hVQzNAVY8JK4qEfHMIKBnd2+BQlBINaiRtL/aV2rdzYBsM6CIONbI1NZENTr3RwdB2PlnJgJ6BRgA4hwu5Qg5iswAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEhJREFUeNpiYqABYBo1dNRQ+hr6H4jvA3E8NS39j4SpZvh/LJig4YxEGEqy3kET+w+AOGFQRhTJhrEQkGcczfujhg4CQwECDADpTRWU/B3wHQAAAABJRU5ErkJggg=="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAChJREFUeNpiYBgFo2DwA0YC8v/R1P4nRu+ooaOGUtnQUTAKhgIACDAAFCwQCfAJ4gwAAAAASUVORK5CYII="/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEtJREFUeNpiYBgFo2Dog/9QDAPyQHweTYwiQ/2B+D0Wi8g2tB+JTdBQRiIMJVkvEy0iglhDF9Aq9uOpHVEwoE+NJDUKRsFgAAABBgDe2hqZcNNL0AAAAABJRU5ErkJggg=="/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUeNpiYBgFo2Dog/9AfB6I5dHE/lNqKAi/B2J/ahsKw/3EGMpIhKEk66WJoaR6fz61IyqemhEFSlL61ExSo2AUDAYAEGAAiG4hj+5t7M8AAAAASUVORK5CYII="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADxJREFUeNpiYBgFo2AU0Bwwzluw+D8tLWARFhKiqQ9YuLg4aWsBGxs7bS1gZ6e5BWyjSX0UjIKhDgACDABlYQOGh5pYywAAAABJRU5ErkJggg=="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFo2AU0Bww1jc0/aelBSz8/Pw09QELOzs7bS1gY2OjrQWsrKy09gHraFIfBaNgqAOAAAMAvy0DChXHsZMAAAAASUVORK5CYII="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAClJREFUeNpiYBgFo2AU0BwwAvF/WlrARGsfjFow8BaMglEwCugAAAIMAOHfAQunR+XzAAAAAElFTkSuQmCC"/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAICAYAAAA870V8AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpiZICA/yCCiQEJUJcDEGAAY0gBD1/m7Q0AAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiYBgFIw3MB+L/5Gj8j6yRiRTFyICJXHfTXyMLAXlGati4YDRFDj8AEGAABk8GSqqS4CoAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFgxz8p7bm+cQa+h8LHy7GhEcjIz4bmAjYykiun/8j0fakGPIfTfPgiSr6aB4FVAcAAQYAWdwR1G1Wd2gAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGpJREFUeNpi/P//PwM9ABMDncCoRYPfIqqDZcuW1UPp/6AUDcNM1DQYKtRAlaAj1mCSLSLXYIIWUctgDItoZfDA5aOoqKhGEANIM9LVR7SymGDQUctikuOIXkFNdhHEOFrDjlpEd4sAAgwAriRMub95fu8AAAAASUVORK5CYII="/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFtJREFUeNpi/P//PwM9ABMDncCoRYPfIlqAeij9H5SiYZiqBqPTlFqE02BKLSLaYFItIttgQhZRzWB8FjENiuRJ7aAbsMQwYMl7wDIsWUUQ42gNO2oR3S0CCDAAKhKq6MLLn8oAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAE5JREFUeNpiYBgFo2DQA0YC8v/xqP1PjDlMRDrEgUgxkgHIlfZoriVGjmzLsLFHAW2D6D8eA/9Tw7L/BAwgJE90PvhPpNgoGAVDEQAEGAAMdhTyXcPKcAAAAABJRU5ErkJggg=="/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEZJREFUeNpiYBgFo2DIg/9UUkOUAf8JiFFsyX88fJyAkcQgYMQjNkzBoAgiezyRbE+tFGSPxQJ7auYBmma0UTAKBhgABBgAJAEY6zON61sAAAAASUVORK5CYII="/></elements></component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC"/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg=="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNrs1jEOgCAMBVAg7t5/8qaoIy4uoobyXsLCxA+0NCUAAADGUWvdQoQ41x4ixNBB2hBvBskdD3w5ZCkl3+33VqI0kjBBlh9rp+uTcyOP33TnolfsU85XX3yIRpQph8ZQY3wTZtU5AACASA4BBgDHoVuY1/fvOQAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWlJREFUeNrsl+1twjAQhsHq/7BBYQLYIBmBDcoGMAIjtBPQTcII2SDtBDBBwrU6pGsUO7YbO470PtKJkz9iH++d4ywWAAAAAABgljRNsyWr2bZzDuJG1rLdZhcMbTjrBCGDyUKsqQLFciJb9bSvuG/WagRVRUVUI6gqy5HVeKWfSgRyJruKIU//TrZTSn2nmlaXThrloi/v9F2STC1W4+Aw5cBzkquRc09bofFNc6YLxEON0VUZS5FPTftO49vMjRsIF3RhOGr7/D/pJw+FKU+q0vDyq8W42jCunDqI3LC5XxNj2wHLU1XjaRnb0Lhykhqhhd8MtSF5J9tbjCv4mXGvKJz/65FF/qJryyaaIvzP2QRxZTX2nTuXjvV/VPFSwyLnW7mpH99yTh1FEVro6JBSd40/pMrRdV8vPtcKl28T2pT8TnFZ4yNosct3Q0io6JfBiz1FlGdqVQH3VHnepAEAAAAAADDzEGAAcTwB10jWgxcAAAAASUVORK5CYII="/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAuhJREFUeNrsWr9rU1EUznuNGqvFQh1ULOhiBx0KDtIuioO4pJuik3FxFfUPaAV1FTdx0Q5d2g4FFxehTnEpZHFoBy20tCIWtGq0TZP4HfkeHB5N8m6Sl/sa74XDybvv3vvOd8/Pe4lXrVZT3dD8VJc0B8QBcUAcEAfESktHGeR5XtMfqFQq/f92zPe/NbtGlKTdCY30kuxrpMGO94BlQCXs+rbh3ONgA6BlzP1p20d80gEI5hmA2A92Qua1Q2PtAFISM+bvjMG8U+Q7oA3rQGASwrYCU6WpNdLGYbA+Pq5jjXIiwi8EEa2UDbQSaKOIuV+SlkcCrfjY8XTI9EpKGwP0C2kru2hLtHqa4zoXtZRWyvi4CLwv9Opr6Hkn6A9HKgEANsQ1iqC3Ub/vRUk2JgmRkatK36kVrnt0qObunwUdUUMXMWYpakJsO5Am8tAw2GBIgwWA+G2S2dMpiw0gDioQRQJoKhRb1QiDwlHZUABYbaXWsm5ae6loTE4ZDxN4CZar8foVzOJ2iyZ2kWF3t7YIevffaMT5yJ70kQb2fQ1sE5SHr2wazs2wgMxgbsEKEAgxAvZUJbQLBGTSBMgNrncJbA6AljtS/eKDJ0Ez+DmrQEzXS2h1Ck25kAg0IZcUOaydCy4sYnN2fOA+2AP16gNoHALlQ+fwH7XO4CxLenUpgj4xr6ugY2roPMbMx+Xs18m/E8CVEIhxsNeg83XWOAN6grG3lGbk8uE5fr4B/WH3cJw+co/l9nTYsSGYCJ/lY5/qv0thn6nrIWmjeJcPSnWOeY++AkF8tpJHIMAUs/MaBBpj3znZfQo5psY+ZrG4gv5HickjEOymKjEeRpgyST6IuZcTcWbnjcgdPi5ghxciRKsl1lDSsgwA1i8fssonJgzmTSqfGUkCENndNdAL7PS6QQ7ZYISTo+1qq0LEWjTWcvY4isa4z+yfQB+7ooyHVg5RI7/i1Ijn/vnggDggDogD4oC00P4KMACd/juEHOrS4AAAAABJRU5ErkJggg=="/></elements></component><component name="dock"><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFBJREFUeNrs0cEJACAQA8Eofu0fu/W6EM5ZSAFDRpKTBs00CQQEBAQEBAQEBAQEBAQEBATkK8iqbY+AgICAgICAgICAgICAgICAgIC86QowAG5PAQzEJ0lKAAAAAElFTkSuQmCC"/></elements></component><component name="playlist"><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHhJREFUeNrs2NEJwCAMBcBYuv/CFuIE9VN47WWCR7iocXR3pdWdGPqqwIoMjYfQeAiNh9B4JHc6MHQVHnjggQceeOCBBx77TifyeOY0iHi8DqIdEY8dD5cL094eePzINB5CO/LwcOTptNB4CP25L4TIbZzpU7UEGAA5wz1uF5rF9AAAAABJRU5ErkJggg=="/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUeNrsy6ENACAMAMHClp2wYxZLAg5Fcu9e3OjuOKqqfTMzbs14CIZhGIZhGIZhGP4VLwEGAK/BBnVFpB0oAAAAAElFTkSuQmCC"/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNrsy7ENACAMBLE8++8caFFKKiRffU53112SGs3ttOohGIZhGIZhGIZh+Fe8BRgAiaUGde6NOSEAAAAASUVORK5CYII="/></elements></component></components></skin>';
this.xml=null;window.DOMParser?(parser=new DOMParser,this.xml=parser.parseFromString(this.text,"text/xml")):(this.xml=new ActiveXObject("Microsoft.XMLDOM"),this.xml.async="false",this.xml.loadXML(this.text));return this}})(jwplayer);(function(a){_utils=a.utils;_css=_utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};a.html5.display=function(b,c){function d(){m=t.display_image.naturalWidth;C=t.display_image.naturalHeight;f()}function f(){_utils.stretch(y.jwGetStretching(),
t.display_image,s,v,m,C)}function j(a,b){var c=document.createElement(a);c.id=y.id+"_jwplayer_"+b;_css(c,Y[b].style);return c}function l(){for(var a in t)if(_utils.exists(Y[a].click))t[a].onclick=Y[a].click}function h(a){G?k():(t.display_icon.style.backgroundImage=["url(",y.skin.getSkinElement("display",a).src,")"].join(""),_css(t.display_icon,{width:y.skin.getSkinElement("display",a).width,height:y.skin.getSkinElement("display",a).height,top:(y.skin.getSkinElement("display","background").height-
y.skin.getSkinElement("display",a).height)/2,left:(y.skin.getSkinElement("display","background").width-y.skin.getSkinElement("display",a).width)/2}),!g&&n.icons.toString()=="true"&&(_show(t.display_icon),_show(t.display_iconBackground),V()),_utils.exists(y.skin.getSkinElement("display",a+"Over"))?(t.display_icon.onmouseover=function(){t.display_icon.style.backgroundImage=["url(",y.skin.getSkinElement("display",a+"Over").src,")"].join("")},t.display_icon.onmouseout=function(){t.display_icon.style.backgroundImage=
["url(",y.skin.getSkinElement("display",a).src,")"].join("")}):(t.display_icon.onmouseover=null,t.display_icon.onmouseout=null))}function k(){n.icons.toString()=="true"&&(_hide(t.display_icon),_hide(t.display_iconBackground),O())}function e(){t.display_image.style.display="none"}function o(b){if((b.type==a.api.events.JWPLAYER_PLAYER_STATE||b.type==a.api.events.JWPLAYER_PLAYLIST_ITEM)&&G)G=false,_hide(t.display_text);b=y.jwGetState();b!=p&&(p=b,B>=0&&clearTimeout(B),E||y.jwGetState()==a.api.events.state.PLAYING||
y.jwGetState()==a.api.events.state.PAUSED?w(y.jwGetState()):B=setTimeout(q(y.jwGetState()),500))}function q(a){return function(){w(a)}}function w(b){_utils.exists(I)&&(clearInterval(I),I=null,_utils.animations.rotate(t.display_icon,0));switch(b){case a.api.events.state.BUFFERING:_utils.isIOS()?(e(),k()):(y.jwGetPlaylist()[y.jwGetItem()].provider=="sound"&&u(),A=0,I=setInterval(function(){A+=J;_utils.animations.rotate(t.display_icon,A%360)},K),h("bufferIcon"),E=true);break;case a.api.events.state.PAUSED:_utils.isIOS()||
(y.jwGetPlaylist()[y.jwGetItem()].provider!="sound"&&_css(t.display_image,{background:"transparent no-repeat center center"}),h("playIcon"),E=true);break;case a.api.events.state.IDLE:y.jwGetPlaylist()[y.jwGetItem()]&&y.jwGetPlaylist()[y.jwGetItem()].image?u():e();h("playIcon");E=true;break;default:y.jwGetPlaylist()[y.jwGetItem()]&&y.jwGetPlaylist()[y.jwGetItem()].provider=="sound"?_utils.isIOS()?(e(),E=false):u():(e(),E=false),y.jwGetMute()&&n.showmute?h("muteIcon"):k()}B=-1}function u(){if(y.jwGetPlaylist()[y.jwGetItem()]&&
y.jwGetPlaylist()[y.jwGetItem()].image)_css(t.display_image,{display:"block"}),t.display_image.src=_utils.getAbsolutePath(y.jwGetPlaylist()[y.jwGetItem()].image)}function x(a){return function(){L&&!g&&F!=a&&(F=a,M.sendEvent(a,{component:"display",boundingRect:_utils.getDimensions(t.display_iconBackground)}))}}var n=_utils.extend({},{icons:true,showmute:false},c),y=b,t={},s,v,m,C,A,I,G,J=!_utils.exists(y.skin.getComponentSettings("display").bufferrotation)?15:parseInt(y.skin.getComponentSettings("display").bufferrotation,
10),K=!_utils.exists(y.skin.getComponentSettings("display").bufferinterval)?100:parseInt(y.skin.getComponentSettings("display").bufferinterval,10),B=-1,p="",E=true,F,g=false,L=false,M=new a.html5.eventdispatcher;_utils.extend(this,M);var Y={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:function(b){typeof b.preventDefault!="undefined"?b.preventDefault():b.returnValue=false;y.jwGetState()!=a.api.events.state.PLAYING?y.jwPlay():y.jwPause()}},display_icon:{style:{cursor:"pointer",
position:"absolute",top:(y.skin.getSkinElement("display","background").height-y.skin.getSkinElement("display","playIcon").height)/2,left:(y.skin.getSkinElement("display","background").width-y.skin.getSkinElement("display","playIcon").width)/2,border:0,margin:0,padding:0,zIndex:3,display:"none"}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:(v-y.skin.getSkinElement("display","background").height)/2,left:(s-y.skin.getSkinElement("display","background").width)/2,border:0,backgroundImage:["url(",
y.skin.getSkinElement("display","background").src,")"].join(""),width:y.skin.getSkinElement("display","background").width,height:y.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2,display:"none"}},display_image:{style:{display:"none",width:s,height:v,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:0.8,backgroundColor:0,color:16777215,textAlign:"center",fontFamily:"Arial,sans-serif",
padding:"0 5px",fontSize:14}}};y.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,o);y.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,o);y.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,o);y.jwAddEventListener(a.api.events.JWPLAYER_ERROR,function(a){G=true;k();t.display_text.innerHTML=a.error;_show(t.display_text);t.display_text.style.top=(v-t.display_text.getBoundingClientRect().height)/2+"px"});(function(){t.display=j("div","display");t.display_text=j("div","display_text");t.display.appendChild(t.display_text);
t.display_image=j("img","display_image");t.display_image.onerror=function(){_hide(t.display_image)};t.display_image.onload=d;t.display_icon=j("div","display_icon");t.display_iconBackground=j("div","display_iconBackground");t.display.appendChild(t.display_image);t.display_iconBackground.appendChild(t.display_icon);t.display.appendChild(t.display_iconBackground);l();setTimeout(function(){L=true;n.icons.toString()=="true"&&V()},1)})();this.getDisplayElement=function(){return t.display};this.resize=function(a,
b){_css(t.display,{width:a,height:b});_css(t.display_text,{width:a-10,top:(b-t.display_text.getBoundingClientRect().height)/2});_css(t.display_iconBackground,{top:(b-y.skin.getSkinElement("display","background").height)/2,left:(a-y.skin.getSkinElement("display","background").width)/2});if(s!=a||v!=b)s=a,v=b,F=void 0,V();f();o({})};this.show=function(){g&&(g=false,w(y.jwGetState()))};this.hide=function(){g||(k(),g=true)};var V=x(a.api.events.JWPLAYER_COMPONENT_SHOW),O=x(a.api.events.JWPLAYER_COMPONENT_HIDE);
return this}})(jwplayer);(function(a){_css=a.utils.css;a.html5.dock=function(b,c){function d(c,d){if(h.length>0){var f=10,n=-1,o=b.skin.getSkinElement("dock","button").height,s=b.skin.getSkinElement("dock","button").width,x=c-s-10,t,p;j.align==a.html5.view.positions.LEFT&&(n=1,x=10);for(var v=0;v<h.length;v++){var F=Math.floor(f/d);f+o+10>(F+1)*d&&(f=(F+1)*d+10,F=Math.floor(f/d));var g=l[h[v]].div;g.style.top=f%d+"px";g.style.left=x+(b.skin.getSkinElement("dock","button").width+10)*F*n+"px";F={x:a.utils.parseDimension(g.style.left),
y:a.utils.parseDimension(g.style.top),width:s,height:o};if(!t||F.x<=t.x&&F.y<=t.y)t=F;if(!p||F.x>=p.x&&F.y>=p.y)p=F;f+=b.skin.getSkinElement("dock","button").height+10}w={x:t.x,y:t.y,width:p.x-t.x+p.width,height:t.y-p.y+p.height}}if(q!=b.jwGetFullscreen()||k!=c||e!=d)k=c,e=d,q=b.jwGetFullscreen(),u=void 0,setTimeout(y,1)}function f(a){return function(){!o&&u!=a&&h.length>0&&(u=a,x.sendEvent(a,{component:"dock",boundingRect:w}))}}var j=a.utils.extend({},{align:a.html5.view.positions.RIGHT},c);if(j.align!=
"FALSE"){var l={},h=[],k,e,o=false,q=false,w={x:0,y:0,width:0,height:0},u,x=new a.html5.eventdispatcher;_utils.extend(this,x);var n=document.createElement("div");n.id=b.id+"_jwplayer_dock";b.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,function(b){if(a.utils.isIOS())switch(b.newstate){case a.api.events.state.IDLE:s();break;default:v()}});this.getDisplayElement=function(){return n};this.setButton=function(c,f,j,q){if(!f&&l[c])a.utils.arrays.remove(h,c),n.removeChild(l[c].div),delete l[c];
else if(f){l[c]||(l[c]={});l[c].handler=f;l[c].outGraphic=j;l[c].overGraphic=q;if(!l[c].div){h.push(c);l[c].div=document.createElement("div");l[c].div.style.position="relative";n.appendChild(l[c].div);l[c].div.appendChild(document.createElement("img"));l[c].div.childNodes[0].style.position="absolute";l[c].div.childNodes[0].style.left=0;l[c].div.childNodes[0].style.top=0;l[c].div.childNodes[0].style.zIndex=10;l[c].div.childNodes[0].style.cursor="pointer";l[c].div.appendChild(document.createElement("img"));
l[c].div.childNodes[1].style.position="absolute";l[c].div.childNodes[1].style.left=0;l[c].div.childNodes[1].style.top=0;if(b.skin.getSkinElement("dock","button"))l[c].div.childNodes[1].src=b.skin.getSkinElement("dock","button").src;l[c].div.childNodes[1].style.zIndex=9;l[c].div.childNodes[1].style.cursor="pointer";l[c].div.onmouseover=function(){if(l[c].overGraphic)l[c].div.childNodes[0].src=l[c].overGraphic;if(b.skin.getSkinElement("dock","buttonOver"))l[c].div.childNodes[1].src=b.skin.getSkinElement("dock",
"buttonOver").src};l[c].div.onmouseout=function(){if(l[c].outGraphic)l[c].div.childNodes[0].src=l[c].outGraphic;if(b.skin.getSkinElement("dock","button"))l[c].div.childNodes[1].src=b.skin.getSkinElement("dock","button").src};if(l[c].overGraphic)l[c].div.childNodes[0].src=l[c].overGraphic;if(l[c].outGraphic)l[c].div.childNodes[0].src=l[c].outGraphic;if(b.skin.getSkinElement("dock","button"))l[c].div.childNodes[1].src=b.skin.getSkinElement("dock","button").src}if(f)l[c].div.onclick=function(d){d.preventDefault();
a(b.id).callback(c);if(l[c].overGraphic)l[c].div.childNodes[0].src=l[c].overGraphic;if(b.skin.getSkinElement("dock","button"))l[c].div.childNodes[1].src=b.skin.getSkinElement("dock","button").src}}d(k,e)};var y=f(a.api.events.JWPLAYER_COMPONENT_SHOW),t=f(a.api.events.JWPLAYER_COMPONENT_HIDE);this.resize=d;var s=function(){_css(n,{display:"block"});o&&(o=false,y())},v=function(){_css(n,{display:"none"});o||(t(),o=true)};this.hide=v;this.show=s;return this}}})(jwplayer);(function(a){a.html5.eventdispatcher=
function(b,c){var d=new a.events.eventdispatcher(c);a.utils.extend(this,d);this.sendEvent=function(c,j){a.utils.exists(j)||(j={});a.utils.extend(j,{id:b,version:a.version,type:c});d.sendEvent(c,j)}}})(jwplayer);(function(a){var b={prefix:"http://l.longtailvideo.com/html5/",file:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",margin:8,out:0.5,over:1,timeout:5,hide:true,position:"bottom-left"};_css=a.utils.css;a.html5.logo=function(c,d){function f(a){typeof a!="undefined"&&a.stopPropagation();
u&&(e.jwPause(),e.jwSetFullscreen(false),q.link&&window.open(q.link,"_top"))}function j(){if(q.link&&u)w.style.opacity=q.out}function l(){if(q.hide.toString()=="true"&&u)w.style.opacity=q.over}function h(){if(q.hide.toString()=="true")w.style.display="block",w.style.opacity=0,a.utils.fadeTo(w,q.out,0.1,parseFloat(w.style.opacity)),o=setTimeout(function(){u=false;q.hide.toString()=="true"&&a.utils.fadeTo(w,0,0.1,parseFloat(w.style.opacity))},q.timeout*1E3);u=true}function k(b){b.newstate==a.api.events.state.BUFFERING&&
(clearTimeout(o),h())}var e=c,o,q,w,u=false;(function(){if(b.prefix){var e=c.version.split(/\W/).splice(0,2).join("/");b.prefix.indexOf(e)<0&&(b.prefix+=e+"/")}if(d.position==a.html5.view.positions.OVER)d.position=b.position;q=a.utils.extend({},b)})();(function(){w=document.createElement("img");w.id=e.id+"_jwplayer_logo";w.style.display="none";w.onload=function(){var b=_css,c=w,d={textDecoration:"none",position:"absolute",cursor:"pointer"};d.display=q.hide.toString()=="true"?"none":"block";var f=
q.position.toLowerCase().split("-"),h;for(h in f)d[f[h]]=q.margin;b(c,d);e.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,k);j()};if(q.file)w.src=q.file.indexOf("http://")===0?q.file:q.prefix+q.file})();(function(){q.link?(w.onmouseover=l,w.onmouseout=j,w.onclick=f):this.mouseEnabled=false})();if(q.file)return this.resize=function(){},this.getDisplayElement=function(){return w},this}})(jwplayer);(function(a){var b={ended:a.api.events.state.IDLE,playing:a.api.events.state.PLAYING,pause:a.api.events.state.PAUSED,
buffering:a.api.events.state.BUFFERING},c=a.utils,d=c.isIOS();a.html5.mediavideo=function(f,j){function l(b){if(!(b==a.api.events.state.PAUSED&&s==a.api.events.state.IDLE)&&s!=b){var c=s;n.state=s=b;x.sendEvent(a.api.events.JWPLAYER_PLAYER_STATE,{oldstate:c,newstate:b})}}function h(){}function k(b){var d;c.exists(b)&&b.lengthComputable&&b.total?d=b.loaded/b.total*100:c.exists(t.buffered)&&t.buffered.length>0&&(b=t.buffered.length-1,b>=0&&(d=t.buffered.end(b)/t.duration*100));G===false&&s==a.api.events.state.BUFFERING&&
(x.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL),G=true);if(!I&&(d==100&&(I=true),c.exists(d)&&d>n.buffer))n.buffer=Math.round(d),x.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(d)})}function e(a){b[a.type]&&(a.type=="ended"?w():l(b[a.type]))}function o(b){var c={height:b.target.videoHeight,width:b.target.videoWidth,duration:Math.round(b.target.duration*10)/10};if((n.duration===0||isNaN(n.duration))&&b.target.duration!=Infinity)n.duration=Math.round(b.target.duration*
10)/10;x.sendEvent(a.api.events.JWPLAYER_MEDIA_META,{metadata:c})}function q(){c.exists(C)||(C=setInterval(function(){k()},100))}function w(){s!=a.api.events.state.IDLE&&(_stop(false),x.sendEvent(a.api.events.JWPLAYER_MEDIA_COMPLETE))}var u={abort:h,canplay:e,canplaythrough:e,durationchange:o,emptied:h,ended:e,error:function(b){if(s!=a.api.events.state.IDLE){var d="There was an error: ";if(b.target.error&&b.target.tagName.toLowerCase()=="video"||b.target.parentNode.error&&b.target.parentNode.tagName.toLowerCase()==
"video")switch(b=!c.exists(b.target.error)?b.target.parentNode.error:b.target.error,b.code){case b.MEDIA_ERR_ABORTED:d="You aborted the video playback: ";break;case b.MEDIA_ERR_NETWORK:d="A network error caused the video download to fail part-way: ";break;case b.MEDIA_ERR_DECODE:d="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case b.MEDIA_ERR_SRC_NOT_SUPPORTED:d="The video could not be loaded, either because the server or network failed or because the format is not supported: ";
break;default:d="An unknown error occurred: "}else if(b.target.tagName.toLowerCase()=="source"){J--;if(J>0)return;d="The video could not be loaded, either because the server or network failed or because the format is not supported: "}else{c.log("An unknown error occurred. Continuing...");return}_stop(false);var b=d,d="",e;for(e in m.levels){var f=m.levels[e];y.ownerDocument.createElement("source");d+=a.utils.getAbsolutePath(f.file);e<m.levels.length-1&&(d+=", ")}_error=true;x.sendEvent(a.api.events.JWPLAYER_ERROR,
{error:b+d})}},loadeddata:o,loadedmetadata:o,loadstart:e,pause:e,play:h,playing:e,progress:k,ratechange:h,seeked:e,seeking:e,stalled:e,suspend:e,timeupdate:function(b){if(c.exists(b)&&c.exists(b.target)){if(!isNaN(b.target.duration)&&(isNaN(n.duration)||n.duration<1))n.duration=b.target.duration==Infinity?0:Math.round(b.target.duration*10)/10;if(!v&&t.readyState>0)t.style.display="block",l(a.api.events.state.PLAYING);if(s==a.api.events.state.PLAYING){if(!v&&t.readyState>0){v=true;try{if(t.currentTime<
m.start)t.currentTime=m.start}catch(d){}t.volume=n.volume/100;t.muted=n.mute}n.position=n.duration>0?Math.round(b.target.currentTime*10)/10:0;x.sendEvent(a.api.events.JWPLAYER_MEDIA_TIME,{position:n.position,duration:n.duration});n.position>=n.duration&&(n.position>0||n.duration>0)&&w()}}k(b)},volumechange:h,waiting:e,canshowcurrentframe:h,dataunavailable:h,empty:h,load:function(){},loadedfirstframe:h},x=new a.html5.eventdispatcher;c.extend(this,x);var n=f,y=j,t,s,v,m,C,A=false,I,G,J;(function(){t=
document.createElement("video");s=a.api.events.state.IDLE;for(var b in u)t.addEventListener(b,function(a){if(c.exists(a.target.parentNode))u[a.type](a)},true);t.setAttribute("x-webkit-airplay","allow");y.parentNode&&y.parentNode.replaceChild(t,y);if(!t.id)t.id=y.id})();this.load=function(b,e){typeof e=="undefined"&&(e=true);m=b;c.empty(t);J=0;if(b.levels&&b.levels.length>0)if(b.levels.length==1)t.src=b.levels[0].file;else{t.src&&t.removeAttribute("src");for(var f=0;f<b.levels.length;f++){var h=t.ownerDocument.createElement("source");
h.src=b.levels[f].file;t.appendChild(h);J++}}else t.src=b.file;if(d){if(b.image)t.poster=b.image;t.controls="controls";t.style.display="block"}I=G=v=false;n.buffer=0;if(!c.exists(b.start))b.start=0;n.duration=b.duration;x.sendEvent(a.api.events.JWPLAYER_MEDIA_LOADED);(!d&&b.levels.length==1||!A)&&t.load();A=false;e&&(l(a.api.events.state.BUFFERING),x.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0}),this.play())};this.play=function(){s!=a.api.events.state.PLAYING&&(q(),G?l(a.api.events.state.PLAYING):
l(a.api.events.state.BUFFERING),t.play())};this.pause=function(){t.pause();l(a.api.events.state.PAUSED)};this.seek=function(a){if(!(n.duration<=0||isNaN(n.duration))&&!(n.position<=0||isNaN(n.position)))t.currentTime=a,t.play()};_stop=this.stop=function(b){c.exists(b)||(b=true);clearInterval(C);C=null;if(b&&(t.style.display="none",G=false,b=navigator.userAgent,b.match(/chrome/i)?t.src=void 0:b.match(/safari/i)?t.removeAttribute("src"):t.src="",t.removeAttribute("controls"),t.removeAttribute("poster"),
c.empty(t),t.load(),A=true,t.webkitSupportsFullscreen))try{t.webkitExitFullscreen()}catch(d){}l(a.api.events.state.IDLE)};this.fullscreen=function(a){a===true?this.resize("100%","100%"):this.resize(n.config.width,n.config.height)};this.resize=function(b,c){x.sendEvent(a.api.events.JWPLAYER_MEDIA_RESIZE,{fullscreen:n.fullscreen,width:b,hieght:c})};this.volume=function(b){if(!d)t.volume=b/100,n.volume=b,x.sendEvent(a.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(b)})};this.mute=function(b){if(!d)t.muted=
b,n.mute=b,x.sendEvent(a.api.events.JWPLAYER_MEDIA_MUTE,{mute:b})};this.getDisplayElement=function(){return t};this.hasChrome=function(){return false}}})(jwplayer);(function(a){var b=a.utils.css;a.html5.mediayoutube=function(c,d){function f(b){if(k!=b){var c=k;k=l.state=b;j.sendEvent(a.api.events.JWPLAYER_PLAYER_STATE,{oldstate:c,newstate:b})}}var j=new a.html5.eventdispatcher;a.utils.extend(this,j);var l=c,h=document.getElementById(d.id),k=a.api.events.state.IDLE,e,o;this.getDisplayElement=function(){return h};
this.play=function(){k==a.api.events.state.IDLE?(j.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:100}),j.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL),f(a.api.events.state.PLAYING)):k==a.api.events.state.PAUSED&&f(a.api.events.state.PLAYING)};this.pause=function(){f(a.api.events.state.PAUSED)};this.seek=function(){};this.stop=function(c){_utils.exists(c)||(c=true);l.position=0;f(a.api.events.state.IDLE);c&&b(h,{display:"none"})};this.volume=function(b){l.volume=b;j.sendEvent(a.api.events.JWPLAYER_MEDIA_VOLUME,
{volume:Math.round(b)})};this.mute=function(b){h.muted=b;l.mute=b;j.sendEvent(a.api.events.JWPLAYER_MEDIA_MUTE,{mute:b})};this.resize=function(b,c){if(b*c>0&&e)e.width=o.width=b,e.height=o.height=c;j.sendEvent(a.api.events.JWPLAYER_MEDIA_RESIZE,{fullscreen:l.fullscreen,width:b,height:c})};this.fullscreen=function(a){a===true?this.resize("100%","100%"):this.resize(l.config.width,l.config.height)};this.load=function(c){for(var c=c.levels[0].file,d=c.split(/\?|\#\!/),k="",l=0;l<d.length;l++)d[l].substr(0,
2)=="v="&&(k=d[l].substr(2));k==""&&(k=c.indexOf("/v/")>=0?c.substr(c.indexOf("/v/")+3):c.indexOf("youtu.be")>=0?c.substr(c.indexOf("youtu.be/")+9):c);k.indexOf("?")>-1&&(k=k.substr(0,k.indexOf("?")));k.indexOf("&")>-1&&(k=k.substr(0,k.indexOf("&")));c=["http://www.youtube.com/v/",k,"&hl=en_US&fs=1&autoplay=1"].join("");e=document.createElement("object");e.id=h.id;e.style.position="absolute";var d={movie:c,allowfullscreen:"true",allowscriptaccess:"always"},n;for(n in d)k=document.createElement("param"),
k.name=n,k.value=d[n],e.appendChild(k);o=document.createElement("embed");e.appendChild(o);n={src:c,type:"application/x-shockwave-flash",allowfullscreen:"true",allowscriptaccess:"always",width:e.width,height:e.height};for(var y in n)o.setAttribute(y,n[y]);e.appendChild(o);e.style.zIndex=2147483E3;h!=e&&h.parentNode&&h.parentNode.replaceChild(e,h);h=e;b(e,{display:"block"});f(a.api.events.state.BUFFERING);j.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});j.sendEvent(a.api.events.JWPLAYER_MEDIA_LOADED);
this.play()};this.hasChrome=function(){return k!=a.api.events.state.IDLE};this.embed=o;return this}})(jwplayer);(function(a){var b="width,height,start,duration,volume,mute,fullscreen,item,plugins,stretching".split(",");a.html5.model=function(c,d,f){function j(b){var c=new a.html5.playlistloader;c.addEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,function(b){e.playlist=new a.html5.playlist(b);l(true)});c.addEventListener(a.api.events.JWPLAYER_ERROR,function(){e.playlist=new a.html5.playlist({playlist:[]});
l(false)});c.load(b)}function l(){if(e.config.shuffle){var b=e,c=null;if(e.playlist.length>1)for(;!a.utils.exists(c);)c=Math.floor(Math.random()*e.playlist.length),c==e.item&&(c=null);else c=0;b.item=c}else{if(e.config.item>=e.playlist.length)e.config.item=e.playlist.length-1;else if(e.config.item<0)e.config.item=0;e.item=e.config.item}q.sendEvent(a.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:e.playlist});q.sendEvent(a.api.events.JWPLAYER_PLAYLIST_ITEM,{index:e.item})}function h(b){b.type==a.api.events.JWPLAYER_MEDIA_LOADED&&
(k=o.getDisplayElement());q.sendEvent(b.type,b)}var k=d,e={id:k.id,playlist:[],state:a.api.events.state.IDLE,position:0,buffer:0,config:{width:480,height:320,item:-1,skin:void 0,file:void 0,image:void 0,start:0,duration:0,bufferlength:5,volume:90,mute:false,fullscreen:false,repeat:"",stretching:a.utils.stretching.UNIFORM,autostart:false,debug:void 0,screencolor:void 0}},o,q=new a.html5.eventdispatcher;a.utils.extend(e,q);for(var w in f){typeof f[w]=="string"&&(d=/color$/.test(w)?"color":null,f[w]=
a.utils.typechecker(f[w],d));var d=e.config,u=w.split("."),x;for(x in u)x==u.length-1?d[u[x]]=f[w]:(a.utils.exists(d[u[x]])||(d[u[x]]={}),d=d[u[x]])}for(var n in b)f=b[n],e[f]=e.config[f];n=["display","logo","controlbar","playlist","dock"].concat([]);if(a.utils.exists(e.plugins)&&typeof e.plugins=="string"){var f=e.plugins.split(","),y;for(y in f)typeof f[y]=="string"&&n.push(f[y].replace(/^\s+|\s+$/g,""))}if(a.utils.isIOS()){if(n=["display","logo","dock","playlist"],!a.utils.exists(e.config.repeat))e.config.repeat=
"list"}else if(e.config.chromeless&&(n=["logo","dock","playlist"],!a.utils.exists(e.config.repeat)))e.config.repeat="list";e.plugins={order:n,config:{},object:{}};if(typeof e.config.components!="undefined")for(var t in e.config.components)e.plugins.config[t]=e.config.components[t];for(var s in e.plugins.order)y=e.plugins.order[s],t=!a.utils.exists(e.plugins.config[y])?{}:e.plugins.config[y],e.plugins.config[y]=!a.utils.exists(e.plugins.config[y])?t:a.utils.extend(e.plugins.config[y],t),e.plugins.config[y].position=
a.utils.exists(e.plugins.config[y].position)?e.plugins.config[y].position.toString().toUpperCase():y=="playlist"?a.html5.view.positions.NONE:a.html5.view.positions.OVER;if(typeof e.plugins.config.dock!="undefined"){if(typeof e.plugins.config.dock!="object")s=e.plugins.config.dock.toString().toUpperCase(),e.plugins.config.dock={position:s};if(typeof e.plugins.config.dock.position!="undefined")e.plugins.config.dock.align=e.plugins.config.dock.position,e.plugins.config.dock.position=a.html5.view.positions.OVER}e.loadPlaylist=
function(b){var c;if(typeof b=="string")if(b.indexOf("[")==0||b.indexOf("{")=="0")try{c=eval(b)}catch(d){c=b}else c=b;else c=b;switch(a.utils.typeOf(c)){case "object":b=c;break;case "array":b={playlist:c};break;default:j(c);return}e.playlist=new a.html5.playlist(b);a.utils.extension(e.playlist[0].file)=="xml"?j(e.playlist[0].file):l()};var v={};e.setActiveMediaProvider=function(b){if(b.provider=="audio")b.provider="sound";var b=b.provider,c=o?o.getDisplayElement():null;if(b=="sound"||b=="http"||b==
"")b="video";if(a.utils.exists(v[b]))o!=v[b]&&(o&&o.stop(),o=v[b]);else{switch(b){case "video":o=new a.html5.mediavideo(e,c?c:k);break;case "youtube":o=new a.html5.mediayoutube(e,c?c:k)}if(!a.utils.exists(o))return false;o.addGlobalListener(h);v[b]=o}return true};e.getMedia=function(){return o};e.seek=function(b){q.sendEvent(a.api.events.JWPLAYER_MEDIA_SEEK,{position:e.position,offset:b});return o.seek(b)};e.setupPlugins=function(){if(!a.utils.exists(e.plugins)||!a.utils.exists(e.plugins.order)||
e.plugins.order.length==0)return a.utils.log("No plugins to set up"),e;for(var b=0;b<e.plugins.order.length;b++)try{var d=e.plugins.order[b];a.utils.exists(a.html5[d])?e.plugins.object[d]=d=="playlist"?new a.html5.playlistcomponent(c,e.plugins.config[d]):new a.html5[d](c,e.plugins.config[d]):e.plugins.order.splice(plugin,plugin+1);typeof e.plugins.object[d].addGlobalListener=="function"&&e.plugins.object[d].addGlobalListener(h)}catch(f){a.utils.log("Could not setup "+d)}};return e}})(jwplayer);(function(a){a.html5.playlist=
function(b){var c=[];if(b.playlist&&b.playlist instanceof Array&&b.playlist.length>0)for(var d in b.playlist)isNaN(parseInt(d))||c.push(new a.html5.playlistitem(b.playlist[d]));else c.push(new a.html5.playlistitem(b));return c}})(jwplayer);(function(a){var b={size:180,position:a.html5.view.positions.NONE,itemheight:60,thumbs:true,fontcolor:"#000000",overcolor:"",activecolor:"",backgroundcolor:"#f8f8f8",font:"_sans",fontsize:"",fontstyle:"",fontweight:""},c={_sans:"Arial, Helvetica, sans-serif",_serif:"Times, Times New Roman, serif",
_typewriter:"Courier New, Courier, monospace"};_utils=a.utils;_css=_utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};a.html5.playlistcomponent=function(d,f){function j(a){return function(){var b=v.getElementsByClassName("item")[a],c=x.fontcolor,d=C.item?"url("+C.item.src+")":"";if(a==u.jwGetPlaylistIndex()){if(x.activecolor!=="")c=x.activecolor;C.itemActive&&(d="url("+C.itemActive.src+")")}_css(b,{color:x.overcolor!==""?x.overcolor:c,backgroundImage:C.itemOver?
"url("+C.itemOver.src+")":d})}}function l(a){return function(){var b=v.getElementsByClassName("item")[a],c=x.fontcolor,d=C.item?"url("+C.item.src+")":"";if(a==u.jwGetPlaylistIndex()){if(x.activecolor!=="")c=x.activecolor;C.itemActive&&(d="url("+C.itemActive.src+")")}_css(b,{color:c,backgroundImage:d})}}function h(b){var c=s[b],d=document.createElement("li");d.className="item";_css(d,{height:x.itemheight,display:"block",cursor:"pointer",backgroundImage:C.item?"url("+C.item.src+")":"",backgroundSize:"100% "+
x.itemheight+"px"});d.onmouseover=j(b);d.onmouseout=l(b);var e=document.createElement("div"),f=new Image,h=b=0,k=0;if(x.thumbs.toString().toLowerCase()=="true"&&(c.image||c["playlist.image"]||C.itemImage)){f.className="image";C.itemImage?(b=(x.itemheight-C.itemImage.height)/2,h=C.itemImage.width,k=C.itemImage.height):(h=x.itemheight*4/3,k=x.itemheight);_css(e,{height:k,width:h,"float":"left",styleFloat:"left",cssFloat:"left",margin:"0 5px 0 0",background:"black",overflow:"hidden",margin:b+"px",position:"relative"});
_css(f,{position:"relative"});e.appendChild(f);f.onload=function(){a.utils.stretch(a.utils.stretching.FILL,f,h,k,this.naturalWidth,this.naturalHeight)};if(c["playlist.image"])f.src=c["playlist.image"];else if(c.image)f.src=c.image;else if(C.itemImage)f.src=C.itemImage.src;d.appendChild(e)}var m=y-h-b*2;t<x.itemheight*s.length&&(m-=15);e=document.createElement("div");_css(e,{position:"relative",height:"100%",overflow:"hidden"});var n=document.createElement("span");if(c.duration>0)n.className="duration",
_css(n,{fontSize:(x.fontsize?x.fontsize:11)+"px",fontWeight:x.fontweight?x.fontweight:"bold",width:"40px",height:x.fontsize?x.fontsize+10:20,lineHeight:24,"float":"right",styleFloat:"right",cssFloat:"right"}),n.innerHTML=_utils.timeFormat(c.duration),e.appendChild(n);n=document.createElement("span");n.className="title";_css(n,{padding:"5px 5px 0 "+(b?0:"5px"),height:x.fontsize?x.fontsize+10:20,lineHeight:x.fontsize?x.fontsize+10:20,overflow:"hidden","float":"left",styleFloat:"left",cssFloat:"left",
width:(c.duration>0?m-50:m)-10+"px",fontSize:(x.fontsize?x.fontsize:13)+"px",fontWeight:x.fontweight?x.fontweight:"bold"});n.innerHTML=c?c.title:"";e.appendChild(n);if(c.description)b=document.createElement("span"),b.className="description",_css(b,{display:"block","float":"left",styleFloat:"left",cssFloat:"left",margin:0,paddingLeft:n.style.paddingLeft,paddingRight:n.style.paddingRight,lineHeight:(x.fontsize?x.fontsize+4:16)+"px",overflow:"hidden",position:"relative"}),b.innerHTML=c.description,e.appendChild(b);
d.appendChild(e);return d}function k(){n.innerHTML="";if(s=u.jwGetPlaylist()){items=[];var a=document.createElement("ul");_css(a,{width:n.style.width,minWidth:n.style.width,height:n.style.height,backgroundColor:x.backgroundcolor,backgroundImage:C.background?"url("+C.background.src+")":"",color:x.fontcolor,listStyle:"none",margin:0,padding:0,fontFamily:c[x.font]?c[x.font]:c._sans,fontSize:(x.fontsize?x.fontsize:11)+"px",fontStyle:x.fontstyle,fontWeight:x.fontweight,overflowY:"auto"});v=a;for(a=0;a<
s.length;a++){var b=h(a);b.onclick=e(a);v.appendChild(b);items.push(b)}m=u.jwGetPlaylistIndex();l(m)();n.appendChild(v);if(_utils.isIOS()&&window.iScroll)v.style.height=x.itemheight*s.length+"px",new iScroll(n.id)}}function e(a){return function(){u.jwPlaylistItem(a);u.jwPlay(true)}}function o(a){if(m>=0)l(m)(),m=a.index;l(a.index)();v.scrollTop=u.jwGetPlaylistIndex()*x.itemheight}function q(){if(x.position==a.html5.view.positions.OVER)switch(u.jwGetState()){case a.api.events.state.IDLE:_show(n);break;
default:_hide(n)}}function w(){for(var a in C)C[a]=u.skin.getSkinElement("playlist",a)}var u=d,x=a.utils.extend({},b,u.skin.getComponentSettings("playlist"),f);if(!(x.position==a.html5.view.positions.NONE||typeof a.html5.view.positions[x.position]=="undefined")){var n,y,t,s,v,m=-1,C={background:void 0,item:void 0,itemOver:void 0,itemImage:void 0,itemActive:void 0};this.getDisplayElement=function(){return n};this.resize=function(a,b){y=a;t=b;u.jwGetFullscreen()?_hide(n):_css(n,{display:"block",width:y,
height:t})};this.show=function(){_show(n)};this.hide=function(){_hide(n)};n=document.createElement("div");n.id=u.id+"_jwplayer_playlistcomponent";switch(x.position){case a.html5.view.positions.RIGHT:case a.html5.view.positions.LEFT:n.style.width=x.size+"px";break;case a.html5.view.positions.TOP:case a.html5.view.positions.BOTTOM:n.style.height=x.size+"px"}w();if(C.item)x.itemheight=C.item.height;n.style.backgroundColor="#C6C6C6";u.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,k);u.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,
o);u.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,q);return this}}})(jwplayer);(function(a){function b(b){if(a.utils.isYouTube(b.file))return"youtube";else{var d=a.utils.extension(b.file),f;if(d&&a.utils.extensionmap[d]){if(d=="m3u8")return"video";f=a.utils.extensionmap[d].html5}else if(b.type)f=b.type;if(f)if(b=f.split("/")[0],b=="audio")return"sound";else if(b=="video")return b}return""}a.html5.playlistitem=function(c){c=a.utils.extend({},{author:"",date:"",description:"",image:"",link:"",
mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]},c);if(c.type)c.provider=c.type,delete c.type;c.levels.length===0&&(c.levels[0]=new a.html5.playlistitemlevel(c));c.provider=c.provider?c.provider.toLowerCase():b(c.levels[0]);return c}})(jwplayer);(function(a){a.html5.playlistitemlevel=function(b){var c={file:"",streamer:"",bitrate:0,width:0},d;for(d in c)a.utils.exists(b[d])&&(c[d]=b[d]);return c}})(jwplayer);(function(a){a.html5.playlistloader=
function(){function b(b){var j=[];try{j=a.utils.parsers.rssparser.parse(b.responseXML.firstChild),d.sendEvent(a.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:new a.html5.playlist({playlist:j})})}catch(l){c("Could not parse the playlist")}}function c(b){d.sendEvent(a.api.events.JWPLAYER_ERROR,{error:b?b:"could not load playlist for whatever reason. too bad"})}var d=new a.html5.eventdispatcher;a.utils.extend(this,d);this.load=function(d){a.utils.ajax(d,b,c)}}})(jwplayer);(function(a){a.html5.skin=
function(){var b={},c=false;this.load=function(d,f){new a.html5.skinloader(d,function(a){c=true;b=a;f()},function(){new a.html5.skinloader("",function(a){c=true;b=a;f()})})};this.getSkinElement=function(d,f){if(c)try{return b[d].elements[f]}catch(j){a.utils.log("No such skin component / element: ",[d,f])}return null};this.getComponentSettings=function(a){return c?b[a].settings:null};this.getComponentLayout=function(a){return c?b[a].layout:null}}})(jwplayer);(function(a){a.html5.skinloader=function(b,
c,d){function f(b){b=b.getElementsByTagName("component");if(b.length!==0)for(var c=0;c<b.length;c++){var d=b[c].getAttribute("name");h[d]={settings:{},elements:{},layout:{}};for(var e=b[c].getElementsByTagName("elements")[0].getElementsByTagName("element"),f=0;f<e.length;f++)l(e[f],d);if((e=b[c].getElementsByTagName("settings")[0])&&e.childNodes.length>0){e=e.getElementsByTagName("setting");for(f=0;f<e.length;f++){var k=e[f].getAttribute("name"),m=e[f].getAttribute("value"),q=/color$/.test(k)?"color":
null;h[d].settings[k]=a.utils.typechecker(m,q)}}if((e=b[c].getElementsByTagName("layout")[0])&&e.childNodes.length>0){e=e.getElementsByTagName("group");for(f=0;f<e.length;f++){k=e[f];h[d].layout[k.getAttribute("position")]={elements:[]};for(m=0;m<k.attributes.length;m++)q=k.attributes[m],h[d].layout[k.getAttribute("position")][q.name]=q.value;m=k.getElementsByTagName("*");for(q=0;q<m.length;q++){var u=m[q];h[d].layout[k.getAttribute("position")].elements.push({type:u.tagName});for(var w=0;w<u.attributes.length;w++){var G=
u.attributes[w];h[d].layout[k.getAttribute("position")].elements[q][G.name]=G.value}if(!a.utils.exists(h[d].layout[k.getAttribute("position")].elements[q].name))h[d].layout[k.getAttribute("position")].elements[q].name=u.tagName}}}o=false;j()}}function j(){clearInterval(q);u||(q=setInterval(function(){a:{for(var a in h)if(a!="properties")for(var b in h[a].elements)if(!h[a].elements[b].ready)break a;o===false&&(clearInterval(q),k(h))}},100))}function l(b,c){var d=new Image,f=b.getAttribute("name"),
k=b.getAttribute("src");if(k.indexOf("data:image/png;base64,")!==0)var l=a.utils.getAbsolutePath(w),k=[l.substr(0,l.lastIndexOf("/")),c,k].join("/");h[c].elements[f]={height:0,width:0,src:"",ready:false,image:d};d.onload=function(){h[c]&&h[c].elements[f]?(h[c].elements[f].height=d.height,h[c].elements[f].width=d.width,h[c].elements[f].src=d.src,h[c].elements[f].ready=true,j()):a.utils.log("Loaded an image for a missing element: "+c+"."+f)};d.onerror=function(){u=true;j();e()};d.src=k}var h={},k=c,
e=d,o=true,q,w=b,u=false;(function(){typeof w!="string"||w===""?f(a.html5.defaultSkin().xml):a.utils.ajax(a.utils.getAbsolutePath(w),function(b){try{if(a.utils.exists(b.responseXML)){f(b.responseXML);return}}catch(c){for(var d in h){var b=h[d],e;for(e in b.elements){var j=b.elements[e],k=j.image;k.onload=null;k.onerror=null;delete j.image;delete b.elements[e]}delete h[d]}}f(a.html5.defaultSkin().xml)},function(){f(a.html5.defaultSkin().xml)})})()}})(jwplayer);(function(a){a.html5.api=function(b,c){function d(){o.state==
a.api.events.state.PLAYING||o.state==a.api.events.state.BUFFERING?w.pause():w.play()}function f(a){return function(){return o[a]}}function j(a,b,c){return function(){var d=o.plugins.object[a];d&&d[b]&&typeof d[b]=="function"&&d[b].apply(d,c)}}function l(){o.config.playlistfile?(o.addEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,h),o.loadPlaylist(o.config.playlistfile)):typeof o.config.playlist=="string"?(o.addEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,h),o.loadPlaylist(o.config.playlist)):
(o.loadPlaylist(o.config),setTimeout(h,25))}function h(b){o.removeEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,h);o.setupPlugins();q.setup();b={id:k.id,version:k.version};w.playerReady(b)}var k={},e=document.createElement("div");b.parentNode.replaceChild(e,b);e.id=b.id;k.version=a.version;k.id=e.id;var o=new a.html5.model(k,e,c),q=new a.html5.view(k,e,o),w=new a.html5.controller(k,e,o,q);k.skin=new a.html5.skin;k.jwPlay=function(a){typeof a=="undefined"?d():a.toString().toLowerCase()=="true"?
w.play():w.pause()};k.jwPause=function(a){typeof a=="undefined"?d():a.toString().toLowerCase()=="true"?w.pause():w.play()};k.jwStop=w.stop;k.jwSeek=w.seek;k.jwPlaylistItem=w.item;k.jwPlaylistNext=w.next;k.jwPlaylistPrev=w.prev;k.jwResize=w.resize;k.jwLoad=w.load;k.jwGetItem=f("item");k.jwGetPosition=f("position");k.jwGetDuration=f("duration");k.jwGetBuffer=f("buffer");k.jwGetWidth=f("width");k.jwGetHeight=f("height");k.jwGetFullscreen=f("fullscreen");k.jwSetFullscreen=w.setFullscreen;k.jwGetVolume=
f("volume");k.jwSetVolume=w.setVolume;k.jwGetMute=f("mute");k.jwSetMute=w.setMute;k.jwGetStretching=f("stretching");k.jwGetState=f("state");k.jwGetVersion=function(){return k.version};k.jwGetPlaylist=function(){return o.playlist};k.jwGetPlaylistIndex=k.jwGetItem;k.jwAddEventListener=w.addEventListener;k.jwRemoveEventListener=w.removeEventListener;k.jwSendEvent=w.sendEvent;k.jwDockSetButton=function(a,b,c,d){o.plugins.object.dock&&o.plugins.object.dock.setButton&&o.plugins.object.dock.setButton(a,
b,c,d)};k.jwControlbarShow=j("controlbar","show");k.jwControlbarHide=j("controlbar","hide");k.jwDockShow=j("dock","show");k.jwDockHide=j("dock","hide");k.jwDisplayShow=j("display","show");k.jwDisplayHide=j("display","hide");k.jwGetLevel=function(){};k.jwGetBandwidth=function(){};k.jwGetLockState=function(){};k.jwLock=function(){};k.jwUnlock=function(){};o.config.chromeless&&!a.utils.isIOS()?l():k.skin.load(o.config.skin,l);return k}})(jwplayer)};(function(a,b){function c(b,c){var l=b.nodeName.toLowerCase();if("area"===l){c=b.parentNode;l=c.name;if(!b.href||!l||c.nodeName.toLowerCase()!=="map")return false;b=a("img[usemap=#"+l+"]")[0];return!!b&&d(b)}return(/input|select|textarea|button|object/.test(l)?!b.disabled:"a"==l?b.href||c:c)&&d(b)}function d(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};a.ui.version||(a.extend(a.ui,{version:"1.8.16",
keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(b,c){return typeof b==="number"?this.each(function(){var d=
this;setTimeout(function(){a(d).focus();c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;b=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,
"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length)for(var c=a(this[0]),d;c.length&&c[0]!==document;){d=c.css("position");if(d==="absolute"||d==="relative"||d==="fixed")if(d=parseInt(c.css("zIndex"),10),!isNaN(d)&&d!==0)return d;c=c.parent()}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":
"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.each(["Width","Height"],function(c,d){function l(b,c,d,e){a.each(h,function(){c-=parseFloat(a.curCSS(b,"padding"+this,true))||0;d&&(c-=parseFloat(a.curCSS(b,"border"+this+"Width",true))||0);e&&(c-=parseFloat(a.curCSS(b,"margin"+this,true))||0)});return c}var h=d==="Width"?["Left","Right"]:["Top","Bottom"],k=d.toLowerCase(),e={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,
outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){return c===b?e["inner"+d].call(this):this.each(function(){a(this).css(k,l(this,c)+"px")})};a.fn["outer"+d]=function(b,c){return typeof b!=="number"?e["outer"+d].call(this,b):this.each(function(){a(this).css(k,l(this,b,true,c)+"px")})}}),a.extend(a.expr[":"],{data:function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return c(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var d=a.attr(b,"tabindex"),
l=isNaN(d);return(l||d>=0)&&c(b,!l)}}),a(function(){var b=document.body,c=b.appendChild(c=document.createElement("div"));a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=c.offsetHeight===100;a.support.selectstart="onselectstart"in c;b.removeChild(c).style.display="none"}),a.extend(a.ui,{plugin:{add:function(b,c,d){var b=a.ui[b].prototype,h;for(h in d)b.plugins[h]=b.plugins[h]||[],b.plugins[h].push([c,d[h]])},call:function(a,b,c){if((b=a.plugins[b])&&
a.element[0].parentNode)for(var d=0;d<b.length;d++)a.options[b[d][0]]&&b[d][1].apply(a.element,c)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(b,c){if(a(b).css("overflow")==="hidden")return false;var c=c&&c==="left"?"scrollLeft":"scrollTop",d=false;if(b[c]>0)return true;b[c]=1;d=b[c]>0;b[c]=0;return d},isOverAxis:function(a,b,c){return a>b&&a<b+c},isOver:function(b,c,d,h,k,e){return a.ui.isOverAxis(b,d,k)&&
a.ui.isOverAxis(c,h,e)}}))})(jQuery);
(function(a,b){if(a.cleanData){var c=a.cleanData;a.cleanData=function(b){for(var d=0,l;(l=b[d])!=null;d++)try{a(l).triggerHandler("remove")}catch(h){}c(b)}}else{var d=a.fn.remove;a.fn.remove=function(b,c){return this.each(function(){c||(!b||a.filter(b,[this]).length)&&a("*",this).add([this]).each(function(){try{a(this).triggerHandler("remove")}catch(b){}});return d.call(a(this),b,c)})}}a.widget=function(b,c,d){var h=b.split(".")[0],k,b=b.split(".")[1];k=h+"-"+b;if(!d)d=c,c=a.Widget;a.expr[":"][k]=
function(c){return!!a.data(c,b)};a[h]=a[h]||{};a[h][b]=function(a,b){arguments.length&&this._createWidget(a,b)};c=new c;c.options=a.extend(true,{},c.options);a[h][b].prototype=a.extend(true,c,{namespace:h,widgetName:b,widgetEventPrefix:a[h][b].prototype.widgetEventPrefix||b,widgetBaseClass:k},d);a.widget.bridge(b,a[h][b])};a.widget.bridge=function(c,d){a.fn[c]=function(l){var h=typeof l==="string",k=Array.prototype.slice.call(arguments,1),e=this,l=!h&&k.length?a.extend.apply(null,[true,l].concat(k)):
l;if(h&&l.charAt(0)==="_")return e;h?this.each(function(){var d=a.data(this,c),h=d&&a.isFunction(d[l])?d[l].apply(d,k):d;if(h!==d&&h!==b)return e=h,false}):this.each(function(){var b=a.data(this,c);b?b.option(l||{})._init():a.data(this,c,new d(l,this))});return e}};a.Widget=function(a,b){arguments.length&&this._createWidget(a,b)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(b,c){a.data(c,this.widgetName,this);this.element=a(c);this.options=
a.extend(true,{},this.options,this._getCreateOptions(),b);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+
"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(c,d){var l=c;if(arguments.length===0)return a.extend({},this.options);if(typeof c==="string"){if(d===b)return this.options[c];l={};l[c]=d}this._setOptions(l);return this},_setOptions:function(b){var c=this;a.each(b,function(a,b){c._setOption(a,b)});return this},_setOption:function(a,b){this.options[a]=b;a==="disabled"&&this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",
b);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(b,c,d){var h=this.options[b],c=a.Event(c);c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();d=d||{};if(c.originalEvent)for(var b=a.event.props.length,k;b;)k=a.event.props[--b],c[k]=c.originalEvent[k];this.element.trigger(c,d);return!(a.isFunction(h)&&h.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);
(function(a){var b=false;a(document).mouseup(function(){b=false});a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(d){if(true===a.data(d.target,b.widgetName+".preventClickEvent"))return a.removeData(d.target,b.widgetName+".preventClickEvent"),d.stopImmediatePropagation(),false});this.started=false},_mouseDestroy:function(){this.element.unbind("."+
this.widgetName)},_mouseDown:function(c){if(!b){this._mouseStarted&&this._mouseUp(c);this._mouseDownEvent=c;var d=this,f=c.which==1,j=typeof this.options.cancel=="string"&&c.target.nodeName?a(c.target).closest(this.options.cancel).length:false;if(!f||j||!this._mouseCapture(c))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(c)&&this._mouseDelayMet(c)&&(this._mouseStarted=
this._mouseStart(c)!==false,!this._mouseStarted))return c.preventDefault(),true;true===a.data(c.target,this.widgetName+".preventClickEvent")&&a.removeData(c.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(a){return d._mouseMove(a)};this._mouseUpDelegate=function(a){return d._mouseUp(a)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);c.preventDefault();return b=true}},_mouseMove:function(b){if(a.browser.msie&&
!(document.documentMode>=9)&&!b.button)return this._mouseUp(b);if(this._mouseStarted)return this._mouseDrag(b),b.preventDefault();if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==false)?this._mouseDrag(b):this._mouseUp(b);return!this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted)this._mouseStarted=
false,b.target==this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",true),this._mouseStop(b);return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
(function(a){a.widget("ui.slider",a.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var b=this,c=this.options,d=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f=c.values&&c.values.length||1,j=[];this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+
this.orientation+" ui-widget ui-widget-content ui-corner-all"+(c.disabled?" ui-slider-disabled ui-disabled":""));this.range=a([]);if(c.range){if(c.range===true){if(!c.values)c.values=[this._valueMin(),this._valueMin()];if(c.values.length&&c.values.length!==2)c.values=[c.values[0],c.values[0]]}this.range=a("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(c.range==="min"||c.range==="max"?" ui-slider-range-"+c.range:""))}for(var l=d.length;l<f;l+=1)j.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");
this.handles=d.add(a(j.join("")).appendTo(b.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(a){a.preventDefault()}).hover(function(){c.disabled||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){c.disabled?a(this).blur():(a(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),a(this).addClass("ui-state-focus"))}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(b){a(this).data("index.ui-slider-handle",
b)});this.handles.keydown(function(c){var d=true,e=a(this).data("index.ui-slider-handle"),f,j,l;if(!b.options.disabled){switch(c.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(d=false,!b._keySliding&&(b._keySliding=true,a(this).addClass("ui-state-active"),f=b._start(c,e),f===false))return}l=b.options.step;f=b.options.values&&b.options.values.length?
j=b.values(e):j=b.value();switch(c.keyCode){case a.ui.keyCode.HOME:j=b._valueMin();break;case a.ui.keyCode.END:j=b._valueMax();break;case a.ui.keyCode.PAGE_UP:j=b._trimAlignValue(f+(b._valueMax()-b._valueMin())/5);break;case a.ui.keyCode.PAGE_DOWN:j=b._trimAlignValue(f-(b._valueMax()-b._valueMin())/5);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(f===b._valueMax())return;j=b._trimAlignValue(f+l);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(f===b._valueMin())return;j=b._trimAlignValue(f-
l)}b._slide(c,e,j);return d}}).keyup(function(c){var d=a(this).data("index.ui-slider-handle");if(b._keySliding)b._keySliding=false,b._stop(c,d),b._change(c,d),a(this).removeClass("ui-state-active")});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();
return this},_mouseCapture:function(b){var c=this.options,d,f,j,l,h;if(c.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();d=this._normValueFromMouse({x:b.pageX,y:b.pageY});f=this._valueMax()-this._valueMin()+1;l=this;this.handles.each(function(b){var c=Math.abs(d-l.values(b));f>c&&(f=c,j=a(this),h=b)});c.range===true&&this.values(1)===c.min&&(h+=1,j=a(this.handles[h]));if(this._start(b,h)===false)return false;
this._mouseSliding=true;l._handleIndex=h;j.addClass("ui-state-active").focus();c=j.offset();this._clickOffset=!a(b.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:b.pageX-c.left-j.width()/2,top:b.pageY-c.top-j.height()/2-(parseInt(j.css("borderTopWidth"),10)||0)-(parseInt(j.css("borderBottomWidth"),10)||0)+(parseInt(j.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(b,h,d);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(a){var c=
this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,c);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var c;this.orientation==="horizontal"?
(c=this.elementSize.width,a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(c=this.elementSize.height,a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0));c=a/c;c>1&&(c=1);c<0&&(c=0);this.orientation==="vertical"&&(c=1-c);a=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+c*a)},_start:function(a,c){var d={handle:this.handles[c],value:this.value()};if(this.options.values&&this.options.values.length)d.value=this.values(c),
d.values=this.values();return this._trigger("start",a,d)},_slide:function(a,c,d){var f;if(this.options.values&&this.options.values.length){f=this.values(c?0:1);if(this.options.values.length===2&&this.options.range===true&&(c===0&&d>f||c===1&&d<f))d=f;d!==this.values(c)&&(f=this.values(),f[c]=d,a=this._trigger("slide",a,{handle:this.handles[c],value:d,values:f}),this.values(c?0:1),a!==false&&this.values(c,d,true))}else d!==this.value()&&(a=this._trigger("slide",a,{handle:this.handles[c],value:d}),
a!==false&&this.value(d))},_stop:function(a,c){var d={handle:this.handles[c],value:this.value()};if(this.options.values&&this.options.values.length)d.value=this.values(c),d.values=this.values();this._trigger("stop",a,d)},_change:function(a,c){if(!this._keySliding&&!this._mouseSliding){var d={handle:this.handles[c],value:this.value()};if(this.options.values&&this.options.values.length)d.value=this.values(c),d.values=this.values();this._trigger("change",a,d)}},value:function(a){if(arguments.length)this.options.value=
this._trimAlignValue(a),this._refreshValue(),this._change(null,0);else return this._value()},values:function(b,c){var d,f,j;if(arguments.length>1)this.options.values[b]=this._trimAlignValue(c),this._refreshValue(),this._change(null,b);else if(arguments.length)if(a.isArray(arguments[0])){d=this.options.values;f=arguments[0];for(j=0;j<d.length;j+=1)d[j]=this._trimAlignValue(f[j]),this._change(null,j);this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(b):this.value();
else return this._values()},_setOption:function(b,c){var d,f=0;if(a.isArray(this.options.values))f=this.options.values.length;a.Widget.prototype._setOption.apply(this,arguments);switch(b){case "disabled":c?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.propAttr("disabled",true),this.element.addClass("ui-disabled")):(this.handles.propAttr("disabled",false),this.element.removeClass("ui-disabled"));break;case "orientation":this._detectOrientation();
this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(d=0;d<f;d+=1)this._change(null,d);this._animateOff=false}},_value:function(){return this._trimAlignValue(this.options.value)},_values:function(a){var c,d;if(arguments.length)return c=this.options.values[a],
this._trimAlignValue(c);else{c=this.options.values.slice();for(d=0;d<c.length;d+=1)c[d]=this._trimAlignValue(c[d]);return c}},_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin();if(a>=this._valueMax())return this._valueMax();var c=this.options.step>0?this.options.step:1,d=(a-this._valueMin())%c;a-=d;Math.abs(d)*2>=c&&(a+=d>0?c:-c);return parseFloat(a.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var b=
this.options.range,c=this.options,d=this,f=!this._animateOff?c.animate:false,j,l={},h,k,e,o;if(this.options.values&&this.options.values.length)this.handles.each(function(b){j=(d.values(b)-d._valueMin())/(d._valueMax()-d._valueMin())*100;l[d.orientation==="horizontal"?"left":"bottom"]=j+"%";a(this).stop(1,1)[f?"animate":"css"](l,c.animate);if(d.options.range===true)if(d.orientation==="horizontal"){if(b===0)d.range.stop(1,1)[f?"animate":"css"]({left:j+"%"},c.animate);if(b===1)d.range[f?"animate":"css"]({width:j-
h+"%"},{queue:false,duration:c.animate})}else{if(b===0)d.range.stop(1,1)[f?"animate":"css"]({bottom:j+"%"},c.animate);if(b===1)d.range[f?"animate":"css"]({height:j-h+"%"},{queue:false,duration:c.animate})}h=j});else{k=this.value();e=this._valueMin();o=this._valueMax();j=o!==e?(k-e)/(o-e)*100:0;l[d.orientation==="horizontal"?"left":"bottom"]=j+"%";this.handle.stop(1,1)[f?"animate":"css"](l,c.animate);if(b==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[f?"animate":"css"]({width:j+"%"},
c.animate);if(b==="max"&&this.orientation==="horizontal")this.range[f?"animate":"css"]({width:100-j+"%"},{queue:false,duration:c.animate});if(b==="min"&&this.orientation==="vertical")this.range.stop(1,1)[f?"animate":"css"]({height:j+"%"},c.animate);if(b==="max"&&this.orientation==="vertical")this.range[f?"animate":"css"]({height:100-j+"%"},{queue:false,duration:c.animate})}}});a.extend(a.ui.slider,{version:"1.8.16"})})(jQuery);(function(a){a.fn.popupWindow=function(b){return this.each(function(){a(this).click(function(){a.fn.popupWindow.defaultSettings={centerBrowser:0,centerScreen:0,height:500,left:0,location:0,menubar:0,resizable:0,scrollbars:0,status:0,width:500,windowName:null,windowURL:null,top:0,toolbar:0};settings=a.extend({},a.fn.popupWindow.defaultSettings,b||{});var c="height="+settings.height+",width="+settings.width+",toolbar="+settings.toolbar+",scrollbars="+settings.scrollbars+",status="+settings.status+",resizable="+
settings.resizable+",location="+settings.location+",menuBar="+settings.menubar;settings.windowName=this.name||settings.windowName;settings.windowURL=this.href||settings.windowURL;var d,f;settings.centerBrowser?(a.browser.msie?(d=window.screenTop-120+((document.documentElement.clientHeight+120)/2-settings.height/2),f=window.screenLeft+((document.body.offsetWidth+20)/2-settings.width/2)):(d=window.screenY+(window.outerHeight/2-settings.height/2),f=window.screenX+(window.outerWidth/2-settings.width/
2)),window.open(settings.windowURL,settings.windowName,c+",left="+f+",top="+d).focus()):settings.centerScreen?(d=(screen.height-settings.height)/2,f=(screen.width-settings.width)/2,window.open(settings.windowURL,settings.windowName,c+",left="+f+",top="+d).focus()):window.open(settings.windowURL,settings.windowName,c+",left="+settings.left+",top="+settings.top).focus();return false})})}})(jQuery);require=function(a,b){if(typeof a=="string")return require(a.split("."),this);else{var c=b[a[0]];c||(c=b[a[0]]={});a.splice(0,1);return a.length>0?require(a,c):c}};var utils=require("CGAVideoPlayer.utils");
utils.BaseView=Backbone.View.extend({appendControls:function(a,b){_.each(b,function(b){$(a).append(b)})},bindFunctions:function(a,b){_.each(a,function(c,d){a[d]=_.bind(c,b)})},select:function(a,b){return b?$(this.selectors[a]):this.$(this.selectors[a])},renderTemplate:function(a,b){return _.template(this.templates[a].html(),b)}});utils.SimpleModel=function(){this.initialize.apply(this,arguments)};_.extend(utils.SimpleModel.prototype,{initialize:function(){}});utils.SimpleModel.extend=Backbone.View.extend;
utils.TimeRange=utils.SimpleModel.extend({initialize:function(a,b){this[0]=a;this[1]=b},within:function(a){return this[0]<=a&&a<=this[1]},before:function(a){return this[1]<a},after:function(a){return this[0]>a}});
utils.findTimeRangeIndex=function(a,b,c){c||(c=0);var d=a[c],f=a[c>0?c-1:0];if(!d.timeRange)return null;if(a.length<=1)return d.timeRange.within(b)?0:null;if(d.timeRange.within(b))return c;else if(d.timeRange.after(b)&&c>0)return f.timeRange.before(b)?null:utils.findTimeRangeIndex(a,b,c-1);else if(d.timeRange.before(b)&&c<a.length-1)return utils.findTimeRangeIndex(a,b,c+1);return null};
utils.parseTime=function(a){for(var b=[3600,60,1],a=String(a).split(":"),c=0,d=a.length-1;d>=0;d--){var f=b.pop();c+=Number(a[d])*f}return c};utils.formatTime=function(a){var b="mm:ss";a>3600&&(b="HH:mm:ss");return(new Date).clearTime().addSeconds(a).toString(b)};var settings=require("CGAVideoPlayer.settings");settings.tocFuzziness=5;var models=require("CGAVideoPlayer.models");models.ButtonModel=Backbone.Model.extend({defaults:{text:"",icon:""}});models.ProgressBarModel=Backbone.Model.extend({defaults:{duration:0,position:0}});models.VideoSourceModel=Backbone.Model.extend({defaults:{url:"",thumbnail:"",timeout:5,startPosition:0}});var video=require("CGAVideoPlayer.video"),utils=require("CGAVideoPlayer.utils"),videoPlugins=require("CGAVideoPlayer.videoPlugins");video.VideoPlugin=utils.BaseView.extend({videoEvents:{},attachVideo:function(a){this.video=a;this.attachVideoEvents();this.pluginReady()},attachVideoEvents:function(){_.each(this.videoEvents,function(a,b){this.video.bind(b,a,this);this.videoEvents[b]=_.bind(a,this)},this)},pluginReady:function(){}});
video.VideoView=utils.BaseView.extend({el:$("#video"),plugins:{},videoFiles:[],startTime:0,autoStart:false,position:0,duration:0,loadingItem:false,seekToAfterLoad:0,aspectRatio:16/9,initialize:function(){this.bindFunctions(this.jwplayerEvents,this);this.render();this.initializePlugins();this.trigger("ready")},initializePlugins:function(){var a=this;_.each(videoPlugins,function(b,c){var d=new b;d.attachVideo(a);a.plugins[c]=d})},jwplayerEvents:{onTime:function(a){this.position=a.position;this.seekToAfterLoad==
0&&(this.trigger("change:position",a.position),this.trigger("tick"))},onMeta:function(a){if(a.metadata.duration)this.duration=this.player.getDuration(),this.trigger("change:duration",this.duration),this.trigger("tick");if(a.metadata.height)this.aspectRatio=a.metadata.width/a.metadata.height,this.trigger("change:aspectRatio")},onPause:function(){this.trigger("pause")},onPlay:function(){this.trigger("play");this.loadingItem=false;this.seekToAfterLoad!=0&&setTimeout(_.bind(function(){this.player.seek(this.seekToAfterLoad);
this.seekToAfterLoad=0},this),500)},onVolume:function(a){this.trigger("change:volume",a)},onPlaylist:function(a){this.trigger("change:playlist",a)},onError:function(a){this.trigger("error",a)}},embedPlayer:function(){this.player=jwplayer(this.el.attr("id")).setup({flashplayer:"vendor/jwplayer/player.swf",provider:"http","http.startparam":"starttime",controlbar:"none",repeat:"list",events:this.jwplayerEvents});this.trigger("embed")},setVideo:function(a,b,c){this.videoFilesEqual(a)?typeof c!="undefined"&&
c&&this.player.seek(b):(this.videoFiles=a,this.startTime=b,this.autoStart=typeof c!="undefined"&&c,this.embedPlayer())},videoFilesEqual:function(a){return this.videoFiles.length<=0?false:this.videoFiles[0].file==a[0].file},seek:function(a){this.player&&this.player.seek(a);this.seekToAfterLoad=a},pause:function(){this.player&&this.player.pause(true)},play:function(){this.player&&this.player.play(true)},setVolume:function(a){this.player&&this.player.setVolume(a)},loadPlaylist:function(a){this.player.load(a);
this.loadingItem=true},getPlaylistItem:function(a){return this.player.getPlaylistItem(a)},setPlaylistItem:function(a){this.player.playlistItem(a);this.loadingItem=true},render:function(){this.embedPlayer();return this}});videoPlugins=require("CGAVideoPlayer.videoPlugins");video=require("CGAVideoPlayer.video");utils=require("CGAVideoPlayer.utils");
videoPlugins.PlayPauseButtonView=video.VideoPlugin.extend({pluginName:"playPauseButton",el:$("#player-playpause"),events:{click:"click"},videoEvents:{play:function(a){a=a||false;this.trigger("click:play");this.el.addClass("pause");a&&this.video.play()},pause:function(a){a=a||false;this.trigger("click:pause");this.el.removeClass("pause");a&&this.video.pause()}},click:function(){this.el.hasClass("pause")?this.videoEvents.pause(true):this.videoEvents.play(true)}});
videoPlugins.PreviousButton=video.VideoPlugin.extend({el:$("#player-previous"),events:{click:"click"},click:function(){this.video.previous()}});videoPlugins.NextButton=video.VideoPlugin.extend({el:$("#player-next"),events:{click:"click"},click:function(){this.video.next()}});
videoPlugins.VolumeView=video.VideoPlugin.extend({name:"volume",el:$("#player-volume"),selectors:{volumeBar:"#volume-bar",volumeButton:"#volume-controls"},events:{"click #volume-controls":"onVolumeClick"},lastVolume:100,pluginReady:function(){this.video.setVolume(this.lastVolume);this.render()},onSliderChange:function(a,b){this.video.setVolume(b.value,true)},onVolumeClick:function(){this.getVolume()>0?(this.lastVolume=this.getVolume(),this.setVolume(0)):this.setVolume(this.lastVolume)},getVolume:function(){return this.select("volumeBar").slider("option",
"value")},setVolume:function(a,b){b=b||false;this.video.setVolume(a);b||this.select("volumeBar").slider("option","value",a);a<=0?this.select("volumeButton").addClass("mute"):this.select("volumeButton").removeClass("mute")},render:function(){this.select("volumeBar").slider({range:"min",value:100,min:0,max:100,change:_.bind(this.onSliderChange,this)});return this}});
videoPlugins.ProgressBarView=video.VideoPlugin.extend({name:"progressBar",el:$("#player-controls-top"),selectors:{slider:"#progress-bar",label:"#player-time"},videoEvents:{"change:duration":function(a){this.select("slider").slider("option",{max:a})},tick:function(){this.select("slider").slider("option",{value:this.getPosition()});var a=utils.formatTime(this.getPosition());this.select("label").html(a)}},pluginReady:function(){this.select("slider").slider({range:"min",value:this.getPosition(),min:1,
max:this.getDuration(),slide:_.bind(this.onSliderSlide,this),stop:_.bind(this.onSliderStop,this)});this.videoEvents.tick();return this},getPosition:function(){return this.sliding?this.select("slider").slider("option","value"):this.video.position},getDuration:function(){return this.video.duration<=0?100:this.video.duration},onSliderSlide:function(){this.sliding=true;this.videoEvents.tick()},onSliderStop:function(){this.video.seek(this.getPosition());this.sliding=false}});
videoPlugins.ResourceView=video.VideoPlugin.extend({el:$("#action-button"),selectors:{link:"a",label:"span"},videoEvents:{ready:function(){this.hide();this.data=data.resources;this.annotateData()},"change:position":function(){var a=utils.findTimeRangeIndex(this.data,this.video.totalTime);a!=null?(this.resource=this.data[a],this.show()):this.hide()}},annotateData:function(){_.each(this.data,function(a){a.timeRange=new utils.TimeRange(a.time,a.time+a.duration)})},hide:function(){if(this.visible)this.visible=
false,this.el.animate({opacity:"0",top:"-100px"})},show:function(){if(!this.visible)this.select("link").attr("href",this.resource.url),this.select("label").html(this.resource.title),this.visible=true,this.el.animate({opacity:"1",top:"0px"})}});var toc=require("CGAVideoPlayer.tableOfContents"),data=require("CGAVideoPlayer.data"),videoPlugins=require("CGAVideoPlayer.videoPlugins"),video=require("CGAVideoPlayer.video"),utils=require("CGAVideoPlayer.utils"),settings=require("CGAVideoPlayer.settings");
toc.VideoSource=utils.SimpleModel.extend({currentSegmentIndex:0,initialize:function(){this.videoSources=data.videoSources;this.annotateData()},annotateData:function(){_.each(this.videoSources,function(a){var b=0,c=0;a.timedOut=false;_.each(a.segments,function(a,f){c=b+utils.parseTime(a.duration);a.timeRange=new utils.TimeRange(b,c);a.id=f;b=c});a.duration=c})},timeout:function(){this.getCurrentSource().timedOut=true},getCurrentSource:function(){for(var a=this.videoSources[0],b=0;b<this.videoSources.length;b++)if(!this.videoSources[b].timedOut){a=
this.videoSources[b];break}return a},findSegmentForTime:function(a){var b=this.getCurrentSource();this.currentSegmentIndex=utils.findTimeRangeIndex(b.segments,a,this.currentSegmentIndex);this.currentSegmentIndex+1<b.segments.length&&b.segments[this.currentSegmentIndex+1].timeRange[0]-a<settings.tocFuzziness&&(this.currentSegmentIndex+=1);return b.segments[this.currentSegmentIndex]},getSegmentTime:function(a){var b=this.findSegmentForTime(a);return a-b.timeRange[0]}});
toc.TableOfContents=utils.SimpleModel.extend({currentSectionIndex:0,sections:[],chapters:[],initialize:function(){this.data=data.tableOfContents;this.annotateData()},annotateData:function(){var a=this.sections,b=0,c=0,d=0;_.each(this.data.chapters,function(f){var j=b;_.each(f.sections,function(j){if(j.duration){j.duration=utils.parseTime(j.duration);c=b+j.duration;j.timeRange=new utils.TimeRange(b,c);if(!f.number)f.number=d+". ",d++;b=c}j.chapter=f;j.id=a.length;a.push(j)});f.duration=c-j;f.timeRange=
new utils.TimeRange(j,c)})},findSectionForTime:function(a){this.currentSectionIndex=utils.findTimeRangeIndex(this.sections,a,this.currentSectionIndex);this.currentSectionIndex+1<this.sections.length&&this.sections[this.currentSectionIndex+1].timeRange[0]-a<settings.tocFuzziness&&(this.currentSectionIndex+=1);return this.sections[this.currentSectionIndex]}});
videoPlugins.TOCPlaylist=video.VideoPlugin.extend({pluginName:"tocPlaylist",clickedSection:false,timeTracker:"chapter",timeTrackers:{chapter:function(){var a=this.getCurrentSection();return{time:totalTime-a.chapter.timeRange[0],duration:a.chapter.duration}}},videoEvents:{ready:function(){this.video.trigger("change:section",this.lastSection)},"change:position":function(){this.video.totalTime=this.getTotalTime();var a=this.getCurrentSection();if(a!=this.lastSection)this.lastSection=a,this.video.trigger("change:section",
a)},error:function(){this.videoSource.timeout();this.loadVideoPlaylist()}},pluginReady:function(){_.bindAll(this,"nextSection","previousSection");this.video.next=this.nextSection;this.video.previous=this.previousSection;this.bindFunctions(this.timeTrackers,this);this.tableOfContents=new toc.TableOfContents;this.videoSource=new toc.VideoSource;this.loadVideoPlaylist();this.lastSection=this.tableOfContents.findSectionForTime(0);var a=window.location.hash;a&&this.seek(a.substring(1))},getTotalTime:function(){return this.getCurrentVideoSegment().timeRange[0]+
this.video.position},getCurrentVideoSegment:function(){var a=this.video.getPlaylistItem().mediaid;return this.videoSource.getCurrentSource().segments[a]},getCurrentSection:function(){return this.tableOfContents.findSectionForTime(this.video.totalTime)},getTime:function(){return this.timeTrackers[this.timeTracker]().time},getDuration:function(){return this.timeTrackers[this.timeTracker]().duration},playSection:function(a){this.clickedSection=a;var b=this.videoSource.findSegmentForTime(a.timeRange[0]),
a=a.timeRange[0]-b.timeRange[0];this.video.setPlaylistItem(b.id);this.video.seek(a)},nextSection:function(){var a=this.lastSection.id+1,b=this.tableOfContents.sections;a<b.length&&this.playSection(b[a])},previousSection:function(){var a=this.lastSection.id-1,b=this.tableOfContents.sections;a>0&&this.playSection(b[a])},seek:function(a){var b=this.videoSource.findSegmentForTime(a);a-=b.timeRange[0];this.video.setPlaylistItem(b.id);this.video.seek(a)},loadVideoPlaylist:function(){var a=this.videoSource.getCurrentSource().segments;
this.video.loadPlaylist(_.map(a,this.convertSegmentToPlaylistItem))},convertSegmentToPlaylistItem:function(a,b){return{mediaid:b,duration:a.duration,provider:"http",levels:a.files}}});
videoPlugins.TableOfContentsPlugin=video.VideoPlugin.extend({el:$("#sidebar-content"),holdingSectionHighlight:false,selectors:{sections:"li",chapters:".accordion-row",chapterLinks:".accordion-row a.section-title",survey:"#survey",video:"#video_wrapper, #video",toggleButton:"#toc-toggle",chapterTitle:"#presentation-section-title",sectionTitle:"#presentation-title",sidebar:"#content-left"},templates:{chapter:$("#template-TableOfContentsChapter"),section:$("#template-TableOfContentsSection")},videoEvents:{ready:function(){this.playlist=
this.video.plugins.TOCPlaylist;this.tableOfContents=this.playlist.tableOfContents;this.videoSource=this.tableOfContents.videoSource;var a=window.location.hash;a&&this.highlightSection(this.tableOfContents.findSectionForTime(a.substring(1)))},"change:section":function(a){this.highlightSection(a)},play:function(){this.hideSurvey()}},renderData:function(){this.data=data.tableOfContents;this.courseTitle=this.data.title;this.chapters=this.data.chapters;return _.reduce(this.chapters,this.reduceChapter,
"")},reduceChapter:function(a,b){a+=this.renderTemplate("chapter",{title:b.title,sections:_.reduce(b.sections,this.reduceSection,"")});return a},reduceSection:function(a,b){a+=this.renderTemplate("section",{id:b.id,title:b.title});return a},onChapterClick:function(a){a=$(a.currentTarget).parents(this.selectors.chapters);$(a).toggleClass("closed")},onSectionClick:function(a){a=this.tableOfContents.sections[$(a.currentTarget).attr("rel")];this.highlightSection(a);a.timeRange?this.playlist.playSection(a):
a.surveyUrl&&this.showSurvey(a)},showSurvey:function(a){this.video.pause();var b=$(this.selectors.survey);b.find("p").html(a.description);b.find("a").html(a.surveyLinkText).attr("href",a.surveyUrl);b.show();CGAVideoPlayer.videoPlayerView.updateSize()},hideSurvey:function(){$(this.selectors.video).show();$(this.selectors.survey).hide()},highlightSection:function(a){var b=this.$("li[rel="+a.id+"]");this.select("sections").removeClass("selected");this.select("chapterTitle",true).html(a.chapter.title);
this.select("sectionTitle",true).html(a.title);b.addClass("selected")},pluginReady:function(){_.bindAll(this,"reduceSection","reduceChapter","onChapterClick","onSectionClick");this.el.html(this.renderData());this.select("chapterLinks").click(this.onChapterClick);this.select("sections").click(this.onSectionClick);var a=$(this.selectors.toggleButton),b=$(this.selectors.sidebar);a.toggle(function(){a.addClass("show");b.hide();CGAVideoPlayer.videoPlayerView.updateSize()},function(){a.removeClass("show");
b.show();CGAVideoPlayer.videoPlayerView.updateSize()});return this}});var views=require("CGAVideoPlayer.views"),utils=require("CGAVideoPlayer.utils"),video=require("CGAVideoPlayer.video"),data=require("CGAVideoPlayer.data"),toc=require("CGAVideoPlayer.tableOfContents");
views.ButtonView=utils.BaseView.extend({tagName:"button",className:"ui-button",events:{click:"click"},initialize:function(a){_.bindAll(this,"click","render");this.model=new CGAVideoPlayer.models.ButtonModel(a);this.render()},render:function(){var a={};if(this.model.get("icon")!="")a.icons={primary:this.model.get("icon")};this.model.get("text")!=""?$(this.el).html(this.model.get("text")).button(a):(a.text=false,$(this.el).button(a));return this},html:function(){return this.el.outerHTML},click:function(){}});
views.TableOfContentsView=utils.BaseView.extend({el:$("#table-of-contents"),selectors:{chapters:"#chapters",links:"a"},templates:{chapter:$("#template-TableOfContentsChapter"),section:$("#template-TableOfContentsSection"),survey:$("#template-TableOfContentsSurvey")},initialize:function(){_.bindAll(this,"reduceChapter","reduceSection");this.toc=new toc.TableOfContents;this.render()},renderData:function(){return _.reduce(this.toc.data.chapters,this.reduceChapter,"")},reduceChapter:function(a,b){a+=
this.renderTemplate("chapter",{title:b.title,time:b.timeRange[0],sections:_.reduce(b.sections,this.reduceSection,""),number:b.number,course:settings.courseDataUrl});return a},reduceSection:function(a,b){a+=b.timeRange?this.renderTemplate("section",{title:b.title,duration:utils.formatTime(b.duration),url:settings.playerUrl+"?"+settings.courseDataUrl+"#"+b.timeRange[0]}):this.renderTemplate("survey",{survey:b});return a},render:function(){this.el.html(this.renderData());this.select("links").popupWindow({height:600,
width:1024,top:50,left:50});return this}});views.MaximizeButtonView=utils.BaseView.extend({el:$("#maximize-button"),events:{click:"click"},state:"maximize",click:function(){this.state=="maximize"?(this.trigger("maximize"),this.state="minimize"):(this.trigger("minimize"),this.state="maximize")}});
views.VideoPlayerView=utils.BaseView.extend({el:$("#video-player"),selectors:{playbackControls:"#playback-controls",progressBar:"#progress-bar",header:"#content-main-top",controls:"#content-main-bottom",video:"#video, #video_wrapper, #survey",mainResizeContainers:"#content-main .resize-container, #video, #video_wrapper, #survey",sidebar:"#content-left",sidebarHeader:"#sidebar-header",sidebarContent:"#sidebar-content",sidebarHandle:"#sidebar-resizer",sidebarResizeContainers:"#content-left, #content-left .resize-container",
surveyLinks:"#survey-links"},sidebarMinWidth:200,sidebarMaxWidth:700,sidebarContentWidthPadding:10,sidebarContentHeightPadding:41,chromeHeight:50,initialize:function(){_.bindAll(this,"render","updateSize","onSidebarHandleMouseDown","onMouseUp","onMouseMove","onMaximize","onMinimize");this.video=new video.VideoView;this.maximizeButton=new views.MaximizeButtonView;this.resizingSidebar=false;this.video.bind("embed",this.updateSize);this.maximizeButton.bind("maximize",this.onMaximize);this.maximizeButton.bind("minimize",
this.onMinimize);$(window).resize(this.updateSize);$(this.selectors.sidebarHandle).mousedown(this.onSidebarHandleMouseDown);$(document).mouseup(this.onMouseUp);$(document).mousemove(this.onMouseMove);this.render()},onSidebarHandleMouseDown:function(a){this.sidebarHandleMouseX=a.pageX;this.sidebarWidth=$(this.selectors.sidebar).width();this.resizingSidebar=true;$(document).disableSelection()},onMouseUp:function(){this.resizingSidebar=false;$(document).enableSelection()},onMouseMove:function(a){if(this.resizingSidebar){a=
a.pageX-this.sidebarHandleMouseX+this.sidebarWidth;if(a<this.sidebarMinWidth)a=this.sidebarMinWidth;else if(a>this.sidebarMaxWidth)a=this.sidebarMaxWidth;$(this.selectors.sidebar).css({width:a});$(this.selectors.sidebarHeader).css({width:a});$(this.selectors.sidebarContent).css({width:a-this.sidebarContentWidthPadding});this.updateSize()}},onMaximize:function(){var a,b,c;c=$(this.selectors.sidebar+":visible").width();var d=$(this.selectors.header).height(),f=$(this.selectors.controls).height();a=
screen.width;this.video.aspectRatio&&(b=(a-c)/this.video.aspectRatio+f+d);if(b>screen.height||!this.video.aspectRatio)b=screen.height;c=(screen.height-b)/2;this.minimizeWidth=$(window).width();this.minimizeHeight=$(window).height();window.resizeTo(a,b);window.moveTo(0,c);this.chromeHeight=b-$(window).height();window.resizeTo(a,b+this.chromeHeight)},onMinimize:function(){this.minimizeWidth&&this.minimizeHeight&&window.resizeTo(this.minimizeWidth,this.minimizeHeight+this.chromeHeight)},updateSize:function(){var a=
$(this.selectors.header).height(),b=$(this.selectors.controls).height(),c=$(window).height(),a=c-(a+b);$(this.selectors.video).css({height:a+"px"});a=a/2-$(this.selectors.surveyLinks).height()/2;$(this.selectors.surveyLinks).css({top:a});a=$(this.selectors.sidebarHeader).height();c=c-a-this.sidebarContentHeightPadding;$(this.selectors.sidebarContent).css({height:c});c=$(this.selectors.sidebar+":visible").width();c=$(window).width()-c;$(this.selectors.mainResizeContainers).css({width:c})},render:function(){this.updateSize();
return this}});var courseDataUrl=window.location.search.substr(1);document.write('<script type="text/javascript" src="'+courseDataUrl+'"><\/script>');$(document).ready(function(){CGAVideoPlayer.videoPlayerView=new CGAVideoPlayer.views.VideoPlayerView});