summaryrefslogblamecommitdiffstats
path: root/gimsis/Datoteke_za_Ocene učenca4/jQueryCombined-543ebb19-63e4-4d7d-9803-f6afbd665d52.js
blob: f8b8bd4e17e7a9be78218fd8a7c1fe376bf9406d (plain) (tree)
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




























































































































































































































































































































































































































































































                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
/*
* jQuery JavaScript Library v1.8.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Aug 30 2012 17:17:22 GMT-0400 (Eastern Daylight Time)
*/
(function(bU,bS){var bh,aO,R=bU.document,ar=bU.location,at=bU.navigator,b=bU.jQuery,a=bU.$,x=Array.prototype.push,A=Array.prototype.slice,v=Array.prototype.indexOf,B=Object.prototype.toString,u=Object.prototype.hasOwnProperty,C=String.prototype.trim,aq=function(b0,e){return new aq.fn.init(b0,e,bh)},w=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,y=/\S/,z=/\s+/,bz=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,bo=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,bw=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,bG=/^[\],:{}\s]*$/,bF=/(?:^|:|,)(?:\s*\[)+/g,bH=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,bI=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,a8=/^-ms-/,aM=/-([\da-z])/gi,W=function(e,b0){return(b0+"").toUpperCase()},S=function(){if(R.addEventListener){R.removeEventListener("DOMContentLoaded",S,false);aq.ready()}else{if(R.readyState==="complete"){R.detachEvent("onreadystatechange",S);aq.ready()}}},r={};aq.fn=aq.prototype={constructor:aq,init:function(b5,e,b4){var b2,b1,b3,b0;if(!b5){return this}if(b5.nodeType){this.context=this[0]=b5;this.length=1;return this}if(typeof b5==="string"){if(b5.charAt(0)==="<"&&b5.charAt(b5.length-1)===">"&&b5.length>=3){b2=[null,b5,null]}else{b2=bo.exec(b5)}if(b2&&(b2[1]||!e)){if(b2[1]){e=e instanceof aq?e[0]:e;b0=(e&&e.nodeType?e.ownerDocument||e:R);b5=aq.parseHTML(b2[1],b0,true);if(bw.test(b2[1])&&aq.isPlainObject(e)){this.attr.call(b5,e,true)}return aq.merge(this,b5)}else{b1=R.getElementById(b2[2]);if(b1&&b1.parentNode){if(b1.id!==b2[2]){return b4.find(b5)}this.length=1;this[0]=b1}this.context=R;this.selector=b5;return this}}else{if(!e||e.jquery){return(e||b4).find(b5)}else{return this.constructor(e).find(b5)}}}else{if(aq.isFunction(b5)){return b4.ready(b5)}}if(b5.selector!==bS){this.selector=b5.selector;this.context=b5.context}return aq.makeArray(b5,this)},selector:"",jquery:"1.8.1",length:0,size:function(){return this.length},toArray:function(){return A.call(this)},get:function(e){return e==null?this.toArray():(e<0?this[this.length+e]:this[e])},pushStack:function(e,b0,b2){var b1=aq.merge(this.constructor(),e);b1.prevObject=this;b1.context=this.context;if(b0==="find"){b1.selector=this.selector+(this.selector?" ":"")+b2}else{if(b0){b1.selector=this.selector+"."+b0+"("+b2+")"}}return b1},each:function(b0,e){return aq.each(this,b0,e)},ready:function(e){aq.ready.promise().done(e);return this},eq:function(e){e=+e;return e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(A.apply(this,arguments),"slice",A.call(arguments).join(","))},map:function(e){return this.pushStack(aq.map(this,function(b0,b1){return e.call(b0,b1,b0)}))},end:function(){return this.prevObject||this.constructor(null)},push:x,sort:[].sort,splice:[].splice};aq.fn.init.prototype=aq.fn;aq.extend=aq.fn.extend=function(){var b6,b5,b7,b0,b1,e,b8=arguments[0]||{},b3=1,b4=arguments.length,b2=false;if(typeof b8==="boolean"){b2=b8;b8=arguments[1]||{};b3=2}if(typeof b8!=="object"&&!aq.isFunction(b8)){b8={}}if(b4===b3){b8=this;--b3}for(;b3<b4;b3++){if((b6=arguments[b3])!=null){for(b5 in b6){b7=b8[b5];b0=b6[b5];if(b8===b0){continue}if(b2&&b0&&(aq.isPlainObject(b0)||(b1=aq.isArray(b0)))){if(b1){b1=false;e=b7&&aq.isArray(b7)?b7:[]}else{e=b7&&aq.isPlainObject(b7)?b7:{}}b8[b5]=aq.extend(b2,e,b0)}else{if(b0!==bS){b8[b5]=b0}}}}}return b8};aq.extend({noConflict:function(e){if(bU.$===aq){bU.$=a}if(e&&bU.jQuery===aq){bU.jQuery=b}return aq},isReady:false,readyWait:1,holdReady:function(e){if(e){aq.readyWait++}else{aq.ready(true)}},ready:function(e){if(e===true?--aq.readyWait:aq.isReady){return}if(!R.body){return setTimeout(aq.ready,1)}aq.isReady=true;if(e!==true&&--aq.readyWait>0){return}aO.resolveWith(R,[aq]);if(aq.fn.trigger){aq(R).trigger("ready").off("ready")}},isFunction:function(e){return aq.type(e)==="function"},isArray:Array.isArray||function(e){return aq.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return !isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):r[B.call(e)]||"object"},isPlainObject:function(b2){if(!b2||aq.type(b2)!=="object"||b2.nodeType||aq.isWindow(b2)){return false}try{if(b2.constructor&&!u.call(b2,"constructor")&&!u.call(b2.constructor.prototype,"isPrototypeOf")){return false}}catch(b0){return false}var b1;for(b1 in b2){}return b1===bS||u.call(b2,b1)},isEmptyObject:function(b0){var e;for(e in b0){return false}return true},error:function(e){throw new Error(e)},parseHTML:function(b0,e,b2){var b1;if(!b0||typeof b0!=="string"){return null}if(typeof e==="boolean"){b2=e;e=0}e=e||R;if((b1=bw.exec(b0))){return[e.createElement(b1[1])]}b1=aq.buildFragment([b0],e,b2?null:[]);return aq.merge([],(b1.cacheable?aq.clone(b1.fragment):b1.fragment).childNodes)},parseJSON:function(e){if(!e||typeof e!=="string"){return null}e=aq.trim(e);if(bU.JSON&&bU.JSON.parse){return bU.JSON.parse(e)}if(bG.test(e.replace(bH,"@").replace(bI,"]").replace(bF,""))){return(new Function("return "+e))()}aq.error("Invalid JSON: "+e)},parseXML:function(b0){var b3,b2;if(!b0||typeof b0!=="string"){return null}try{if(bU.DOMParser){b2=new DOMParser();b3=b2.parseFromString(b0,"text/xml")}else{b3=new ActiveXObject("Microsoft.XMLDOM");b3.async="false";b3.loadXML(b0)}}catch(b1){b3=bS}if(!b3||!b3.documentElement||b3.getElementsByTagName("parsererror").length){aq.error("Invalid XML: "+b0)}return b3},noop:function(){},globalEval:function(e){if(e&&y.test(e)){(bU.execScript||function(b0){bU["eval"].call(bU,b0)})(e)}},camelCase:function(e){return e.replace(a8,"ms-").replace(aM,W)},nodeName:function(e,b0){return e.nodeName&&e.nodeName.toUpperCase()===b0.toUpperCase()},each:function(b5,b0,e){var b4,b1=0,b3=b5.length,b2=b3===bS||aq.isFunction(b5);if(e){if(b2){for(b4 in b5){if(b0.apply(b5[b4],e)===false){break}}}else{for(;b1<b3;){if(b0.apply(b5[b1++],e)===false){break}}}}else{if(b2){for(b4 in b5){if(b0.call(b5[b4],b4,b5[b4])===false){break}}}else{for(;b1<b3;){if(b0.call(b5[b1],b1,b5[b1++])===false){break}}}}return b5},trim:C&&!C.call("\uFEFF\xA0")?function(e){return e==null?"":C.call(e)}:function(e){return e==null?"":e.toString().replace(bz,"")},makeArray:function(e,b0){var b2,b1=b0||[];if(e!=null){b2=aq.type(e);if(e.length==null||b2==="string"||b2==="function"||b2==="regexp"||aq.isWindow(e)){x.call(b1,e)}else{aq.merge(b1,e)}}return b1},inArray:function(b0,e,b1){var b2;if(e){if(v){return v.call(e,b0,b1)}b2=e.length;b1=b1?b1<0?Math.max(0,b2+b1):b1:0;for(;b1<b2;b1++){if(b1 in e&&e[b1]===b0){return b1}}}return -1},merge:function(e,b3){var b2=b3.length,b0=e.length,b1=0;if(typeof b2==="number"){for(;b1<b2;b1++){e[b0++]=b3[b1]}}else{while(b3[b1]!==bS){e[b0++]=b3[b1++]}}e.length=b0;return e},grep:function(b0,e,b2){var b5,b4=[],b1=0,b3=b0.length;b2=!!b2;for(;b1<b3;b1++){b5=!!e(b0[b1],b1);if(b2!==b5){b4.push(b0[b1])}}return b4},map:function(b1,b0,e){var b7,b4,b6=[],b2=0,b5=b1.length,b3=b1 instanceof aq||b5!==bS&&typeof b5==="number"&&((b5>0&&b1[0]&&b1[b5-1])||b5===0||aq.isArray(b1));if(b3){for(;b2<b5;b2++){b7=b0(b1[b2],b2,e);if(b7!=null){b6[b6.length]=b7}}}else{for(b4 in b1){b7=b0(b1[b4],b4,e);if(b7!=null){b6[b6.length]=b7}}}return b6.concat.apply([],b6)},guid:1,proxy:function(b1,b0){var b3,e,b2;if(typeof b0==="string"){b3=b1[b0];b0=b1;b1=b3}if(!aq.isFunction(b1)){return bS}e=A.call(arguments,2);b2=function(){return b1.apply(b0,e.concat(A.call(arguments)))};b2.guid=b1.guid=b1.guid||b2.guid||aq.guid++;return b2},access:function(b1,b4,b6,b9,b0,b2,b8){var b3,e=b6==null,b5=0,b7=b1.length;if(b6&&typeof b6==="object"){for(b5 in b6){aq.access(b1,b4,b5,b6[b5],1,b2,b9)}b0=1}else{if(b9!==bS){b3=b8===bS&&aq.isFunction(b9);if(e){if(b3){b3=b4;b4=function(ca,cb,cc){return b3.call(aq(ca),cc)}}else{b4.call(b1,b9);b4=null}}if(b4){for(;b5<b7;b5++){b4(b1[b5],b6,b3?b9.call(b1[b5],b5,b4(b1[b5],b6)):b9,b8)}}b0=1}}return b0?b1:e?b4.call(b1):b7?b4(b1[0],b6):b2},now:function(){return(new Date()).getTime()}});aq.ready.promise=function(b2){if(!aO){aO=aq.Deferred();if(R.readyState==="complete"){setTimeout(aq.ready,1)}else{if(R.addEventListener){R.addEventListener("DOMContentLoaded",S,false);bU.addEventListener("load",aq.ready,false)}else{R.attachEvent("onreadystatechange",S);bU.attachEvent("onload",aq.ready);var b3=false;try{b3=bU.frameElement==null&&R.documentElement}catch(b1){}if(b3&&b3.doScroll){(function b0(){if(!aq.isReady){try{b3.doScroll("left")}catch(b4){return setTimeout(b0,50)}aq.ready()}})()}}}}return aO.promise(b2)};aq.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,b0){r["[object "+b0+"]"]=b0.toLowerCase()});bh=aq(R);var ay={};function F(b0){var e=ay[b0]={};aq.each(b0.split(z),function(b1,b2){e[b2]=true});return e}aq.Callbacks=function(b7){b7=typeof b7==="string"?(ay[b7]||F(b7)):aq.extend({},b7);var b6,b0,b1,b4,b3,b2,b5=[],b9=!b7.once&&[],e=function(ca){b6=b7.memory&&ca;b0=true;b2=b4||0;b4=0;b3=b5.length;b1=true;for(;b5&&b2<b3;b2++){if(b5[b2].apply(ca[0],ca[1])===false&&b7.stopOnFalse){b6=false;break}}b1=false;if(b5){if(b9){if(b9.length){e(b9.shift())}}else{if(b6){b5=[]}else{b8.disable()}}}},b8={add:function(){if(b5){var cb=b5.length;(function ca(cc){aq.each(cc,function(cd,ce){var cf=aq.type(ce);if(cf==="function"&&(!b7.unique||!b8.has(ce))){b5.push(ce)}else{if(ce&&ce.length&&cf!=="string"){ca(ce)}}})})(arguments);if(b1){b3=b5.length}else{if(b6){b4=cb;e(b6)}}}return this},remove:function(){if(b5){aq.each(arguments,function(ca,cb){var cc;while((cc=aq.inArray(cb,b5,cc))>-1){b5.splice(cc,1);if(b1){if(cc<=b3){b3--}if(cc<=b2){b2--}}}})}return this},has:function(ca){return aq.inArray(ca,b5)>-1},empty:function(){b5=[];return this},disable:function(){b5=b9=b6=bS;return this},disabled:function(){return !b5},lock:function(){b9=bS;if(!b6){b8.disable()}return this},locked:function(){return !b9},fireWith:function(cb,ca){ca=ca||[];ca=[cb,ca.slice?ca.slice():ca];if(b5&&(!b0||b9)){if(b1){b9.push(ca)}else{e(ca)}}return this},fire:function(){b8.fireWith(this,arguments);return this},fired:function(){return !!b0}};return b8};aq.extend({Deferred:function(b0){var b3=[["resolve","done",aq.Callbacks("once memory"),"resolved"],["reject","fail",aq.Callbacks("once memory"),"rejected"],["notify","progress",aq.Callbacks("memory")]],b2="pending",b1={state:function(){return b2},always:function(){e.done(arguments).fail(arguments);return this},then:function(){var b4=arguments;return aq.Deferred(function(b5){aq.each(b3,function(b8,b9){var b6=b9[0],b7=b4[b8];e[b9[1]](aq.isFunction(b7)?function(){var ca=b7.apply(this,arguments);if(ca&&aq.isFunction(ca.promise)){ca.promise().done(b5.resolve).fail(b5.reject).progress(b5.notify)}else{b5[b6+"With"](this===e?b5:this,[ca])}}:b5[b6])});b4=null}).promise()},promise:function(b4){return typeof b4==="object"?aq.extend(b4,b1):b1}},e={};b1.pipe=b1.then;aq.each(b3,function(b4,b7){var b5=b7[2],b6=b7[3];b1[b7[1]]=b5.add;if(b6){b5.add(function(){b2=b6},b3[b4^1][2].disable,b3[2][2].lock)}e[b7[0]]=b5.fire;e[b7[0]+"With"]=b5.fireWith});b1.promise(e);if(b0){b0.call(e,e)}return e},when:function(b7){var b0=0,b6=A.call(arguments),b1=b6.length,b4=b1!==1||(b7&&aq.isFunction(b7.promise))?b1:0,e=b4===1?b7:aq.Deferred(),b8=function(ca,b9,cb){return function(cc){b9[ca]=this;cb[ca]=arguments.length>1?A.call(arguments):cc;if(cb===b3){e.notifyWith(b9,cb)}else{if(!(--b4)){e.resolveWith(b9,cb)}}}},b3,b2,b5;if(b1>1){b3=new Array(b1);b2=new Array(b1);b5=new Array(b1);for(;b0<b1;b0++){if(b6[b0]&&aq.isFunction(b6[b0].promise)){b6[b0].promise().done(b8(b0,b5,b6)).fail(e.reject).progress(b8(b0,b2,b3))}else{--b4}}}if(!b4){e.resolveWith(b5,b6)}return e.promise()}});aq.support=(function(){var cc,b1,b0,cb,ca,b8,b6,b5,b7,b9,b2,b3=R.createElement("div");b3.setAttribute("className","t");b3.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";b1=b3.getElementsByTagName("*");b0=b3.getElementsByTagName("a")[0];b0.style.cssText="top:1px;float:left;opacity:.5";if(!b1||!b1.length||!b0){return{}}cb=R.createElement("select");ca=cb.appendChild(R.createElement("option"));b8=b3.getElementsByTagName("input")[0];cc={leadingWhitespace:(b3.firstChild.nodeType===3),tbody:!b3.getElementsByTagName("tbody").length,htmlSerialize:!!b3.getElementsByTagName("link").length,style:/top/.test(b0.getAttribute("style")),hrefNormalized:(b0.getAttribute("href")==="/a"),opacity:/^0.5/.test(b0.style.opacity),cssFloat:!!b0.style.cssFloat,checkOn:(b8.value==="on"),optSelected:ca.selected,getSetAttribute:b3.className!=="t",enctype:!!R.createElement("form").enctype,html5Clone:R.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>",boxModel:(R.compatMode==="CSS1Compat"),submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true,boxSizingReliable:true,pixelPosition:false};b8.checked=true;cc.noCloneChecked=b8.cloneNode(true).checked;cb.disabled=true;cc.optDisabled=!ca.disabled;try{delete b3.test}catch(b4){cc.deleteExpando=false}if(!b3.addEventListener&&b3.attachEvent&&b3.fireEvent){b3.attachEvent("onclick",b2=function(){cc.noCloneEvent=false});b3.cloneNode(true).fireEvent("onclick");b3.detachEvent("onclick",b2)}b8=R.createElement("input");b8.value="t";b8.setAttribute("type","radio");cc.radioValue=b8.value==="t";b8.setAttribute("checked","checked");b8.setAttribute("name","t");b3.appendChild(b8);b6=R.createDocumentFragment();b6.appendChild(b3.lastChild);cc.checkClone=b6.cloneNode(true).cloneNode(true).lastChild.checked;cc.appendChecked=b8.checked;b6.removeChild(b8);b6.appendChild(b3);if(b3.attachEvent){for(b7 in {submit:true,change:true,focusin:true}){b5="on"+b7;b9=(b5 in b3);if(!b9){b3.setAttribute(b5,"return;");b9=(typeof b3[b5]==="function")}cc[b7+"Bubbles"]=b9}}aq(function(){var cd,ce,ch,cg,cf="padding:0;margin:0;border:0;display:block;overflow:hidden;",e=R.getElementsByTagName("body")[0];if(!e){return}cd=R.createElement("div");cd.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";e.insertBefore(cd,e.firstChild);ce=R.createElement("div");cd.appendChild(ce);ce.innerHTML="<table><tr><td></td><td>t</td></tr></table>";ch=ce.getElementsByTagName("td");ch[0].style.cssText="padding:0;margin:0;border:0;display:none";b9=(ch[0].offsetHeight===0);ch[0].style.display="";ch[1].style.display="none";cc.reliableHiddenOffsets=b9&&(ch[0].offsetHeight===0);ce.innerHTML="";ce.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;";cc.boxSizing=(ce.offsetWidth===4);cc.doesNotIncludeMarginInBodyOffset=(e.offsetTop!==1);if(bU.getComputedStyle){cc.pixelPosition=(bU.getComputedStyle(ce,null)||{}).top!=="1%";cc.boxSizingReliable=(bU.getComputedStyle(ce,null)||{width:"4px"}).width==="4px";cg=R.createElement("div");cg.style.cssText=ce.style.cssText=cf;cg.style.marginRight=cg.style.width="0";ce.style.width="1px";ce.appendChild(cg);cc.reliableMarginRight=!parseFloat((bU.getComputedStyle(cg,null)||{}).marginRight)}if(typeof ce.style.zoom!=="undefined"){ce.innerHTML="";ce.style.cssText=cf+"width:1px;padding:1px;display:inline;zoom:1";cc.inlineBlockNeedsLayout=(ce.offsetWidth===3);ce.style.display="block";ce.style.overflow="visible";ce.innerHTML="<div></div>";ce.firstChild.style.width="5px";cc.shrinkWrapBlocks=(ce.offsetWidth!==3);cd.style.zoom=1}e.removeChild(cd);cd=ce=ch=cg=null});b6.removeChild(b3);b1=b0=cb=ca=b8=b6=b3=null;return cc})();var aE=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,a9=/([A-Z])/g;aq.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(aq.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(e){e=e.nodeType?aq.cache[e[aq.expando]]:e[aq.expando];return !!e&&!an(e)},data:function(b1,b6,b0,b7){if(!aq.acceptData(b1)){return}var b9,b8,b4=aq.expando,b2=typeof b6==="string",b5=b1.nodeType,e=b5?aq.cache:b1,b3=b5?b1[b4]:b1[b4]&&b4;if((!b3||!e[b3]||(!b7&&!e[b3].data))&&b2&&b0===bS){return}if(!b3){if(b5){b1[b4]=b3=aq.deletedIds.pop()||++aq.uuid}else{b3=b4}}if(!e[b3]){e[b3]={};if(!b5){e[b3].toJSON=aq.noop}}if(typeof b6==="object"||typeof b6==="function"){if(b7){e[b3]=aq.extend(e[b3],b6)}else{e[b3].data=aq.extend(e[b3].data,b6)}}b9=e[b3];if(!b7){if(!b9.data){b9.data={}}b9=b9.data}if(b0!==bS){b9[aq.camelCase(b6)]=b0}if(b2){b8=b9[b6];if(b8==null){b8=b9[aq.camelCase(b6)]}}else{b8=b9}return b8},removeData:function(b0,b5,b6){if(!aq.acceptData(b0)){return}var b7,b1,b4,b3=b0.nodeType,e=b3?aq.cache:b0,b2=b3?b0[aq.expando]:aq.expando;if(!e[b2]){return}if(b5){b7=b6?e[b2]:e[b2].data;if(b7){if(!aq.isArray(b5)){if(b5 in b7){b5=[b5]}else{b5=aq.camelCase(b5);if(b5 in b7){b5=[b5]}else{b5=b5.split(" ")}}}for(b1=0,b4=b5.length;b1<b4;b1++){delete b7[b5[b1]]}if(!(b6?an:aq.isEmptyObject)(b7)){return}}}if(!b6){delete e[b2].data;if(!an(e[b2])){return}}if(b3){aq.cleanData([b0],true)}else{if(aq.support.deleteExpando||e!=e.window){delete e[b2]}else{e[b2]=null}}},_data:function(b0,b1,e){return aq.data(b0,b1,e,true)},acceptData:function(e){var b0=e.nodeName&&aq.noData[e.nodeName.toLowerCase()];return !b0||b0!==true&&e.getAttribute("classid")===b0}});aq.fn.extend({data:function(b3,b8){var b7,b6,e,b5,b4,b1=this[0],b2=0,b0=null;if(b3===bS){if(this.length){b0=aq.data(b1);if(b1.nodeType===1&&!aq._data(b1,"parsedAttrs")){e=b1.attributes;for(b4=e.length;b2<b4;b2++){b5=e[b2].name;if(b5.indexOf("data-")===0){b5=aq.camelCase(b5.substring(5));P(b1,b5,b0[b5])}}aq._data(b1,"parsedAttrs",true)}}return b0}if(typeof b3==="object"){return this.each(function(){aq.data(this,b3)})}b7=b3.split(".",2);b7[1]=b7[1]?"."+b7[1]:"";b6=b7[1]+"!";return aq.access(this,function(b9){if(b9===bS){b0=this.triggerHandler("getData"+b6,[b7[0]]);if(b0===bS&&b1){b0=aq.data(b1,b3);b0=P(b1,b3,b0)}return b0===bS&&b7[1]?this.data(b7[0]):b0}b7[1]=b9;this.each(function(){var ca=aq(this);ca.triggerHandler("setData"+b6,b7);aq.data(this,b3,b9);ca.triggerHandler("changeData"+b6,b7)})},null,b8,arguments.length>1,null,false)},removeData:function(e){return this.each(function(){aq.removeData(this,e)})}});function P(b2,b3,b0){if(b0===bS&&b2.nodeType===1){var b4="data-"+b3.replace(a9,"-$1").toLowerCase();b0=b2.getAttribute(b4);if(typeof b0==="string"){try{b0=b0==="true"?true:b0==="false"?false:b0==="null"?null:+b0+""===b0?+b0:aE.test(b0)?aq.parseJSON(b0):b0}catch(b1){}aq.data(b2,b3,b0)}else{b0=bS}}return b0}function an(b0){var e;for(e in b0){if(e==="data"&&aq.isEmptyObject(b0[e])){continue}if(e!=="toJSON"){return false}}return true}aq.extend({queue:function(b0,b2,e){var b1;if(b0){b2=(b2||"fx")+"queue";b1=aq._data(b0,b2);if(e){if(!b1||aq.isArray(e)){b1=aq._data(b0,b2,aq.makeArray(e))}else{b1.push(e)}}return b1||[]}},dequeue:function(e,b5){b5=b5||"fx";var b3=aq.queue(e,b5),b4=b3.length,b0=b3.shift(),b1=aq._queueHooks(e,b5),b2=function(){aq.dequeue(e,b5)};if(b0==="inprogress"){b0=b3.shift();b4--}if(b0){if(b5==="fx"){b3.unshift("inprogress")}delete b1.stop;b0.call(e,b2,b1)}if(!b4&&b1){b1.empty.fire()}},_queueHooks:function(e,b1){var b0=b1+"queueHooks";return aq._data(e,b0)||aq._data(e,b0,{empty:aq.Callbacks("once memory").add(function(){aq.removeData(e,b1+"queue",true);aq.removeData(e,b0,true)})})}});aq.fn.extend({queue:function(b1,e){var b0=2;if(typeof b1!=="string"){e=b1;b1="fx";b0--}if(arguments.length<b0){return aq.queue(this[0],b1)}return e===bS?this:this.each(function(){var b2=aq.queue(this,b1,e);aq._queueHooks(this,b1);if(b1==="fx"&&b2[0]!=="inprogress"){aq.dequeue(this,b1)}})},dequeue:function(e){return this.each(function(){aq.dequeue(this,e)})},delay:function(e,b0){e=aq.fx?aq.fx.speeds[e]||e:e;b0=b0||"fx";return this.queue(b0,function(b2,b1){var b3=setTimeout(b2,e);b1.stop=function(){clearTimeout(b3)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(b6,b3){var b5,e=1,b0=aq.Deferred(),b1=this,b2=this.length,b4=function(){if(!(--e)){b0.resolveWith(b1,[b1])}};if(typeof b6!=="string"){b3=b6;b6=bS}b6=b6||"fx";while(b2--){b5=aq._data(b1[b2],b6+"queueHooks");if(b5&&b5.empty){e++;b5.empty.add(b4)}}b4();return b0.promise(b3)}});var au,p,Z,aI=/[\t\r\n]/g,bq=/\r/g,bB=/^(?:button|input)$/i,aR=/^(?:button|input|object|select|textarea)$/i,aK=/^a(?:rea|)$/i,aD=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,ae=aq.support.getSetAttribute;aq.fn.extend({attr:function(e,b0){return aq.access(this,aq.attr,e,b0,arguments.length>1)},removeAttr:function(e){return this.each(function(){aq.removeAttr(this,e)})},prop:function(e,b0){return aq.access(this,aq.prop,e,b0,arguments.length>1)},removeProp:function(e){e=aq.propFix[e]||e;return this.each(function(){try{this[e]=bS;delete this[e]}catch(b0){}})},addClass:function(b6){var b1,b3,b4,b2,b5,e,b0;if(aq.isFunction(b6)){return this.each(function(b7){aq(this).addClass(b6.call(this,b7,this.className))})}if(b6&&typeof b6==="string"){b1=b6.split(z);for(b3=0,b4=this.length;b3<b4;b3++){b2=this[b3];if(b2.nodeType===1){if(!b2.className&&b1.length===1){b2.className=b6}else{b5=" "+b2.className+" ";for(e=0,b0=b1.length;e<b0;e++){if(!~b5.indexOf(" "+b1[e]+" ")){b5+=b1[e]+" "}}b2.className=aq.trim(b5)}}}}return this},removeClass:function(b6){var b5,b1,b2,e,b0,b3,b4;if(aq.isFunction(b6)){return this.each(function(b7){aq(this).removeClass(b6.call(this,b7,this.className))})}if((b6&&typeof b6==="string")||b6===bS){b5=(b6||"").split(z);for(b3=0,b4=this.length;b3<b4;b3++){b2=this[b3];if(b2.nodeType===1&&b2.className){b1=(" "+b2.className+" ").replace(aI," ");for(e=0,b0=b5.length;e<b0;e++){while(b1.indexOf(" "+b5[e]+" ")>-1){b1=b1.replace(" "+b5[e]+" "," ")}}b2.className=b6?aq.trim(b1):""}}}return this},toggleClass:function(b2,b0){var b1=typeof b2,e=typeof b0==="boolean";if(aq.isFunction(b2)){return this.each(function(b3){aq(this).toggleClass(b2.call(this,b3,this.className,b0),b0)})}return this.each(function(){if(b1==="string"){var b3,b5=0,b6=aq(this),b7=b0,b4=b2.split(z);while((b3=b4[b5++])){b7=e?b7:!b6.hasClass(b3);b6[b7?"addClass":"removeClass"](b3)}}else{if(b1==="undefined"||b1==="boolean"){if(this.className){aq._data(this,"__className__",this.className)}this.className=this.className||b2===false?"":aq._data(this,"__className__")||""}}})},hasClass:function(b2){var e=" "+b2+" ",b0=0,b1=this.length;for(;b0<b1;b0++){if(this[b0].nodeType===1&&(" "+this[b0].className+" ").replace(aI," ").indexOf(e)>-1){return true}}return false},val:function(b3){var b0,b2,b1,e=this[0];if(!arguments.length){if(e){b0=aq.valHooks[e.type]||aq.valHooks[e.nodeName.toLowerCase()];if(b0&&"get" in b0&&(b2=b0.get(e,"value"))!==bS){return b2}b2=e.value;return typeof b2==="string"?b2.replace(bq,""):b2==null?"":b2}return}b1=aq.isFunction(b3);return this.each(function(b4){var b6,b5=aq(this);if(this.nodeType!==1){return}if(b1){b6=b3.call(this,b4,b5.val())}else{b6=b3}if(b6==null){b6=""}else{if(typeof b6==="number"){b6+=""}else{if(aq.isArray(b6)){b6=aq.map(b6,function(b7){return b7==null?"":b7+""})}}}b0=aq.valHooks[this.type]||aq.valHooks[this.nodeName.toLowerCase()];if(!b0||!("set" in b0)||b0.set(this,b6,"value")===bS){this.value=b6}})}});aq.extend({valHooks:{option:{get:function(e){var b0=e.attributes.value;return !b0||b0.specified?e.value:e.text}},select:{get:function(e){var b6,b0,b2,b4,b1=e.selectedIndex,b7=[],b5=e.options,b3=e.type==="select-one";if(b1<0){return null}b0=b3?b1:0;b2=b3?b1+1:b5.length;for(;b0<b2;b0++){b4=b5[b0];if(b4.selected&&(aq.support.optDisabled?!b4.disabled:b4.getAttribute("disabled")===null)&&(!b4.parentNode.disabled||!aq.nodeName(b4.parentNode,"optgroup"))){b6=aq(b4).val();if(b3){return b6}b7.push(b6)}}if(b3&&!b7.length&&b5.length){return aq(b5[b1]).val()}return b7},set:function(e,b0){var b1=aq.makeArray(b0);aq(e).find("option").each(function(){this.selected=aq.inArray(aq(this).val(),b1)>=0});if(!b1.length){e.selectedIndex=-1}return b1}}},attrFn:{},attr:function(e,b1,b6,b4){var b5,b0,b2,b3=e.nodeType;if(!e||b3===3||b3===8||b3===2){return}if(b4&&aq.isFunction(aq.fn[b1])){return aq(e)[b1](b6)}if(typeof e.getAttribute==="undefined"){return aq.prop(e,b1,b6)}b2=b3!==1||!aq.isXMLDoc(e);if(b2){b1=b1.toLowerCase();b0=aq.attrHooks[b1]||(aD.test(b1)?p:au)}if(b6!==bS){if(b6===null){aq.removeAttr(e,b1);return}else{if(b0&&"set" in b0&&b2&&(b5=b0.set(e,b6,b1))!==bS){return b5}else{e.setAttribute(b1,""+b6);return b6}}}else{if(b0&&"get" in b0&&b2&&(b5=b0.get(e,b1))!==null){return b5}else{b5=e.getAttribute(b1);return b5===null?bS:b5}}},removeAttr:function(b0,b5){var b4,e,b3,b2,b1=0;if(b5&&b0.nodeType===1){e=b5.split(z);for(;b1<e.length;b1++){b3=e[b1];if(b3){b4=aq.propFix[b3]||b3;b2=aD.test(b3);if(!b2){aq.attr(b0,b3,"")}b0.removeAttribute(ae?b3:b4);if(b2&&b4 in b0){b0[b4]=false}}}}},attrHooks:{type:{set:function(e,b1){if(bB.test(e.nodeName)&&e.parentNode){aq.error("type property can't be changed")}else{if(!aq.support.radioValue&&b1==="radio"&&aq.nodeName(e,"input")){var b0=e.value;e.setAttribute("type",b1);if(b0){e.value=b0}return b1}}}},value:{get:function(e,b0){if(au&&aq.nodeName(e,"button")){return au.get(e,b0)}return b0 in e?e.value:null},set:function(e,b1,b0){if(au&&aq.nodeName(e,"button")){return au.set(e,b1,b0)}e.value=b1}}},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(e,b1,b5){var b4,b0,b2,b3=e.nodeType;if(!e||b3===3||b3===8||b3===2){return}b2=b3!==1||!aq.isXMLDoc(e);if(b2){b1=aq.propFix[b1]||b1;b0=aq.propHooks[b1]}if(b5!==bS){if(b0&&"set" in b0&&(b4=b0.set(e,b5,b1))!==bS){return b4}else{return(e[b1]=b5)}}else{if(b0&&"get" in b0&&(b4=b0.get(e,b1))!==null){return b4}else{return e[b1]}}},propHooks:{tabIndex:{get:function(b0){var e=b0.getAttributeNode("tabindex");return e&&e.specified?parseInt(e.value,10):aR.test(b0.nodeName)||aK.test(b0.nodeName)&&b0.href?0:bS}}}});p={get:function(b0,b1){var e,b2=aq.prop(b0,b1);return b2===true||typeof b2!=="boolean"&&(e=b0.getAttributeNode(b1))&&e.nodeValue!==false?b1.toLowerCase():bS},set:function(e,b2,b0){var b1;if(b2===false){aq.removeAttr(e,b0)}else{b1=aq.propFix[b0]||b0;if(b1 in e){e[b1]=true}e.setAttribute(b0,b0.toLowerCase())}return b0}};if(!ae){Z={name:true,id:true,coords:true};au=aq.valHooks.button={get:function(e,b0){var b1;b1=e.getAttributeNode(b0);return b1&&(Z[b0]?b1.value!=="":b1.specified)?b1.value:bS},set:function(e,b2,b0){var b1=e.getAttributeNode(b0);if(!b1){b1=R.createAttribute(b0);e.setAttributeNode(b1)}return(b1.value=b2+"")}};aq.each(["width","height"],function(e,b0){aq.attrHooks[b0]=aq.extend(aq.attrHooks[b0],{set:function(b1,b2){if(b2===""){b1.setAttribute(b0,"auto");return b2}}})});aq.attrHooks.contenteditable={get:au.get,set:function(e,b1,b0){if(b1===""){b1="false"}au.set(e,b1,b0)}}}if(!aq.support.hrefNormalized){aq.each(["href","src","width","height"],function(e,b0){aq.attrHooks[b0]=aq.extend(aq.attrHooks[b0],{get:function(b1){var b2=b1.getAttribute(b0,2);return b2===null?bS:b2}})})}if(!aq.support.style){aq.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||bS},set:function(e,b0){return(e.style.cssText=""+b0)}}}if(!aq.support.optSelected){aq.propHooks.selected=aq.extend(aq.propHooks.selected,{get:function(e){var b0=e.parentNode;if(b0){b0.selectedIndex;if(b0.parentNode){b0.parentNode.selectedIndex}}return null}})}if(!aq.support.enctype){aq.propFix.enctype="encoding"}if(!aq.support.checkOn){aq.each(["radio","checkbox"],function(){aq.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}})}aq.each(["radio","checkbox"],function(){aq.valHooks[this]=aq.extend(aq.valHooks[this],{set:function(e,b0){if(aq.isArray(b0)){return(e.checked=aq.inArray(aq(e).val(),b0)>=0)}}})});var aT=/^(?:textarea|input|select)$/i,bC=/^([^\.]*|)(?:\.(.+)|)$/,aY=/(?:^|\s)hover(\.\S+|)\b/,a3=/^key/,a7=/^(?:mouse|contextmenu)|click/,aS=/^(?:focusinfocus|focusoutblur)$/,ai=function(e){return aq.event.special.hover?e:e.replace(aY,"mouseenter$1 mouseleave$1")};aq.event={add:function(b0,ce,b6,e,b9){var b1,b2,b3,cb,cc,cd,b8,b4,b5,b7,ca;if(b0.nodeType===3||b0.nodeType===8||!ce||!b6||!(b1=aq._data(b0))){return}if(b6.handler){b5=b6;b6=b5.handler;b9=b5.selector}if(!b6.guid){b6.guid=aq.guid++}b3=b1.events;if(!b3){b1.events=b3={}}b2=b1.handle;if(!b2){b1.handle=b2=function(cf){return typeof aq!=="undefined"&&(!cf||aq.event.triggered!==cf.type)?aq.event.dispatch.apply(b2.elem,arguments):bS};b2.elem=b0}ce=aq.trim(ai(ce)).split(" ");for(cb=0;cb<ce.length;cb++){cc=bC.exec(ce[cb])||[];cd=cc[1];b8=(cc[2]||"").split(".").sort();ca=aq.event.special[cd]||{};cd=(b9?ca.delegateType:ca.bindType)||cd;ca=aq.event.special[cd]||{};b4=aq.extend({type:cd,origType:cc[1],data:e,handler:b6,guid:b6.guid,selector:b9,namespace:b8.join(".")},b5);b7=b3[cd];if(!b7){b7=b3[cd]=[];b7.delegateCount=0;if(!ca.setup||ca.setup.call(b0,e,b8,b2)===false){if(b0.addEventListener){b0.addEventListener(cd,b2,false)}else{if(b0.attachEvent){b0.attachEvent("on"+cd,b2)}}}}if(ca.add){ca.add.call(b0,b4);if(!b4.handler.guid){b4.handler.guid=b6.guid}}if(b9){b7.splice(b7.delegateCount++,0,b4)}else{b7.push(b4)}aq.event.global[cd]=true}b0=null},global:{},remove:function(e,cf,b4,ca,b6){var cc,cd,ce,b9,b7,b8,b5,b1,cb,b2,b3,b0=aq.hasData(e)&&aq._data(e);if(!b0||!(b1=b0.events)){return}cf=aq.trim(ai(cf||"")).split(" ");for(cc=0;cc<cf.length;cc++){cd=bC.exec(cf[cc])||[];ce=b9=cd[1];b7=cd[2];if(!ce){for(ce in b1){aq.event.remove(e,ce+cf[cc],b4,ca,true)}continue}cb=aq.event.special[ce]||{};ce=(ca?cb.delegateType:cb.bindType)||ce;b2=b1[ce]||[];b8=b2.length;b7=b7?new RegExp("(^|\\.)"+b7.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null;for(b5=0;b5<b2.length;b5++){b3=b2[b5];if((b6||b9===b3.origType)&&(!b4||b4.guid===b3.guid)&&(!b7||b7.test(b3.namespace))&&(!ca||ca===b3.selector||ca==="**"&&b3.selector)){b2.splice(b5--,1);if(b3.selector){b2.delegateCount--}if(cb.remove){cb.remove.call(e,b3)}}}if(b2.length===0&&b8!==b2.length){if(!cb.teardown||cb.teardown.call(e,b7,b0.handle)===false){aq.removeEvent(e,ce,b0.handle)}delete b1[ce]}}if(aq.isEmptyObject(b1)){delete b0.handle;aq.removeData(e,"events",true)}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(b4,b2,b3,cb){if(b3&&(b3.nodeType===3||b3.nodeType===8)){return}var b0,b6,b8,b1,ca,cc,cd,b7,b5,e,ce=b4.type||b4,b9=[];if(aS.test(ce+aq.event.triggered)){return}if(ce.indexOf("!")>=0){ce=ce.slice(0,-1);b6=true}if(ce.indexOf(".")>=0){b9=ce.split(".");ce=b9.shift();b9.sort()}if((!b3||aq.event.customEvent[ce])&&!aq.event.global[ce]){return}b4=typeof b4==="object"?b4[aq.expando]?b4:new aq.Event(ce,b4):new aq.Event(ce);b4.type=ce;b4.isTrigger=true;b4.exclusive=b6;b4.namespace=b9.join(".");b4.namespace_re=b4.namespace?new RegExp("(^|\\.)"+b9.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;cc=ce.indexOf(":")<0?"on"+ce:"";if(!b3){b0=aq.cache;for(b8 in b0){if(b0[b8].events&&b0[b8].events[ce]){aq.event.trigger(b4,b2,b0[b8].handle.elem,true)}}return}b4.result=bS;if(!b4.target){b4.target=b3}b2=b2!=null?aq.makeArray(b2):[];b2.unshift(b4);cd=aq.event.special[ce]||{};if(cd.trigger&&cd.trigger.apply(b3,b2)===false){return}b5=[[b3,cd.bindType||ce]];if(!cb&&!cd.noBubble&&!aq.isWindow(b3)){e=cd.delegateType||ce;b1=aS.test(e+ce)?b3:b3.parentNode;for(ca=b3;b1;b1=b1.parentNode){b5.push([b1,e]);ca=b1}if(ca===(b3.ownerDocument||R)){b5.push([ca.defaultView||ca.parentWindow||bU,e])}}for(b8=0;b8<b5.length&&!b4.isPropagationStopped();b8++){b1=b5[b8][0];b4.type=b5[b8][1];b7=(aq._data(b1,"events")||{})[b4.type]&&aq._data(b1,"handle");if(b7){b7.apply(b1,b2)}b7=cc&&b1[cc];if(b7&&aq.acceptData(b1)&&b7.apply(b1,b2)===false){b4.preventDefault()}}b4.type=ce;if(!cb&&!b4.isDefaultPrevented()){if((!cd._default||cd._default.apply(b3.ownerDocument,b2)===false)&&!(ce==="click"&&aq.nodeName(b3,"a"))&&aq.acceptData(b3)){if(cc&&b3[ce]&&((ce!=="focus"&&ce!=="blur")||b4.target.offsetWidth!==0)&&!aq.isWindow(b3)){ca=b3[cc];if(ca){b3[cc]=null}aq.event.triggered=ce;b3[ce]();aq.event.triggered=bS;if(ca){b3[cc]=ca}}}}return b4.result},dispatch:function(b2){b2=aq.event.fix(b2||bU.event);var b6,b7,b0,cb,ce,b8,b9,b3,cd,ca,b5=((aq._data(this,"events")||{})[b2.type]||[]),b1=b5.delegateCount,e=[].slice.call(arguments),cc=!b2.exclusive&&!b2.namespace,cf=aq.event.special[b2.type]||{},b4=[];e[0]=b2;b2.delegateTarget=this;if(cf.preDispatch&&cf.preDispatch.call(this,b2)===false){return}if(b1&&!(b2.button&&b2.type==="click")){for(b0=b2.target;b0!=this;b0=b0.parentNode||this){if(b0.disabled!==true||b2.type!=="click"){ce={};b9=[];for(b6=0;b6<b1;b6++){b3=b5[b6];cd=b3.selector;if(ce[cd]===bS){ce[cd]=aq(cd,this).index(b0)>=0}if(ce[cd]){b9.push(b3)}}if(b9.length){b4.push({elem:b0,matches:b9})}}}}if(b5.length>b1){b4.push({elem:this,matches:b5.slice(b1)})}for(b6=0;b6<b4.length&&!b2.isPropagationStopped();b6++){b8=b4[b6];b2.currentTarget=b8.elem;for(b7=0;b7<b8.matches.length&&!b2.isImmediatePropagationStopped();b7++){b3=b8.matches[b7];if(cc||(!b2.namespace&&!b3.namespace)||b2.namespace_re&&b2.namespace_re.test(b3.namespace)){b2.data=b3.data;b2.handleObj=b3;cb=((aq.event.special[b3.origType]||{}).handle||b3.handler).apply(b8.elem,e);if(cb!==bS){b2.result=cb;if(cb===false){b2.preventDefault();b2.stopPropagation()}}}}}if(cf.postDispatch){cf.postDispatch.call(this,b2)}return b2.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,b0){if(e.which==null){e.which=b0.charCode!=null?b0.charCode:b0.keyCode}return e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(b2,b5){var b3,b1,e,b0=b5.button,b4=b5.fromElement;if(b2.pageX==null&&b5.clientX!=null){b3=b2.target.ownerDocument||R;b1=b3.documentElement;e=b3.body;b2.pageX=b5.clientX+(b1&&b1.scrollLeft||e&&e.scrollLeft||0)-(b1&&b1.clientLeft||e&&e.clientLeft||0);b2.pageY=b5.clientY+(b1&&b1.scrollTop||e&&e.scrollTop||0)-(b1&&b1.clientTop||e&&e.clientTop||0)}if(!b2.relatedTarget&&b4){b2.relatedTarget=b4===b2.target?b5.toElement:b4}if(!b2.which&&b0!==bS){b2.which=(b0&1?1:(b0&2?3:(b0&4?2:0)))}return b2}},fix:function(b0){if(b0[aq.expando]){return b0}var b2,b4,b3=b0,b1=aq.event.fixHooks[b0.type]||{},e=b1.props?this.props.concat(b1.props):this.props;b0=aq.Event(b3);for(b2=e.length;b2;){b4=e[--b2];b0[b4]=b3[b4]}if(!b0.target){b0.target=b3.srcElement||R}if(b0.target.nodeType===3){b0.target=b0.target.parentNode}b0.metaKey=!!b0.metaKey;return b1.filter?b1.filter(b0,b3):b0},special:{load:{noBubble:true},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(e,b1,b0){if(aq.isWindow(this)){this.onbeforeunload=b0}},teardown:function(b0,e){if(this.onbeforeunload===e){this.onbeforeunload=null}}}},simulate:function(b4,b2,b3,b0){var b1=aq.extend(new aq.Event(),b3,{type:b4,isSimulated:true,originalEvent:{}});if(b0){aq.event.trigger(b1,null,b2)}else{aq.event.dispatch.call(b2,b1)}if(b1.isDefaultPrevented()){b3.preventDefault()}}};aq.event.handle=aq.event.dispatch;aq.removeEvent=R.removeEventListener?function(e,b1,b0){if(e.removeEventListener){e.removeEventListener(b1,b0,false)}}:function(e,b2,b0){var b1="on"+b2;if(e.detachEvent){if(typeof e[b1]==="undefined"){e[b1]=null}e.detachEvent(b1,b0)}};aq.Event=function(b0,e){if(!(this instanceof aq.Event)){return new aq.Event(b0,e)}if(b0&&b0.type){this.originalEvent=b0;this.type=b0.type;this.isDefaultPrevented=(b0.defaultPrevented||b0.returnValue===false||b0.getPreventDefault&&b0.getPreventDefault())?aQ:aP}else{this.type=b0}if(e){aq.extend(this,e)}this.timeStamp=b0&&b0.timeStamp||aq.now();this[aq.expando]=true};function aP(){return false}function aQ(){return true}aq.Event.prototype={preventDefault:function(){this.isDefaultPrevented=aQ;var b0=this.originalEvent;if(!b0){return}if(b0.preventDefault){b0.preventDefault()}else{b0.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=aQ;var b0=this.originalEvent;if(!b0){return}if(b0.stopPropagation){b0.stopPropagation()}b0.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=aQ;this.stopPropagation()},isDefaultPrevented:aP,isPropagationStopped:aP,isImmediatePropagationStopped:aP};aq.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(b0,e){aq.event.special[b0]={delegateType:e,bindType:e,handle:function(b1){var b4,b6=this,b3=b1.relatedTarget,b2=b1.handleObj,b5=b2.selector;if(!b3||(b3!==b6&&!aq.contains(b6,b3))){b1.type=b2.origType;b4=b2.handler.apply(this,arguments);b1.type=e}return b4}}});if(!aq.support.submitBubbles){aq.event.special.submit={setup:function(){if(aq.nodeName(this,"form")){return false}aq.event.add(this,"click._submit keypress._submit",function(b0){var b1=b0.target,b2=aq.nodeName(b1,"input")||aq.nodeName(b1,"button")?b1.form:bS;if(b2&&!aq._data(b2,"_submit_attached")){aq.event.add(b2,"submit._submit",function(e){e._submit_bubble=true});aq._data(b2,"_submit_attached",true)}})},postDispatch:function(e){if(e._submit_bubble){delete e._submit_bubble;if(this.parentNode&&!e.isTrigger){aq.event.simulate("submit",this.parentNode,e,true)}}},teardown:function(){if(aq.nodeName(this,"form")){return false}aq.event.remove(this,"._submit")}}}if(!aq.support.changeBubbles){aq.event.special.change={setup:function(){if(aT.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){aq.event.add(this,"propertychange._change",function(e){if(e.originalEvent.propertyName==="checked"){this._just_changed=true}});aq.event.add(this,"click._change",function(e){if(this._just_changed&&!e.isTrigger){this._just_changed=false}aq.event.simulate("change",this,e,true)})}return false}aq.event.add(this,"beforeactivate._change",function(b0){var b1=b0.target;if(aT.test(b1.nodeName)&&!aq._data(b1,"_change_attached")){aq.event.add(b1,"change._change",function(e){if(this.parentNode&&!e.isSimulated&&!e.isTrigger){aq.event.simulate("change",this.parentNode,e,true)}});aq._data(b1,"_change_attached",true)}})},handle:function(b0){var e=b0.target;if(this!==e||b0.isSimulated||b0.isTrigger||(e.type!=="radio"&&e.type!=="checkbox")){return b0.handleObj.handler.apply(this,arguments)}},teardown:function(){aq.event.remove(this,"._change");return !aT.test(this.nodeName)}}}if(!aq.support.focusinBubbles){aq.each({focus:"focusin",blur:"focusout"},function(b2,b0){var e=0,b1=function(b3){aq.event.simulate(b0,b3.target,aq.event.fix(b3),true)};aq.event.special[b0]={setup:function(){if(e++===0){R.addEventListener(b2,b1,true)}},teardown:function(){if(--e===0){R.removeEventListener(b2,b1,true)}}}})}aq.fn.extend({on:function(b5,b3,e,b0,b1){var b2,b4;if(typeof b5==="object"){if(typeof b3!=="string"){e=e||b3;b3=bS}for(b4 in b5){this.on(b4,b3,e,b5[b4],b1)}return this}if(e==null&&b0==null){b0=b3;e=b3=bS}else{if(b0==null){if(typeof b3==="string"){b0=e;e=bS}else{b0=e;e=b3;b3=bS}}}if(b0===false){b0=aP}else{if(!b0){return this}}if(b1===1){b2=b0;b0=function(b6){aq().off(b6);return b2.apply(this,arguments)};b0.guid=b2.guid||(b2.guid=aq.guid++)}return this.each(function(){aq.event.add(this,b5,b0,e,b3)})},one:function(b2,b1,e,b0){return this.on(b2,b1,e,b0,1)},off:function(b3,b1,e){var b0,b2;if(b3&&b3.preventDefault&&b3.handleObj){b0=b3.handleObj;aq(b3.delegateTarget).off(b0.namespace?b0.origType+"."+b0.namespace:b0.origType,b0.selector,b0.handler);return this}if(typeof b3==="object"){for(b2 in b3){this.off(b2,b1,b3[b2])}return this}if(b1===false||typeof b1==="function"){e=b1;b1=bS}if(e===false){e=aP}return this.each(function(){aq.event.remove(this,b3,e,b1)})},bind:function(b1,e,b0){return this.on(b1,null,e,b0)},unbind:function(b0,e){return this.off(b0,null,e)},live:function(b1,e,b0){aq(this.context).on(b1,this.selector,e,b0);return this},die:function(b0,e){aq(this.context).off(b0,this.selector||"**",e);return this},delegate:function(b1,b2,e,b0){return this.on(b2,b1,e,b0)},undelegate:function(b0,b1,e){return arguments.length==1?this.off(b0,"**"):this.off(b1,b0||"**",e)},trigger:function(b0,e){return this.each(function(){aq.event.trigger(b0,e,this)})},triggerHandler:function(b0,e){if(this[0]){return aq.event.trigger(b0,e,this[0],true)}},toggle:function(b0){var e=arguments,b1=b0.guid||aq.guid++,b2=0,b3=function(b4){var b5=(aq._data(this,"lastToggle"+b0.guid)||0)%b2;aq._data(this,"lastToggle"+b0.guid,b5+1);b4.preventDefault();return e[b5].apply(this,arguments)||false};b3.guid=b1;while(b2<e.length){e[b2++].guid=b1}return this.click(b3)},hover:function(b0,e){return this.mouseenter(b0).mouseleave(e||b0)}});aq.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 contextmenu").split(" "),function(e,b0){aq.fn[b0]=function(b1,b2){if(b2==null){b2=b1;b1=null}return arguments.length>0?this.on(b0,null,b1,b2):this.trigger(b0)};if(a3.test(b0)){aq.event.fixHooks[b0]=aq.event.keyHooks}if(a7.test(b0)){aq.event.fixHooks[b0]=aq.event.mouseHooks}});
/*
  * Sizzle CSS Selector Engine
  *  Copyright 2012 jQuery Foundation and other contributors
  *  Released under the MIT license
  *  http://sizzlejs.com/
  */
(function(c1,cZ){var ck,cb,b4,cq,cr,cw,cg,ce,cV,cu,ca=true,cW="undefined",cp=("sizcache"+Math.random()).replace(".",""),cm=c1.document,cl=cm.documentElement,cn=0,cU=[].slice,cF=[].push,cx=function(e,c2){e[cp]=c2||true;return e},ci=function(){var e={},c2=[];return cx(function(c3,c4){if(c2.push(c3)>cq.cacheLength){delete e[c2.shift()]}return(e[c3]=c4)},e)},cd=ci(),cX=ci(),cf=ci(),c0="[\\x20\\t\\r\\n\\f]",cc="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",cv=cc.replace("w","w#"),cC="([*^$|!~]?=)",b9="\\["+c0+"*("+cc+")"+c0+"*(?:"+cC+c0+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+cv+")|)|)"+c0+"*\\]",cE=":("+cc+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+b9+")|[^:]|\\\\.)*|.*))\\)|)",cD=":(nth|eq|gt|lt|first|last|even|odd)(?:\\(((?:-\\d)?\\d*)\\)|)(?=[^-]|$)",cQ=new RegExp("^"+c0+"+|((?:^|[^\\\\])(?:\\\\.)*)"+c0+"+$","g"),cI=new RegExp("^"+c0+"*,"+c0+"*"),cH=new RegExp("^"+c0+"*([\\x20\\t\\r\\n\\f>+~])"+c0+"*"),cN=new RegExp(cE),cO=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,cM=/^:not/,cP=/[\x20\t\r\n\f]*[+~]/,cJ=/:not\($/,cK=/h\d/i,cL=/input|select|textarea|button/i,cG=/\\(?!\\)/g,cA={ID:new RegExp("^#("+cc+")"),CLASS:new RegExp("^\\.("+cc+")"),NAME:new RegExp("^\\[name=['\"]?("+cc+")['\"]?\\]"),TAG:new RegExp("^("+cc.replace("w","w*")+")"),ATTR:new RegExp("^"+b9),PSEUDO:new RegExp("^"+cE),CHILD:new RegExp("^:(only|nth|last|first)-child(?:\\("+c0+"*(even|odd|(([+-]|)(\\d*)n|)"+c0+"*(?:([+-]|)"+c0+"*(\\d+)|))"+c0+"*\\)|)","i"),POS:new RegExp(cD,"ig"),needsContext:new RegExp("^"+c0+"*[>+~]|"+cD,"i")},b2=function(c4){var c2=cm.createElement("div");try{return c4(c2)}catch(c3){return false}finally{c2=null}},b6=b2(function(e){e.appendChild(cm.createComment(""));return !e.getElementsByTagName("*").length}),b5=b2(function(e){e.innerHTML="<a href='#'></a>";return e.firstChild&&typeof e.firstChild.getAttribute!==cW&&e.firstChild.getAttribute("href")==="#"}),b3=b2(function(e){e.innerHTML="<select></select>";var c2=typeof e.lastChild.getAttribute("multiple");return c2!=="boolean"&&c2!=="string"}),b7=b2(function(e){e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>";if(!e.getElementsByClassName||!e.getElementsByClassName("e").length){return false}e.lastChild.className="e";return e.getElementsByClassName("e").length===2}),b8=b2(function(e){e.id=cp+0;e.innerHTML="<a name='"+cp+"'></a><div name='"+cp+"'></div>";cl.insertBefore(e,cl.firstChild);var c2=cm.getElementsByName&&cm.getElementsByName(cp).length===2+cm.getElementsByName(cp+0).length;b4=!cm.getElementById(cp);cl.removeChild(e);return c2});try{cU.call(cl.childNodes,0)[0].nodeType}catch(co){cU=function(c2){var e,c3=[];for(;(e=this[c2]);c2++){c3.push(e)}return c3}}function cT(c8,e,c6,c7){c6=c6||[];e=e||cm;var c4,c2,c9,c3,c5=e.nodeType;if(c5!==1&&c5!==9){return[]}if(!c8||typeof c8!=="string"){return c6}c9=cw(e);if(!c9&&!c7){if((c4=cO.exec(c8))){if((c3=c4[1])){if(c5===9){c2=e.getElementById(c3);if(c2&&c2.parentNode){if(c2.id===c3){c6.push(c2);return c6}}else{return c6}}else{if(e.ownerDocument&&(c2=e.ownerDocument.getElementById(c3))&&cg(e,c2)&&c2.id===c3){c6.push(c2);return c6}}}else{if(c4[2]){cF.apply(c6,cU.call(e.getElementsByTagName(c8),0));return c6}else{if((c3=c4[3])&&b7&&e.getElementsByClassName){cF.apply(c6,cU.call(e.getElementsByClassName(c3),0));return c6}}}}}return cR(c8,e,c6,c7,c9)}cT.matches=function(c2,e){return cT(c2,null,null,e)};cT.matchesSelector=function(e,c2){return cT(c2,null,null,[e]).length>0};function cj(e){return function(c2){var c3=c2.nodeName.toLowerCase();return c3==="input"&&c2.type===e}}function ch(e){return function(c2){var c3=c2.nodeName.toLowerCase();return(c3==="input"||c3==="button")&&c2.type===e}}cr=cT.getText=function(e){var c3,c5="",c2=0,c4=e.nodeType;if(c4){if(c4===1||c4===9||c4===11){if(typeof e.textContent==="string"){return e.textContent}else{for(e=e.firstChild;e;e=e.nextSibling){c5+=cr(e)}}}else{if(c4===3||c4===4){return e.nodeValue}}}else{for(;(c3=e[c2]);c2++){c5+=cr(c3)}}return c5};cw=cT.isXML=function cw(c2){var e=c2&&(c2.ownerDocument||c2).documentElement;return e?e.nodeName!=="HTML":false};cg=cT.contains=cl.contains?function(e,c3){var c2=e.nodeType===9?e.documentElement:e,c4=c3&&c3.parentNode;return e===c4||!!(c4&&c4.nodeType===1&&c2.contains&&c2.contains(c4))}:cl.compareDocumentPosition?function(e,c2){return c2&&!!(e.compareDocumentPosition(c2)&16)}:function(e,c2){while((c2=c2.parentNode)){if(c2===e){return true}}return false};cT.attr=function(c2,c3){var e,c4=cw(c2);if(!c4){c3=c3.toLowerCase()}if(cq.attrHandle[c3]){return cq.attrHandle[c3](c2)}if(b3||c4){return c2.getAttribute(c3)}e=c2.getAttributeNode(c3);return e?typeof c2[c3]==="boolean"?c2[c3]?c3:null:e.specified?e.value:null:null};cq=cT.selectors={cacheLength:50,createPseudo:cx,match:cA,order:new RegExp("ID|TAG"+(b8?"|NAME":"")+(b7?"|CLASS":"")),attrHandle:b5?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:b4?function(c2,e,c4){if(typeof e.getElementById!==cW&&!c4){var c3=e.getElementById(c2);return c3&&c3.parentNode?[c3]:[]}}:function(c2,e,c4){if(typeof e.getElementById!==cW&&!c4){var c3=e.getElementById(c2);return c3?c3.id===c2||typeof c3.getAttributeNode!==cW&&c3.getAttributeNode("id").value===c2?[c3]:cZ:[]}},TAG:b6?function(c2,e){if(typeof e.getElementsByTagName!==cW){return e.getElementsByTagName(c2)}}:function(c5,e){var c4=e.getElementsByTagName(c5);if(c5==="*"){var c2,c6=[],c3=0;for(;(c2=c4[c3]);c3++){if(c2.nodeType===1){c6.push(c2)}}return c6}return c4},NAME:function(c2,e){if(typeof e.getElementsByName!==cW){return e.getElementsByName(name)}},CLASS:function(e,c2,c3){if(typeof c2.getElementsByClassName!==cW&&!c3){return c2.getElementsByClassName(e)}}},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){e[1]=e[1].replace(cG,"");e[3]=(e[4]||e[5]||"").replace(cG,"");if(e[2]==="~="){e[3]=" "+e[3]+" "}return e.slice(0,4)},CHILD:function(e){e[1]=e[1].toLowerCase();if(e[1]==="nth"){if(!e[2]){cT.error(e[0])}e[3]=+(e[3]?e[4]+(e[5]||1):2*(e[2]==="even"||e[2]==="odd"));e[4]=+((e[6]+e[7])||e[2]==="odd")}else{if(e[2]){cT.error(e[0])}}return e},PSEUDO:function(c3,e,c5){var c4,c2;if(cA.CHILD.test(c3[0])){return null}if(c3[3]){c3[2]=c3[3]}else{if((c4=c3[4])){if(cN.test(c4)&&(c2=cY(c4,e,c5,true))&&(c2=c4.indexOf(")",c4.length-c2)-c4.length)){c4=c4.slice(0,c2);c3[0]=c3[0].slice(0,c2)}c3[2]=c4}}return c3.slice(0,3)}},filter:{ID:b4?function(e){e=e.replace(cG,"");return function(c2){return c2.getAttribute("id")===e}}:function(e){e=e.replace(cG,"");return function(c2){var c3=typeof c2.getAttributeNode!==cW&&c2.getAttributeNode("id");return c3&&c3.value===e}},TAG:function(e){if(e==="*"){return function(){return true}}e=e.replace(cG,"").toLowerCase();return function(c2){return c2.nodeName&&c2.nodeName.toLowerCase()===e}},CLASS:function(e){var c2=cd[cp][e];if(!c2){c2=cd(e,new RegExp("(^|"+c0+")"+e+"("+c0+"|$)"))}return function(c3){return c2.test(c3.className||(typeof c3.getAttribute!==cW&&c3.getAttribute("class"))||"")}},ATTR:function(c2,c3,e){if(!c3){return function(c4){return cT.attr(c4,c2)!=null}}return function(c4){var c5=cT.attr(c4,c2),c6=c5+"";if(c5==null){return c3==="!="}switch(c3){case"=":return c6===e;case"!=":return c6!==e;case"^=":return e&&c6.indexOf(e)===0;case"*=":return e&&c6.indexOf(e)>-1;case"$=":return e&&c6.substr(c6.length-e.length)===e;case"~=":return(" "+c6+" ").indexOf(e)>-1;case"|=":return c6===e||c6.substr(0,e.length+1)===e+"-"}}},CHILD:function(c5,e,c3,c4){if(c5==="nth"){var c2=cn++;return function(c8){var da,c7,c6=0,c9=c8;if(c3===1&&c4===0){return true}da=c8.parentNode;if(da&&(da[cp]!==c2||!c8.sizset)){for(c9=da.firstChild;c9;c9=c9.nextSibling){if(c9.nodeType===1){c9.sizset=++c6;if(c9===c8){break}}}da[cp]=c2}c7=c8.sizset-c4;if(c3===0){return c7===0}else{return(c7%c3===0&&c7/c3>=0)}}}return function(c6){var c7=c6;switch(c5){case"only":case"first":while((c7=c7.previousSibling)){if(c7.nodeType===1){return false}}if(c5==="first"){return true}c7=c6;case"last":while((c7=c7.nextSibling)){if(c7.nodeType===1){return false}}return true}}},PSEUDO:function(c5,c2,c3,c6){var e,c4=cq.pseudos[c5]||cq.pseudos[c5.toLowerCase()];if(!c4){cT.error("unsupported pseudo: "+c5)}if(!c4[cp]){if(c4.length>1){e=[c5,c5,"",c2];return function(c7){return c4(c7,0,e)}}return c4}return c4(c2,c3,c6)}},pseudos:{not:cx(function(c3,e,c4){var c2=ce(c3.replace(cQ,"$1"),e,c4);return function(c5){return !c2(c5)}}),enabled:function(e){return e.disabled===false},disabled:function(e){return e.disabled===true},checked:function(e){var c2=e.nodeName.toLowerCase();return(c2==="input"&&!!e.checked)||(c2==="option"&&!!e.selected)},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},parent:function(e){return !cq.pseudos.empty(e)},empty:function(e){var c2;e=e.firstChild;while(e){if(e.nodeName>"@"||(c2=e.nodeType)===3||c2===4){return false}e=e.nextSibling}return true},contains:cx(function(e){return function(c2){return(c2.textContent||c2.innerText||cr(c2)).indexOf(e)>-1}}),has:cx(function(e){return function(c2){return cT(e,c2).length>0}}),header:function(e){return cK.test(e.nodeName)},text:function(c2){var c3,e;return c2.nodeName.toLowerCase()==="input"&&(c3=c2.type)==="text"&&((e=c2.getAttribute("type"))==null||e.toLowerCase()===c3)},radio:cj("radio"),checkbox:cj("checkbox"),file:cj("file"),password:cj("password"),image:cj("image"),submit:ch("submit"),reset:ch("reset"),button:function(e){var c2=e.nodeName.toLowerCase();return c2==="input"&&e.type==="button"||c2==="button"},input:function(e){return cL.test(e.nodeName)},focus:function(c2){var e=c2.ownerDocument;return c2===e.activeElement&&(!e.hasFocus||e.hasFocus())&&!!(c2.type||c2.href)},active:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(c2,e,c3){return c3?c2.slice(1):[c2[0]]},last:function(c3,e,c4){var c2=c3.pop();return c4?c3:[c2]},even:function(c2,e,c5){var c6=[],c3=c5?1:0,c4=c2.length;for(;c3<c4;c3=c3+2){c6.push(c2[c3])}return c6},odd:function(c2,e,c5){var c6=[],c3=c5?0:1,c4=c2.length;for(;c3<c4;c3=c3+2){c6.push(c2[c3])}return c6},lt:function(c2,e,c3){return c3?c2.slice(+e):c2.slice(0,+e)},gt:function(c2,e,c3){return c3?c2.slice(0,+e+1):c2.slice(+e+1)},eq:function(c3,e,c4){var c2=c3.splice(+e,1);return c4?c3:c2}}};function cS(e,c2,c4){if(e===c2){return c4}var c3=e.nextSibling;while(c3){if(c3===c2){return -1}c3=c3.nextSibling}return 1}cV=cl.compareDocumentPosition?function(e,c2){if(e===c2){cu=true;return 0}return(!e.compareDocumentPosition||!c2.compareDocumentPosition?e.compareDocumentPosition:e.compareDocumentPosition(c2)&4)?-1:1}:function(e,c5){if(e===c5){cu=true;return 0}else{if(e.sourceIndex&&c5.sourceIndex){return e.sourceIndex-c5.sourceIndex}}var c2,c6,c3=[],c7=[],c4=e.parentNode,c8=c5.parentNode,c9=c4;if(c4===c8){return cS(e,c5)}else{if(!c4){return -1}else{if(!c8){return 1}}}while(c9){c3.unshift(c9);c9=c9.parentNode}c9=c8;while(c9){c7.unshift(c9);c9=c9.parentNode}c2=c3.length;c6=c7.length;for(var da=0;da<c2&&da<c6;da++){if(c3[da]!==c7[da]){return cS(c3[da],c7[da])}}return da===c2?cS(e,c7[da],-1):cS(c3[da],c5,1)};[0,0].sort(cV);ca=!cu;cT.uniqueSort=function(c3){var e,c2=1;cu=ca;c3.sort(cV);if(cu){for(;(e=c3[c2]);c2++){if(e===c3[c2-1]){c3.splice(c2--,1)}}}return c3};cT.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};function cY(dd,c3,dh,db){var da,c9,df,dg,de,c6,c5,c7,dc,c4,c2=!dh&&c3!==cm,c8=(c2?"<s>":"")+dd.replace(cQ,"$1<s>"),e=cX[cp][c8];if(e){return db?0:cU.call(e,0)}de=dd;c6=[];c7=0;dc=cq.preFilter;c4=cq.filter;while(de){if(!da||(c9=cI.exec(de))){if(c9){de=de.slice(c9[0].length);df.selector=c5}c6.push(df=[]);c5="";if(c2){de=" "+de}}da=false;if((c9=cH.exec(de))){c5+=c9[0];de=de.slice(c9[0].length);da=df.push({part:c9.pop().replace(cQ," "),string:c9[0],captures:c9})}for(dg in c4){if((c9=cA[dg].exec(de))&&(!dc[dg]||(c9=dc[dg](c9,c3,dh)))){c5+=c9[0];de=de.slice(c9[0].length);da=df.push({part:dg,string:c9.shift(),captures:c9})}}if(!da){break}}if(c5){df.selector=c5}return db?de.length:de?cT.error(dd):cU.call(cX(c8,c6),0)}function b0(c5,e,c2,c6){var c3=e.dir,c4=cn++;if(!c5){c5=function(c7){return c7===c2}}return e.first?function(c7){while((c7=c7[c3])){if(c7.nodeType===1){return c5(c7)&&c7}}}:c6?function(c7){while((c7=c7[c3])){if(c7.nodeType===1){if(c5(c7)){return c7}}}}:function(da){var c7,c9=c4+"."+ck,c8=c9+"."+cb;while((da=da[c3])){if(da.nodeType===1){if((c7=da[cp])===c8){return da.sizset}else{if(typeof c7==="string"&&c7.indexOf(c9)===0){if(da.sizset){return da}}else{da[cp]=c8;if(c5(da)){da.sizset=true;return da}da.sizset=false}}}}}}function b1(c2,e){return c2?function(c3){var c4=e(c3);return c4&&c2(c4===true?c3:c4)}:e}function cz(c5,e,c6){var c4,c3,c2=0;for(;(c4=c5[c2]);c2++){if(cq.relative[c4.part]){c3=b0(c3,cq.relative[c4.part],e,c6)}else{c3=b1(c3,cq.filter[c4.part].apply(null,c4.captures.concat(e,c6)))}}return c3}function cy(e){return function(c2){var c4,c3=0;for(;(c4=e[c3]);c3++){if(c4(c2)){return true}}return false}}ce=cT.compile=function(c6,c2,c7){var c3,c4,c5,e=cf[cp][c6];if(e&&e.context===c2){return e}c3=cY(c6,c2,c7);for(c4=0,c5=c3.length;c4<c5;c4++){c3[c4]=cz(c3[c4],c2,c7)}e=cf(c6,cy(c3));e.context=c2;e.runs=e.dirruns=0;return e};function cB(c6,e,c4,c5){var c2=0,c3=e.length;for(;c2<c3;c2++){cT(c6,e[c2],c4,c5)}}function ct(c8,c5,e,c2,c7,c4){var c6,c3=cq.setFilters[c5.toLowerCase()];if(!c3){cT.error(c5)}if(c8||!(c6=c7)){cB(c8||"*",c2,(c6=[]),c7)}return c6.length>0?c3(c6,e,c4):[]}function cs(c7,c2,dg,dj){var c5,df,c9,c6,dm,dk,e,c4,dc,dd,da,c3,de,c8=0,db=c7.length,dh=cA.POS,di=new RegExp("^"+dh.source+"(?!"+c0+")","i"),dl=function(){var dn=1,dp=arguments.length-2;for(;dn<dp;dn++){if(arguments[dn]===cZ){dc[dn]=cZ}}};for(;c8<db;c8++){c5=c7[c8];df="";c4=dj;for(c9=0,c6=c5.length;c9<c6;c9++){dm=c5[c9];dk=dm.string;if(dm.part==="PSEUDO"){dh.exec("");e=0;while((dc=dh.exec(dk))){dd=true;da=dh.lastIndex=dc.index+dc[0].length;if(da>e){df+=dk.slice(e,dc.index);e=da;c3=[c2];if(cH.test(df)){if(c4){c3=c4}c4=dj}if((de=cJ.test(df))){df=df.slice(0,-5).replace(cH,"$&*");e++}if(dc.length>1){dc[0].replace(di,dl)}c4=ct(df,dc[1],dc[2],c3,c4,de)}df=""}}if(!dd){df+=dk}dd=false}if(df){if(cH.test(df)){cB(df,c4||[c2],dg,dj)}else{cT(df,c2,dg,dj?dj.concat(c4):c4)}}else{cF.apply(dg,c4)}}return db===1?dg:cT.uniqueSort(dg)}function cR(dd,c2,db,dc,dh){dd=dd.replace(cQ,"$1");var c5,da,e,c4,c7,df,de,c8,c6,dg,c9=cY(dd,c2,dh),c3=c2.nodeType;if(cA.POS.test(dd)){return cs(c9,c2,db,dc)}if(dc){c5=cU.call(dc,0)}else{if(c9.length===1){if((df=cU.call(c9[0],0)).length>2&&(de=df[0]).part==="ID"&&c3===9&&!dh&&cq.relative[df[1].part]){c2=cq.find.ID(de.captures[0].replace(cG,""),c2,dh)[0];if(!c2){return db}dd=dd.slice(df.shift().string.length)}c6=((c9=cP.exec(df[0].string))&&!c9.index&&c2.parentNode)||c2;c8="";for(c7=df.length-1;c7>=0;c7--){de=df[c7];dg=de.part;c8=de.string+c8;if(cq.relative[dg]){break}if(cq.order.test(dg)){c5=cq.find[dg](de.captures[0].replace(cG,""),c6,dh);if(c5==null){continue}else{dd=dd.slice(0,dd.length-c8.length)+c8.replace(cA[dg],"");if(!dd){cF.apply(db,cU.call(c5,0))}break}}}}}if(dd){da=ce(dd,c2,dh);ck=da.dirruns++;if(c5==null){c5=cq.find.TAG("*",(cP.test(dd)&&c2.parentNode)||c2)}for(c7=0;(c4=c5[c7]);c7++){cb=da.runs++;if(da(c4)){db.push(c4)}}}return db}if(cm.querySelectorAll){(function(){var e,c3=cR,c7=/'|\\/g,c4=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,c6=[],c5=[":active"],c2=cl.matchesSelector||cl.mozMatchesSelector||cl.webkitMatchesSelector||cl.oMatchesSelector||cl.msMatchesSelector;b2(function(c8){c8.innerHTML="<select><option selected=''></option></select>";if(!c8.querySelectorAll("[selected]").length){c6.push("\\["+c0+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)")}if(!c8.querySelectorAll(":checked").length){c6.push(":checked")}});b2(function(c8){c8.innerHTML="<p test=''></p>";if(c8.querySelectorAll("[test^='']").length){c6.push("[*^$]="+c0+"*(?:\"\"|'')")}c8.innerHTML="<input type='hidden'/>";if(!c8.querySelectorAll(":enabled").length){c6.push(":enabled",":disabled")}});c6=c6.length&&new RegExp(c6.join("|"));cR=function(di,c8,dg,dh,dj){if(!dh&&!dj&&(!c6||!c6.test(di))){if(c8.nodeType===9){try{cF.apply(dg,cU.call(c8.querySelectorAll(di),0));return dg}catch(df){}}else{if(c8.nodeType===1&&c8.nodeName.toLowerCase()!=="object"){var c9,da,db,de=c8.getAttribute("id"),dd=de||cp,dc=cP.test(di)&&c8.parentNode||c8;if(de){dd=dd.replace(c7,"\\$&")}else{c8.setAttribute("id",dd)}c9=cY(di,c8,dj);dd="[id='"+dd+"']";for(da=0,db=c9.length;da<db;da++){c9[da]=dd+c9[da].selector}try{cF.apply(dg,cU.call(dc.querySelectorAll(c9.join(",")),0));return dg}catch(df){}finally{if(!de){c8.removeAttribute("id")}}}}}return c3(di,c8,dg,dh,dj)};if(c2){b2(function(c8){e=c2.call(c8,"div");try{c2.call(c8,"[test!='']:sizzle");c5.push(cA.PSEUDO.source,cA.POS.source,"!=")}catch(c9){}});c5=new RegExp(c5.join("|"));cT.matchesSelector=function(c9,da){da=da.replace(c4,"='$1']");if(!cw(c9)&&!c5.test(da)&&(!c6||!c6.test(da))){try{var db=c2.call(c9,da);if(db||e||c9.document&&c9.document.nodeType!==11){return db}}catch(c8){}}return cT(da,null,null,[c9]).length>0}}})()}cq.setFilters.nth=cq.setFilters.eq;cq.filters=cq.pseudos;cT.attr=aq.attr;aq.find=cT;aq.expr=cT.selectors;aq.expr[":"]=aq.expr.pseudos;aq.unique=cT.uniqueSort;aq.text=cT.getText;aq.isXMLDoc=cT.isXML;aq.contains=cT.contains})(bU);var bD=/Until$/,bj=/^(?:parents|prev(?:Until|All))/,ap=/^.[^:#\[\.,]*$/,ba=aq.expr.match.needsContext,ah={children:true,contents:true,next:true,prev:true};aq.fn.extend({find:function(b5){var e,b0,b1,b2,b3,b4,b6=this;if(typeof b5!=="string"){return aq(b5).filter(function(){for(e=0,b0=b6.length;e<b0;e++){if(aq.contains(b6[e],this)){return true}}})}b4=this.pushStack("","find",b5);for(e=0,b0=this.length;e<b0;e++){b1=b4.length;aq.find(b5,this[e],b4);if(e>0){for(b2=b1;b2<b4.length;b2++){for(b3=0;b3<b1;b3++){if(b4[b3]===b4[b2]){b4.splice(b2--,1);break}}}}}return b4},has:function(b1){var e,b2=aq(b1,this),b0=b2.length;return this.filter(function(){for(e=0;e<b0;e++){if(aq.contains(this,b2[e])){return true}}})},not:function(e){return this.pushStack(bV(this,e,false),"not",e)},filter:function(e){return this.pushStack(bV(this,e,true),"filter",e)},is:function(e){return !!e&&(typeof e==="string"?ba.test(e)?aq(e,this.context).index(this[0])>=0:aq.filter(e,this).length>0:this.filter(e).length>0)},closest:function(b5,e){var b0,b1=0,b2=this.length,b4=[],b3=ba.test(b5)||typeof b5!=="string"?aq(b5,e||this.context):0;for(;b1<b2;b1++){b0=this[b1];while(b0&&b0.ownerDocument&&b0!==e&&b0.nodeType!==11){if(b3?b3.index(b0)>-1:aq.find.matchesSelector(b0,b5)){b4.push(b0);break}b0=b0.parentNode}}b4=b4.length>1?aq.unique(b4):b4;return this.pushStack(b4,"closest",b5)},index:function(e){if(!e){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1}if(typeof e==="string"){return aq.inArray(this[0],aq(e))}return aq.inArray(e.jquery?e[0]:e,this)},add:function(b1,b0){var b2=typeof b1==="string"?aq(b1,b0):aq.makeArray(b1&&b1.nodeType?[b1]:b1),e=aq.merge(this.get(),b2);return this.pushStack(am(b2[0])||am(e[0])?e:aq.unique(e))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});aq.fn.andSelf=aq.fn.addBack;function am(e){return !e||!e.parentNode||e.parentNode.nodeType===11}function bN(e,b0){do{e=e[b0]}while(e&&e.nodeType!==1);return e}aq.each({parent:function(e){var b0=e.parentNode;return b0&&b0.nodeType!==11?b0:null},parents:function(e){return aq.dir(e,"parentNode")},parentsUntil:function(e,b0,b1){return aq.dir(e,"parentNode",b1)},next:function(e){return bN(e,"nextSibling")},prev:function(e){return bN(e,"previousSibling")},nextAll:function(e){return aq.dir(e,"nextSibling")},prevAll:function(e){return aq.dir(e,"previousSibling")},nextUntil:function(e,b0,b1){return aq.dir(e,"nextSibling",b1)},prevUntil:function(e,b0,b1){return aq.dir(e,"previousSibling",b1)},siblings:function(e){return aq.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return aq.sibling(e.firstChild)},contents:function(e){return aq.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:aq.merge([],e.childNodes)}},function(b0,e){aq.fn[b0]=function(b3,b2){var b1=aq.map(this,e,b3);if(!bD.test(b0)){b2=b3}if(b2&&typeof b2==="string"){b1=aq.filter(b2,b1)}b1=this.length>1&&!ah[b0]?aq.unique(b1):b1;if(this.length>1&&bj.test(b0)){b1=b1.reverse()}return this.pushStack(b1,b0,A.call(arguments).join(","))}});aq.extend({filter:function(b0,e,b1){if(b1){b0=":not("+b0+")"}return e.length===1?aq.find.matchesSelector(e[0],b0)?[e[0]]:[]:aq.find.matches(b0,e)},dir:function(b1,b0,b3){var b2=[],e=b1[b0];while(e&&e.nodeType!==9&&(b3===bS||e.nodeType!==1||!aq(e).is(b3))){if(e.nodeType===1){b2.push(e)}e=e[b0]}return b2},sibling:function(b0,e){var b1=[];for(;b0;b0=b0.nextSibling){if(b0.nodeType===1&&b0!==e){b1.push(b0)}}return b1}});function bV(e,b2,b1){b2=b2||0;if(aq.isFunction(b2)){return aq.grep(e,function(b3,b4){var b5=!!b2.call(b3,b4,b3);return b5===b1})}else{if(b2.nodeType){return aq.grep(e,function(b3,b4){return(b3===b2)===b1})}else{if(typeof b2==="string"){var b0=aq.grep(e,function(b3){return b3.nodeType===1});if(ap.test(b2)){return aq.filter(b2,b0,!b1)}else{b2=aq.filter(b2,b0)}}}}return aq.grep(e,function(b3,b4){return(aq.inArray(b3,b2)>=0)===b1})}function G(e){var b0=av.split("|"),b1=e.createDocumentFragment();if(b1.createElement){while(b0.length){b1.createElement(b0.pop())}}return b1}var av="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",a0=/ jQuery\d+="(?:null|\d+)"/g,a4=/^\s+/,bJ=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bx=/<([\w:]+)/,by=/<tbody/i,aZ=/<|&#?\w+;/,bd=/<(?:script|style|link)/i,bb=/<(?:script|object|embed|option|style)/i,be=new RegExp("<(?:"+av+")[\\s/>]","i"),aG=/^(?:checkbox|radio)$/,aH=/checked\s*(?:[^=]|=\s*.checked.)/i,bu=/\/(java|ecma)script/i,aJ=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,bW={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,"",""]},bK=G(R),aa=bK.appendChild(R.createElement("div"));bW.optgroup=bW.option;bW.tbody=bW.tfoot=bW.colgroup=bW.caption=bW.thead;bW.th=bW.td;if(!aq.support.htmlSerialize){bW._default=[1,"X<div>","</div>"]}aq.fn.extend({text:function(e){return aq.access(this,function(b0){return b0===bS?aq.text(this):this.empty().append((this[0]&&this[0].ownerDocument||R).createTextNode(b0))},null,e,arguments.length)},wrapAll:function(e){if(aq.isFunction(e)){return this.each(function(b1){aq(this).wrapAll(e.call(this,b1))})}if(this[0]){var b0=aq(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){b0.insertBefore(this[0])}b0.map(function(){var b1=this;while(b1.firstChild&&b1.firstChild.nodeType===1){b1=b1.firstChild}return b1}).append(this)}return this},wrapInner:function(e){if(aq.isFunction(e)){return this.each(function(b0){aq(this).wrapInner(e.call(this,b0))})}return this.each(function(){var b1=aq(this),b0=b1.contents();if(b0.length){b0.wrapAll(e)}else{b1.append(e)}})},wrap:function(e){var b0=aq.isFunction(e);return this.each(function(b1){aq(this).wrapAll(b0?e.call(this,b1):e)})},unwrap:function(){return this.parent().each(function(){if(!aq.nodeName(this,"body")){aq(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1||this.nodeType===11){this.appendChild(e)}})},prepend:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1||this.nodeType===11){this.insertBefore(e,this.firstChild)}})},before:function(){if(!am(this[0])){return this.domManip(arguments,false,function(b0){this.parentNode.insertBefore(b0,this)})}if(arguments.length){var e=aq.clean(arguments);return this.pushStack(aq.merge(e,this),"before",this.selector)}},after:function(){if(!am(this[0])){return this.domManip(arguments,false,function(b0){this.parentNode.insertBefore(b0,this.nextSibling)})}if(arguments.length){var e=aq.clean(arguments);return this.pushStack(aq.merge(this,e),"after",this.selector)}},remove:function(b2,b1){var e,b0=0;for(;(e=this[b0])!=null;b0++){if(!b2||aq.filter(b2,[e]).length){if(!b1&&e.nodeType===1){aq.cleanData(e.getElementsByTagName("*"));aq.cleanData([e])}if(e.parentNode){e.parentNode.removeChild(e)}}}return this},empty:function(){var e,b0=0;for(;(e=this[b0])!=null;b0++){if(e.nodeType===1){aq.cleanData(e.getElementsByTagName("*"))}while(e.firstChild){e.removeChild(e.firstChild)}}return this},clone:function(e,b0){e=e==null?false:e;b0=b0==null?e:b0;return this.map(function(){return aq.clone(this,e,b0)})},html:function(e){return aq.access(this,function(b4){var b1=this[0]||{},b2=0,b3=this.length;if(b4===bS){return b1.nodeType===1?b1.innerHTML.replace(a0,""):bS}if(typeof b4==="string"&&!bd.test(b4)&&(aq.support.htmlSerialize||!be.test(b4))&&(aq.support.leadingWhitespace||!a4.test(b4))&&!bW[(bx.exec(b4)||["",""])[1].toLowerCase()]){b4=b4.replace(bJ,"<$1></$2>");try{for(;b2<b3;b2++){b1=this[b2]||{};if(b1.nodeType===1){aq.cleanData(b1.getElementsByTagName("*"));b1.innerHTML=b4}}b1=0}catch(b0){}}if(b1){this.empty().append(b4)}},null,e,arguments.length)},replaceWith:function(e){if(!am(this[0])){if(aq.isFunction(e)){return this.each(function(b0){var b2=aq(this),b1=b2.html();b2.replaceWith(e.call(this,b0,b1))})}if(typeof e!=="string"){e=aq(e).detach()}return this.each(function(){var b0=this.nextSibling,b1=this.parentNode;aq(this).remove();if(b0){aq(b0).before(e)}else{aq(b1).append(e)}})}return this.length?this.pushStack(aq(aq.isFunction(e)?e():e),"replaceWith",e):this},detach:function(e){return this.remove(e,true)},domManip:function(e,b8,b0){e=[].concat.apply([],e);var b6,b1,b2,b4,b3=0,b9=e[0],b7=[],b5=this.length;if(!aq.support.checkClone&&b5>1&&typeof b9==="string"&&aH.test(b9)){return this.each(function(){aq(this).domManip(e,b8,b0)})}if(aq.isFunction(b9)){return this.each(function(ca){var cb=aq(this);e[0]=b9.call(this,ca,b8?cb.html():bS);cb.domManip(e,b8,b0)})}if(this[0]){b6=aq.buildFragment(e,this,b7);b2=b6.fragment;b1=b2.firstChild;if(b2.childNodes.length===1){b2=b1}if(b1){b8=b8&&aq.nodeName(b1,"tr");for(b4=b6.cacheable||b5-1;b3<b5;b3++){b0.call(b8&&aq.nodeName(this[b3],"table")?X(this[b3],"tbody"):this[b3],b3===b4?b2:aq.clone(b2,true,true))}}b2=b1=null;if(b7.length){aq.each(b7,function(cb,ca){if(ca.src){if(aq.ajax){aq.ajax({url:ca.src,type:"GET",dataType:"script",async:false,global:false,"throws":true})}else{aq.error("no ajax")}}else{aq.globalEval((ca.text||ca.textContent||ca.innerHTML||"").replace(aJ,""))}if(ca.parentNode){ca.parentNode.removeChild(ca)}})}}return this}});function X(e,b0){return e.getElementsByTagName(b0)[0]||e.appendChild(e.ownerDocument.createElement(b0))}function s(b5,b0){if(b0.nodeType!==1||!aq.hasData(b5)){return}var b6,b2,b3,b4=aq._data(b5),e=aq._data(b0,b4),b1=b4.events;if(b1){delete e.handle;e.events={};for(b6 in b1){for(b2=0,b3=b1[b6].length;b2<b3;b2++){aq.event.add(b0,b6,b1[b6][b2])}}}if(e.data){e.data=aq.extend({},e.data)}}function t(b1,e){var b0;if(e.nodeType!==1){return}if(e.clearAttributes){e.clearAttributes()}if(e.mergeAttributes){e.mergeAttributes(b1)}b0=e.nodeName.toLowerCase();if(b0==="object"){if(e.parentNode){e.outerHTML=b1.outerHTML}if(aq.support.html5Clone&&(b1.innerHTML&&!aq.trim(e.innerHTML))){e.innerHTML=b1.innerHTML}}else{if(b0==="input"&&aG.test(b1.type)){e.defaultChecked=e.checked=b1.checked;if(e.value!==b1.value){e.value=b1.value}}else{if(b0==="option"){e.selected=b1.defaultSelected}else{if(b0==="input"||b0==="textarea"){e.defaultValue=b1.defaultValue}else{if(b0==="script"&&e.text!==b1.text){e.text=b1.text}}}}}e.removeAttribute(aq.expando)}aq.buildFragment=function(e,b2,b5){var b4,b0,b1,b3=e[0];b2=b2||R;b2=!b2.nodeType&&b2[0]||b2;b2=b2.ownerDocument||b2;if(e.length===1&&typeof b3==="string"&&b3.length<512&&b2===R&&b3.charAt(0)==="<"&&!bb.test(b3)&&(aq.support.checkClone||!aH.test(b3))&&(aq.support.html5Clone||!be.test(b3))){b0=true;b4=aq.fragments[b3];b1=b4!==bS}if(!b4){b4=b2.createDocumentFragment();aq.clean(e,b2,b4,b5);if(b0){aq.fragments[b3]=b1&&b4}}return{fragment:b4,cacheable:b0}};aq.fragments={};aq.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,b0){aq.fn[e]=function(b7){var b1,b2=0,b6=[],b3=aq(b7),b4=b3.length,b5=this.length===1&&this[0].parentNode;if((b5==null||b5&&b5.nodeType===11&&b5.childNodes.length===1)&&b4===1){b3[b0](this[0]);return this}else{for(;b2<b4;b2++){b1=(b2>0?this.clone(true):this).get();aq(b3[b2])[b0](b1);b6=b6.concat(b1)}return this.pushStack(b6,e,b3.selector)}}});function ad(e){if(typeof e.getElementsByTagName!=="undefined"){return e.getElementsByTagName("*")}else{if(typeof e.querySelectorAll!=="undefined"){return e.querySelectorAll("*")}else{return[]}}}function Y(e){if(aG.test(e.type)){e.defaultChecked=e.checked}}aq.extend({clone:function(b3,b0,b1){var b5,b2,b4,e;if(aq.support.html5Clone||aq.isXMLDoc(b3)||!be.test("<"+b3.nodeName+">")){e=b3.cloneNode(true)}else{aa.innerHTML=b3.outerHTML;aa.removeChild(e=aa.firstChild)}if((!aq.support.noCloneEvent||!aq.support.noCloneChecked)&&(b3.nodeType===1||b3.nodeType===11)&&!aq.isXMLDoc(b3)){t(b3,e);b5=ad(b3);b2=ad(e);for(b4=0;b5[b4];++b4){if(b2[b4]){t(b5[b4],b2[b4])}}}if(b0){s(b3,e);if(b1){b5=ad(b3);b2=ad(e);for(b4=0;b5[b4];++b4){s(b5[b4],b2[b4])}}}b5=b2=null;return e},clean:function(b3,e,b4,cd){var b7,b8,b2,ce,cg,b0,b1,b6,cf,ca,b5,b9,cc=e===R&&bK,cb=[];if(!e||typeof e.createDocumentFragment==="undefined"){e=R}for(b7=0;(b2=b3[b7])!=null;b7++){if(typeof b2==="number"){b2+=""}if(!b2){continue}if(typeof b2==="string"){if(!aZ.test(b2)){b2=e.createTextNode(b2)}else{cc=cc||G(e);b1=e.createElement("div");cc.appendChild(b1);b2=b2.replace(bJ,"<$1></$2>");ce=(bx.exec(b2)||["",""])[1].toLowerCase();cg=bW[ce]||bW._default;b0=cg[0];b1.innerHTML=cg[1]+b2+cg[2];while(b0--){b1=b1.lastChild}if(!aq.support.tbody){b6=by.test(b2);cf=ce==="table"&&!b6?b1.firstChild&&b1.firstChild.childNodes:cg[1]==="<table>"&&!b6?b1.childNodes:[];for(b8=cf.length-1;b8>=0;--b8){if(aq.nodeName(cf[b8],"tbody")&&!cf[b8].childNodes.length){cf[b8].parentNode.removeChild(cf[b8])}}}if(!aq.support.leadingWhitespace&&a4.test(b2)){b1.insertBefore(e.createTextNode(a4.exec(b2)[0]),b1.firstChild)}b2=b1.childNodes;b1.parentNode.removeChild(b1)}}if(b2.nodeType){cb.push(b2)}else{aq.merge(cb,b2)}}if(b1){b2=b1=cc=null}if(!aq.support.appendChecked){for(b7=0;(b2=cb[b7])!=null;b7++){if(aq.nodeName(b2,"input")){Y(b2)}else{if(typeof b2.getElementsByTagName!=="undefined"){aq.grep(b2.getElementsByTagName("input"),Y)}}}}if(b4){b5=function(ch){if(!ch.type||bu.test(ch.type)){return cd?cd.push(ch.parentNode?ch.parentNode.removeChild(ch):ch):b4.appendChild(ch)}};for(b7=0;(b2=cb[b7])!=null;b7++){if(!(aq.nodeName(b2,"script")&&b5(b2))){b4.appendChild(b2);if(typeof b2.getElementsByTagName!=="undefined"){b9=aq.grep(aq.merge([],b2.getElementsByTagName("script")),b5);cb.splice.apply(cb,[b7+1,0].concat(b9));b7+=b9.length}}}}return cb},cleanData:function(b4,e){var b1,b6,b3,b9,b5=0,b7=aq.expando,b0=aq.cache,b2=aq.support.deleteExpando,b8=aq.event.special;for(;(b3=b4[b5])!=null;b5++){if(e||aq.acceptData(b3)){b6=b3[b7];b1=b6&&b0[b6];if(b1){if(b1.events){for(b9 in b1.events){if(b8[b9]){aq.event.remove(b3,b9)}else{aq.removeEvent(b3,b9,b1.handle)}}}if(b0[b6]){delete b0[b6];if(b2){delete b3[b7]}else{if(b3.removeAttribute){b3.removeAttribute(b7)}else{b3[b7]=null}}aq.deletedIds.push(b6)}}}}}});(function(){var b0,e;aq.uaMatch=function(b2){b2=b2.toLowerCase();var b1=/(chrome)[ \/]([\w.]+)/.exec(b2)||/(webkit)[ \/]([\w.]+)/.exec(b2)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(b2)||/(msie) ([\w.]+)/.exec(b2)||b2.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(b2)||[];return{browser:b1[1]||"",version:b1[2]||"0"}};b0=aq.uaMatch(at.userAgent);e={};if(b0.browser){e[b0.browser]=true;e.version=b0.version}if(e.chrome){e.webkit=true}else{if(e.webkit){e.safari=true}}aq.browser=e;aq.sub=function(){function b2(b5,b4){return new b2.fn.init(b5,b4)}aq.extend(true,b2,this);b2.superclass=this;b2.fn=b2.prototype=this();b2.fn.constructor=b2;b2.sub=this.sub;b2.fn.init=function b1(b5,b4){if(b4&&b4 instanceof aq&&!(b4 instanceof b2)){b4=b2(b4)}return aq.fn.init.call(this,b5,b4,b3)};b2.fn.init.prototype=b2.fn;var b3=b2(R);return b2}})();var O,aj,ak,aC=/alpha\([^)]*\)/i,bi=/opacity=([^)]*)/,bk=/^(top|right|bottom|left)$/,aN=/^(none|table(?!-c[ea]).+)/,a6=/^margin/,bg=new RegExp("^("+w+")(.*)$","i"),bf=new RegExp("^("+w+")(?!px)[a-z%]+$","i"),bp=new RegExp("^([-+])=("+w+")","i"),U={},N={position:"absolute",visibility:"hidden",display:"block"},L={letterSpacing:0,fontWeight:400},K=["Top","Right","Bottom","Left"],M=["Webkit","O","Moz","ms"],V=aq.fn.toggle;function bT(b3,b1){if(b1 in b3){return b1}var e=b1.charAt(0).toUpperCase()+b1.slice(1),b2=b1,b0=M.length;while(b0--){b1=M[b0]+e;if(b1 in b3){return b1}}return b2}function ao(b0,e){b0=e||b0;return aq.css(b0,"display")==="none"||!aq.contains(b0.ownerDocument,b0)}function bM(b1,b4){var b0,e,b5=[],b2=0,b3=b1.length;for(;b2<b3;b2++){b0=b1[b2];if(!b0.style){continue}b5[b2]=aq._data(b0,"olddisplay");if(b4){if(!b5[b2]&&b0.style.display==="none"){b0.style.display=""}if(b0.style.display===""&&ao(b0)){b5[b2]=aq._data(b0,"olddisplay",J(b0.nodeName))}}else{e=O(b0,"display");if(!b5[b2]&&e!=="none"){aq._data(b0,"olddisplay",e)}}}for(b2=0;b2<b3;b2++){b0=b1[b2];if(!b0.style){continue}if(!b4||b0.style.display==="none"||b0.style.display===""){b0.style.display=b4?b5[b2]||"":"none"}}return b1}aq.fn.extend({css:function(e,b0){return aq.access(this,function(b1,b2,b3){return b3!==bS?aq.style(b1,b2,b3):aq.css(b1,b2)},e,b0,arguments.length>1)},show:function(){return bM(this,true)},hide:function(){return bM(this)},toggle:function(b1,b0){var e=typeof b1==="boolean";if(aq.isFunction(b1)&&aq.isFunction(b0)){return V.apply(this,arguments)}return this.each(function(){if(e?b1:ao(this)){aq(this).show()}else{aq(this).hide()}})}});aq.extend({cssHooks:{opacity:{get:function(b0,e){if(e){var b1=O(b0,"opacity");return b1===""?"1":b1}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":aq.support.cssFloat?"cssFloat":"styleFloat"},style:function(b1,b4,b9,b2){if(!b1||b1.nodeType===3||b1.nodeType===8||!b1.style){return}var b6,b8,b3,b5=aq.camelCase(b4),b7=b1.style;b4=aq.cssProps[b5]||(aq.cssProps[b5]=bT(b7,b5));b3=aq.cssHooks[b4]||aq.cssHooks[b5];if(b9!==bS){b8=typeof b9;if(b8==="string"&&(b6=bp.exec(b9))){b9=(b6[1]+1)*b6[2]+parseFloat(aq.css(b1,b4));b8="number"}if(b9==null||b8==="number"&&isNaN(b9)){return}if(b8==="number"&&!aq.cssNumber[b5]){b9+="px"}if(!b3||!("set" in b3)||(b9=b3.set(b1,b9,b2))!==bS){try{b7[b4]=b9}catch(b0){}}}else{if(b3&&"get" in b3&&(b6=b3.get(b1,false,b2))!==bS){return b6}return b7[b4]}},css:function(e,b2,b4,b0){var b6,b3,b1,b5=aq.camelCase(b2);b2=aq.cssProps[b5]||(aq.cssProps[b5]=bT(e.style,b5));b1=aq.cssHooks[b2]||aq.cssHooks[b5];if(b1&&"get" in b1){b6=b1.get(e,true,b0)}if(b6===bS){b6=O(e,b2)}if(b6==="normal"&&b2 in L){b6=L[b2]}if(b4||b0!==bS){b3=parseFloat(b6);return b4||aq.isNumeric(b3)?b3||0:b6}return b6},swap:function(b0,b3,e){var b4,b1,b2={};for(b1 in b3){b2[b1]=b0.style[b1];b0.style[b1]=b3[b1]}b4=e.call(b0);for(b1 in b3){b0.style[b1]=b2[b1]}return b4}});if(bU.getComputedStyle){O=function(b0,b3){var b4,b6,b2,b1,e=bU.getComputedStyle(b0,null),b5=b0.style;if(e){b4=e[b3];if(b4===""&&!aq.contains(b0.ownerDocument,b0)){b4=aq.style(b0,b3)}if(bf.test(b4)&&a6.test(b3)){b6=b5.width;b2=b5.minWidth;b1=b5.maxWidth;b5.minWidth=b5.maxWidth=b5.width=b4;b4=e.width;b5.width=b6;b5.minWidth=b2;b5.maxWidth=b1}}return b4}}else{if(R.documentElement.currentStyle){O=function(e,b1){var b0,b3,b2=e.currentStyle&&e.currentStyle[b1],b4=e.style;if(b2==null&&b4&&b4[b1]){b2=b4[b1]}if(bf.test(b2)&&!bk.test(b1)){b0=b4.left;b3=e.runtimeStyle&&e.runtimeStyle.left;if(b3){e.runtimeStyle.left=e.currentStyle.left}b4.left=b1==="fontSize"?"1em":b2;b2=b4.pixelLeft+"px";b4.left=b0;if(b3){e.runtimeStyle.left=b3}}return b2===""?"auto":b2}}}function bL(e,b2,b1){var b0=bg.exec(b2);return b0?Math.max(0,b0[1]-(b1||0))+(b0[2]||"px"):b2}function o(e,b3,b0,b2){var b1=b0===(b2?"border":"content")?4:b3==="width"?1:0,b4=0;for(;b1<4;b1+=2){if(b0==="margin"){b4+=aq.css(e,b0+K[b1],true)}if(b2){if(b0==="content"){b4-=parseFloat(O(e,"padding"+K[b1]))||0}if(b0!=="margin"){b4-=parseFloat(O(e,"border"+K[b1]+"Width"))||0}}else{b4+=parseFloat(O(e,"padding"+K[b1]))||0;if(b0!=="padding"){b4+=parseFloat(O(e,"border"+K[b1]+"Width"))||0}}}return b4}function af(e,b2,b0){var b3=b2==="width"?e.offsetWidth:e.offsetHeight,b4=true,b1=aq.support.boxSizing&&aq.css(e,"boxSizing")==="border-box";if(b3<=0||b3==null){b3=O(e,b2);if(b3<0||b3==null){b3=e.style[b2]}if(bf.test(b3)){return b3}b4=b1&&(aq.support.boxSizingReliable||b3===e.style[b2]);b3=parseFloat(b3)||0}return(b3+o(e,b2,b0||(b1?"border":"content"),b4))+"px"}function J(b1){if(U[b1]){return U[b1]}var b0=aq("<"+b1+">").appendTo(R.body),e=b0.css("display");b0.remove();if(e==="none"||e===""){aj=R.body.appendChild(aj||aq.extend(R.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!ak||!aj.createElement){ak=(aj.contentWindow||aj.contentDocument).document;ak.write("<!doctype html><html><body>");ak.close()}b0=ak.body.appendChild(ak.createElement(b1));e=O(b0,"display");R.body.removeChild(aj)}U[b1]=e;return e}aq.each(["height","width"],function(e,b0){aq.cssHooks[b0]={get:function(b2,b1,b3){if(b1){if(b2.offsetWidth===0&&aN.test(O(b2,"display"))){return aq.swap(b2,N,function(){return af(b2,b0,b3)})}else{return af(b2,b0,b3)}}},set:function(b1,b3,b2){return bL(b1,b3,b2?o(b1,b0,b2,aq.support.boxSizing&&aq.css(b1,"boxSizing")==="border-box"):0)}}});if(!aq.support.opacity){aq.cssHooks.opacity={get:function(b0,e){return bi.test((e&&b0.currentStyle?b0.currentStyle.filter:b0.style.filter)||"")?(0.01*parseFloat(RegExp.$1))+"":e?"1":""},set:function(b0,b4){var b3=b0.style,e=b0.currentStyle,b2=aq.isNumeric(b4)?"alpha(opacity="+b4*100+")":"",b1=e&&e.filter||b3.filter||"";b3.zoom=1;if(b4>=1&&aq.trim(b1.replace(aC,""))===""&&b3.removeAttribute){b3.removeAttribute("filter");if(e&&!e.filter){return}}b3.filter=aC.test(b1)?b1.replace(aC,b2):b1+" "+b2}}}aq(function(){if(!aq.support.reliableMarginRight){aq.cssHooks.marginRight={get:function(b0,e){return aq.swap(b0,{display:"inline-block"},function(){if(e){return O(b0,"marginRight")}})}}}if(!aq.support.pixelPosition&&aq.fn.position){aq.each(["top","left"],function(e,b0){aq.cssHooks[b0]={get:function(b2,b1){if(b1){var b3=O(b2,b0);return bf.test(b3)?aq(b2).position()[b0]+"px":b3}}}})}});if(aq.expr&&aq.expr.filters){aq.expr.filters.hidden=function(e){return(e.offsetWidth===0&&e.offsetHeight===0)||(!aq.support.reliableHiddenOffsets&&((e.style&&e.style.display)||O(e,"display"))==="none")};aq.expr.filters.visible=function(e){return !aq.expr.filters.hidden(e)}}aq.each({margin:"",padding:"",border:"Width"},function(e,b0){aq.cssHooks[e+b0]={expand:function(b4){var b2,b3=typeof b4==="string"?b4.split(" "):[b4],b1={};for(b2=0;b2<4;b2++){b1[e+K[b2]+b0]=b3[b2]||b3[b2-2]||b3[0]}return b1}};if(!a6.test(e)){aq.cssHooks[e+b0].set=bL}});var aB=/%20/g,aF=/\[\]$/,aL=/\r?\n/g,a1=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bv=/^(?:select|textarea)/i;aq.fn.extend({serialize:function(){return aq.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?aq.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bv.test(this.nodeName)||a1.test(this.type))}).map(function(b0,e){var b1=aq(this).val();return b1==null?null:aq.isArray(b1)?aq.map(b1,function(b3,b2){return{name:e.name,value:b3.replace(aL,"\r\n")}}):{name:e.name,value:b1.replace(aL,"\r\n")}}).get()}});aq.param=function(e,b3){var b1,b2=[],b0=function(b4,b5){b5=aq.isFunction(b5)?b5():(b5==null?"":b5);b2[b2.length]=encodeURIComponent(b4)+"="+encodeURIComponent(b5)};if(b3===bS){b3=aq.ajaxSettings&&aq.ajaxSettings.traditional}if(aq.isArray(e)||(e.jquery&&!aq.isPlainObject(e))){aq.each(e,function(){b0(this.name,this.value)})}else{for(b1 in e){q(b1,e[b1],b3,b0)}}return b2.join("&").replace(aB,"+")};function q(b2,b1,b3,e){var b0;if(aq.isArray(b1)){aq.each(b1,function(b4,b5){if(b3||aF.test(b2)){e(b2,b5)}else{q(b2+"["+(typeof b5==="object"?b4:"")+"]",b5,b3,e)}})}else{if(!b3&&aq.type(b1)==="object"){for(b0 in b1){q(b2+"["+b0+"]",b1[b0],b3,e)}}else{e(b2,b1)}}}var i,j,aW=/#.*$/,aX=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,a5=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bc=/^(?:GET|HEAD)$/,bl=/^\/\//,bm=/\?/,bt=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bA=/([?&])_=[^&]*/,bE=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,c=aq.fn.load,az={},bP={},k=["*/"]+["*"];try{i=ar.href}catch(T){i=R.createElement("a");i.href="";i=i.href}j=bE.exec(i.toLowerCase())||[];function d(e){return function(b1,b3){if(typeof b1!=="string"){b3=b1;b1="*"}var b0,b6,b7,b2=b1.toLowerCase().split(z),b4=0,b5=b2.length;if(aq.isFunction(b3)){for(;b4<b5;b4++){b0=b2[b4];b7=/^\+/.test(b0);if(b7){b0=b0.substr(1)||"*"}b6=e[b0]=e[b0]||[];b6[b7?"unshift":"push"](b3)}}}}function al(b9,b6,b7,b3,e,b2){e=e||b6.dataTypes[0];b2=b2||{};b2[e]=true;var b8,b5=b9[e],b1=0,b4=b5?b5.length:0,b0=(b9===az);for(;b1<b4&&(b0||!b8);b1++){b8=b5[b1](b6,b7,b3);if(typeof b8==="string"){if(!b0||b2[b8]){b8=bS}else{b6.dataTypes.unshift(b8);b8=al(b9,b6,b7,b3,b8,b2)}}}if((b0||!b8)&&!b2["*"]){b8=al(b9,b6,b7,b3,"*",b2)}return b8}function g(b3,b2){var b1,e,b0=aq.ajaxSettings.flatOptions||{};for(b1 in b2){if(b2[b1]!==bS){(b0[b1]?b3:(e||(e={})))[b1]=b2[b1]}}if(e){aq.extend(true,b3,e)}}aq.fn.load=function(b6,b1,e){if(typeof b6!=="string"&&c){return c.apply(this,arguments)}if(!this.length){return this}var b3,b5,b2,b4=this,b0=b6.indexOf(" ");if(b0>=0){b3=b6.slice(b0,b6.length);b6=b6.slice(0,b0)}if(aq.isFunction(b1)){e=b1;b1=bS}else{if(b1&&typeof b1==="object"){b5="POST"}}aq.ajax({url:b6,type:b5,dataType:"html",data:b1,complete:function(b7,b8){if(e){b4.each(e,b2||[b7.responseText,b8,b7])}}}).done(function(b7){b2=arguments;b4.html(b3?aq("<div>").append(b7.replace(bt,"")).find(b3):b7)});return this};aq.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,b0){aq.fn[b0]=function(b1){return this.on(b0,b1)}});aq.each(["get","post"],function(e,b0){aq[b0]=function(b4,b2,b1,b3){if(aq.isFunction(b2)){b3=b3||b1;b1=b2;b2=bS}return aq.ajax({type:b0,url:b4,data:b2,success:b1,dataType:b3})}});aq.extend({getScript:function(b0,e){return aq.get(b0,bS,e,"script")},getJSON:function(b1,b0,e){return aq.get(b1,b0,e,"json")},ajaxSetup:function(b0,e){if(e){g(b0,aq.ajaxSettings)}else{e=b0;b0=aq.ajaxSettings}g(b0,e);return b0},ajaxSettings:{url:i,isLocal:a5.test(j[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":k},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":bU.String,"text html":true,"text json":aq.parseJSON,"text xml":aq.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:d(az),ajaxTransport:d(bP),ajax:function(co,ca){if(typeof co==="object"){ca=co;co=bS}ca=ca||{};var b8,cf,ce,cm,cl,cb,b5,b7,ch=aq.ajaxSetup({},ca),b0=ch.context||ch,b6=b0!==ch&&(b0.nodeType||b0 instanceof aq)?aq(b0):aq.event,b2=aq.Deferred(),b1=aq.Callbacks("once memory"),cj=ch.statusCode||{},cc={},cd={},ci=0,ck="canceled",b9={readyState:0,setRequestHeader:function(cp,cq){if(!ci){var e=cp.toLowerCase();cp=cd[e]=cd[e]||cp;cc[cp]=cq}return this},getAllResponseHeaders:function(){return ci===2?cf:null},getResponseHeader:function(e){var cp;if(ci===2){if(!ce){ce={};while((cp=aX.exec(cf))){ce[cp[1].toLowerCase()]=cp[2]}}cp=ce[e.toLowerCase()]}return cp===bS?null:cp},overrideMimeType:function(e){if(!ci){ch.mimeType=e}return this},abort:function(e){e=e||ck;if(cm){cm.abort(e)}b3(0,e);return this}};function b3(cv,cs,cu,cp){var cq,cx,e,ct,cr,cw=cs;if(ci===2){return}ci=2;if(cl){clearTimeout(cl)}cm=bS;cf=cp||"";b9.readyState=cv>0?4:0;if(cu){ct=h(ch,b9,cu)}if(cv>=200&&cv<300||cv===304){if(ch.ifModified){cr=b9.getResponseHeader("Last-Modified");if(cr){aq.lastModified[b8]=cr}cr=b9.getResponseHeader("Etag");if(cr){aq.etag[b8]=cr}}if(cv===304){cw="notmodified";cq=true}else{cq=f(ch,ct);cw=cq.state;cx=cq.data;e=cq.error;cq=!e}}else{e=cw;if(!cw||cv){cw="error";if(cv<0){cv=0}}}b9.status=cv;b9.statusText=""+(cs||cw);if(cq){b2.resolveWith(b0,[cx,cw,b9])}else{b2.rejectWith(b0,[b9,cw,e])}b9.statusCode(cj);cj=bS;if(b5){b6.trigger("ajax"+(cq?"Success":"Error"),[b9,ch,cq?cx:e])}b1.fireWith(b0,[b9,cw]);if(b5){b6.trigger("ajaxComplete",[b9,ch]);if(!(--aq.active)){aq.event.trigger("ajaxStop")}}}b2.promise(b9);b9.success=b9.done;b9.error=b9.fail;b9.complete=b1.add;b9.statusCode=function(e){if(e){var cp;if(ci<2){for(cp in e){cj[cp]=[cj[cp],e[cp]]}}else{cp=e[b9.status];b9.always(cp)}}return this};ch.url=((co||ch.url)+"").replace(aW,"").replace(bl,j[1]+"//");ch.dataTypes=aq.trim(ch.dataType||"*").toLowerCase().split(z);if(ch.crossDomain==null){cb=bE.exec(ch.url.toLowerCase());ch.crossDomain=!!(cb&&(cb[1]!=j[1]||cb[2]!=j[2]||(cb[3]||(cb[1]==="http:"?80:443))!=(j[3]||(j[1]==="http:"?80:443))))}if(ch.data&&ch.processData&&typeof ch.data!=="string"){ch.data=aq.param(ch.data,ch.traditional)}al(az,ch,ca,b9);if(ci===2){return b9}b5=ch.global;ch.type=ch.type.toUpperCase();ch.hasContent=!bc.test(ch.type);if(b5&&aq.active++===0){aq.event.trigger("ajaxStart")}if(!ch.hasContent){if(ch.data){ch.url+=(bm.test(ch.url)?"&":"?")+ch.data;delete ch.data}b8=ch.url;if(ch.cache===false){var cn=aq.now(),cg=ch.url.replace(bA,"$1_="+cn);ch.url=cg+((cg===ch.url)?(bm.test(ch.url)?"&":"?")+"_="+cn:"")}}if(ch.data&&ch.hasContent&&ch.contentType!==false||ca.contentType){b9.setRequestHeader("Content-Type",ch.contentType)}if(ch.ifModified){b8=b8||ch.url;if(aq.lastModified[b8]){b9.setRequestHeader("If-Modified-Since",aq.lastModified[b8])}if(aq.etag[b8]){b9.setRequestHeader("If-None-Match",aq.etag[b8])}}b9.setRequestHeader("Accept",ch.dataTypes[0]&&ch.accepts[ch.dataTypes[0]]?ch.accepts[ch.dataTypes[0]]+(ch.dataTypes[0]!=="*"?", "+k+"; q=0.01":""):ch.accepts["*"]);for(b7 in ch.headers){b9.setRequestHeader(b7,ch.headers[b7])}if(ch.beforeSend&&(ch.beforeSend.call(b0,b9,ch)===false||ci===2)){return b9.abort()}ck="abort";for(b7 in {success:1,error:1,complete:1}){b9[b7](ch[b7])}cm=al(bP,ch,ca,b9);if(!cm){b3(-1,"No Transport")}else{b9.readyState=1;if(b5){b6.trigger("ajaxSend",[b9,ch])}if(ch.async&&ch.timeout>0){cl=setTimeout(function(){b9.abort("timeout")},ch.timeout)}try{ci=1;cm.send(cc,b3)}catch(b4){if(ci<2){b3(-1,b4)}else{throw b4}}}return b9},active:0,lastModified:{},etag:{}});function h(b7,b4,b6){var b0,b8,b2,b3,e=b7.contents,b1=b7.dataTypes,b5=b7.responseFields;for(b8 in b5){if(b8 in b6){b4[b5[b8]]=b6[b8]}}while(b1[0]==="*"){b1.shift();if(b0===bS){b0=b7.mimeType||b4.getResponseHeader("content-type")}}if(b0){for(b8 in e){if(e[b8]&&e[b8].test(b0)){b1.unshift(b8);break}}}if(b1[0] in b6){b2=b1[0]}else{for(b8 in b6){if(!b1[0]||b7.converters[b8+" "+b1[0]]){b2=b8;break}if(!b3){b3=b8}}b2=b2||b3}if(b2){if(b2!==b1[0]){b1.unshift(b2)}return b6[b2]}}function f(b9,b8){var b0,b1,b3,ca,b4=b9.dataTypes.slice(),b7=b4[0],b2={},b6=0;if(b9.dataFilter){b8=b9.dataFilter(b8,b9.dataType)}if(b4[1]){for(b0 in b9.converters){b2[b0.toLowerCase()]=b9.converters[b0]}}for(;(b3=b4[++b6]);){if(b3!=="*"){if(b7!=="*"&&b7!==b3){b0=b2[b7+" "+b3]||b2["* "+b3];if(!b0){for(b1 in b2){ca=b1.split(" ");if(ca[1]===b3){b0=b2[b7+" "+ca[0]]||b2["* "+ca[0]];if(b0){if(b0===true){b0=b2[b1]}else{if(b2[b1]!==true){b3=ca[0];b4.splice(b6--,0,b3)}}break}}}}if(b0!==true){if(b0&&b9["throws"]){b8=b0(b8)}else{try{b8=b0(b8)}catch(b5){return{state:"parsererror",error:b0?b5:"No conversion from "+b7+" to "+b3}}}}}b7=b3}}return{state:"success",data:b8}}var ax=[],bn=/\?/,a2=/(=)\?(?=&|$)|\?\?/,aw=aq.now();aq.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=ax.pop()||(aq.expando+"_"+(aw++));this[e]=true;return e}});aq.ajaxPrefilter("json jsonp",function(b8,b3,b2){var e,b4,b7,b0=b8.data,b9=b8.url,b1=b8.jsonp!==false,b6=b1&&a2.test(b9),b5=b1&&!b6&&typeof b0==="string"&&!(b8.contentType||"").indexOf("application/x-www-form-urlencoded")&&a2.test(b0);if(b8.dataTypes[0]==="jsonp"||b6||b5){e=b8.jsonpCallback=aq.isFunction(b8.jsonpCallback)?b8.jsonpCallback():b8.jsonpCallback;b4=bU[e];if(b6){b8.url=b9.replace(a2,"$1"+e)}else{if(b5){b8.data=b0.replace(a2,"$1"+e)}else{if(b1){b8.url+=(bn.test(b9)?"&":"?")+b8.jsonp+"="+e}}}b8.converters["script json"]=function(){if(!b7){aq.error(e+" was not called")}return b7[0]};b8.dataTypes[0]="json";bU[e]=function(){b7=arguments};b2.always(function(){bU[e]=b4;if(b8[e]){b8.jsonpCallback=b3.jsonpCallback;ax.push(e)}if(b7&&aq.isFunction(b4)){b4(b7[0])}b7=b4=bS});return"script"}});aq.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){aq.globalEval(e);return e}}});aq.ajaxPrefilter("script",function(e){if(e.cache===bS){e.cache=false}if(e.crossDomain){e.type="GET";e.global=false}});aq.ajaxTransport("script",function(b0){if(b0.crossDomain){var b1,e=R.head||R.getElementsByTagName("head")[0]||R.documentElement;return{send:function(b2,b3){b1=R.createElement("script");b1.async="async";if(b0.scriptCharset){b1.charset=b0.scriptCharset}b1.src=b0.url;b1.onload=b1.onreadystatechange=function(b4,b5){if(b5||!b1.readyState||/loaded|complete/.test(b1.readyState)){b1.onload=b1.onreadystatechange=null;if(e&&b1.parentNode){e.removeChild(b1)}b1=bS;if(!b5){b3(200,"success")}}};e.insertBefore(b1,e.firstChild)},abort:function(){if(b1){b1.onload(0,1)}}}}});var bX,bZ=bU.ActiveXObject?function(){for(var e in bX){bX[e](0,1)}}:false,bY=0;function H(){try{return new bU.XMLHttpRequest()}catch(b0){}}function D(){try{return new bU.ActiveXObject("Microsoft.XMLHTTP")}catch(b0){}}aq.ajaxSettings.xhr=bU.ActiveXObject?function(){return !this.isLocal&&H()||D()}:H;(function(e){aq.extend(aq.support,{ajax:!!e,cors:!!e&&("withCredentials" in e)})})(aq.ajaxSettings.xhr());if(aq.support.ajax){aq.ajaxTransport(function(b0){if(!b0.crossDomain||aq.support.cors){var e;return{send:function(b4,b2){var b3,b5,b6=b0.xhr();if(b0.username){b6.open(b0.type,b0.url,b0.async,b0.username,b0.password)}else{b6.open(b0.type,b0.url,b0.async)}if(b0.xhrFields){for(b5 in b0.xhrFields){b6[b5]=b0.xhrFields[b5]}}if(b0.mimeType&&b6.overrideMimeType){b6.overrideMimeType(b0.mimeType)}if(!b0.crossDomain&&!b4["X-Requested-With"]){b4["X-Requested-With"]="XMLHttpRequest"}try{for(b5 in b4){b6.setRequestHeader(b5,b4[b5])}}catch(b1){}b6.send((b0.hasContent&&b0.data)||null);e=function(b7,ca){var cd,ce,cb,cc,cf;try{if(e&&(ca||b6.readyState===4)){e=bS;if(b3){b6.onreadystatechange=aq.noop;if(bZ){delete bX[b3]}}if(ca){if(b6.readyState!==4){b6.abort()}}else{cd=b6.status;cb=b6.getAllResponseHeaders();cc={};cf=b6.responseXML;if(cf&&cf.documentElement){cc.xml=cf}try{cc.text=b6.responseText}catch(b7){}try{ce=b6.statusText}catch(b8){ce=""}if(!cd&&b0.isLocal&&!b0.crossDomain){cd=cc.text?200:404}else{if(cd===1223){cd=204}}}}}catch(b9){if(!ca){b2(-1,b9)}}if(cc){b2(cd,ce,cc,cb)}};if(!b0.async){e()}else{if(b6.readyState===4){setTimeout(e,0)}else{b3=++bY;if(bZ){if(!bX){bX={};aq(bU).unload(bZ)}bX[b3]=e}b6.onreadystatechange=e}}},abort:function(){if(e){e(0,1)}}}}})}var ab,bO,aV=/^(?:toggle|show|hide)$/,aU=new RegExp("^(?:([-+])=|)("+w+")([a-z%]*)$","i"),bs=/queueHooks$/,m=[Q],bR={"*":[function(b2,b8){var e,b7,b1,b6=this.createTween(b2,b8),b0=aU.exec(b8),b5=b6.cur(),b4=+b5||0,b3=1;if(b0){e=+b0[2];b7=b0[3]||(aq.cssNumber[b2]?"":"px");if(b7!=="px"&&b4){b4=aq.css(b6.elem,b2,true)||e||1;do{b1=b3=b3||".5";b4=b4/b3;aq.style(b6.elem,b2,b4+b7);b3=b6.cur()/b5}while(b3!==1&&b3!==b1)}b6.unit=b7;b6.start=b4;b6.end=b0[1]?b4+(b0[1]+1)*e:e}return b6}]};function E(){setTimeout(function(){ab=bS},0);return(ab=aq.now())}function I(e,b0){aq.each(b0,function(b4,b5){var b1=(bR[b4]||[]).concat(bR["*"]),b2=0,b3=b1.length;for(;b2<b3;b2++){if(b1[b2].call(e,b4,b5)){return}}})}function l(b1,b5,b4){var b7,b2=0,b9=0,b3=m.length,b0=aq.Deferred().always(function(){delete b8.elem}),b8=function(){var ca=ab||E(),ce=Math.max(0,e.startTime+e.duration-ca),cd=1-(ce/e.duration||0),cb=0,cc=e.tweens.length;for(;cb<cc;cb++){e.tweens[cb].run(cd)}b0.notifyWith(b1,[e,cd,ce]);if(cd<1&&cc){return ce}else{b0.resolveWith(b1,[e]);return false}},e=b0.promise({elem:b1,props:aq.extend({},b5),opts:aq.extend(true,{specialEasing:{}},b4),originalProperties:b5,originalOptions:b4,startTime:ab||E(),duration:b4.duration,tweens:[],createTween:function(cc,cb,ca){var cd=aq.Tween(b1,e.opts,cc,cb,e.opts.specialEasing[cc]||e.opts.easing);e.tweens.push(cd);return cd},stop:function(ca){var cb=0,cc=ca?e.tweens.length:0;for(;cb<cc;cb++){e.tweens[cb].run(1)}if(ca){b0.resolveWith(b1,[e,ca])}else{b0.rejectWith(b1,[e,ca])}return this}}),b6=e.props;aA(b6,e.opts.specialEasing);for(;b2<b3;b2++){b7=m[b2].call(e,b1,b6,e.opts);if(b7){return b7}}I(e,b6);if(aq.isFunction(e.opts.start)){e.opts.start.call(b1,e)}aq.fx.timer(aq.extend(b8,{anim:e,queue:e.opts.queue,elem:b1}));return e.progress(e.opts.progress).done(e.opts.done,e.opts.complete).fail(e.opts.fail).always(e.opts.always)}function aA(b3,b4){var b1,b2,e,b5,b0;for(b1 in b3){b2=aq.camelCase(b1);e=b4[b2];b5=b3[b1];if(aq.isArray(b5)){e=b5[1];b5=b3[b1]=b5[0]}if(b1!==b2){b3[b2]=b5;delete b3[b1]}b0=aq.cssHooks[b2];if(b0&&"expand" in b0){b5=b0.expand(b5);delete b3[b2];for(b1 in b5){if(!(b1 in b3)){b3[b1]=b5[b1];b4[b1]=e}}}else{b4[b2]=e}}}aq.Animation=aq.extend(l,{tweener:function(b3,e){if(aq.isFunction(b3)){e=b3;b3=["*"]}else{b3=b3.split(" ")}var b2,b0=0,b1=b3.length;for(;b0<b1;b0++){b2=b3[b0];bR[b2]=bR[b2]||[];bR[b2].unshift(e)}},prefilter:function(e,b0){if(b0){m.unshift(e)}else{m.push(e)}}});function Q(b1,cb,b8){var b5,ca,ce,b6,b0,cd,b4,b7,e=this,cc=b1.style,b9={},b2=[],b3=b1.nodeType&&ao(b1);if(!b8.queue){b4=aq._queueHooks(b1,"fx");if(b4.unqueued==null){b4.unqueued=0;b7=b4.empty.fire;b4.empty.fire=function(){if(!b4.unqueued){b7()}}}b4.unqueued++;e.always(function(){e.always(function(){b4.unqueued--;if(!aq.queue(b1,"fx").length){b4.empty.fire()}})})}if(b1.nodeType===1&&("height" in cb||"width" in cb)){b8.overflow=[cc.overflow,cc.overflowX,cc.overflowY];if(aq.css(b1,"display")==="inline"&&aq.css(b1,"float")==="none"){if(!aq.support.inlineBlockNeedsLayout||J(b1.nodeName)==="inline"){cc.display="inline-block"}else{cc.zoom=1}}}if(b8.overflow){cc.overflow="hidden";if(!aq.support.shrinkWrapBlocks){e.done(function(){cc.overflow=b8.overflow[0];cc.overflowX=b8.overflow[1];cc.overflowY=b8.overflow[2]})}}for(b5 in cb){ce=cb[b5];if(aV.exec(ce)){delete cb[b5];if(ce===(b3?"hide":"show")){continue}b2.push(b5)}}b6=b2.length;if(b6){b0=aq._data(b1,"fxshow")||aq._data(b1,"fxshow",{});if(b3){aq(b1).show()}else{e.done(function(){aq(b1).hide()})}e.done(function(){var cf;aq.removeData(b1,"fxshow",true);for(cf in b9){aq.style(b1,cf,b9[cf])}});for(b5=0;b5<b6;b5++){ca=b2[b5];cd=e.createTween(ca,b3?b0[ca]:0);b9[ca]=b0[ca]||aq.style(b1,ca);if(!(ca in b0)){b0[ca]=cd.start;if(b3){cd.end=cd.start;cd.start=ca==="width"||ca==="height"?1:0}}}}}function bQ(b0,b2,b3,b1,e){return new bQ.prototype.init(b0,b2,b3,b1,e)}aq.Tween=bQ;bQ.prototype={constructor:bQ,init:function(b0,b2,b3,b1,e,b4){this.elem=b0;this.prop=b3;this.easing=e||"swing";this.options=b2;this.start=this.now=this.cur();this.end=b1;this.unit=b4||(aq.cssNumber[b3]?"":"px")},cur:function(){var e=bQ.propHooks[this.prop];return e&&e.get?e.get(this):bQ.propHooks._default.get(this)},run:function(b1){var e,b0=bQ.propHooks[this.prop];if(this.options.duration){this.pos=e=aq.easing[this.easing](b1,this.options.duration*b1,0,1,this.options.duration)}else{this.pos=e=b1}this.now=(this.end-this.start)*e+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this)}if(b0&&b0.set){b0.set(this)}else{bQ.propHooks._default.set(this)}return this}};bQ.prototype.init.prototype=bQ.prototype;bQ.propHooks={_default:{get:function(b0){var e;if(b0.elem[b0.prop]!=null&&(!b0.elem.style||b0.elem.style[b0.prop]==null)){return b0.elem[b0.prop]}e=aq.css(b0.elem,b0.prop,false,"");return !e||e==="auto"?0:e},set:function(e){if(aq.fx.step[e.prop]){aq.fx.step[e.prop](e)}else{if(e.elem.style&&(e.elem.style[aq.cssProps[e.prop]]!=null||aq.cssHooks[e.prop])){aq.style(e.elem,e.prop,e.now+e.unit)}else{e.elem[e.prop]=e.now}}}}};bQ.propHooks.scrollTop=bQ.propHooks.scrollLeft={set:function(e){if(e.elem.nodeType&&e.elem.parentNode){e.elem[e.prop]=e.now}}};aq.each(["toggle","show","hide"],function(b0,b1){var e=aq.fn[b1];aq.fn[b1]=function(b4,b3,b2){return b4==null||typeof b4==="boolean"||(!b0&&aq.isFunction(b4)&&aq.isFunction(b3))?e.apply(this,arguments):this.animate(ac(b1,true),b4,b3,b2)}});aq.fn.extend({fadeTo:function(b1,b2,b0,e){return this.filter(ao).css("opacity",0).show().end().animate({opacity:b2},b1,b0,e)},animate:function(b4,b5,b1,e){var b2=aq.isEmptyObject(b4),b3=aq.speed(b5,b1,e),b0=function(){var b6=l(this,aq.extend({},b4),b3);if(b2){b6.stop(true)}};return b2||b3.queue===false?this.each(b0):this.queue(b3.queue,b0)},stop:function(b2,e,b0){var b1=function(b3){var b4=b3.stop;delete b3.stop;b4(b0)};if(typeof b2!=="string"){b0=e;e=b2;b2=bS}if(e&&b2!==false){this.queue(b2||"fx",[])}return this.each(function(){var b4=true,b5=b2!=null&&b2+"queueHooks",b6=aq.timers,b3=aq._data(this);if(b5){if(b3[b5]&&b3[b5].stop){b1(b3[b5])}}else{for(b5 in b3){if(b3[b5]&&b3[b5].stop&&bs.test(b5)){b1(b3[b5])}}}for(b5=b6.length;b5--;){if(b6[b5].elem===this&&(b2==null||b6[b5].queue===b2)){b6[b5].anim.stop(b0);b4=false;b6.splice(b5,1)}}if(b4||!b0){aq.dequeue(this,b2)}})}});function ac(b2,b1){var b3,e={height:b2},b0=0;b1=b1?1:0;for(;b0<4;b0+=2-b1){b3=K[b0];e["margin"+b3]=e["padding"+b3]=b2}if(b1){e.opacity=e.width=b2}return e}aq.each({slideDown:ac("show"),slideUp:ac("hide"),slideToggle:ac("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,b0){aq.fn[e]=function(b3,b2,b1){return this.animate(b0,b3,b2,b1)}});aq.speed=function(b2,e,b0){var b1=b2&&typeof b2==="object"?aq.extend({},b2):{complete:b0||!b0&&e||aq.isFunction(b2)&&b2,duration:b2,easing:b0&&e||e&&!aq.isFunction(e)&&e};b1.duration=aq.fx.off?0:typeof b1.duration==="number"?b1.duration:b1.duration in aq.fx.speeds?aq.fx.speeds[b1.duration]:aq.fx.speeds._default;if(b1.queue==null||b1.queue===true){b1.queue="fx"}b1.old=b1.complete;b1.complete=function(){if(aq.isFunction(b1.old)){b1.old.call(this)}if(b1.queue){aq.dequeue(this,b1.queue)}};return b1};aq.easing={linear:function(e){return e},swing:function(e){return 0.5-Math.cos(e*Math.PI)/2}};aq.timers=[];aq.fx=bQ.prototype.init;aq.fx.tick=function(){var b0,b1=aq.timers,e=0;for(;e<b1.length;e++){b0=b1[e];if(!b0()&&b1[e]===b0){b1.splice(e--,1)}}if(!b1.length){aq.fx.stop()}};aq.fx.timer=function(e){if(e()&&aq.timers.push(e)&&!bO){bO=setInterval(aq.fx.tick,aq.fx.interval)}};aq.fx.interval=13;aq.fx.stop=function(){clearInterval(bO);bO=null};aq.fx.speeds={slow:600,fast:200,_default:400};aq.fx.step={};if(aq.expr&&aq.expr.filters){aq.expr.filters.animated=function(e){return aq.grep(aq.timers,function(b0){return e===b0.elem}).length}}var br=/^(?:body|html)$/i;aq.fn.offset=function(b7){if(arguments.length){return b7===bS?this:this.each(function(cc){aq.offset.setOffset(this,b7,cc)})}var b0,b4,e,cb,b2,b1,b9,b8,ca,b6,b5=this[0],b3=b5&&b5.ownerDocument;if(!b3){return}if((e=b3.body)===b5){return aq.offset.bodyOffset(b5)}b4=b3.documentElement;if(!aq.contains(b4,b5)){return{top:0,left:0}}b0=b5.getBoundingClientRect();cb=ag(b3);b2=b4.clientTop||e.clientTop||0;b1=b4.clientLeft||e.clientLeft||0;b9=cb.pageYOffset||b4.scrollTop;b8=cb.pageXOffset||b4.scrollLeft;ca=b0.top+b9-b2;b6=b0.left+b8-b1;return{top:ca,left:b6}};aq.offset={bodyOffset:function(e){var b1=e.offsetTop,b0=e.offsetLeft;if(aq.support.doesNotIncludeMarginInBodyOffset){b1+=parseFloat(aq.css(e,"marginTop"))||0;b0+=parseFloat(aq.css(e,"marginLeft"))||0}return{top:b1,left:b0}},setOffset:function(b7,b9,b8){var ca=aq.css(b7,"position");if(ca==="static"){b7.style.position="relative"}var b2=aq(b7),b4=b2.offset(),b1=aq.css(b7,"top"),b0=aq.css(b7,"left"),e=(ca==="absolute"||ca==="fixed")&&aq.inArray("auto",[b1,b0])>-1,cb={},b5={},b6,b3;if(e){b5=b2.position();b6=b5.top;b3=b5.left}else{b6=parseFloat(b1)||0;b3=parseFloat(b0)||0}if(aq.isFunction(b9)){b9=b9.call(b7,b8,b4)}if(b9.top!=null){cb.top=(b9.top-b4.top)+b6}if(b9.left!=null){cb.left=(b9.left-b4.left)+b3}if("using" in b9){b9.using.call(b7,cb)}else{b2.css(cb)}}};aq.fn.extend({position:function(){if(!this[0]){return}var e=this[0],b1=this.offsetParent(),b0=this.offset(),b2=br.test(b1[0].nodeName)?{top:0,left:0}:b1.offset();b0.top-=parseFloat(aq.css(e,"marginTop"))||0;b0.left-=parseFloat(aq.css(e,"marginLeft"))||0;b2.top+=parseFloat(aq.css(b1[0],"borderTopWidth"))||0;b2.left+=parseFloat(aq.css(b1[0],"borderLeftWidth"))||0;return{top:b0.top-b2.top,left:b0.left-b2.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||R.body;while(e&&(!br.test(e.nodeName)&&aq.css(e,"position")==="static")){e=e.offsetParent}return e||R.body})}});aq.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,b0){var b1=/Y/.test(b0);aq.fn[e]=function(b2){return aq.access(this,function(b3,b4,b5){var b6=ag(b3);if(b5===bS){return b6?(b0 in b6)?b6[b0]:b6.document.documentElement[b4]:b3[b4]}if(b6){b6.scrollTo(!b1?b5:aq(b6).scrollLeft(),b1?b5:aq(b6).scrollTop())}else{b3[b4]=b5}},e,b2,arguments.length,null)}});function ag(e){return aq.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}aq.each({Height:"height",Width:"width"},function(e,b0){aq.each({padding:"inner"+e,content:b0,"":"outer"+e},function(b1,b2){aq.fn[b2]=function(b5,b6){var b3=arguments.length&&(b1||typeof b5!=="boolean"),b4=b1||(b5===true||b6===true?"margin":"border");return aq.access(this,function(b8,b9,ca){var b7;if(aq.isWindow(b8)){return b8.document.documentElement["client"+e]}if(b8.nodeType===9){b7=b8.documentElement;return Math.max(b8.body["scroll"+e],b7["scroll"+e],b8.body["offset"+e],b7["offset"+e],b7["client"+e])}return ca===bS?aq.css(b8,b9,ca,b4):aq.style(b8,b9,ca,b4)},b0,b3?b5:bS,b3,null)}})});bU.jQuery=bU.$=aq;if(typeof define==="function"&&define.amd&&define.amd.jQuery){define("jquery",[],function(){return aq})}})(window);
/*
* jQuery UI 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI
*/
(function(a,c){a.ui=a.ui||{};if(a.ui.version){return}a.extend(a.ui,{version:"1.8.23",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(e,f){return typeof e==="number"?this.each(function(){var g=this;setTimeout(function(){a(g).focus();if(f){f.call(g)}},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;if((a.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){e=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)}else{e=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"))||!e.length?a(document):e},zIndex:function(h){if(h!==c){return this.css("zIndex",h)}if(this.length){var e=a(this[0]),f,g;while(e.length&&e[0]!==document){f=e.css("position");if(f==="absolute"||f==="relative"||f==="fixed"){g=parseInt(e.css("zIndex"),10);if(!isNaN(g)&&g!==0){return g}}e=e.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});if(!a("<a>").outerWidth(1).jquery){a.each(["Width","Height"],function(e,f){var j=f==="Width"?["Left","Right"]:["Top","Bottom"],k=f.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};function h(l,o,i,m){a.each(j,function(){o-=parseFloat(a.curCSS(l,"padding"+this,true))||0;if(i){o-=parseFloat(a.curCSS(l,"border"+this+"Width",true))||0}if(m){o-=parseFloat(a.curCSS(l,"margin"+this,true))||0}});return o}a.fn["inner"+f]=function(i){if(i===c){return g["inner"+f].call(this)}return this.each(function(){a(this).css(k,h(this,i)+"px")})};a.fn["outer"+f]=function(l,i){if(typeof l!=="number"){return g["outer"+f].call(this,l)}return this.each(function(){a(this).css(k,h(this,l,true,i)+"px")})}})}function b(e,g){var j=e.nodeName.toLowerCase();if("area"===j){var h=e.parentNode,i=h.name,f;if(!e.href||!i||h.nodeName.toLowerCase()!=="map"){return false}f=a("img[usemap=#"+i+"]")[0];return !!f&&d(f)}return(/input|select|textarea|button|object/.test(j)?!e.disabled:"a"==j?e.href||g:g)&&d(e)}function d(e){return !a(e).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(e){return function(f){return !!a.data(f,e)}}):function(e,f,g){return !!a.data(e,g[3])},focusable:function(e){return b(e,!isNaN(a.attr(e,"tabindex")))},tabbable:function(e){var g=a.attr(e,"tabindex"),f=isNaN(g);return(f||g>=0)&&b(e,!f)}});a(function(){var e=document.body,f=e.appendChild(f=document.createElement("div"));f.offsetHeight;a.extend(f.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=f.offsetHeight===100;a.support.selectstart="onselectstart" in f;e.removeChild(f).style.display="none"});if(!a.curCSS){a.curCSS=a.css}a.extend(a.ui,{plugin:{add:function(f,g,j){var h=a.ui[f].prototype;for(var e in j){h.plugins[e]=h.plugins[e]||[];h.plugins[e].push([g,j[e]])}},call:function(g,h,e){var j=g.plugins[h];if(!j||!g.element[0].parentNode){return}for(var f=0;f<j.length;f++){if(g.options[j[f][0]]){j[f][1].apply(g.element,e)}}}},contains:function(e,f){return document.compareDocumentPosition?e.compareDocumentPosition(f)&16:e!==f&&e.contains(f)},hasScroll:function(f,e){if(a(f).css("overflow")==="hidden"){return false}var h=(e&&e==="left")?"scrollLeft":"scrollTop",g=false;if(f[h]>0){return true}f[h]=1;g=(f[h]>0);f[h]=0;return g},isOverAxis:function(g,e,f){return(g>e)&&(g<(e+f))},isOver:function(j,i,g,f,e,h){return a.ui.isOverAxis(j,g,e)&&a.ui.isOverAxis(i,f,h)}})})(jQuery);
/*
* jQuery UI Widget 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Widget
*/
(function(a,d){if(a.cleanData){var b=a.cleanData;a.cleanData=function(h){for(var j=0,g;(g=h[j])!=null;j++){try{a(g).triggerHandler("remove")}catch(f){}}b(h)}}else{var c=a.fn.remove;a.fn.remove=function(f,e){return this.each(function(){if(!e){if(!f||a.filter(f,[this]).length){a("*",this).add([this]).each(function(){try{a(this).triggerHandler("remove")}catch(g){}})}}return c.call(a(this),f,e)})}}a.widget=function(h,e,j){var i=h.split(".")[0],g;h=h.split(".")[1];g=i+"-"+h;if(!j){j=e;e=a.Widget}a.expr[":"][g]=function(k){return !!a.data(k,h)};a[i]=a[i]||{};a[i][h]=function(l,k){if(arguments.length){this._createWidget(l,k)}};var f=new e();f.options=a.extend(true,{},f.options);a[i][h].prototype=a.extend(true,f,{namespace:i,widgetName:h,widgetEventPrefix:a[i][h].prototype.widgetEventPrefix||h,widgetBaseClass:g},j);a.widget.bridge(h,a[i][h])};a.widget.bridge=function(e,f){a.fn[e]=function(i){var h=typeof i==="string",g=Array.prototype.slice.call(arguments,1),j=this;i=!h&&g.length?a.extend.apply(null,[true,i].concat(g)):i;if(h&&i.charAt(0)==="_"){return j}if(h){this.each(function(){var k=a.data(this,e),l=k&&a.isFunction(k[i])?k[i].apply(k,g):k;if(l!==k&&l!==d){j=l;return false}})}else{this.each(function(){var k=a.data(this,e);if(k){k.option(i||{})._init()}else{a.data(this,e,new f(i,this))}})}return j}};a.Widget=function(f,e){if(arguments.length){this._createWidget(f,e)}};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(f,e){a.data(e,this.widgetName,this);this.element=a(e);this.options=a.extend(true,{},this.options,this._getCreateOptions(),f);var g=this;this.element.bind("remove."+this.widgetName,function(){g.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(e,g){var f=e;if(arguments.length===0){return a.extend({},this.options)}if(typeof e==="string"){if(g===d){return this.options[e]}f={};f[e]=g}this._setOptions(f);return this},_setOptions:function(e){var f=this;a.each(e,function(g,h){f._setOption(g,h)});return this},_setOption:function(e,f){this.options[e]=f;if(e==="disabled"){this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(j,g,f){var i,h,e=this.options[j];f=f||{};g=a.Event(g);g.type=(j===this.widgetEventPrefix?j:this.widgetEventPrefix+j).toLowerCase();g.target=this.element[0];h=g.originalEvent;if(h){for(i in h){if(!(i in g)){g[i]=h[i]}}}this.element.trigger(g,f);return !(a.isFunction(e)&&e.call(this.element[0],g,f)===false||g.isDefaultPrevented())}}})(jQuery);
/*
* jQuery UI Mouse 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Mouse
*
* Depends:
*	jquery.ui.widget.js
*/
(function(a,c){var b=false;a(document).mouseup(function(d){b=false});a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var d=this;this.element.bind("mousedown."+this.widgetName,function(e){return d._mouseDown(e)}).bind("click."+this.widgetName,function(e){if(true===a.data(e.target,d.widgetName+".preventClickEvent")){a.removeData(e.target,d.widgetName+".preventClickEvent");e.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);if(this._mouseMoveDelegate){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)}},_mouseDown:function(f){if(b){return}(this._mouseStarted&&this._mouseUp(f));this._mouseDownEvent=f;var g=this,d=(f.which==1),e=(typeof this.options.cancel=="string"&&f.target.nodeName?a(f.target).closest(this.options.cancel).length:false);if(!d||e||!this._mouseCapture(f)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){g.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(f)&&this._mouseDelayMet(f)){this._mouseStarted=(this._mouseStart(f)!==false);if(!this._mouseStarted){f.preventDefault();return true}}if(true===a.data(f.target,this.widgetName+".preventClickEvent")){a.removeData(f.target,this.widgetName+".preventClickEvent")}this._mouseMoveDelegate=function(h){return g._mouseMove(h)};this._mouseUpDelegate=function(h){return g._mouseUp(h)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);f.preventDefault();b=true;return true},_mouseMove:function(d){if(a.browser.msie&&!(document.documentMode>=9)&&!d.button){return this._mouseUp(d)}if(this._mouseStarted){this._mouseDrag(d);return d.preventDefault()}if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,d)!==false);(this._mouseStarted?this._mouseDrag(d):this._mouseUp(d))}return !this._mouseStarted},_mouseUp:function(d){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(d.target==this._mouseDownEvent.target){a.data(d.target,this.widgetName+".preventClickEvent",true)}this._mouseStop(d)}return false},_mouseDistanceMet:function(d){return(Math.max(Math.abs(this._mouseDownEvent.pageX-d.pageX),Math.abs(this._mouseDownEvent.pageY-d.pageY))>=this.options.distance)},_mouseDelayMet:function(d){return this.mouseDelayMet},_mouseStart:function(d){},_mouseDrag:function(d){},_mouseStop:function(d){},_mouseCapture:function(d){return true}})})(jQuery);
/*
* jQuery UI Position 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Position
*/
(function(a,g){a.ui=a.ui||{};var e=/left|center|right/,h=/top|center|bottom/,d="center",f={},c=a.fn.position,b=a.fn.offset;a.fn.position=function(l){if(!l||!l.of){return c.apply(this,arguments)}l=a.extend({},l);var m=a(l.of),o=m[0],j=(l.collision||"flip").split(" "),k=l.offset?l.offset.split(" "):[0,0],q,p,i;if(o.nodeType===9){q=m.width();p=m.height();i={top:0,left:0}}else{if(o.setTimeout){q=m.width();p=m.height();i={top:m.scrollTop(),left:m.scrollLeft()}}else{if(o.preventDefault){l.at="left top";q=p=0;i={top:l.of.pageY,left:l.of.pageX}}else{q=m.outerWidth();p=m.outerHeight();i=m.offset()}}}a.each(["my","at"],function(){var r=(l[this]||"").split(" ");if(r.length===1){r=e.test(r[0])?r.concat([d]):h.test(r[0])?[d].concat(r):[d,d]}r[0]=e.test(r[0])?r[0]:d;r[1]=h.test(r[1])?r[1]:d;l[this]=r});if(j.length===1){j[1]=j[0]}k[0]=parseInt(k[0],10)||0;if(k.length===1){k[1]=k[0]}k[1]=parseInt(k[1],10)||0;if(l.at[0]==="right"){i.left+=q}else{if(l.at[0]===d){i.left+=q/2}}if(l.at[1]==="bottom"){i.top+=p}else{if(l.at[1]===d){i.top+=p/2}}i.left+=k[0];i.top+=k[1];return this.each(function(){var u=a(this),w=u.outerWidth(),v=u.outerHeight(),x=parseInt(a.curCSS(this,"marginLeft",true))||0,y=parseInt(a.curCSS(this,"marginTop",true))||0,t=w+x+(parseInt(a.curCSS(this,"marginRight",true))||0),r=v+y+(parseInt(a.curCSS(this,"marginBottom",true))||0),z=a.extend({},i),s;if(l.my[0]==="right"){z.left-=w}else{if(l.my[0]===d){z.left-=w/2}}if(l.my[1]==="bottom"){z.top-=v}else{if(l.my[1]===d){z.top-=v/2}}if(!f.fractions){z.left=Math.round(z.left);z.top=Math.round(z.top)}s={left:z.left-x,top:z.top-y};a.each(["left","top"],function(B,A){if(a.ui.position[j[B]]){a.ui.position[j[B]][A](z,{targetWidth:q,targetHeight:p,elemWidth:w,elemHeight:v,collisionPosition:s,collisionWidth:t,collisionHeight:r,offset:k,my:l.my,at:l.at})}});if(a.fn.bgiframe){u.bgiframe()}u.offset(a.extend(z,{using:l.using}))})};a.ui.position={fit:{left:function(k,i){var l=a(window),j=i.collisionPosition.left+i.collisionWidth-l.width()-l.scrollLeft();k.left=j>0?k.left-j:Math.max(k.left-i.collisionPosition.left,k.left)},top:function(k,i){var l=a(window),j=i.collisionPosition.top+i.collisionHeight-l.height()-l.scrollTop();k.top=j>0?k.top-j:Math.max(k.top-i.collisionPosition.top,k.top)}},flip:{left:function(o,j){if(j.at[0]===d){return}var p=a(window),m=j.collisionPosition.left+j.collisionWidth-p.width()-p.scrollLeft(),k=j.my[0]==="left"?-j.elemWidth:j.my[0]==="right"?j.elemWidth:0,i=j.at[0]==="left"?j.targetWidth:-j.targetWidth,l=-2*j.offset[0];o.left+=j.collisionPosition.left<0?k+i+l:m>0?k+i+l:0},top:function(o,j){if(j.at[1]===d){return}var p=a(window),m=j.collisionPosition.top+j.collisionHeight-p.height()-p.scrollTop(),k=j.my[1]==="top"?-j.elemHeight:j.my[1]==="bottom"?j.elemHeight:0,i=j.at[1]==="top"?j.targetHeight:-j.targetHeight,l=-2*j.offset[1];o.top+=j.collisionPosition.top<0?k+i+l:m>0?k+i+l:0}}};if(!a.offset.setOffset){a.offset.setOffset=function(m,o){if(/static/.test(a.curCSS(m,"position"))){m.style.position="relative"}var i=a(m),k=i.offset(),l=parseInt(a.curCSS(m,"top",true),10)||0,j=parseInt(a.curCSS(m,"left",true),10)||0,p={top:(o.top-k.top)+l,left:(o.left-k.left)+j};if("using" in o){o.using.call(m,p)}else{i.css(p)}};a.fn.offset=function(j){var i=this[0];if(!i||!i.ownerDocument){return null}if(j){if(a.isFunction(j)){return this.each(function(k){a(this).offset(j.call(this,k,a(this).offset()))})}return this.each(function(){a.offset.setOffset(this,j)})}return b.call(this)}}if(!a.curCSS){a.curCSS=a.css}(function(){var j=document.getElementsByTagName("body")[0],k=document.createElement("div"),p,q,r,m,o;p=document.createElement(j?"div":"body");r={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};if(j){a.extend(r,{position:"absolute",left:"-1000px",top:"-1000px"})}for(var l in r){p.style[l]=r[l]}p.appendChild(k);q=j||document.documentElement;q.insertBefore(p,q.firstChild);k.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;";m=a(k).offset(function(i,s){return s}).offset();p.innerHTML="";q.removeChild(p);o=m.top+m.left+(j?2000:0);f.fractions=o>21&&o<22})()}(jQuery));
/*
* jQuery UI Draggable 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Draggables
*
* Depends:
*	jquery.ui.core.js
*	jquery.ui.mouse.js
*	jquery.ui.widget.js
*/
(function(a,b){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}(this.options.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit()},destroy:function(){if(!this.element.data("draggable")){return}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this},_mouseCapture:function(c){var d=this.options;if(this.helper||d.disabled||a(c.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(c);if(!this.handle){return false}if(d.iframeFix){a(d.iframeFix===true?"iframe":d.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")})}return true},_mouseStart:function(c){var d=this.options;this.helper=this._createHelper(c);this.helper.addClass("ui-draggable-dragging");this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;(d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt));if(d.containment){this._setContainment()}if(this._trigger("start",c)===false){this._clear();return false}this._cacheHelperProportions();if(a.ui.ddmanager&&!d.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,c)}this._mouseDrag(c,true);if(a.ui.ddmanager){a.ui.ddmanager.dragStart(this,c)}return true},_mouseDrag:function(c,d){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");if(!d){var e=this._uiHash();if(this._trigger("drag",c,e)===false){this._mouseUp({});return false}this.position=e.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(a.ui.ddmanager){a.ui.ddmanager.drag(this,c)}return false},_mouseStop:function(f){var c=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){c=a.ui.ddmanager.drop(this,f)}if(this.dropped){c=this.dropped;this.dropped=false}var d=this.element[0],e=false;while(d&&(d=d.parentNode)){if(d==document){e=true}}if(!e&&this.options.helper==="original"){return false}if((this.options.revert=="invalid"&&!c)||(this.options.revert=="valid"&&c)||this.options.revert===true||(a.isFunction(this.options.revert)&&this.options.revert.call(this.element,c))){var g=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(g._trigger("stop",f)!==false){g._clear()}})}else{if(this._trigger("stop",f)!==false){this._clear()}}return false},_mouseUp:function(c){if(this.options.iframeFix===true){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}if(a.ui.ddmanager){a.ui.ddmanager.dragStop(this,c)}return a.ui.mouse.prototype._mouseUp.call(this,c)},cancel:function(){if(this.helper.is(".ui-draggable-dragging")){this._mouseUp({})}else{this._clear()}return this},_getHandle:function(c){var d=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==c.target){d=true}});return d},_createHelper:function(c){var e=this.options;var d=a.isFunction(e.helper)?a(e.helper.apply(this.element[0],[c])):(e.helper=="clone"?this.element.clone().removeAttr("id"):this.element);if(!d.parents("body").length){d.appendTo((e.appendTo=="parent"?this.element[0].parentNode:e.appendTo))}if(d[0]!=this.element[0]&&!(/(fixed|absolute)/).test(d.css("position"))){d.css("position","absolute")}return d},_adjustOffsetFromHelper:function(c){if(typeof c=="string"){c=c.split(" ")}if(a.isArray(c)){c={left:+c[0],top:+c[1]||0}}if("left" in c){this.offset.click.left=c.left+this.margins.left}if("right" in c){this.offset.click.left=this.helperProportions.width-c.right+this.margins.left}if("top" in c){this.offset.click.top=c.top+this.margins.top}if("bottom" in c){this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){c={top:0,left:0}}return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.element.position();return{top:c.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0),right:(parseInt(this.element.css("marginRight"),10)||0),bottom:(parseInt(this.element.css("marginBottom"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var g=this.options;if(g.containment=="parent"){g.containment=this.helper[0].parentNode}if(g.containment=="document"||g.containment=="window"){this.containment=[g.containment=="document"?0:a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,g.containment=="document"?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(g.containment=="document"?0:a(window).scrollLeft())+a(g.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(g.containment=="document"?0:a(window).scrollTop())+(a(g.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(g.containment)&&g.containment.constructor!=Array){var d=a(g.containment);var e=d[0];if(!e){return}var f=d.offset();var h=(a(e).css("overflow")!="hidden");this.containment=[(parseInt(a(e).css("borderLeftWidth"),10)||0)+(parseInt(a(e).css("paddingLeft"),10)||0),(parseInt(a(e).css("borderTopWidth"),10)||0)+(parseInt(a(e).css("paddingTop"),10)||0),(h?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(a(e).css("borderLeftWidth"),10)||0)-(parseInt(a(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(h?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(a(e).css("borderTopWidth"),10)||0)-(parseInt(a(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=d}else{if(g.containment.constructor==Array){this.containment=g.containment}}},_convertPositionTo:function(c,g){if(!g){g=this.position}var e=c=="absolute"?1:-1;var f=this.options,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(h[0].tagName);return{top:(g.top+this.offset.relative.top*e+this.offset.parent.top*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(i?0:h.scrollTop()))*e)),left:(g.left+this.offset.relative.left*e+this.offset.parent.left*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:h.scrollLeft())*e))}},_generatePosition:function(e){var g=this.options,j=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,k=(/(html|body)/i).test(j[0].tagName);var h=e.pageX;var i=e.pageY;if(this.originalPosition){var d;if(this.containment){if(this.relative_container){var c=this.relative_container.offset();d=[this.containment[0]+c.left,this.containment[1]+c.top,this.containment[2]+c.left,this.containment[3]+c.top]}else{d=this.containment}if(e.pageX-this.offset.click.left<d[0]){h=d[0]+this.offset.click.left}if(e.pageY-this.offset.click.top<d[1]){i=d[1]+this.offset.click.top}if(e.pageX-this.offset.click.left>d[2]){h=d[2]+this.offset.click.left}if(e.pageY-this.offset.click.top>d[3]){i=d[3]+this.offset.click.top}}if(g.grid){var l=g.grid[1]?this.originalPageY+Math.round((i-this.originalPageY)/g.grid[1])*g.grid[1]:this.originalPageY;i=d?(!(l-this.offset.click.top<d[1]||l-this.offset.click.top>d[3])?l:(!(l-this.offset.click.top<d[1])?l-g.grid[1]:l+g.grid[1])):l;var f=g.grid[0]?this.originalPageX+Math.round((h-this.originalPageX)/g.grid[0])*g.grid[0]:this.originalPageX;h=d?(!(f-this.offset.click.left<d[0]||f-this.offset.click.left>d[2])?f:(!(f-this.offset.click.left<d[0])?f-g.grid[0]:f+g.grid[0])):f}}return{top:(i-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(k?0:j.scrollTop())))),left:(h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():k?0:j.scrollLeft())))}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(d,c,e){e=e||this._uiHash();a.ui.plugin.call(this,d,[c,e]);if(d=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return a.Widget.prototype._trigger.call(this,d,c,e)},plugins:{},_uiHash:function(c){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.23"});a.ui.plugin.add("draggable","connectToSortable",{start:function(c,f){var d=a(this).data("draggable"),e=d.options,g=a.extend({},f,{item:d.element});d.sortables=[];a(e.connectToSortable).each(function(){var h=a.data(this,"sortable");if(h&&!h.options.disabled){d.sortables.push({instance:h,shouldRevert:h.options.revert});h.refreshPositions();h._trigger("activate",c,g)}})},stop:function(c,e){var d=a(this).data("draggable"),f=a.extend({},e,{item:d.element});a.each(d.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;d.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;if(d.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",c,f)}})},drag:function(d,g){var e=a(this).data("draggable"),f=this;var c=function(r){var i=this.offset.click.top,h=this.offset.click.left;var k=this.positionAbs.top,j=this.positionAbs.left;var l=r.height,q=r.width;var p=r.top,m=r.left;return a.ui.isOver(k+i,j+h,p,m,l,q)};a.each(e.sortables,function(h){this.instance.positionAbs=e.positionAbs;this.instance.helperProportions=e.helperProportions;this.instance.offset.click=e.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(f).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return g.helper[0]};d.target=this.instance.currentItem[0];this.instance._mouseCapture(d,true);this.instance._mouseStart(d,true,true);this.instance.offset.click.top=e.offset.click.top;this.instance.offset.click.left=e.offset.click.left;this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top;e._trigger("toSortable",d);e.dropped=this.instance.element;e.currentItem=e.element;this.instance.fromOutside=e}if(this.instance.currentItem){this.instance._mouseDrag(d)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",d,this.instance._uiHash(this.instance));this.instance._mouseStop(d,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}e._trigger("fromSortable",d);e.dropped=false}}})}});a.ui.plugin.add("draggable","cursor",{start:function(c,f){var e=a("body"),d=a(this).data("draggable").options;if(e.css("cursor")){d._cursor=e.css("cursor")}e.css("cursor",d.cursor)},stop:function(c,e){var d=a(this).data("draggable").options;if(d._cursor){a("body").css("cursor",d._cursor)}}});a.ui.plugin.add("draggable","opacity",{start:function(c,f){var e=a(f.helper),d=a(this).data("draggable").options;if(e.css("opacity")){d._opacity=e.css("opacity")}e.css("opacity",d.opacity)},stop:function(c,e){var d=a(this).data("draggable").options;if(d._opacity){a(e.helper).css("opacity",d._opacity)}}});a.ui.plugin.add("draggable","scroll",{start:function(c,e){var d=a(this).data("draggable");if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){d.overflowOffset=d.scrollParent.offset()}},drag:function(c,g){var d=a(this).data("draggable"),e=d.options,f=false;if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){if(!e.axis||e.axis!="x"){if((d.overflowOffset.top+d.scrollParent[0].offsetHeight)-c.pageY<e.scrollSensitivity){d.scrollParent[0].scrollTop=f=d.scrollParent[0].scrollTop+e.scrollSpeed}else{if(c.pageY-d.overflowOffset.top<e.scrollSensitivity){d.scrollParent[0].scrollTop=f=d.scrollParent[0].scrollTop-e.scrollSpeed}}}if(!e.axis||e.axis!="y"){if((d.overflowOffset.left+d.scrollParent[0].offsetWidth)-c.pageX<e.scrollSensitivity){d.scrollParent[0].scrollLeft=f=d.scrollParent[0].scrollLeft+e.scrollSpeed}else{if(c.pageX-d.overflowOffset.left<e.scrollSensitivity){d.scrollParent[0].scrollLeft=f=d.scrollParent[0].scrollLeft-e.scrollSpeed}}}}else{if(!e.axis||e.axis!="x"){if(c.pageY-a(document).scrollTop()<e.scrollSensitivity){f=a(document).scrollTop(a(document).scrollTop()-e.scrollSpeed)}else{if(a(window).height()-(c.pageY-a(document).scrollTop())<e.scrollSensitivity){f=a(document).scrollTop(a(document).scrollTop()+e.scrollSpeed)}}}if(!e.axis||e.axis!="y"){if(c.pageX-a(document).scrollLeft()<e.scrollSensitivity){f=a(document).scrollLeft(a(document).scrollLeft()-e.scrollSpeed)}else{if(a(window).width()-(c.pageX-a(document).scrollLeft())<e.scrollSensitivity){f=a(document).scrollLeft(a(document).scrollLeft()+e.scrollSpeed)}}}}if(f!==false&&a.ui.ddmanager&&!e.dropBehaviour){a.ui.ddmanager.prepareOffsets(d,c)}}});a.ui.plugin.add("draggable","snap",{start:function(c,f){var d=a(this).data("draggable"),e=d.options;d.snapElements=[];a(e.snap.constructor!=String?(e.snap.items||":data(draggable)"):e.snap).each(function(){var h=a(this);var g=h.offset();if(this!=d.element[0]){d.snapElements.push({item:this,width:h.outerWidth(),height:h.outerHeight(),top:g.top,left:g.left})}})},drag:function(g,x){var k=a(this).data("draggable"),q=k.options;var f=q.snapTolerance;var y=x.offset.left,z=y+k.helperProportions.width,A=x.offset.top,B=A+k.helperProportions.height;for(var j=k.snapElements.length-1;j>=0;j--){var m=k.snapElements[j].left,s=m+k.snapElements[j].width,v=k.snapElements[j].top,c=v+k.snapElements[j].height;if(!((m-f<y&&y<s+f&&v-f<A&&A<c+f)||(m-f<y&&y<s+f&&v-f<B&&B<c+f)||(m-f<z&&z<s+f&&v-f<A&&A<c+f)||(m-f<z&&z<s+f&&v-f<B&&B<c+f))){if(k.snapElements[j].snapping){(k.options.snap.release&&k.options.snap.release.call(k.element,g,a.extend(k._uiHash(),{snapItem:k.snapElements[j].item})))}k.snapElements[j].snapping=false;continue}if(q.snapMode!="inner"){var w=Math.abs(v-B)<=f;var e=Math.abs(c-A)<=f;var p=Math.abs(m-z)<=f;var u=Math.abs(s-y)<=f;if(w){x.position.top=k._convertPositionTo("relative",{top:v-k.helperProportions.height,left:0}).top-k.margins.top}if(e){x.position.top=k._convertPositionTo("relative",{top:c,left:0}).top-k.margins.top}if(p){x.position.left=k._convertPositionTo("relative",{top:0,left:m-k.helperProportions.width}).left-k.margins.left}if(u){x.position.left=k._convertPositionTo("relative",{top:0,left:s}).left-k.margins.left}}var h=(w||e||p||u);if(q.snapMode!="outer"){var w=Math.abs(v-A)<=f;var e=Math.abs(c-B)<=f;var p=Math.abs(m-y)<=f;var u=Math.abs(s-z)<=f;if(w){x.position.top=k._convertPositionTo("relative",{top:v,left:0}).top-k.margins.top}if(e){x.position.top=k._convertPositionTo("relative",{top:c-k.helperProportions.height,left:0}).top-k.margins.top}if(p){x.position.left=k._convertPositionTo("relative",{top:0,left:m}).left-k.margins.left}if(u){x.position.left=k._convertPositionTo("relative",{top:0,left:s-k.helperProportions.width}).left-k.margins.left}}if(!k.snapElements[j].snapping&&(w||e||p||u||h)){(k.options.snap.snap&&k.options.snap.snap.call(k.element,g,a.extend(k._uiHash(),{snapItem:k.snapElements[j].item})))}k.snapElements[j].snapping=(w||e||p||u||h)}}});a.ui.plugin.add("draggable","stack",{start:function(c,g){var f=a(this).data("draggable").options;var d=a.makeArray(a(f.stack)).sort(function(h,i){return(parseInt(a(h).css("zIndex"),10)||0)-(parseInt(a(i).css("zIndex"),10)||0)});if(!d.length){return}var e=parseInt(d[0].style.zIndex)||0;a(d).each(function(h){this.style.zIndex=e+h});this[0].style.zIndex=e+d.length}});a.ui.plugin.add("draggable","zIndex",{start:function(c,f){var e=a(f.helper),d=a(this).data("draggable").options;if(e.css("zIndex")){d._zIndex=e.css("zIndex")}e.css("zIndex",d.zIndex)},stop:function(c,e){var d=a(this).data("draggable").options;if(d._zIndex){a(e.helper).css("zIndex",d._zIndex)}}})})(jQuery);
/*
* jQuery UI Droppable 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Droppables
*
* Depends:
*	jquery.ui.core.js
*	jquery.ui.widget.js
*	jquery.ui.mouse.js
*	jquery.ui.draggable.js
*/
(function(a,b){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var d=this.options,c=d.accept;this.isover=0;this.isout=1;this.accept=a.isFunction(c)?c:function(e){return e.is(c)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[d.scope]=a.ui.ddmanager.droppables[d.scope]||[];a.ui.ddmanager.droppables[d.scope].push(this);(d.addClasses&&this.element.addClass("ui-droppable"))},destroy:function(){var c=a.ui.ddmanager.droppables[this.options.scope];for(var d=0;d<c.length;d++){if(c[d]==this){c.splice(d,1)}}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(c,d){if(c=="accept"){this.accept=a.isFunction(d)?d:function(e){return e.is(d)}}a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(d){var c=a.ui.ddmanager.current;if(this.options.activeClass){this.element.addClass(this.options.activeClass)}(c&&this._trigger("activate",d,this.ui(c)))},_deactivate:function(d){var c=a.ui.ddmanager.current;if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}(c&&this._trigger("deactivate",d,this.ui(c)))},_over:function(d){var c=a.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0]){return}if(this.accept.call(this.element[0],(c.currentItem||c.element))){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass)}this._trigger("over",d,this.ui(c))}},_out:function(d){var c=a.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0]){return}if(this.accept.call(this.element[0],(c.currentItem||c.element))){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("out",d,this.ui(c))}},_drop:function(f,d){var e=d||a.ui.ddmanager.current;if(!e||(e.currentItem||e.element)[0]==this.element[0]){return false}var c=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var g=a.data(this,"droppable");if(g.options.greedy&&!g.options.disabled&&g.options.scope==e.options.scope&&g.accept.call(g.element[0],(e.currentItem||e.element))&&a.ui.intersect(e,a.extend(g,{offset:g.element.offset()}),g.options.tolerance)){c=true;return false}});if(c){return false}if(this.accept.call(this.element[0],(e.currentItem||e.element))){if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("drop",f,this.ui(e));return this.element}return false},ui:function(d){return{draggable:(d.currentItem||d.element),helper:d.helper,position:d.position,offset:d.positionAbs}}});a.extend(a.ui.droppable,{version:"1.8.23"});a.ui.intersect=function(d,g,m){if(!g.offset){return false}var o=(d.positionAbs||d.position.absolute).left,p=o+d.helperProportions.width,q=(d.positionAbs||d.position.absolute).top,s=q+d.helperProportions.height;var i=g.offset.left,j=i+g.proportions.width,k=g.offset.top,c=k+g.proportions.height;switch(m){case"fit":return(i<=o&&p<=j&&k<=q&&s<=c);break;case"intersect":return(i<o+(d.helperProportions.width/2)&&p-(d.helperProportions.width/2)<j&&k<q+(d.helperProportions.height/2)&&s-(d.helperProportions.height/2)<c);break;case"pointer":var e=((d.positionAbs||d.position.absolute).left+(d.clickOffset||d.offset.click).left),f=((d.positionAbs||d.position.absolute).top+(d.clickOffset||d.offset.click).top),h=a.ui.isOver(f,e,k,i,g.proportions.height,g.proportions.width);return h;break;case"touch":return((q>=k&&q<=c)||(s>=k&&s<=c)||(q<k&&s>c))&&((o>=i&&o<=j)||(p>=i&&p<=j)||(o<i&&p>j));break;default:return false;break}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(h,c){var g=a.ui.ddmanager.droppables[h.options.scope]||[];var k=c?c.type:null;var f=(h.currentItem||h.element).find(":data(droppable)").andSelf();droppablesLoop:for(var d=0;d<g.length;d++){if(g[d].options.disabled||(h&&!g[d].accept.call(g[d].element[0],(h.currentItem||h.element)))){continue}for(var e=0;e<f.length;e++){if(f[e]==g[d].element[0]){g[d].proportions.height=0;continue droppablesLoop}}g[d].visible=g[d].element.css("display")!="none";if(!g[d].visible){continue}if(k=="mousedown"){g[d]._activate.call(g[d],c)}g[d].offset=g[d].element.offset();g[d].proportions={width:g[d].element[0].offsetWidth,height:g[d].element[0].offsetHeight}}},drop:function(c,e){var d=false;a.each(a.ui.ddmanager.droppables[c.options.scope]||[],function(){if(!this.options){return}if(!this.options.disabled&&this.visible&&a.ui.intersect(c,this,this.options.tolerance)){d=this._drop.call(this,e)||d}if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],(c.currentItem||c.element))){this.isout=1;this.isover=0;this._deactivate.call(this,e)}});return d},dragStart:function(c,d){c.element.parents(":not(body,html)").bind("scroll.droppable",function(){if(!c.options.refreshPositions){a.ui.ddmanager.prepareOffsets(c,d)}})},drag:function(c,d){if(c.options.refreshPositions){a.ui.ddmanager.prepareOffsets(c,d)}a.each(a.ui.ddmanager.droppables[c.options.scope]||[],function(){if(this.options.disabled||this.greedyChild||!this.visible){return}var f=a.ui.intersect(c,this,this.options.tolerance);var e=!f&&this.isover==1?"isout":(f&&this.isover==0?"isover":null);if(!e){return}var h;if(this.options.greedy){var g=this.element.parents(":data(droppable):eq(0)");if(g.length){h=a.data(g[0],"droppable");h.greedyChild=(e=="isover"?1:0)}}if(h&&e=="isover"){h.isover=0;h.isout=1;h._out.call(h,d)}this[e]=1;this[e=="isout"?"isover":"isout"]=0;this[e=="isover"?"_over":"_out"].call(this,d);if(h&&e=="isout"){h.isout=0;h.isover=1;h._over.call(h,d)}})},dragStop:function(c,d){c.element.parents(":not(body,html)").unbind("scroll.droppable");if(!c.options.refreshPositions){a.ui.ddmanager.prepareOffsets(c,d)}}}})(jQuery);
/*
* jQuery UI Resizable 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Resizables
*
* Depends:
*	jquery.ui.core.js
*	jquery.ui.mouse.js
*	jquery.ui.widget.js
*/
(function(a,d){a.widget("ui.resizable",a.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000},_create:function(){var l=this,k=this.options;this.element.addClass("ui-resizable");a.extend(this,{_aspectRatio:!!(k.aspectRatio),aspectRatio:k.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:k.helper||k.ghost||k.animate?k.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){this.element.wrap(a('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=k.handles||(!a(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw"}var j=this.handles.split(",");this.handles={};for(var h=0;h<j.length;h++){var f=a.trim(j[h]),g="ui-resizable-"+f;var e=a('<div class="ui-resizable-handle '+g+'"></div>');e.css({zIndex:k.zIndex});if("se"==f){e.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[f]=".ui-resizable-"+f;this.element.append(e)}}this._renderAxis=function(r){r=r||this.element;for(var o in this.handles){if(this.handles[o].constructor==String){this.handles[o]=a(this.handles[o],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var m=a(this.handles[o],this.element),q=0;q=/sw|ne|nw|se|n|s/.test(o)?m.outerHeight():m.outerWidth();var p=["padding",/ne|nw|n/.test(o)?"Top":/se|sw|s/.test(o)?"Bottom":/^e$/.test(o)?"Right":"Left"].join("");r.css(p,q);this._proportionallyResize()}if(!a(this.handles[o]).length){continue}}};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!l.resizing){if(this.className){var i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}l.axis=i&&i[1]?i[1]:"se"}});if(k.autoHide){this._handles.hide();a(this.element).addClass("ui-resizable-autohide").hover(function(){if(k.disabled){return}a(this).removeClass("ui-resizable-autohide");l._handles.show()},function(){if(k.disabled){return}if(!l.resizing){a(this).addClass("ui-resizable-autohide");l._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var e=function(g){a(g).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){e(this.element);var f=this.element;f.after(this.originalElement.css({position:f.css("position"),width:f.outerWidth(),height:f.outerHeight(),top:f.css("top"),left:f.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);e(this.originalElement);return this},_mouseCapture:function(e){var f=false;for(var g in this.handles){if(a(this.handles[g])[0]==e.target){f=true}}return !this.options.disabled&&f},_mouseStart:function(i){var k=this.options,j=this.element.position(),h=this.element;this.resizing=true;this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()};if(h.is(".ui-draggable")||(/absolute/).test(h.css("position"))){h.css({position:"absolute",top:j.top,left:j.left})}this._renderProxy();var e=c(this.helper.css("left")),g=c(this.helper.css("top"));if(k.containment){e+=a(k.containment).scrollLeft()||0;g+=a(k.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:e,top:g};this.size=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()};this.originalSize=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()};this.originalPosition={left:e,top:g};this.sizeDiff={width:h.outerWidth()-h.width(),height:h.outerHeight()-h.height()};this.originalMousePosition={left:i.pageX,top:i.pageY};this.aspectRatio=(typeof k.aspectRatio=="number")?k.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var f=a(".ui-resizable-"+this.axis).css("cursor");a("body").css("cursor",f=="auto"?this.axis+"-resize":f);h.addClass("ui-resizable-resizing");this._propagate("start",i);return true},_mouseDrag:function(k){var j=this.helper,m=this.options,p={},q=this,r=this.originalMousePosition,e=this.axis;var h=(k.pageX-r.left)||0,i=(k.pageY-r.top)||0;var s=this._change[e];if(!s){return false}var g=s.apply(this,[k,h,i]),l=a.browser.msie&&a.browser.version<7,f=this.sizeDiff;this._updateVirtualBoundaries(k.shiftKey);if(this._aspectRatio||k.shiftKey){g=this._updateRatio(g,k)}g=this._respectSize(g,k);this._propagate("resize",k);j.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(g);this._trigger("resize",k,this.ui());return false},_mouseStop:function(e){this.resizing=false;var h=this.options,k=this;if(this._helper){var i=this._proportionallyResizeElements,f=i.length&&(/textarea/i).test(i[0].nodeName),l=f&&a.ui.hasScroll(i[0],"left")?0:k.sizeDiff.height,m=f?0:k.sizeDiff.width;var j={width:(k.helper.width()-m),height:(k.helper.height()-l)},g=(parseInt(k.element.css("left"),10)+(k.position.left-k.originalPosition.left))||null,p=(parseInt(k.element.css("top"),10)+(k.position.top-k.originalPosition.top))||null;if(!h.animate){this.element.css(a.extend(j,{top:p,left:g}))}k.helper.height(k.size.height);k.helper.width(k.size.width);if(this._helper&&!h.animate){this._proportionallyResize()}}a("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",e);if(this._helper){this.helper.remove()}return false},_updateVirtualBoundaries:function(f){var g=this.options,k,i,j,h,e;e={minWidth:b(g.minWidth)?g.minWidth:0,maxWidth:b(g.maxWidth)?g.maxWidth:Infinity,minHeight:b(g.minHeight)?g.minHeight:0,maxHeight:b(g.maxHeight)?g.maxHeight:Infinity};if(this._aspectRatio||f){k=e.minHeight*this.aspectRatio;j=e.minWidth/this.aspectRatio;i=e.maxHeight*this.aspectRatio;h=e.maxWidth/this.aspectRatio;if(k>e.minWidth){e.minWidth=k}if(j>e.minHeight){e.minHeight=j}if(i<e.maxWidth){e.maxWidth=i}if(h<e.maxHeight){e.maxHeight=h}}this._vBoundaries=e},_updateCache:function(e){var f=this.options;this.offset=this.helper.offset();if(b(e.left)){this.position.left=e.left}if(b(e.top)){this.position.top=e.top}if(b(e.height)){this.size.height=e.height}if(b(e.width)){this.size.width=e.width}},_updateRatio:function(h,i){var j=this.options,f=this.position,g=this.size,e=this.axis;if(b(h.height)){h.width=(h.height*this.aspectRatio)}else{if(b(h.width)){h.height=(h.width/this.aspectRatio)}}if(e=="sw"){h.left=f.left+(g.width-h.width);h.top=null}if(e=="nw"){h.top=f.top+(g.height-h.height);h.left=f.left+(g.width-h.width)}return h},_respectSize:function(h,l){var k=this.helper,t=this._vBoundaries,u=this._aspectRatio||l.shiftKey,e=this.axis,p=b(h.width)&&t.maxWidth&&(t.maxWidth<h.width),m=b(h.height)&&t.maxHeight&&(t.maxHeight<h.height),r=b(h.width)&&t.minWidth&&(t.minWidth>h.width),q=b(h.height)&&t.minHeight&&(t.minHeight>h.height);if(r){h.width=t.minWidth}if(q){h.height=t.minHeight}if(p){h.width=t.maxWidth}if(m){h.height=t.maxHeight}var j=this.originalPosition.left+this.originalSize.width,i=this.position.top+this.size.height;var g=/sw|nw|w/.test(e),f=/nw|ne|n/.test(e);if(r&&g){h.left=j-t.minWidth}if(p&&g){h.left=j-t.maxWidth}if(q&&f){h.top=i-t.minHeight}if(m&&f){h.top=i-t.maxHeight}var s=!h.width&&!h.height;if(s&&!h.left&&h.top){h.top=null}else{if(s&&!h.top&&h.left){h.left=null}}return h},_proportionallyResize:function(){var h=this.options;if(!this._proportionallyResizeElements.length){return}var f=this.helper||this.element;for(var g=0;g<this._proportionallyResizeElements.length;g++){var k=this._proportionallyResizeElements[g];if(!this.borderDif){var e=[k.css("borderTopWidth"),k.css("borderRightWidth"),k.css("borderBottomWidth"),k.css("borderLeftWidth")],j=[k.css("paddingTop"),k.css("paddingRight"),k.css("paddingBottom"),k.css("paddingLeft")];this.borderDif=a.map(e,function(p,m){var l=parseInt(p,10)||0,o=parseInt(j[m],10)||0;return l+o})}if(a.browser.msie&&!(!(a(f).is(":hidden")||a(f).parents(":hidden").length))){continue}k.css({height:(f.height()-this.borderDif[0]-this.borderDif[2])||0,width:(f.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:function(){var e=this.element,h=this.options;this.elementOffset=e.offset();if(this._helper){this.helper=this.helper||a('<div style="overflow:hidden;"></div>');var f=a.browser.msie&&a.browser.version<7,g=(f?1:0),i=(f?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+i,height:this.element.outerHeight()+i,position:"absolute",left:this.elementOffset.left-g+"px",top:this.elementOffset.top-g+"px",zIndex:++h.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(g,e,f){return{width:this.originalSize.width+e}},w:function(h,f,g){var i=this.options,e=this.originalSize,j=this.originalPosition;return{left:j.left+f,width:e.width-f}},n:function(h,f,g){var i=this.options,e=this.originalSize,j=this.originalPosition;return{top:j.top+g,height:e.height-g}},s:function(g,e,f){return{height:this.originalSize.height+f}},se:function(g,e,f){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[g,e,f]))},sw:function(g,e,f){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[g,e,f]))},ne:function(g,e,f){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[g,e,f]))},nw:function(g,e,f){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[g,e,f]))}},_propagate:function(f,e){a.ui.plugin.call(this,f,[e,this.ui()]);(f!="resize"&&this._trigger(f,e,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});a.extend(a.ui.resizable,{version:"1.8.23"});a.ui.plugin.add("resizable","alsoResize",{start:function(f,i){var h=a(this).data("resizable"),g=h.options;var e=function(j){a(j).each(function(){var k=a(this);k.data("resizable-alsoresize",{width:parseInt(k.width(),10),height:parseInt(k.height(),10),left:parseInt(k.css("left"),10),top:parseInt(k.css("top"),10)})})};if(typeof(g.alsoResize)=="object"&&!g.alsoResize.parentNode){if(g.alsoResize.length){g.alsoResize=g.alsoResize[0];e(g.alsoResize)}else{a.each(g.alsoResize,function(j){e(j)})}}else{e(g.alsoResize)}},resize:function(g,l){var k=a(this).data("resizable"),h=k.options,j=k.originalSize,i=k.originalPosition;var f={height:(k.size.height-j.height)||0,width:(k.size.width-j.width)||0,top:(k.position.top-i.top)||0,left:(k.position.left-i.left)||0},e=function(o,m){a(o).each(function(){var q=a(this),r=a(this).data("resizable-alsoresize"),s={},p=m&&m.length?m:q.parents(l.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(p,function(t,u){var v=(r[u]||0)+(f[u]||0);if(v&&v>=0){s[u]=v||null}});q.css(s)})};if(typeof(h.alsoResize)=="object"&&!h.alsoResize.nodeType){a.each(h.alsoResize,function(o,m){e(o,m)})}else{e(h.alsoResize)}},stop:function(e,f){a(this).removeData("resizable-alsoresize")}});a.ui.plugin.add("resizable","animate",{stop:function(e,q){var j=a(this).data("resizable"),h=j.options;var i=j._proportionallyResizeElements,f=i.length&&(/textarea/i).test(i[0].nodeName),k=f&&a.ui.hasScroll(i[0],"left")?0:j.sizeDiff.height,l=f?0:j.sizeDiff.width;var m={width:(j.size.width-l),height:(j.size.height-k)},g=(parseInt(j.element.css("left"),10)+(j.position.left-j.originalPosition.left))||null,p=(parseInt(j.element.css("top"),10)+(j.position.top-j.originalPosition.top))||null;j.element.animate(a.extend(m,p&&g?{top:p,left:g}:{}),{duration:h.animateDuration,easing:h.animateEasing,step:function(){var o={width:parseInt(j.element.css("width"),10),height:parseInt(j.element.css("height"),10),top:parseInt(j.element.css("top"),10),left:parseInt(j.element.css("left"),10)};if(i&&i.length){a(i[0]).css({width:o.width,height:o.height})}j._updateCache(o);j._propagate("resize",e)}})}});a.ui.plugin.add("resizable","containment",{start:function(k,t){var s=a(this).data("resizable"),m=s.options,i=s.element;var q=m.containment,e=(q instanceof a)?q.get(0):(/parent/.test(q))?i.parent().get(0):q;if(!e){return}s.containerElement=a(e);if(/document/.test(q)||q==document){s.containerOffset={left:0,top:0};s.containerPosition={left:0,top:0};s.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}}else{var j=a(e),r=[];a(["Top","Right","Left","Bottom"]).each(function(o,p){r[o]=c(j.css("padding"+p))});s.containerOffset=j.offset();s.containerPosition=j.position();s.containerSize={height:(j.innerHeight()-r[3]),width:(j.innerWidth()-r[1])};var g=s.containerOffset,f=s.containerSize.height,h=s.containerSize.width,u=(a.ui.hasScroll(e,"left")?e.scrollWidth:h),l=(a.ui.hasScroll(e)?e.scrollHeight:f);s.parentData={element:e,left:g.left,top:g.top,width:u,height:l}}},resize:function(j,t){var s=a(this).data("resizable"),p=s.options,r=s.containerSize,f=s.containerOffset,i=s.size,h=s.position,q=s._aspectRatio||j.shiftKey,g={top:0,left:0},e=s.containerElement;if(e[0]!=document&&(/static/).test(e.css("position"))){g=f}if(h.left<(s._helper?f.left:0)){s.size.width=s.size.width+(s._helper?(s.position.left-f.left):(s.position.left-g.left));if(q){s.size.height=s.size.width/s.aspectRatio}s.position.left=p.helper?f.left:0}if(h.top<(s._helper?f.top:0)){s.size.height=s.size.height+(s._helper?(s.position.top-f.top):s.position.top);if(q){s.size.width=s.size.height*s.aspectRatio}s.position.top=s._helper?f.top:0}s.offset.left=s.parentData.left+s.position.left;s.offset.top=s.parentData.top+s.position.top;var u=Math.abs((s._helper?s.offset.left-g.left:(s.offset.left-g.left))+s.sizeDiff.width),k=Math.abs((s._helper?s.offset.top-g.top:(s.offset.top-f.top))+s.sizeDiff.height);var m=s.containerElement.get(0)==s.element.parent().get(0),l=/relative|absolute/.test(s.containerElement.css("position"));if(m&&l){u-=s.parentData.left}if(u+s.size.width>=s.parentData.width){s.size.width=s.parentData.width-u;if(q){s.size.height=s.size.width/s.aspectRatio}}if(k+s.size.height>=s.parentData.height){s.size.height=s.parentData.height-k;if(q){s.size.width=s.size.height*s.aspectRatio}}},stop:function(j,r){var q=a(this).data("resizable"),p=q.options,i=q.position,f=q.containerOffset,g=q.containerPosition,e=q.containerElement;var l=a(q.helper),m=l.offset(),s=l.outerWidth()-q.sizeDiff.width,k=l.outerHeight()-q.sizeDiff.height;if(q._helper&&!p.animate&&(/relative/).test(e.css("position"))){a(this).css({left:m.left-g.left-f.left,width:s,height:k})}if(q._helper&&!p.animate&&(/static/).test(e.css("position"))){a(this).css({left:m.left-g.left-f.left,width:s,height:k})}}});a.ui.plugin.add("resizable","ghost",{start:function(f,i){var h=a(this).data("resizable"),g=h.options,e=h.size;h.ghost=h.originalElement.clone();h.ghost.css({opacity:0.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof g.ghost=="string"?g.ghost:"");h.ghost.appendTo(h.helper)},resize:function(e,h){var g=a(this).data("resizable"),f=g.options;if(g.ghost){g.ghost.css({position:"relative",height:g.size.height,width:g.size.width})}},stop:function(e,h){var g=a(this).data("resizable"),f=g.options;if(g.ghost&&g.helper){g.helper.get(0).removeChild(g.ghost.get(0))}}});a.ui.plugin.add("resizable","grid",{resize:function(g,q){var p=a(this).data("resizable"),h=p.options,f=p.size,j=p.originalSize,i=p.originalPosition,e=p.axis,m=h._aspectRatio||g.shiftKey;h.grid=typeof h.grid=="number"?[h.grid,h.grid]:h.grid;var k=Math.round((f.width-j.width)/(h.grid[0]||1))*(h.grid[0]||1),l=Math.round((f.height-j.height)/(h.grid[1]||1))*(h.grid[1]||1);if(/^(se|s|e)$/.test(e)){p.size.width=j.width+k;p.size.height=j.height+l}else{if(/^(ne)$/.test(e)){p.size.width=j.width+k;p.size.height=j.height+l;p.position.top=i.top-l}else{if(/^(sw)$/.test(e)){p.size.width=j.width+k;p.size.height=j.height+l;p.position.left=i.left-k}else{p.size.width=j.width+k;p.size.height=j.height+l;p.position.top=i.top-l;p.position.left=i.left-k}}}}});var c=function(e){return parseInt(e,10)||0};var b=function(e){return !isNaN(parseInt(e,10))}})(jQuery);
/*
* jQuery UI Selectable 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Selectables
*
* Depends:
*	jquery.ui.core.js
*	jquery.ui.mouse.js
*	jquery.ui.widget.js
*/
(function(a,b){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var d=this;this.element.addClass("ui-selectable");this.dragged=false;var c;this.refresh=function(){c=a(d.options.filter,d.element[0]);c.addClass("ui-selectee");c.each(function(){var e=a(this);var f=e.offset();a.data(this,"selectable-item",{element:this,$element:e,left:f.left,top:f.top,right:f.left+e.outerWidth(),bottom:f.top+e.outerHeight(),startselected:false,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})};this.refresh();this.selectees=c.addClass("ui-selectee");this._mouseInit();this.helper=a("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(c){var e=this;this.opos=[c.pageX,c.pageY];if(this.options.disabled){return}var d=this.options;this.selectees=a(d.filter,this.element[0]);this._trigger("start",c);a(d.appendTo).append(this.helper);this.helper.css({left:c.clientX,top:c.clientY,width:0,height:0});if(d.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var f=a.data(this,"selectable-item");f.startselected=true;if(!c.metaKey&&!c.ctrlKey){f.$element.removeClass("ui-selected");f.selected=false;f.$element.addClass("ui-unselecting");f.unselecting=true;e._trigger("unselecting",c,{unselecting:f.element})}});a(c.target).parents().andSelf().each(function(){var g=a.data(this,"selectable-item");if(g){var f=(!c.metaKey&&!c.ctrlKey)||!g.$element.hasClass("ui-selected");g.$element.removeClass(f?"ui-unselecting":"ui-selected").addClass(f?"ui-selecting":"ui-unselecting");g.unselecting=!f;g.selecting=f;g.selected=f;if(f){e._trigger("selecting",c,{selecting:g.element})}else{e._trigger("unselecting",c,{unselecting:g.element})}return false}})},_mouseDrag:function(c){var e=this;this.dragged=true;if(this.options.disabled){return}var d=this.options;var g=this.opos[0],i=this.opos[1],h=c.pageX,j=c.pageY;if(g>h){var f=h;h=g;g=f}if(i>j){var f=j;j=i;i=f}this.helper.css({left:g,top:i,width:h-g,height:j-i});this.selectees.each(function(){var l=a.data(this,"selectable-item");if(!l||l.element==e.element[0]){return}var k=false;if(d.tolerance=="touch"){k=(!(l.left>h||l.right<g||l.top>j||l.bottom<i))}else{if(d.tolerance=="fit"){k=(l.left>g&&l.right<h&&l.top>i&&l.bottom<j)}}if(k){if(l.selected){l.$element.removeClass("ui-selected");l.selected=false}if(l.unselecting){l.$element.removeClass("ui-unselecting");l.unselecting=false}if(!l.selecting){l.$element.addClass("ui-selecting");l.selecting=true;e._trigger("selecting",c,{selecting:l.element})}}else{if(l.selecting){if((c.metaKey||c.ctrlKey)&&l.startselected){l.$element.removeClass("ui-selecting");l.selecting=false;l.$element.addClass("ui-selected");l.selected=true}else{l.$element.removeClass("ui-selecting");l.selecting=false;if(l.startselected){l.$element.addClass("ui-unselecting");l.unselecting=true}e._trigger("unselecting",c,{unselecting:l.element})}}if(l.selected){if(!c.metaKey&&!c.ctrlKey&&!l.startselected){l.$element.removeClass("ui-selected");l.selected=false;l.$element.addClass("ui-unselecting");l.unselecting=true;e._trigger("unselecting",c,{unselecting:l.element})}}}});return false},_mouseStop:function(c){var e=this;this.dragged=false;var d=this.options;a(".ui-unselecting",this.element[0]).each(function(){var f=a.data(this,"selectable-item");f.$element.removeClass("ui-unselecting");f.unselecting=false;f.startselected=false;e._trigger("unselected",c,{unselected:f.element})});a(".ui-selecting",this.element[0]).each(function(){var f=a.data(this,"selectable-item");f.$element.removeClass("ui-selecting").addClass("ui-selected");f.selecting=false;f.selected=true;f.startselected=true;e._trigger("selected",c,{selected:f.element})});this._trigger("stop",c);this.helper.remove();return false}});a.extend(a.ui.selectable,{version:"1.8.23"})})(jQuery);
/*
* jQuery UI Sortable 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Sortables
*
* Depends:
*	jquery.ui.core.js
*	jquery.ui.mouse.js
*	jquery.ui.widget.js
*/
(function(a,b){a.widget("ui.sortable",a.ui.mouse,{widgetEventPrefix:"sort",ready:false,options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000},_create:function(){var c=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?c.axis==="x"||(/left|right/).test(this.items[0].item.css("float"))||(/inline|table-cell/).test(this.items[0].item.css("display")):false;this.offset=this.element.offset();this._mouseInit();this.ready=true},destroy:function(){a.Widget.prototype.destroy.call(this);this.element.removeClass("ui-sortable ui-sortable-disabled");this._mouseDestroy();for(var c=this.items.length-1;c>=0;c--){this.items[c].item.removeData(this.widgetName+"-item")}return this},_setOption:function(c,d){if(c==="disabled"){this.options[c]=d;this.widget()[d?"addClass":"removeClass"]("ui-sortable-disabled")}else{a.Widget.prototype._setOption.apply(this,arguments)}},_mouseCapture:function(d,f){var h=this;if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(d);var c=null,g=this,e=a(d.target).parents().each(function(){if(a.data(this,h.widgetName+"-item")==g){c=a(this);return false}});if(a.data(d.target,h.widgetName+"-item")==g){c=a(d.target)}if(!c){return false}if(this.options.handle&&!f){var i=false;a(this.options.handle,c).find("*").andSelf().each(function(){if(this==d.target){i=true}});if(!i){return false}}this.currentItem=c;this._removeCurrentsFromItems();return true},_mouseStart:function(c,g,e){var f=this.options,h=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(c);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");this.originalPosition=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;(f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt));this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(f.containment){this._setContainment()}if(f.cursor){if(a("body").css("cursor")){this._storedCursor=a("body").css("cursor")}a("body").css("cursor",f.cursor)}if(f.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",f.opacity)}if(f.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",f.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",c,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!e){for(var d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("activate",c,h._uiHash(this))}}if(a.ui.ddmanager){a.ui.ddmanager.current=this}if(a.ui.ddmanager&&!f.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,c)}this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(c);return true},_mouseDrag:function(c){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var h=this.options,j=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-c.pageY<h.scrollSensitivity){this.scrollParent[0].scrollTop=j=this.scrollParent[0].scrollTop+h.scrollSpeed}else{if(c.pageY-this.overflowOffset.top<h.scrollSensitivity){this.scrollParent[0].scrollTop=j=this.scrollParent[0].scrollTop-h.scrollSpeed}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-c.pageX<h.scrollSensitivity){this.scrollParent[0].scrollLeft=j=this.scrollParent[0].scrollLeft+h.scrollSpeed}else{if(c.pageX-this.overflowOffset.left<h.scrollSensitivity){this.scrollParent[0].scrollLeft=j=this.scrollParent[0].scrollLeft-h.scrollSpeed}}}else{if(c.pageY-a(document).scrollTop()<h.scrollSensitivity){j=a(document).scrollTop(a(document).scrollTop()-h.scrollSpeed)}else{if(a(window).height()-(c.pageY-a(document).scrollTop())<h.scrollSensitivity){j=a(document).scrollTop(a(document).scrollTop()+h.scrollSpeed)}}if(c.pageX-a(document).scrollLeft()<h.scrollSensitivity){j=a(document).scrollLeft(a(document).scrollLeft()-h.scrollSpeed)}else{if(a(window).width()-(c.pageX-a(document).scrollLeft())<h.scrollSensitivity){j=a(document).scrollLeft(a(document).scrollLeft()+h.scrollSpeed)}}}if(j!==false&&a.ui.ddmanager&&!h.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,c)}}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}for(var d=this.items.length-1;d>=0;d--){var f=this.items[d],g=f.item[0],e=this._intersectsWithPointer(f);if(!e){continue}if(g!=this.currentItem[0]&&this.placeholder[e==1?"next":"prev"]()[0]!=g&&!a.ui.contains(this.placeholder[0],g)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],g):true)){this.direction=e==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(f)){this._rearrange(c,f)}else{break}this._trigger("change",c,this._uiHash());break}}this._contactContainers(c);if(a.ui.ddmanager){a.ui.ddmanager.drag(this,c)}this._trigger("sort",c,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(d,e){if(!d){return}if(a.ui.ddmanager&&!this.options.dropBehaviour){a.ui.ddmanager.drop(this,d)}if(this.options.revert){var f=this;var c=f.placeholder.offset();f.reverting=true;a(this.helper).animate({left:c.left-this.offset.parent.left-f.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:c.top-this.offset.parent.top-f.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){f._clear(d)})}else{this._clear(d,e)}return false},cancel:function(){var d=this;if(this.dragging){this._mouseUp({target:null});if(this.options.helper=="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(var c=this.containers.length-1;c>=0;c--){this.containers[c]._trigger("deactivate",null,d._uiHash(this));if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",null,d._uiHash(this));this.containers[c].containerCache.over=0}}}if(this.placeholder){if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){a(this.domPosition.prev).after(this.currentItem)}else{a(this.domPosition.parent).prepend(this.currentItem)}}return this},serialize:function(d){var c=this._getItemsAsjQuery(d&&d.connected);var e=[];d=d||{};a(c).each(function(){var f=(a(d.item||this).attr(d.attribute||"id")||"").match(d.expression||(/(.+)[-=_](.+)/));if(f){e.push((d.key||f[1]+"[]")+"="+(d.key&&d.expression?f[1]:f[2]))}});if(!e.length&&d.key){e.push(d.key+"=")}return e.join("&")},toArray:function(d){var c=this._getItemsAsjQuery(d&&d.connected);var e=[];d=d||{};c.each(function(){e.push(a(d.item||this).attr(d.attribute||"id")||"")});return e},_intersectsWith:function(g){var k=this.positionAbs.left,m=k+this.helperProportions.width,o=this.positionAbs.top,p=o+this.helperProportions.height;var h=g.left,i=h+g.width,j=g.top,c=j+g.height;var e=this.offset.click.top,d=this.offset.click.left;var f=(o+e)>j&&(o+e)<c&&(k+d)>h&&(k+d)<i;if(this.options.tolerance=="pointer"||this.options.forcePointerForContainers||(this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>g[this.floating?"width":"height"])){return f}else{return(h<k+(this.helperProportions.width/2)&&m-(this.helperProportions.width/2)<i&&j<o+(this.helperProportions.height/2)&&p-(this.helperProportions.height/2)<c)}},_intersectsWithPointer:function(g){var e=(this.options.axis==="x")||a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,g.top,g.height),f=(this.options.axis==="y")||a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,g.left,g.width),d=e&&f,h=this._getDragVerticalDirection(),c=this._getDragHorizontalDirection();if(!d){return false}return this.floating?(((c&&c=="right")||h=="down")?2:1):(h&&(h=="down"?2:1))},_intersectsWithSides:function(f){var d=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,f.top+(f.height/2),f.height),e=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,f.left+(f.width/2),f.width),g=this._getDragVerticalDirection(),c=this._getDragHorizontalDirection();if(this.floating&&c){return((c=="right"&&e)||(c=="left"&&!e))}else{return g&&((g=="down"&&d)||(g=="up"&&!d))}},_getDragVerticalDirection:function(){var c=this.positionAbs.top-this.lastPositionAbs.top;return c!=0&&(c>0?"down":"up")},_getDragHorizontalDirection:function(){var c=this.positionAbs.left-this.lastPositionAbs.left;return c!=0&&(c>0?"right":"left")},refresh:function(c){this._refreshItems(c);this.refreshPositions();return this},_connectWith:function(){var c=this.options;return c.connectWith.constructor==String?[c.connectWith]:c.connectWith},_getItemsAsjQuery:function(c){var m=this;var h=[];var l=[];var d=this._connectWith();if(d&&c){for(var f=d.length-1;f>=0;f--){var e=a(d[f]);for(var k=e.length-1;k>=0;k--){var g=a.data(e[k],this.widgetName);if(g&&g!=this&&!g.options.disabled){l.push([a.isFunction(g.options.items)?g.options.items.call(g.element):a(g.options.items,g.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),g])}}}}l.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(var f=l.length-1;f>=0;f--){l[f][0].each(function(){h.push(this)})}return a(h)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");for(var c=0;c<this.items.length;c++){for(var d=0;d<e.length;d++){if(e[d]==this.items[c].item[0]){this.items.splice(c,1)}}}},_refreshItems:function(f){this.items=[];this.containers=[this];var l=this.items;var q=this;var o=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],f,{item:this.currentItem}):a(this.options.items,this.element),this]];var d=this._connectWith();if(d&&this.ready){for(var g=d.length-1;g>=0;g--){var e=a(d[g]);for(var m=e.length-1;m>=0;m--){var h=a.data(e[m],this.widgetName);if(h&&h!=this&&!h.options.disabled){o.push([a.isFunction(h.options.items)?h.options.items.call(h.element[0],f,{item:this.currentItem}):a(h.options.items,h.element),h]);this.containers.push(h)}}}}for(var g=o.length-1;g>=0;g--){var r=o[g][1];var c=o[g][0];for(var m=0,p=c.length;m<p;m++){var k=a(c[m]);k.data(this.widgetName+"-item",r);l.push({item:k,instance:r,width:0,height:0,left:0,top:0})}}},refreshPositions:function(c){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}for(var d=this.items.length-1;d>=0;d--){var e=this.items[d];if(e.instance!=this.currentContainer&&this.currentContainer&&e.item[0]!=this.currentItem[0]){continue}var g=this.options.toleranceElement?a(this.options.toleranceElement,e.item):e.item;if(!c){e.width=g.outerWidth();e.height=g.outerHeight()}var f=g.offset();e.left=f.left;e.top=f.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var d=this.containers.length-1;d>=0;d--){var f=this.containers[d].element.offset();this.containers[d].containerCache.left=f.left;this.containers[d].containerCache.top=f.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=this.containers[d].element.outerHeight()}}return this},_createPlaceholder:function(f){var e=f||this,d=e.options;if(!d.placeholder||d.placeholder.constructor==String){var c=d.placeholder;d.placeholder={element:function(){var g=a(document.createElement(e.currentItem[0].nodeName)).addClass(c||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!c){g.style.visibility="hidden"}return g},update:function(g,h){if(c&&!d.forcePlaceholderSize){return}if(!h.height()){h.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10))}if(!h.width()){h.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10))}}}}e.placeholder=a(d.placeholder.element.call(e.element,e.currentItem));e.currentItem.after(e.placeholder);d.placeholder.update(e,e.placeholder)},_contactContainers:function(f){var h=null,k=null;for(var g=this.containers.length-1;g>=0;g--){if(a.ui.contains(this.currentItem[0],this.containers[g].element[0])){continue}if(this._intersectsWith(this.containers[g].containerCache)){if(h&&a.ui.contains(this.containers[g].element[0],h.element[0])){continue}h=this.containers[g];k=g}else{if(this.containers[g].containerCache.over){this.containers[g]._trigger("out",f,this._uiHash(this));this.containers[g].containerCache.over=0}}}if(!h){return}if(this.containers.length===1){this.containers[k]._trigger("over",f,this._uiHash(this));this.containers[k].containerCache.over=1}else{if(this.currentContainer!=this.containers[k]){var e=10000;var l=null;var c=this.positionAbs[this.containers[k].floating?"left":"top"];for(var m=this.items.length-1;m>=0;m--){if(!a.ui.contains(this.containers[k].element[0],this.items[m].item[0])){continue}var d=this.containers[k].floating?this.items[m].item.offset().left:this.items[m].item.offset().top;if(Math.abs(d-c)<e){e=Math.abs(d-c);l=this.items[m];this.direction=(d-c>0)?"down":"up"}}if(!l&&!this.options.dropOnEmpty){return}this.currentContainer=this.containers[k];l?this._rearrange(f,l,null,true):this._rearrange(f,null,this.containers[k].element,true);this._trigger("change",f,this._uiHash());this.containers[k]._trigger("change",f,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[k]._trigger("over",f,this._uiHash(this));this.containers[k].containerCache.over=1}}},_createHelper:function(c){var e=this.options;var d=a.isFunction(e.helper)?a(e.helper.apply(this.element[0],[c,this.currentItem])):(e.helper=="clone"?this.currentItem.clone():this.currentItem);if(!d.parents("body").length){a(e.appendTo!="parent"?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0])}if(d[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}}if(d[0].style.width==""||e.forceHelperSize){d.width(this.currentItem.width())}if(d[0].style.height==""||e.forceHelperSize){d.height(this.currentItem.height())}return d},_adjustOffsetFromHelper:function(c){if(typeof c=="string"){c=c.split(" ")}if(a.isArray(c)){c={left:+c[0],top:+c[1]||0}}if("left" in c){this.offset.click.left=c.left+this.margins.left}if("right" in c){this.offset.click.left=this.helperProportions.width-c.right+this.margins.left}if("top" in c){this.offset.click.top=c.top+this.margins.top}if("bottom" in c){this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){c={top:0,left:0}}return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.currentItem.position();return{top:c.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment=="parent"){e.containment=this.helper[0].parentNode}if(e.containment=="document"||e.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(e.containment)){var c=a(e.containment)[0];var d=a(e.containment).offset();var f=(a(c).css("overflow")!="hidden");this.containment=[d.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,d.left+(f?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(f?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(c,g){if(!g){g=this.position}var e=c=="absolute"?1:-1;var f=this.options,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(h[0].tagName);return{top:(g.top+this.offset.relative.top*e+this.offset.parent.top*e-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(i?0:h.scrollTop()))*e)),left:(g.left+this.offset.relative.left*e+this.offset.parent.left*e-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:h.scrollLeft())*e))}},_generatePosition:function(c){var e=this.options,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(h[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var f=c.pageX;var g=c.pageY;if(this.originalPosition){if(this.containment){if(c.pageX-this.offset.click.left<this.containment[0]){f=this.containment[0]+this.offset.click.left}if(c.pageY-this.offset.click.top<this.containment[1]){g=this.containment[1]+this.offset.click.top}if(c.pageX-this.offset.click.left>this.containment[2]){f=this.containment[2]+this.offset.click.left}if(c.pageY-this.offset.click.top>this.containment[3]){g=this.containment[3]+this.offset.click.top}}if(e.grid){var j=this.originalPageY+Math.round((g-this.originalPageY)/e.grid[1])*e.grid[1];g=this.containment?(!(j-this.offset.click.top<this.containment[1]||j-this.offset.click.top>this.containment[3])?j:(!(j-this.offset.click.top<this.containment[1])?j-e.grid[1]:j+e.grid[1])):j;var d=this.originalPageX+Math.round((f-this.originalPageX)/e.grid[0])*e.grid[0];f=this.containment?(!(d-this.offset.click.left<this.containment[0]||d-this.offset.click.left>this.containment[2])?d:(!(d-this.offset.click.left<this.containment[0])?d-e.grid[0]:d+e.grid[0])):d}}return{top:(g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(i?0:h.scrollTop())))),left:(f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:h.scrollLeft())))}},_rearrange:function(e,g,c,f){c?c[0].appendChild(this.placeholder[0]):g.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction=="down"?g.item[0]:g.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var h=this,d=this.counter;window.setTimeout(function(){if(d==h.counter){h.refreshPositions(!f)}},0)},_clear:function(d,f){this.reverting=false;var c=[],g=this;if(!this._noFinalSort&&this.currentItem.parent().length){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var e in this._storedCSS){if(this._storedCSS[e]=="auto"||this._storedCSS[e]=="static"){this._storedCSS[e]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}if(this.fromOutside&&!f){c.push(function(h){this._trigger("receive",h,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!f){c.push(function(h){this._trigger("update",h,this._uiHash())})}if(!a.ui.contains(this.element[0],this.currentItem[0])){if(!f){c.push(function(h){this._trigger("remove",h,this._uiHash())})}for(var e=this.containers.length-1;e>=0;e--){if(a.ui.contains(this.containers[e].element[0],this.currentItem[0])&&!f){c.push((function(h){return function(i){h._trigger("receive",i,this._uiHash(this))}}).call(this,this.containers[e]));c.push((function(h){return function(i){h._trigger("update",i,this._uiHash(this))}}).call(this,this.containers[e]))}}}for(var e=this.containers.length-1;e>=0;e--){if(!f){c.push((function(h){return function(i){h._trigger("deactivate",i,this._uiHash(this))}}).call(this,this.containers[e]))}if(this.containers[e].containerCache.over){c.push((function(h){return function(i){h._trigger("out",i,this._uiHash(this))}}).call(this,this.containers[e]));this.containers[e].containerCache.over=0}}if(this._storedCursor){a("body").css("cursor",this._storedCursor)}if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity)}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!f){this._trigger("beforeStop",d,this._uiHash());for(var e=0;e<c.length;e++){c[e].call(this,d)}this._trigger("stop",d,this._uiHash())}this.fromOutside=false;return false}if(!f){this._trigger("beforeStop",d,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!=this.currentItem[0]){this.helper.remove()}this.helper=null;if(!f){for(var e=0;e<c.length;e++){c[e].call(this,d)}this._trigger("stop",d,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){if(a.Widget.prototype._trigger.apply(this,arguments)===false){this.cancel()}},_uiHash:function(c){var d=c||this;return{helper:d.helper,placeholder:d.placeholder||a([]),position:d.position,originalPosition:d.originalPosition,offset:d.positionAbs,item:d.currentItem,sender:c?c.element:null}}});a.extend(a.ui.sortable,{version:"1.8.23"})})(jQuery);
/*
* jQuery UI Accordion 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Accordion
*
* Depends:
*	jquery.ui.core.js
*	jquery.ui.widget.js
*/
(function(a,b){a.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var f=this,e=f.options;f.running=0;f.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");f.headers=f.element.find(e.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){if(e.disabled){return}a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){if(e.disabled){return}a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){if(e.disabled){return}a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){if(e.disabled){return}a(this).removeClass("ui-state-focus")});f.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(e.navigation){var c=f.element.find("a").filter(e.navigationFilter).eq(0);if(c.length){var d=c.closest(".ui-accordion-header");if(d.length){f.active=d}else{f.active=c.closest(".ui-accordion-content").prev()}}}f.active=f._findActive(f.active||e.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");f.active.next().addClass("ui-accordion-content-active");f._createIcons();f.resize();f.element.attr("role","tablist");f.headers.attr("role","tab").bind("keydown.accordion",function(g){return f._keydown(g)}).next().attr("role","tabpanel");f.headers.not(f.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();if(!f.active.length){f.headers.eq(0).attr("tabIndex",0)}else{f.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0})}if(!a.browser.safari){f.headers.find("a").attr("tabIndex",-1)}if(e.event){f.headers.bind(e.event.split(" ").join(".accordion ")+".accordion",function(g){f._clickHandler.call(f,g,this);g.preventDefault()})}},_createIcons:function(){var c=this.options;if(c.icons){a("<span></span>").addClass("ui-icon "+c.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(c.icons.header).toggleClass(c.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var d=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex");this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var c=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(d.autoHeight||d.fillHeight){c.css("height","")}return a.Widget.prototype.destroy.call(this)},_setOption:function(c,d){a.Widget.prototype._setOption.apply(this,arguments);if(c=="active"){this.activate(d)}if(c=="icons"){this._destroyIcons();if(d){this._createIcons()}}if(c=="disabled"){this.headers.add(this.headers.next())[d?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")}},_keydown:function(d){if(this.options.disabled||d.altKey||d.ctrlKey){return}var e=a.ui.keyCode,f=this.headers.length,c=this.headers.index(d.target),g=false;switch(d.keyCode){case e.RIGHT:case e.DOWN:g=this.headers[(c+1)%f];break;case e.LEFT:case e.UP:g=this.headers[(c-1+f)%f];break;case e.SPACE:case e.ENTER:this._clickHandler({target:d.target},d.target);d.preventDefault()}if(g){a(d.target).attr("tabIndex",-1);a(g).attr("tabIndex",0);g.focus();return false}return true},resize:function(){var e=this.options,d;if(e.fillSpace){if(a.browser.msie){var c=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height();if(a.browser.msie){this.element.parent().css("overflow",c)}this.headers.each(function(){d-=a(this).outerHeight(true)});this.headers.next().each(function(){a(this).height(Math.max(0,d-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")}else{if(e.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,a(this).height("").height())}).height(d)}}return this},activate:function(d){this.options.active=d;var c=this._findActive(d)[0];this._clickHandler({target:c},c);return this},_findActive:function(c){return c?typeof c==="number"?this.headers.filter(":eq("+c+")"):this.headers.not(this.headers.not(c)):c===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(h,j){var i=this.options;if(i.disabled){return}if(!h.target){if(!i.collapsible){return}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(i.icons.headerSelected).addClass(i.icons.header);this.active.next().addClass("ui-accordion-content-active");var k=this.active.next(),f={options:i,newHeader:a([]),oldHeader:i.active,newContent:a([]),oldContent:k},l=(this.active=a([]));this._toggle(l,k,f);return}var d=a(h.currentTarget||j),e=d[0]===this.active[0];i.active=i.collapsible&&e?false:this.headers.index(d);if(this.running||(!i.collapsible&&e)){return}var c=this.active,l=d.next(),k=this.active.next(),f={options:i,newHeader:e&&i.collapsible?a([]):d,oldHeader:this.active,newContent:e&&i.collapsible?a([]):l,oldContent:k},g=this.headers.index(this.active[0])>this.headers.index(d[0]);this.active=e?a([]):d;this._toggle(l,k,f,e,g);c.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(i.icons.headerSelected).addClass(i.icons.header);if(!e){d.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(i.icons.header).addClass(i.icons.headerSelected);d.next().addClass("ui-accordion-content-active")}return},_toggle:function(o,m,g,e,h){var l=this,k=l.options;l.toShow=o;l.toHide=m;l.data=g;var f=function(){if(!l){return}return l._completed.apply(l,arguments)};l._trigger("changestart",null,l.data);l.running=m.size()===0?o.size():m.size();if(k.animated){var d={};if(k.collapsible&&e){d={toShow:a([]),toHide:m,complete:f,down:h,autoHeight:k.autoHeight||k.fillSpace}}else{d={toShow:o,toHide:m,complete:f,down:h,autoHeight:k.autoHeight||k.fillSpace}}if(!k.proxied){k.proxied=k.animated}if(!k.proxiedDuration){k.proxiedDuration=k.duration}k.animated=a.isFunction(k.proxied)?k.proxied(d):k.proxied;k.duration=a.isFunction(k.proxiedDuration)?k.proxiedDuration(d):k.proxiedDuration;var c=a.ui.accordion.animations,i=k.duration,j=k.animated;if(j&&!c[j]&&!a.easing[j]){j="slide"}if(!c[j]){c[j]=function(p){this.slide(p,{easing:j,duration:i||700})}}c[j](d)}else{if(k.collapsible&&e){o.toggle()}else{m.hide();o.show()}f(true)}m.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur();o.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(c){this.running=c?0:--this.running;if(this.running){return}if(this.options.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""})}this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length){this.toHide.parent()[0].className=this.toHide.parent()[0].className}this._trigger("change",null,this.data)}});a.extend(a.ui.accordion,{version:"1.8.23",animations:{slide:function(f,c){f=a.extend({easing:"swing",duration:300},f,c);if(!f.toHide.size()){f.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},f);return}if(!f.toShow.size()){f.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},f);return}var h=f.toShow.css("overflow"),i=0,k={},e={},d=["height","paddingTop","paddingBottom"],g;var j=f.toShow;g=j[0].style.width;j.width(j.parent().width()-parseFloat(j.css("paddingLeft"))-parseFloat(j.css("paddingRight"))-(parseFloat(j.css("borderLeftWidth"))||0)-(parseFloat(j.css("borderRightWidth"))||0));a.each(d,function(l,o){e[o]="hide";var m=(""+a.css(f.toShow[0],o)).match(/^([\d+-.]+)(.*)$/);k[o]={value:m[1],unit:m[2]||"px"}});f.toShow.css({height:0,overflow:"hidden"}).show();f.toHide.filter(":hidden").each(f.complete).end().filter(":visible").animate(e,{step:function(l,m){if(m.prop=="height"){i=(m.end-m.start===0)?0:(m.now-m.start)/(m.end-m.start)}f.toShow[0].style[m.prop]=(i*k[m.prop].value)+k[m.prop].unit},duration:f.duration,easing:f.easing,complete:function(){if(!f.autoHeight){f.toShow.css("height","")}f.toShow.css({width:g,overflow:h});f.complete()}})},bounceslide:function(c){this.slide(c,{easing:c.down?"easeOutBounce":"swing",duration:c.down?1000:200})}}})})(jQuery);
/*
* jQuery UI Autocomplete 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Autocomplete
*
* Depends:
*	jquery.ui.core.js
*	jquery.ui.widget.js
*	jquery.ui.position.js
*/
(function(a,c){var b=0;a.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var e=this,d=this.element[0].ownerDocument,f;this.isMultiLine=this.element.is("textarea");this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(g){if(e.options.disabled||e.element.propAttr("readOnly")){return}f=false;var h=a.ui.keyCode;switch(g.keyCode){case h.PAGE_UP:e._move("previousPage",g);break;case h.PAGE_DOWN:e._move("nextPage",g);break;case h.UP:e._keyEvent("previous",g);break;case h.DOWN:e._keyEvent("next",g);break;case h.ENTER:case h.NUMPAD_ENTER:if(e.menu.active){f=true;g.preventDefault()}case h.TAB:if(!e.menu.active){return}e.menu.select(g);break;case h.ESCAPE:e.element.val(e.term);e.close(g);break;default:clearTimeout(e.searching);e.searching=setTimeout(function(){if(e.term!=e.element.val()){e.selectedItem=null;e.search(null,g)}},e.options.delay);break}}).bind("keypress.autocomplete",function(g){if(f){f=false;g.preventDefault()}}).bind("focus.autocomplete",function(){if(e.options.disabled){return}e.selectedItem=null;e.previous=e.element.val()}).bind("blur.autocomplete",function(g){if(e.options.disabled){return}clearTimeout(e.searching);e.closing=setTimeout(function(){e.close(g);e._change(g)},150)});this._initSource();this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||"body",d)[0]).mousedown(function(g){var h=e.menu.element[0];if(!a(g.target).closest(".ui-menu-item").length){setTimeout(function(){a(document).one("mousedown",function(i){if(i.target!==e.element[0]&&i.target!==h&&!a.ui.contains(h,i.target)){e.close()}})},1)}setTimeout(function(){clearTimeout(e.closing)},13)}).menu({focus:function(g,i){var h=i.item.data("item.autocomplete");if(false!==e._trigger("focus",g,{item:h})){if(/^key/.test(g.originalEvent.type)){e.element.val(h.value)}}},selected:function(g,j){var h=j.item.data("item.autocomplete"),i=e.previous;if(e.element[0]!==d.activeElement){e.element.focus();e.previous=i;setTimeout(function(){e.previous=i;e.selectedItem=h},1)}if(false!==e._trigger("select",g,{item:h})){e.element.val(h.value)}e.term=e.element.val();e.close(g);e.selectedItem=h},blur:function(g,h){if(e.menu.element.is(":visible")&&(e.element.val()!==e.term)){e.element.val(e.term)}}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");if(a.fn.bgiframe){this.menu.element.bgiframe()}e.beforeunloadHandler=function(){e.element.removeAttr("autocomplete")};a(window).bind("beforeunload",e.beforeunloadHandler)},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();a(window).unbind("beforeunload",this.beforeunloadHandler);a.Widget.prototype.destroy.call(this)},_setOption:function(d,e){a.Widget.prototype._setOption.apply(this,arguments);if(d==="source"){this._initSource()}if(d==="appendTo"){this.menu.element.appendTo(a(e||"body",this.element[0].ownerDocument)[0])}if(d==="disabled"&&e&&this.xhr){this.xhr.abort()}},_initSource:function(){var e=this,d,f;if(a.isArray(this.options.source)){d=this.options.source;this.source=function(g,h){h(a.ui.autocomplete.filter(d,g.term))}}else{if(typeof this.options.source==="string"){f=this.options.source;this.source=function(g,h){if(e.xhr){e.xhr.abort()}e.xhr=a.ajax({url:f,data:g,dataType:"json",success:function(i,j){h(i)},error:function(){h([])}})}}else{this.source=this.options.source}}},search:function(e,d){e=e!=null?e:this.element.val();this.term=this.element.val();if(e.length<this.options.minLength){return this.close(d)}clearTimeout(this.closing);if(this._trigger("search",d)===false){return}return this._search(e)},_search:function(d){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:d},this._response())},_response:function(){var e=this,d=++b;return function(f){if(d===b){e.__response(f)}e.pending--;if(!e.pending){e.element.removeClass("ui-autocomplete-loading")}}},__response:function(d){if(!this.options.disabled&&d&&d.length){d=this._normalize(d);this._suggest(d);this._trigger("open")}else{this.close()}},close:function(d){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",d)}},_change:function(d){if(this.previous!==this.element.val()){this._trigger("change",d,{item:this.selectedItem})}},_normalize:function(d){if(d.length&&d[0].label&&d[0].value){return d}return a.map(d,function(e){if(typeof e==="string"){return{label:e,value:e}}return a.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(d){var e=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(e,d);this.menu.deactivate();this.menu.refresh();e.show();this._resizeMenu();e.position(a.extend({of:this.element},this.options.position));if(this.options.autoFocus){this.menu.next(new a.Event("mouseover"))}},_resizeMenu:function(){var d=this.menu.element;d.outerWidth(Math.max(d.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(f,d){var e=this;a.each(d,function(g,h){e._renderItem(f,h)})},_renderItem:function(e,d){return a("<li></li>").data("item.autocomplete",d).append(a("<a></a>").text(d.label)).appendTo(e)},_move:function(d,e){if(!this.menu.element.is(":visible")){this.search(null,e);return}if(this.menu.first()&&/^previous/.test(d)||this.menu.last()&&/^next/.test(d)){this.element.val(this.term);this.menu.deactivate();return}this.menu[d](e)},widget:function(){return this.menu.element},_keyEvent:function(e,d){if(!this.isMultiLine||this.menu.element.is(":visible")){this._move(e,d);d.preventDefault()}}});a.extend(a.ui.autocomplete,{escapeRegex:function(d){return d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(d,f){var e=new RegExp(a.ui.autocomplete.escapeRegex(f),"i");return a.grep(d,function(g){return e.test(g.label||g.value||g)})}})}(jQuery));(function(a){a.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(c){if(!a(c.target).closest(".ui-menu-item a").length){return}c.preventDefault();b.select(c)});this.refresh()},refresh:function(){var c=this;var b=this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem");b.children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(d){c.activate(d,a(this).parent())}).mouseleave(function(){c.deactivate()})},activate:function(c,d){this.deactivate();if(this.hasScroll()){var e=d.offset().top-this.element.offset().top,f=this.element.scrollTop(),b=this.element.height();if(e<0){this.element.scrollTop(f+e)}else{if(e>=b){this.element.scrollTop(f+e-b+d.height())}}}this.active=d.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",c,{item:d})},deactivate:function(){if(!this.active){return}this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null},next:function(b){this.move("next",".ui-menu-item:first",b)},previous:function(b){this.move("prev",".ui-menu-item:last",b)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(b,c,d){if(!this.active){this.activate(d,this.element.children(c));return}var e=this.active[b+"All"](".ui-menu-item").eq(0);if(e.length){this.activate(d,e)}else{this.activate(d,this.element.children(c))}},nextPage:function(c){if(this.hasScroll()){if(!this.active||this.last()){this.activate(c,this.element.children(".ui-menu-item:first"));return}var b=this.active.offset().top,d=this.element.height(),e=this.element.children(".ui-menu-item").filter(function(){var f=a(this).offset().top-b-d+a(this).height();return f<10&&f>-10});if(!e.length){e=this.element.children(".ui-menu-item:last")}this.activate(c,e)}else{this.activate(c,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))}},previousPage:function(c){if(this.hasScroll()){if(!this.active||this.first()){this.activate(c,this.element.children(".ui-menu-item:last"));return}var b=this.active.offset().top,d=this.element.height(),e=this.element.children(".ui-menu-item").filter(function(){var f=a(this).offset().top-b+d-a(this).height();return f<10&&f>-10});if(!e.length){e=this.element.children(".ui-menu-item:first")}this.activate(c,e)}else{this.activate(c,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))}},hasScroll:function(){return this.element.height()<this.element[a.fn.prop?"prop":"attr"]("scrollHeight")},select:function(b){this._trigger("selected",b,{item:this.active})}})}(jQuery));
/*
* jQuery UI Button 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Button
*
* Depends:
*	jquery.ui.core.js
*	jquery.ui.widget.js
*/
(function(a,k){var e,g,h,c,b="ui-button ui-widget ui-state-default ui-corner-all",i="ui-state-hover ui-state-active ",j="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",d=function(){var l=a(this).find(":ui-button");setTimeout(function(){l.button("refresh")},1)},f=function(o){var m=o.name,l=o.form,p=a([]);if(m){if(l){p=a(l).find("[name='"+m+"']")}else{p=a("[name='"+m+"']",o.ownerDocument).filter(function(){return !this.form})}}return p};a.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",d);if(typeof this.options.disabled!=="boolean"){this.options.disabled=!!this.element.propAttr("disabled")}else{this.element.propAttr("disabled",this.options.disabled)}this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var p=this,o=this.options,q=this.type==="checkbox"||this.type==="radio",m="ui-state-hover"+(!q?" ui-state-active":""),l="ui-state-focus";if(o.label===null){o.label=this.buttonElement.html()}this.buttonElement.addClass(b).attr("role","button").bind("mouseenter.button",function(){if(o.disabled){return}a(this).addClass("ui-state-hover");if(this===e){a(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){if(o.disabled){return}a(this).removeClass(m)}).bind("click.button",function(r){if(o.disabled){r.preventDefault();r.stopImmediatePropagation()}});this.element.bind("focus.button",function(){p.buttonElement.addClass(l)}).bind("blur.button",function(){p.buttonElement.removeClass(l)});if(q){this.element.bind("change.button",function(){if(c){return}p.refresh()});this.buttonElement.bind("mousedown.button",function(r){if(o.disabled){return}c=false;g=r.pageX;h=r.pageY}).bind("mouseup.button",function(r){if(o.disabled){return}if(g!==r.pageX||h!==r.pageY){c=true}})}if(this.type==="checkbox"){this.buttonElement.bind("click.button",function(){if(o.disabled||c){return false}a(this).toggleClass("ui-state-active");p.buttonElement.attr("aria-pressed",p.element[0].checked)})}else{if(this.type==="radio"){this.buttonElement.bind("click.button",function(){if(o.disabled||c){return false}a(this).addClass("ui-state-active");p.buttonElement.attr("aria-pressed","true");var r=p.element[0];f(r).not(r).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")})}else{this.buttonElement.bind("mousedown.button",function(){if(o.disabled){return false}a(this).addClass("ui-state-active");e=this;a(document).one("mouseup",function(){e=null})}).bind("mouseup.button",function(){if(o.disabled){return false}a(this).removeClass("ui-state-active")}).bind("keydown.button",function(r){if(o.disabled){return false}if(r.keyCode==a.ui.keyCode.SPACE||r.keyCode==a.ui.keyCode.ENTER){a(this).addClass("ui-state-active")}}).bind("keyup.button",function(){a(this).removeClass("ui-state-active")});if(this.buttonElement.is("a")){this.buttonElement.keyup(function(r){if(r.keyCode===a.ui.keyCode.SPACE){a(this).click()}})}}}this._setOption("disabled",o.disabled);this._resetButton()},_determineButtonType:function(){if(this.element.is(":checkbox")){this.type="checkbox"}else{if(this.element.is(":radio")){this.type="radio"}else{if(this.element.is("input")){this.type="input"}else{this.type="button"}}}if(this.type==="checkbox"||this.type==="radio"){var l=this.element.parents().filter(":last"),o="label[for='"+this.element.attr("id")+"']";this.buttonElement=l.find(o);if(!this.buttonElement.length){l=l.length?l.siblings():this.element.siblings();this.buttonElement=l.filter(o);if(!this.buttonElement.length){this.buttonElement=l.find(o)}}this.element.addClass("ui-helper-hidden-accessible");var m=this.element.is(":checked");if(m){this.buttonElement.addClass("ui-state-active")}this.buttonElement.attr("aria-pressed",m)}else{this.buttonElement=this.element}},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass(b+" "+i+" "+j).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());if(!this.hasTitle){this.buttonElement.removeAttr("title")}a.Widget.prototype.destroy.call(this)},_setOption:function(l,m){a.Widget.prototype._setOption.apply(this,arguments);if(l==="disabled"){if(m){this.element.propAttr("disabled",true)}else{this.element.propAttr("disabled",false)}return}this._resetButton()},refresh:function(){var l=this.element.is(":disabled");if(l!==this.options.disabled){this._setOption("disabled",l)}if(this.type==="radio"){f(this.element[0]).each(function(){if(a(this).is(":checked")){a(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true")}else{a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}})}else{if(this.type==="checkbox"){if(this.element.is(":checked")){this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true")}else{this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false")}}}},_resetButton:function(){if(this.type==="input"){if(this.options.label){this.element.val(this.options.label)}return}var m=this.buttonElement.removeClass(j),o=a("<span></span>",this.element[0].ownerDocument).addClass("ui-button-text").html(this.options.label).appendTo(m.empty()).text(),p=this.options.icons,q=p.primary&&p.secondary,l=[];if(p.primary||p.secondary){if(this.options.text){l.push("ui-button-text-icon"+(q?"s":(p.primary?"-primary":"-secondary")))}if(p.primary){m.prepend("<span class='ui-button-icon-primary ui-icon "+p.primary+"'></span>")}if(p.secondary){m.append("<span class='ui-button-icon-secondary ui-icon "+p.secondary+"'></span>")}if(!this.options.text){l.push(q?"ui-button-icons-only":"ui-button-icon-only");if(!this.hasTitle){m.attr("title",o)}}}else{l.push("ui-button-text-only")}m.addClass(l.join(" "))}});a.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(l,m){if(l==="disabled"){this.buttons.button("option",l,m)}a.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var l=this.element.css("direction")==="rtl";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(l?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(l?"ui-corner-left":"ui-corner-right").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");a.Widget.prototype.destroy.call(this)}})}(jQuery));
/*
* jQuery UI Dialog 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Dialog
*
* Depends:
*	jquery.ui.core.js
*	jquery.ui.widget.js
*  jquery.ui.button.js
*	jquery.ui.draggable.js
*	jquery.ui.mouse.js
*	jquery.ui.position.js
*	jquery.ui.resizable.js
*/
(function(a,e){var d="ui-dialog ui-widget ui-widget-content ui-corner-all ",c={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},b={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true};a.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",collision:"fit",using:function(f){var g=a(this).css(f).offset().top;if(g<0){a(this).css("top",f.top-g)}}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string"){this.originalTitle=""}this.options.title=this.options.title||this.originalTitle;var g=this,f=g.options,h=f.title||"&#160;",i=a.ui.dialog.getTitleId(g.element),j=(g.uiDialog=a("<div></div>")).appendTo(document.body).hide().addClass(d+f.dialogClass).css({zIndex:f.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(q){if(f.closeOnEscape&&!q.isDefaultPrevented()&&q.keyCode&&q.keyCode===a.ui.keyCode.ESCAPE){g.close(q);q.preventDefault()}}).attr({role:"dialog","aria-labelledby":i}).mousedown(function(q){g.moveToTop(false,q)}),k=g.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(j),m=(g.uiDialogTitlebar=a("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(j),o=a('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){o.addClass("ui-state-hover")},function(){o.removeClass("ui-state-hover")}).focus(function(){o.addClass("ui-state-focus")}).blur(function(){o.removeClass("ui-state-focus")}).click(function(q){g.close(q);return false}).appendTo(m),p=(g.uiDialogTitlebarCloseText=a("<span></span>")).addClass("ui-icon ui-icon-closethick").text(f.closeText).appendTo(o),l=a("<span></span>").addClass("ui-dialog-title").attr("id",i).html(h).prependTo(m);if(a.isFunction(f.beforeclose)&&!a.isFunction(f.beforeClose)){f.beforeClose=f.beforeclose}m.find("*").add(m).disableSelection();if(f.draggable&&a.fn.draggable){g._makeDraggable()}if(f.resizable&&a.fn.resizable){g._makeResizable()}g._createButtons(f.buttons);g._isOpen=false;if(a.fn.bgiframe){j.bgiframe()}},_init:function(){if(this.options.autoOpen){this.open()}},destroy:function(){var f=this;if(f.overlay){f.overlay.destroy()}f.uiDialog.hide();f.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");f.uiDialog.remove();if(f.originalTitle){f.element.attr("title",f.originalTitle)}return f},widget:function(){return this.uiDialog},close:function(f){var h=this,g,i;if(false===h._trigger("beforeClose",f)){return}if(h.overlay){h.overlay.destroy()}h.uiDialog.unbind("keypress.ui-dialog");h._isOpen=false;if(h.options.hide){h.uiDialog.hide(h.options.hide,function(){h._trigger("close",f)})}else{h.uiDialog.hide();h._trigger("close",f)}a.ui.dialog.overlay.resize();if(h.options.modal){g=0;a(".ui-dialog").each(function(){if(this!==h.uiDialog[0]){i=a(this).css("z-index");if(!isNaN(i)){g=Math.max(g,i)}}});a.ui.dialog.maxZ=g}return h},isOpen:function(){return this._isOpen},moveToTop:function(g,f){var j=this,h=j.options,i;if((h.modal&&!g)||(!h.stack&&!h.modal)){return j._trigger("focus",f)}if(h.zIndex>a.ui.dialog.maxZ){a.ui.dialog.maxZ=h.zIndex}if(j.overlay){a.ui.dialog.maxZ+=1;j.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ)}i={scrollTop:j.element.scrollTop(),scrollLeft:j.element.scrollLeft()};a.ui.dialog.maxZ+=1;j.uiDialog.css("z-index",a.ui.dialog.maxZ);j.element.attr(i);j._trigger("focus",f);return j},open:function(){if(this._isOpen){return}var g=this,f=g.options,h=g.uiDialog;g.overlay=f.modal?new a.ui.dialog.overlay(g):null;g._size();g._position(f.position);h.show(f.show);g.moveToTop(true);if(f.modal){h.bind("keydown.ui-dialog",function(i){if(i.keyCode!==a.ui.keyCode.TAB){return}var l=a(":tabbable",this),j=l.filter(":first"),k=l.filter(":last");if(i.target===k[0]&&!i.shiftKey){j.focus(1);return false}else{if(i.target===j[0]&&i.shiftKey){k.focus(1);return false}}})}a(g.element.find(":tabbable").get().concat(h.find(".ui-dialog-buttonpane :tabbable").get().concat(h.get()))).eq(0).focus();g._isOpen=true;g._trigger("open");return g},_createButtons:function(f){var h=this,g=false,j=a("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),i=a("<div></div>").addClass("ui-dialog-buttonset").appendTo(j);h.uiDialog.find(".ui-dialog-buttonpane").remove();if(typeof f==="object"&&f!==null){a.each(f,function(){return !(g=true)})}if(g){a.each(f,function(l,m){m=a.isFunction(m)?{click:m,text:l}:m;var k=a('<button type="button"></button>').click(function(){m.click.apply(h.element[0],arguments)}).appendTo(i);a.each(m,function(o,p){if(o==="click"){return}if(o in k){k[o](p)}else{k.attr(o,p)}});if(a.fn.button){k.button()}});j.appendTo(h.uiDialog)}},_makeDraggable:function(){var j=this,i=j.options,f=a(document),h;function g(k){return{position:k.position,offset:k.offset}}j.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(k,l){h=i.height==="auto"?"auto":a(this).height();a(this).height(a(this).height()).addClass("ui-dialog-dragging");j._trigger("dragStart",k,g(l))},drag:function(k,l){j._trigger("drag",k,g(l))},stop:function(k,l){i.position=[l.position.left-f.scrollLeft(),l.position.top-f.scrollTop()];a(this).removeClass("ui-dialog-dragging").height(h);j._trigger("dragStop",k,g(l));a.ui.dialog.overlay.resize()}})},_makeResizable:function(g){g=(g===e?this.options.resizable:g);var k=this,h=k.options,i=k.uiDialog.css("position"),j=(typeof g==="string"?g:"n,e,s,w,se,sw,ne,nw");function f(l){return{originalPosition:l.originalPosition,originalSize:l.originalSize,position:l.position,size:l.size}}k.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:k.element,maxWidth:h.maxWidth,maxHeight:h.maxHeight,minWidth:h.minWidth,minHeight:k._minHeight(),handles:j,start:function(l,m){a(this).addClass("ui-dialog-resizing");k._trigger("resizeStart",l,f(m))},resize:function(l,m){k._trigger("resize",l,f(m))},stop:function(l,m){a(this).removeClass("ui-dialog-resizing");h.height=a(this).height();h.width=a(this).width();k._trigger("resizeStop",l,f(m));a.ui.dialog.overlay.resize()}}).css("position",i).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var f=this.options;if(f.height==="auto"){return f.minHeight}else{return Math.min(f.minHeight,f.height)}},_position:function(i){var g=[],h=[0,0],f;if(i){if(typeof i==="string"||(typeof i==="object"&&"0" in i)){g=i.split?i.split(" "):[i[0],i[1]];if(g.length===1){g[1]=g[0]}a.each(["left","top"],function(j,k){if(+g[j]===g[j]){h[j]=g[j];g[j]=k}});i={my:g.join(" "),at:g.join(" "),offset:h.join(" ")}}i=a.extend({},a.ui.dialog.prototype.options.position,i)}else{i=a.ui.dialog.prototype.options.position}f=this.uiDialog.is(":visible");if(!f){this.uiDialog.show()}this.uiDialog.css({top:0,left:0}).position(a.extend({of:window},i));if(!f){this.uiDialog.hide()}},_setOptions:function(f){var i=this,g={},h=false;a.each(f,function(j,k){i._setOption(j,k);if(j in c){h=true}if(j in b){g[j]=k}});if(h){this._size()}if(this.uiDialog.is(":data(resizable)")){this.uiDialog.resizable("option",g)}},_setOption:function(h,k){var i=this,j=i.uiDialog;switch(h){case"beforeclose":h="beforeClose";break;case"buttons":i._createButtons(k);break;case"closeText":i.uiDialogTitlebarCloseText.text(""+k);break;case"dialogClass":j.removeClass(i.options.dialogClass).addClass(d+k);break;case"disabled":if(k){j.addClass("ui-dialog-disabled")}else{j.removeClass("ui-dialog-disabled")}break;case"draggable":var f=j.is(":data(draggable)");if(f&&!k){j.draggable("destroy")}if(!f&&k){i._makeDraggable()}break;case"position":i._position(k);break;case"resizable":var g=j.is(":data(resizable)");if(g&&!k){j.resizable("destroy")}if(g&&typeof k==="string"){j.resizable("option","handles",k)}if(!g&&k!==false){i._makeResizable(k)}break;case"title":a(".ui-dialog-title",i.uiDialogTitlebar).html(""+(k||"&#160;"));break}a.Widget.prototype._setOption.apply(i,arguments)},_size:function(){var j=this.options,i,h,g=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(j.minWidth>j.width){j.width=j.minWidth}i=this.uiDialog.css({height:"auto",width:j.width}).height();h=Math.max(0,j.minHeight-i);if(j.height==="auto"){if(a.support.minHeight){this.element.css({minHeight:h,height:"auto"})}else{this.uiDialog.show();var f=this.element.css("height","auto").height();if(!g){this.uiDialog.hide()}this.element.height(Math.max(f,h))}}else{this.element.height(Math.max(j.height-i,0))}if(this.uiDialog.is(":data(resizable)")){this.uiDialog.resizable("option","minHeight",this._minHeight())}}});a.extend(a.ui.dialog,{version:"1.8.23",uuid:0,maxZ:0,getTitleId:function(f){var g=f.attr("id");if(!g){this.uuid+=1;g=this.uuid}return"ui-dialog-title-"+g},overlay:function(f){this.$el=a.ui.dialog.overlay.create(f)}});a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(f){return f+".dialog-overlay"}).join(" "),create:function(g){if(this.instances.length===0){setTimeout(function(){if(a.ui.dialog.overlay.instances.length){a(document).bind(a.ui.dialog.overlay.events,function(h){if(a(h.target).zIndex()<a.ui.dialog.overlay.maxZ){return false}})}},1);a(document).bind("keydown.dialog-overlay",function(h){if(g.options.closeOnEscape&&!h.isDefaultPrevented()&&h.keyCode&&h.keyCode===a.ui.keyCode.ESCAPE){g.close(h);h.preventDefault()}});a(window).bind("resize.dialog-overlay",a.ui.dialog.overlay.resize)}var f=(this.oldInstances.pop()||a("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});if(a.fn.bgiframe){f.bgiframe()}this.instances.push(f);return f},destroy:function(f){var g=a.inArray(f,this.instances);if(g!=-1){this.oldInstances.push(this.instances.splice(g,1)[0])}if(this.instances.length===0){a([document,window]).unbind(".dialog-overlay")}f.remove();var h=0;a.each(this.instances,function(){h=Math.max(h,this.css("z-index"))});this.maxZ=h},height:function(){var g,f;if(a.browser.msie&&a.browser.version<7){g=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);f=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(g<f){return a(window).height()+"px"}else{return g+"px"}}else{return a(document).height()+"px"}},width:function(){var g,f;if(a.browser.msie){g=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);f=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(g<f){return a(window).width()+"px"}else{return g+"px"}}else{return a(document).width()+"px"}},resize:function(){var f=a([]);a.each(a.ui.dialog.overlay.instances,function(){f=f.add(this)});f.css({width:0,height:0}).css({width:a.ui.dialog.overlay.width(),height:a.ui.dialog.overlay.height()})}});a.extend(a.ui.dialog.overlay.prototype,{destroy:function(){a.ui.dialog.overlay.destroy(this.$el)}})}(jQuery));
/*
* jQuery UI Slider 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Slider
*
* Depends:
*	jquery.ui.core.js
*	jquery.ui.mouse.js
*	jquery.ui.widget.js
*/
(function(a,c){var b=5;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 k=this,j=this.options,d=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),e="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",f=(j.values&&j.values.length)||1,g=[];this._keySliding=false;this._mouseSliding=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"+(j.disabled?" ui-slider-disabled ui-disabled":""));this.range=a([]);if(j.range){if(j.range===true){if(!j.values){j.values=[this._valueMin(),this._valueMin()]}if(j.values.length&&j.values.length!==2){j.values=[j.values[0],j.values[0]]}}this.range=a("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+((j.range==="min"||j.range==="max")?" ui-slider-range-"+j.range:""))}for(var h=d.length;h<f;h+=1){g.push(e)}this.handles=d.add(a(g.join("")).appendTo(k.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(i){i.preventDefault()}).hover(function(){if(!j.disabled){a(this).addClass("ui-state-hover")}},function(){a(this).removeClass("ui-state-hover")}).focus(function(){if(!j.disabled){a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");a(this).addClass("ui-state-focus")}else{a(this).blur()}}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(l){a(this).data("index.ui-slider-handle",l)});this.handles.keydown(function(m){var o=a(this).data("index.ui-slider-handle"),i,l,p,q;if(k.options.disabled){return}switch(m.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:m.preventDefault();if(!k._keySliding){k._keySliding=true;a(this).addClass("ui-state-active");i=k._start(m,o);if(i===false){return}}break}q=k.options.step;if(k.options.values&&k.options.values.length){l=p=k.values(o)}else{l=p=k.value()}switch(m.keyCode){case a.ui.keyCode.HOME:p=k._valueMin();break;case a.ui.keyCode.END:p=k._valueMax();break;case a.ui.keyCode.PAGE_UP:p=k._trimAlignValue(l+((k._valueMax()-k._valueMin())/b));break;case a.ui.keyCode.PAGE_DOWN:p=k._trimAlignValue(l-((k._valueMax()-k._valueMin())/b));break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(l===k._valueMax()){return}p=k._trimAlignValue(l+q);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(l===k._valueMin()){return}p=k._trimAlignValue(l-q);break}k._slide(m,o,p)}).keyup(function(i){var l=a(this).data("index.ui-slider-handle");if(k._keySliding){k._keySliding=false;k._stop(i,l);k._change(i,l);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(g){var k=this.options,m,j,f,e,p,h,d,l,i;if(k.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();m={x:g.pageX,y:g.pageY};j=this._normValueFromMouse(m);f=this._valueMax()-this._valueMin()+1;p=this;this.handles.each(function(o){var q=Math.abs(j-p.values(o));if(f>q){f=q;e=a(this);h=o}});if(k.range===true&&this.values(1)===k.min){h+=1;e=a(this.handles[h])}d=this._start(g,h);if(d===false){return false}this._mouseSliding=true;p._handleIndex=h;e.addClass("ui-state-active").focus();l=e.offset();i=!a(g.target).parents().andSelf().is(".ui-slider-handle");this._clickOffset=i?{left:0,top:0}:{left:g.pageX-l.left-(e.width()/2),top:g.pageY-l.top-(e.height()/2)-(parseInt(e.css("borderTopWidth"),10)||0)-(parseInt(e.css("borderBottomWidth"),10)||0)+(parseInt(e.css("marginTop"),10)||0)};if(!this.handles.hasClass("ui-state-hover")){this._slide(g,h,j)}this._animateOff=true;return true},_mouseStart:function(d){return true},_mouseDrag:function(d){var f={x:d.pageX,y:d.pageY},e=this._normValueFromMouse(f);this._slide(d,this._handleIndex,e);return false},_mouseStop:function(d){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(d,this._handleIndex);this._change(d,this._handleIndex);this._handleIndex=null;this._clickOffset=null;this._animateOff=false;return false},_detectOrientation:function(){this.orientation=(this.options.orientation==="vertical")?"vertical":"horizontal"},_normValueFromMouse:function(g){var f,e,d,i,h;if(this.orientation==="horizontal"){f=this.elementSize.width;e=g.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{f=this.elementSize.height;e=g.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}d=(e/f);if(d>1){d=1}if(d<0){d=0}if(this.orientation==="vertical"){d=1-d}i=this._valueMax()-this._valueMin();h=this._valueMin()+d*i;return this._trimAlignValue(h)},_start:function(d,e){var f={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(e);f.values=this.values()}return this._trigger("start",d,f)},_slide:function(e,f,g){var i,h,d;if(this.options.values&&this.options.values.length){i=this.values(f?0:1);if((this.options.values.length===2&&this.options.range===true)&&((f===0&&g>i)||(f===1&&g<i))){g=i}if(g!==this.values(f)){h=this.values();h[f]=g;d=this._trigger("slide",e,{handle:this.handles[f],value:g,values:h});i=this.values(f?0:1);if(d!==false){this.values(f,g,true)}}}else{if(g!==this.value()){d=this._trigger("slide",e,{handle:this.handles[f],value:g});if(d!==false){this.value(g)}}}},_stop:function(d,e){var f={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(e);f.values=this.values()}this._trigger("stop",d,f)},_change:function(d,e){if(!this._keySliding&&!this._mouseSliding){var f={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(e);f.values=this.values()}this._trigger("change",d,f)}},value:function(d){if(arguments.length){this.options.value=this._trimAlignValue(d);this._refreshValue();this._change(null,0);return}return this._value()},values:function(e,f){var h,g,d;if(arguments.length>1){this.options.values[e]=this._trimAlignValue(f);this._refreshValue();this._change(null,e);return}if(arguments.length){if(a.isArray(arguments[0])){h=this.options.values;g=arguments[0];for(d=0;d<h.length;d+=1){h[d]=this._trimAlignValue(g[d]);this._change(null,d)}this._refreshValue()}else{if(this.options.values&&this.options.values.length){return this._values(e)}else{return this.value()}}}else{return this._values()}},_setOption:function(e,g){var d,f=0;if(a.isArray(this.options.values)){f=this.options.values.length}a.Widget.prototype._setOption.apply(this,arguments);switch(e){case"disabled":if(g){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.propAttr("disabled",true);this.element.addClass("ui-disabled")}else{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;break}},_value:function(){var d=this.options.value;d=this._trimAlignValue(d);return d},_values:function(e){var f,g,d;if(arguments.length){f=this.options.values[e];f=this._trimAlignValue(f);return f}else{g=this.options.values.slice();for(d=0;d<g.length;d+=1){g[d]=this._trimAlignValue(g[d])}return g}},_trimAlignValue:function(f){if(f<=this._valueMin()){return this._valueMin()}if(f>=this._valueMax()){return this._valueMax()}var e=(this.options.step>0)?this.options.step:1,g=(f-this._valueMin())%e,d=f-g;if(Math.abs(g)*2>=e){d+=(g>0)?e:(-e)}return parseFloat(d.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var h=this.options.range,g=this.options,i=this,e=(!this._animateOff)?g.animate:false,j,d={},f,k,m,l;if(this.options.values&&this.options.values.length){this.handles.each(function(o,p){j=(i.values(o)-i._valueMin())/(i._valueMax()-i._valueMin())*100;d[i.orientation==="horizontal"?"left":"bottom"]=j+"%";a(this).stop(1,1)[e?"animate":"css"](d,g.animate);if(i.options.range===true){if(i.orientation==="horizontal"){if(o===0){i.range.stop(1,1)[e?"animate":"css"]({left:j+"%"},g.animate)}if(o===1){i.range[e?"animate":"css"]({width:(j-f)+"%"},{queue:false,duration:g.animate})}}else{if(o===0){i.range.stop(1,1)[e?"animate":"css"]({bottom:(j)+"%"},g.animate)}if(o===1){i.range[e?"animate":"css"]({height:(j-f)+"%"},{queue:false,duration:g.animate})}}}f=j})}else{k=this.value();m=this._valueMin();l=this._valueMax();j=(l!==m)?(k-m)/(l-m)*100:0;d[i.orientation==="horizontal"?"left":"bottom"]=j+"%";this.handle.stop(1,1)[e?"animate":"css"](d,g.animate);if(h==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[e?"animate":"css"]({width:j+"%"},g.animate)}if(h==="max"&&this.orientation==="horizontal"){this.range[e?"animate":"css"]({width:(100-j)+"%"},{queue:false,duration:g.animate})}if(h==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[e?"animate":"css"]({height:j+"%"},g.animate)}if(h==="max"&&this.orientation==="vertical"){this.range[e?"animate":"css"]({height:(100-j)+"%"},{queue:false,duration:g.animate})}}}});a.extend(a.ui.slider,{version:"1.8.23"})}(jQuery));
/*
* jQuery UI Tabs 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Tabs
*
* Depends:
*	jquery.ui.core.js
*	jquery.ui.widget.js
*/
(function(a,f){var e=0,d=0;function c(){return ++e}function b(){return ++d}a.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(g,h){if(g=="selected"){if(this.options.collapsible&&h==this.options.selected){return}this.select(h)}else{this.options[g]=h;this._tabify()}},_tabId:function(g){return g.title&&g.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+c()},_sanitizeSelector:function(g){return g.replace(/:/g,"\\:")},_cookie:function(){var g=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+b());return a.cookie.apply(null,[g].concat(a.makeArray(arguments)))},_ui:function(h,g){return{tab:h,panel:g,index:this.anchors.index(h)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var g=a(this);g.html(g.data("label.tabs")).removeData("label.tabs")})},_tabify:function(m){var t=this,q=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=a(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return a("a",this)[0]});this.panels=a([]);this.anchors.each(function(A,w){var y=a(w).attr("href");var z=y.split("#")[0],x;if(z&&(z===location.toString().split("#")[0]||(x=a("base")[0])&&z===x.href)){y=w.hash;w.href=y}if(h.test(y)){t.panels=t.panels.add(t.element.find(t._sanitizeSelector(y)))}else{if(y&&y!=="#"){a.data(w,"href.tabs",y);a.data(w,"load.tabs",y.replace(/#.*$/,""));var B=t._tabId(w);w.href="#"+B;var o=t.element.find("#"+B);if(!o.length){o=a(q.panelTemplate).attr("id",B).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(t.panels[A-1]||t.list);o.data("destroy.tabs",true)}t.panels=t.panels.add(o)}else{q.disabled.push(A)}}});if(m){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(q.selected===f){if(location.hash){this.anchors.each(function(w,o){if(o.hash==location.hash){q.selected=w;return false}})}if(typeof q.selected!=="number"&&q.cookie){q.selected=parseInt(t._cookie(),10)}if(typeof q.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length){q.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}q.selected=q.selected||(this.lis.length?0:-1)}else{if(q.selected===null){q.selected=-1}}q.selected=((q.selected>=0&&this.anchors[q.selected])||q.selected<0)?q.selected:0;q.disabled=a.unique(q.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(w,o){return t.lis.index(w)}))).sort();if(a.inArray(q.selected,q.disabled)!=-1){q.disabled.splice(a.inArray(q.selected,q.disabled),1)}this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(q.selected>=0&&this.anchors.length){t.element.find(t._sanitizeSelector(t.anchors[q.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(q.selected).addClass("ui-tabs-selected ui-state-active");t.element.queue("tabs",function(){t._trigger("show",null,t._ui(t.anchors[q.selected],t.element.find(t._sanitizeSelector(t.anchors[q.selected].hash))[0]))});this.load(q.selected)}a(window).bind("unload",function(){t.lis.add(t.anchors).unbind(".tabs");t.lis=t.anchors=t.panels=null})}else{q.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}this.element[q.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");if(q.cookie){this._cookie(q.selected,q.cookie)}for(var l=0,p;(p=this.lis[l]);l++){a(p)[a.inArray(l,q.disabled)!=-1&&!a(p).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")}if(q.cache===false){this.anchors.removeData("cache.tabs")}this.lis.add(this.anchors).unbind(".tabs");if(q.event!=="mouseover"){var g=function(o,i){if(i.is(":not(.ui-state-disabled)")){i.addClass("ui-state-"+o)}};var r=function(o,i){i.removeClass("ui-state-"+o)};this.lis.bind("mouseover.tabs",function(){g("hover",a(this))});this.lis.bind("mouseout.tabs",function(){r("hover",a(this))});this.anchors.bind("focus.tabs",function(){g("focus",a(this).closest("li"))});this.anchors.bind("blur.tabs",function(){r("focus",a(this).closest("li"))})}var j,u;if(q.fx){if(a.isArray(q.fx)){j=q.fx[0];u=q.fx[1]}else{j=u=q.fx}}function s(i,o){i.css("display","");if(!a.support.opacity&&o.opacity){i[0].style.removeAttribute("filter")}}var v=u?function(o,i){a(o).closest("li").addClass("ui-tabs-selected ui-state-active");i.hide().removeClass("ui-tabs-hide").animate(u,u.duration||"normal",function(){s(i,u);t._trigger("show",null,t._ui(o,i[0]))})}:function(o,i){a(o).closest("li").addClass("ui-tabs-selected ui-state-active");i.removeClass("ui-tabs-hide");t._trigger("show",null,t._ui(o,i[0]))};var k=j?function(o,i){i.animate(j,j.duration||"normal",function(){t.lis.removeClass("ui-tabs-selected ui-state-active");i.addClass("ui-tabs-hide");s(i,j);t.element.dequeue("tabs")})}:function(w,i,o){t.lis.removeClass("ui-tabs-selected ui-state-active");i.addClass("ui-tabs-hide");t.element.dequeue("tabs")};this.anchors.bind(q.event+".tabs",function(){var x=this,o=a(x).closest("li"),i=t.panels.filter(":not(.ui-tabs-hide)"),w=t.element.find(t._sanitizeSelector(x.hash));if((o.hasClass("ui-tabs-selected")&&!q.collapsible)||o.hasClass("ui-state-disabled")||o.hasClass("ui-state-processing")||t.panels.filter(":animated").length||t._trigger("select",null,t._ui(this,w[0]))===false){this.blur();return false}q.selected=t.anchors.index(this);t.abort();if(q.collapsible){if(o.hasClass("ui-tabs-selected")){q.selected=-1;if(q.cookie){t._cookie(q.selected,q.cookie)}t.element.queue("tabs",function(){k(x,i)}).dequeue("tabs");this.blur();return false}else{if(!i.length){if(q.cookie){t._cookie(q.selected,q.cookie)}t.element.queue("tabs",function(){v(x,w)});t.load(t.anchors.index(this));this.blur();return false}}}if(q.cookie){t._cookie(q.selected,q.cookie)}if(w.length){if(i.length){t.element.queue("tabs",function(){k(x,i)})}t.element.queue("tabs",function(){v(x,w)});t.load(t.anchors.index(this))}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(a.browser.msie){this.blur()}});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(g){if(typeof g=="string"){g=this.anchors.index(this.anchors.filter("[href$='"+g+"']"))}return g},destroy:function(){var g=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var i=a.data(this,"href.tabs");if(i){this.href=i}var h=a(this).unbind(".tabs");a.each(["href","load","cache"],function(j,k){h.removeData(k+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){if(a.data(this,"destroy.tabs")){a(this).remove()}else{a(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "))}});if(g.cookie){this._cookie(null,g.cookie)}return this},add:function(p,k,j){if(j===f){j=this.anchors.length}var m=this,l=this.options,g=a(l.tabTemplate.replace(/#\{href\}/g,p).replace(/#\{label\}/g,k)),i=!p.indexOf("#")?p.replace("#",""):this._tabId(a("a",g)[0]);g.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var h=m.element.find("#"+i);if(!h.length){h=a(l.panelTemplate).attr("id",i).data("destroy.tabs",true)}h.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(j>=this.lis.length){g.appendTo(this.list);h.appendTo(this.list[0].parentNode)}else{g.insertBefore(this.lis[j]);h.insertBefore(this.panels[j])}l.disabled=a.map(l.disabled,function(q,o){return q>=j?++q:q});this._tabify();if(this.anchors.length==1){l.selected=0;g.addClass("ui-tabs-selected ui-state-active");h.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){m._trigger("show",null,m._ui(m.anchors[0],m.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[j],this.panels[j]));return this},remove:function(i){i=this._getIndex(i);var j=this.options,g=this.lis.eq(i).remove(),h=this.panels.eq(i).remove();if(g.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(i+(i+1<this.anchors.length?1:-1))}j.disabled=a.map(a.grep(j.disabled,function(l,k){return l!=i}),function(l,k){return l>=i?--l:l});this._tabify();this._trigger("remove",null,this._ui(g.find("a")[0],h[0]));return this},enable:function(g){g=this._getIndex(g);var h=this.options;if(a.inArray(g,h.disabled)==-1){return}this.lis.eq(g).removeClass("ui-state-disabled");h.disabled=a.grep(h.disabled,function(k,j){return k!=g});this._trigger("enable",null,this._ui(this.anchors[g],this.panels[g]));return this},disable:function(g){g=this._getIndex(g);var i=this,h=this.options;if(g!=h.selected){this.lis.eq(g).addClass("ui-state-disabled");h.disabled.push(g);h.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[g],this.panels[g]))}return this},select:function(g){g=this._getIndex(g);if(g==-1){if(this.options.collapsible&&this.options.selected!=-1){g=this.options.selected}else{return this}}this.anchors.eq(g).trigger(this.options.event+".tabs");return this},load:function(h){h=this._getIndex(h);var j=this,i=this.options,g=this.anchors.eq(h)[0],l=a.data(g,"load.tabs");this.abort();if(!l||this.element.queue("tabs").length!==0&&a.data(g,"cache.tabs")){this.element.dequeue("tabs");return}this.lis.eq(h).addClass("ui-state-processing");if(i.spinner){var k=a("span",g);k.data("label.tabs",k.html()).html(i.spinner)}this.xhr=a.ajax(a.extend({},i.ajaxOptions,{url:l,success:function(o,p){j.element.find(j._sanitizeSelector(g.hash)).html(o);j._cleanup();if(i.cache){a.data(g,"cache.tabs",true)}j._trigger("load",null,j._ui(j.anchors[h],j.panels[h]));try{i.ajaxOptions.success(o,p)}catch(m){}},error:function(p,o,m){j._cleanup();j._trigger("load",null,j._ui(j.anchors[h],j.panels[h]));try{i.ajaxOptions.error(p,o,h,g)}catch(m){}}}));j.element.dequeue("tabs");return this},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(g,h){this.anchors.eq(g).removeData("cache.tabs").data("load.tabs",h);return this},length:function(){return this.anchors.length}});a.extend(a.ui.tabs,{version:"1.8.23"});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(h,g){var k=this,i=this.options;var j=k._rotate||(k._rotate=function(m){clearTimeout(k.rotation);k.rotation=setTimeout(function(){var o=i.selected;k.select(++o<k.anchors.length?o:0)},h);if(m){m.stopPropagation()}});var l=k._unrotate||(k._unrotate=!g?function(m){if(m.clientX){k.rotate(null)}}:function(m){j()});if(h){this.element.bind("tabsshow",j);this.anchors.bind(i.event+".tabs",l);j()}else{clearTimeout(k.rotation);this.element.unbind("tabsshow",j);this.anchors.unbind(i.event+".tabs",l);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
/*
* jQuery UI Datepicker 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Datepicker
*
* Depends:
*	jquery.ui.core.js
*/
(function($,undefined){$.extend($.ui,{datepicker:{version:"1.8.23"}});var PROP_NAME="datepicker";var dpuuid=new Date().getTime();var instActive;function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false,disabled:false};$.extend(this._defaults,this.regional[""]);this.dpDiv=bindHover($('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){if(this.debug){console.log.apply("",arguments)}},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeName=="span");if(!target.id){this.uuid+=1;target.id="dp"+this.uuid}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=="input"){this._connectDatepicker(target,inst)}else{if(inline){this._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){var id=target[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:bindHover($('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')))}},_connectDatepicker:function(target,inst){var input=$(target);inst.append=$([]);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return}this._attachments(input,inst);input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});this._autoSize(inst);$.data(target,PROP_NAME,inst);if(inst.settings.disabled){this._disableDatepicker(target)}},_attachments:function(input,inst){var appendText=this._get(inst,"appendText");var isRTL=this._get(inst,"isRTL");if(inst.append){inst.append.remove()}if(appendText){inst.append=$('<span class="'+this._appendClass+'">'+appendText+"</span>");input[isRTL?"before":"after"](inst.append)}input.unbind("focus",this._showDatepicker);if(inst.trigger){inst.trigger.remove()}var showOn=this._get(inst,"showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)}if(showOn=="button"||showOn=="both"){var buttonText=this._get(inst,"buttonText");var buttonImage=this._get(inst,"buttonImage");inst.trigger=$(this._get(inst,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('<button type="button"></button>').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("<img/>").attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?"before":"after"](inst.trigger);inst.trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==input[0]){$.datepicker._hideDatepicker()}else{if($.datepicker._datepickerShowing&&$.datepicker._lastInput!=input[0]){$.datepicker._hideDatepicker();$.datepicker._showDatepicker(input[0])}else{$.datepicker._showDatepicker(input[0])}}return false})}},_autoSize:function(inst){if(this._get(inst,"autoSize")&&!inst.inline){var date=new Date(2009,12-1,20);var dateFormat=this._get(inst,"dateFormat");if(dateFormat.match(/[DM]/)){var findMax=function(names){var max=0;var maxI=0;for(var i=0;i<names.length;i++){if(names[i].length>max){max=names[i].length;maxI=i}}return maxI};date.setMonth(findMax(this._get(inst,(dateFormat.match(/MM/)?"monthNames":"monthNamesShort"))));date.setDate(findMax(this._get(inst,(dateFormat.match(/DD/)?"dayNames":"dayNamesShort")))+20-date.getDay())}inst.input.attr("size",this._formatDate(inst,date).length)}},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return}divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst),true);this._updateDatepicker(inst);this._updateAlternate(inst);if(inst.settings.disabled){this._disableDatepicker(target)}inst.dpDiv.css("display","block")},_dialogDatepicker:function(input,date,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){this.uuid+=1;var id="dp"+this.uuid;this._dialogInput=$('<input type="text" id="'+id+'" style="position: absolute; top: -100px; width: 0px;"/>');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});date=(date&&date.constructor==Date?this._formatDate(inst,date):date);this._dialogInput.val(date);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=document.documentElement.clientWidth;var browserHeight=document.documentElement.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css("left",(this._pos[0]+20)+"px").css("top",this._pos[1]+"px");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName=="input"){inst.append.remove();inst.trigger.remove();$target.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=false;inst.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().removeClass("ui-state-disabled");inline.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=true;inst.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().addClass("ui-state-disabled");inline.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i<this._disabledInputs.length;i++){if(this._disabledInputs[i]==target){return true}}return false},_getInst:function(target){try{return $.data(target,PROP_NAME)}catch(err){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(target,name,value){var inst=this._getInst(target);if(arguments.length==2&&typeof name=="string"){return(name=="defaults"?$.extend({},$.datepicker._defaults):(inst?(name=="all"?$.extend({},inst.settings):this._get(inst,name)):null))}var settings=name||{};if(typeof name=="string"){settings={};settings[name]=value}if(inst){if(this._curInst==inst){this._hideDatepicker()}var date=this._getDateDatepicker(target,true);var minDate=this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");extendRemove(inst.settings,settings);if(minDate!==null&&settings.dateFormat!==undefined&&settings.minDate===undefined){inst.settings.minDate=this._formatDate(inst,minDate)}if(maxDate!==null&&settings.dateFormat!==undefined&&settings.maxDate===undefined){inst.settings.maxDate=this._formatDate(inst,maxDate)}this._attachments($(target),inst);this._autoSize(inst);this._setDate(inst,date);this._updateAlternate(inst);this._updateDatepicker(inst)}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value)},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst)}},_setDateDatepicker:function(target,date){var inst=this._getInst(target);if(inst){this._setDate(inst,date);this._updateDatepicker(inst);this._updateAlternate(inst)}},_getDateDatepicker:function(target,noDefault){var inst=this._getInst(target);if(inst&&!inst.inline){this._setDateFromField(inst,noDefault)}return(inst?this._getDate(inst):null)},_doKeyDown:function(event){var inst=$.datepicker._getInst(event.target);var handled=true;var isRTL=inst.dpDiv.is(".ui-datepicker-rtl");inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker();handled=false;break;case 13:var sel=$("td."+$.datepicker._dayOverClass+":not(."+$.datepicker._currentClass+")",inst.dpDiv);if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0])}var onSelect=$.datepicker._get(inst,"onSelect");if(onSelect){var dateStr=$.datepicker._formatDate(inst);onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{$.datepicker._hideDatepicker()}return false;break;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M");break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M");break;case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target)}handled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target)}handled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M")}break;case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,"D")}handled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M")}break;case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,"D")}handled=event.ctrlKey||event.metaKey;break;default:handled=false}}else{if(event.keyCode==36&&event.ctrlKey){$.datepicker._showDatepicker(this)}else{handled=false}}if(handled){event.preventDefault();event.stopPropagation()}},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,"constrainInput")){var chars=$.datepicker._possibleChars($.datepicker._get(inst,"dateFormat"));var chr=String.fromCharCode(event.charCode==undefined?event.keyCode:event.charCode);return event.ctrlKey||event.metaKey||(chr<" "||!chars||chars.indexOf(chr)>-1)}},_doKeyUp:function(event){var inst=$.datepicker._getInst(event.target);if(inst.input.val()!=inst.lastVal){try{var date=$.datepicker.parseDate($.datepicker._get(inst,"dateFormat"),(inst.input?inst.input.val():null),$.datepicker._getFormatConfig(inst));if(date){$.datepicker._setDateFromField(inst);$.datepicker._updateAlternate(inst);$.datepicker._updateDatepicker(inst)}}catch(err){$.datepicker.log(err)}}return true},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return}var inst=$.datepicker._getInst(input);if($.datepicker._curInst&&$.datepicker._curInst!=inst){$.datepicker._curInst.dpDiv.stop(true,true);if(inst&&$.datepicker._datepickerShowing){$.datepicker._hideDatepicker($.datepicker._curInst.input[0])}}var beforeShow=$.datepicker._get(inst,"beforeShow");var beforeShowSettings=beforeShow?beforeShow.apply(input,[input,inst]):{};if(beforeShowSettings===false){return}extendRemove(inst.settings,beforeShowSettings);inst.lastVal=null;$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=""}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed";return !isFixed});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.dpDiv.empty();inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim");var duration=$.datepicker._get(inst,"duration");var postProcess=function(){var cover=inst.dpDiv.find("iframe.ui-datepicker-cover");if(!!cover.length){var borders=$.datepicker._getBorders(inst.dpDiv);cover.css({left:-borders[0],top:-borders[1],width:inst.dpDiv.outerWidth(),height:inst.dpDiv.outerHeight()})}};inst.dpDiv.zIndex($(input).zIndex()+1);$.datepicker._datepickerShowing=true;if($.effects&&$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[showAnim||"show"]((showAnim?duration:null),postProcess)}if(!showAnim||!duration){postProcess()}if(inst.input.is(":visible")&&!inst.input.is(":disabled")){inst.input.focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var self=this;self.maxRows=4;var borders=$.datepicker._getBorders(inst.dpDiv);instActive=inst;inst.dpDiv.empty().append(this._generateHTML(inst));this._attachHandlers(inst);var cover=inst.dpDiv.find("iframe.ui-datepicker-cover");if(!!cover.length){cover.css({left:-borders[0],top:-borders[1],width:inst.dpDiv.outerWidth(),height:inst.dpDiv.outerHeight()})}inst.dpDiv.find("."+this._dayOverClass+" a").mouseover();var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");if(cols>1){inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em")}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(inst==$.datepicker._curInst&&$.datepicker._datepickerShowing&&inst.input&&inst.input.is(":visible")&&!inst.input.is(":disabled")&&inst.input[0]!=document.activeElement){inst.input.focus()}if(inst.yearshtml){var origyearshtml=inst.yearshtml;setTimeout(function(){if(origyearshtml===inst.yearshtml&&inst.yearshtml){inst.dpDiv.find("select.ui-datepicker-year:first").replaceWith(inst.yearshtml)}origyearshtml=inst.yearshtml=null},0)}},_getBorders:function(elem){var convert=function(value){return{thin:1,medium:2,thick:3}[value]||value};return[parseFloat(convert(elem.css("border-left-width"))),parseFloat(convert(elem.css("border-top-width")))]},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();var dpHeight=inst.dpDiv.outerHeight();var inputWidth=inst.input?inst.input.outerWidth():0;var inputHeight=inst.input?inst.input.outerHeight():0;var viewWidth=document.documentElement.clientWidth+(isFixed?0:$(document).scrollLeft());var viewHeight=document.documentElement.clientHeight+(isFixed?0:$(document).scrollTop());offset.left-=(this._get(inst,"isRTL")?(dpWidth-inputWidth):0);offset.left-=(isFixed&&offset.left==inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&&offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=Math.min(offset.left,(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0);offset.top-=Math.min(offset.top,(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(dpHeight+inputHeight):0);return offset},_findPos:function(obj){var inst=this._getInst(obj);var isRTL=this._get(inst,"isRTL");while(obj&&(obj.type=="hidden"||obj.nodeType!=1||$.expr.filters.hidden(obj))){obj=obj[isRTL?"previousSibling":"nextSibling"]}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input){var inst=this._curInst;if(!inst||(input&&inst!=$.data(input,PROP_NAME))){return}if(this._datepickerShowing){var showAnim=this._get(inst,"showAnim");var duration=this._get(inst,"duration");var postProcess=function(){$.datepicker._tidyDialog(inst)};if($.effects&&$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide"))]((showAnim?duration:null),postProcess)}if(!showAnim){postProcess()}this._datepickerShowing=false;var onClose=this._get(inst,"onClose");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst])}this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(event){if(!$.datepicker._curInst){return}var $target=$(event.target),inst=$.datepicker._getInst($target[0]);if((($target[0].id!=$.datepicker._mainDivId&&$target.parents("#"+$.datepicker._mainDivId).length==0&&!$target.hasClass($.datepicker.markerClassName)&&!$target.closest("."+$.datepicker._triggerClass).length&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)))||($target.hasClass($.datepicker.markerClassName)&&$.datepicker._curInst!=inst)){$.datepicker._hideDatepicker()}},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return}this._adjustInstDate(inst,offset+(period=="M"?this._get(inst,"showCurrentAtPos"):0),period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_selectDay:function(id,month,year,td){var target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return}var inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$("a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);this._selectDate(target,"")},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr)}this._updateAlternate(inst);var onSelect=this._get(inst,"onSelect");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(inst.input){inst.input.trigger("change")}}if(inst.inline){this._updateDatepicker(inst)}else{this._hideDatepicker();this._lastInput=inst.input[0];if(typeof(inst.input[0])!="object"){inst.input.focus()}this._lastInput=null}},_updateAlternate:function(inst){var altField=this._get(inst,"altField");if(altField){var altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");var date=this._getDate(inst);var dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var checkDate=new Date(date.getTime());checkDate.setDate(checkDate.getDate()+4-(checkDate.getDay()||7));var time=checkDate.getTime();checkDate.setMonth(0);checkDate.setDate(1);return Math.floor(Math.round((time-checkDate)/86400000)/7)+1},parseDate:function(format,value,settings){if(format==null||value==null){throw"Invalid arguments"}value=(typeof value=="object"?value.toString():value+"");if(value==""){return null}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var doy=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var getNumber=function(match){var isDoubled=lookAhead(match);var size=(match=="@"?14:(match=="!"?20:(match=="y"&&isDoubled?4:(match=="o"?3:2))));var digits=new RegExp("^\\d{1,"+size+"}");var num=value.substring(iValue).match(digits);if(!num){throw"Missing number at position "+iValue}iValue+=num[0].length;return parseInt(num[0],10)};var getName=function(match,shortNames,longNames){var names=$.map(lookAhead(match)?longNames:shortNames,function(v,k){return[[k,v]]}).sort(function(a,b){return -(a[1].length-b[1].length)});var index=-1;$.each(names,function(i,pair){var name=pair[1];if(value.substr(iValue,name.length).toLowerCase()==name.toLowerCase()){index=pair[0];iValue+=name.length;return false}});if(index!=-1){return index+1}else{throw"Unknown name at position "+iValue}};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw"Unexpected literal at position "+iValue}iValue++};var iValue=0;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{checkLiteral()}}else{switch(format.charAt(iFormat)){case"d":day=getNumber("d");break;case"D":getName("D",dayNamesShort,dayNames);break;case"o":doy=getNumber("o");break;case"m":month=getNumber("m");break;case"M":month=getName("M",monthNamesShort,monthNames);break;case"y":year=getNumber("y");break;case"@":var date=new Date(getNumber("@"));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"!":var date=new Date((getNumber("!")-this._ticksTo1970)/10000);year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"'":if(lookAhead("'")){checkLiteral()}else{literal=true}break;default:checkLiteral()}}}if(iValue<value.length){throw"Extra/unparsed characters found in date: "+value.substring(iValue)}if(year==-1){year=new Date().getFullYear()}else{if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100)}}if(doy>-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day<=dim){break}month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"}return date},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(((1970-1)*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*10000000),formatDate:function(format,date,settings){if(!date){return""}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var formatNumber=function(match,value,len){var num=""+value;if(lookAhead(match)){while(num.length<len){num="0"+num}}return num};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])};var output="";var literal=false;if(date){for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{output+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":output+=formatNumber("d",date.getDate(),2);break;case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);break;case"o":output+=formatNumber("o",Math.round((new Date(date.getFullYear(),date.getMonth(),date.getDate()).getTime()-new Date(date.getFullYear(),0,0).getTime())/86400000),3);break;case"m":output+=formatNumber("m",date.getMonth()+1,2);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"@":output+=date.getTime();break;case"!":output+=date.getTime()*10000+this._ticksTo1970;break;case"'":if(lookAhead("'")){output+="'"}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars="";var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{chars+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":case"m":case"y":case"@":chars+="0123456789";break;case"D":case"M":return null;case"'":if(lookAhead("'")){chars+="'"}else{literal=true}break;default:chars+=format.charAt(iFormat)}}}return chars},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name]},_setDateFromField:function(inst,noDefault){if(inst.input.val()==inst.lastVal){return}var dateFormat=this._get(inst,"dateFormat");var dates=inst.lastVal=inst.input?inst.input.val():null;var date,defaultDate;date=defaultDate=this._getDefaultDate(inst);var settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate}catch(event){this.log(event);dates=(noDefault?"":dates)}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaultDate:function(inst){return this._restrictMinMax(inst,this._determineDate(inst,this._get(inst,"defaultDate"),new Date()))},_determineDate:function(inst,date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset){try{return $.datepicker.parseDate($.datepicker._get(inst,"dateFormat"),offset,$.datepicker._getFormatConfig(inst))}catch(e){}var date=(offset.toLowerCase().match(/^c/)?$.datepicker._getDate(inst):null)||new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);break;case"w":case"W":day+=parseInt(matches[1],10)*7;break;case"m":case"M":month+=parseInt(matches[1],10);day=Math.min(day,$.datepicker._getDaysInMonth(year,month));break;case"y":case"Y":year+=parseInt(matches[1],10);day=Math.min(day,$.datepicker._getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};var newDate=(date==null||date===""?defaultDate:(typeof date=="string"?offsetString(date):(typeof date=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):new Date(date.getTime()))));newDate=(newDate&&newDate.toString()=="Invalid Date"?defaultDate:newDate);if(newDate){newDate.setHours(0);newDate.setMinutes(0);newDate.setSeconds(0);newDate.setMilliseconds(0)}return this._daylightSavingAdjust(newDate)},_daylightSavingAdjust:function(date){if(!date){return null}date.setHours(date.getHours()>12?date.getHours()+2:0);return date},_setDate:function(inst,date,noChange){var clear=!date;var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;var newDate=this._restrictMinMax(inst,this._determineDate(inst,date,new Date()));inst.selectedDay=inst.currentDay=newDate.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=newDate.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=newDate.getFullYear();if((origMonth!=inst.selectedMonth||origYear!=inst.selectedYear)&&!noChange){this._notifyChange(inst)}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?"":this._formatDate(inst))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate},_attachHandlers:function(inst){var stepMonths=this._get(inst,"stepMonths");var id="#"+inst.id.replace(/\\\\/g,"\\");inst.dpDiv.find("[data-handler]").map(function(){var handler={prev:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(id,-stepMonths,"M")},next:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(id,+stepMonths,"M")},hide:function(){window["DP_jQuery_"+dpuuid].datepicker._hideDatepicker()},today:function(){window["DP_jQuery_"+dpuuid].datepicker._gotoToday(id)},selectDay:function(){window["DP_jQuery_"+dpuuid].datepicker._selectDay(id,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this);return false},selectMonth:function(){window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(id,this,"M");return false},selectYear:function(){window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(id,this,"Y");return false}};$(this).bind(this.getAttribute("data-event"),handler[this.getAttribute("data-handler")])})},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var isRTL=this._get(inst,"isRTL");var showButtonPanel=this._get(inst,"showButtonPanel");var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,"showCurrentAtPos");var stepMonths=this._get(inst,"stepMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-(numMonths[0]*numMonths[1])+1,maxDate.getDate()));maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}}inst.drawMonth=drawMonth;inst.drawYear=drawYear;var prevText=this._get(inst,"prevText");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'<a class="ui-datepicker-prev ui-corner-all" data-handler="prev" data-event="click" title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>"));var nextText=this._get(inst,"nextText");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'<a class="ui-datepicker-next ui-corner-all" data-handler="next" data-event="click" title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>"));var currentText=this._get(inst,"currentText");var gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var controls=(!inst.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" data-handler="hide" data-event="click">'+this._get(inst,"closeText")+"</button>":"");var buttonPanel=(showButtonPanel)?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(isRTL?controls:"")+(this._isInRange(inst,gotoDate)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" data-handler="today" data-event="click">'+currentText+"</button>":"")+(isRTL?"":controls)+"</div>":"";var firstDay=parseInt(this._get(inst,"firstDay"),10);firstDay=(isNaN(firstDay)?0:firstDay);var showWeek=this._get(inst,"showWeek");var dayNames=this._get(inst,"dayNames");var dayNamesShort=this._get(inst,"dayNamesShort");var dayNamesMin=this._get(inst,"dayNamesMin");var monthNames=this._get(inst,"monthNames");var monthNamesShort=this._get(inst,"monthNamesShort");var beforeShowDay=this._get(inst,"beforeShowDay");var showOtherMonths=this._get(inst,"showOtherMonths");var selectOtherMonths=this._get(inst,"selectOtherMonths");var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;var defaultDate=this._getDefaultDate(inst);var html="";for(var row=0;row<numMonths[0];row++){var group="";this.maxRows=4;for(var col=0;col<numMonths[1];col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));var cornerClass=" ui-corner-all";var calender="";if(isMultiMonth){calender+='<div class="ui-datepicker-group';if(numMonths[1]>1){switch(col){case 0:calender+=" ui-datepicker-group-first";cornerClass=" ui-corner-"+(isRTL?"right":"left");break;case numMonths[1]-1:calender+=" ui-datepicker-group-last";cornerClass=" ui-corner-"+(isRTL?"left":"right");break;default:calender+=" ui-datepicker-group-middle";cornerClass="";break}}calender+='">'}calender+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+cornerClass+'">'+(/all|left/.test(cornerClass)&&row==0?(isRTL?next:prev):"")+(/all|right/.test(cornerClass)&&row==0?(isRTL?prev:next):"")+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,row>0||col>0,monthNames,monthNamesShort)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var thead=(showWeek?'<th class="ui-datepicker-week-col">'+this._get(inst,"weekHeader")+"</th>":"");for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;thead+="<th"+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+dayNames[day]+'">'+dayNamesMin[day]+"</span></th>"}calender+=thead+"</tr></thead><tbody>";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var curRows=Math.ceil((leadDays+daysInMonth)/7);var numRows=(isMultiMonth?this.maxRows>curRows?this.maxRows:curRows:curRows);this.maxRows=numRows;var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow<numRows;dRow++){calender+="<tr>";var tbody=(!showWeek?"":'<td class="ui-datepicker-week-col">'+this._get(inst,"calculateWeek")(printDate)+"</td>");for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=(otherMonth&&!selectOtherMonths)||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);tbody+='<td class="'+((dow+firstDay+6)%7>=5?" ui-datepicker-week-end":"")+(otherMonth?" ui-datepicker-other-month":"")+((printDate.getTime()==selectedDate.getTime()&&drawMonth==inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()==printDate.getTime()&&defaultDate.getTime()==selectedDate.getTime())?" "+this._dayOverClass:"")+(unselectable?" "+this._unselectableClass+" ui-state-disabled":"")+(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+(printDate.getTime()==currentDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?"":' data-handler="selectDay" data-event="click" data-month="'+printDate.getMonth()+'" data-year="'+printDate.getFullYear()+'"')+">"+(otherMonth&&!showOtherMonths?"&#xa0;":(unselectable?'<span class="ui-state-default">'+printDate.getDate()+"</span>":'<a class="ui-state-default'+(printDate.getTime()==today.getTime()?" ui-state-highlight":"")+(printDate.getTime()==currentDate.getTime()?" ui-state-active":"")+(otherMonth?" ui-priority-secondary":"")+'" href="#">'+printDate.getDate()+"</a>"))+"</td>";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}calender+=tbody+"</tr>"}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}calender+="</tbody></table>"+(isMultiMonth?"</div>"+((numMonths[0]>0&&col==numMonths[1]-1)?'<div class="ui-datepicker-row-break"></div>':""):"");group+=calender}html+=group}html+=buttonPanel+($.browser.msie&&parseInt($.browser.version,10)<7&&!inst.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,secondary,monthNames,monthNamesShort){var changeMonth=this._get(inst,"changeMonth");var changeYear=this._get(inst,"changeYear");var showMonthAfterYear=this._get(inst,"showMonthAfterYear");var html='<div class="ui-datepicker-title">';var monthHtml="";if(secondary||!changeMonth){monthHtml+='<span class="ui-datepicker-month">'+monthNames[drawMonth]+"</span>"}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);monthHtml+='<select class="ui-datepicker-month" data-handler="selectMonth" data-event="change">';for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':"")+">"+monthNamesShort[month]+"</option>"}}monthHtml+="</select>"}if(!showMonthAfterYear){html+=monthHtml+(secondary||!(changeMonth&&changeYear)?"&#xa0;":"")}if(!inst.yearshtml){inst.yearshtml="";if(secondary||!changeYear){html+='<span class="ui-datepicker-year">'+drawYear+"</span>"}else{var years=this._get(inst,"yearRange").split(":");var thisYear=new Date().getFullYear();var determineYear=function(value){var year=(value.match(/c[+-].*/)?drawYear+parseInt(value.substring(1),10):(value.match(/[+-].*/)?thisYear+parseInt(value,10):parseInt(value,10)));return(isNaN(year)?thisYear:year)};var year=determineYear(years[0]);var endYear=Math.max(year,determineYear(years[1]||""));year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);inst.yearshtml+='<select class="ui-datepicker-year" data-handler="selectYear" data-event="change">';for(;year<=endYear;year++){inst.yearshtml+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>"}inst.yearshtml+="</select>";html+=inst.yearshtml;inst.yearshtml=null}}html+=this._get(inst,"yearSuffix");if(showMonthAfterYear){html+=(secondary||!(changeMonth&&changeYear)?"&#xa0;":"")+monthHtml}html+="</div>";return html},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=="Y"?offset:0);var month=inst.drawMonth+(period=="M"?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=this._restrictMinMax(inst,this._daylightSavingAdjust(new Date(year,month,day)));inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=="M"||period=="Y"){this._notifyChange(inst)}},_restrictMinMax:function(inst,date){var minDate=this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");var newDate=(minDate&&date<minDate?minDate:date);newDate=(maxDate&&newDate>maxDate?maxDate:newDate);return newDate},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax){return this._determineDate(inst,this._get(inst,minMax+"Date"),null)},_getDaysInMonth:function(year,month){return 32-this._daylightSavingAdjust(new Date(year,month,32)).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[0]*numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var minDate=this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");return((!minDate||date.getTime()>=minDate.getTime())&&(!maxDate||date.getTime()<=maxDate.getTime()))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))}});function bindHover(dpDiv){var selector="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return dpDiv.bind("mouseout",function(event){var elem=$(event.target).closest(selector);if(!elem.length){return}elem.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(event){var elem=$(event.target).closest(selector);if($.datepicker._isDisabledDatepicker(instActive.inline?dpDiv.parent()[0]:instActive.input[0])||!elem.length){return}elem.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");elem.addClass("ui-state-hover");if(elem.hasClass("ui-datepicker-prev")){elem.addClass("ui-datepicker-prev-hover")}if(elem.hasClass("ui-datepicker-next")){elem.addClass("ui-datepicker-next-hover")}})}function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}function isArray(a){return(a&&(($.browser.safari&&typeof a=="object"&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))))}$.fn.datepicker=function(options){if(!this.length){return this}if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"||options=="getDate"||options=="widget")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}if(options=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.8.23";window["DP_jQuery_"+dpuuid]=$})(jQuery);
/*
* jQuery UI Progressbar 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Progressbar
*
* Depends:
*   jquery.ui.core.js
*   jquery.ui.widget.js
*/
(function(a,b){a.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.valueDiv.remove();a.Widget.prototype.destroy.apply(this,arguments)},value:function(c){if(c===b){return this._value()}this._setOption("value",c);return this},_setOption:function(c,d){if(c==="value"){this.options.value=d;this._refreshValue();if(this._value()===this.options.max){this._trigger("complete")}}a.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var c=this.options.value;if(typeof c!=="number"){c=0}return Math.min(this.options.max,Math.max(this.min,c))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var d=this.value();var c=this._percentage();if(this.oldValue!==d){this.oldValue=d;this._trigger("change")}this.valueDiv.toggle(d>this.min).toggleClass("ui-corner-right",d===this.options.max).width(c.toFixed(0)+"%");this.element.attr("aria-valuenow",d)}});a.extend(a.ui.progressbar,{version:"1.8.23"})})(jQuery);
/*
* jQuery UI Effects 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Effects/
*/
jQuery.effects||(function(a,m){a.effects={};a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(p,o){a.fx.step[o]=function(q){if(!q.colorInit){q.start=g(q.elem,o);q.end=i(q.end);q.colorInit=true}q.elem.style[o]="rgb("+Math.max(Math.min(parseInt((q.pos*(q.end[0]-q.start[0]))+q.start[0],10),255),0)+","+Math.max(Math.min(parseInt((q.pos*(q.end[1]-q.start[1]))+q.start[1],10),255),0)+","+Math.max(Math.min(parseInt((q.pos*(q.end[2]-q.start[2]))+q.start[2],10),255),0)+")"}});function i(o){var p;if(o&&o.constructor==Array&&o.length==3){return o}if(p=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(o)){return[parseInt(p[1],10),parseInt(p[2],10),parseInt(p[3],10)]}if(p=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(o)){return[parseFloat(p[1])*2.55,parseFloat(p[2])*2.55,parseFloat(p[3])*2.55]}if(p=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(o)){return[parseInt(p[1],16),parseInt(p[2],16),parseInt(p[3],16)]}if(p=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(o)){return[parseInt(p[1]+p[1],16),parseInt(p[2]+p[2],16),parseInt(p[3]+p[3],16)]}if(p=/rgba\(0, 0, 0, 0\)/.exec(o)){return e.transparent}return e[a.trim(o).toLowerCase()]}function g(q,o){var p;do{p=(a.curCSS||a.css)(q,o);if(p!=""&&p!="transparent"||a.nodeName(q,"body")){break}o="backgroundColor"}while(q=q.parentNode);return i(p)}var e={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};var d=["add","remove","toggle"],j={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function h(){var s=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,r={},p,o;if(s&&s.length&&s[0]&&s[s[0]]){var q=s.length;while(q--){p=s[q];if(typeof s[p]=="string"){o=p.replace(/\-(\w)/g,function(t,u){return u.toUpperCase()});r[o]=s[p]}}}else{for(p in s){if(typeof s[p]==="string"){r[p]=s[p]}}}return r}function f(p){var o,q;for(o in p){q=p[o];if(q==null||a.isFunction(q)||o in j||(/scrollbar/).test(o)||(!(/color/i).test(o)&&isNaN(parseFloat(q)))){delete p[o]}}return p}function l(r,q){var o={_:0},p;for(p in q){if(r[p]!=q[p]){o[p]=q[p]}}return o}a.effects.animateClass=function(r,p,q,o){if(a.isFunction(q)){o=q;q=null}return this.queue(function(){var w=a(this),v=w.attr("style")||" ",u=f(h.call(this)),t,s=w.attr("class")||"";a.each(d,function(y,x){if(r[x]){w[x+"Class"](r[x])}});t=f(h.call(this));w.attr("class",s);w.animate(l(u,t),{queue:false,duration:p,easing:q,complete:function(){a.each(d,function(y,x){if(r[x]){w[x+"Class"](r[x])}});if(typeof w.attr("style")=="object"){w.attr("style").cssText="";w.attr("style").cssText=v}else{w.attr("style",v)}if(o){o.apply(this,arguments)}a.dequeue(this)}})})};a.fn.extend({_addClass:a.fn.addClass,addClass:function(p,r,q,o){return r?a.effects.animateClass.apply(this,[{add:p},r,q,o]):this._addClass(p)},_removeClass:a.fn.removeClass,removeClass:function(p,r,q,o){return r?a.effects.animateClass.apply(this,[{remove:p},r,q,o]):this._removeClass(p)},_toggleClass:a.fn.toggleClass,toggleClass:function(p,r,s,q,o){if(typeof r=="boolean"||r===m){if(!s){return this._toggleClass(p,r)}else{return a.effects.animateClass.apply(this,[(r?{add:p}:{remove:p}),s,q,o])}}else{return a.effects.animateClass.apply(this,[{toggle:p},r,s,q])}},switchClass:function(r,o,s,q,p){return a.effects.animateClass.apply(this,[{add:o,remove:r},s,q,p])}});a.extend(a.effects,{version:"1.8.23",save:function(o,q){for(var p=0;p<q.length;p++){if(q[p]!==null){o.data("ec.storage."+q[p],o[0].style[q[p]])}}},restore:function(o,q){for(var p=0;p<q.length;p++){if(q[p]!==null){o.css(q[p],o.data("ec.storage."+q[p]))}}},setMode:function(o,p){if(p=="toggle"){p=o.is(":hidden")?"show":"hide"}return p},getBaseline:function(o,p){var r,q;switch(o[0]){case"top":r=0;break;case"middle":r=0.5;break;case"bottom":r=1;break;default:r=o[0]/p.height}switch(o[1]){case"left":q=0;break;case"center":q=0.5;break;case"right":q=1;break;default:q=o[1]/p.width}return{x:q,y:r}},createWrapper:function(q){if(q.parent().is(".ui-effects-wrapper")){return q.parent()}var r={width:q.outerWidth(true),height:q.outerHeight(true),"float":q.css("float")},s=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),o=document.activeElement;try{o.id}catch(p){o=document.body}q.wrap(s);if(q[0]===o||a.contains(q[0],o)){a(o).focus()}s=q.parent();if(q.css("position")=="static"){s.css({position:"relative"});q.css({position:"relative"})}else{a.extend(r,{position:q.css("position"),zIndex:q.css("z-index")});a.each(["top","left","bottom","right"],function(t,u){r[u]=q.css(u);if(isNaN(parseInt(r[u],10))){r[u]="auto"}});q.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return s.css(r).show()},removeWrapper:function(p){var q,o=document.activeElement;if(p.parent().is(".ui-effects-wrapper")){q=p.parent().replaceWith(p);if(p[0]===o||a.contains(p[0],o)){a(o).focus()}return q}return p},setTransition:function(o,q,p,r){r=r||{};a.each(q,function(s,u){var t=o.cssUnit(u);if(t[0]>0){r[u]=t[0]*p+t[1]}});return r}});function b(p,q,r,o){if(typeof p=="object"){o=q;r=null;q=p;p=q.effect}if(a.isFunction(q)){o=q;r=null;q={}}if(typeof q=="number"||a.fx.speeds[q]){o=r;r=q;q={}}if(a.isFunction(r)){o=r;r=null}q=q||{};r=r||q.duration;r=a.fx.off?0:typeof r=="number"?r:r in a.fx.speeds?a.fx.speeds[r]:a.fx.speeds._default;o=o||q.complete;return[p,q,r,o]}function k(o){if(!o||typeof o==="number"||a.fx.speeds[o]){return true}if(typeof o==="string"&&!a.effects[o]){return true}return false}a.fn.extend({effect:function(r,u,v,q){var o=b.apply(this,arguments),p={options:o[1],duration:o[2],callback:o[3]},t=p.options.mode,s=a.effects[r];if(a.fx.off||!s){if(t){return this[t](p.duration,p.callback)}else{return this.each(function(){if(p.callback){p.callback.call(this)}})}}return s.call(this,p)},_show:a.fn.show,show:function(p){if(k(p)){return this._show.apply(this,arguments)}else{var o=b.apply(this,arguments);o[1].mode="show";return this.effect.apply(this,o)}},_hide:a.fn.hide,hide:function(p){if(k(p)){return this._hide.apply(this,arguments)}else{var o=b.apply(this,arguments);o[1].mode="hide";return this.effect.apply(this,o)}},__toggle:a.fn.toggle,toggle:function(p){if(k(p)||typeof p==="boolean"||a.isFunction(p)){return this.__toggle.apply(this,arguments)}else{var o=b.apply(this,arguments);o[1].mode="toggle";return this.effect.apply(this,o)}},cssUnit:function(o){var p=this.css(o),q=[];a.each(["em","px","%","pt"],function(r,s){if(p.indexOf(s)>0){q=[parseFloat(p),s]}});return q}});var c={};a.each(["Quad","Cubic","Quart","Quint","Expo"],function(o,p){c[p]=function(q){return Math.pow(q,o+2)}});a.extend(c,{Sine:function(o){return 1-Math.cos(o*Math.PI/2)},Circ:function(o){return 1-Math.sqrt(1-o*o)},Elastic:function(o){return o===0||o===1?o:-Math.pow(2,8*(o-1))*Math.sin(((o-1)*80-7.5)*Math.PI/15)},Back:function(o){return o*o*(3*o-2)},Bounce:function(q){var r,o=4;while(q<((r=Math.pow(2,--o))-1)/11){}return 1/Math.pow(4,3-o)-7.5625*Math.pow((r*3-2)/22-q,2)}});a.each(c,function(p,o){a.easing["easeIn"+p]=o;a.easing["easeOut"+p]=function(q){return 1-o(1-q)};a.easing["easeInOut"+p]=function(q){return q<0.5?o(q*2)/2:o(q*-2+2)/-2+1}})})(jQuery);
/*
* jQuery UI Effects Blind 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Effects/Blind
*
* Depends:
*	jquery.effects.core.js
*/
(function(a,b){a.effects.blind=function(c){return this.queue(function(){var g=a(this),i=["position","top","bottom","left","right"];var h=a.effects.setMode(g,c.options.mode||"hide");var e=c.options.direction||"vertical";a.effects.save(g,i);g.show();var k=a.effects.createWrapper(g).css({overflow:"hidden"});var j=(e=="vertical")?"height":"width";var f=(e=="vertical")?k.height():k.width();if(h=="show"){k.css(j,0)}var d={};d[j]=h=="show"?f:0;k.animate(d,c.duration,c.options.easing,function(){if(h=="hide"){g.hide()}a.effects.restore(g,i);a.effects.removeWrapper(g);if(c.callback){c.callback.apply(g[0],arguments)}g.dequeue()})})}})(jQuery);
/*
* jQuery UI Effects Bounce 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Effects/Bounce
*
* Depends:
*	jquery.effects.core.js
*/
(function(a,b){a.effects.bounce=function(c){return this.queue(function(){var j=a(this),o=["position","top","bottom","left","right"];var l=a.effects.setMode(j,c.options.mode||"effect");var g=c.options.direction||"up";var h=c.options.distance||20;var r=c.options.times||5;var q=c.duration||250;if(/show|hide/.test(l)){o.push("opacity")}a.effects.save(j,o);j.show();a.effects.createWrapper(j);var p=(g=="up"||g=="down")?"top":"left";var m=(g=="up"||g=="left")?"pos":"neg";var h=c.options.distance||(p=="top"?j.outerHeight(true)/3:j.outerWidth(true)/3);if(l=="show"){j.css("opacity",0).css(p,m=="pos"?-h:h)}if(l=="hide"){h=h/(r*2)}if(l!="hide"){r--}if(l=="show"){var d={opacity:1};d[p]=(m=="pos"?"+=":"-=")+h;j.animate(d,q/2,c.options.easing);h=h/2;r--}for(var k=0;k<r;k++){var e={},f={};e[p]=(m=="pos"?"-=":"+=")+h;f[p]=(m=="pos"?"+=":"-=")+h;j.animate(e,q/2,c.options.easing).animate(f,q/2,c.options.easing);h=(l=="hide")?h*2:h/2}if(l=="hide"){var d={opacity:0};d[p]=(m=="pos"?"-=":"+=")+h;j.animate(d,q/2,c.options.easing,function(){j.hide();a.effects.restore(j,o);a.effects.removeWrapper(j);if(c.callback){c.callback.apply(this,arguments)}})}else{var e={},f={};e[p]=(m=="pos"?"-=":"+=")+h;f[p]=(m=="pos"?"+=":"-=")+h;j.animate(e,q/2,c.options.easing).animate(f,q/2,c.options.easing,function(){a.effects.restore(j,o);a.effects.removeWrapper(j);if(c.callback){c.callback.apply(this,arguments)}})}j.queue("fx",function(){j.dequeue()});j.dequeue()})}})(jQuery);
/*
* jQuery UI Effects Clip 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Effects/Clip
*
* Depends:
*	jquery.effects.core.js
*/
(function(a,b){a.effects.clip=function(c){return this.queue(function(){var h=a(this),j=["position","top","bottom","left","right","height","width"];var i=a.effects.setMode(h,c.options.mode||"hide");var f=c.options.direction||"vertical";a.effects.save(h,j);h.show();var l=a.effects.createWrapper(h).css({overflow:"hidden"});var d=h[0].tagName=="IMG"?l:h;var k={size:(f=="vertical")?"height":"width",position:(f=="vertical")?"top":"left"};var g=(f=="vertical")?d.height():d.width();if(i=="show"){d.css(k.size,0);d.css(k.position,g/2)}var e={};e[k.size]=i=="show"?g:0;e[k.position]=i=="show"?0:g/2;d.animate(e,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){if(i=="hide"){h.hide()}a.effects.restore(h,j);a.effects.removeWrapper(h);if(c.callback){c.callback.apply(h[0],arguments)}h.dequeue()}})})}})(jQuery);
/*
* jQuery UI Effects Drop 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Effects/Drop
*
* Depends:
*	jquery.effects.core.js
*/
(function(a,b){a.effects.drop=function(c){return this.queue(function(){var g=a(this),j=["position","top","bottom","left","right","opacity"];var h=a.effects.setMode(g,c.options.mode||"hide");var e=c.options.direction||"left";a.effects.save(g,j);g.show();a.effects.createWrapper(g);var k=(e=="up"||e=="down")?"top":"left";var i=(e=="up"||e=="left")?"pos":"neg";var f=c.options.distance||(k=="top"?g.outerHeight(true)/2:g.outerWidth(true)/2);if(h=="show"){g.css("opacity",0).css(k,i=="pos"?-f:f)}var d={opacity:h=="show"?1:0};d[k]=(h=="show"?(i=="pos"?"+=":"-="):(i=="pos"?"-=":"+="))+f;g.animate(d,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){if(h=="hide"){g.hide()}a.effects.restore(g,j);a.effects.removeWrapper(g);if(c.callback){c.callback.apply(this,arguments)}g.dequeue()}})})}})(jQuery);
/*
* jQuery UI Effects Explode 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Effects/Explode
*
* Depends:
*	jquery.effects.core.js
*/
(function(a,b){a.effects.explode=function(c){return this.queue(function(){var l=c.options.pieces?Math.round(Math.sqrt(c.options.pieces)):3;var d=c.options.pieces?Math.round(Math.sqrt(c.options.pieces)):3;c.options.mode=c.options.mode=="toggle"?(a(this).is(":visible")?"hide":"show"):c.options.mode;var e=a(this).show().css("visibility","hidden");var k=e.offset();k.top-=parseInt(e.css("marginTop"),10)||0;k.left-=parseInt(e.css("marginLeft"),10)||0;var m=e.outerWidth(true);var f=e.outerHeight(true);for(var g=0;g<l;g++){for(var h=0;h<d;h++){e.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-h*(m/d),top:-g*(f/l)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:m/d,height:f/l,left:k.left+h*(m/d)+(c.options.mode=="show"?(h-Math.floor(d/2))*(m/d):0),top:k.top+g*(f/l)+(c.options.mode=="show"?(g-Math.floor(l/2))*(f/l):0),opacity:c.options.mode=="show"?0:1}).animate({left:k.left+h*(m/d)+(c.options.mode=="show"?0:(h-Math.floor(d/2))*(m/d)),top:k.top+g*(f/l)+(c.options.mode=="show"?0:(g-Math.floor(l/2))*(f/l)),opacity:c.options.mode=="show"?1:0},c.duration||500)}}setTimeout(function(){c.options.mode=="show"?e.css({visibility:"visible"}):e.css({visibility:"visible"}).hide();if(c.callback){c.callback.apply(e[0])}e.dequeue();a("div.ui-effects-explode").remove()},c.duration||500)})}})(jQuery);
/*
* jQuery UI Effects Fade 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Effects/Fade
*
* Depends:
*	jquery.effects.core.js
*/
(function(a,b){a.effects.fade=function(c){return this.queue(function(){var d=a(this),e=a.effects.setMode(d,c.options.mode||"hide");d.animate({opacity:e},{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){(c.callback&&c.callback.apply(this,arguments));d.dequeue()}})})}})(jQuery);
/*
* jQuery UI Effects Fold 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Effects/Fold
*
* Depends:
*	jquery.effects.core.js
*/
(function(a,b){a.effects.fold=function(c){return this.queue(function(){var h=a(this),l=["position","top","bottom","left","right"];var j=a.effects.setMode(h,c.options.mode||"hide");var o=c.options.size||15;var i=!(!c.options.horizFirst);var g=c.duration?c.duration/2:a.fx.speeds._default/2;a.effects.save(h,l);h.show();var q=a.effects.createWrapper(h).css({overflow:"hidden"});var p=((j=="show")!=i);var m=p?["width","height"]:["height","width"];var f=p?[q.width(),q.height()]:[q.height(),q.width()];var k=/([0-9]+)%/.exec(o);if(k){o=parseInt(k[1],10)/100*f[j=="hide"?0:1]}if(j=="show"){q.css(i?{height:0,width:o}:{height:o,width:0})}var d={},e={};d[m[0]]=j=="show"?f[0]:o;e[m[1]]=j=="show"?f[1]:0;q.animate(d,g,c.options.easing).animate(e,g,c.options.easing,function(){if(j=="hide"){h.hide()}a.effects.restore(h,l);a.effects.removeWrapper(h);if(c.callback){c.callback.apply(h[0],arguments)}h.dequeue()})})}})(jQuery);
/*
* jQuery UI Effects Highlight 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Effects/Highlight
*
* Depends:
*	jquery.effects.core.js
*/
(function(a,b){a.effects.highlight=function(c){return this.queue(function(){var e=a(this),g=["backgroundImage","backgroundColor","opacity"],f=a.effects.setMode(e,c.options.mode||"show"),d={backgroundColor:e.css("backgroundColor")};if(f=="hide"){d.opacity=0}a.effects.save(e,g);e.show().css({backgroundImage:"none",backgroundColor:c.options.color||"#ffff99"}).animate(d,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){(f=="hide"&&e.hide());a.effects.restore(e,g);(f=="show"&&!a.support.opacity&&this.style.removeAttribute("filter"));(c.callback&&c.callback.apply(this,arguments));e.dequeue()}})})}})(jQuery);
/*
* jQuery UI Effects Pulsate 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Effects/Pulsate
*
* Depends:
*	jquery.effects.core.js
*/
(function(a,b){a.effects.pulsate=function(c){return this.queue(function(){var f=a(this),j=a.effects.setMode(f,c.options.mode||"show"),k=((c.options.times||5)*2)-1,e=c.duration?c.duration/2:a.fx.speeds._default/2,h=f.is(":visible"),d=0;if(!h){f.css("opacity",0).show();d=1}if((j=="hide"&&h)||(j=="show"&&!h)){k--}for(var g=0;g<k;g++){f.animate({opacity:d},e,c.options.easing);d=(d+1)%2}f.animate({opacity:d},e,c.options.easing,function(){if(d==0){f.hide()}(c.callback&&c.callback.apply(this,arguments))});f.queue("fx",function(){f.dequeue()}).dequeue()})}})(jQuery);
/*
* jQuery UI Effects Scale 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Effects/Scale
*
* Depends:
*	jquery.effects.core.js
*/
(function(a,b){a.effects.puff=function(c){return this.queue(function(){var d=a(this),f=a.effects.setMode(d,c.options.mode||"hide"),h=parseInt(c.options.percent,10)||150,e=h/100,g={height:d.height(),width:d.width()};a.extend(c.options,{fade:true,mode:f,percent:f=="hide"?h:100,from:f=="hide"?g:{height:g.height*e,width:g.width*e}});d.effect("scale",c.options,c.duration,c.callback);d.dequeue()})};a.effects.scale=function(c){return this.queue(function(){var e=a(this);var h=a.extend(true,{},c.options);var g=a.effects.setMode(e,c.options.mode||"effect");var k=parseInt(c.options.percent,10)||(parseInt(c.options.percent,10)==0?0:(g=="hide"?0:100));var d=c.options.direction||"both";var i=c.options.origin;if(g!="effect"){h.origin=i||["middle","center"];h.restore=true}var j={height:e.height(),width:e.width()};e.from=c.options.from||(g=="show"?{height:0,width:0}:j);var f={y:d!="horizontal"?(k/100):1,x:d!="vertical"?(k/100):1};e.to={height:j.height*f.y,width:j.width*f.x};if(c.options.fade){if(g=="show"){e.from.opacity=0;e.to.opacity=1}if(g=="hide"){e.from.opacity=1;e.to.opacity=0}}h.from=e.from;h.to=e.to;h.mode=g;e.effect("size",h,c.duration,c.callback);e.dequeue()})};a.effects.size=function(c){return this.queue(function(){var f=a(this),l=["position","top","bottom","left","right","width","height","overflow","opacity"];var m=["position","top","bottom","left","right","overflow","opacity"];var o=["width","height","overflow"];var e=["fontSize"];var r=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"];var h=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"];var i=a.effects.setMode(f,c.options.mode||"effect");var p=c.options.restore||false;var q=c.options.scale||"both";var j=c.options.origin;var k={height:f.height(),width:f.width()};f.from=c.options.from||k;f.to=c.options.to||k;if(j){var d=a.effects.getBaseline(j,k);f.from.top=(k.height-f.from.height)*d.y;f.from.left=(k.width-f.from.width)*d.x;f.to.top=(k.height-f.to.height)*d.y;f.to.left=(k.width-f.to.width)*d.x}var g={from:{y:f.from.height/k.height,x:f.from.width/k.width},to:{y:f.to.height/k.height,x:f.to.width/k.width}};if(q=="box"||q=="both"){if(g.from.y!=g.to.y){l=l.concat(r);f.from=a.effects.setTransition(f,r,g.from.y,f.from);f.to=a.effects.setTransition(f,r,g.to.y,f.to)}if(g.from.x!=g.to.x){l=l.concat(h);f.from=a.effects.setTransition(f,h,g.from.x,f.from);f.to=a.effects.setTransition(f,h,g.to.x,f.to)}}if(q=="content"||q=="both"){if(g.from.y!=g.to.y){l=l.concat(e);f.from=a.effects.setTransition(f,e,g.from.y,f.from);f.to=a.effects.setTransition(f,e,g.to.y,f.to)}}a.effects.save(f,p?l:m);f.show();a.effects.createWrapper(f);f.css("overflow","hidden").css(f.from);if(q=="content"||q=="both"){r=r.concat(["marginTop","marginBottom"]).concat(e);h=h.concat(["marginLeft","marginRight"]);o=l.concat(r).concat(h);f.find("*[width]").each(function(){var t=a(this);if(p){a.effects.save(t,o)}var s={height:t.height(),width:t.width()};t.from={height:s.height*g.from.y,width:s.width*g.from.x};t.to={height:s.height*g.to.y,width:s.width*g.to.x};if(g.from.y!=g.to.y){t.from=a.effects.setTransition(t,r,g.from.y,t.from);t.to=a.effects.setTransition(t,r,g.to.y,t.to)}if(g.from.x!=g.to.x){t.from=a.effects.setTransition(t,h,g.from.x,t.from);t.to=a.effects.setTransition(t,h,g.to.x,t.to)}t.css(t.from);t.animate(t.to,c.duration,c.options.easing,function(){if(p){a.effects.restore(t,o)}})})}f.animate(f.to,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){if(f.to.opacity===0){f.css("opacity",f.from.opacity)}if(i=="hide"){f.hide()}a.effects.restore(f,p?l:m);a.effects.removeWrapper(f);if(c.callback){c.callback.apply(this,arguments)}f.dequeue()}})})}})(jQuery);
/*
* jQuery UI Effects Shake 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Effects/Shake
*
* Depends:
*	jquery.effects.core.js
*/
(function(a,b){a.effects.shake=function(c){return this.queue(function(){var j=a(this),o=["position","top","bottom","left","right"];var l=a.effects.setMode(j,c.options.mode||"effect");var g=c.options.direction||"left";var h=c.options.distance||20;var r=c.options.times||3;var q=c.duration||c.options.duration||140;a.effects.save(j,o);j.show();a.effects.createWrapper(j);var p=(g=="up"||g=="down")?"top":"left";var m=(g=="up"||g=="left")?"pos":"neg";var d={},e={},f={};d[p]=(m=="pos"?"-=":"+=")+h;e[p]=(m=="pos"?"+=":"-=")+h*2;f[p]=(m=="pos"?"-=":"+=")+h*2;j.animate(d,q,c.options.easing);for(var k=1;k<r;k++){j.animate(e,q,c.options.easing).animate(f,q,c.options.easing)}j.animate(e,q,c.options.easing).animate(d,q/2,c.options.easing,function(){a.effects.restore(j,o);a.effects.removeWrapper(j);if(c.callback){c.callback.apply(this,arguments)}});j.queue("fx",function(){j.dequeue()});j.dequeue()})}})(jQuery);
/*
* jQuery UI Effects Slide 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Effects/Slide
*
* Depends:
*	jquery.effects.core.js
*/
(function(a,b){a.effects.slide=function(c){return this.queue(function(){var g=a(this),j=["position","top","bottom","left","right"];var h=a.effects.setMode(g,c.options.mode||"show");var e=c.options.direction||"left";a.effects.save(g,j);g.show();a.effects.createWrapper(g).css({overflow:"hidden"});var k=(e=="up"||e=="down")?"top":"left";var i=(e=="up"||e=="left")?"pos":"neg";var f=c.options.distance||(k=="top"?g.outerHeight(true):g.outerWidth(true));if(h=="show"){g.css(k,i=="pos"?(isNaN(f)?"-"+f:-f):f)}var d={};d[k]=(h=="show"?(i=="pos"?"+=":"-="):(i=="pos"?"-=":"+="))+f;g.animate(d,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){if(h=="hide"){g.hide()}a.effects.restore(g,j);a.effects.removeWrapper(g);if(c.callback){c.callback.apply(this,arguments)}g.dequeue()}})})}})(jQuery);
/*
* jQuery UI Effects Transfer 1.8.23
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Effects/Transfer
*
* Depends:
*	jquery.effects.core.js
*/
(function(a,b){a.effects.transfer=function(c){return this.queue(function(){var e=a(this),h=a(c.options.to),f=h.offset(),d={top:f.top,left:f.left,height:h.innerHeight(),width:h.innerWidth()},g=e.offset(),i=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(c.options.className).css({top:g.top,left:g.left,height:e.innerHeight(),width:e.innerWidth(),position:"absolute"}).animate(d,c.duration,c.options.easing,function(){i.remove();(c.callback&&c.callback.apply(e[0],arguments));e.dequeue()})})}})(jQuery);jQuery(function(a){a.datepicker.regional.sl={closeText:"Zapri",prevText:"&lt;Prej&#x161;nji",nextText:"Naslednji&gt;",currentText:"Trenutni",monthNames:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],dayNames:["Nedelja","Ponedeljek","Torek","Sreda","&#x10C;etrtek","Petek","Sobota"],dayNamesShort:["Ned","Pon","Tor","Sre","&#x10C;et","Pet","Sob"],dayNamesMin:["Ne","Po","To","Sr","&#x10C;e","Pe","So"],weekHeader:"Teden",dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.sl)});(function(a){var d=typeof window.localStorage!=="undefined";function h(j,k){var i;if(typeof j==="string"&&typeof k==="string"){localStorage[j]=k;return true}else{if(typeof j==="object"&&typeof k==="undefined"){for(i in j){if(j.hasOwnProperty(i)){localStorage[i]=j[i]}}return true}}return false}function g(l,m){var j,k,i;j=new Date();j.setTime(j.getTime()+31536000000);k="; expires="+j.toGMTString();if(typeof l==="string"&&typeof m==="string"){document.cookie=l+"="+m+k+"; path=/";return true}else{if(typeof l==="object"&&typeof m==="undefined"){for(i in l){if(l.hasOwnProperty(i)){document.cookie=i+"="+l[i]+k+"; path=/"}}return true}}return false}function f(i){return localStorage[i]}function e(m){var o,k,l,j;o=m+"=";k=document.cookie.split(";");for(l=0;l<k.length;l++){j=k[l];while(j.charAt(0)===" "){j=j.substring(1,j.length)}if(j.indexOf(o)===0){return j.substring(o.length,j.length)}}return null}function c(i){return delete localStorage[i]}function b(i){return g(i,"",-1)}a.extend({Storage:{set:d?h:g,get:d?f:e,remove:d?c:b,setItem:d?h:g,getItem:d?f:e,removeItem:d?c:b}})})(jQuery);eval(function(h,b,d,g,f,i){f=function(a){return(a<b?"":f(parseInt(a/b)))+((a=a%b)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){while(d--){i[f(d)]=g[d]||f(d)}g=[function(a){return i[a]}];f=function(){return"\\w+"};d=1}while(d--){if(g[d]){h=h.replace(new RegExp("\\b"+f(d)+"\\b","g"),g[d])}}return h}("h.i['1a']=h.i['z'];h.O(h.i,{y:'D',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});",62,74,"||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce".split("|"),0,{}));
/* Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and deltaY
*
* Version: 3.0.4
*
* Requires: 1.2.2+
*/
(function(a){function c(d){var f=d||window.event,l=[].slice.call(arguments,1),g=0,k=0,j=0;d=a.event.fix(f);d.type="mousewheel";if(d.wheelDelta){g=d.wheelDelta/120}if(d.detail){g=-d.detail/3}j=g;if(f.axis!==undefined&&f.axis===f.HORIZONTAL_AXIS){j=0;k=-1*g}if(f.wheelDeltaY!==undefined){j=f.wheelDeltaY/120}if(f.wheelDeltaX!==undefined){k=-1*f.wheelDeltaX/120}l.unshift(d,g,k,j);return a.event.handle.apply(this,l)}var b=["DOMMouseScroll","mousewheel"];a.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var d=b.length;d;){this.addEventListener(b[--d],c,false)}}else{this.onmousewheel=c}},teardown:function(){if(this.removeEventListener){for(var d=b.length;d;){this.removeEventListener(b[--d],c,false)}}else{this.onmousewheel=null}}};a.fn.extend({mousewheel:function(d){return d?this.bind("mousewheel",d):this.trigger("mousewheel")},unmousewheel:function(d){return this.unbind("mousewheel",d)}})})(jQuery);(function(){var a=$.ui.dialog.prototype._create;$.ui.dialog.prototype._create=function(b){a.call(this,b);var i=this,h=i.options,f=h.height,g=h.width;i.options.maximized=false;var c=function(d){if(d.options.maximized){d._setOptions({height:f,width:g,maximized:false});d._trigger("resize",$.Event("restore"))}else{d._setOptions({height:window.innerHeight-10,width:window.innerWidth-30,maximized:true});d._trigger("resize",$.Event("maximize"))}d._position("center");return false};var e=function(d){d.options.maximized=true;c(d);return false};if(h.resizable){var j=$('<a href="#"></a>').addClass("ui-dialog-titlebar-full ui-corner-all").attr("role","button").hover(function(){j.addClass("ui-state-hover")},function(){j.removeClass("ui-state-hover")}).toggle(function(){c(i)},function(){c(i)}).focus(function(){j.addClass("ui-state-focus")}).blur(function(){j.removeClass("ui-state-focus")}).appendTo(i.uiDialogTitlebar),k=$("<span></span>").addClass("ui-icon ui-icon-newwin").text(h.fullText).appendTo(j)}};$.ui.dialog.prototype.maximize=function(b){var c=this;c._setOptions({height:window.innerHeight-10,width:window.innerWidth-30,maximized:true});c._position("center");c._trigger("resize",$.Event("maximize"));return false};$.ui.dialog.prototype.restore=function(b){var c=this;c._setOptions({height:c.options.minHeight,width:c.options.minWidth,maximized:false});c._position("center");c._trigger("resize",$.Event("restore"));return false};$.ui.dialog.prototype.redraw=function(b){var c=this;c._position("center");c._trigger("resize",$.Event("redraw"));return false}})();
/* Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
 * Licensed under the MIT License (LICENSE.txt).
 *
 * Version 2.1.2
 */
(function(a){a.fn.bgiframe=(a.browser.msie&&/msie 6\.0/i.test(navigator.userAgent)?function(d){d=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},d);var c='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+d.src+'"style="display:block;position:absolute;z-index:-1;'+(d.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(d.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":b(d.top))+";left:"+(d.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":b(d.left))+";width:"+(d.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":b(d.width))+";height:"+(d.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":b(d.height))+';"/>';return this.each(function(){if(a(this).children("iframe.bgiframe").length===0){this.insertBefore(document.createElement(c),this.firstChild)}})}:function(){return this});a.fn.bgIframe=a.fn.bgiframe;function b(c){return c&&c.constructor===Number?c+"px":c}})(jQuery);jQuery.cookie=function(c,g,d){if(arguments.length>1&&(g===null||typeof g!=="object")){d=jQuery.extend({},d);if(g===null){d.expires=-1}if(typeof d.expires==="number"){var a=d.expires,f=d.expires=new Date();f.setDate(f.getDate()+a)}return(document.cookie=[encodeURIComponent(c),"=",d.raw?String(g):encodeURIComponent(String(g)),d.expires?"; expires="+d.expires.toUTCString():"",d.path?"; path="+d.path:"",d.domain?"; domain="+d.domain:"",d.secure?"; secure":""].join(""))}d=g||{};var e,b=d.raw?function(h){return h}:decodeURIComponent;return(e=new RegExp("(?:^|; )"+encodeURIComponent(c)+"=([^;]*)").exec(document.cookie))?b(e[1]):null};(function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(type,name){this.defaults.type=type;this.defaults.name=name},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length){settings.single="metadata"}var data=$.data(elem,settings.single);if(data){return data}data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m){data=m[1]}}else{if(settings.type=="elem"){if(!elem.getElementsByTagName){return undefined}var e=elem.getElementsByTagName(settings.name);if(e.length){data=$.trim(e[0].innerHTML)}}else{if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr){data=attr}}}}if(data.indexOf("{")<0){data="{"+data+"}"}data=eval("("+data+")");$.data(elem,settings.single,data);return data}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts)}})(jQuery);
/*
 * jQuery blockUI plugin
 * Version 2.39 (23-MAY-2011)
 * @requires jQuery v1.2.3 or later
 *
 * Examples at: http://malsup.com/jquery/block/
 * Copyright (c) 2007-2010 M. Alsup
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * Thanks to Amir-Hossein Sobhi for some excellent contributions!
 */
(function(a){if(/1\.(0|1|2)\.(0|1|2)/.test(a.fn.jquery)||/^1.1/.test(a.fn.jquery)){alert("blockUI requires jQuery v1.2.3 or later!  You are using v"+a.fn.jquery);return}a.fn._fadeIn=a.fn.fadeIn;var i=function(){};var h=document.documentMode||0;var o=a.browser.msie&&((a.browser.version<8&&!h)||h<8);var f=a.browser.msie&&/MSIE 6.0/.test(navigator.userAgent)&&!h;a.blockUI=function(q){g(window,q)};a.unblockUI=function(q){l(window,q)};a.growlUI=function(u,r,t,s){var q=a('<div class="growlUI"></div>');if(u){q.append("<h1>"+u+"</h1>")}if(r){q.append("<h2>"+r+"</h2>")}if(t==undefined){t=3000}a.blockUI({message:q,fadeIn:700,fadeOut:1000,centerY:false,timeout:t,showOverlay:false,onUnblock:s,css:a.blockUI.defaults.growlCSS})};a.fn.block=function(q){return this.unblock({fadeOut:0}).each(function(){if(a.css(this,"position")=="static"){this.style.position="relative"}if(a.browser.msie){this.style.zoom=1}g(this,q)})};a.fn.unblock=function(q){return this.each(function(){l(this,q)})};a.blockUI.version=2.39;a.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:true,theme:false,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:0.6,cursor:"wait"},growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:0.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:false,baseZ:1000,centerX:true,centerY:true,allowBodyStretch:true,bindEvents:true,constrainTabKey:true,fadeIn:200,fadeOut:400,timeout:0,showOverlay:true,focusInput:true,applyPlatformOpacityRules:true,onBlock:null,onUnblock:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg"};var j=null;var k=[];function g(y,L){var D=(y==window);var J=L&&L.message!==undefined?L.message:undefined;L=a.extend({},a.blockUI.defaults,L||{});L.overlayCSS=a.extend({},a.blockUI.defaults.overlayCSS,L.overlayCSS||{});var w=a.extend({},a.blockUI.defaults.css,L.css||{});var O=a.extend({},a.blockUI.defaults.themedCSS,L.themedCSS||{});J=J===undefined?L.message:J;if(D&&j){l(window,{fadeOut:0})}if(J&&typeof J!="string"&&(J.parentNode||J.jquery)){var K=J.jquery?J[0]:J;var x={};a(y).data("blockUI.history",x);x.el=K;x.parent=K.parentNode;x.display=K.style.display;x.position=K.style.position;if(x.parent){x.parent.removeChild(K)}}a(y).data("blockUI.onUnblock",L.onUnblock);var Q=L.baseZ;var G=(a.browser.msie||L.forceIframe)?a('<iframe class="blockUI" style="z-index:'+(Q++)+';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+L.iframeSrc+'"></iframe>'):a('<div class="blockUI" style="display:none"></div>');var H=L.theme?a('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+(Q++)+';display:none"></div>'):a('<div class="blockUI blockOverlay" style="z-index:'+(Q++)+';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');var I,M;if(L.theme&&D){M='<div class="blockUI '+L.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(Q+10)+';display:none;position:fixed"><div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(L.title||"&nbsp;")+'</div><div class="ui-widget-content ui-dialog-content"></div></div>'}else{if(L.theme){M='<div class="blockUI '+L.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(Q+10)+';display:none;position:absolute"><div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(L.title||"&nbsp;")+'</div><div class="ui-widget-content ui-dialog-content"></div></div>'}else{if(D){M='<div class="blockUI '+L.blockMsgClass+' blockPage" style="z-index:'+(Q+10)+';display:none;position:fixed"></div>'}else{M='<div class="blockUI '+L.blockMsgClass+' blockElement" style="z-index:'+(Q+10)+';display:none;position:absolute"></div>'}}}I=a(M);if(J){if(L.theme){I.css(O);I.addClass("ui-widget-content")}else{I.css(w)}}if(!L.theme&&(!L.applyPlatformOpacityRules||!(a.browser.mozilla&&/Linux/.test(navigator.platform)))){H.css(L.overlayCSS)}H.css("position",D?"fixed":"absolute");if(a.browser.msie||L.forceIframe){G.css("opacity",0)}var F=[G,H,I],q=D?a("body"):a(y);a.each(F,function(){this.appendTo(q)});if(L.theme&&L.draggable&&a.fn.draggable){I.draggable({handle:".ui-dialog-titlebar",cancel:"li"})}var A=o&&(!a.boxModel||a("object,embed",D?null:y).length>0);if(f||A){if(D&&L.allowBodyStretch&&a.boxModel){a("html,body").css("height","100%")}if((f||!a.boxModel)&&!D){var N=p(y,"borderTopWidth"),E=p(y,"borderLeftWidth");var C=N?"(0 - "+N+")":0;var B=E?"(0 - "+E+")":0}a.each([G,H,I],function(z,R){var S=R[0].style;S.position="absolute";if(z<2){D?S.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:"+L.quirksmodeOffsetHack+') + "px"'):S.setExpression("height",'this.parentNode.offsetHeight + "px"');D?S.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):S.setExpression("width",'this.parentNode.offsetWidth + "px"');if(B){S.setExpression("left",B)}if(C){S.setExpression("top",C)}}else{if(L.centerY){if(D){S.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"')}S.marginTop=0}else{if(!L.centerY&&D){var T=(L.css&&L.css.top)?parseInt(L.css.top):0;var t="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+T+') + "px"';S.setExpression("top",t)}}}})}if(J){if(L.theme){I.find(".ui-widget-content").append(J)}else{I.append(J)}if(J.jquery||J.nodeType){a(J).show()}}if((a.browser.msie||L.forceIframe)&&L.showOverlay){G.show()}if(L.fadeIn){var r=L.onBlock?L.onBlock:i;var u=(L.showOverlay&&!J)?r:i;var v=J?r:i;if(L.showOverlay){H._fadeIn(L.fadeIn,u)}if(J){I._fadeIn(L.fadeIn,v)}}else{if(L.showOverlay){H.show()}if(J){I.show()}if(L.onBlock){L.onBlock()}}b(1,y,L);if(D){j=I[0];k=a(":input:enabled:visible",j);if(L.focusInput){setTimeout(d,20)}}else{c(I[0],L.centerX,L.centerY)}if(L.timeout){var P=setTimeout(function(){D?a.unblockUI(L):a(y).unblock(L)},L.timeout);a(y).data("blockUI.timeout",P)}}function l(s,v){var u=(s==window);var q=a(s);var r=q.data("blockUI.history");var w=q.data("blockUI.timeout");if(w){clearTimeout(w);q.removeData("blockUI.timeout")}v=a.extend({},a.blockUI.defaults,v||{});b(0,s,v);if(v.onUnblock===null){v.onUnblock=q.data("blockUI.onUnblock");q.removeData("blockUI.onUnblock")}var t;if(u){t=a("body").children().filter(".blockUI").add("body > .blockUI")}else{t=a(".blockUI",s)}if(u){j=k=null}if(v.fadeOut){t.fadeOut(v.fadeOut);setTimeout(function(){m(t,r,v,s)},v.fadeOut)}else{m(t,r,v,s)}}function m(s,q,t,r){s.each(function(u,v){if(this.parentNode){this.parentNode.removeChild(this)}});if(q&&q.el){q.el.style.display=q.display;q.el.style.position=q.position;if(q.parent){q.parent.appendChild(q.el)}a(r).removeData("blockUI.history")}if(typeof t.onUnblock=="function"){t.onUnblock(r,t)}}function b(r,s,v){var u=s==window,q=a(s);if(!r&&(u&&!j||!u&&!q.data("blockUI.isBlocked"))){return}if(!u){q.data("blockUI.isBlocked",r)}if(!v.bindEvents||(r&&!v.showOverlay)){return}var t="mousedown mouseup keydown keypress";r?a(document).bind(t,v,e):a(document).unbind(t,e)}function e(r){if(r.keyCode&&r.keyCode==9){if(j&&r.data.constrainTabKey){var s=k;var t=!r.shiftKey&&r.target===s[s.length-1];var q=r.shiftKey&&r.target===s[0];if(t||q){setTimeout(function(){d(q)},10);return false}}}var u=r.data;if(a(r.target).parents("div."+u.blockMsgClass).length>0){return true}return a(r.target).parents().children().filter("div.blockUI").length==0}function d(q){if(!k){return}var r=k[q===true?k.length-1:0];if(r){r.focus()}}function c(q,z,A){var u=q.parentNode,v=q.style;var r=((u.offsetWidth-q.offsetWidth)/2)-p(u,"borderLeftWidth");var w=((u.offsetHeight-q.offsetHeight)/2)-p(u,"borderTopWidth");if(z){v.left=r>0?(r+"px"):"0"}if(A){v.top=w>0?(w+"px"):"0"}}function p(q,r){return parseInt(a.css(q,r))||0}})(jQuery);(function(a){var U,F,L,V,K,w,v,R,I,J,N=0,O={},M=[],y=0,z={},x=[],t=null,C=new Image(),D=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,Q=/[^\.]\.(swf)\s*$/i,H,G=1,S=0,T="",P,A,u=false,B=a.extend(a("<div/>")[0],{prop:0}),E=a.browser.msie&&a.browser.version<7&&!window.XMLHttpRequest,b=function(){F.hide();C.onerror=C.onload=null;if(t){t.abort()}U.empty()},e=function(){if(false===O.onError(M,N,O)){F.hide();u=false;return}O.titleShow=false;O.width="auto";O.height="auto";U.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');o()},s=function(){var Y=M[N],X,ac,ab,aa,W,Z;b();O=a.extend({},a.fn.fancybox.defaults,(typeof a(Y).data("fancybox")=="undefined"?O:a(Y).data("fancybox")));Z=O.onStart(M,N,O);if(Z===false){u=false;return}else{if(typeof Z=="object"){O=a.extend(O,Z)}}ab=O.title||(Y.nodeName?a(Y).attr("title"):Y.title)||"";if(Y.nodeName&&!O.orig){O.orig=a(Y).children("img:first").length?a(Y).children("img:first"):a(Y)}if(ab===""&&O.orig&&O.titleFromAlt){ab=O.orig.attr("alt")}X=O.href||(Y.nodeName?a(Y).attr("href"):Y.href)||null;if((/^(?:javascript)/i).test(X)||X=="#"){X=null}if(O.type){ac=O.type;if(!X){X=O.content}}else{if(O.content){ac="html"}else{if(X){if(X.match(D)){ac="image"}else{if(X.match(Q)){ac="swf"}else{if(a(Y).hasClass("iframe")){ac="iframe"}else{if(X.indexOf("#")===0){ac="inline"}else{ac="ajax"}}}}}}}if(!ac){e();return}if(ac=="inline"){Y=X.substr(X.indexOf("#"));ac=a(Y).length>0?"inline":"ajax"}O.type=ac;O.href=X;O.title=ab;if(O.autoDimensions){if(O.type=="html"||O.type=="inline"||O.type=="ajax"){O.width="auto";O.height="auto"}else{O.autoDimensions=false}}if(O.modal){O.overlayShow=true;O.hideOnOverlayClick=false;O.hideOnContentClick=false;O.enableEscapeButton=false;O.showCloseButton=false}O.padding=parseInt(O.padding,10);O.margin=parseInt(O.margin,10);U.css("padding",(O.padding+O.margin));a(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){a(this).replaceWith(w.children())});switch(ac){case"html":U.html(O.content);o();break;case"inline":if(a(Y).parent().is("#fancybox-content")===true){u=false;return}a('<div class="fancybox-inline-tmp" />').hide().insertBefore(a(Y)).bind("fancybox-cleanup",function(){a(this).replaceWith(w.children())}).bind("fancybox-cancel",function(){a(this).replaceWith(U.children())});a(Y).appendTo(U);o();break;case"image":u=false;a.fancybox.showActivity();C=new Image();C.onerror=function(){e()};C.onload=function(){u=true;C.onerror=C.onload=null;m()};C.src=X;break;case"swf":O.scrolling="no";aa='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+O.width+'" height="'+O.height+'"><param name="movie" value="'+X+'"></param>';W="";a.each(O.swf,function(ad,ae){aa+='<param name="'+ad+'" value="'+ae+'"></param>';W+=" "+ad+'="'+ae+'"'});aa+='<embed src="'+X+'" type="application/x-shockwave-flash" width="'+O.width+'" height="'+O.height+'"'+W+"></embed></object>";U.html(aa);o();break;case"ajax":u=false;a.fancybox.showActivity();O.ajax.win=O.ajax.success;t=a.ajax(a.extend({},O.ajax,{url:X,data:O.ajax.data||{},error:function(af,ae,ad){if(af.status>0){e()}},success:function(ad,af,ag){var ae=typeof ag=="object"?ag:t;if(ae.status==200){if(typeof O.ajax.win=="function"){Z=O.ajax.win(X,ad,af,ag);if(Z===false){F.hide();return}else{if(typeof Z=="string"||typeof Z=="object"){ad=Z}}}U.html(ad);o()}}}));break;case"iframe":r();break}},o=function(){var X=O.width,W=O.height;if(X.toString().indexOf("%")>-1){X=parseInt((a(window).width()-(O.margin*2))*parseFloat(X)/100,10)+"px"}else{X=X=="auto"?"auto":X+"px"}if(W.toString().indexOf("%")>-1){W=parseInt((a(window).height()-(O.margin*2))*parseFloat(W)/100,10)+"px"}else{W=W=="auto"?"auto":W+"px"}U.wrapInner('<div style="width:'+X+";height:"+W+";overflow: "+(O.scrolling=="auto"?"auto":(O.scrolling=="yes"?"scroll":"hidden"))+';position:relative;"></div>');O.width=U.width();O.height=U.height();r()},m=function(){O.width=C.width;O.height=C.height;a("<img />").attr({id:"fancybox-img",src:C.src,alt:O.title}).appendTo(U);r()},r=function(){var X,W;F.hide();if(V.is(":visible")&&false===z.onCleanup(x,y,z)){a.event.trigger("fancybox-cancel");u=false;return}u=true;a(w.add(L)).unbind();a(window).unbind("resize.fb scroll.fb");a(document).unbind("keydown.fb");if(V.is(":visible")&&z.titlePosition!=="outside"){V.css("height",V.height())}x=M;y=N;z=O;if(z.overlayShow){L.css({"background-color":z.overlayColor,opacity:z.overlayOpacity,cursor:z.hideOnOverlayClick?"pointer":"auto",height:a(document).height()});if(!L.is(":visible")){if(E){a("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"})}L.show()}}else{L.hide()}A=k();p();if(V.is(":visible")){a(v.add(I).add(J)).hide();X=V.position(),P={top:X.top,left:X.left,width:V.width(),height:V.height()};W=(P.width==A.width&&P.height==A.height);w.fadeTo(z.changeFade,0.3,function(){var Y=function(){w.html(U.contents()).fadeTo(z.changeFade,1,f)};a.event.trigger("fancybox-change");w.empty().removeAttr("filter").css({"border-width":z.padding,width:A.width-z.padding*2,height:O.autoDimensions?"auto":A.height-S-z.padding*2});if(W){Y()}else{B.prop=0;a(B).animate({prop:1},{duration:z.changeSpeed,easing:z.easingChange,step:d,complete:Y})}});return}V.removeAttr("style");w.css("border-width",z.padding);if(z.transitionIn=="elastic"){P=j();w.html(U.contents());if(z.type!="iframe"){V.show()}if(z.opacity){A.opacity=0}B.prop=0;a(B).animate({prop:1},{duration:z.speedIn,easing:z.easingIn,step:d,complete:f});return}if(z.titlePosition=="inside"&&S>0){R.show()}w.css({width:A.width-z.padding*2,height:O.autoDimensions?"auto":A.height-S-z.padding*2}).html(U.contents());V.css(A).fadeIn(z.transitionIn=="none"?0:z.speedIn,f)},g=function(W){if(W&&W.length){if(z.titlePosition=="float"){return'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+W+'</td><td id="fancybox-title-float-right"></td></tr></table>'}else{if(z.titlePosition=="title"){return W}}return'<div id="fancybox-title-'+z.titlePosition+'">'+W+"</div>"}return false},p=function(){T=z.title||"";S=0;R.empty().removeAttr("style").removeClass();if(z.titleShow===false){R.hide();return}T=a.isFunction(z.titleFormat)?z.titleFormat(T,x,y,z):g(T);if(!T||T===""){R.hide();return}R.addClass("fancybox-title-"+z.titlePosition).html(T).appendTo("body").show();switch(z.titlePosition){case"inside":R.css({width:A.width-(z.padding*2),marginLeft:z.padding,marginRight:z.padding});S=R.outerHeight(true);R.appendTo(K);A.height+=S;break;case"over":R.css({marginLeft:z.padding,width:A.width-(z.padding*2),bottom:z.padding}).appendTo(K);break;case"float":R.css("left",parseInt((R.width()-A.width-40)/2,10)*-1).appendTo(V);break;case"title":S=R.outerHeight(true);R.prependTo(K);break;default:R.css({width:A.width-(z.padding*2),paddingLeft:z.padding,paddingRight:z.padding}).appendTo(V);break}R.hide()},q=function(){if(z.enableEscapeButton||z.enableKeyboardNav){a(document).bind("keydown.fb",function(W){if(W.keyCode==27&&z.enableEscapeButton){W.preventDefault();a.fancybox.close()}else{if((W.keyCode==37||W.keyCode==39)&&z.enableKeyboardNav&&W.target.tagName!=="INPUT"&&W.target.tagName!=="TEXTAREA"&&W.target.tagName!=="SELECT"){W.preventDefault();a.fancybox[W.keyCode==37?"prev":"next"]()}}})}if(!z.showNavArrows){I.hide();J.hide();return}if((z.cyclic&&x.length>1)||y!==0){I.show()}if((z.cyclic&&x.length>1)||y!=(x.length-1)){J.show()}},f=function(){if(!a.support.opacity){w.get(0).style.removeAttribute("filter");V.get(0).style.removeAttribute("filter")}if(O.autoDimensions){w.css("height","auto")}V.css("height","auto");if(T&&T.length){R.show()}if(z.showCloseButton){v.show()}q();if(z.hideOnContentClick){w.bind("click",a.fancybox.close)}if(z.hideOnOverlayClick){L.bind("click",a.fancybox.close)}a(window).bind("resize.fb",a.fancybox.resize);if(z.centerOnScroll){a(window).bind("scroll.fb",a.fancybox.center)}if(z.type=="inline"){if(z.autoScale){var W=w;if(W){var Z=W.width();var Y=W.height();if(Z>=20&&Y>=20){w.css({width:Z+1,height:Y+1});K.css({width:Z+z.padding*2+1,height:Y+S+z.padding+1});V.css({width:Z+z.padding*2+1,height:Y+S+z.padding+1})}else{if(Z>=20){w.css({width:Z+1,height:"auto"});K.css({width:Z+z.padding*2+1,height:"auto"});V.css({width:Z+z.padding*2+1,height:"auto"})}else{w.css({width:"auto",height:"auto"});K.css({width:"auto",height:"auto"});V.css({width:"auto",height:"auto"})}}V.show();a.fancybox.center(true);V.css({opacity:"0",visibility:"visible"}).animate({opacity:1},1)}}}else{if(z.type=="iframe"){if(a.browser.opera&&O.scrolling=="auto"){O.scrolling="no"}var ab=z.href;var ac=a(this).fancybox.hrefParams;if(M!=undefined&&N>=0&&N<M.length){var aa=M[N];if(aa!=undefined&&aa!=null){if(ac&&aa.hrefParams){ac+="|"+aa.hrefParams}else{if(aa.hrefParams){ac=aa.hrefParams}}}}if(ac){ab=ab+"?params="+ac}var X=a('<iframe id="fancybox-frame" name="fancybox-frame'+new Date().getTime()+'" frameborder="0" hspace="0" '+(a.browser.msie?'allowtransparency="true""':"")+' scrolling="'+O.scrolling+'" src="'+ab+'"></iframe>');X.appendTo(w);V.css({visibility:"hidden"});X.load(function(){if(z.autoScale){var ad=X.contents().find("#divModalHolder");if(ad){var af=ad.width();var ae=ad.height();if(af>=20&&ae>=20){w.css({width:af+1,height:ae+1});K.css({width:af+z.padding*2+1,height:ae+S+z.padding+1});V.css({width:af+z.padding*2+1,height:ae+S+z.padding+1})}V.show();a.fancybox.center(true);V.css({opacity:"0",visibility:"visible"}).animate({opacity:1},1)}}})}else{V.show()}}u=false;a.fancybox.center();z.onComplete(x,y,z);l()},l=function(){var W,X;if((x.length-1)>y){W=x[y+1].href;if(typeof W!=="undefined"&&W.match(D)){X=new Image();X.src=W}}if(y>0){W=x[y-1].href;if(typeof W!=="undefined"&&W.match(D)){X=new Image();X.src=W}}},d=function(X){var W={width:parseInt(P.width+(A.width-P.width)*X,10),height:parseInt(P.height+(A.height-P.height)*X,10),top:parseInt(P.top+(A.top-P.top)*X,10),left:parseInt(P.left+(A.left-P.left)*X,10)};if(typeof A.opacity!=="undefined"){W.opacity=X<0.5?0.5:X}V.css(W);w.css({width:W.width-z.padding*2,height:W.height-(S*X)-z.padding*2})},i=function(){return[a(window).width()-(z.margin*2),a(window).height()-(z.margin*2),a(document).scrollLeft()+z.margin,a(document).scrollTop()+z.margin]},k=function(){var aa=i(),Z={},Y=z.autoScale,W=z.padding*2,X;if(z.width.toString().indexOf("%")>-1){Z.width=parseInt((aa[0]*parseFloat(z.width))/100,10)}else{Z.width=z.width+W}if(z.height.toString().indexOf("%")>-1){Z.height=parseInt((aa[1]*parseFloat(z.height))/100,10)}else{Z.height=z.height+W}if(Y&&(Z.width>aa[0]||Z.height>aa[1])){if(O.type=="image"||O.type=="swf"){X=(z.width)/(z.height);if((Z.width)>aa[0]){Z.width=aa[0];Z.height=parseInt(((Z.width-W)/X)+W,10)}if((Z.height)>aa[1]){Z.height=aa[1];Z.width=parseInt(((Z.height-W)*X)+W,10)}}else{Z.width=Math.min(Z.width,aa[0]);Z.height=Math.min(Z.height,aa[1])}}Z.top=parseInt(Math.max(aa[3]-20,aa[3]+((aa[1]-Z.height-40)*0.5)),10);Z.left=parseInt(Math.max(aa[2]-20,aa[2]+((aa[0]-Z.width-40)*0.5)),10);return Z},h=function(W){var X=W.offset();X.top+=parseInt(W.css("paddingTop"),10)||0;X.left+=parseInt(W.css("paddingLeft"),10)||0;X.top+=parseInt(W.css("border-top-width"),10)||0;X.left+=parseInt(W.css("border-left-width"),10)||0;X.width=W.width();X.height=W.height();return X},j=function(){var X=O.orig?a(O.orig):false,W={},Y,Z;if(X&&X.length){Y=h(X);W={width:Y.width+(z.padding*2),height:Y.height+(z.padding*2),top:Y.top-z.padding-20,left:Y.left-z.padding-20}}else{Z=i();W={width:z.padding*2,height:z.padding*2,top:parseInt(Z[3]+Z[1]*0.5,10),left:parseInt(Z[2]+Z[0]*0.5,10)}}return W},c=function(){if(!F.is(":visible")){clearInterval(H);return}a("div",F).css("top",(G*-40)+"px");G=(G+1)%12};a.fn.fancybox=function(W){if(!a(this).length){return this}a(this).data("fancybox",a.extend({},W,(a.metadata?a(this).metadata():{}))).unbind("click.fb").bind("click.fb",function(X){X.preventDefault();if(u){return}u=true;a(this).blur();M=[];N=0;var Y=a(this).attr("rel")||"";if(!Y||Y==""||Y==="nofollow"){M.push(this)}else{M=a("a[rel="+Y+"], area[rel="+Y+"]");N=M.index(this)}s();return});return this};a.fancybox=function(Y){var Z;if(u){return}u=true;Z=typeof arguments[1]!=="undefined"?arguments[1]:{};M=[];N=parseInt(Z.index,10)||0;if(a.isArray(Y)){for(var W=0,X=Y.length;W<X;W++){if(typeof Y[W]=="object"){a(Y[W]).data("fancybox",a.extend({},Z,Y[W]))}else{Y[W]=a({}).data("fancybox",a.extend({content:Y[W]},Z))}}M=jQuery.merge(M,Y)}else{if(typeof Y=="object"){a(Y).data("fancybox",a.extend({},Z,Y))}else{Y=a({}).data("fancybox",a.extend({content:Y},Z))}M.push(Y)}if(N>M.length||N<0){N=0}s()};a.fancybox.showActivity=function(){clearInterval(H);F.show();H=setInterval(c,66)};a.fancybox.hideActivity=function(){F.hide()};a.fancybox.next=function(){return a.fancybox.pos(y+1)};a.fancybox.prev=function(){return a.fancybox.pos(y-1)};a.fancybox.pos=function(W){if(u){return}W=parseInt(W);M=x;if(W>-1&&W<x.length){N=W;s()}else{if(z.cyclic&&x.length>1){N=W>=x.length?0:x.length-1;s()}}return};a.fancybox.cancel=function(){if(u){return}u=true;a.event.trigger("fancybox-cancel");b();O.onCancel(M,N,O);u=false};a.fancybox.close=function(){if(u||V.is(":hidden")){return}u=true;if(z&&false===z.onCleanup(x,y,z)){u=false;return}b();a(v.add(I).add(J)).hide();a(w.add(L)).unbind();a(window).unbind("resize.fb scroll.fb");a(document).unbind("keydown.fb");w.find("iframe").attr("src",E&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");if(z.titlePosition!=="inside"){R.empty()}V.stop();function W(){L.fadeOut("fast");R.empty().hide();V.hide();a.event.trigger("fancybox-cleanup");w.empty();z.onClosed(x,y,z);x=O=[];y=N=0;z=O={};u=false}if(z.transitionOut=="elastic"){P=j();var X=V.position();A={top:X.top,left:X.left,width:V.width(),height:V.height()};if(z.opacity){A.opacity=1}R.empty().hide();B.prop=1;a(B).animate({prop:0},{duration:z.speedOut,easing:z.easingOut,step:d,complete:W})}else{V.fadeOut(z.transitionOut=="none"?0:z.speedOut,W)}};a.fancybox.resize=function(){if(L.is(":visible")){L.css("height",a(document).height())}a.fancybox.center(true)};a.fancybox.resizeFrame=function(W,Z){W.stopPropagation();var Y=Z.size.width;var X=Z.size.height;if(Y>=20&&X>=20){w.css({width:Y+1,height:X+1});K.css({width:Y+z.padding*2+1,height:X+S+z.padding+1});V.css({width:Y+z.padding*2+1,height:X+S+z.padding+1})}};a.fancybox.center=function(){var X,W;if(u){return}W=arguments[0]===true?1:0;X=i();if(!W&&(V.width()>X[0]||V.height()>X[1])){return}V.stop().animate({top:parseInt(Math.max(X[3]-20,X[3]+((X[1]-w.height()-40)*0.5)-z.padding)),left:parseInt(Math.max(X[2]-20,X[2]+((X[0]-w.width()-40)*0.5)-z.padding))},typeof arguments[0]=="number"?arguments[0]:200)};a.fancybox.init=function(){if(a("#fancybox-wrap").length){return}a("body").append(V=a('<div id="fancybox-wrap"></div>'),U=a('<div id="fancybox-tmp"></div>'),F=a('<div id="fancybox-loading"><div></div></div>'),L=a('<div id="fancybox-overlay"></div>'));K=a('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(V);K.append(w=a('<div id="fancybox-content"></div>'),v=a('<a id="fancybox-close"></a>'),R=a('<div id="fancybox-title"></div>'),I=a('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),J=a('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));v.click(a.fancybox.close);F.click(a.fancybox.cancel);I.click(function(W){W.preventDefault();a.fancybox.prev()});J.click(function(W){W.preventDefault();a.fancybox.next()});if(a.fn.mousewheel){V.bind("mousewheel.fb",function(X,W){if(u){X.preventDefault()}else{if(a(X.target).get(0).clientHeight==0||a(X.target).get(0).scrollHeight===a(X.target).get(0).clientHeight){X.preventDefault();a.fancybox[W>0?"prev":"next"]()}}})}if(!a.support.opacity){V.addClass("fancybox-ie")}if(E){F.addClass("fancybox-ie6");V.addClass("fancybox-ie6");a('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(K)}};a.fn.fancybox.defaults={padding:4,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};a(document).ready(function(){a.fancybox.init()})})(jQuery);(function(i,h){var g=i.document;var a=i.jQuery;a.fn.printElement=function(k){var j=a.extend({},a.fn.printElement["defaults"],k);if(j.printMode=="iframe"){if(a.browser.opera||(/chrome/.test(navigator.userAgent.toLowerCase()))){j.printMode="popup"}}a("[id^='printElement_']").remove();return this.each(function(){var l=a.meta?a.extend({},j,a(this).data()):j;f(a(this),l)})};a.fn.printElement["defaults"]={printMode:"iframe",pageTitle:"",overrideElementCSS:null,printBodyOptions:{styleToAdd:"padding:10px;margin:10px;",classNameToAdd:""},leaveOpen:false,iframeElementOptions:{styleToAdd:"border:none;position:absolute;width:0px;height:0px;bottom:0px;left:0px;",classNameToAdd:""}};a.fn.printElement["cssElement"]={href:"",media:""};function f(k,o){var l=e(k,o);var p=null;var j=null;if(o.printMode.toLowerCase()=="popup"){p=i.open("about:blank","printElementWindow","width=650,height=440,scrollbars=yes");j=p.document}else{var q="printElement_"+(Math.round(Math.random()*99999)).toString();var m=g.createElement("IFRAME");a(m).attr({style:o.iframeElementOptions["styleToAdd"],id:q,className:o.iframeElementOptions["classNameToAdd"],frameBorder:0,scrolling:"no",src:"about:blank"});g.body.appendChild(m);j=(m.contentWindow||m.contentDocument);if(j.document){j=j.document}m=g.frames?g.frames[q]:g.getElementById(q);p=m.contentWindow||m}focus();j.open();j.write(l);j.close();b(p)}function b(j){if(j&&j.printPage){j.printPage()}else{setTimeout(function(){b(j)},50)}}function d(k){var j=a(k);a(":checked",j).each(function(){this.setAttribute("checked","checked")});a("input[type='text']",j).each(function(){this.setAttribute("value",a(this).val())});a("select",j).each(function(){var m=a(this);a("option",m).each(function(){if(m.val()==a(this).val()){this.setAttribute("selected","selected")}})});a("textarea",j).each(function(){var m=a(this).attr("value");if(a.browser.mozilla&&this.firstChild){this.firstChild.textContent=m}else{this.innerHTML=m}});var l=a("<div></div>").append(j.clone()).html();return l}function c(){var j=(i.location.port)?":"+i.location.port:"";return i.location.protocol+"//"+i.location.hostname+j+i.location.pathname}function e(l,p){var j=a(l);var m=d(l);var o=new Array();o.push("<html><head><title>"+p.pageTitle+"</title>");if(p.overrideElementCSS){if(p.overrideElementCSS.length>0){for(var q=0;q<p.overrideElementCSS.length;q++){var k=p.overrideElementCSS[q];if(typeof(k)=="string"){o.push('<link type="text/css" rel="stylesheet" href="'+k+'" >')}else{o.push('<link type="text/css" rel="stylesheet" href="'+k.href+'" media="'+k.media+'" >')}}}}else{a("link",g).filter(function(){return a(this).attr("rel").toLowerCase()=="stylesheet"}).each(function(){o.push('<link type="text/css" rel="stylesheet" href="'+a(this).attr("href")+'" media="'+a(this).attr("media")+'" >')})}o.push('<base href="'+c()+'" />');o.push('</head><body style="'+p.printBodyOptions["styleToAdd"]+'" class="'+p.printBodyOptions["classNameToAdd"]+'">');o.push('<div class="'+j.attr("class")+'">'+m+"</div>");o.push('<script type="text/javascript">function printPage(){focus();print();'+((!a.browser.opera&&!p.leaveOpen&&p.printMode.toLowerCase()=="popup")?"close();":"")+"}</script>");o.push("</body></html>");return o.join("")}})(window);
/*
 * JSizes - JQuery plugin v0.33
 *
 * Licensed under the revised BSD License.
 * Copyright 2008-2010 Bram Stein
 * All rights reserved.
 */
(function(a){var b=function(c){return parseInt(c,10)||0};a.each(["min","max"],function(c,d){a.fn[d+"Size"]=function(f){var g,e;if(f){if(f.width!==undefined){this.css(d+"-width",f.width)}if(f.height!==undefined){this.css(d+"-height",f.height)}return this}else{g=this.css(d+"-width");e=this.css(d+"-height");return{width:(d==="max"&&(g===undefined||g==="none"||b(g)===-1)&&Number.MAX_VALUE)||b(g),height:(d==="max"&&(e===undefined||e==="none"||b(e)===-1)&&Number.MAX_VALUE)||b(e)}}}});a.fn.isVisible=function(){return this.is(":visible")};a.each(["border","margin","padding"],function(c,d){a.fn[d]=function(e){if(e){if(e.top!==undefined){this.css(d+"-top"+(d==="border"?"-width":""),e.top)}if(e.bottom!==undefined){this.css(d+"-bottom"+(d==="border"?"-width":""),e.bottom)}if(e.left!==undefined){this.css(d+"-left"+(d==="border"?"-width":""),e.left)}if(e.right!==undefined){this.css(d+"-right"+(d==="border"?"-width":""),e.right)}return this}else{return{top:b(this.css(d+"-top"+(d==="border"?"-width":""))),bottom:b(this.css(d+"-bottom"+(d==="border"?"-width":""))),left:b(this.css(d+"-left"+(d==="border"?"-width":""))),right:b(this.css(d+"-right"+(d==="border"?"-width":"")))}}}})})(jQuery);(function(){jLayout=(typeof jLayout==="undefined")?{}:jLayout;jLayout.border=function(f){var c={},g={},b=f.east,i=f.west,d=f.north,e=f.south,a=f.center;c.hgap=f.hgap||0;c.vgap=f.vgap||0;g.items=function(){var j=[];if(b){j.push(b)}if(i){j.push(i)}if(d){j.push(d)}if(e){j.push(e)}if(a){j.push(a)}return j};g.jLayoutMngr=function(k){var p=k.bounds(),l=k.insets(),r=l.top,j=p.height-l.bottom,m=l.left,o=p.width-l.right,q;if(d&&d.isVisible()){q=d.preferredSize();d.bounds({x:m,y:r,width:o-m,height:q.height});d.doLayout();r+=q.height+c.vgap}if(e&&e.isVisible()){q=e.preferredSize();e.bounds({x:m,y:j-q.height,width:o-m,height:q.height});e.doLayout();j-=q.height+c.vgap}if(b&&b.isVisible()){q=b.preferredSize();b.bounds({x:o-q.width,y:r,width:q.width,height:j-r});b.doLayout();o-=q.width+c.hgap}if(i&&i.isVisible()){q=i.preferredSize();i.bounds({x:m,y:r,width:q.width,height:j-r});i.doLayout();m+=q.width+c.hgap}if(a&&a.isVisible()){a.bounds({x:m,y:r,width:o-m,height:j-r});a.doLayout()}return k};function h(j){return function(k){var m=k.insets(),p=0,l=0,o;if(b&&b.isVisible()){o=b[j+"Size"]();p+=o.width+c.hgap;l=o.height}if(i&&i.isVisible()){o=i[j+"Size"]();p+=o.width+c.hgap;l=Math.max(o.height,l)}if(a&&a.isVisible()){o=a[j+"Size"]();p+=o.width;l=Math.max(o.height,l)}if(d&&d.isVisible()){o=d[j+"Size"]();p=Math.max(o.width,p);l+=o.height+c.vgap}if(e&&e.isVisible()){o=e[j+"Size"]();p=Math.max(o.width,p);l+=o.height+c.vgap}return{width:p+m.left+m.right,height:l+m.top+m.bottom}}}g.preferred=h("preferred");g.minimum=h("minimum");g.maximum=h("maximum");return g}}());if(jQuery&&jLayout){(function(a){function b(c,d){var e={};a.each(["min","max"],function(f,g){e[g+"imumSize"]=function(i){var h=c.data("jlayout");if(h){return h[g+"imum"](e)}else{return c[g+"Size"](i)}}});a.extend(e,{doLayout:function(){var f=c.data("jlayout");if(f){f.jLayoutMngr(e)}c.css({position:"absolute"})},isVisible:function(){return c.isVisible()},insets:function(){var g=c.padding(),f=c.border();return{top:g.top,bottom:g.bottom+f.bottom+f.top,left:g.left,right:g.right+f.right+f.left}},bounds:function(g){var f={};if(g){if(typeof g.x==="number"){f.left=g.x}if(typeof g.y==="number"){f.top=g.y}if(typeof g.width==="number"){f.width=(g.width-(c.outerWidth(true)-c.width()));f.width=(f.width>=0)?f.width:0}if(typeof g.height==="number"){f.height=g.height-(c.outerHeight(true)-c.height());f.height=(f.height>=0)?f.height:0}c.css(f);return c}else{f=c.position();return{x:f.left,y:f.top,width:c.outerWidth(false),height:c.outerHeight(false)}}},preferredSize:function(){var i,h,g=c.margin(),j={width:0,height:0},f=c.data("jlayout");if(f&&d){j=f.preferred(e);i=e.minimumSize();h=e.maximumSize();j.width+=g.left+g.right;j.height+=g.top+g.bottom;if(j.width<i.width||j.height<i.height){j.width=Math.max(j.width,i.width);j.height=Math.max(j.height,i.height)}else{if(j.width>h.width||j.height>h.height){j.width=Math.min(j.width,h.width);j.height=Math.min(j.height,h.height)}}}else{j=e.bounds();j.width+=g.left+g.right;j.height+=g.top+g.bottom}return j}});return e}a.fn.jLayoutMngr=function(c){var d=a.extend({},a.fn.jLayoutMngr.defaults,c);return a.each(this,function(){var e=a(this),g=(e.data("jLayoutMngr"))?a.extend(d,e.data("jLayoutMngr")):d,f=b(e,g.resize);if(g.type==="border"&&typeof jLayout.border!=="undefined"){a.each(["north","south","west","east","center"],function(h,j){if(e.children().hasClass(j)){g[j]=b(e.children("."+j+":first"))}});e.data("jlayout",jLayout.border(g))}else{if(g.type==="grid"&&typeof jLayout.grid!=="undefined"){g.items=[];e.children().each(function(h){if(!a(this).hasClass("ui-resizable-handle")){g.items[h]=b(a(this))}});e.data("jlayout",jLayout.grid(g))}else{if(g.type==="flexGrid"&&typeof jLayout.flexGrid!=="undefined"){g.items=[];e.children().each(function(h){if(!a(this).hasClass("ui-resizable-handle")){g.items[h]=b(a(this))}});e.data("jlayout",jLayout.flexGrid(g))}else{if(g.type==="column"&&typeof jLayout.column!=="undefined"){g.items=[];e.children().each(function(h){if(!a(this).hasClass("ui-resizable-handle")){g.items[h]=b(a(this))}});e.data("jlayout",jLayout.column(g))}else{if(g.type==="flow"&&typeof jLayout.flow!=="undefined"){g.items=[];e.children().each(function(h){if(!a(this).hasClass("ui-resizable-handle")){g.items[h]=b(a(this))}});e.data("jlayout",jLayout.flow(g))}}}}}if(g.resize){f.bounds(f.preferredSize())}f.doLayout();e.css({position:"relative"});if(a.ui!==undefined){e.addClass("ui-widget")}})};a.fn.jLayoutMngr.defaults={resize:true,type:"grid"}}(jQuery))}(function(a){a.fn.ajaxSubmit=function(p){if(!this.length){b("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof p=="function"){p={success:p}}p=a.extend({url:this.attr("action")||window.location.toString(),type:this.attr("method")||"GET"},p||{});var s={};this.trigger("form-pre-serialize",[this,p,s]);if(s.veto){b("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(p.beforeSerialize&&p.beforeSerialize(this,p)===false){b("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var d=this.formToArray(p.semantic);if(p.data){p.extraData=p.data;for(var m in p.data){if(p.data[m] instanceof Array){for(var l in p.data[m]){d.push({name:m,value:p.data[m][l]})}}else{d.push({name:m,value:p.data[m]})}}}if(p.beforeSubmit&&p.beforeSubmit(d,this,p)===false){b("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[d,this,p,s]);if(s.veto){b("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var r=a.param(d);if(p.type.toUpperCase()=="GET"){p.url+=(p.url.indexOf("?")>=0?"&":"?")+r;p.data=null}else{p.data=r}var c=this,e=[];if(p.resetForm){e.push(function(){c.resetForm()})}if(p.clearForm){e.push(function(){c.clearForm()})}if(!p.dataType&&p.target){var o=p.success||function(){};e.push(function(j){a(p.target).html(j).each(o,arguments)})}else{if(p.success){e.push(p.success)}}p.success=function(j,t){for(var k=0,q=e.length;k<q;k++){e[k].apply(p,[j,t,c])}};var f=a("input:file",this).fieldValue();var h=false;for(var i=0;i<f.length;i++){if(f[i]){h=true}}if(p.iframe||h){if(a.browser.safari&&p.closeKeepAlive){a.get(p.closeKeepAlive,g)}else{g()}}else{a.ajax(p)}this.trigger("form-submit-notify",[this,p]);return this;function g(){var t=c[0];if(a(":input[name=submit]",t).length){alert('Error: Form elements must not be named "submit".');return}var y=a.extend({},a.ajaxSettings,p);var z=jQuery.extend(true,{},a.extend(true,{},a.ajaxSettings),y);var v="jqFormIO"+(new Date().getTime());var j=a('<iframe id="'+v+'" name="'+v+'" />');var w=j[0];if(a.browser.msie||a.browser.opera){w.src='javascript:false;document.write("");'}j.css({position:"absolute",top:"-1000px",left:"-1000px"});var D={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;j.attr("src","about:blank")}};var u=y.global;if(u&&!a.active++){a.event.trigger("ajaxStart")}if(u){a.event.trigger("ajaxSend",[D,y])}if(z.beforeSend&&z.beforeSend(D,z)===false){z.global&&jQuery.active--;return}if(D.aborted){return}var q=0;var B=0;var A=t.clk;if(A){var x=A.name;if(x&&!A.disabled){p.extraData=p.extraData||{};p.extraData[x]=A.value;if(A.type=="image"){p.extraData[name+".x"]=t.clk_x;p.extraData[name+".y"]=t.clk_y}}}setTimeout(function(){var H=c.attr("target"),E=c.attr("action");c.attr({target:v,method:"POST",action:y.url});if(!p.skipEncodingOverride){c.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(y.timeout){setTimeout(function(){B=true;k()},y.timeout)}var F=[];try{if(p.extraData){for(var G in p.extraData){F.push(a('<input type="hidden" name="'+G+'" value="'+p.extraData[G]+'" />').appendTo(t)[0])}}j.appendTo("body");w.attachEvent?w.attachEvent("onload",k):w.addEventListener("load",k,false);t.submit()}finally{c.attr("action",E);H?c.attr("target",H):c.removeAttr("target");a(F).remove()}},10);function k(){if(q++){return}w.detachEvent?w.detachEvent("onload",k):w.removeEventListener("load",k,false);var I=0;var H=true;try{if(B){throw"timeout"}var E,F;F=w.contentWindow?w.contentWindow.document:w.contentDocument?w.contentDocument:w.document;if(F.body==null&&!I&&a.browser.opera){I=1;q--;setTimeout(k,100);return}D.responseText=F.body?F.body.innerHTML:null;D.responseXML=F.XMLDocument?F.XMLDocument:F;D.getResponseHeader=function(K){var L={"content-type":y.dataType};return L[K]};if(y.dataType=="json"||y.dataType=="script"){var J=F.getElementsByTagName("textarea")[0];D.responseText=J?J.value:D.responseText}else{if(y.dataType=="xml"&&!D.responseXML&&D.responseText!=null){D.responseXML=C(D.responseText)}}E=a.httpData(D,y.dataType)}catch(G){H=false;a.handleError(y,D,"error",G)}if(H){y.success(E,"success");if(u){a.event.trigger("ajaxSuccess",[D,y])}}if(u){a.event.trigger("ajaxComplete",[D,y])}if(u&&!--a.active){a.event.trigger("ajaxStop")}if(y.complete){y.complete(D,H?"success":"error")}setTimeout(function(){j.remove();D.responseXML=null},100)}function C(F,E){if(window.ActiveXObject){E=new ActiveXObject("Microsoft.XMLDOM");E.async="false";E.loadXML(F)}else{E=(new DOMParser()).parseFromString(F,"text/xml")}return(E&&E.documentElement&&E.documentElement.tagName!="parsererror")?E:null}}};a.fn.ajaxForm=function(c){return this.ajaxFormUnbind().bind("submit.form-plugin",function(){a(this).ajaxSubmit(c);return false}).each(function(){a(":submit,input:image",this).bind("click.form-plugin",function(d){var f=this.form;f.clk=this;if(this.type=="image"){if(d.offsetX!=undefined){f.clk_x=d.offsetX;f.clk_y=d.offsetY}else{if(typeof a.fn.offset=="function"){var g=a(this).offset();f.clk_x=d.pageX-g.left;f.clk_y=d.pageY-g.top}else{f.clk_x=d.pageX-this.offsetLeft;f.clk_y=d.pageY-this.offsetTop}}}setTimeout(function(){f.clk=f.clk_x=f.clk_y=null},10)})})};a.fn.ajaxFormUnbind=function(){this.unbind("submit.form-plugin");return this.each(function(){a(":submit,input:image",this).unbind("click.form-plugin")})};a.fn.formToArray=function(q){var c=[];if(this.length==0){return c}var f=this[0];var e=q?f.getElementsByTagName("*"):f.elements;if(!e){return c}for(var g=0,o=e.length;g<o;g++){var d=e[g];var p=d.name;if(!p){continue}if(q&&f.clk&&d.type=="image"){if(!d.disabled&&f.clk==d){c.push({name:p+".x",value:f.clk_x},{name:p+".y",value:f.clk_y})}continue}var r=a.fieldValue(d,true);if(r&&r.constructor==Array){for(var l=0,m=r.length;l<m;l++){c.push({name:p,value:r[l]})}}else{if(r!==null&&typeof r!="undefined"){c.push({name:p,value:r})}}}if(!q&&f.clk){var k=f.getElementsByTagName("input");for(var g=0,o=k.length;g<o;g++){var h=k[g];var p=h.name;if(p&&!h.disabled&&h.type=="image"&&f.clk==h){c.push({name:p+".x",value:f.clk_x},{name:p+".y",value:f.clk_y})}}}return c};a.fn.formSerialize=function(c){return a.param(this.formToArray(c))};a.fn.fieldSerialize=function(d){var c=[];this.each(function(){var g=this.name;if(!g){return}var h=a.fieldValue(this,d);if(h&&h.constructor==Array){for(var e=0,f=h.length;e<f;e++){c.push({name:g,value:h[e]})}}else{if(h!==null&&typeof h!="undefined"){c.push({name:this.name,value:h})}}});return a.param(c)};a.fn.fieldValue=function(f){for(var h=[],d=0,e=this.length;d<e;d++){var c=this[d];var g=a.fieldValue(c,f);if(g===null||typeof g=="undefined"||(g.constructor==Array&&!g.length)){continue}g.constructor==Array?a.merge(h,g):h.push(g)}return h};a.fieldValue=function(d,m){var h=d.name,o=d.type,p=d.tagName.toLowerCase();if(typeof m=="undefined"){m=true}if(m&&(!h||d.disabled||o=="reset"||o=="button"||(o=="checkbox"||o=="radio")&&!d.checked||(o=="submit"||o=="image")&&d.form&&d.form.clk!=d||p=="select"&&d.selectedIndex==-1)){return null}if(p=="select"){var f=d.selectedIndex;if(f<0){return null}var c=[],l=d.options;var j=(o=="select-one");var g=(j?f+1:l.length);for(var e=(j?f:0);e<g;e++){var k=l[e];if(k.selected){var q=a.browser.msie&&!(k.attributes.value.specified)?k.text:k.value;if(j){return q}c.push(q)}}return c}return d.value};a.fn.clearForm=function(){return this.each(function(){a("input,select,textarea",this).clearFields()})};a.fn.clearFields=a.fn.clearInputs=function(){return this.each(function(){var c=this.type,d=this.tagName.toLowerCase();if(c=="text"||c=="password"||d=="textarea"){this.value=""}else{if(c=="checkbox"||c=="radio"){this.checked=false}else{if(d=="select"){this.selectedIndex=-1}}}})};a.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};a.fn.enable=function(c){if(c==undefined){c=true}return this.each(function(){this.disabled=!c})};a.fn.selected=function(c){if(c==undefined){c=true}return this.each(function(){var e=this.type;if(e=="checkbox"||e=="radio"){this.checked=c}else{if(this.tagName.toLowerCase()=="option"){var d=a(this).parent("select");if(c&&d[0]&&d[0].type=="select-one"){d.find("option").selected(false)}this.selected=c}}})};function b(){if(a.fn.ajaxSubmit.debug&&window.console&&window.console.log){window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))}}})(jQuery);if(window.jQuery){(function(a){a.fn.MultiFile=function(c){if(this.length==0){return this}if(typeof arguments[0]=="string"){if(this.length>1){var b=arguments;return this.each(function(){a.fn.MultiFile.apply(a(this),b)})}a.fn.MultiFile[arguments[0]].apply(this,a.makeArray(arguments).slice(1)||[]);return this}var c=a.extend({},a.fn.MultiFile.options,c||{});a("form").not("MultiFile-intercepted").addClass("MultiFile-intercepted").submit(a.fn.MultiFile.disableEmpty);if(a.fn.MultiFile.options.autoIntercept){a.fn.MultiFile.intercept(a.fn.MultiFile.options.autoIntercept);a.fn.MultiFile.options.autoIntercept=null}this.not(".MultiFile-applied").addClass("MultiFile-applied").each(function(){window.MultiFile=(window.MultiFile||0)+1;var d=window.MultiFile;var e={e:this,E:a(this),clone:a(this).clone()};if(typeof c=="number"){c={max:c}}var f=a.extend({},a.fn.MultiFile.options,c||{},(a.metadata?e.E.metadata():(a.meta?e.E.data():null))||{},{});if(!(f.max>0)){f.max=e.E.attr("maxlength");if(!(f.max>0)){f.max=(String(e.e.className.match(/\b(max|limit)\-([0-9]+)\b/gi)||[""]).match(/[0-9]+/gi)||[""])[0];if(!(f.max>0)){f.max=-1}else{f.max=String(f.max).match(/[0-9]+/gi)[0]}}}f.max=new Number(f.max);f.accept=f.accept||e.E.attr("accept")||"";if(!f.accept){f.accept=(e.e.className.match(/\b(accept\-[\w\|]+)\b/gi))||"";f.accept=new String(f.accept).replace(/^(accept|ext)\-/i,"")}a.extend(e,f||{});e.STRING=a.extend({},a.fn.MultiFile.options.STRING,e.STRING);a.extend(e,{n:0,slaves:[],files:[],instanceKey:e.e.id||"MultiFile"+String(d),generateID:function(g){return e.instanceKey+(g>0?"_F"+String(g):"")},trigger:function(h,g){var i=e[h],k=a(g).attr("value");if(i){var j=i(g,k,e);if(j!=null){return j}}return true}});if(String(e.accept).length>1){e.accept=e.accept.replace(/\W+/g,"|").replace(/^\W|\W$/g,"");e.rxAccept=new RegExp("\\.("+(e.accept?e.accept:"")+")$","gi")}e.wrapID=e.instanceKey+"_wrap";e.E.wrap('<div class="MultiFile-wrap" id="'+e.wrapID+'"></div>');e.wrapper=a("#"+e.wrapID+"");e.e.name=e.e.name||"file"+d+"[]";if(!e.list){e.wrapper.append('<div class="MultiFile-list" id="'+e.wrapID+'_list"></div>');e.list=a("#"+e.wrapID+"_list")}e.list=a(e.list);e.addSlave=function(g,h){e.n++;g.MultiFile=e;if(h>0){g.id=g.name=""}if(h>0){g.id=e.generateID(h)}g.name=String(e.namePattern.replace(/\$name/gi,a(e.clone).attr("name")).replace(/\$id/gi,a(e.clone).attr("id")).replace(/\$g/gi,d).replace(/\$i/gi,h));if((e.max>0)&&((e.n-1)>(e.max))){g.disabled=true}e.current=e.slaves[h]=g;g=a(g);g.val("").attr("value","")[0].value="";g.addClass("MultiFile-applied");g.change(function(){a(this).blur();if(!e.trigger("onFileSelect",this,e)){return false}var i="",l=String(this.value||"");if(e.accept&&l&&!l.match(e.rxAccept)){i=e.STRING.denied.replace("$ext",String(l.match(/\.\w{1,4}$/gi)))}for(var j in e.slaves){if(e.slaves[j]&&e.slaves[j]!=this){if(e.slaves[j].value==l){i=e.STRING.duplicate.replace("$file",l.match(/[^\/\\]+$/gi))}}}var k=a(e.clone).clone();k.addClass("MultiFile");if(i!=""){e.error(i);e.n--;e.addSlave(k[0],h);g.parent().prepend(k);g.remove();return false}a(this).css({position:"absolute",top:"-3000px"});g.after(k);e.addToList(this,h);e.addSlave(k[0],h+1);if(!e.trigger("afterFileSelect",this,e)){return false}});a(g).data("MultiFile",e)};e.addToList=function(j,k){if(!e.trigger("onFileAppend",j,e)){return false}var i=a('<div class="MultiFile-label"></div>'),l=String(j.value||""),g=a('<span class="MultiFile-title" title="'+e.STRING.selected.replace("$file",l)+'">'+e.STRING.file.replace("$file",l.match(/[^\/\\]+$/gi)[0])+"</span>"),h=a('<a class="MultiFile-remove" href="#'+e.wrapID+'">'+e.STRING.remove+"</a>");e.list.append(i.append(h," ",g));h.click(function(){if(!e.trigger("onFileRemove",j,e)){return false}e.n--;e.current.disabled=false;e.slaves[k]=null;a(j).remove();a(this).parent().remove();a(e.current).css({position:"",top:""});a(e.current).reset().val("").attr("value","")[0].value="";if(!e.trigger("afterFileRemove",j,e)){return false}return false});if(!e.trigger("afterFileAppend",j,e)){return false}};if(!e.MultiFile){e.addSlave(e.e,0)}e.n++;e.E.data("MultiFile",e)})};a.extend(a.fn.MultiFile,{reset:function(){var b=a(this).data("MultiFile");if(b){b.list.find("a.MultiFile-remove").click()}return a(this)},disableEmpty:function(b){b=(typeof(b)=="string"?b:"")||"mfD";var c=[];a("input:file.MultiFile").each(function(){if(a(this).val()==""){c[c.length]=this}});return a(c).each(function(){this.disabled=true}).addClass(b)},reEnableEmpty:function(b){b=(typeof(b)=="string"?b:"")||"mfD";return a("input:file."+b).removeClass(b).each(function(){this.disabled=false})},intercepted:{},intercept:function(f,c,b){var e,g;b=b||[];if(b.constructor.toString().indexOf("Array")<0){b=[b]}if(typeof(f)=="function"){a.fn.MultiFile.disableEmpty();g=f.apply(c||window,b);setTimeout(function(){a.fn.MultiFile.reEnableEmpty()},1000);return g}if(f.constructor.toString().indexOf("Array")<0){f=[f]}for(var d=0;d<f.length;d++){e=f[d]+"";if(e){(function(h){a.fn.MultiFile.intercepted[h]=a.fn[h]||function(){};a.fn[h]=function(){a.fn.MultiFile.disableEmpty();g=a.fn.MultiFile.intercepted[h].apply(this,arguments);setTimeout(function(){a.fn.MultiFile.reEnableEmpty()},1000);return g}})(e)}}}});a.fn.MultiFile.options={accept:"",max:-1,namePattern:"$name",STRING:{remove:"x",denied:"You cannot select a $ext file.\nTry again...",file:"$file",selected:"File selected: $file",duplicate:"This file has already been selected:\n$file"},autoIntercept:["submit","ajaxSubmit","ajaxForm","validate","valid"],error:function(b){alert(b)}};a.fn.reset=function(){return this.each(function(){try{this.reset()}catch(b){}})};a(function(){a("input[type=file].multi").MultiFile()})})(jQuery)}(function($){var min=Math.min,max=Math.max,round=Math.floor,isStr=function(v){return $.type(v)==="string"},runPluginCallbacks=function(Instance,a_fn){if($.isArray(a_fn)){for(var i=0,c=a_fn.length;i<c;i++){var fn=a_fn[i];try{if(isStr(fn)){fn=eval(fn)}if($.isFunction(fn)){fn(Instance)}}catch(ex){}}}};$.layout={version:"1.3.rc30.62",revision:0.033006,browser:{mozilla:!!$.browser.mozilla,webkit:!!$.browser.webkit||!!$.browser.safari,msie:!!$.browser.msie,isIE6:$.browser.msie&&$.browser.version==6,boxModel:$.support.boxModel!==false||!$.browser.msie,version:$.browser.version},effects:{slide:{all:{duration:"fast"},north:{direction:"up"},south:{direction:"down"},east:{direction:"right"},west:{direction:"left"}},drop:{all:{duration:"slow"},north:{direction:"up"},south:{direction:"down"},east:{direction:"right"},west:{direction:"left"}},scale:{all:{duration:"fast"}},blind:{},clip:{},explode:{},fade:{},fold:{},puff:{},size:{all:{easing:"swing"}}},config:{optionRootKeys:"effects,panes,north,south,west,east,center".split(","),allPanes:"north,south,west,east,center".split(","),borderPanes:"north,south,west,east".split(","),oppositeEdge:{north:"south",south:"north",east:"west",west:"east"},offscreenCSS:{left:"-99999px",right:"auto"},offscreenReset:"offscreenReset",hidden:{visibility:"hidden"},visible:{visibility:"visible"},resizers:{cssReq:{position:"absolute",padding:0,margin:0,fontSize:"1px",textAlign:"left",overflow:"hidden"},cssDemo:{background:"#DDD",border:"none"}},togglers:{cssReq:{position:"absolute",display:"block",padding:0,margin:0,overflow:"hidden",textAlign:"center",fontSize:"1px",cursor:"pointer",zIndex:1},cssDemo:{background:"#AAA"}},content:{cssReq:{position:"relative"},cssDemo:{overflow:"auto",padding:"10px"},cssDemoPane:{overflow:"hidden",padding:0}},panes:{cssReq:{position:"absolute",margin:0},cssDemo:{padding:"10px",background:"#FFF",border:"1px solid #BBB",overflow:"auto"}},north:{side:"Top",sizeType:"Height",dir:"horz",cssReq:{top:0,bottom:"auto",left:0,right:0,width:"auto"}},south:{side:"Bottom",sizeType:"Height",dir:"horz",cssReq:{top:"auto",bottom:0,left:0,right:0,width:"auto"}},east:{side:"Right",sizeType:"Width",dir:"vert",cssReq:{left:"auto",right:0,top:"auto",bottom:"auto",height:"auto"}},west:{side:"Left",sizeType:"Width",dir:"vert",cssReq:{left:0,right:"auto",top:"auto",bottom:"auto",height:"auto"}},center:{dir:"center",cssReq:{left:"auto",right:"auto",top:"auto",bottom:"auto",height:"auto",width:"auto"}}},callbacks:{},getParentPaneElem:function(el){var $el=$(el),layout=$el.data("layout")||$el.data("parentLayout");if(layout){var $cont=layout.container;if($cont.data("layoutPane")){return $cont}var $pane=$cont.closest("."+$.layout.defaults.panes.paneClass);if($pane.data("layoutPane")){return $pane}}return null},getParentPaneInstance:function(el){var $pane=$.layout.getParentPaneElem(el);return $pane?$pane.data("layoutPane"):null},getParentLayoutInstance:function(el){var $pane=$.layout.getParentPaneElem(el);return $pane?$pane.data("parentLayout"):null},getEventObject:function(evt){return typeof evt==="object"&&evt.stopPropagation?evt:null},parsePaneName:function(evt_or_pane){var evt=$.layout.getEventObject(evt_or_pane);if(evt){evt.stopPropagation();return $(this).data("layoutEdge")}else{return evt_or_pane}},plugins:{draggable:!!$.fn.draggable,effects:{core:!!$.effects,slide:$.effects&&$.effects.slide}},onCreate:[],onLoad:[],onReady:[],onDestroy:[],onUnload:[],afterOpen:[],afterClose:[],scrollbarWidth:function(){return window.scrollbarWidth||$.layout.getScrollbarSize("width")},scrollbarHeight:function(){return window.scrollbarHeight||$.layout.getScrollbarSize("height")},getScrollbarSize:function(dim){var $c=$('<div style="position: absolute; top: -10000px; left: -10000px; width: 100px; height: 100px; overflow: scroll;"></div>').appendTo("body");var d={width:$c.width()-$c[0].clientWidth,height:$c.height()-$c[0].clientHeight};$c.remove();window.scrollbarWidth=d.width;window.scrollbarHeight=d.height;return dim.match(/^(width|height)$/)?d[dim]:d},showInvisibly:function($E,force){if($E&&$E.length&&(force||$E.css("display")==="none")){var s=$E[0].style,CSS={display:s.display||"",visibility:s.visibility||""};$E.css({display:"block",visibility:"hidden"});return CSS}return{}},getElementDimensions:function($E){var d={},x=d.css={},i={},b,p,N=$.layout.cssNum,off=$E.offset();d.offsetLeft=off.left;d.offsetTop=off.top;$.each("Left,Right,Top,Bottom".split(","),function(idx,e){b=x["border"+e]=$.layout.borderWidth($E,e);p=x["padding"+e]=$.layout.cssNum($E,"padding"+e);i[e]=b+p;d["inset"+e]=p});d.offsetWidth=$E.innerWidth();d.offsetHeight=$E.innerHeight();d.outerWidth=$E.outerWidth();d.outerHeight=$E.outerHeight();d.innerWidth=max(0,d.outerWidth-i.Left-i.Right);d.innerHeight=max(0,d.outerHeight-i.Top-i.Bottom);x.width=$E.width();x.height=$E.height();x.top=N($E,"top",true);x.bottom=N($E,"bottom",true);x.left=N($E,"left",true);x.right=N($E,"right",true);return d},getElementCSS:function($E,list){var CSS={},style=$E[0].style,props=list.split(","),sides="Top,Bottom,Left,Right".split(","),attrs="Color,Style,Width".split(","),p,s,a,i,j,k;for(i=0;i<props.length;i++){p=props[i];if(p.match(/(border|padding|margin)$/)){for(j=0;j<4;j++){s=sides[j];if(p==="border"){for(k=0;k<3;k++){a=attrs[k];CSS[p+s+a]=style[p+s+a]}}else{CSS[p+s]=style[p+s]}}}else{CSS[p]=style[p]}}return CSS},cssWidth:function($E,outerWidth){if(outerWidth<=0){return 0}if(!$.layout.browser.boxModel){return outerWidth}var b=$.layout.borderWidth,n=$.layout.cssNum,W=outerWidth-b($E,"Left")-b($E,"Right")-n($E,"paddingLeft")-n($E,"paddingRight");return max(0,W)},cssHeight:function($E,outerHeight){if(outerHeight<=0){return 0}if(!$.layout.browser.boxModel){return outerHeight}var b=$.layout.borderWidth,n=$.layout.cssNum,H=outerHeight-b($E,"Top")-b($E,"Bottom")-n($E,"paddingTop")-n($E,"paddingBottom");return max(0,H)},cssNum:function($E,prop,allowAuto){if(!$E.jquery){$E=$($E)}var CSS=$.layout.showInvisibly($E),p=$.css($E[0],prop,true),v=allowAuto&&p=="auto"?p:(parseInt(p,10)||0);$E.css(CSS);return v},borderWidth:function(el,side){if(el.jquery){el=el[0]}var b="border"+side.substr(0,1).toUpperCase()+side.substr(1);return $.css(el,b+"Style",true)==="none"?0:(parseInt($.css(el,b+"Width",true),10)||0)},isMouseOverElem:function(evt,el){var $E=$(el||this),d=$E.offset(),T=d.top,L=d.left,R=L+$E.outerWidth(),B=T+$E.outerHeight(),x=evt.pageX,y=evt.pageY;return($.layout.browser.msie&&x<0&&y<0)||((x>=L&&x<=R)&&(y>=T&&y<=B))},msg:function(info,popup,debugTitle,debugOpts){if($.isPlainObject(info)&&window.debugData){if(typeof popup==="string"){debugOpts=debugTitle;debugTitle=popup}else{if(typeof debugTitle==="object"){debugOpts=debugTitle;debugTitle=null}}var t=debugTitle||"log( <object> )",o=$.extend({sort:false,returnHTML:false,display:false},debugOpts);if(popup===true||o.display){debugData(info,t,o)}else{if(window.console){console.log(debugData(info,t,o))}}}else{if(popup){alert(info)}else{if(window.console){console.log(info)}else{var id="#layoutLogger",$l=$(id);if(!$l.length){$l=createLog()}$l.children("ul").append('<li style="padding: 4px 10px; margin: 0; border-top: 1px solid #CCC;">'+info.replace(/\</g,"&lt;").replace(/\>/g,"&gt;")+"</li>")}}}function createLog(){var pos=$.support.fixedPosition?"fixed":"absolute",$e=$('<div id="layoutLogger" style="position: '+pos+'; top: 5px; z-index: 999999; max-width: 25%; overflow: hidden; border: 1px solid #000; border-radius: 5px; background: #FBFBFB; box-shadow: 0 2px 10px rgba(0,0,0,0.3);"><div style="font-size: 13px; font-weight: bold; padding: 5px 10px; background: #F6F6F6; border-radius: 5px 5px 0 0; cursor: move;"><span style="float: right; padding-left: 7px; cursor: pointer;" title="Remove Console" onclick="$(this).closest(\'#layoutLogger\').remove()">X</span>Layout console.log</div><ul style="font-size: 13px; font-weight: none; list-style: none; margin: 0; padding: 0 0 2px;"></ul></div>').appendTo("body");$e.css("left",$(window).width()-$e.outerWidth()-5);if($.ui.draggable){$e.draggable({handle:":first-child"})}return $e}}};$.layout.defaults={name:"",containerSelector:"",containerClass:"ui-layout-container",scrollToBookmarkOnLoad:true,resizeWithWindow:true,resizeWithWindowDelay:200,resizeWithWindowMaxDelay:0,onresizeall_start:null,onresizeall_end:null,onload_start:null,onload_end:null,onunload_start:null,onunload_end:null,initPanes:true,showErrorMessages:false,showDebugMessages:false,zIndex:null,zIndexes:{pane_normal:0,content_mask:1,resizer_normal:2,pane_sliding:100,pane_animate:1000,resizer_drag:10000},errors:{pane:"pane",selector:"selector",addButtonError:"Error Adding Button \n\nInvalid ",containerMissing:"UI Layout Initialization Error\n\nThe specified layout-container does not exist.",centerPaneMissing:"UI Layout Initialization Error\n\nThe center-pane element does not exist.\n\nThe center-pane is a required element.",noContainerHeight:"UI Layout Initialization Warning\n\nThe layout-container \"CONTAINER\" has no height.\n\nTherefore the layout is 0-height and hence 'invisible'!",callbackError:"UI Layout Callback Error\n\nThe EVENT callback is not a valid function."},panes:{applyDemoStyles:false,closable:true,resizable:true,slidable:true,initClosed:false,initHidden:false,contentSelector:".ui-layout-content",contentIgnoreSelector:".ui-layout-ignore",findNestedContent:false,paneClass:"ui-layout-pane",resizerClass:"ui-layout-resizer",togglerClass:"ui-layout-toggler",buttonClass:"ui-layout-button",minSize:0,maxSize:0,spacing_open:6,spacing_closed:6,togglerLength_open:50,togglerLength_closed:50,togglerAlign_open:"center",togglerAlign_closed:"center",togglerContent_open:"",togglerContent_closed:"",resizerDblClickToggle:true,autoResize:true,autoReopen:true,resizerDragOpacity:1,maskContents:false,maskObjects:false,maskZindex:null,resizingGrid:false,livePaneResizing:false,liveContentResizing:false,liveResizingTolerance:1,sliderCursor:"pointer",slideTrigger_open:"click",slideTrigger_close:"mouseleave",slideDelay_open:300,slideDelay_close:300,hideTogglerOnSlide:false,preventQuickSlideClose:$.layout.browser.webkit,preventPrematureSlideClose:false,tips:{Open:"Open",Close:"Close",Resize:"Resize",Slide:"Slide Open",Pin:"Pin",Unpin:"Un-Pin",noRoomToOpen:"Not enough room to show this panel.",minSizeWarning:"Panel has reached its minimum size",maxSizeWarning:"Panel has reached its maximum size"},showOverflowOnHover:false,enableCursorHotkey:true,customHotkeyModifier:"SHIFT",fxName:"slide",fxSpeed:null,fxSettings:{},fxOpacityFix:true,animatePaneSizing:false,childOptions:null,initChildLayout:true,destroyChildLayout:true,resizeChildLayout:true,triggerEventsOnLoad:false,triggerEventsDuringLiveResize:true,onshow_start:null,onshow_end:null,onhide_start:null,onhide_end:null,onopen_start:null,onopen_end:null,onclose_start:null,onclose_end:null,onresize_start:null,onresize_end:null,onsizecontent_start:null,onsizecontent_end:null,onswap_start:null,onswap_end:null,ondrag_start:null,ondrag_end:null},north:{paneSelector:".ui-layout-north",size:"auto",resizerCursor:"n-resize",customHotkey:""},south:{paneSelector:".ui-layout-south",size:"auto",resizerCursor:"s-resize",customHotkey:""},east:{paneSelector:".ui-layout-east",size:200,resizerCursor:"e-resize",customHotkey:""},west:{paneSelector:".ui-layout-west",size:200,resizerCursor:"w-resize",customHotkey:""},center:{paneSelector:".ui-layout-center",minWidth:0,minHeight:0}};$.layout.optionsMap={layout:("stateManagement,effects,zIndexes,errors,name,zIndex,scrollToBookmarkOnLoad,showErrorMessages,resizeWithWindow,resizeWithWindowDelay,resizeWithWindowMaxDelay,onresizeall,onresizeall_start,onresizeall_end,onload,onunload").split(","),center:("paneClass,contentSelector,contentIgnoreSelector,findNestedContent,applyDemoStyles,triggerEventsOnLoad,showOverflowOnHover,maskContents,maskObjects,liveContentResizing,childOptions,initChildLayout,resizeChildLayout,destroyChildLayout,onresize,onresize_start,onresize_end,onsizecontent,onsizecontent_start,onsizecontent_end").split(","),noDefault:("paneSelector,resizerCursor,customHotkey").split(",")};$.layout.transformData=function(hash){var json={panes:{},center:{}},data,branch,optKey,keys,key,val,i,c;if(typeof hash!=="object"){return json}for(optKey in hash){branch=json;data=$.layout.optionsMap.layout;val=hash[optKey];keys=optKey.split("__");c=keys.length-1;for(i=0;i<=c;i++){key=keys[i];if(i===c){branch[key]=val}else{if(!branch[key]){branch[key]={}}}branch=branch[key]}}return json};$.layout.backwardCompatibility={map:{applyDefaultStyles:"applyDemoStyles",resizeNestedLayout:"resizeChildLayout",resizeWhileDragging:"livePaneResizing",resizeContentWhileDragging:"liveContentResizing",triggerEventsWhileDragging:"triggerEventsDuringLiveResize",maskIframesOnResize:"maskContents",useStateCookie:"stateManagement.enabled","cookie.autoLoad":"stateManagement.autoLoad","cookie.autoSave":"stateManagement.autoSave","cookie.keys":"stateManagement.stateKeys","cookie.name":"stateManagement.cookie.name","cookie.domain":"stateManagement.cookie.domain","cookie.path":"stateManagement.cookie.path","cookie.expires":"stateManagement.cookie.expires","cookie.secure":"stateManagement.cookie.secure",noRoomToOpenTip:"tips.noRoomToOpen",togglerTip_open:"tips.Close",togglerTip_closed:"tips.Open",resizerTip:"tips.Resize",sliderTip:"tips.Slide"},renameOptions:function(opts){var map=$.layout.backwardCompatibility.map,oldData,newData,value;for(var itemPath in map){oldData=getBranch(itemPath);value=oldData.branch[oldData.key];if(value!==undefined){newData=getBranch(map[itemPath],true);newData.branch[newData.key]=value;delete oldData.branch[oldData.key]}}function getBranch(path,create){var a=path.split("."),c=a.length-1,D={branch:opts,key:a[c]},i=0,k,undef;for(;i<c;i++){k=a[i];if(D.branch[k]==undefined){if(create){D.branch=D.branch[k]={}}else{D.branch={}}}else{D.branch=D.branch[k]}}return D}},renameAllOptions:function(opts){var ren=$.layout.backwardCompatibility.renameOptions;ren(opts);if(opts.defaults){if(typeof opts.panes!=="object"){opts.panes={}}$.extend(true,opts.panes,opts.defaults);delete opts.defaults}if(opts.panes){ren(opts.panes)}$.each($.layout.config.allPanes,function(i,pane){if(opts[pane]){ren(opts[pane])}});return opts}};$.fn.layout=function(opts){var browser=$.layout.browser,_c=$.layout.config,cssW=$.layout.cssWidth,cssH=$.layout.cssHeight,elDims=$.layout.getElementDimensions,elCSS=$.layout.getElementCSS,evtObj=$.layout.getEventObject,evtPane=$.layout.parsePaneName,options=$.extend(true,{},$.layout.defaults),effects=options.effects=$.extend(true,{},$.layout.effects),state={id:"layout"+$.now(),initialized:false,container:{},north:{},south:{},east:{},west:{},center:{}},children={north:null,south:null,east:null,west:null,center:null},timer={data:{},set:function(s,fn,ms){timer.clear(s);timer.data[s]=setTimeout(fn,ms)},clear:function(s){var t=timer.data;if(t[s]){clearTimeout(t[s]);delete t[s]}}},_log=function(msg,popup,debug){var o=options;if((o.showErrorMessages&&!debug)||(debug&&o.showDebugMessages)){$.layout.msg(o.name+" / "+msg,(popup!==false))}return false},_runCallbacks=function(evtName,pane,skipBoundEvents){var paneCB=pane&&isStr(pane),s=paneCB?state[pane]:state,o=paneCB?options[pane]:options,lName=options.name,lng=evtName+(evtName.match(/_/)?"":"_end"),shrt=lng.match(/_end$/)?lng.substr(0,lng.length-4):"",fn=o[lng]||o[shrt],retVal="NC",args=[],$P;if(!paneCB&&$.type(skipBoundEvents)!=="boolean"){skipBoundEvents=pane}if(fn){try{if(isStr(fn)){if(fn.match(/,/)){args=fn.split(","),fn=eval(args[0])}else{fn=eval(fn)}}if($.isFunction(fn)){if(args.length){retVal=fn(args[1])}else{if(paneCB){retVal=fn(pane,$Ps[pane],s,o,lName)}else{retVal=fn(Instance,s,o,lName)}}}}catch(ex){_log(options.errors.callbackError.replace(/EVENT/,$.trim(pane+" "+lng)),false)}}if(!skipBoundEvents&&retVal!==false){if(paneCB){$P=$Ps[pane];o=options[pane];s=state[pane];$P.triggerHandler("layoutpane"+lng,[pane,$P,s,o,lName]);if(shrt){$P.triggerHandler("layoutpane"+shrt,[pane,$P,s,o,lName])}}else{$N.triggerHandler("layout"+lng,[Instance,s,o,lName]);if(shrt){$N.triggerHandler("layout"+shrt,[Instance,s,o,lName])}}}if(evtName==="onresize_end"||evtName==="onsizecontent_end"){resizeChildLayout(pane)}return retVal},_fixIframe=function(pane){if(browser.mozilla){return}var $P=$Ps[pane];if(state[pane].tagName==="IFRAME"){$P.css(_c.hidden).css(_c.visible)}else{$P.find("IFRAME").css(_c.hidden).css(_c.visible)}},cssSize=function(pane,outerSize){var fn=_c[pane].dir=="horz"?cssH:cssW;return fn($Ps[pane],outerSize)},cssMinDims=function(pane){var $P=$Ps[pane],dir=_c[pane].dir,d={minWidth:1001-cssW($P,1000),minHeight:1001-cssH($P,1000)};if(dir==="horz"){d.minSize=d.minHeight}if(dir==="vert"){d.minSize=d.minWidth}return d},setOuterWidth=function(el,outerWidth,autoHide){var $E=el,w;if(isStr(el)){$E=$Ps[el]}else{if(!el.jquery){$E=$(el)}}w=cssW($E,outerWidth);$E.css({width:w});if(w>0){if(autoHide&&$E.data("autoHidden")&&$E.innerHeight()>0){$E.show().data("autoHidden",false);if(!browser.mozilla){$E.css(_c.hidden).css(_c.visible)}}}else{if(autoHide&&!$E.data("autoHidden")){$E.hide().data("autoHidden",true)}}},setOuterHeight=function(el,outerHeight,autoHide){var $E=el,h;if(isStr(el)){$E=$Ps[el]}else{if(!el.jquery){$E=$(el)}}h=cssH($E,outerHeight);$E.css({height:h,visibility:"visible"});if(h>0&&$E.innerWidth()>0){if(autoHide&&$E.data("autoHidden")){$E.show().data("autoHidden",false);if(!browser.mozilla){$E.css(_c.hidden).css(_c.visible)}}}else{if(autoHide&&!$E.data("autoHidden")){$E.hide().data("autoHidden",true)}}},setOuterSize=function(el,outerSize,autoHide){if(_c[pane].dir=="horz"){setOuterHeight(el,outerSize,autoHide)}else{setOuterWidth(el,outerSize,autoHide)}},_parseSize=function(pane,size,dir){if(!dir){dir=_c[pane].dir}if(isStr(size)&&size.match(/%/)){size=(size==="100%")?-1:parseInt(size,10)/100}if(size===0){return 0}else{if(size>=1){return parseInt(size,10)}}var o=options,avail=0;if(dir=="horz"){avail=sC.innerHeight-($Ps.north?o.north.spacing_open:0)-($Ps.south?o.south.spacing_open:0)}else{if(dir=="vert"){avail=sC.innerWidth-($Ps.west?o.west.spacing_open:0)-($Ps.east?o.east.spacing_open:0)}}if(size===-1){return avail}else{if(size>0){return round(avail*size)}else{if(pane=="center"){return 0}else{var dim=(dir==="horz"?"height":"width"),$P=$Ps[pane],$C=dim==="height"?$Cs[pane]:false,vis=$.layout.showInvisibly($P),szP=$P.css(dim),szC=$C?$C.css(dim):0;$P.css(dim,"auto");if($C){$C.css(dim,"auto")}size=(dim==="height")?$P.outerHeight():$P.outerWidth();$P.css(dim,szP).css(vis);if($C){$C.css(dim,szC)}return size}}}},getPaneSize=function(pane,inclSpace){var $P=$Ps[pane],o=options[pane],s=state[pane],oSp=(inclSpace?o.spacing_open:0),cSp=(inclSpace?o.spacing_closed:0);if(!$P||s.isHidden){return 0}else{if(s.isClosed||(s.isSliding&&inclSpace)){return cSp}else{if(_c[pane].dir==="horz"){return $P.outerHeight()+oSp}else{return $P.outerWidth()+oSp}}}},setSizeLimits=function(pane,slide){if(!isInitialized()){return}var o=options[pane],s=state[pane],c=_c[pane],dir=c.dir,side=c.side.toLowerCase(),type=c.sizeType.toLowerCase(),isSliding=(slide!=undefined?slide:s.isSliding),$P=$Ps[pane],paneSpacing=o.spacing_open,altPane=_c.oppositeEdge[pane],altS=state[altPane],$altP=$Ps[altPane],altPaneSize=(!$altP||altS.isVisible===false||altS.isSliding?0:(dir=="horz"?$altP.outerHeight():$altP.outerWidth())),altPaneSpacing=((!$altP||altS.isHidden?0:options[altPane][altS.isClosed!==false?"spacing_closed":"spacing_open"])||0),containerSize=(dir=="horz"?sC.innerHeight:sC.innerWidth),minCenterDims=cssMinDims("center"),minCenterSize=dir=="horz"?max(options.center.minHeight,minCenterDims.minHeight):max(options.center.minWidth,minCenterDims.minWidth),limitSize=(containerSize-paneSpacing-(isSliding?0:(_parseSize("center",minCenterSize,dir)+altPaneSize+altPaneSpacing))),minSize=s.minSize=max(_parseSize(pane,o.minSize),cssMinDims(pane).minSize),maxSize=s.maxSize=min((o.maxSize?_parseSize(pane,o.maxSize):100000),limitSize),r=s.resizerPosition={},top=sC.insetTop,left=sC.insetLeft,W=sC.innerWidth,H=sC.innerHeight,rW=o.spacing_open;switch(pane){case"north":r.min=top+minSize;r.max=top+maxSize;break;case"west":r.min=left+minSize;r.max=left+maxSize;break;case"south":r.min=top+H-maxSize-rW;r.max=top+H-minSize-rW;break;case"east":r.min=left+W-maxSize-rW;r.max=left+W-minSize-rW;break}},calcNewCenterPaneDims=function(){var d={top:getPaneSize("north",true),bottom:getPaneSize("south",true),left:getPaneSize("west",true),right:getPaneSize("east",true),width:0,height:0};d.width=sC.innerWidth-d.left-d.right;d.height=sC.innerHeight-d.bottom-d.top;d.top+=sC.insetTop;d.bottom+=sC.insetBottom;d.left+=sC.insetLeft;d.right+=sC.insetRight;return d},getHoverClasses=function(el,allStates){var $El=$(el),type=$El.data("layoutRole"),pane=$El.data("layoutEdge"),o=options[pane],root=o[type+"Class"],_pane="-"+pane,_open="-open",_closed="-closed",_slide="-sliding",_hover="-hover ",_state=$El.hasClass(root+_closed)?_closed:_open,_alt=_state===_closed?_open:_closed,classes=(root+_hover)+(root+_pane+_hover)+(root+_state+_hover)+(root+_pane+_state+_hover);if(allStates){classes+=(root+_alt+_hover)+(root+_pane+_alt+_hover)}if(type=="resizer"&&$El.hasClass(root+_slide)){classes+=(root+_slide+_hover)+(root+_pane+_slide+_hover)}return $.trim(classes)},addHover=function(evt,el){var $E=$(el||this);if(evt&&$E.data("layoutRole")==="toggler"){evt.stopPropagation()}$E.addClass(getHoverClasses($E))},removeHover=function(evt,el){var $E=$(el||this);$E.removeClass(getHoverClasses($E,true))},onResizerEnter=function(evt){if($.fn.disableSelection){$("body").disableSelection()}},onResizerLeave=function(evt,el){var e=el||this,pane=$(e).data("layoutEdge"),name=pane+"ResizerLeave";timer.clear(pane+"_openSlider");timer.clear(name);if(!el){timer.set(name,function(){onResizerLeave(evt,e)},200)}else{if(!state[pane].isResizing&&$.fn.enableSelection){$("body").enableSelection()}}},_create=function(){initOptions();var o=options;state.creatingLayout=true;runPluginCallbacks(Instance,$.layout.onCreate);if(false===_runCallbacks("onload_start")){return"cancel"}_initContainer();initHotkeys();$(window).bind("unload."+sID,unload);runPluginCallbacks(Instance,$.layout.onLoad);if(o.initPanes){_initLayoutElements()}delete state.creatingLayout;return state.initialized},isInitialized=function(){if(state.initialized||state.creatingLayout){return true}else{return _initLayoutElements()}},_initLayoutElements=function(retry){var o=options;if(!$N.is(":visible")){if(!retry&&browser.webkit&&$N[0].tagName==="BODY"){setTimeout(function(){_initLayoutElements(true)},50)}return false}if(!getPane("center").length){return _log(o.errors.centerPaneMissing)}state.creatingLayout=true;$.extend(sC,elDims($N));initPanes();if(o.scrollToBookmarkOnLoad){var l=self.location;if(l.hash){l.replace(l.hash)}}if(Instance.hasParentLayout){o.resizeWithWindow=false}else{if(o.resizeWithWindow){$(window).bind("resize."+sID,windowResize)}}delete state.creatingLayout;state.initialized=true;runPluginCallbacks(Instance,$.layout.onReady);_runCallbacks("onload_end");return true},_initChildLayouts=function(){$.each(_c.allPanes,function(idx,pane){if(options[pane].initChildLayout){createChildLayout(pane)}})},createChildLayout=function(evt_or_pane,opts){var pane=evtPane.call(this,evt_or_pane),$P=$Ps[pane],C=children;if($P){var $C=$Cs[pane],o=opts||options[pane].childOptions,d="layout",$Cont=o.containerSelector?$P.find(o.containerSelector):($C||$P),containerFound=$Cont.length,child=containerFound?(C[pane]=$Cont.data(d)||null):null;if(!child&&containerFound&&o){child=C[pane]=$Cont.eq(0).layout(o)||null}if(child){child.hasParentLayout=true}}Instance[pane].child=C[pane]},windowResize=function(){var delay=Number(options.resizeWithWindowDelay);if(delay<10){delay=100}timer.clear("winResize");timer.set("winResize",function(){timer.clear("winResize");timer.clear("winResizeRepeater");var dims=elDims($N);if(dims.innerWidth!==sC.innerWidth||dims.innerHeight!==sC.innerHeight){resizeAll()}},delay);if(!timer.data.winResizeRepeater){setWindowResizeRepeater()}},setWindowResizeRepeater=function(){var delay=Number(options.resizeWithWindowMaxDelay);if(delay>0){timer.set("winResizeRepeater",function(){setWindowResizeRepeater();resizeAll()},delay)}},unload=function(){var o=options;_runCallbacks("onunload_start");runPluginCallbacks(Instance,$.layout.onUnload);_runCallbacks("onunload_end")},_initContainer=function(){var N=$N[0],tag=sC.tagName=N.tagName,id=sC.id=N.id,cls=sC.className=N.className,o=options,name=o.name,fullPage=(tag==="BODY"),props="overflow,position,margin,padding,border",css="layoutCSS",CSS={},hid="hidden",parent=$N.data("parentLayout"),pane=$N.data("layoutEdge"),isChild=parent&&pane;sC.selector=$N.selector.split(".slice")[0];sC.ref=(o.name?o.name+" layout / ":"")+tag+(id?"#"+id:cls?".["+cls+"]":"");$N.data({layout:Instance,layoutContainer:sID}).addClass(o.containerClass);var layoutMethods={destroy:"",initPanes:"",resizeAll:"resizeAll",resize:"resizeAll"};for(name in layoutMethods){$N.bind("layout"+name.toLowerCase()+"."+sID,Instance[layoutMethods[name]||name])}if(isChild){Instance.hasParentLayout=true;parent[pane].child=parent.children[pane]=$N.data("layout")}if(!$N.data(css)){if(fullPage){CSS=$.extend(elCSS($N,props),{height:$N.css("height"),overflow:$N.css("overflow"),overflowX:$N.css("overflowX"),overflowY:$N.css("overflowY")});var $H=$("html");$H.data(css,{height:"auto",overflow:$H.css("overflow"),overflowX:$H.css("overflowX"),overflowY:$H.css("overflowY")})}else{CSS=elCSS($N,props+",top,bottom,left,right,width,height,overflow,overflowX,overflowY")}$N.data(css,CSS)}try{if(fullPage){$("html").css({height:"100%",overflow:hid,overflowX:hid,overflowY:hid});$("body").css({position:"relative",height:"100%",overflow:hid,overflowX:hid,overflowY:hid,margin:0,padding:0,border:"none"});$.extend(sC,elDims($N))}else{CSS={overflow:hid,overflowX:hid,overflowY:hid};var p=$N.css("position"),h=$N.css("height");if(!isChild){if(!p||!p.match(/fixed|absolute|relative/)){CSS.position="relative"}}$N.css(CSS);if($N.is(":visible")){$.extend(sC,elDims($N));if(sC.innerHeight<1){_log(o.errors.noContainerHeight.replace(/CONTAINER/,sC.ref))}}}}catch(ex){}},initHotkeys=function(panes){panes=panes?panes.split(","):_c.borderPanes;$.each(panes,function(i,pane){var o=options[pane];if(o.enableCursorHotkey||o.customHotkey){$(document).bind("keydown."+sID,keyDown);return false}})},initOptions=function(){var data,d,pane,key,val,i,c,o;opts=$.layout.transformData(opts);opts=$.layout.backwardCompatibility.renameAllOptions(opts);if(!$.isEmptyObject(opts.panes)){data=$.layout.optionsMap.noDefault;for(i=0,c=data.length;i<c;i++){key=data[i];delete opts.panes[key]}data=$.layout.optionsMap.layout;for(i=0,c=data.length;i<c;i++){key=data[i];delete opts.panes[key]}}data=$.layout.optionsMap.layout;var rootKeys=$.layout.config.optionRootKeys;for(key in opts){val=opts[key];if($.inArray(key,rootKeys)<0&&$.inArray(key,data)<0){if(!opts.panes[key]){opts.panes[key]=$.isPlainObject(val)?$.extend(true,{},val):val}delete opts[key]}}$.extend(true,options,opts);$.each(_c.allPanes,function(i,pane){_c[pane]=$.extend(true,{},_c.panes,_c[pane]);d=options.panes;o=options[pane];if(pane==="center"){data=$.layout.optionsMap.center;for(i=0,c=data.length;i<c;i++){key=data[i];if(!opts.center[key]&&(opts.panes[key]||!o[key])){o[key]=d[key]}}}else{o=options[pane]=$.extend(true,{},d,o);createFxOptions(pane);if(!o.resizerClass){o.resizerClass="ui-layout-resizer"}if(!o.togglerClass){o.togglerClass="ui-layout-toggler"}}if(!o.paneClass){o.paneClass="ui-layout-pane"}});var zo=opts.zIndex,z=options.zIndexes;if(zo>0){z.pane_normal=zo;z.content_mask=max(zo+1,z.content_mask);z.resizer_normal=max(zo+2,z.resizer_normal)}delete options.panes;function createFxOptions(pane){var o=options[pane],d=options.panes;if(!o.fxSettings){o.fxSettings={}}if(!d.fxSettings){d.fxSettings={}}$.each(["_open","_close","_size"],function(i,n){var sName="fxName"+n,sSpeed="fxSpeed"+n,sSettings="fxSettings"+n,fxName=o[sName]=o[sName]||d[sName]||o.fxName||d.fxName||"none";if(fxName==="none"||!$.effects||!$.effects[fxName]||!options.effects[fxName]){fxName=o[sName]="none"}var fx=options.effects[fxName]||{},fx_all=fx.all||null,fx_pane=fx[pane]||null;o[sSpeed]=o[sSpeed]||d[sSpeed]||o.fxSpeed||d.fxSpeed||null;o[sSettings]=$.extend(true,{},fx_all,fx_pane,d.fxSettings,o.fxSettings,d[sSettings],o[sSettings])});delete o.fxName;delete o.fxSpeed;delete o.fxSettings}},getPane=function(pane){var sel=options[pane].paneSelector;if(sel.substr(0,1)==="#"){return $N.find(sel).eq(0)}else{var $P=$N.children(sel).eq(0);return $P.length?$P:$N.children("form:first").children(sel).eq(0)}},initPanes=function(evt){evtPane(evt);$.each(_c.allPanes,function(idx,pane){addPane(pane,true)});initHandles();$.each(_c.borderPanes,function(i,pane){if($Ps[pane]&&state[pane].isVisible){setSizeLimits(pane);makePaneFit(pane)}});sizeMidPanes("center");$.each(_c.allPanes,function(i,pane){var o=options[pane];if($Ps[pane]){if(state[pane].isVisible){sizeContent(pane);if(o.triggerEventsOnLoad){_runCallbacks("onresize_end",pane)}else{resizeChildLayout(pane)}}if(o.initChildLayout&&o.childOptions){createChildLayout(pane)}}})},addPane=function(pane,force){if(!force&&!isInitialized()){return}var o=options[pane],s=state[pane],c=_c[pane],fx=s.fx,dir=c.dir,spacing=o.spacing_open||0,isCenter=(pane==="center"),CSS={},$P=$Ps[pane],size,minSize,maxSize;if($P){removePane(pane,false,true,false)}else{$Cs[pane]=false}$P=$Ps[pane]=getPane(pane);if(!$P.length){$Ps[pane]=false;return}if(!$P.data("layoutCSS")){var props="position,top,left,bottom,right,width,height,overflow,zIndex,display,backgroundColor,padding,margin,border";$P.data("layoutCSS",elCSS($P,props))}Instance[pane]={name:pane,pane:$Ps[pane],content:$Cs[pane],options:options[pane],state:state[pane],child:children[pane]};$P.data({parentLayout:Instance,layoutPane:Instance[pane],layoutEdge:pane,layoutRole:"pane"}).css(c.cssReq).css("zIndex",options.zIndexes.pane_normal).css(o.applyDemoStyles?c.cssDemo:{}).addClass(o.paneClass+" "+o.paneClass+"-"+pane).bind("mouseenter."+sID,addHover).bind("mouseleave."+sID,removeHover);var paneMethods={hide:"",show:"",toggle:"",close:"",open:"",slideOpen:"",slideClose:"",slideToggle:"",size:"sizePane",sizePane:"sizePane",sizeContent:"",sizeHandles:"",enableClosable:"",disableClosable:"",enableSlideable:"",disableSlideable:"",enableResizable:"",disableResizable:"",swapPanes:"swapPanes",swap:"swapPanes",move:"swapPanes",removePane:"removePane",remove:"removePane",createChildLayout:"",resizeChildLayout:"",resizeAll:"resizeAll",resizeLayout:"resizeAll"},name;for(name in paneMethods){$P.bind("layoutpane"+name.toLowerCase()+"."+sID,Instance[paneMethods[name]||name])}initContent(pane,false);if(!isCenter){size=s.size=_parseSize(pane,o.size);minSize=_parseSize(pane,o.minSize)||1;maxSize=_parseSize(pane,o.maxSize)||100000;if(size>0){size=max(min(size,maxSize),minSize)}s.isClosed=false;s.isSliding=false;s.isResizing=false;s.isHidden=false;if(!s.pins){s.pins=[]}}s.tagName=$P[0].tagName;s.edge=pane;s.noRoom=false;s.isVisible=true;switch(pane){case"north":CSS.top=sC.insetTop;CSS.left=sC.insetLeft;CSS.right=sC.insetRight;break;case"south":CSS.bottom=sC.insetBottom;CSS.left=sC.insetLeft;CSS.right=sC.insetRight;break;case"west":CSS.left=sC.insetLeft;break;case"east":CSS.right=sC.insetRight;break;case"center":}if(dir==="horz"){CSS.height=cssH($P,size)}else{if(dir==="vert"){CSS.width=cssW($P,size)}}$P.css(CSS);if(dir!="horz"){sizeMidPanes(pane,true)}if(o.initClosed&&o.closable&&!o.initHidden){close(pane,true,true)}else{if(o.initHidden||o.initClosed){hide(pane)}else{if(!s.noRoom){$P.css("display","block")}}}$P.css("visibility","visible");if(o.showOverflowOnHover){$P.hover(allowOverflow,resetOverflow)}if(state.initialized){initHandles(pane);initHotkeys(pane);resizeAll();if(s.isVisible){if(o.triggerEventsOnLoad){_runCallbacks("onresize_end",pane)}else{resizeChildLayout(pane)}}if(o.initChildLayout&&o.childOptions){createChildLayout(pane)}}},initHandles=function(panes){panes=panes?panes.split(","):_c.borderPanes;$.each(panes,function(i,pane){var $P=$Ps[pane];$Rs[pane]=false;$Ts[pane]=false;if(!$P){return}var o=options[pane],s=state[pane],c=_c[pane],paneId=o.paneSelector.substr(0,1)==="#"?o.paneSelector.substr(1):"",rClass=o.resizerClass,tClass=o.togglerClass,side=c.side.toLowerCase(),spacing=(s.isVisible?o.spacing_open:o.spacing_closed),_pane="-"+pane,_state=(s.isVisible?"-open":"-closed"),I=Instance[pane],$R=I.resizer=$Rs[pane]=$("<div></div>"),$T=I.toggler=(o.closable?$Ts[pane]=$("<div></div>"):false);if(!s.isVisible&&o.slidable){$R.attr("title",o.tips.Slide).css("cursor",o.sliderCursor)}$R.attr("id",paneId?paneId+"-resizer":"").data({parentLayout:Instance,layoutPane:Instance[pane],layoutEdge:pane,layoutRole:"resizer"}).css(_c.resizers.cssReq).css("zIndex",options.zIndexes.resizer_normal).css(o.applyDemoStyles?_c.resizers.cssDemo:{}).addClass(rClass+" "+rClass+_pane).hover(addHover,removeHover).hover(onResizerEnter,onResizerLeave).appendTo($N);if($T){$T.attr("id",paneId?paneId+"-toggler":"").data({parentLayout:Instance,layoutPane:Instance[pane],layoutEdge:pane,layoutRole:"toggler"}).css(_c.togglers.cssReq).css(o.applyDemoStyles?_c.togglers.cssDemo:{}).addClass(tClass+" "+tClass+_pane).hover(addHover,removeHover).bind("mouseenter",onResizerEnter).appendTo($R);if(o.togglerContent_open){$("<span>"+o.togglerContent_open+"</span>").data({layoutEdge:pane,layoutRole:"togglerContent"}).data("layoutRole","togglerContent").data("layoutEdge",pane).addClass("content content-open").css("display","none").appendTo($T)}if(o.togglerContent_closed){$("<span>"+o.togglerContent_closed+"</span>").data({layoutEdge:pane,layoutRole:"togglerContent"}).addClass("content content-closed").css("display","none").appendTo($T)}enableClosable(pane)}initResizable(pane);if(s.isVisible){setAsOpen(pane)}else{setAsClosed(pane);bindStartSlidingEvent(pane,true)}});sizeHandles()},initContent=function(pane,resize){if(!isInitialized()){return}var o=options[pane],sel=o.contentSelector,I=Instance[pane],$P=$Ps[pane],$C;if(sel){$C=I.content=$Cs[pane]=(o.findNestedContent)?$P.find(sel).eq(0):$P.children(sel).eq(0)}if($C&&$C.length){$C.data("layoutRole","content");if(!$C.data("layoutCSS")){$C.data("layoutCSS",elCSS($C,"height"))}$C.css(_c.content.cssReq);if(o.applyDemoStyles){$C.css(_c.content.cssDemo);$P.css(_c.content.cssDemoPane)}state[pane].content={};if(resize!==false){sizeContent(pane)}}else{I.content=$Cs[pane]=false}},initResizable=function(panes){var draggingAvailable=$.layout.plugins.draggable,side;panes=panes?panes.split(","):_c.borderPanes;$.each(panes,function(idx,pane){var o=options[pane];if(!draggingAvailable||!$Ps[pane]||!o.resizable){o.resizable=false;return true}var s=state[pane],z=options.zIndexes,c=_c[pane],side=c.dir=="horz"?"top":"left",opEdge=_c.oppositeEdge[pane],masks=pane+",center,"+opEdge+(c.dir=="horz"?",west,east":""),$P=$Ps[pane],$R=$Rs[pane],base=o.resizerClass,lastPos=0,r,live,resizerClass=base+"-drag",resizerPaneClass=base+"-"+pane+"-drag",helperClass=base+"-dragging",helperPaneClass=base+"-"+pane+"-dragging",helperLimitClass=base+"-dragging-limit",helperPaneLimitClass=base+"-"+pane+"-dragging-limit",helperClassesSet=false;if(!s.isClosed){$R.attr("title",o.tips.Resize).css("cursor",o.resizerCursor)}$R.draggable({containment:$N[0],axis:(c.dir=="horz"?"y":"x"),delay:0,distance:1,grid:o.resizingGrid,helper:"clone",opacity:o.resizerDragOpacity,addClasses:false,zIndex:z.resizer_drag,start:function(e,ui){o=options[pane];s=state[pane];live=o.livePaneResizing;if(false===_runCallbacks("ondrag_start",pane)){return false}s.isResizing=true;timer.clear(pane+"_closeSlider");setSizeLimits(pane);r=s.resizerPosition;lastPos=ui.position[side];$R.addClass(resizerClass+" "+resizerPaneClass);helperClassesSet=false;$("body").disableSelection();showMasks(masks)},drag:function(e,ui){if(!helperClassesSet){ui.helper.addClass(helperClass+" "+helperPaneClass).css({right:"auto",bottom:"auto"}).children().css("visibility","hidden");helperClassesSet=true;if(s.isSliding){$Ps[pane].css("zIndex",z.pane_sliding)}}var limit=0;if(ui.position[side]<r.min){ui.position[side]=r.min;limit=-1}else{if(ui.position[side]>r.max){ui.position[side]=r.max;limit=1}}if(limit){ui.helper.addClass(helperLimitClass+" "+helperPaneLimitClass);window.defaultStatus=(limit>0&&pane.match(/(north|west)/))||(limit<0&&pane.match(/(south|east)/))?o.tips.maxSizeWarning:o.tips.minSizeWarning}else{ui.helper.removeClass(helperLimitClass+" "+helperPaneLimitClass);window.defaultStatus=""}if(live&&Math.abs(ui.position[side]-lastPos)>=o.liveResizingTolerance){lastPos=ui.position[side];resizePanes(e,ui,pane)}},stop:function(e,ui){$("body").enableSelection();window.defaultStatus="";$R.removeClass(resizerClass+" "+resizerPaneClass);s.isResizing=false;resizePanes(e,ui,pane,true,masks)}})});var resizePanes=function(evt,ui,pane,resizingDone,masks){var dragPos=ui.position,c=_c[pane],o=options[pane],s=state[pane],resizerPos;switch(pane){case"north":resizerPos=dragPos.top;break;case"west":resizerPos=dragPos.left;break;case"south":resizerPos=sC.offsetHeight-dragPos.top-o.spacing_open;break;case"east":resizerPos=sC.offsetWidth-dragPos.left-o.spacing_open;break}var newSize=resizerPos-sC["inset"+c.side];if(!resizingDone){if(Math.abs(newSize-s.size)<o.liveResizingTolerance){return}manualSizePane(pane,newSize,false,true);sizeMasks()}else{if(false!==_runCallbacks("ondrag_end",pane)){manualSizePane(pane,newSize,false,true)}hideMasks();if(s.isSliding&&masks){showMasks(masks,true)}}}},sizeMask=function(){var $M=$(this),pane=$M.data("layoutMask"),s=state[pane];if(s.tagName=="IFRAME"&&s.isVisible){$M.css({top:s.offsetTop,left:s.offsetLeft,width:s.outerWidth,height:s.outerHeight})}},sizeMasks=function(){$Ms.each(sizeMask)},showMasks=function(panes,onlyForObjects){var a=panes?panes.split(","):$.layout.config.allPanes,z=options.zIndexes,o,s;$.each(a,function(i,p){s=state[p];o=options[p];if(s.isVisible&&((!onlyForObjects&&o.maskContents)||o.maskObjects)){getMasks(p).each(function(){sizeMask.call(this);this.style.zIndex=s.isSliding?z.pane_sliding+1:z.pane_normal+1;this.style.display="block"})}})},hideMasks=function(){var skip;$.each($.layout.config.borderPanes,function(i,p){if(state[p].isResizing){skip=true;return false}});if(!skip){$Ms.hide()}},getMasks=function(pane){var $Masks=$([]),$M,i=0,c=$Ms.length;for(;i<c;i++){$M=$Ms.eq(i);if($M.data("layoutMask")===pane){$Masks=$Masks.add($M)}}if($Masks.length){return $Masks}else{return createMasks(pane)}},createMasks=function(pane){var $P=$Ps[pane],s=state[pane],o=options[pane],z=options.zIndexes,$Masks=$([]),isIframe,el,$M,css,i;if(!o.maskContents&&!o.maskObjects){return $Masks}for(i=0;i<(o.maskObjects?2:1);i++){isIframe=o.maskObjects&&i==0;el=document.createElement(isIframe?"iframe":"div");$M=$(el).data("layoutMask",pane);el.className="ui-layout-mask ui-layout-mask-"+pane;css=el.style;css.display="block";css.position="absolute";if(isIframe){el.frameborder=0;el.src="about:blank";css.opacity=0;css.filter="Alpha(Opacity='0')";css.border=0}if(s.tagName=="IFRAME"){css.zIndex=z.pane_normal+1;$N.append(el)}else{$M.addClass("ui-layout-mask-inside-pane");css.zIndex=o.maskZindex||z.content_mask;css.top=0;css.left=0;css.width="100%";css.height="100%";$P.append(el)}$Masks=$Masks.add(el);$Ms=$Ms.add(el)}return $Masks},destroy=function(evt_or_destroyChildren,destroyChildren){$(window).unbind("."+sID);$(document).unbind("."+sID);if(typeof evt_or_destroyChildren==="object"){evtPane(evt_or_destroyChildren)}else{destroyChildren=evt_or_destroyChildren}$N.clearQueue().removeData("layout").removeData("layoutContainer").removeClass(options.containerClass).unbind("."+sID);$Ms.remove();$.each(_c.allPanes,function(i,pane){removePane(pane,false,true,destroyChildren)});var css="layoutCSS";if($N.data(css)&&!$N.data("layoutRole")){$N.css($N.data(css)).removeData(css)}if(sC.tagName==="BODY"&&($N=$("html")).data(css)){$N.css($N.data(css)).removeData(css)}runPluginCallbacks(Instance,$.layout.onDestroy);unload();for(n in Instance){if(!n.match(/^(container|options)$/)){delete Instance[n]}}Instance.destroyed=true;return Instance},removePane=function(evt_or_pane,remove,skipResize,destroyChild){if(!isInitialized()){return}var pane=evtPane.call(this,evt_or_pane),$P=$Ps[pane],$C=$Cs[pane],$R=$Rs[pane],$T=$Ts[pane];if($P&&$.isEmptyObject($P.data())){$P=false}if($C&&$.isEmptyObject($C.data())){$C=false}if($R&&$.isEmptyObject($R.data())){$R=false}if($T&&$.isEmptyObject($T.data())){$T=false}if($P){$P.stop(true,true)}var o=options[pane],s=state[pane],d="layout",css="layoutCSS",child=children[pane]||($P?$P.data(d):0)||($C?$C.data(d):0)||null,destroy=destroyChild!==undefined?destroyChild:o.destroyChildLayout;if(destroy&&child&&!child.destroyed){child.destroy(true);if(child.destroyed){child=null}}if($P&&remove&&!child){$P.remove()}else{if($P&&$P[0]){var root=o.paneClass,pRoot=root+"-"+pane,_open="-open",_sliding="-sliding",_closed="-closed",classes=[root,root+_open,root+_closed,root+_sliding,pRoot,pRoot+_open,pRoot+_closed,pRoot+_sliding];$.merge(classes,getHoverClasses($P,true));$P.removeClass(classes.join(" ")).removeData("parentLayout").removeData("layoutPane").removeData("layoutRole").removeData("layoutEdge").removeData("autoHidden").unbind("."+sID);if($C&&$C.data(d)){$C.width($C.width());child.resizeAll()}else{if($C){$C.css($C.data(css)).removeData(css).removeData("layoutRole")}}if(!$P.data(d)){$P.css($P.data(css)).removeData(css)}}}if($T){$T.remove()}if($R){$R.remove()}Instance[pane]=$Ps[pane]=$Cs[pane]=$Rs[pane]=$Ts[pane]=children[pane]=false;s={removed:true};if(!skipResize){resizeAll()}},_hidePane=function(pane){var $P=$Ps[pane],o=options[pane],s=$P[0].style;if(o.useOffscreenClose){if(!$P.data(_c.offscreenReset)){$P.data(_c.offscreenReset,{left:s.left,right:s.right})}$P.css(_c.offscreenCSS)}else{$P.hide().removeData(_c.offscreenReset)}},_showPane=function(pane){var $P=$Ps[pane],o=options[pane],off=_c.offscreenCSS,old=$P.data(_c.offscreenReset),s=$P[0].style;$P.show().removeData(_c.offscreenReset);if(o.useOffscreenClose&&old){if(s.left==off.left){s.left=old.left}if(s.right==off.right){s.right=old.right}}},hide=function(evt_or_pane,noAnimation){if(!isInitialized()){return}var pane=evtPane.call(this,evt_or_pane),o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane];if(!$P||s.isHidden){return}if(state.initialized&&false===_runCallbacks("onhide_start",pane)){return}s.isSliding=false;if($R){$R.hide()}if(!state.initialized||s.isClosed){s.isClosed=true;s.isHidden=true;s.isVisible=false;if(!state.initialized){_hidePane(pane)}sizeMidPanes(_c[pane].dir==="horz"?"":"center");if(state.initialized||o.triggerEventsOnLoad){_runCallbacks("onhide_end",pane)}}else{s.isHiding=true;close(pane,false,noAnimation)}},show=function(evt_or_pane,openPane,noAnimation,noAlert){if(!isInitialized()){return}var pane=evtPane.call(this,evt_or_pane),o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane];if(!$P||!s.isHidden){return}if(false===_runCallbacks("onshow_start",pane)){return}s.isSliding=false;s.isShowing=true;if(openPane===false){close(pane,true)}else{open(pane,false,noAnimation,noAlert)}},toggle=function(evt_or_pane,slide){if(!isInitialized()){return}var evt=evtObj(evt_or_pane),pane=evtPane.call(this,evt_or_pane),s=state[pane];if(evt){evt.stopImmediatePropagation()}if(s.isHidden){show(pane)}else{if(s.isClosed){open(pane,!!slide)}else{close(pane)}}},_closePane=function(pane,setHandles){var $P=$Ps[pane],s=state[pane];_hidePane(pane);s.isClosed=true;s.isVisible=false},close=function(evt_or_pane,force,noAnimation,skipCallback){var pane=evtPane.call(this,evt_or_pane);if(!state.initialized&&$Ps[pane]){_closePane(pane);return}if(!isInitialized()){return}var $P=$Ps[pane],$R=$Rs[pane],$T=$Ts[pane],o=options[pane],s=state[pane],c=_c[pane],doFX,isShowing,isHiding,wasSliding;$N.queue(function(queueNext){if(!$P||(!o.closable&&!s.isShowing&&!s.isHiding)||(!force&&s.isClosed&&!s.isShowing)){return queueNext()}var abort=!s.isShowing&&false===_runCallbacks("onclose_start",pane);isShowing=s.isShowing;isHiding=s.isHiding;wasSliding=s.isSliding;delete s.isShowing;delete s.isHiding;if(abort){return queueNext()}doFX=!noAnimation&&!s.isClosed&&(o.fxName_close!="none");s.isMoving=true;s.isClosed=true;s.isVisible=false;if(isHiding){s.isHidden=true}else{if(isShowing){s.isHidden=false}}if(s.isSliding){bindStopSlidingEvents(pane,false)}else{sizeMidPanes(_c[pane].dir==="horz"?"":"center",false)}setAsClosed(pane);if(doFX){var masks="center"+(c.dir=="horz"?",west,east":"");showMasks(masks,true);lockPaneForFX(pane,true);$P.hide(o.fxName_close,o.fxSettings_close,o.fxSpeed_close,function(){lockPaneForFX(pane,false);if(s.isClosed){close_2()}queueNext()})}else{_hidePane(pane);close_2();queueNext()}});function close_2(){s.isMoving=false;bindStartSlidingEvent(pane,true);var altPane=_c.oppositeEdge[pane];if(state[altPane].noRoom){setSizeLimits(altPane);makePaneFit(altPane)}hideMasks();if(!skipCallback&&(state.initialized||o.triggerEventsOnLoad)){if(!isShowing){_runCallbacks("onclose_end",pane)}if(isShowing){_runCallbacks("onshow_end",pane)}if(isHiding){_runCallbacks("onhide_end",pane)}}}},setAsClosed=function(pane){var $P=$Ps[pane],$R=$Rs[pane],$T=$Ts[pane],o=options[pane],s=state[pane],side=_c[pane].side.toLowerCase(),inset="inset"+_c[pane].side,rClass=o.resizerClass,tClass=o.togglerClass,_pane="-"+pane,_open="-open",_sliding="-sliding",_closed="-closed";$R.css(side,sC[inset]).removeClass(rClass+_open+" "+rClass+_pane+_open).removeClass(rClass+_sliding+" "+rClass+_pane+_sliding).addClass(rClass+_closed+" "+rClass+_pane+_closed).unbind("dblclick."+sID);if(o.resizable&&$.layout.plugins.draggable){$R.draggable("disable").removeClass("ui-state-disabled").css("cursor","default").attr("title","")}if($T){$T.removeClass(tClass+_open+" "+tClass+_pane+_open).addClass(tClass+_closed+" "+tClass+_pane+_closed).attr("title",o.tips.Open);$T.children(".content-open").hide();$T.children(".content-closed").css("display","block")}syncPinBtns(pane,false);if(state.initialized){sizeHandles()}},open=function(evt_or_pane,slide,noAnimation,noAlert){if(!isInitialized()){return}var pane=evtPane.call(this,evt_or_pane),$P=$Ps[pane],$R=$Rs[pane],$T=$Ts[pane],o=options[pane],s=state[pane],c=_c[pane],doFX,isShowing;$N.queue(function(queueNext){if(!$P||(!o.resizable&&!o.closable&&!s.isShowing)||(s.isVisible&&!s.isSliding)){return queueNext()}if(s.isHidden&&!s.isShowing){queueNext();show(pane,true);return}if(o.autoResize&&s.size!=o.size){sizePane(pane,o.size,true,true,true)}else{setSizeLimits(pane,slide)}var cbReturn=_runCallbacks("onopen_start",pane);if(cbReturn==="abort"){return queueNext()}if(cbReturn!=="NC"){setSizeLimits(pane,slide)}if(s.minSize>s.maxSize){syncPinBtns(pane,false);if(!noAlert&&o.tips.noRoomToOpen){alert(o.tips.noRoomToOpen)}return queueNext()}if(slide){bindStopSlidingEvents(pane,true)}else{if(s.isSliding){bindStopSlidingEvents(pane,false)}else{if(o.slidable){bindStartSlidingEvent(pane,false)}}}s.noRoom=false;makePaneFit(pane);isShowing=s.isShowing;delete s.isShowing;doFX=!noAnimation&&s.isClosed&&(o.fxName_open!="none");s.isMoving=true;s.isVisible=true;s.isClosed=false;if(isShowing){s.isHidden=false}if(doFX){var masks="center"+(c.dir=="horz"?",west,east":"");if(s.isSliding){masks+=","+_c.oppositeEdge[pane]}showMasks(masks,true);lockPaneForFX(pane,true);$P.show(o.fxName_open,o.fxSettings_open,o.fxSpeed_open,function(){lockPaneForFX(pane,false);if(s.isVisible){open_2()}queueNext()})}else{_showPane(pane);open_2();queueNext()}});function open_2(){s.isMoving=false;_fixIframe(pane);if(!s.isSliding){hideMasks();sizeMidPanes(_c[pane].dir=="vert"?"center":"",false)}setAsOpen(pane)}},setAsOpen=function(pane,skipCallback){var $P=$Ps[pane],$R=$Rs[pane],$T=$Ts[pane],o=options[pane],s=state[pane],side=_c[pane].side.toLowerCase(),inset="inset"+_c[pane].side,rClass=o.resizerClass,tClass=o.togglerClass,_pane="-"+pane,_open="-open",_closed="-closed",_sliding="-sliding";$R.css(side,sC[inset]+getPaneSize(pane)).removeClass(rClass+_closed+" "+rClass+_pane+_closed).addClass(rClass+_open+" "+rClass+_pane+_open);if(s.isSliding){$R.addClass(rClass+_sliding+" "+rClass+_pane+_sliding)}else{$R.removeClass(rClass+_sliding+" "+rClass+_pane+_sliding)}if(o.resizerDblClickToggle){$R.bind("dblclick",toggle)}removeHover(0,$R);if(o.resizable&&$.layout.plugins.draggable){$R.draggable("enable").css("cursor",o.resizerCursor).attr("title",o.tips.Resize)}else{if(!s.isSliding){$R.css("cursor","default")}}if($T){$T.removeClass(tClass+_closed+" "+tClass+_pane+_closed).addClass(tClass+_open+" "+tClass+_pane+_open).attr("title",o.tips.Close);removeHover(0,$T);$T.children(".content-closed").hide();$T.children(".content-open").css("display","block")}syncPinBtns(pane,!s.isSliding);$.extend(s,elDims($P));if(state.initialized){sizeHandles();sizeContent(pane,true)}if(!skipCallback&&(state.initialized||o.triggerEventsOnLoad)&&$P.is(":visible")){_runCallbacks("onopen_end",pane);if(s.isShowing){_runCallbacks("onshow_end",pane)}if(state.initialized){_runCallbacks("onresize_end",pane)}}},slideOpen=function(evt_or_pane){if(!isInitialized()){return}var evt=evtObj(evt_or_pane),pane=evtPane.call(this,evt_or_pane),s=state[pane],delay=options[pane].slideDelay_open;if(evt){evt.stopImmediatePropagation()}if(s.isClosed&&evt&&evt.type==="mouseenter"&&delay>0){timer.set(pane+"_openSlider",open_NOW,delay)}else{open_NOW()}function open_NOW(){if(!s.isClosed){bindStopSlidingEvents(pane,true)}else{if(!s.isMoving){open(pane,true)}}}},slideClose=function(evt_or_pane){if(!isInitialized()){return}var evt=evtObj(evt_or_pane),pane=evtPane.call(this,evt_or_pane),o=options[pane],s=state[pane],delay=s.isMoving?1000:300;if(s.isClosed||s.isResizing){return}else{if(o.slideTrigger_close==="click"){close_NOW()}else{if(o.preventQuickSlideClose&&s.isMoving){return}else{if(o.preventPrematureSlideClose&&evt&&$.layout.isMouseOverElem(evt,$Ps[pane])){return}else{if(evt){timer.set(pane+"_closeSlider",close_NOW,max(o.slideDelay_close,delay))}else{close_NOW()}}}}}function close_NOW(){if(s.isClosed){bindStopSlidingEvents(pane,false)}else{if(!s.isMoving){close(pane)}}}},slideToggle=function(evt_or_pane){var pane=evtPane.call(this,evt_or_pane);toggle(pane,true)},lockPaneForFX=function(pane,doLock){var $P=$Ps[pane],s=state[pane],o=options[pane],z=options.zIndexes;if(doLock){$P.css({zIndex:z.pane_animate});if(pane=="south"){$P.css({top:sC.insetTop+sC.innerHeight-$P.outerHeight()})}else{if(pane=="east"){$P.css({left:sC.insetLeft+sC.innerWidth-$P.outerWidth()})}}}else{$P.css({zIndex:(s.isSliding?z.pane_sliding:z.pane_normal)});if(pane=="south"){$P.css({top:"auto"})}else{if(pane=="east"&&!$P.css("left").match(/\-99999/)){$P.css({left:"auto"})}}if(browser.msie&&o.fxOpacityFix&&o.fxName_open!="slide"&&$P.css("filter")&&$P.css("opacity")==1){$P[0].style.removeAttribute("filter")}}},bindStartSlidingEvent=function(pane,enable){var o=options[pane],$P=$Ps[pane],$R=$Rs[pane],evtName=o.slideTrigger_open.toLowerCase();if(!$R||(enable&&!o.slidable)){return}if(evtName.match(/mouseover/)){evtName=o.slideTrigger_open="mouseenter"}else{if(!evtName.match(/(click|dblclick|mouseenter)/)){evtName=o.slideTrigger_open="click"}}$R[enable?"bind":"unbind"](evtName+"."+sID,slideOpen).css("cursor",enable?o.sliderCursor:"default").attr("title",enable?o.tips.Slide:"")},bindStopSlidingEvents=function(pane,enable){var o=options[pane],s=state[pane],c=_c[pane],z=options.zIndexes,evtName=o.slideTrigger_close.toLowerCase(),action=(enable?"bind":"unbind"),$P=$Ps[pane],$R=$Rs[pane];s.isSliding=enable;timer.clear(pane+"_closeSlider");if(enable){bindStartSlidingEvent(pane,false)}$P.css("zIndex",enable?z.pane_sliding:z.pane_normal);$R.css("zIndex",enable?z.pane_sliding+2:z.resizer_normal);if(!evtName.match(/(click|mouseleave)/)){evtName=o.slideTrigger_close="mouseleave"}$R[action](evtName,slideClose);if(evtName==="mouseleave"){$P[action]("mouseleave."+sID,slideClose);$R[action]("mouseenter."+sID,cancelMouseOut);$P[action]("mouseenter."+sID,cancelMouseOut)}if(!enable){timer.clear(pane+"_closeSlider")}else{if(evtName==="click"&&!o.resizable){$R.css("cursor",enable?o.sliderCursor:"default");$R.attr("title",enable?o.tips.Close:"")}}function cancelMouseOut(evt){timer.clear(pane+"_closeSlider");evt.stopPropagation()}},makePaneFit=function(pane,isOpening,skipCallback,force){var o=options[pane],s=state[pane],c=_c[pane],$P=$Ps[pane],$R=$Rs[pane],isSidePane=c.dir==="vert",hasRoom=false;if(pane==="center"||(isSidePane&&s.noVerticalRoom)){hasRoom=(s.maxHeight>=0);if(hasRoom&&s.noRoom){_showPane(pane);if($R){$R.show()}s.isVisible=true;s.noRoom=false;if(isSidePane){s.noVerticalRoom=false}_fixIframe(pane)}else{if(!hasRoom&&!s.noRoom){_hidePane(pane);if($R){$R.hide()}s.isVisible=false;s.noRoom=true}}}if(pane==="center"){}else{if(s.minSize<=s.maxSize){hasRoom=true;if(s.size>s.maxSize){sizePane(pane,s.maxSize,skipCallback,force,true)}else{if(s.size<s.minSize){sizePane(pane,s.minSize,skipCallback,force,true)}else{if($R&&s.isVisible&&$P.is(":visible")){var side=c.side.toLowerCase(),pos=s.size+sC["inset"+c.side];if($.layout.cssNum($R,side)!=pos){$R.css(side,pos)}}}}if(s.noRoom){if(s.wasOpen&&o.closable){if(o.autoReopen){open(pane,false,true,true)}else{s.noRoom=false}}else{show(pane,s.wasOpen,true,true)}}}else{if(!s.noRoom){s.noRoom=true;s.wasOpen=!s.isClosed&&!s.isSliding;if(s.isClosed){}else{if(o.closable){close(pane,true,true)}else{hide(pane,true)}}}}}},manualSizePane=function(evt_or_pane,size,skipCallback,noAnimation){if(!isInitialized()){return}var pane=evtPane.call(this,evt_or_pane),o=options[pane],s=state[pane],forceResize=o.livePaneResizing&&!s.isResizing;o.autoResize=false;sizePane(pane,size,skipCallback,forceResize,noAnimation)},sizePane=function(evt_or_pane,size,skipCallback,force,noAnimation){if(!isInitialized()){return}var pane=evtPane.call(this,evt_or_pane),o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane],side=_c[pane].side.toLowerCase(),dimName=_c[pane].sizeType.toLowerCase(),inset="inset"+_c[pane].side,skipResizeWhileDragging=s.isResizing&&!o.triggerEventsDuringLiveResize,doFX=noAnimation!==true&&o.animatePaneSizing,oldSize,newSize;$N.queue(function(queueNext){setSizeLimits(pane);oldSize=s.size;size=_parseSize(pane,size);size=max(size,_parseSize(pane,o.minSize));size=min(size,s.maxSize);if(size<s.minSize){queueNext();makePaneFit(pane,false,skipCallback);return}if(!force&&size===oldSize){return queueNext()}if(!skipCallback&&state.initialized&&s.isVisible){_runCallbacks("onresize_start",pane)}newSize=cssSize(pane,size);if(doFX&&$P.is(":visible")){var fx=$.layout.effects.size[pane]||$.layout.effects.size.all,easing=o.fxSettings_size.easing||fx.easing,z=options.zIndexes,props={};props[dimName]=newSize+"px";s.isMoving=true;$P.css({zIndex:z.pane_animate}).show().animate(props,o.fxSpeed_size,easing,function(){$P.css({zIndex:(s.isSliding?z.pane_sliding:z.pane_normal)});s.isMoving=false;sizePane_2();queueNext()})}else{$P.css(dimName,newSize);if($P.is(":visible")){sizePane_2()}else{s.size=size;$.extend(s,elDims($P))}queueNext()}});function sizePane_2(){var actual=dimName==="width"?$P.outerWidth():$P.outerHeight(),tries=[{pane:pane,count:1,target:size,actual:actual,correct:(size===actual),attempt:size,cssSize:newSize}],lastTry=tries[0],thisTry={},msg="Inaccurate size after resizing the "+pane+"-pane.";while(!lastTry.correct){thisTry={pane:pane,count:lastTry.count+1,target:size};if(lastTry.actual>size){thisTry.attempt=max(0,lastTry.attempt-(lastTry.actual-size))}else{thisTry.attempt=max(0,lastTry.attempt+(size-lastTry.actual))}thisTry.cssSize=cssSize(pane,thisTry.attempt);$P.css(dimName,thisTry.cssSize);thisTry.actual=dimName=="width"?$P.outerWidth():$P.outerHeight();thisTry.correct=(size===thisTry.actual);if(tries.length===1){_log(msg,false,true);_log(lastTry,false,true)}_log(thisTry,false,true);if(tries.length>3){break}tries.push(thisTry);lastTry=tries[tries.length-1]}s.size=size;$.extend(s,elDims($P));if(s.isVisible&&$P.is(":visible")){if($R){$R.css(side,size+sC[inset])}sizeContent(pane)}if(!skipCallback&&!skipResizeWhileDragging&&state.initialized&&s.isVisible){_runCallbacks("onresize_end",pane)}if(!skipCallback){if(!s.isSliding){sizeMidPanes(_c[pane].dir=="horz"?"":"center",skipResizeWhileDragging,force)}sizeHandles()}var altPane=_c.oppositeEdge[pane];if(size<oldSize&&state[altPane].noRoom){setSizeLimits(altPane);makePaneFit(altPane,false,skipCallback)}if(tries.length>1){_log(msg+"\nSee the Error Console for details.",true,true)}}},sizeMidPanes=function(panes,skipCallback,force){panes=(panes?panes:"east,west,center").split(",");$.each(panes,function(i,pane){if(!$Ps[pane]){return}var o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane],isCenter=(pane=="center"),hasRoom=true,CSS={},newCenter=calcNewCenterPaneDims();$.extend(s,elDims($P));if(pane==="center"){if(!force&&s.isVisible&&newCenter.width===s.outerWidth&&newCenter.height===s.outerHeight){return true}$.extend(s,cssMinDims(pane),{maxWidth:newCenter.width,maxHeight:newCenter.height});CSS=newCenter;CSS.width=cssW($P,CSS.width);CSS.height=cssH($P,CSS.height);hasRoom=CSS.width>=0&&CSS.height>=0;if(!state.initialized&&o.minWidth>s.outerWidth){var reqPx=o.minWidth-s.outerWidth,minE=options.east.minSize||0,minW=options.west.minSize||0,sizeE=state.east.size,sizeW=state.west.size,newE=sizeE,newW=sizeW;if(reqPx>0&&state.east.isVisible&&sizeE>minE){newE=max(sizeE-minE,sizeE-reqPx);reqPx-=sizeE-newE}if(reqPx>0&&state.west.isVisible&&sizeW>minW){newW=max(sizeW-minW,sizeW-reqPx);reqPx-=sizeW-newW}if(reqPx===0){if(sizeE&&sizeE!=minE){sizePane("east",newE,true,force,true)}if(sizeW&&sizeW!=minW){sizePane("west",newW,true,force,true)}sizeMidPanes("center",skipCallback,force);return}}}else{if(s.isVisible&&!s.noVerticalRoom){$.extend(s,elDims($P),cssMinDims(pane))}if(!force&&!s.noVerticalRoom&&newCenter.height===s.outerHeight){return true}CSS.top=newCenter.top;CSS.bottom=newCenter.bottom;CSS.height=cssH($P,newCenter.height);s.maxHeight=CSS.height;hasRoom=(s.maxHeight>=0);if(!hasRoom){s.noVerticalRoom=true}}if(hasRoom){if(!skipCallback&&state.initialized){_runCallbacks("onresize_start",pane)}$P.css(CSS);if(pane!=="center"){sizeHandles(pane)}if(s.noRoom&&!s.isClosed&&!s.isHidden){makePaneFit(pane)}if(s.isVisible){$.extend(s,elDims($P));if(state.initialized){sizeContent(pane)}}}else{if(!s.noRoom&&s.isVisible){makePaneFit(pane)}}if(!s.isVisible){return true}if(pane==="center"){var fix=browser.isIE6||!browser.boxModel;if($Ps.north&&(fix||state.north.tagName=="IFRAME")){$Ps.north.css("width",cssW($Ps.north,sC.innerWidth))}if($Ps.south&&(fix||state.south.tagName=="IFRAME")){$Ps.south.css("width",cssW($Ps.south,sC.innerWidth))}}if(!skipCallback&&state.initialized){_runCallbacks("onresize_end",pane)}})},resizeAll=function(evt){evtPane(evt);if(!state.initialized){_initLayoutElements();return}var oldW=sC.innerWidth,oldH=sC.innerHeight;if(!$N.is(":visible")){return}$.extend(state.container,elDims($N));if(!sC.outerHeight){return}if(false===_runCallbacks("onresizeall_start")){return false}var shrunkH=(sC.innerHeight<oldH),shrunkW=(sC.innerWidth<oldW),$P,o,s,dir;$.each(["south","north","east","west"],function(i,pane){if(!$Ps[pane]){return}s=state[pane];o=options[pane];dir=_c[pane].dir;if(o.autoResize&&s.size!=o.size){sizePane(pane,o.size,true,true,true)}else{setSizeLimits(pane);makePaneFit(pane,false,true,true)}});sizeMidPanes("",true,true);sizeHandles();o=options;$.each(_c.allPanes,function(i,pane){$P=$Ps[pane];if(!$P){return}if(state[pane].isVisible){_runCallbacks("onresize_end",pane)}});_runCallbacks("onresizeall_end")},resizeChildLayout=function(evt_or_pane){var pane=evtPane.call(this,evt_or_pane);if(!options[pane].resizeChildLayout){return}var $P=$Ps[pane],$C=$Cs[pane],d="layout",P=Instance[pane],L=children[pane];if(P.child&&!L){var el=P.child.container;L=children[pane]=(el?el.data(d):0)||null}if(L&&L.destroyed){L=children[pane]=null}if(!L){L=children[pane]=$P.data(d)||($C?$C.data(d):0)||null}P.child=children[pane];if(L){L.resizeAll()}},sizeContent=function(evt_or_panes,remeasure){if(!isInitialized()){return}var panes=evtPane.call(this,evt_or_panes);panes=panes?panes.split(","):_c.allPanes;$.each(panes,function(idx,pane){var $P=$Ps[pane],$C=$Cs[pane],o=options[pane],s=state[pane],m=s.content;if(!$P||!$C||!$P.is(":visible")){return true}if(!$C.length){initContent(pane,false);if(!$C){return}}if(false===_runCallbacks("onsizecontent_start",pane)){return}if((!s.isMoving&&!s.isResizing)||o.liveContentResizing||remeasure||m.top==undefined){_measure();if(m.hiddenFooters>0&&$P.css("overflow")==="hidden"){$P.css("overflow","visible");_measure();$P.css("overflow","hidden")}}var newH=s.innerHeight-(m.spaceAbove-s.css.paddingTop)-(m.spaceBelow-s.css.paddingBottom);if(!$C.is(":visible")||m.height!=newH){setOuterHeight($C,newH,true);m.height=newH}if(state.initialized){_runCallbacks("onsizecontent_end",pane)}function _below($E){return max(s.css.paddingBottom,(parseInt($E.css("marginBottom"),10)||0))}function _measure(){var ignore=options[pane].contentIgnoreSelector,$Fs=$C.nextAll().not(ignore||":lt(0)"),$Fs_vis=$Fs.filter(":visible"),$F=$Fs_vis.filter(":last");m={top:$C[0].offsetTop,height:$C.outerHeight(),numFooters:$Fs.length,hiddenFooters:$Fs.length-$Fs_vis.length,spaceBelow:0};m.spaceAbove=m.top;m.bottom=m.top+m.height;if($F.length){m.spaceBelow=($F[0].offsetTop+$F.outerHeight())-m.bottom+_below($F)}else{m.spaceBelow=_below($C)}}})},sizeHandles=function(evt_or_panes){var panes=evtPane.call(this,evt_or_panes);panes=panes?panes.split(","):_c.borderPanes;$.each(panes,function(i,pane){var o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane],$T=$Ts[pane],$TC;if(!$P||!$R){return}var dir=_c[pane].dir,_state=(s.isClosed?"_closed":"_open"),spacing=o["spacing"+_state],togAlign=o["togglerAlign"+_state],togLen=o["togglerLength"+_state],paneLen,left,offset,CSS={};if(spacing===0){$R.hide();return}else{if(!s.noRoom&&!s.isHidden){$R.show()}}if(dir==="horz"){paneLen=sC.innerWidth;s.resizerLength=paneLen;left=$.layout.cssNum($P,"left");$R.css({width:cssW($R,paneLen),height:cssH($R,spacing),left:left>-9999?left:sC.insetLeft})}else{paneLen=$P.outerHeight();s.resizerLength=paneLen;$R.css({height:cssH($R,paneLen),width:cssW($R,spacing),top:sC.insetTop+getPaneSize("north",true)})}removeHover(o,$R);if($T){if(togLen===0||(s.isSliding&&o.hideTogglerOnSlide)){$T.hide();return}else{$T.show()}if(!(togLen>0)||togLen==="100%"||togLen>paneLen){togLen=paneLen;offset=0}else{if(isStr(togAlign)){switch(togAlign){case"top":case"left":offset=0;break;case"bottom":case"right":offset=paneLen-togLen;break;case"middle":case"center":default:offset=round((paneLen-togLen)/2)}}else{var x=parseInt(togAlign,10);if(togAlign>=0){offset=x}else{offset=paneLen-togLen+x}}}if(dir==="horz"){var width=cssW($T,togLen);$T.css({width:width,height:cssH($T,spacing),left:offset,top:0});$T.children(".content").each(function(){$TC=$(this);$TC.css("marginLeft",round((width-$TC.outerWidth())/2))})}else{var height=cssH($T,togLen);$T.css({height:height,width:cssW($T,spacing),top:offset,left:0});$T.children(".content").each(function(){$TC=$(this);$TC.css("marginTop",round((height-$TC.outerHeight())/2))})}removeHover(0,$T)}if(!state.initialized&&(o.initHidden||s.noRoom)){$R.hide();if($T){$T.hide()}}})},enableClosable=function(evt_or_pane){if(!isInitialized()){return}var pane=evtPane.call(this,evt_or_pane),$T=$Ts[pane],o=options[pane];if(!$T){return}o.closable=true;$T.bind("click."+sID,function(evt){evt.stopPropagation();toggle(pane)}).css("visibility","visible").css("cursor","pointer").attr("title",state[pane].isClosed?o.tips.Open:o.tips.Close).show()},disableClosable=function(evt_or_pane,hide){if(!isInitialized()){return}var pane=evtPane.call(this,evt_or_pane),$T=$Ts[pane];if(!$T){return}options[pane].closable=false;if(state[pane].isClosed){open(pane,false,true)}$T.unbind("."+sID).css("visibility",hide?"hidden":"visible").css("cursor","default").attr("title","")},enableSlidable=function(evt_or_pane){if(!isInitialized()){return}var pane=evtPane.call(this,evt_or_pane),$R=$Rs[pane];if(!$R||!$R.data("draggable")){return}options[pane].slidable=true;if(state[pane].isClosed){bindStartSlidingEvent(pane,true)}},disableSlidable=function(evt_or_pane){if(!isInitialized()){return}var pane=evtPane.call(this,evt_or_pane),$R=$Rs[pane];if(!$R){return}options[pane].slidable=false;if(state[pane].isSliding){close(pane,false,true)}else{bindStartSlidingEvent(pane,false);$R.css("cursor","default").attr("title","");removeHover(null,$R[0])}},enableResizable=function(evt_or_pane){if(!isInitialized()){return}var pane=evtPane.call(this,evt_or_pane),$R=$Rs[pane],o=options[pane];if(!$R||!$R.data("draggable")){return}o.resizable=true;$R.draggable("enable");if(!state[pane].isClosed){$R.css("cursor",o.resizerCursor).attr("title",o.tips.Resize)}},disableResizable=function(evt_or_pane){if(!isInitialized()){return}var pane=evtPane.call(this,evt_or_pane),$R=$Rs[pane];if(!$R||!$R.data("draggable")){return}options[pane].resizable=false;$R.draggable("disable").css("cursor","default").attr("title","");removeHover(null,$R[0])},swapPanes=function(evt_or_pane1,pane2){if(!isInitialized()){return}var pane1=evtPane.call(this,evt_or_pane1);state[pane1].edge=pane2;state[pane2].edge=pane1;if(false===_runCallbacks("onswap_start",pane1)||false===_runCallbacks("onswap_start",pane2)){state[pane1].edge=pane1;state[pane2].edge=pane2;return}var oPane1=copy(pane1),oPane2=copy(pane2),sizes={};sizes[pane1]=oPane1?oPane1.state.size:0;sizes[pane2]=oPane2?oPane2.state.size:0;$Ps[pane1]=false;$Ps[pane2]=false;state[pane1]={};state[pane2]={};if($Ts[pane1]){$Ts[pane1].remove()}if($Ts[pane2]){$Ts[pane2].remove()}if($Rs[pane1]){$Rs[pane1].remove()}if($Rs[pane2]){$Rs[pane2].remove()}$Rs[pane1]=$Rs[pane2]=$Ts[pane1]=$Ts[pane2]=false;move(oPane1,pane2);move(oPane2,pane1);oPane1=oPane2=sizes=null;if($Ps[pane1]){$Ps[pane1].css(_c.visible)}if($Ps[pane2]){$Ps[pane2].css(_c.visible)}resizeAll();_runCallbacks("onswap_end",pane1);_runCallbacks("onswap_end",pane2);return;function copy(n){var $P=$Ps[n],$C=$Cs[n];return !$P?false:{pane:n,P:$P?$P[0]:false,C:$C?$C[0]:false,state:$.extend(true,{},state[n]),options:$.extend(true,{},options[n])}}function move(oPane,pane){if(!oPane){return}var P=oPane.P,C=oPane.C,oldPane=oPane.pane,c=_c[pane],side=c.side.toLowerCase(),inset="inset"+c.side,s=$.extend(true,{},state[pane]),o=options[pane],fx={resizerCursor:o.resizerCursor},re,size,pos;$.each("fxName,fxSpeed,fxSettings".split(","),function(i,k){fx[k+"_open"]=o[k+"_open"];fx[k+"_close"]=o[k+"_close"];fx[k+"_size"]=o[k+"_size"]});$Ps[pane]=$(P).data({layoutPane:Instance[pane],layoutEdge:pane}).css(_c.hidden).css(c.cssReq);$Cs[pane]=C?$(C):false;options[pane]=$.extend(true,{},oPane.options,fx);state[pane]=$.extend(true,{},oPane.state);re=new RegExp(o.paneClass+"-"+oldPane,"g");P.className=P.className.replace(re,o.paneClass+"-"+pane);initHandles(pane);if(c.dir!=_c[oldPane].dir){size=sizes[pane]||0;setSizeLimits(pane);size=max(size,state[pane].minSize);manualSizePane(pane,size,true,true)}else{$Rs[pane].css(side,sC[inset]+(state[pane].isVisible?getPaneSize(pane):0))}if(oPane.state.isVisible&&!s.isVisible){setAsOpen(pane,true)}else{setAsClosed(pane);bindStartSlidingEvent(pane,true)}oPane=null}},syncPinBtns=function(pane,doPin){if($.layout.plugins.buttons){$.each(state[pane].pins,function(i,selector){$.layout.buttons.setPinState(Instance,$(selector),pane,doPin)})}};function keyDown(evt){if(!evt){return true}var code=evt.keyCode;if(code<33){return true}var PANE={38:"north",40:"south",37:"west",39:"east"},ALT=evt.altKey,SHIFT=evt.shiftKey,CTRL=evt.ctrlKey,CURSOR=(CTRL&&code>=37&&code<=40),o,k,m,pane;if(CURSOR&&options[PANE[code]].enableCursorHotkey){pane=PANE[code]}else{if(CTRL||SHIFT){$.each(_c.borderPanes,function(i,p){o=options[p];k=o.customHotkey;m=o.customHotkeyModifier;if((SHIFT&&m=="SHIFT")||(CTRL&&m=="CTRL")||(CTRL&&SHIFT)){if(k&&code===(isNaN(k)||k<=9?k.toUpperCase().charCodeAt(0):k)){pane=p;return false}}})}}if(!pane||!$Ps[pane]||!options[pane].closable||state[pane].isHidden){return true}toggle(pane);evt.stopPropagation();evt.returnValue=false;return false}function allowOverflow(el){if(!isInitialized()){return}if(this&&this.tagName){el=this}var $P;if(isStr(el)){$P=$Ps[el]}else{if($(el).data("layoutRole")){$P=$(el)}else{$(el).parents().each(function(){if($(this).data("layoutRole")){$P=$(this);return false}})}}if(!$P||!$P.length){return}var pane=$P.data("layoutEdge"),s=state[pane];if(s.cssSaved){resetOverflow(pane)}if(s.isSliding||s.isResizing||s.isClosed){s.cssSaved=false;return}var newCSS={zIndex:(options.zIndexes.resizer_normal+1)},curCSS={},of=$P.css("overflow"),ofX=$P.css("overflowX"),ofY=$P.css("overflowY");if(of!="visible"){curCSS.overflow=of;newCSS.overflow="visible"}if(ofX&&!ofX.match(/(visible|auto)/)){curCSS.overflowX=ofX;newCSS.overflowX="visible"}if(ofY&&!ofY.match(/(visible|auto)/)){curCSS.overflowY=ofX;newCSS.overflowY="visible"}s.cssSaved=curCSS;$P.css(newCSS);$.each(_c.allPanes,function(i,p){if(p!=pane){resetOverflow(p)}})}function resetOverflow(el){if(!isInitialized()){return}if(this&&this.tagName){el=this}var $P;if(isStr(el)){$P=$Ps[el]}else{if($(el).data("layoutRole")){$P=$(el)}else{$(el).parents().each(function(){if($(this).data("layoutRole")){$P=$(this);return false}})}}if(!$P||!$P.length){return}var pane=$P.data("layoutEdge"),s=state[pane],CSS=s.cssSaved||{};if(!s.isSliding&&!s.isResizing){$P.css("zIndex",options.zIndexes.pane_normal)}$P.css(CSS);s.cssSaved=false}var $N=$(this).eq(0);if(!$N.length){return _log(options.errors.containerMissing)}if($N.data("layoutContainer")&&$N.data("layout")){return $N.data("layout")}var $Ps={},$Cs={},$Rs={},$Ts={},$Ms=$([]),sC=state.container,sID=state.id;var Instance={options:options,state:state,container:$N,panes:$Ps,contents:$Cs,resizers:$Rs,togglers:$Ts,hide:hide,show:show,toggle:toggle,open:open,close:close,slideOpen:slideOpen,slideClose:slideClose,slideToggle:slideToggle,setSizeLimits:setSizeLimits,_sizePane:sizePane,sizePane:manualSizePane,sizeContent:sizeContent,swapPanes:swapPanes,showMasks:showMasks,hideMasks:hideMasks,initContent:initContent,addPane:addPane,removePane:removePane,createChildLayout:createChildLayout,enableClosable:enableClosable,disableClosable:disableClosable,enableSlidable:enableSlidable,disableSlidable:disableSlidable,enableResizable:enableResizable,disableResizable:disableResizable,allowOverflow:allowOverflow,resetOverflow:resetOverflow,destroy:destroy,initPanes:isInitialized,resizeAll:resizeAll,runCallbacks:_runCallbacks,hasParentLayout:false,children:children,north:false,south:false,west:false,east:false,center:false};if(_create()==="cancel"){return null}else{return Instance}};$(function(){var b=$.layout.browser;if(b.msie){b.boxModel=$.support.boxModel}});if(!$.ui){$.ui={}}$.ui.cookie={acceptsCookies:!!navigator.cookieEnabled,read:function(name){var c=document.cookie,cs=c?c.split(";"):[],pair;for(var i=0,n=cs.length;i<n;i++){pair=$.trim(cs[i]).split("=");if(pair[0]==name){return decodeURIComponent(pair[1])}}return null},write:function(name,val,cookieOpts){var params="",date="",clear=false,o=cookieOpts||{},x=o.expires;if(x&&x.toUTCString){date=x}else{if(x===null||typeof x==="number"){date=new Date();if(x>0){date.setDate(date.getDate()+x)}else{date.setFullYear(1970);clear=true}}}if(date){params+=";expires="+date.toUTCString()}if(o.path){params+=";path="+o.path}if(o.domain){params+=";domain="+o.domain}if(o.secure){params+=";secure"}document.cookie=name+"="+(clear?"":encodeURIComponent(val))+params},clear:function(name){$.ui.cookie.write(name,"",{expires:-1})}};if(!$.cookie){$.cookie=function(k,v,o){var C=$.ui.cookie;if(v===null){C.clear(k)}else{if(v===undefined){return C.read(k)}else{C.write(k,v,o)}}}}$.layout.plugins.stateManagement=true;$.layout.config.optionRootKeys.push("stateManagement");$.layout.defaults.stateManagement={enabled:false,autoSave:true,autoLoad:true,stateKeys:"north.size,south.size,east.size,west.size,north.isClosed,south.isClosed,east.isClosed,west.isClosed,north.isHidden,south.isHidden,east.isHidden,west.isHidden",cookie:{name:"",domain:"",path:"",expires:"",secure:false}};$.layout.optionsMap.layout.push("stateManagement");$.layout.state={saveCookie:function(inst,keys,cookieOpts){var o=inst.options,oS=o.stateManagement,oC=$.extend(true,{},oS.cookie,cookieOpts||null),data=inst.state.stateData=inst.readState(keys||oS.stateKeys);$.ui.cookie.write(oC.name||o.name||"Layout",$.layout.state.encodeJSON(data),oC);return $.extend(true,{},data)},deleteCookie:function(inst){var o=inst.options;$.ui.cookie.clear(o.stateManagement.cookie.name||o.name||"Layout")},readCookie:function(inst){var o=inst.options;var c=$.ui.cookie.read(o.stateManagement.cookie.name||o.name||"Layout");return c?$.layout.state.decodeJSON(c):{}},loadCookie:function(inst){var c=$.layout.state.readCookie(inst);if(c){inst.state.stateData=$.extend(true,{},c);inst.loadState(c)}return c},loadState:function(inst,stateData,animate){stateData=$.layout.transformData(stateData);if($.isEmptyObject(stateData)){return}$.extend(true,inst.options,stateData);if(inst.state.initialized){var pane,vis,o,s,h,c,noAnimate=(animate===false);$.each($.layout.config.borderPanes,function(idx,pane){state=inst.state[pane];o=stateData[pane];if(typeof o!="object"){return}s=o.size;c=o.initClosed;h=o.initHidden;vis=state.isVisible;if(!vis){inst.sizePane(pane,s,false,false)}if(h===true){inst.hide(pane,noAnimate)}else{if(c===false){inst.open(pane,false,noAnimate)}else{if(c===true){inst.close(pane,false,noAnimate)}else{if(h===false){inst.show(pane,false,noAnimate)}}}}if(vis){inst.sizePane(pane,s,false,noAnimate)}})}},readState:function(inst,keys){var data={},alt={isClosed:"initClosed",isHidden:"initHidden"},state=inst.state,panes=$.layout.config.allPanes,pair,pane,key,val;if(!keys){keys=inst.options.stateManagement.stateKeys}if($.isArray(keys)){keys=keys.join(",")}keys=keys.replace(/__/g,".").split(",");for(var i=0,n=keys.length;i<n;i++){pair=keys[i].split(".");pane=pair[0];key=pair[1];if($.inArray(pane,panes)<0){continue}val=state[pane][key];if(val==undefined){continue}if(key=="isClosed"&&state[pane]["isSliding"]){val=true}(data[pane]||(data[pane]={}))[alt[key]?alt[key]:key]=val}return data},encodeJSON:function(JSON){return parse(JSON);function parse(h){var D=[],i=0,k,v,t;for(k in h){v=h[k];t=typeof v;if(t=="string"){v='"'+v+'"'}else{if(t=="object"){v=parse(v)}}D[i++]='"'+k+'":'+v}return"{"+D.join(",")+"}"}},decodeJSON:function(str){try{return $.parseJSON?$.parseJSON(str):window["eval"]("("+str+")")||{}}catch(e){return{}}},_create:function(inst){var _=$.layout.state;$.extend(inst,{readCookie:function(){return _.readCookie(inst)},deleteCookie:function(){_.deleteCookie(inst)},saveCookie:function(keys,cookieOpts){return _.saveCookie(inst,keys,cookieOpts)},loadCookie:function(){return _.loadCookie(inst)},loadState:function(stateData,animate){_.loadState(inst,stateData,animate)},readState:function(keys){return _.readState(inst,keys)},encodeJSON:_.encodeJSON,decodeJSON:_.decodeJSON});inst.state.stateData={};var oS=inst.options.stateManagement;if(oS.enabled){if(oS.autoLoad){inst.loadCookie()}else{inst.state.stateData=inst.readCookie()}}},_unload:function(inst){var oS=inst.options.stateManagement;if(oS.enabled){if(oS.autoSave){inst.saveCookie()}else{inst.state.stateData=inst.readState()}}}};$.layout.onCreate.push($.layout.state._create);$.layout.onUnload.push($.layout.state._unload);$.layout.plugins.buttons=true;$.layout.defaults.autoBindCustomButtons=false;$.layout.optionsMap.layout.push("autoBindCustomButtons");$.layout.buttons={init:function(inst){var pre="ui-layout-button-",layout=inst.options.name||"",name;$.each("toggle,open,close,pin,toggle-slide,open-slide".split(","),function(i,action){$.each($.layout.config.borderPanes,function(ii,pane){$("."+pre+action+"-"+pane).each(function(){name=$(this).data("layoutName")||$(this).attr("layoutName");if(name==undefined||name===layout){inst.bindButton(this,action,pane)}})})})},get:function(inst,selector,pane,action){var $E=$(selector),o=inst.options,err=o.errors.addButtonError;if(!$E.length){$.layout.msg(err+" "+o.errors.selector+": "+selector,true)}else{if($.inArray(pane,$.layout.config.borderPanes)<0){$.layout.msg(err+" "+o.errors.pane+": "+pane,true);$E=$("")}else{var btn=o[pane].buttonClass+"-"+action;$E.addClass(btn+" "+btn+"-"+pane).data("layoutName",o.name)}}return $E},bind:function(inst,selector,action,pane){var _=$.layout.buttons;switch(action.toLowerCase()){case"toggle":_.addToggle(inst,selector,pane);break;case"open":_.addOpen(inst,selector,pane);break;case"close":_.addClose(inst,selector,pane);break;case"pin":_.addPin(inst,selector,pane);break;case"toggle-slide":_.addToggle(inst,selector,pane,true);break;case"open-slide":_.addOpen(inst,selector,pane,true);break}return inst},addToggle:function(inst,selector,pane,slide){$.layout.buttons.get(inst,selector,pane,"toggle").click(function(evt){inst.toggle(pane,!!slide);evt.stopPropagation()});return inst},addOpen:function(inst,selector,pane,slide){$.layout.buttons.get(inst,selector,pane,"open").attr("title",inst.options[pane].tips.Open).click(function(evt){inst.open(pane,!!slide);evt.stopPropagation()});return inst},addClose:function(inst,selector,pane){$.layout.buttons.get(inst,selector,pane,"close").attr("title",inst.options[pane].tips.Close).click(function(evt){inst.close(pane);evt.stopPropagation()});return inst},addPin:function(inst,selector,pane){var _=$.layout.buttons,$E=_.get(inst,selector,pane,"pin");if($E.length){var s=inst.state[pane];$E.click(function(evt){_.setPinState(inst,$(this),pane,(s.isSliding||s.isClosed));if(s.isSliding||s.isClosed){inst.open(pane)}else{inst.close(pane)}evt.stopPropagation()});_.setPinState(inst,$E,pane,(!s.isClosed&&!s.isSliding));s.pins.push(selector)}return inst},setPinState:function(inst,$Pin,pane,doPin){var updown=$Pin.attr("pin");if(updown&&doPin===(updown=="down")){return}var o=inst.options[pane],pin=o.buttonClass+"-pin",side=pin+"-"+pane,UP=pin+"-up "+side+"-up",DN=pin+"-down "+side+"-down";$Pin.attr("pin",doPin?"down":"up").attr("title",doPin?o.tips.Unpin:o.tips.Pin).removeClass(doPin?UP:DN).addClass(doPin?DN:UP)},syncPinBtns:function(inst,pane,doPin){$.each(inst.state[pane].pins,function(i,selector){$.layout.buttons.setPinState(inst,$(selector),pane,doPin)})},_load:function(inst){var _=$.layout.buttons;$.extend(inst,{bindButton:function(sel,action,pane){return _.bind(inst,sel,action,pane)},addToggleBtn:function(sel,pane,slide){return _.addToggle(inst,sel,pane,slide)},addOpenBtn:function(sel,pane,slide){return _.addOpen(inst,sel,pane,slide)},addCloseBtn:function(sel,pane){return _.addClose(inst,sel,pane)},addPinBtn:function(sel,pane){return _.addPin(inst,sel,pane)}});for(var i=0;i<4;i++){var pane=$.layout.config.borderPanes[i];inst.state[pane].pins=[]}if(inst.options.autoBindCustomButtons){_.init(inst)}},_unload:function(inst){}};$.layout.onLoad.push($.layout.buttons._load);$.layout.plugins.browserZoom=true;$.layout.defaults.browserZoomCheckInterval=1000;$.layout.optionsMap.layout.push("browserZoomCheckInterval");$.layout.browserZoom={_init:function(inst){if($.layout.browserZoom.ratio()!==false){$.layout.browserZoom._setTimer(inst)}},_setTimer:function(inst){if(inst.destroyed){return}var o=inst.options,s=inst.state,ms=inst.hasParentLayout?5000:Math.max(o.browserZoomCheckInterval,100);setTimeout(function(){if(inst.destroyed||!o.resizeWithWindow){return}var d=$.layout.browserZoom.ratio();if(d!==s.browserZoom){s.browserZoom=d;inst.resizeAll()}$.layout.browserZoom._setTimer(inst)},ms)},ratio:function(){var w=window,s=screen,d=document,dE=d.documentElement||d.body,b=$.layout.browser,v=b.version,r,sW,cW;if((b.msie&&v>8)||!b.msie){return false}if(s.deviceXDPI){return calc(s.deviceXDPI,s.systemXDPI)}if(b.webkit&&(r=d.body.getBoundingClientRect)){return calc((r.left-r.right),d.body.offsetWidth)}if(b.webkit&&(sW=w.outerWidth)){return calc(sW,w.innerWidth)}if((sW=s.width)&&(cW=dE.clientWidth)){return calc(sW,cW)}return false;function calc(x,y){return(parseInt(x,10)/parseInt(y,10)*100).toFixed()}}};$.layout.onReady.push($.layout.browserZoom._init)})(jQuery);var qq=qq||{};qq.extend=function(a,c){for(var b in c){a[b]=c[b]}};qq.indexOf=function(a,b,c){if(a.indexOf){return a.indexOf(b,c)}c=c||0;var d=a.length;if(c<0){c+=d}for(;c<d;c++){if(c in a&&a[c]===b){return c}}return -1};qq.getUniqueId=(function(){var a=0;return function(){return a++}})();qq.attach=function(a,c,b){if(a.addEventListener){a.addEventListener(c,b,false)}else{if(a.attachEvent){a.attachEvent("on"+c,b)}}};qq.detach=function(a,c,b){if(a.removeEventListener){a.removeEventListener(c,b,false)}else{if(a.attachEvent){a.detachEvent("on"+c,b)}}};qq.preventDefault=function(a){if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}};qq.insertBefore=function(c,d){d.parentNode.insertBefore(c,d)};qq.remove=function(a){a.parentNode.removeChild(a)};qq.contains=function(b,a){if(b==a){return true}if(b.contains){return b.contains(a)}else{return !!(a.compareDocumentPosition(b)&8)}};qq.toElement=(function(){var a=document.createElement("div");return function(c){a.innerHTML=c;var b=a.firstChild;a.removeChild(b);return b}})();qq.css=function(a,b){if(b.opacity!=null){if(typeof a.style.opacity!="string"&&typeof(a.filters)!="undefined"){b.filter="alpha(opacity="+Math.round(100*b.opacity)+")"}}qq.extend(a.style,b)};qq.hasClass=function(a,b){var c=new RegExp("(^| )"+b+"( |$)");return c.test(a.className)};qq.addClass=function(a,b){if(!qq.hasClass(a,b)){a.className+=" "+b}};qq.removeClass=function(a,b){var c=new RegExp("(^| )"+b+"( |$)");a.className=a.className.replace(c," ").replace(/^\s+|\s+$/g,"")};qq.setText=function(a,b){a.innerText=b;a.textContent=b};qq.children=function(c){var b=[],a=c.firstChild;while(a){if(a.nodeType==1){b.push(a)}a=a.nextSibling}return b};qq.getByClass=function(c,b){if(c.querySelectorAll){return c.querySelectorAll("."+b)}var f=[];var a=c.getElementsByTagName("*");var e=a.length;for(var d=0;d<e;d++){if(qq.hasClass(a[d],b)){f.push(a[d])}}return f};qq.obj2url=function(d,g,f){var h=[],e="&",a=function(k,j){var l=g?(/\[\]$/.test(g))?g:g+"["+j+"]":j;if((l!="undefined")&&(j!="undefined")){h.push((typeof k==="object")?qq.obj2url(k,l,true):(Object.prototype.toString.call(k)==="[object Function]")?encodeURIComponent(l)+"="+encodeURIComponent(k()):encodeURIComponent(l)+"="+encodeURIComponent(k))}};if(!f&&g){e=(/\?/.test(g))?(/\?$/.test(g))?"":"&":"?";h.push(g);h.push(qq.obj2url(d))}else{if((Object.prototype.toString.call(d)==="[object Array]")&&(typeof d!="undefined")){for(var b=0,c=d.length;b<c;++b){a(d[b],b)}}else{if((typeof d!="undefined")&&(d!==null)&&(typeof d==="object")){for(var b in d){a(d[b],b)}}else{h.push(encodeURIComponent(g)+"="+encodeURIComponent(d))}}}return h.join(e).replace(/^&/,"").replace(/%20/g,"+")};var qq=qq||{};qq.FileUploaderBasic=function(a){this._options={debug:false,action:"/server/upload",params:{},button:null,multiple:true,maxConnections:3,allowedExtensions:[],sizeLimit:0,minSizeLimit:0,appendItemAtEnd:true,onSubmit:function(c,b){},onProgress:function(c,b,d,e){},onComplete:function(c,b,d){},onCancel:function(c,b){},messages:{typeError:"{file} has invalid extension. Only {extensions} are allowed.",sizeError:"{file} is too large, maximum file size is {sizeLimit}.",minSizeError:"{file} is too small, minimum file size is {minSizeLimit}.",emptyError:"{file} is empty, please select files again without it.",onLeave:"The files are being uploaded, if you leave now the upload will be cancelled."},showMessage:function(b){alert(b)}};qq.extend(this._options,a);this._filesInProgress=0;this._handler=this._createUploadHandler();if(this._options.button){this._button=this._createUploadButton(this._options.button)}this._preventLeaveInProgress()};qq.FileUploaderBasic.prototype={setParams:function(a){this._options.params=a},getInProgress:function(){return this._filesInProgress},_createUploadButton:function(a){var b=this;return new qq.UploadButton({element:a,multiple:this._options.multiple&&qq.UploadHandlerXhr.isSupported(),onChange:function(c){b._onInputChange(c)}})},_createUploadHandler:function(){var c=this,b;if(qq.UploadHandlerXhr.isSupported()){b="UploadHandlerXhr"}else{b="UploadHandlerForm"}var a=new qq[b]({debug:this._options.debug,action:this._options.action,maxConnections:this._options.maxConnections,onProgress:function(e,d,f,g){c._onProgress(e,d,f,g);c._options.onProgress(e,d,f,g)},onComplete:function(e,d,f){c._onComplete(e,d,f);c._options.onComplete(e,d,f)},onCancel:function(e,d){c._onCancel(e,d);c._options.onCancel(e,d)}});return a},_preventLeaveInProgress:function(){var a=this;qq.attach(window,"beforeunload",function(b){if(!a._filesInProgress){return}var b=b||window.event;b.returnValue=a._options.messages.onLeave;return a._options.messages.onLeave})},_onSubmit:function(b,a){this._filesInProgress++},_onProgress:function(b,a,c,d){},_onComplete:function(b,a,c){this._filesInProgress--;if(c.error){this._options.showMessage(c.error)}},_onCancel:function(b,a){this._filesInProgress--},_onInputChange:function(a){if(this._handler instanceof qq.UploadHandlerXhr){this._uploadFileList(a.files)}else{if(this._validateFile(a)){this._uploadFile(a)}}this._button.reset()},_uploadFileList:function(a){$(this._options.uploadResultsSelector).show(0,this._options.uploadResultsShowFunc);for(var b=0;b<a.length;b++){if(!this._validateFile(a[b])){return}}for(var b=0;b<a.length;b++){this._uploadFile(a[b])}},_uploadFile:function(a){var c=this._handler.add(a);var b=this._handler.getName(c);if(this._options.onSubmit(c,b)!==false){this._onSubmit(c,b);this._handler.upload(c,this._options.params)}},_validateFile:function(a){var b,c;if(a.value){b=a.value.replace(/.*(\/|\\)/,"")}else{b=a.fileName!=null?a.fileName:a.name;c=a.fileSize!=null?a.fileSize:a.size}if(!this._isAllowedExtension(b)){this._error("typeError",b);return false}else{if(c===0){this._error("emptyError",b);return false}else{if(c&&this._options.sizeLimit&&c>this._options.sizeLimit){this._error("sizeError",b);return false}else{if(c&&c<this._options.minSizeLimit){this._error("minSizeError",b);return false}}}}return true},_error:function(a,b){var c=this._options.messages[a];function d(e,f){c=c.replace(e,f)}d("{file}",this._formatFileName(b));d("{extensions}",this._options.allowedExtensions.join(", "));d("{sizeLimit}",this._formatSize(this._options.sizeLimit));d("{minSizeLimit}",this._formatSize(this._options.minSizeLimit));this._options.showMessage(c)},_formatFileName:function(a){if(a.length>33){a=a.slice(0,19)+"..."+a.slice(-13)}return a},_isAllowedExtension:function(c){var b=(-1!==c.indexOf("."))?c.replace(/.*[.]/,"").toLowerCase():"";var a=this._options.allowedExtensions;if(!a.length){return true}for(var d=0;d<a.length;d++){if(a[d].toLowerCase()==b){return true}}return false},_formatSize:function(a){var b=-1;do{a=a/1024;b++}while(a>99);return Math.max(a,0.1).toFixed(1)+[" kB"," MB"," GB"," TB"," PB"," EB"][b]}};qq.FileUploader=function(a){qq.FileUploaderBasic.apply(this,arguments);qq.extend(this._options,{element:null,listElement:null,dropTargetSelector:null,uploadResultsSelector:null,uploadResultsShowFunc:null,template:'<div class="qq-uploader"><div class="qq-upload-drop-area"><span>Drop files here to upload</span></div><div class="qq-upload-button">Upload a file</div><ul class="qq-upload-list"></ul></div>',fileTemplate:'<li><span class="qq-upload-file"></span><span class="qq-upload-spinner"></span><span class="qq-upload-size"></span><a class="qq-upload-cancel" href="#">Cancel</a><span class="qq-upload-failed-text">Failed</span></li>',classes:{button:"qq-upload-button",drop:"qq-upload-drop-area",dropActive:"qq-upload-drop-area-active",list:"qq-upload-list",file:"qq-upload-file",spinner:"qq-upload-spinner",size:"qq-upload-size",cancel:"qq-upload-cancel",success:"qq-upload-success",fail:"qq-upload-fail"}});qq.extend(this._options,a);this._element=this._options.element;this._element.innerHTML=this._options.template;this._listElement=this._options.listElement||this._find(this._element,"list");this._classes=this._options.classes;var b=this._find(this._element,"button",true);if(!b){b=$("."+this._options.classes.button).get(0)}if(b){this._button=this._createUploadButton(b)}this._bindCancelEvent();this._setupDragDrop()};qq.extend(qq.FileUploader.prototype,qq.FileUploaderBasic.prototype);qq.extend(qq.FileUploader.prototype,{_find:function(c,d,a){var b=qq.getByClass(c,this._options.classes[d])[0];if(!b&&!a){throw new Error("element not found "+d)}return b},_setupDragDrop:function(){var c=this,a=this._find(this._element,"drop",true);var b=new qq.UploadDropZone({element:a,dropTargetSelector:c._options.dropTargetSelector,uploadResultsSelector:c._options.uploadResultsSelector,onEnter:function(d){if(a){qq.addClass(a,c._classes.dropActive)}$(c._options.dropTargetSelector).addClass(c._classes.dropActive);d.stopPropagation()},onLeave:function(d){d.stopPropagation()},onLeaveNotDescendants:function(d){if(a){qq.removeClass(a,c._classes.dropActive)}$(c._options.dropTargetSelector).removeClass(c._classes.dropActive)},onDrop:function(d){if(a){qq.removeClass(a,c._classes.dropActive)}$(c._options.dropTargetSelector).removeClass(c._classes.dropActive);c._uploadFileList(d.dataTransfer.files)}});qq.attach(document,"dragenter",function(d){if(!b._isValidFileDrag(d)){return}});qq.attach(document,"dragleave",function(d){if(!b._isValidFileDrag(d)){return}var f=document.elementFromPoint(d.clientX,d.clientY);if(!f||f.nodeName=="HTML"){}})},_onSubmit:function(b,a){qq.FileUploaderBasic.prototype._onSubmit.apply(this,arguments);this._addToList(b,a)},_onProgress:function(b,a,d,g){qq.FileUploaderBasic.prototype._onProgress.apply(this,arguments);var c=this._getItemByFileId(b);var e=this._find(c,"size");e.style.display="inline";var f;if(d!=g){f=Math.round(d/g*100)+"% od "+this._formatSize(g)}else{f=this._formatSize(g)}qq.setText(e,f)},_onComplete:function(b,a,d){qq.FileUploaderBasic.prototype._onComplete.apply(this,arguments);var c=this._getItemByFileId(b);qq.remove(this._find(c,"cancel"));qq.remove(this._find(c,"spinner"));if(d.success){qq.addClass(c,this._classes.success)}else{qq.addClass(c,this._classes.fail);$(c).attr("title",d.message)}},_addToList:function(c,b){var d=qq.toElement(this._options.fileTemplate);d.qqFileId=c;var a=this._find(d,"file");qq.setText(a,this._formatFileName(b));this._find(d,"size").style.display="none";if(this._options.appendItemAtEnd){this._listElement.appendChild(d);$(this._listElement).parent().scrollTop(10000)}else{this._listElement.insertBefore(d,this._listElement.firstChild)}},_getItemByFileId:function(a){var b=this._listElement.firstChild;while(b){if(b.qqFileId==a){return b}b=b.nextSibling}},_bindCancelEvent:function(){var b=this,a=this._listElement;qq.attach(a,"click",function(c){c=c||window.event;var f=c.target||c.srcElement;if(qq.hasClass(f,b._classes.cancel)){qq.preventDefault(c);var d=f.parentNode;b._handler.cancel(d.qqFileId);qq.remove(d)}})}});qq.UploadDropZone=function(a){this._options={element:null,onEnter:function(b){},onLeave:function(b){},onLeaveNotDescendants:function(b){},onDrop:function(b){}};qq.extend(this._options,a);this._element=this._options.element;this._dropTargetSelector=this._options.dropTargetSelector;this._disableDropOutside();this._attachEvents()};qq.UploadDropZone.prototype={_disableDropOutside:function(a){var d=this;if(true||!qq.UploadDropZone.dropOutsideDisabled){qq.attach(document,"dragover",function(f){if(f.dataTransfer){f.dataTransfer.dropEffect="none";f.preventDefault()}});var c=$(d._dropTargetSelector);for(var b=0;b<c.length;b++){qq.attach(c[b],"drop",function(f){var g=$(".qq-upload-drop-area").get(0);if(d._isValidFileDrag(f)){f.preventDefault();d._options.onDrop(f)}});qq.attach(c[b],"dragover",function(f){var h=$(".qq-upload-drop-area").get(0);if(d._isValidFileDrag(f)){var g=f.dataTransfer.effectAllowed;if(g=="move"||g=="linkMove"){f.dataTransfer.dropEffect="move"}else{f.dataTransfer.dropEffect="copy"}f.stopPropagation();f.preventDefault()}});qq.attach(c[b],"dragenter",function(f){if(!d._isValidFileDrag(f)){return}d._options.onEnter(f)});qq.attach(c[b],"dragleave",function(f){if(!d._isValidFileDrag(f)){return}d._options.onLeave(f);var g=document.elementFromPoint(f.clientX,f.clientY);if(qq.contains(this,g)){return}d._options.onLeaveNotDescendants(f)})}qq.UploadDropZone.dropOutsideDisabled=true}},_attachEvents:function(){var a=this;if(a._element){qq.attach(a._element,"dragover",function(b){if(!a._isValidFileDrag(b)){return}var c=b.dataTransfer.effectAllowed;if(c=="move"||c=="linkMove"){b.dataTransfer.dropEffect="move"}else{b.dataTransfer.dropEffect="copy"}b.stopPropagation();b.preventDefault()});qq.attach(a._element,"dragenter",function(b){if(!a._isValidFileDrag(b)){return}a._options.onEnter(b)});qq.attach(a._element,"dragleave",function(b){if(!a._isValidFileDrag(b)){return}a._options.onLeave(b);var c=document.elementFromPoint(b.clientX,b.clientY);if(qq.contains(this,c)){return}a._options.onLeaveNotDescendants(b)});qq.attach(a._element,"drop",function(b){if(!a._isValidFileDrag(b)){return}b.preventDefault();a._options.onDrop(b)})}},_isValidFileDrag:function(b){var a=b.dataTransfer,c=navigator.userAgent.indexOf("AppleWebKit")>-1;return a&&a.effectAllowed!="none"&&(a.files||(!c&&a.types.contains&&a.types.contains("Files")))}};qq.UploadButton=function(a){this._options={element:null,multiple:false,name:"file",onChange:function(b){},hoverClass:"qq-upload-button-hover",focusClass:"qq-upload-button-focus"};qq.extend(this._options,a);this._element=this._options.element;qq.css(this._element,{position:"relative",overflow:"hidden",direction:"ltr"});this._input=this._createInput()};qq.UploadButton.prototype={getInput:function(){return this._input},reset:function(){if(this._input.parentNode){qq.remove(this._input)}qq.removeClass(this._element,this._options.focusClass);this._input=this._createInput()},_createInput:function(){var a=document.createElement("input");if(this._options.multiple){a.setAttribute("multiple","multiple")}a.setAttribute("type","file");a.setAttribute("name",this._options.name);qq.css(a,{position:"absolute",right:0,top:0,fontSize:"118px",margin:0,padding:0,cursor:"pointer",opacity:0});this._element.appendChild(a);var b=this;qq.attach(a,"change",function(){b._options.onChange(a)});qq.attach(a,"mouseover",function(){qq.addClass(b._element,b._options.hoverClass)});qq.attach(a,"mouseout",function(){qq.removeClass(b._element,b._options.hoverClass)});qq.attach(a,"focus",function(){qq.addClass(b._element,b._options.focusClass)});qq.attach(a,"blur",function(){qq.removeClass(b._element,b._options.focusClass)});if(window.attachEvent){a.setAttribute("tabIndex","-1")}return a}};qq.UploadHandlerAbstract=function(a){this._options={debug:false,action:"/upload.php",maxConnections:999,onProgress:function(c,b,d,e){},onComplete:function(c,b,d){},onCancel:function(c,b){}};qq.extend(this._options,a);this._queue=[];this._params=[]};qq.UploadHandlerAbstract.prototype={log:function(a){if(this._options.debug&&window.console){console.log("[uploader] "+a)}},add:function(a){},upload:function(b,d){var c=this._queue.push(b);var a={};qq.extend(a,d);this._params[b]=a;if(c<=this._options.maxConnections){this._upload(b,this._params[b])}},cancel:function(a){this._cancel(a);this._dequeue(a)},cancelAll:function(){for(var a=0;a<this._queue.length;a++){this._cancel(this._queue[a])}this._queue=[]},getName:function(a){},getSize:function(a){},getQueue:function(){return this._queue},_upload:function(a){},_cancel:function(a){},_dequeue:function(b){var a=qq.indexOf(this._queue,b);this._queue.splice(a,1);var c=this._options.maxConnections;if(this._queue.length>=c&&a<c){var d=this._queue[c-1];this._upload(d,this._params[d])}}};qq.UploadHandlerForm=function(a){qq.UploadHandlerAbstract.apply(this,arguments);this._inputs={}};qq.extend(qq.UploadHandlerForm.prototype,qq.UploadHandlerAbstract.prototype);qq.extend(qq.UploadHandlerForm.prototype,{add:function(a){a.setAttribute("name","qqfile");var b="qq-upload-handler-iframe"+qq.getUniqueId();this._inputs[b]=a;if(a.parentNode){qq.remove(a)}return b},getName:function(a){return this._inputs[a].value.replace(/.*(\/|\\)/,"")},_cancel:function(a){this._options.onCancel(a,this.getName(a));delete this._inputs[a];var b=document.getElementById(a);if(b){b.setAttribute("src","javascript:false;");qq.remove(b)}},_upload:function(c,f){var e=this._inputs[c];if(!e){throw new Error("file with passed id was not added, or already uploaded or cancelled")}var a=this.getName(c);var d=this._createIframe(c);var b=this._createForm(d,f);b.appendChild(e);var g=this;this._attachLoadEvent(d,function(){g.log("iframe loaded");var h=g._getIframeContentJSON(d);g._options.onComplete(c,a,h);g._dequeue(c);delete g._inputs[c];setTimeout(function(){qq.remove(d)},1)});b.submit();qq.remove(b);return c},_attachLoadEvent:function(b,a){qq.attach(b,"load",function(){if(!b.parentNode){return}if(b.contentDocument&&b.contentDocument.body&&b.contentDocument.body.innerHTML=="false"){return}a()})},_getIframeContentJSON:function(iframe){var doc=iframe.contentDocument?iframe.contentDocument:iframe.contentWindow.document,response;this.log("converting iframe's innerHTML to JSON");this.log("innerHTML = "+doc.body.innerHTML);try{response=eval("("+doc.body.innerHTML+")")}catch(err){response={}}return response},_createIframe:function(a){var b=qq.toElement('<iframe src="javascript:false;" name="'+a+'" />');b.setAttribute("id",a);b.style.display="none";document.body.appendChild(b);return b},_createForm:function(b,c){var a=qq.toElement('<form method="post" enctype="multipart/form-data"></form>');var d=qq.obj2url(c,this._options.action);a.setAttribute("action",d);a.setAttribute("target",b.name);a.style.display="none";document.body.appendChild(a);return a}});qq.UploadHandlerXhr=function(a){qq.UploadHandlerAbstract.apply(this,arguments);this._files=[];this._xhrs=[];this._loaded=[]};qq.UploadHandlerXhr.isSupported=function(){var a=document.createElement("input");a.type="file";return("multiple" in a&&typeof File!="undefined"&&typeof(new XMLHttpRequest()).upload!="undefined")};qq.extend(qq.UploadHandlerXhr.prototype,qq.UploadHandlerAbstract.prototype);qq.extend(qq.UploadHandlerXhr.prototype,{add:function(a){if(!(a instanceof File)){throw new Error("Passed obj in not a File (in qq.UploadHandlerXhr)")}return this._files.push(a)-1},getName:function(b){var a=this._files[b];return a.fileName!=null?a.fileName:a.name},getSize:function(b){var a=this._files[b];return a.fileSize!=null?a.fileSize:a.size},getLoaded:function(a){return this._loaded[a]||0},_upload:function(b,d){var a=this._files[b],c=this.getName(b),g=this.getSize(b);this._loaded[b]=0;var h=this._xhrs[b]=new XMLHttpRequest();var f=this;h.upload.onprogress=function(i){if(i.lengthComputable){f._loaded[b]=i.loaded;f._options.onProgress(b,c,i.loaded,i.total)}};h.onreadystatechange=function(){if(h.readyState==4){f._onComplete(b,h)}};d=d||{};d.qqfile=c;var e=qq.obj2url(d,this._options.action);h.open("POST",e,true);h.setRequestHeader("X-Requested-With","XMLHttpRequest");h.setRequestHeader("X-File-Name",encodeURIComponent(c));h.setRequestHeader("Content-Type","application/octet-stream");h.send(a)},_onComplete:function(id,xhr){if(!this._files[id]){return}var name=this.getName(id);var size=this.getSize(id);this._options.onProgress(id,name,size,size);if(xhr.status==200){this.log("xhr - server response received");this.log("responseText = "+xhr.responseText);var response;try{response=eval("("+xhr.responseText+")")}catch(err){response={}}this._options.onComplete(id,name,response)}else{this._options.onComplete(id,name,{})}this._files[id]=null;this._xhrs[id]=null;this._dequeue(id)},_cancel:function(a){this._options.onCancel(a,this.getName(a));this._files[a]=null;if(this._xhrs[a]){this._xhrs[a].abort();this._xhrs[a]=null}}});(function(a){var f=a(document);var k=a("head");var i=null;var B=[];var b=0;var m="id";var w="px";var y="JColResizer";var l=parseInt;var q=Math;var o=a.browser.msie;var x;try{x=a.Storage}catch(j){}k.append("<style type='text/css'>  .JColResizer{table-layout:fixed;}  /*BSJ: .JColResizer td,*/ .JColResizer th {overflow:hidden;padding-left:0!important; padding-right:0!important;}  .JCLRgrips{ height:0px; position:relative;}  .JCLRgrip{margin-left:-5px; position:absolute; z-index:5; }  .JCLRgrip .JColResizer{position:absolute;background-color:red;filter:alpha(opacity=1);opacity:0;width:10px;height:100%;top:0px}  .JCLRLastGrip{position:absolute; width:0;  /* BSJ: 1px */}  .JCLRgripDrag{ border-left:1px dotted black; } </style>");var p=function(C,e){var h=a(C);if(e.disable){return g(h)}var d=h.id=h.attr(m)||y+b++;h.p=e.postbackSafe;if(!h.is("table")||(B[d]&&!e.forceRecreate)){return}h.addClass(y).attr(m,d).before('<div class="JCLRgrips"/>');h.opt=e;h.g=[];h.c=[];h.w=h.width();h.gc=h.prev();if(e.marginLeft){h.gc.css("marginLeft",e.marginLeft)}if(e.marginRight){h.gc.css("marginRight",e.marginRight)}h.cs=l(o?C.cellSpacing||C.currentStyle.borderSpacing:h.css("border-spacing"))||2;h.b=l(o?C.border||C.currentStyle.borderLeftWidth:h.css("border-left-width"))||1;B[d]=h;c(h)};var g=function(e){var d=e.attr(m),e=B[d];if(!e||!e.is("table")){return}e.removeClass(y).gc.remove();delete B[d]};var c=function(d){var e=d.find(">thead>tr>th,>thead>tr>td");if(!e.length){e=d.find(">tbody>tr:first>th,>tr:first>th,>tbody>tr:first>td, >tr:first>td")}d.cg=d.find("col");d.ln=e.length;if(d.p&&x&&x.getItem(d.id)){r(d,e)}e.each(function(D){var h=a(this);var C=a(d.gc.append('<div class="JCLRgrip"></div>')[0].lastChild);C.t=d;C.i=D;C.c=h;h.w=h.width();d.g.push(C);d.c.push(h);h.width(h.w).removeAttr("width");if(D<d.ln-1){C.mousedown(u).append(d.opt.gripInnerHtml).append('<div class="'+y+'" style="cursor:'+d.opt.hoverCursor+'"></div>')}else{C.addClass("JCLRLastGrip").removeClass("JCLRgrip")}C.data(y,{i:D,t:d.attr(m)})});d.cg.removeAttr("width");A(d);d.find("td, th").not(e).not("table th, table td").each(function(){a(this).removeAttr("width")})};var r=function(D,E){var F,h=0,e=0,d=[];if(E){D.cg.removeAttr("width");if(D.opt.flush){x.setItem(D.id,"");return}F=x.getItem(D.id).split(";");for(;e<D.ln;e++){d.push(100*F[e]/F[D.ln]+"%");E.eq(e).css("width",d[e])}for(e=0;e<D.ln;e++){D.cg.eq(e).css("width",d[e])}}else{var C="";for(e in D.c){F=D.c[e].width();C+=F+";";h+=F}C+=h;x.setItem(D.id,C)}};var A=function(h){h.gc.width(h.w);for(var e=0;e<h.ln;e++){var d=h.c[e];h.g[e].css({left:d.offset().left-h.offset().left+d.outerWidth()+h.cs/2+w,height:h.opt.headerOnly?h.c[0].outerHeight():h.outerHeight()})}};var z=function(E,h,D){var C=i.x-i.l,d=E.c[h],e=E.c[h+1];var F=d.w+C;var G=e.w-C;d.width(F+w);e.width(G+w);E.cg.eq(h).width(F+w);E.cg.eq(h+1).width(G+w);if(D){d.w=F;e.w=G}};var s=function(h){if(!i){return}var H=i.t;var I=h.pageX-i.ox+i.l;var G=H.opt.minWidth,C=i.i;var D=H.cs*1.5+G+H.b;var E=C==H.ln-1?H.w-D:H.g[C+1].position().left-H.cs-G;var F=C?H.g[C-1].position().left+H.cs+G:D;I=q.max(F,q.min(E,I));i.x=I;i.css("left",I+w);if(H.opt.liveDrag){z(H,C);A(H);var d=H.opt.onDrag;if(d){h.currentTarget=H[0];d(h)}}return false};var t=function(h){f.unbind("mousemove."+y).unbind("mouseup."+y);a("head :last-child").remove();if(!i){return}i.removeClass(i.t.opt.draggingClass);var C=i.t,d=C.opt.onResize;if(i.x){z(C,i.i,true);A(C);if(d){h.currentTarget=C[0];d(h)}}if(C.p&&x){r(C)}i=null};var u=function(h){var E=a(this).data(y);var F=B[E.t],C=F.g[E.i];C.ox=h.pageX;C.l=C.position().left;f.bind("mousemove."+y,s).bind("mouseup."+y,t);k.append("<style type='text/css'>*{cursor:"+F.opt.dragCursor+"!important}</style>");C.addClass(F.opt.draggingClass);i=C;if(F.c[E.i].l){for(var D=0,d;D<F.ln;D++){d=F.c[D];d.l=false;d.w=d.width()}}return false};var v=function(){for(C in B){var C=B[C],d,h=0;C.removeClass(y);if(C.w!=C.width()){C.w=C.width();var e=a(C).parent().width();for(d=0;d<C.ln;d++){h+=C.c[d].w}for(d=0;d<C.ln;d++){C.c[d].css("width",q.round(1000*C.c[d].w/h)/10+"%").l=true}}A(C.addClass(y))}};a(window).bind("resize."+y,v);a.fn.extend({colResizable:function(e){var d={draggingClass:"JCLRgripDrag",gripInnerHtml:"",liveDrag:false,minWidth:15,headerOnly:false,hoverCursor:"e-resize",dragCursor:"e-resize",postbackSafe:false,flush:false,marginLeft:null,marginRight:null,disable:false,forceRecreate:false,onDrag:null,onResize:null};var e=a.extend(d,e);return this.each(function(){p(this,e)})},colResizableForceResize:function(d){v();return this}})})(jQuery);(function(a){a.fn.alterClass=function(d,b){var e=this;if(d.indexOf("*")===-1){e.removeClass(d);return !b?e:e.addClass(b)}var c=new RegExp("\\s"+d.replace(/\*/g,"[A-Za-z0-9-_]+").split(" ").join("\\s|\\s")+"\\s","g");e.each(function(g,h){var f=" "+h.className+" ";while(c.test(f)){f=f.replace(c," ")}h.className=a.trim(f)});return !b?e:e.addClass(b)}})(jQuery);