compass-jquery-plugin 0.3.0.beta.2 → 0.3.0.beta.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (348) hide show
  1. data/README.textile +2 -2
  2. data/VERSION.yml +1 -1
  3. data/compass-jquery-plugin.gemspec +309 -6
  4. data/gem_tasks/jqtouch.rake +73 -7
  5. data/gem_tasks/jrails13.rake +6 -6
  6. data/gem_tasks/jrails14.rake +6 -6
  7. data/lib/handle_js_files.rb +3 -2
  8. data/lib/jquery.ui.rb +1 -1
  9. data/templates/dynatree/jquery.ui/dynatree.aero.scss +4 -4
  10. data/templates/dynatree/jquery.ui/dynatree.aqua.scss +4 -4
  11. data/templates/dynatree/jquery.ui/dynatree.crystal.scss +4 -4
  12. data/templates/dynatree/jquery.ui/dynatree.xp.scss +4 -5
  13. data/templates/jqgrid/i18n/jqgrid/locale-cn.js +7 -3
  14. data/templates/jqgrid/i18n/jqgrid/locale-cn.min.js +8 -8
  15. data/templates/jqgrid/jquery.jqGrid.js +213 -137
  16. data/templates/jqgrid/jquery.jqGrid.min.js +262 -261
  17. data/templates/jqgrid/jquery.ui/jqGrid.scss +37 -37
  18. data/templates/jqtouch/jqtouch/glyphish/Read me first - license.txt +14 -0
  19. data/templates/jqtouch/jqtouch/glyphish/icons/01-refresh.png +0 -0
  20. data/templates/jqtouch/jqtouch/glyphish/icons/02-redo.png +0 -0
  21. data/templates/jqtouch/jqtouch/glyphish/icons/03-loopback.png +0 -0
  22. data/templates/jqtouch/jqtouch/glyphish/icons/04-squiggle.png +0 -0
  23. data/templates/jqtouch/jqtouch/glyphish/icons/05-shuffle.png +0 -0
  24. data/templates/jqtouch/jqtouch/glyphish/icons/06-magnifying-glass.png +0 -0
  25. data/templates/jqtouch/jqtouch/glyphish/icons/07-map-marker.png +0 -0
  26. data/templates/jqtouch/jqtouch/glyphish/icons/08-chat.png +0 -0
  27. data/templates/jqtouch/jqtouch/glyphish/icons/09-chat2.png +0 -0
  28. data/templates/jqtouch/jqtouch/glyphish/icons/10-medical.png +0 -0
  29. data/templates/jqtouch/jqtouch/glyphish/icons/100-coffee.png +0 -0
  30. data/templates/jqtouch/jqtouch/glyphish/icons/101-gameplan.png +0 -0
  31. data/templates/jqtouch/jqtouch/glyphish/icons/102-walk.png +0 -0
  32. data/templates/jqtouch/jqtouch/glyphish/icons/103-map.png +0 -0
  33. data/templates/jqtouch/jqtouch/glyphish/icons/104-index-cards.png +0 -0
  34. data/templates/jqtouch/jqtouch/glyphish/icons/105-piano.png +0 -0
  35. data/templates/jqtouch/jqtouch/glyphish/icons/106-sliders.png +0 -0
  36. data/templates/jqtouch/jqtouch/glyphish/icons/107-widescreen.png +0 -0
  37. data/templates/jqtouch/jqtouch/glyphish/icons/108-badge.png +0 -0
  38. data/templates/jqtouch/jqtouch/glyphish/icons/109-chicken.png +0 -0
  39. data/templates/jqtouch/jqtouch/glyphish/icons/11-clock.png +0 -0
  40. data/templates/jqtouch/jqtouch/glyphish/icons/110-bug.png +0 -0
  41. data/templates/jqtouch/jqtouch/glyphish/icons/111-user.png +0 -0
  42. data/templates/jqtouch/jqtouch/glyphish/icons/112-group.png +0 -0
  43. data/templates/jqtouch/jqtouch/glyphish/icons/113-navigation.png +0 -0
  44. data/templates/jqtouch/jqtouch/glyphish/icons/114-balloon.png +0 -0
  45. data/templates/jqtouch/jqtouch/glyphish/icons/115-bow-and-arrow.png +0 -0
  46. data/templates/jqtouch/jqtouch/glyphish/icons/116-controller.png +0 -0
  47. data/templates/jqtouch/jqtouch/glyphish/icons/117-todo.png +0 -0
  48. data/templates/jqtouch/jqtouch/glyphish/icons/118-coathanger.png +0 -0
  49. data/templates/jqtouch/jqtouch/glyphish/icons/119-piggybank.png +0 -0
  50. data/templates/jqtouch/jqtouch/glyphish/icons/12-eye.png +0 -0
  51. data/templates/jqtouch/jqtouch/glyphish/icons/120-headphones.png +0 -0
  52. data/templates/jqtouch/jqtouch/glyphish/icons/121-lanscape.png +0 -0
  53. data/templates/jqtouch/jqtouch/glyphish/icons/122-stats.png +0 -0
  54. data/templates/jqtouch/jqtouch/glyphish/icons/123-id-card.png +0 -0
  55. data/templates/jqtouch/jqtouch/glyphish/icons/124-bullhorn.png +0 -0
  56. data/templates/jqtouch/jqtouch/glyphish/icons/125-food.png +0 -0
  57. data/templates/jqtouch/jqtouch/glyphish/icons/126-moon.png +0 -0
  58. data/templates/jqtouch/jqtouch/glyphish/icons/127-sock.png +0 -0
  59. data/templates/jqtouch/jqtouch/glyphish/icons/128-bone.png +0 -0
  60. data/templates/jqtouch/jqtouch/glyphish/icons/129-golf.png +0 -0
  61. data/templates/jqtouch/jqtouch/glyphish/icons/13-target.png +0 -0
  62. data/templates/jqtouch/jqtouch/glyphish/icons/130-dice.png +0 -0
  63. data/templates/jqtouch/jqtouch/glyphish/icons/14-tag.png +0 -0
  64. data/templates/jqtouch/jqtouch/glyphish/icons/15-tags.png +0 -0
  65. data/templates/jqtouch/jqtouch/glyphish/icons/16-line-chart.png +0 -0
  66. data/templates/jqtouch/jqtouch/glyphish/icons/17-bar-chart.png +0 -0
  67. data/templates/jqtouch/jqtouch/glyphish/icons/18-envelope.png +0 -0
  68. data/templates/jqtouch/jqtouch/glyphish/icons/19-gear.png +0 -0
  69. data/templates/jqtouch/jqtouch/glyphish/icons/20-gear2.png +0 -0
  70. data/templates/jqtouch/jqtouch/glyphish/icons/21-skull.png +0 -0
  71. data/templates/jqtouch/jqtouch/glyphish/icons/22-skull-n-crossbones.png +0 -0
  72. data/templates/jqtouch/jqtouch/glyphish/icons/23-bird.png +0 -0
  73. data/templates/jqtouch/jqtouch/glyphish/icons/24-gift.png +0 -0
  74. data/templates/jqtouch/jqtouch/glyphish/icons/25-weather.png +0 -0
  75. data/templates/jqtouch/jqtouch/glyphish/icons/26-bandaid.png +0 -0
  76. data/templates/jqtouch/jqtouch/glyphish/icons/27-planet.png +0 -0
  77. data/templates/jqtouch/jqtouch/glyphish/icons/28-star.png +0 -0
  78. data/templates/jqtouch/jqtouch/glyphish/icons/29-heart.png +0 -0
  79. data/templates/jqtouch/jqtouch/glyphish/icons/30-key.png +0 -0
  80. data/templates/jqtouch/jqtouch/glyphish/icons/31-ipod.png +0 -0
  81. data/templates/jqtouch/jqtouch/glyphish/icons/32-iphone.png +0 -0
  82. data/templates/jqtouch/jqtouch/glyphish/icons/33-cabinet.png +0 -0
  83. data/templates/jqtouch/jqtouch/glyphish/icons/34-coffee.png +0 -0
  84. data/templates/jqtouch/jqtouch/glyphish/icons/35-shopping-bag.png +0 -0
  85. data/templates/jqtouch/jqtouch/glyphish/icons/36-toolbox.png +0 -0
  86. data/templates/jqtouch/jqtouch/glyphish/icons/37-suitcase.png +0 -0
  87. data/templates/jqtouch/jqtouch/glyphish/icons/38-airplane.png +0 -0
  88. data/templates/jqtouch/jqtouch/glyphish/icons/39-spraycan.png +0 -0
  89. data/templates/jqtouch/jqtouch/glyphish/icons/40-inbox.png +0 -0
  90. data/templates/jqtouch/jqtouch/glyphish/icons/41-picture-frame.png +0 -0
  91. data/templates/jqtouch/jqtouch/glyphish/icons/42-photos.png +0 -0
  92. data/templates/jqtouch/jqtouch/glyphish/icons/43-film-roll.png +0 -0
  93. data/templates/jqtouch/jqtouch/glyphish/icons/44-shoebox.png +0 -0
  94. data/templates/jqtouch/jqtouch/glyphish/icons/45-movie1.png +0 -0
  95. data/templates/jqtouch/jqtouch/glyphish/icons/46-movie2.png +0 -0
  96. data/templates/jqtouch/jqtouch/glyphish/icons/47-fuel.png +0 -0
  97. data/templates/jqtouch/jqtouch/glyphish/icons/48-fork-and-knife.png +0 -0
  98. data/templates/jqtouch/jqtouch/glyphish/icons/49-battery.png +0 -0
  99. data/templates/jqtouch/jqtouch/glyphish/icons/50-beaker.png +0 -0
  100. data/templates/jqtouch/jqtouch/glyphish/icons/51-outlet.png +0 -0
  101. data/templates/jqtouch/jqtouch/glyphish/icons/52-pinetree.png +0 -0
  102. data/templates/jqtouch/jqtouch/glyphish/icons/53-house.png +0 -0
  103. data/templates/jqtouch/jqtouch/glyphish/icons/54-lock.png +0 -0
  104. data/templates/jqtouch/jqtouch/glyphish/icons/55-network.png +0 -0
  105. data/templates/jqtouch/jqtouch/glyphish/icons/56-cloud.png +0 -0
  106. data/templates/jqtouch/jqtouch/glyphish/icons/57-download.png +0 -0
  107. data/templates/jqtouch/jqtouch/glyphish/icons/58-bookmark.png +0 -0
  108. data/templates/jqtouch/jqtouch/glyphish/icons/59-flag.png +0 -0
  109. data/templates/jqtouch/jqtouch/glyphish/icons/60-signpost.png +0 -0
  110. data/templates/jqtouch/jqtouch/glyphish/icons/61-brightness.png +0 -0
  111. data/templates/jqtouch/jqtouch/glyphish/icons/62-contrast.png +0 -0
  112. data/templates/jqtouch/jqtouch/glyphish/icons/63-runner.png +0 -0
  113. data/templates/jqtouch/jqtouch/glyphish/icons/64-zap.png +0 -0
  114. data/templates/jqtouch/jqtouch/glyphish/icons/65-note.png +0 -0
  115. data/templates/jqtouch/jqtouch/glyphish/icons/66-microphone.png +0 -0
  116. data/templates/jqtouch/jqtouch/glyphish/icons/67-tshirt.png +0 -0
  117. data/templates/jqtouch/jqtouch/glyphish/icons/68-paperclip.png +0 -0
  118. data/templates/jqtouch/jqtouch/glyphish/icons/69-display.png +0 -0
  119. data/templates/jqtouch/jqtouch/glyphish/icons/70-tv.png +0 -0
  120. data/templates/jqtouch/jqtouch/glyphish/icons/71-compass.png +0 -0
  121. data/templates/jqtouch/jqtouch/glyphish/icons/72-pin.png +0 -0
  122. data/templates/jqtouch/jqtouch/glyphish/icons/73-radar.png +0 -0
  123. data/templates/jqtouch/jqtouch/glyphish/icons/74-location.png +0 -0
  124. data/templates/jqtouch/jqtouch/glyphish/icons/75-phone.png +0 -0
  125. data/templates/jqtouch/jqtouch/glyphish/icons/76-baby.png +0 -0
  126. data/templates/jqtouch/jqtouch/glyphish/icons/77-ekg.png +0 -0
  127. data/templates/jqtouch/jqtouch/glyphish/icons/78-stopwatch.png +0 -0
  128. data/templates/jqtouch/jqtouch/glyphish/icons/79-medical-bag.png +0 -0
  129. data/templates/jqtouch/jqtouch/glyphish/icons/80-shopping-cart.png +0 -0
  130. data/templates/jqtouch/jqtouch/glyphish/icons/81-dashboard.png +0 -0
  131. data/templates/jqtouch/jqtouch/glyphish/icons/82-dogpaw.png +0 -0
  132. data/templates/jqtouch/jqtouch/glyphish/icons/83-calendar.png +0 -0
  133. data/templates/jqtouch/jqtouch/glyphish/icons/84-lightbulb.png +0 -0
  134. data/templates/jqtouch/jqtouch/glyphish/icons/85-trophy.png +0 -0
  135. data/templates/jqtouch/jqtouch/glyphish/icons/86-camera.png +0 -0
  136. data/templates/jqtouch/jqtouch/glyphish/icons/87-wineglass.png +0 -0
  137. data/templates/jqtouch/jqtouch/glyphish/icons/88-beermug.png +0 -0
  138. data/templates/jqtouch/jqtouch/glyphish/icons/89-dumbbell.png +0 -0
  139. data/templates/jqtouch/jqtouch/glyphish/icons/90-lifebuoy.png +0 -0
  140. data/templates/jqtouch/jqtouch/glyphish/icons/91-beaker2.png +0 -0
  141. data/templates/jqtouch/jqtouch/glyphish/icons/92-testtube.png +0 -0
  142. data/templates/jqtouch/jqtouch/glyphish/icons/93-thermometer.png +0 -0
  143. data/templates/jqtouch/jqtouch/glyphish/icons/94-pill.png +0 -0
  144. data/templates/jqtouch/jqtouch/glyphish/icons/95-equalizer.png +0 -0
  145. data/templates/jqtouch/jqtouch/glyphish/icons/96-book.png +0 -0
  146. data/templates/jqtouch/jqtouch/glyphish/icons/97-puzzle.png +0 -0
  147. data/templates/jqtouch/jqtouch/glyphish/icons/98-palette.png +0 -0
  148. data/templates/jqtouch/jqtouch/glyphish/icons/99-umbrella.png +0 -0
  149. data/templates/jqtouch/jqtouch/glyphish/mini-icons/01-refresh.png +0 -0
  150. data/templates/jqtouch/jqtouch/glyphish/mini-icons/02-redo.png +0 -0
  151. data/templates/jqtouch/jqtouch/glyphish/mini-icons/03-loopback.png +0 -0
  152. data/templates/jqtouch/jqtouch/glyphish/mini-icons/04-squiggle.png +0 -0
  153. data/templates/jqtouch/jqtouch/glyphish/mini-icons/05-shuffle.png +0 -0
  154. data/templates/jqtouch/jqtouch/glyphish/mini-icons/06-magnifying-glass.png +0 -0
  155. data/templates/jqtouch/jqtouch/glyphish/mini-icons/07-map-marker.png +0 -0
  156. data/templates/jqtouch/jqtouch/glyphish/mini-icons/08-chat.png +0 -0
  157. data/templates/jqtouch/jqtouch/glyphish/mini-icons/09-chat2.png +0 -0
  158. data/templates/jqtouch/jqtouch/glyphish/mini-icons/10-medical.png +0 -0
  159. data/templates/jqtouch/jqtouch/glyphish/mini-icons/100-coffee.png +0 -0
  160. data/templates/jqtouch/jqtouch/glyphish/mini-icons/101-gameplan.png +0 -0
  161. data/templates/jqtouch/jqtouch/glyphish/mini-icons/102-walk.png +0 -0
  162. data/templates/jqtouch/jqtouch/glyphish/mini-icons/103-map.png +0 -0
  163. data/templates/jqtouch/jqtouch/glyphish/mini-icons/104-index-cards.png +0 -0
  164. data/templates/jqtouch/jqtouch/glyphish/mini-icons/105-piano.png +0 -0
  165. data/templates/jqtouch/jqtouch/glyphish/mini-icons/106-sliders.png +0 -0
  166. data/templates/jqtouch/jqtouch/glyphish/mini-icons/107-widescreen.png +0 -0
  167. data/templates/jqtouch/jqtouch/glyphish/mini-icons/108-badge.png +0 -0
  168. data/templates/jqtouch/jqtouch/glyphish/mini-icons/109-chicken.png +0 -0
  169. data/templates/jqtouch/jqtouch/glyphish/mini-icons/11-clock.png +0 -0
  170. data/templates/jqtouch/jqtouch/glyphish/mini-icons/110-bug.png +0 -0
  171. data/templates/jqtouch/jqtouch/glyphish/mini-icons/111-user.png +0 -0
  172. data/templates/jqtouch/jqtouch/glyphish/mini-icons/112-group.png +0 -0
  173. data/templates/jqtouch/jqtouch/glyphish/mini-icons/113-navigation.png +0 -0
  174. data/templates/jqtouch/jqtouch/glyphish/mini-icons/114-balloon.png +0 -0
  175. data/templates/jqtouch/jqtouch/glyphish/mini-icons/115-bow-and-arrow.png +0 -0
  176. data/templates/jqtouch/jqtouch/glyphish/mini-icons/116-controller.png +0 -0
  177. data/templates/jqtouch/jqtouch/glyphish/mini-icons/117-todo.png +0 -0
  178. data/templates/jqtouch/jqtouch/glyphish/mini-icons/118-coathanger.png +0 -0
  179. data/templates/jqtouch/jqtouch/glyphish/mini-icons/119-piggybank.png +0 -0
  180. data/templates/jqtouch/jqtouch/glyphish/mini-icons/12-eye.png +0 -0
  181. data/templates/jqtouch/jqtouch/glyphish/mini-icons/120-headphones.png +0 -0
  182. data/templates/jqtouch/jqtouch/glyphish/mini-icons/121-lanscape.png +0 -0
  183. data/templates/jqtouch/jqtouch/glyphish/mini-icons/122-stats.png +0 -0
  184. data/templates/jqtouch/jqtouch/glyphish/mini-icons/123-id-card.png +0 -0
  185. data/templates/jqtouch/jqtouch/glyphish/mini-icons/124-bullhorn.png +0 -0
  186. data/templates/jqtouch/jqtouch/glyphish/mini-icons/125-food.png +0 -0
  187. data/templates/jqtouch/jqtouch/glyphish/mini-icons/126-moon.png +0 -0
  188. data/templates/jqtouch/jqtouch/glyphish/mini-icons/127-sock.png +0 -0
  189. data/templates/jqtouch/jqtouch/glyphish/mini-icons/128-bone.png +0 -0
  190. data/templates/jqtouch/jqtouch/glyphish/mini-icons/129-golf.png +0 -0
  191. data/templates/jqtouch/jqtouch/glyphish/mini-icons/13-target.png +0 -0
  192. data/templates/jqtouch/jqtouch/glyphish/mini-icons/130-dice.png +0 -0
  193. data/templates/jqtouch/jqtouch/glyphish/mini-icons/14-tag.png +0 -0
  194. data/templates/jqtouch/jqtouch/glyphish/mini-icons/15-tags.png +0 -0
  195. data/templates/jqtouch/jqtouch/glyphish/mini-icons/16-line-chart.png +0 -0
  196. data/templates/jqtouch/jqtouch/glyphish/mini-icons/17-bar-chart.png +0 -0
  197. data/templates/jqtouch/jqtouch/glyphish/mini-icons/18-envelope.png +0 -0
  198. data/templates/jqtouch/jqtouch/glyphish/mini-icons/19-gear.png +0 -0
  199. data/templates/jqtouch/jqtouch/glyphish/mini-icons/20-gear2.png +0 -0
  200. data/templates/jqtouch/jqtouch/glyphish/mini-icons/21-skull.png +0 -0
  201. data/templates/jqtouch/jqtouch/glyphish/mini-icons/22-skull-n-crossbones.png +0 -0
  202. data/templates/jqtouch/jqtouch/glyphish/mini-icons/23-bird.png +0 -0
  203. data/templates/jqtouch/jqtouch/glyphish/mini-icons/24-gift.png +0 -0
  204. data/templates/jqtouch/jqtouch/glyphish/mini-icons/25-weather.png +0 -0
  205. data/templates/jqtouch/jqtouch/glyphish/mini-icons/26-bandaid.png +0 -0
  206. data/templates/jqtouch/jqtouch/glyphish/mini-icons/27-planet.png +0 -0
  207. data/templates/jqtouch/jqtouch/glyphish/mini-icons/28-star.png +0 -0
  208. data/templates/jqtouch/jqtouch/glyphish/mini-icons/29-heart.png +0 -0
  209. data/templates/jqtouch/jqtouch/glyphish/mini-icons/30-key.png +0 -0
  210. data/templates/jqtouch/jqtouch/glyphish/mini-icons/31-ipod.png +0 -0
  211. data/templates/jqtouch/jqtouch/glyphish/mini-icons/32-iphone.png +0 -0
  212. data/templates/jqtouch/jqtouch/glyphish/mini-icons/33-cabinet.png +0 -0
  213. data/templates/jqtouch/jqtouch/glyphish/mini-icons/34-coffee.png +0 -0
  214. data/templates/jqtouch/jqtouch/glyphish/mini-icons/35-shopping-bag.png +0 -0
  215. data/templates/jqtouch/jqtouch/glyphish/mini-icons/36-toolbox.png +0 -0
  216. data/templates/jqtouch/jqtouch/glyphish/mini-icons/37-suitcase.png +0 -0
  217. data/templates/jqtouch/jqtouch/glyphish/mini-icons/38-airplane.png +0 -0
  218. data/templates/jqtouch/jqtouch/glyphish/mini-icons/39-spraycan.png +0 -0
  219. data/templates/jqtouch/jqtouch/glyphish/mini-icons/40-inbox.png +0 -0
  220. data/templates/jqtouch/jqtouch/glyphish/mini-icons/41-picture-frame.png +0 -0
  221. data/templates/jqtouch/jqtouch/glyphish/mini-icons/42-photos.png +0 -0
  222. data/templates/jqtouch/jqtouch/glyphish/mini-icons/43-film-roll.png +0 -0
  223. data/templates/jqtouch/jqtouch/glyphish/mini-icons/44-shoebox.png +0 -0
  224. data/templates/jqtouch/jqtouch/glyphish/mini-icons/45-movie1.png +0 -0
  225. data/templates/jqtouch/jqtouch/glyphish/mini-icons/46-movie2.png +0 -0
  226. data/templates/jqtouch/jqtouch/glyphish/mini-icons/47-fuel.png +0 -0
  227. data/templates/jqtouch/jqtouch/glyphish/mini-icons/48-fork-and-knife.png +0 -0
  228. data/templates/jqtouch/jqtouch/glyphish/mini-icons/49-battery.png +0 -0
  229. data/templates/jqtouch/jqtouch/glyphish/mini-icons/50-beaker.png +0 -0
  230. data/templates/jqtouch/jqtouch/glyphish/mini-icons/51-outlet.png +0 -0
  231. data/templates/jqtouch/jqtouch/glyphish/mini-icons/52-pinetree.png +0 -0
  232. data/templates/jqtouch/jqtouch/glyphish/mini-icons/53-house.png +0 -0
  233. data/templates/jqtouch/jqtouch/glyphish/mini-icons/54-lock.png +0 -0
  234. data/templates/jqtouch/jqtouch/glyphish/mini-icons/55-network.png +0 -0
  235. data/templates/jqtouch/jqtouch/glyphish/mini-icons/56-cloud.png +0 -0
  236. data/templates/jqtouch/jqtouch/glyphish/mini-icons/57-download.png +0 -0
  237. data/templates/jqtouch/jqtouch/glyphish/mini-icons/58-bookmark.png +0 -0
  238. data/templates/jqtouch/jqtouch/glyphish/mini-icons/59-flag.png +0 -0
  239. data/templates/jqtouch/jqtouch/glyphish/mini-icons/60-signpost.png +0 -0
  240. data/templates/jqtouch/jqtouch/glyphish/mini-icons/61-brightness.png +0 -0
  241. data/templates/jqtouch/jqtouch/glyphish/mini-icons/62-contrast.png +0 -0
  242. data/templates/jqtouch/jqtouch/glyphish/mini-icons/63-runner.png +0 -0
  243. data/templates/jqtouch/jqtouch/glyphish/mini-icons/64-zap.png +0 -0
  244. data/templates/jqtouch/jqtouch/glyphish/mini-icons/65-note.png +0 -0
  245. data/templates/jqtouch/jqtouch/glyphish/mini-icons/66-microphone.png +0 -0
  246. data/templates/jqtouch/jqtouch/glyphish/mini-icons/67-tshirt.png +0 -0
  247. data/templates/jqtouch/jqtouch/glyphish/mini-icons/68-paperclip.png +0 -0
  248. data/templates/jqtouch/jqtouch/glyphish/mini-icons/69-display.png +0 -0
  249. data/templates/jqtouch/jqtouch/glyphish/mini-icons/70-tv.png +0 -0
  250. data/templates/jqtouch/jqtouch/glyphish/mini-icons/71-compass.png +0 -0
  251. data/templates/jqtouch/jqtouch/glyphish/mini-icons/72-pin.png +0 -0
  252. data/templates/jqtouch/jqtouch/glyphish/mini-icons/73-radar.png +0 -0
  253. data/templates/jqtouch/jqtouch/glyphish/mini-icons/74-location.png +0 -0
  254. data/templates/jqtouch/jqtouch/glyphish/mini-icons/75-phone.png +0 -0
  255. data/templates/jqtouch/jqtouch/glyphish/mini-icons/76-baby.png +0 -0
  256. data/templates/jqtouch/jqtouch/glyphish/mini-icons/77-ekg.png +0 -0
  257. data/templates/jqtouch/jqtouch/glyphish/mini-icons/78-stopwatch.png +0 -0
  258. data/templates/jqtouch/jqtouch/glyphish/mini-icons/79-medical-bag.png +0 -0
  259. data/templates/jqtouch/jqtouch/glyphish/mini-icons/80-shopping-cart.png +0 -0
  260. data/templates/jqtouch/jqtouch/glyphish/mini-icons/81-dashboard.png +0 -0
  261. data/templates/jqtouch/jqtouch/glyphish/mini-icons/82-dogpaw.png +0 -0
  262. data/templates/jqtouch/jqtouch/glyphish/mini-icons/83-calendar.png +0 -0
  263. data/templates/jqtouch/jqtouch/glyphish/mini-icons/84-lightbulb.png +0 -0
  264. data/templates/jqtouch/jqtouch/glyphish/mini-icons/85-trophy.png +0 -0
  265. data/templates/jqtouch/jqtouch/glyphish/mini-icons/86-camera.png +0 -0
  266. data/templates/jqtouch/jqtouch/glyphish/mini-icons/87-wineglass.png +0 -0
  267. data/templates/jqtouch/jqtouch/glyphish/mini-icons/88-beermug.png +0 -0
  268. data/templates/jqtouch/jqtouch/glyphish/mini-icons/89-dumbbell.png +0 -0
  269. data/templates/jqtouch/jqtouch/glyphish/mini-icons/90-lifebuoy.png +0 -0
  270. data/templates/jqtouch/jqtouch/glyphish/mini-icons/91-beaker2.png +0 -0
  271. data/templates/jqtouch/jqtouch/glyphish/mini-icons/92-testtube.png +0 -0
  272. data/templates/jqtouch/jqtouch/glyphish/mini-icons/93-thermometer.png +0 -0
  273. data/templates/jqtouch/jqtouch/glyphish/mini-icons/94-pill.png +0 -0
  274. data/templates/jqtouch/jqtouch/glyphish/mini-icons/95-equalizer.png +0 -0
  275. data/templates/jqtouch/jqtouch/glyphish/mini-icons/96-book.png +0 -0
  276. data/templates/jqtouch/jqtouch/glyphish/mini-icons/97-puzzle.png +0 -0
  277. data/templates/jqtouch/jqtouch/glyphish/mini-icons/98-palette.png +0 -0
  278. data/templates/jqtouch/jqtouch/glyphish/mini-icons/99-umbrella.png +0 -0
  279. data/templates/jqtouch/jqtouch/ical/bottom_bar.png +0 -0
  280. data/templates/jqtouch/jqtouch/ical/calpad.jpg +0 -0
  281. data/templates/jqtouch/jqtouch/ical/cells.png +0 -0
  282. data/templates/jqtouch/jqtouch/ical/footer.png +0 -0
  283. data/templates/jqtouch/jqtouch/ical/header.png +0 -0
  284. data/templates/jqtouch/jqtouch/ical/header_left.png +0 -0
  285. data/templates/jqtouch/jqtouch/ical/header_right.png +0 -0
  286. data/templates/jqtouch/jqtouch/ical/jqt_startup.png +0 -0
  287. data/templates/jqtouch/jqtouch/ical/jqtouch-ical.png +0 -0
  288. data/templates/jqtouch/jqtouch/iphone-emulator.scss +1 -1
  289. data/templates/jqtouch/jqtouch/jqt.apple.scss +30 -30
  290. data/templates/jqtouch/jqtouch/jqt.jqt.scss +40 -40
  291. data/templates/jqtouch/jqtouch/jqtouch.scss +533 -168
  292. data/templates/jqtouch/jqtouch/sw/alpha.png +0 -0
  293. data/templates/jqtouch/jqtouch/sw/button-cancel.png +0 -0
  294. data/templates/jqtouch/jqtouch/sw/button-done.png +0 -0
  295. data/templates/jqtouch/jqtouch/sw/header.png +0 -0
  296. data/templates/jqtouch/jqtouch/sw/slot-border.png +0 -0
  297. data/templates/jqtouch/jquery.jqtouch.js +2049 -25
  298. data/templates/jqtouch/jquery.jqtouch.min.js +1 -26
  299. data/templates/jqtouch/manifest.rb +276 -1
  300. data/templates/jrails-1.3/config/initializers/jrails.rb +2 -2
  301. data/templates/jrails-1.3/{jquery-ui-1.7.2.js → jquery-ui-1.7.3.js} +4730 -4716
  302. data/templates/jrails-1.3/jquery-ui-1.7.3.min.js +690 -0
  303. data/templates/jrails-1.3/jquery.ui/_theme.scss +36 -36
  304. data/templates/jrails-1.3/jquery.ui/contextMenu.scss +7 -7
  305. data/templates/jrails-1.3/manifest.rb +2 -2
  306. data/templates/jrails-1.4/config/initializers/jrails.rb +2 -2
  307. data/templates/jrails-1.4/i18n/jquery.ui/datepicker-fr-CH.js +6 -6
  308. data/templates/jrails-1.4/i18n/jquery.ui/datepicker-fr-CH.min.js +1 -1
  309. data/templates/jrails-1.4/i18n/jquery.ui/datepicker-pl.js +1 -1
  310. data/templates/jrails-1.4/i18n/jquery.ui/datepicker-pl.min.js +1 -1
  311. data/templates/jrails-1.4/{jquery-ui-1.8.js → jquery-ui-1.8.1.js} +6729 -6597
  312. data/templates/jrails-1.4/{jquery-ui-1.8.min.js → jquery-ui-1.8.1.min.js} +304 -305
  313. data/templates/jrails-1.4/jquery.ui/_theme.scss +45 -45
  314. data/templates/jrails-1.4/jquery.ui/contextMenu.scss +7 -7
  315. data/templates/jrails-1.4/manifest.rb +2 -2
  316. data/templates/ribbon/jquery.ui/ribbon.office/arrow.png +0 -0
  317. data/templates/ribbon/jquery.ui/ribbon.office/arrow_down.png +0 -0
  318. data/templates/ribbon/jquery.ui/ribbon.office/bg.png +0 -0
  319. data/templates/ribbon/jquery.ui/ribbon.office/item_background.png +0 -0
  320. data/templates/ribbon/jquery.ui/ribbon.office/item_small_background.png +0 -0
  321. data/templates/ribbon/jquery.ui/ribbon.office/menu_background.png +0 -0
  322. data/templates/ribbon/jquery.ui/ribbon.office/menu_bottom.png +0 -0
  323. data/templates/ribbon/jquery.ui/ribbon.office/menu_dropdownitembg.png +0 -0
  324. data/templates/ribbon/jquery.ui/ribbon.office/menu_dropdownitembghover.png +0 -0
  325. data/templates/ribbon/jquery.ui/ribbon.office/menu_item_hover.png +0 -0
  326. data/templates/ribbon/jquery.ui/ribbon.office/menu_middle.png +0 -0
  327. data/templates/ribbon/jquery.ui/ribbon.office/menu_top.png +0 -0
  328. data/templates/ribbon/jquery.ui/ribbon.office/menu_top_backstage.png +0 -0
  329. data/templates/ribbon/jquery.ui/ribbon.office/menu_top_backstage2.png +0 -0
  330. data/templates/ribbon/jquery.ui/ribbon.office/menuitem_background.png +0 -0
  331. data/templates/ribbon/jquery.ui/ribbon.office/orb.png +0 -0
  332. data/templates/ribbon/jquery.ui/ribbon.office/orb_hover.png +0 -0
  333. data/templates/ribbon/jquery.ui/ribbon.office/orb_office.png +0 -0
  334. data/templates/ribbon/jquery.ui/ribbon.office/orb_office_hover.png +0 -0
  335. data/templates/ribbon/jquery.ui/ribbon.office/orb_submenu_item_hover.png +0 -0
  336. data/templates/ribbon/jquery.ui/ribbon.office/ribbon-backstage-firstLevel-hover.png +0 -0
  337. data/templates/ribbon/jquery.ui/ribbon.office/ribbon-backstage-rightColumn-wide.png +0 -0
  338. data/templates/ribbon/jquery.ui/ribbon.office/ribbon-backstage-subMenu-item-hover.png +0 -0
  339. data/templates/ribbon/jquery.ui/ribbon.office/ribbon-backstage-subMenu-item.png +0 -0
  340. data/templates/ribbon/jquery.ui/ribbon.office/ribbon-backstage-subMenu-itemSquare-hover.png +0 -0
  341. data/templates/ribbon/jquery.ui/ribbon.office/ribbon-backstage-subMenu-itemSquare.png +0 -0
  342. data/templates/ribbon/jquery.ui/ribbon.office/top_background.png +0 -0
  343. data/templates/ribbon/jquery.ui/ribbon.office.scss +444 -0
  344. data/templates/ribbon/jquery.ui/ribbon.simple.scss +17 -9
  345. data/templates/ribbon/jquery.ui/ribbon.windows7.scss +27 -37
  346. data/templates/ribbon/manifest.rb +28 -0
  347. metadata +310 -7
  348. data/templates/jrails-1.3/jquery-ui-1.7.2.min.js +0 -688
@@ -0,0 +1,690 @@
1
+ jQuery.ui||function(b){function e(h,j,k,l){function m(o){o=b[h][j][o]||[];return typeof o=="string"?o.split(/,?\s+/):o}var q=m("getter");if(l.length==1&&typeof l[0]=="string")q=q.concat(m("getterSetter"));return b.inArray(k,q)!=-1}var f=b.fn.remove,a=b.browser.mozilla&&parseFloat(b.browser.version)<1.9;b.ui={version:"1.7.3",plugin:{add:function(h,j,k){h=b.ui[h].prototype;for(var l in k){h.plugins[l]=h.plugins[l]||[];h.plugins[l].push([j,k[l]])}},call:function(h,j,k){if((j=h.plugins[j])&&h.element[0].parentNode)for(var l=
2
+ 0;l<j.length;l++)h.options[j[l][0]]&&j[l][1].apply(h.element,k)}},contains:function(h,j){return document.compareDocumentPosition?h.compareDocumentPosition(j)&16:h!==j&&h.contains(j)},hasScroll:function(h,j){if(b(h).css("overflow")=="hidden")return false;j=j&&j=="left"?"scrollLeft":"scrollTop";var k=false;if(h[j]>0)return true;h[j]=1;k=h[j]>0;h[j]=0;return k},isOverAxis:function(h,j,k){return h>j&&h<j+k},isOver:function(h,j,k,l,m,q){return b.ui.isOverAxis(h,k,m)&&b.ui.isOverAxis(j,l,q)},keyCode:{BACKSPACE:8,
3
+ CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,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}};if(a){var c=b.attr,d=b.fn.removeAttr,g=/^aria-/,i=/^wairole:/;b.attr=function(h,j,k){var l=k!==undefined;return j=="role"?l?c.call(this,h,j,"wairole:"+k):(c.apply(this,arguments)||"").replace(i,""):g.test(j)?l?h.setAttributeNS("http://www.w3.org/2005/07/aaa",
4
+ j.replace(g,"aaa:"),k):c.call(this,h,j.replace(g,"aaa:")):c.apply(this,arguments)};b.fn.removeAttr=function(h){return g.test(h)?this.each(function(){this.removeAttributeNS("http://www.w3.org/2005/07/aaa",h.replace(g,""))}):d.call(this,h)}}b.fn.extend({remove:function(h,j){return this.each(function(){if(!j)if(!h||b.filter(h,[this]).length)b("*",this).add(this).each(function(){b(this).triggerHandler("remove")});return f.call(b(this),h,j)})},enableSelection:function(){return this.attr("unselectable",
5
+ "off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var h;h=b.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(b.curCSS(this,"position",1))&&/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",
6
+ 1)+b.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!h.length?b(document):h}});b.extend(b.expr[":"],{data:function(h,j,k){return!!b.data(h,k[3])},focusable:function(h){var j=h.nodeName.toLowerCase(),k=b.attr(h,"tabindex");return(/input|select|textarea|button|object/.test(j)?!h.disabled:"a"==j||"area"==j?h.href||
7
+ !isNaN(k):!isNaN(k))&&!b(h)["area"==j?"parents":"closest"](":hidden").length},tabbable:function(h){var j=b.attr(h,"tabindex");return(isNaN(j)||j>=0)&&b(h).is(":focusable")}});b.widget=function(h,j){var k=h.split(".")[0];h=h.split(".")[1];b.fn[h]=function(l){var m=typeof l=="string",q=Array.prototype.slice.call(arguments,1);if(m&&l.substring(0,1)=="_")return this;if(m&&e(k,h,l,q)){var o=b.data(this[0],h);return o?o[l].apply(o,q):undefined}return this.each(function(){var p=b.data(this,h);!p&&!m&&b.data(this,
8
+ h,new b[k][h](this,l))._init();p&&m&&b.isFunction(p[l])&&p[l].apply(p,q)})};b[k]=b[k]||{};b[k][h]=function(l,m){var q=this;this.namespace=k;this.widgetName=h;this.widgetEventPrefix=b[k][h].eventPrefix||h;this.widgetBaseClass=k+"-"+h;this.options=b.extend({},b.widget.defaults,b[k][h].defaults,b.metadata&&b.metadata.get(l)[h],m);this.element=b(l).bind("setData."+h,function(o,p,n){if(o.target==l)return q._setData(p,n)}).bind("getData."+h,function(o,p){if(o.target==l)return q._getData(p)}).bind("remove",
9
+ function(){return q.destroy()})};b[k][h].prototype=b.extend({},b.widget.prototype,j);b[k][h].getterSetter="option"};b.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(h,j){var k=h,l=this;if(typeof h=="string"){if(j===undefined)return this._getData(h);k={};k[h]=j}b.each(k,function(m,q){l._setData(m,q)})},_getData:function(h){return this.options[h]},
10
+ _setData:function(h,j){this.options[h]=j;if(h=="disabled")this.element[j?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",j)},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(h,j,k){var l=this.options[h];h=h==this.widgetEventPrefix?h:this.widgetEventPrefix+h;j=b.Event(j);j.type=h;if(j.originalEvent){h=b.event.props.length;for(var m;h;){m=b.event.props[--h];j[m]=
11
+ j.originalEvent[m]}}this.element.trigger(j,k);return!(b.isFunction(l)&&l.call(this.element[0],j,k)===false||j.isDefaultPrevented())}};b.widget.defaults={disabled:false};b.ui.mouse={_mouseInit:function(){var h=this;this.element.bind("mousedown."+this.widgetName,function(j){return h._mouseDown(j)}).bind("click."+this.widgetName,function(j){if(h._preventClickEvent){h._preventClickEvent=false;j.stopImmediatePropagation();return false}});if(b.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");
12
+ this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);b.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable)},_mouseDown:function(h){h.originalEvent=h.originalEvent||{};if(!h.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(h);this._mouseDownEvent=h;var j=this,k=h.which==1,l=typeof this.options.cancel=="string"?b(h.target).parents().add(h.target).filter(this.options.cancel).length:false;if(!k||l||
13
+ !this._mouseCapture(h))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){j.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(h)&&this._mouseDelayMet(h)){this._mouseStarted=this._mouseStart(h)!==false;if(!this._mouseStarted){h.preventDefault();return true}}this._mouseMoveDelegate=function(m){return j._mouseMove(m)};this._mouseUpDelegate=function(m){return j._mouseUp(m)};b(document).bind("mousemove."+this.widgetName,
14
+ this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);b.browser.safari||h.preventDefault();return h.originalEvent.mouseHandled=true}},_mouseMove:function(h){if(b.browser.msie&&!h.button)return this._mouseUp(h);if(this._mouseStarted){this._mouseDrag(h);return h.preventDefault()}if(this._mouseDistanceMet(h)&&this._mouseDelayMet(h))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,h)!==false)?this._mouseDrag(h):this._mouseUp(h);return!this._mouseStarted},_mouseUp:function(h){b(document).unbind("mousemove."+
15
+ this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=h.target==this._mouseDownEvent.target;this._mouseStop(h)}return false},_mouseDistanceMet:function(h){return Math.max(Math.abs(this._mouseDownEvent.pageX-h.pageX),Math.abs(this._mouseDownEvent.pageY-h.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},
16
+ _mouseStop:function(){},_mouseCapture:function(){return true}};b.ui.mouse.defaults={cancel:null,distance:1,delay:0}}(jQuery);
17
+ (function(b){b.widget("ui.draggable",b.extend({},b.ui.mouse,{_init: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")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()}},
18
+ _mouseCapture:function(e){var f=this.options;if(this.helper||f.disabled||b(e.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(e);if(!this.handle)return false;return true},_mouseStart:function(e){var f=this.options;this.helper=this._createHelper(e);this._cacheHelperProportions();if(b.ui.ddmanager)b.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset=
19
+ {top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};b.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(e);this.originalPageX=e.pageX;this.originalPageY=e.pageY;f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt);f.containment&&this._setContainment();this._trigger("start",e);this._cacheHelperProportions();b.ui.ddmanager&&!f.dropBehaviour&&
20
+ b.ui.ddmanager.prepareOffsets(this,e);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(e,true);return true},_mouseDrag:function(e,f){this.position=this._generatePosition(e);this.positionAbs=this._convertPositionTo("absolute");if(!f){f=this._uiHash();this._trigger("drag",e,f);this.position=f.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";
21
+ b.ui.ddmanager&&b.ui.ddmanager.drag(this,e);return false},_mouseStop:function(e){var f=false;if(b.ui.ddmanager&&!this.options.dropBehaviour)f=b.ui.ddmanager.drop(this,e);if(this.dropped){f=this.dropped;this.dropped=false}if(this.options.revert=="invalid"&&!f||this.options.revert=="valid"&&f||this.options.revert===true||b.isFunction(this.options.revert)&&this.options.revert.call(this.element,f)){var a=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){a._trigger("stop",
22
+ e);a._clear()})}else{this._trigger("stop",e);this._clear()}return false},_getHandle:function(e){var f=!this.options.handle||!b(this.options.handle,this.element).length?true:false;b(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==e.target)f=true});return f},_createHelper:function(e){var f=this.options;e=b.isFunction(f.helper)?b(f.helper.apply(this.element[0],[e])):f.helper=="clone"?this.element.clone():this.element;e.parents("body").length||e.appendTo(f.appendTo=="parent"?
23
+ this.element[0].parentNode:f.appendTo);e[0]!=this.element[0]&&!/(fixed|absolute)/.test(e.css("position"))&&e.css("position","absolute");return e},_adjustOffsetFromHelper:function(e){if(e.left!=undefined)this.offset.click.left=e.left+this.margins.left;if(e.right!=undefined)this.offset.click.left=this.helperProportions.width-e.right+this.margins.left;if(e.top!=undefined)this.offset.click.top=e.top+this.margins.top;if(e.bottom!=undefined)this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top},
24
+ _getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){e.left+=this.scrollParent.scrollLeft();e.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)e={top:0,left:0};return{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),
25
+ 10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var e=this.element.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.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"),
26
+ 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,b(e.containment=="document"?document:window).width()-this.helperProportions.width-
27
+ this.margins.left,(b(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(e.containment)&&e.containment.constructor!=Array){var f=b(e.containment)[0];if(f){e=b(e.containment).offset();var a=b(f).css("overflow")!="hidden";this.containment=[e.left+(parseInt(b(f).css("borderLeftWidth"),10)||0)+(parseInt(b(f).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(b(f).css("borderTopWidth"),
28
+ 10)||0)+(parseInt(b(f).css("paddingTop"),10)||0)-this.margins.top,e.left+(a?Math.max(f.scrollWidth,f.offsetWidth):f.offsetWidth)-(parseInt(b(f).css("borderLeftWidth"),10)||0)-(parseInt(b(f).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(a?Math.max(f.scrollHeight,f.offsetHeight):f.offsetHeight)-(parseInt(b(f).css("borderTopWidth"),10)||0)-(parseInt(b(f).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(e.containment.constructor==
29
+ Array)this.containment=e.containment},_convertPositionTo:function(e,f){if(!f)f=this.position;e=e=="absolute"?1:-1;var a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,c=/(html|body)/i.test(a[0].tagName);return{top:f.top+this.offset.relative.top*e+this.offset.parent.top*e-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():c?0:a.scrollTop())*
30
+ e),left:f.left+this.offset.relative.left*e+this.offset.parent.left*e-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():c?0:a.scrollLeft())*e)}},_generatePosition:function(e){var f=this.options,a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,c=/(html|body)/i.test(a[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=
31
+ document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var d=e.pageX,g=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0])d=this.containment[0]+this.offset.click.left;if(e.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(e.pageX-this.offset.click.left>this.containment[2])d=this.containment[2]+this.offset.click.left;if(e.pageY-this.offset.click.top>this.containment[3])g=
32
+ this.containment[3]+this.offset.click.top}if(f.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/f.grid[1])*f.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-f.grid[1]:g+f.grid[1]:g;d=this.originalPageX+Math.round((d-this.originalPageX)/f.grid[0])*f.grid[0];d=this.containment?!(d-this.offset.click.left<this.containment[0]||d-this.offset.click.left>this.containment[2])?
33
+ d:!(d-this.offset.click.left<this.containment[0])?d-f.grid[0]:d+f.grid[0]:d}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():c?0:a.scrollTop()),left:d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():c?0:a.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");
34
+ this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(e,f,a){a=a||this._uiHash();b.ui.plugin.call(this,e,[f,a]);if(e=="drag")this.positionAbs=this._convertPositionTo("absolute");return b.widget.prototype._trigger.call(this,e,f,a)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));b.extend(b.ui.draggable,{version:"1.7.3",
35
+ eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,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}});b.ui.plugin.add("draggable","connectToSortable",{start:function(e,
36
+ f){var a=b(this).data("draggable"),c=a.options,d=b.extend({},f,{item:a.element});a.sortables=[];b(c.connectToSortable).each(function(){var g=b.data(this,"sortable");if(g&&!g.options.disabled){a.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",e,d)}})},stop:function(e,f){var a=b(this).data("draggable"),c=b.extend({},f,{item:a.element});b.each(a.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;a.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=
37
+ false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(e);this.instance.options.helper=this.instance.options._helper;a.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",e,c)}})},drag:function(e,f){var a=b(this).data("draggable"),c=this;b.each(a.sortables,function(){this.instance.positionAbs=a.positionAbs;this.instance.helperProportions=a.helperProportions;
38
+ this.instance.offset.click=a.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=b(c).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return f.helper[0]};e.target=this.instance.currentItem[0];this.instance._mouseCapture(e,true);this.instance._mouseStart(e,true,true);this.instance.offset.click.top=
39
+ a.offset.click.top;this.instance.offset.click.left=a.offset.click.left;this.instance.offset.parent.left-=a.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=a.offset.parent.top-this.instance.offset.parent.top;a._trigger("toSortable",e);a.dropped=this.instance.element;a.currentItem=a.element;this.instance.fromOutside=a}this.instance.currentItem&&this.instance._mouseDrag(e)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;
40
+ this.instance.options.revert=false;this.instance._trigger("out",e,this.instance._uiHash(this.instance));this.instance._mouseStop(e,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();a._trigger("fromSortable",e);a.dropped=false}})}});b.ui.plugin.add("draggable","cursor",{start:function(){var e=b("body"),f=b(this).data("draggable").options;if(e.css("cursor"))f._cursor=e.css("cursor");e.css("cursor",
41
+ f.cursor)},stop:function(){var e=b(this).data("draggable").options;e._cursor&&b("body").css("cursor",e._cursor)}});b.ui.plugin.add("draggable","iframeFix",{start:function(){var e=b(this).data("draggable").options;b(e.iframeFix===true?"iframe":e.iframeFix).each(function(){b('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(b(this).offset()).appendTo("body")})},stop:function(){b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});
42
+ b.ui.plugin.add("draggable","opacity",{start:function(e,f){e=b(f.helper);f=b(this).data("draggable").options;if(e.css("opacity"))f._opacity=e.css("opacity");e.css("opacity",f.opacity)},stop:function(e,f){e=b(this).data("draggable").options;e._opacity&&b(f.helper).css("opacity",e._opacity)}});b.ui.plugin.add("draggable","scroll",{start:function(){var e=b(this).data("draggable");if(e.scrollParent[0]!=document&&e.scrollParent[0].tagName!="HTML")e.overflowOffset=e.scrollParent.offset()},drag:function(e){var f=
43
+ b(this).data("draggable"),a=f.options,c=false;if(f.scrollParent[0]!=document&&f.scrollParent[0].tagName!="HTML"){if(!a.axis||a.axis!="x")if(f.overflowOffset.top+f.scrollParent[0].offsetHeight-e.pageY<a.scrollSensitivity)f.scrollParent[0].scrollTop=c=f.scrollParent[0].scrollTop+a.scrollSpeed;else if(e.pageY-f.overflowOffset.top<a.scrollSensitivity)f.scrollParent[0].scrollTop=c=f.scrollParent[0].scrollTop-a.scrollSpeed;if(!a.axis||a.axis!="y")if(f.overflowOffset.left+f.scrollParent[0].offsetWidth-e.pageX<
44
+ a.scrollSensitivity)f.scrollParent[0].scrollLeft=c=f.scrollParent[0].scrollLeft+a.scrollSpeed;else if(e.pageX-f.overflowOffset.left<a.scrollSensitivity)f.scrollParent[0].scrollLeft=c=f.scrollParent[0].scrollLeft-a.scrollSpeed}else{if(!a.axis||a.axis!="x")if(e.pageY-b(document).scrollTop()<a.scrollSensitivity)c=b(document).scrollTop(b(document).scrollTop()-a.scrollSpeed);else if(b(window).height()-(e.pageY-b(document).scrollTop())<a.scrollSensitivity)c=b(document).scrollTop(b(document).scrollTop()+
45
+ a.scrollSpeed);if(!a.axis||a.axis!="y")if(e.pageX-b(document).scrollLeft()<a.scrollSensitivity)c=b(document).scrollLeft(b(document).scrollLeft()-a.scrollSpeed);else if(b(window).width()-(e.pageX-b(document).scrollLeft())<a.scrollSensitivity)c=b(document).scrollLeft(b(document).scrollLeft()+a.scrollSpeed)}c!==false&&b.ui.ddmanager&&!a.dropBehaviour&&b.ui.ddmanager.prepareOffsets(f,e)}});b.ui.plugin.add("draggable","snap",{start:function(){var e=b(this).data("draggable"),f=e.options;e.snapElements=
46
+ [];b(f.snap.constructor!=String?f.snap.items||":data(draggable)":f.snap).each(function(){var a=b(this),c=a.offset();this!=e.element[0]&&e.snapElements.push({item:this,width:a.outerWidth(),height:a.outerHeight(),top:c.top,left:c.left})})},drag:function(e,f){for(var a=b(this).data("draggable"),c=a.options,d=c.snapTolerance,g=f.offset.left,i=g+a.helperProportions.width,h=f.offset.top,j=h+a.helperProportions.height,k=a.snapElements.length-1;k>=0;k--){var l=a.snapElements[k].left,m=l+a.snapElements[k].width,
47
+ q=a.snapElements[k].top,o=q+a.snapElements[k].height;if(l-d<g&&g<m+d&&q-d<h&&h<o+d||l-d<g&&g<m+d&&q-d<j&&j<o+d||l-d<i&&i<m+d&&q-d<h&&h<o+d||l-d<i&&i<m+d&&q-d<j&&j<o+d){if(c.snapMode!="inner"){var p=Math.abs(q-j)<=d,n=Math.abs(o-h)<=d,r=Math.abs(l-i)<=d,s=Math.abs(m-g)<=d;if(p)f.position.top=a._convertPositionTo("relative",{top:q-a.helperProportions.height,left:0}).top-a.margins.top;if(n)f.position.top=a._convertPositionTo("relative",{top:o,left:0}).top-a.margins.top;if(r)f.position.left=a._convertPositionTo("relative",
48
+ {top:0,left:l-a.helperProportions.width}).left-a.margins.left;if(s)f.position.left=a._convertPositionTo("relative",{top:0,left:m}).left-a.margins.left}var u=p||n||r||s;if(c.snapMode!="outer"){p=Math.abs(q-h)<=d;n=Math.abs(o-j)<=d;r=Math.abs(l-g)<=d;s=Math.abs(m-i)<=d;if(p)f.position.top=a._convertPositionTo("relative",{top:q,left:0}).top-a.margins.top;if(n)f.position.top=a._convertPositionTo("relative",{top:o-a.helperProportions.height,left:0}).top-a.margins.top;if(r)f.position.left=a._convertPositionTo("relative",
49
+ {top:0,left:l}).left-a.margins.left;if(s)f.position.left=a._convertPositionTo("relative",{top:0,left:m-a.helperProportions.width}).left-a.margins.left}if(!a.snapElements[k].snapping&&(p||n||r||s||u))a.options.snap.snap&&a.options.snap.snap.call(a.element,e,b.extend(a._uiHash(),{snapItem:a.snapElements[k].item}));a.snapElements[k].snapping=p||n||r||s||u}else{a.snapElements[k].snapping&&a.options.snap.release&&a.options.snap.release.call(a.element,e,b.extend(a._uiHash(),{snapItem:a.snapElements[k].item}));
50
+ a.snapElements[k].snapping=false}}}});b.ui.plugin.add("draggable","stack",{start:function(){var e=b(this).data("draggable").options,f=b.makeArray(b(e.stack.group)).sort(function(a,c){return(parseInt(b(a).css("zIndex"),10)||e.stack.min)-(parseInt(b(c).css("zIndex"),10)||e.stack.min)});b(f).each(function(a){this.style.zIndex=e.stack.min+a});this[0].style.zIndex=e.stack.min+f.length}});b.ui.plugin.add("draggable","zIndex",{start:function(e,f){e=b(f.helper);f=b(this).data("draggable").options;if(e.css("zIndex"))f._zIndex=
51
+ e.css("zIndex");e.css("zIndex",f.zIndex)},stop:function(e,f){e=b(this).data("draggable").options;e._zIndex&&b(f.helper).css("zIndex",e._zIndex)}})})(jQuery);
52
+ (function(b){b.widget("ui.droppable",{_init:function(){var e=this.options.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&&b.isFunction(this.options.accept)?this.options.accept:function(f){return f.is(e)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};b.ui.ddmanager.droppables[this.options.scope]=b.ui.ddmanager.droppables[this.options.scope]||[];b.ui.ddmanager.droppables[this.options.scope].push(this);this.options.addClasses&&this.element.addClass("ui-droppable")},
53
+ destroy:function(){for(var e=b.ui.ddmanager.droppables[this.options.scope],f=0;f<e.length;f++)e[f]==this&&e.splice(f,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable")},_setData:function(e,f){if(e=="accept")this.options.accept=f&&b.isFunction(f)?f:function(a){return a.is(f)};else b.widget.prototype._setData.apply(this,arguments)},_activate:function(e){var f=b.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);
54
+ f&&this._trigger("activate",e,this.ui(f))},_deactivate:function(e){var f=b.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);f&&this._trigger("deactivate",e,this.ui(f))},_over:function(e){var f=b.ui.ddmanager.current;if(!(!f||(f.currentItem||f.element)[0]==this.element[0]))if(this.options.accept.call(this.element[0],f.currentItem||f.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);this._trigger("over",e,this.ui(f))}},
55
+ _out:function(e){var f=b.ui.ddmanager.current;if(!(!f||(f.currentItem||f.element)[0]==this.element[0]))if(this.options.accept.call(this.element[0],f.currentItem||f.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",e,this.ui(f))}},_drop:function(e,f){var a=f||b.ui.ddmanager.current;if(!a||(a.currentItem||a.element)[0]==this.element[0])return false;var c=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var d=
56
+ b.data(this,"droppable");if(d.options.greedy&&b.ui.intersect(a,b.extend(d,{offset:d.element.offset()}),d.options.tolerance)){c=true;return false}});if(c)return false;if(this.options.accept.call(this.element[0],a.currentItem||a.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",e,this.ui(a));return this.element}return false},ui:function(e){return{draggable:e.currentItem||
57
+ e.element,helper:e.helper,position:e.position,absolutePosition:e.positionAbs,offset:e.positionAbs}}});b.extend(b.ui.droppable,{version:"1.7.3",eventPrefix:"drop",defaults:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"}});b.ui.intersect=function(e,f,a){if(!f.offset)return false;var c=(e.positionAbs||e.position.absolute).left,d=c+e.helperProportions.width,g=(e.positionAbs||e.position.absolute).top,i=g+e.helperProportions.height,h=f.offset.left,
58
+ j=h+f.proportions.width,k=f.offset.top,l=k+f.proportions.height;switch(a){case "fit":return h<c&&d<j&&k<g&&i<l;case "intersect":return h<c+e.helperProportions.width/2&&d-e.helperProportions.width/2<j&&k<g+e.helperProportions.height/2&&i-e.helperProportions.height/2<l;case "pointer":return b.ui.isOver((e.positionAbs||e.position.absolute).top+(e.clickOffset||e.offset.click).top,(e.positionAbs||e.position.absolute).left+(e.clickOffset||e.offset.click).left,k,h,f.proportions.height,f.proportions.width);
59
+ case "touch":return(g>=k&&g<=l||i>=k&&i<=l||g<k&&i>l)&&(c>=h&&c<=j||d>=h&&d<=j||c<h&&d>j);default:return false}};b.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,f){var a=b.ui.ddmanager.droppables[e.options.scope],c=f?f.type:null,d=(e.currentItem||e.element).find(":data(droppable)").andSelf(),g=0;a:for(;g<a.length;g++)if(!(a[g].options.disabled||e&&!a[g].options.accept.call(a[g].element[0],e.currentItem||e.element))){for(var i=0;i<d.length;i++)if(d[i]==a[g].element[0]){a[g].proportions.height=
60
+ 0;continue a}a[g].visible=a[g].element.css("display")!="none";if(a[g].visible){a[g].offset=a[g].element.offset();a[g].proportions={width:a[g].element[0].offsetWidth,height:a[g].element[0].offsetHeight};c=="mousedown"&&a[g]._activate.call(a[g],f)}}},drop:function(e,f){var a=false;b.each(b.ui.ddmanager.droppables[e.options.scope],function(){if(this.options){if(!this.options.disabled&&this.visible&&b.ui.intersect(e,this,this.options.tolerance))a=this._drop.call(this,f);if(!this.options.disabled&&this.visible&&
61
+ this.options.accept.call(this.element[0],e.currentItem||e.element)){this.isout=1;this.isover=0;this._deactivate.call(this,f)}}});return a},drag:function(e,f){e.options.refreshPositions&&b.ui.ddmanager.prepareOffsets(e,f);b.each(b.ui.ddmanager.droppables[e.options.scope],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var a=b.ui.intersect(e,this,this.options.tolerance);if(a=!a&&this.isover==1?"isout":a&&this.isover==0?"isover":null){var c;if(this.options.greedy){var d=this.element.parents(":data(droppable):eq(0)");
62
+ if(d.length){c=b.data(d[0],"droppable");c.greedyChild=a=="isover"?1:0}}if(c&&a=="isover"){c.isover=0;c.isout=1;c._out.call(c,f)}this[a]=1;this[a=="isout"?"isover":"isout"]=0;this[a=="isover"?"_over":"_out"].call(this,f);if(c&&a=="isout"){c.isout=0;c.isover=1;c._over.call(c,f)}}}})}}})(jQuery);
63
+ (function(b){b.widget("ui.resizable",b.extend({},b.ui.mouse,{_init:function(){var a=this,c=this.options;this.element.addClass("ui-resizable");b.extend(this,{_aspectRatio:!!c.aspectRatio,aspectRatio:c.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:c.helper||c.ghost||c.animate?c.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&b.browser.opera&&this.element.css({position:"relative",
64
+ top:"auto",left:"auto"});this.element.wrap(b('<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"),
65
+ 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=
66
+ c.handles||(!b(".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 d=this.handles.split(",");this.handles={};for(var g=0;g<d.length;g++){var i=b.trim(d[g]),h=b('<div class="ui-resizable-handle '+("ui-resizable-"+i)+'"></div>');/sw|se|ne|nw/.test(i)&&
67
+ h.css({zIndex:++c.zIndex});"se"==i&&h.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[i]=".ui-resizable-"+i;this.element.append(h)}}this._renderAxis=function(j){j=j||this.element;for(var k in this.handles){if(this.handles[k].constructor==String)this.handles[k]=b(this.handles[k],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var l=b(this.handles[k],this.element),m=0;m=/sw|ne|nw|se|n|s/.test(k)?l.outerHeight():l.outerWidth();
68
+ l=["padding",/ne|nw|n/.test(k)?"Top":/se|sw|s/.test(k)?"Bottom":/^e$/.test(k)?"Right":"Left"].join("");j.css(l,m);this._proportionallyResize()}b(this.handles[k])}};this._renderAxis(this.element);this._handles=b(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!a.resizing){if(this.className)var j=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);a.axis=j&&j[1]?j[1]:"se"}});if(c.autoHide){this._handles.hide();b(this.element).addClass("ui-resizable-autohide").hover(function(){b(this).removeClass("ui-resizable-autohide");
69
+ a._handles.show()},function(){if(!a.resizing){b(this).addClass("ui-resizable-autohide");a._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var a=function(d){b(d).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){a(this.element);var c=this.element;c.parent().append(this.originalElement.css({position:c.css("position"),width:c.outerWidth(),height:c.outerHeight(),
70
+ top:c.css("top"),left:c.css("left")})).end().remove()}this.originalElement.css("resize",this.originalResizeStyle);a(this.originalElement)},_mouseCapture:function(a){var c=false;for(var d in this.handles)if(b(this.handles[d])[0]==a.target)c=true;return this.options.disabled||!!c},_mouseStart:function(a){var c=this.options,d=this.element.position(),g=this.element;this.resizing=true;this.documentScroll={top:b(document).scrollTop(),left:b(document).scrollLeft()};if(g.is(".ui-draggable")||/absolute/.test(g.css("position")))g.css({position:"absolute",
71
+ top:d.top,left:d.left});b.browser.opera&&/relative/.test(g.css("position"))&&g.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();d=e(this.helper.css("left"));var i=e(this.helper.css("top"));if(c.containment){d+=b(c.containment).scrollLeft()||0;i+=b(c.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:d,top:i};this.size=this._helper?{width:g.outerWidth(),height:g.outerHeight()}:{width:g.width(),height:g.height()};this.originalSize=this._helper?{width:g.outerWidth(),
72
+ height:g.outerHeight()}:{width:g.width(),height:g.height()};this.originalPosition={left:d,top:i};this.sizeDiff={width:g.outerWidth()-g.width(),height:g.outerHeight()-g.height()};this.originalMousePosition={left:a.pageX,top:a.pageY};this.aspectRatio=typeof c.aspectRatio=="number"?c.aspectRatio:this.originalSize.width/this.originalSize.height||1;c=b(".ui-resizable-"+this.axis).css("cursor");b("body").css("cursor",c=="auto"?this.axis+"-resize":c);g.addClass("ui-resizable-resizing");this._propagate("start",
73
+ a);return true},_mouseDrag:function(a){var c=this.helper,d=this.originalMousePosition,g=this._change[this.axis];if(!g)return false;d=g.apply(this,[a,a.pageX-d.left||0,a.pageY-d.top||0]);if(this._aspectRatio||a.shiftKey)d=this._updateRatio(d,a);d=this._respectSize(d,a);this._propagate("resize",a);c.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();
74
+ this._updateCache(d);this._trigger("resize",a,this.ui());return false},_mouseStop:function(a){this.resizing=false;var c=this.options,d=this;if(this._helper){var g=this._proportionallyResizeElements,i=g.length&&/textarea/i.test(g[0].nodeName);g=i&&b.ui.hasScroll(g[0],"left")?0:d.sizeDiff.height;i={width:d.size.width-(i?0:d.sizeDiff.width),height:d.size.height-g};g=parseInt(d.element.css("left"),10)+(d.position.left-d.originalPosition.left)||null;var h=parseInt(d.element.css("top"),10)+(d.position.top-
75
+ d.originalPosition.top)||null;c.animate||this.element.css(b.extend(i,{top:h,left:g}));d.helper.height(d.size.height);d.helper.width(d.size.width);this._helper&&!c.animate&&this._proportionallyResize()}b("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",a);this._helper&&this.helper.remove();return false},_updateCache:function(a){this.offset=this.helper.offset();if(f(a.left))this.position.left=a.left;if(f(a.top))this.position.top=a.top;if(f(a.height))this.size.height=
76
+ a.height;if(f(a.width))this.size.width=a.width},_updateRatio:function(a){var c=this.position,d=this.size,g=this.axis;if(a.height)a.width=d.height*this.aspectRatio;else if(a.width)a.height=d.width/this.aspectRatio;if(g=="sw"){a.left=c.left+(d.width-a.width);a.top=null}if(g=="nw"){a.top=c.top+(d.height-a.height);a.left=c.left+(d.width-a.width)}return a},_respectSize:function(a){var c=this.options,d=this.axis,g=f(a.width)&&c.maxWidth&&c.maxWidth<a.width,i=f(a.height)&&c.maxHeight&&c.maxHeight<a.height,
77
+ h=f(a.width)&&c.minWidth&&c.minWidth>a.width,j=f(a.height)&&c.minHeight&&c.minHeight>a.height;if(h)a.width=c.minWidth;if(j)a.height=c.minHeight;if(g)a.width=c.maxWidth;if(i)a.height=c.maxHeight;var k=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,m=/sw|nw|w/.test(d);d=/nw|ne|n/.test(d);if(h&&m)a.left=k-c.minWidth;if(g&&m)a.left=k-c.maxWidth;if(j&&d)a.top=l-c.minHeight;if(i&&d)a.top=l-c.maxHeight;if((c=!a.width&&!a.height)&&!a.left&&a.top)a.top=null;else if(c&&
78
+ !a.top&&a.left)a.left=null;return a},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var a=this.helper||this.element,c=0;c<this._proportionallyResizeElements.length;c++){var d=this._proportionallyResizeElements[c];if(!this.borderDif){var g=[d.css("borderTopWidth"),d.css("borderRightWidth"),d.css("borderBottomWidth"),d.css("borderLeftWidth")],i=[d.css("paddingTop"),d.css("paddingRight"),d.css("paddingBottom"),d.css("paddingLeft")];this.borderDif=b.map(g,function(h,
79
+ j){h=parseInt(h,10)||0;j=parseInt(i[j],10)||0;return h+j})}b.browser.msie&&(b(a).is(":hidden")||b(a).parents(":hidden").length)||d.css({height:a.height()-this.borderDif[0]-this.borderDif[2]||0,width:a.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var a=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||b('<div style="overflow:hidden;"></div>');var c=b.browser.msie&&b.browser.version<7,d=c?1:0;c=c?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+
80
+ c,height:this.element.outerHeight()+c,position:"absolute",left:this.elementOffset.left-d+"px",top:this.elementOffset.top-d+"px",zIndex:++a.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(a,c){return{width:this.originalSize.width+c}},w:function(a,c){return{left:this.originalPosition.left+c,width:this.originalSize.width-c}},n:function(a,c,d){return{top:this.originalPosition.top+d,height:this.originalSize.height-d}},s:function(a,c,d){return{height:this.originalSize.height+
81
+ d}},se:function(a,c,d){return b.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[a,c,d]))},sw:function(a,c,d){return b.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[a,c,d]))},ne:function(a,c,d){return b.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[a,c,d]))},nw:function(a,c,d){return b.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[a,c,d]))}},_propagate:function(a,c){b.ui.plugin.call(this,a,[c,this.ui()]);
82
+ a!="resize"&&this._trigger(a,c,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}}}));b.extend(b.ui.resizable,{version:"1.7.3",eventPrefix:"resize",defaults:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,cancel:":input,option",containment:false,delay:0,distance:1,
83
+ ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3}});b.ui.plugin.add("resizable","alsoResize",{start:function(){var a=b(this).data("resizable").options;_store=function(c){b(c).each(function(){b(this).data("resizable-alsoresize",{width:parseInt(b(this).width(),10),height:parseInt(b(this).height(),10),left:parseInt(b(this).css("left"),10),top:parseInt(b(this).css("top"),10)})})};if(typeof a.alsoResize=="object"&&!a.alsoResize.parentNode)if(a.alsoResize.length){a.alsoResize=
84
+ a.alsoResize[0];_store(a.alsoResize)}else b.each(a.alsoResize,function(c){_store(c)});else _store(a.alsoResize)},resize:function(){var a=b(this).data("resizable"),c=a.options,d=a.originalSize,g=a.originalPosition,i={height:a.size.height-d.height||0,width:a.size.width-d.width||0,top:a.position.top-g.top||0,left:a.position.left-g.left||0},h=function(j,k){b(j).each(function(){var l=b(this),m=b(this).data("resizable-alsoresize"),q={};b.each((k&&k.length?k:["width","height","top","left"])||["width","height",
85
+ "top","left"],function(o,p){if((o=(m[p]||0)+(i[p]||0))&&o>=0)q[p]=o||null});if(/relative/.test(l.css("position"))&&b.browser.opera){a._revertToRelativePosition=true;l.css({position:"absolute",top:"auto",left:"auto"})}l.css(q)})};typeof c.alsoResize=="object"&&!c.alsoResize.nodeType?b.each(c.alsoResize,function(j,k){h(j,k)}):h(c.alsoResize)},stop:function(){var a=b(this).data("resizable");if(a._revertToRelativePosition&&b.browser.opera){a._revertToRelativePosition=false;el.css({position:"relative"})}b(this).removeData("resizable-alsoresize-start")}});
86
+ b.ui.plugin.add("resizable","animate",{stop:function(a){var c=b(this).data("resizable"),d=c.options,g=c._proportionallyResizeElements,i=g.length&&/textarea/i.test(g[0].nodeName),h=i&&b.ui.hasScroll(g[0],"left")?0:c.sizeDiff.height;i={width:c.size.width-(i?0:c.sizeDiff.width),height:c.size.height-h};h=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null;var j=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;c.element.animate(b.extend(i,j&&
87
+ h?{top:j,left:h}:{}),{duration:d.animateDuration,easing:d.animateEasing,step:function(){var k={width:parseInt(c.element.css("width"),10),height:parseInt(c.element.css("height"),10),top:parseInt(c.element.css("top"),10),left:parseInt(c.element.css("left"),10)};g&&g.length&&b(g[0]).css({width:k.width,height:k.height});c._updateCache(k);c._propagate("resize",a)}})}});b.ui.plugin.add("resizable","containment",{start:function(){var a=b(this).data("resizable"),c=a.element,d=a.options.containment;if(c=d instanceof
88
+ b?d.get(0):/parent/.test(d)?c.parent().get(0):d){a.containerElement=b(c);if(/document/.test(d)||d==document){a.containerOffset={left:0,top:0};a.containerPosition={left:0,top:0};a.parentData={element:b(document),left:0,top:0,width:b(document).width(),height:b(document).height()||document.body.parentNode.scrollHeight}}else{var g=b(c),i=[];b(["Top","Right","Left","Bottom"]).each(function(k,l){i[k]=e(g.css("padding"+l))});a.containerOffset=g.offset();a.containerPosition=g.position();a.containerSize={height:g.innerHeight()-
89
+ i[3],width:g.innerWidth()-i[1]};d=a.containerOffset;var h=a.containerSize.height,j=a.containerSize.width;j=b.ui.hasScroll(c,"left")?c.scrollWidth:j;h=b.ui.hasScroll(c)?c.scrollHeight:h;a.parentData={element:c,left:d.left,top:d.top,width:j,height:h}}}},resize:function(a){var c=b(this).data("resizable"),d=c.options,g=c.containerOffset,i=c.position;a=c._aspectRatio||a.shiftKey;var h={top:0,left:0},j=c.containerElement;if(j[0]!=document&&/static/.test(j.css("position")))h=g;if(i.left<(c._helper?g.left:
90
+ 0)){c.size.width+=c._helper?c.position.left-g.left:c.position.left-h.left;if(a)c.size.height=c.size.width/d.aspectRatio;c.position.left=d.helper?g.left:0}if(i.top<(c._helper?g.top:0)){c.size.height+=c._helper?c.position.top-g.top:c.position.top;if(a)c.size.width=c.size.height*d.aspectRatio;c.position.top=c._helper?g.top:0}c.offset.left=c.parentData.left+c.position.left;c.offset.top=c.parentData.top+c.position.top;d=Math.abs((c._helper?c.offset.left-h.left:c.offset.left-h.left)+c.sizeDiff.width);g=
91
+ Math.abs((c._helper?c.offset.top-h.top:c.offset.top-g.top)+c.sizeDiff.height);i=c.containerElement.get(0)==c.element.parent().get(0);h=/relative|absolute/.test(c.containerElement.css("position"));if(i&&h)d-=c.parentData.left;if(d+c.size.width>=c.parentData.width){c.size.width=c.parentData.width-d;if(a)c.size.height=c.size.width/c.aspectRatio}if(g+c.size.height>=c.parentData.height){c.size.height=c.parentData.height-g;if(a)c.size.width=c.size.height*c.aspectRatio}},stop:function(){var a=b(this).data("resizable"),
92
+ c=a.options,d=a.containerOffset,g=a.containerPosition,i=a.containerElement,h=b(a.helper),j=h.offset(),k=h.outerWidth()-a.sizeDiff.width;h=h.outerHeight()-a.sizeDiff.height;a._helper&&!c.animate&&/relative/.test(i.css("position"))&&b(this).css({left:j.left-g.left-d.left,width:k,height:h});a._helper&&!c.animate&&/static/.test(i.css("position"))&&b(this).css({left:j.left-g.left-d.left,width:k,height:h})}});b.ui.plugin.add("resizable","ghost",{start:function(){var a=b(this).data("resizable"),c=a.options,
93
+ d=a.size;a.ghost=a.originalElement.clone();a.ghost.css({opacity:0.25,display:"block",position:"relative",height:d.height,width:d.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof c.ghost=="string"?c.ghost:"");a.ghost.appendTo(a.helper)},resize:function(){var a=b(this).data("resizable");a.ghost&&a.ghost.css({position:"relative",height:a.size.height,width:a.size.width})},stop:function(){var a=b(this).data("resizable");a.ghost&&a.helper&&a.helper.get(0).removeChild(a.ghost.get(0))}});
94
+ b.ui.plugin.add("resizable","grid",{resize:function(){var a=b(this).data("resizable"),c=a.options,d=a.size,g=a.originalSize,i=a.originalPosition,h=a.axis;c.grid=typeof c.grid=="number"?[c.grid,c.grid]:c.grid;var j=Math.round((d.width-g.width)/(c.grid[0]||1))*(c.grid[0]||1);c=Math.round((d.height-g.height)/(c.grid[1]||1))*(c.grid[1]||1);if(/^(se|s|e)$/.test(h)){a.size.width=g.width+j;a.size.height=g.height+c}else if(/^(ne)$/.test(h)){a.size.width=g.width+j;a.size.height=g.height+c;a.position.top=i.top-
95
+ c}else{if(/^(sw)$/.test(h)){a.size.width=g.width+j;a.size.height=g.height+c}else{a.size.width=g.width+j;a.size.height=g.height+c;a.position.top=i.top-c}a.position.left=i.left-j}}});var e=function(a){return parseInt(a,10)||0},f=function(a){return!isNaN(parseInt(a,10))}})(jQuery);
96
+ (function(b){b.widget("ui.selectable",b.extend({},b.ui.mouse,{_init:function(){var e=this;this.element.addClass("ui-selectable");this.dragged=false;var f;this.refresh=function(){f=b(e.options.filter,e.element[0]);f.each(function(){var a=b(this),c=a.offset();b.data(this,"selectable-item",{element:this,$element:a,left:c.left,top:c.top,right:c.left+a.outerWidth(),bottom:c.top+a.outerHeight(),startselected:false,selected:a.hasClass("ui-selected"),selecting:a.hasClass("ui-selecting"),unselecting:a.hasClass("ui-unselecting")})})};
97
+ this.refresh();this.selectees=f.addClass("ui-selectee");this._mouseInit();this.helper=b(document.createElement("div")).css({border:"1px dotted black"}).addClass("ui-selectable-helper")},destroy:function(){this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy()},_mouseStart:function(e){var f=this;this.opos=[e.pageX,e.pageY];if(!this.options.disabled){var a=this.options;this.selectees=b(a.filter,this.element[0]);this._trigger("start",
98
+ e);b(a.appendTo).append(this.helper);this.helper.css({"z-index":100,position:"absolute",left:e.clientX,top:e.clientY,width:0,height:0});a.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var c=b.data(this,"selectable-item");c.startselected=true;if(!e.metaKey){c.$element.removeClass("ui-selected");c.selected=false;c.$element.addClass("ui-unselecting");c.unselecting=true;f._trigger("unselecting",e,{unselecting:c.element})}});b(e.target).parents().andSelf().each(function(){var c=
99
+ b.data(this,"selectable-item");if(c){c.$element.removeClass("ui-unselecting").addClass("ui-selecting");c.unselecting=false;c.selecting=true;c.selected=true;f._trigger("selecting",e,{selecting:c.element});return false}})}},_mouseDrag:function(e){var f=this;this.dragged=true;if(!this.options.disabled){var a=this.options,c=this.opos[0],d=this.opos[1],g=e.pageX,i=e.pageY;if(c>g){var h=g;g=c;c=h}if(d>i){h=i;i=d;d=h}this.helper.css({left:c,top:d,width:g-c,height:i-d});this.selectees.each(function(){var j=
100
+ b.data(this,"selectable-item");if(!(!j||j.element==f.element[0])){var k=false;if(a.tolerance=="touch")k=!(j.left>g||j.right<c||j.top>i||j.bottom<d);else if(a.tolerance=="fit")k=j.left>c&&j.right<g&&j.top>d&&j.bottom<i;if(k){if(j.selected){j.$element.removeClass("ui-selected");j.selected=false}if(j.unselecting){j.$element.removeClass("ui-unselecting");j.unselecting=false}if(!j.selecting){j.$element.addClass("ui-selecting");j.selecting=true;f._trigger("selecting",e,{selecting:j.element})}}else{if(j.selecting)if(e.metaKey&&
101
+ j.startselected){j.$element.removeClass("ui-selecting");j.selecting=false;j.$element.addClass("ui-selected");j.selected=true}else{j.$element.removeClass("ui-selecting");j.selecting=false;if(j.startselected){j.$element.addClass("ui-unselecting");j.unselecting=true}f._trigger("unselecting",e,{unselecting:j.element})}if(j.selected)if(!e.metaKey&&!j.startselected){j.$element.removeClass("ui-selected");j.selected=false;j.$element.addClass("ui-unselecting");j.unselecting=true;f._trigger("unselecting",e,
102
+ {unselecting:j.element})}}}});return false}},_mouseStop:function(e){var f=this;this.dragged=false;b(".ui-unselecting",this.element[0]).each(function(){var a=b.data(this,"selectable-item");a.$element.removeClass("ui-unselecting");a.unselecting=false;a.startselected=false;f._trigger("unselected",e,{unselected:a.element})});b(".ui-selecting",this.element[0]).each(function(){var a=b.data(this,"selectable-item");a.$element.removeClass("ui-selecting").addClass("ui-selected");a.selecting=false;a.selected=
103
+ true;a.startselected=true;f._trigger("selected",e,{selected:a.element})});this._trigger("stop",e);this.helper.remove();return false}}));b.extend(b.ui.selectable,{version:"1.7.3",defaults:{appendTo:"body",autoRefresh:true,cancel:":input,option",delay:0,distance:0,filter:"*",tolerance:"touch"}})})(jQuery);
104
+ (function(b){b.widget("ui.sortable",b.extend({},b.ui.mouse,{_init:function(){this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData("sortable-item")},
105
+ _mouseCapture:function(e,f){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(e);var a=null,c=this;b(e.target).parents().each(function(){if(b.data(this,"sortable-item")==c){a=b(this);return false}});if(b.data(e.target,"sortable-item")==c)a=b(e.target);if(!a)return false;if(this.options.handle&&!f){var d=false;b(this.options.handle,a).find("*").andSelf().each(function(){if(this==e.target)d=true});if(!d)return false}this.currentItem=
106
+ a;this._removeCurrentsFromItems();return true},_mouseStart:function(e,f,a){f=this.options;var c=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(e);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};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");b.extend(this.offset,
107
+ {click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(e);this.originalPageX=e.pageX;this.originalPageY=e.pageY;f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();f.containment&&this._setContainment();
108
+ if(f.cursor){if(b("body").css("cursor"))this._storedCursor=b("body").css("cursor");b("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",
109
+ e,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!a)for(a=this.containers.length-1;a>=0;a--)this.containers[a]._trigger("activate",e,c._uiHash(this));if(b.ui.ddmanager)b.ui.ddmanager.current=this;b.ui.ddmanager&&!f.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,e);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(e);return true},_mouseDrag:function(e){this.position=this._generatePosition(e);this.positionAbs=this._convertPositionTo("absolute");
110
+ if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var f=this.options,a=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<f.scrollSensitivity)this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+f.scrollSpeed;else if(e.pageY-this.overflowOffset.top<f.scrollSensitivity)this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-f.scrollSpeed;if(this.overflowOffset.left+
111
+ this.scrollParent[0].offsetWidth-e.pageX<f.scrollSensitivity)this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+f.scrollSpeed;else if(e.pageX-this.overflowOffset.left<f.scrollSensitivity)this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-f.scrollSpeed}else{if(e.pageY-b(document).scrollTop()<f.scrollSensitivity)a=b(document).scrollTop(b(document).scrollTop()-f.scrollSpeed);else if(b(window).height()-(e.pageY-b(document).scrollTop())<f.scrollSensitivity)a=b(document).scrollTop(b(document).scrollTop()+
112
+ f.scrollSpeed);if(e.pageX-b(document).scrollLeft()<f.scrollSensitivity)a=b(document).scrollLeft(b(document).scrollLeft()-f.scrollSpeed);else if(b(window).width()-(e.pageX-b(document).scrollLeft())<f.scrollSensitivity)a=b(document).scrollLeft(b(document).scrollLeft()+f.scrollSpeed)}a!==false&&b.ui.ddmanager&&!f.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,e)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+
113
+ "px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(f=this.items.length-1;f>=0;f--){a=this.items[f];var c=a.item[0],d=this._intersectsWithPointer(a);if(d)if(c!=this.currentItem[0]&&this.placeholder[d==1?"next":"prev"]()[0]!=c&&!b.ui.contains(this.placeholder[0],c)&&(this.options.type=="semi-dynamic"?!b.ui.contains(this.element[0],c):true)){this.direction=d==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(a))this._rearrange(e,
114
+ a);else break;this._trigger("change",e,this._uiHash());break}}this._contactContainers(e);b.ui.ddmanager&&b.ui.ddmanager.drag(this,e);this._trigger("sort",e,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(e,f){if(e){b.ui.ddmanager&&!this.options.dropBehaviour&&b.ui.ddmanager.drop(this,e);if(this.options.revert){var a=this;f=a.placeholder.offset();a.reverting=true;b(this.helper).animate({left:f.left-this.offset.parent.left-a.margins.left+(this.offsetParent[0]==
115
+ document.body?0:this.offsetParent[0].scrollLeft),top:f.top-this.offset.parent.top-a.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){a._clear(e)})}else this._clear(e,f);return false}},cancel:function(){var e=this;if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var f=this.containers.length-1;f>=0;f--){this.containers[f]._trigger("deactivate",
116
+ null,e._uiHash(this));if(this.containers[f].containerCache.over){this.containers[f]._trigger("out",null,e._uiHash(this));this.containers[f].containerCache.over=0}}}this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();b.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?b(this.domPosition.prev).after(this.currentItem):
117
+ b(this.domPosition.parent).prepend(this.currentItem);return true},serialize:function(e){var f=this._getItemsAsjQuery(e&&e.connected),a=[];e=e||{};b(f).each(function(){var c=(b(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[-=_](.+)/);if(c)a.push((e.key||c[1]+"[]")+"="+(e.key&&e.expression?c[1]:c[2]))});return a.join("&")},toArray:function(e){var f=this._getItemsAsjQuery(e&&e.connected),a=[];e=e||{};f.each(function(){a.push(b(e.item||this).attr(e.attribute||"id")||"")});return a},
118
+ _intersectsWith:function(e){var f=this.positionAbs.left,a=f+this.helperProportions.width,c=this.positionAbs.top,d=c+this.helperProportions.height,g=e.left,i=g+e.width,h=e.top,j=h+e.height,k=this.offset.click.top,l=this.offset.click.left;k=c+k>h&&c+k<j&&f+l>g&&f+l<i;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?k:g<f+this.helperProportions.width/
119
+ 2&&a-this.helperProportions.width/2<i&&h<c+this.helperProportions.height/2&&d-this.helperProportions.height/2<j},_intersectsWithPointer:function(e){var f=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height);e=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);f=f&&e;e=this._getDragVerticalDirection();var a=this._getDragHorizontalDirection();if(!f)return false;return this.floating?a&&a=="right"||e=="down"?2:1:e&&(e=="down"?2:1)},_intersectsWithSides:function(e){var f=
120
+ b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height);e=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width);var a=this._getDragVerticalDirection(),c=this._getDragHorizontalDirection();return this.floating&&c?c=="right"&&e||c=="left"&&!e:a&&(a=="down"&&f||a=="up"&&!f)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return e!=0&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=
121
+ this.positionAbs.left-this.lastPositionAbs.left;return e!=0&&(e>0?"right":"left")},refresh:function(e){this._refreshItems(e);this.refreshPositions()},_connectWith:function(){var e=this.options;return e.connectWith.constructor==String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(e){var f=[],a=[],c=this._connectWith();if(c&&e)for(e=c.length-1;e>=0;e--)for(var d=b(c[e]),g=d.length-1;g>=0;g--){var i=b.data(d[g],"sortable");if(i&&i!=this&&!i.options.disabled)a.push([b.isFunction(i.options.items)?
122
+ i.options.items.call(i.element):b(i.options.items,i.element).not(".ui-sortable-helper"),i])}a.push([b.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):b(this.options.items,this.element).not(".ui-sortable-helper"),this]);for(e=a.length-1;e>=0;e--)a[e][0].each(function(){f.push(this)});return b(f)},_removeCurrentsFromItems:function(){for(var e=this.currentItem.find(":data(sortable-item)"),f=0;f<this.items.length;f++)for(var a=0;a<
123
+ e.length;a++)e[a]==this.items[f].item[0]&&this.items.splice(f,1)},_refreshItems:function(e){this.items=[];this.containers=[this];var f=this.items,a=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):b(this.options.items,this.element),this]],c=this._connectWith();if(c)for(var d=c.length-1;d>=0;d--)for(var g=b(c[d]),i=g.length-1;i>=0;i--){var h=b.data(g[i],"sortable");if(h&&h!=this&&!h.options.disabled){a.push([b.isFunction(h.options.items)?h.options.items.call(h.element[0],
124
+ e,{item:this.currentItem}):b(h.options.items,h.element),h]);this.containers.push(h)}}for(d=a.length-1;d>=0;d--){e=a[d][1];c=a[d][0];i=0;for(g=c.length;i<g;i++){h=b(c[i]);h.data("sortable-item",e);f.push({item:h,instance:e,width:0,height:0,left:0,top:0})}}},refreshPositions:function(e){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var f=this.items.length-1;f>=0;f--){var a=this.items[f];if(!(a.instance!=this.currentContainer&&this.currentContainer&&a.item[0]!=this.currentItem[0])){var c=
125
+ this.options.toleranceElement?b(this.options.toleranceElement,a.item):a.item;if(!e){a.width=c.outerWidth();a.height=c.outerHeight()}c=c.offset();a.left=c.left;a.top=c.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(f=this.containers.length-1;f>=0;f--){c=this.containers[f].element.offset();this.containers[f].containerCache.left=c.left;this.containers[f].containerCache.top=c.top;this.containers[f].containerCache.width=this.containers[f].element.outerWidth();
126
+ this.containers[f].containerCache.height=this.containers[f].element.outerHeight()}},_createPlaceholder:function(e){var f=e||this,a=f.options;if(!a.placeholder||a.placeholder.constructor==String){var c=a.placeholder;a.placeholder={element:function(){var d=b(document.createElement(f.currentItem[0].nodeName)).addClass(c||f.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!c)d.style.visibility="hidden";return d},update:function(d,g){if(!(c&&!a.forcePlaceholderSize)){g.height()||
127
+ g.height(f.currentItem.innerHeight()-parseInt(f.currentItem.css("paddingTop")||0,10)-parseInt(f.currentItem.css("paddingBottom")||0,10));g.width()||g.width(f.currentItem.innerWidth()-parseInt(f.currentItem.css("paddingLeft")||0,10)-parseInt(f.currentItem.css("paddingRight")||0,10))}}}}f.placeholder=b(a.placeholder.element.call(f.element,f.currentItem));f.currentItem.after(f.placeholder);a.placeholder.update(f,f.placeholder)},_contactContainers:function(e){for(var f=this.containers.length-1;f>=0;f--)if(this._intersectsWith(this.containers[f].containerCache)){if(!this.containers[f].containerCache.over){if(this.currentContainer!=
128
+ this.containers[f]){for(var a=1E4,c=null,d=this.positionAbs[this.containers[f].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(b.ui.contains(this.containers[f].element[0],this.items[g].item[0])){var i=this.items[g][this.containers[f].floating?"left":"top"];if(Math.abs(i-d)<a){a=Math.abs(i-d);c=this.items[g]}}if(!c&&!this.options.dropOnEmpty)continue;this.currentContainer=this.containers[f];c?this._rearrange(e,c,null,true):this._rearrange(e,null,this.containers[f].element,true);this._trigger("change",
129
+ e,this._uiHash());this.containers[f]._trigger("change",e,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[f]._trigger("over",e,this._uiHash(this));this.containers[f].containerCache.over=1}}else if(this.containers[f].containerCache.over){this.containers[f]._trigger("out",e,this._uiHash(this));this.containers[f].containerCache.over=0}},_createHelper:function(e){var f=this.options;e=b.isFunction(f.helper)?b(f.helper.apply(this.element[0],[e,
130
+ this.currentItem])):f.helper=="clone"?this.currentItem.clone():this.currentItem;e.parents("body").length||b(f.appendTo!="parent"?f.appendTo:this.currentItem[0].parentNode)[0].appendChild(e[0]);if(e[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(e[0].style.width==""||f.forceHelperSize)e.width(this.currentItem.width());
131
+ if(e[0].style.height==""||f.forceHelperSize)e.height(this.currentItem.height());return e},_adjustOffsetFromHelper:function(e){if(e.left!=undefined)this.offset.click.left=e.left+this.margins.left;if(e.right!=undefined)this.offset.click.left=this.helperProportions.width-e.right+this.margins.left;if(e.top!=undefined)this.offset.click.top=e.top+this.margins.top;if(e.bottom!=undefined)this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=
132
+ this.helper.offsetParent();var e=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){e.left+=this.scrollParent.scrollLeft();e.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)e={top:0,left:0};return{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),
133
+ 10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.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=
134
+ {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,b(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(e.containment=="document"?document:window).height()||
135
+ document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(e.containment)){var f=b(e.containment)[0];e=b(e.containment).offset();var a=b(f).css("overflow")!="hidden";this.containment=[e.left+(parseInt(b(f).css("borderLeftWidth"),10)||0)+(parseInt(b(f).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(b(f).css("borderTopWidth"),10)||0)+(parseInt(b(f).css("paddingTop"),10)||0)-this.margins.top,e.left+(a?Math.max(f.scrollWidth,
136
+ f.offsetWidth):f.offsetWidth)-(parseInt(b(f).css("borderLeftWidth"),10)||0)-(parseInt(b(f).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(a?Math.max(f.scrollHeight,f.offsetHeight):f.offsetHeight)-(parseInt(b(f).css("borderTopWidth"),10)||0)-(parseInt(b(f).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(e,f){if(!f)f=this.position;e=e=="absolute"?1:-1;var a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=
137
+ document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,c=/(html|body)/i.test(a[0].tagName);return{top:f.top+this.offset.relative.top*e+this.offset.parent.top*e-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():c?0:a.scrollTop())*e),left:f.left+this.offset.relative.left*e+this.offset.parent.left*e-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
138
+ c?0:a.scrollLeft())*e)}},_generatePosition:function(e){var f=this.options,a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,c=/(html|body)/i.test(a[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var d=e.pageX,g=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-
139
+ this.offset.click.left<this.containment[0])d=this.containment[0]+this.offset.click.left;if(e.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(e.pageX-this.offset.click.left>this.containment[2])d=this.containment[2]+this.offset.click.left;if(e.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(f.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/f.grid[1])*f.grid[1];g=this.containment?!(g-this.offset.click.top<
140
+ this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-f.grid[1]:g+f.grid[1]:g;d=this.originalPageX+Math.round((d-this.originalPageX)/f.grid[0])*f.grid[0];d=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-f.grid[0]:d+f.grid[0]:d}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&
141
+ this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():c?0:a.scrollTop()),left:d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():c?0:a.scrollLeft())}},_rearrange:function(e,f,a,c){a?a[0].appendChild(this.placeholder[0]):f.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?f.item[0]:f.item[0].nextSibling);this.counter=
142
+ this.counter?++this.counter:1;var d=this,g=this.counter;window.setTimeout(function(){g==d.counter&&d.refreshPositions(!c)},0)},_clear:function(e,f){this.reverting=false;var a=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var c in this._storedCSS)if(this._storedCSS[c]=="auto"||this._storedCSS[c]=="static")this._storedCSS[c]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();
143
+ this.fromOutside&&!f&&a.push(function(d){this._trigger("receive",d,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)a.push(function(d){this._trigger("update",d,this._uiHash())});if(!b.ui.contains(this.element[0],this.currentItem[0])){f||a.push(function(d){this._trigger("remove",d,this._uiHash())});for(c=this.containers.length-1;c>=0;c--)if(b.ui.contains(this.containers[c].element[0],
144
+ this.currentItem[0])&&!f){a.push(function(d){return function(g){d._trigger("receive",g,this._uiHash(this))}}.call(this,this.containers[c]));a.push(function(d){return function(g){d._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[c]))}}for(c=this.containers.length-1;c>=0;c--){f||a.push(function(d){return function(g){d._trigger("deactivate",g,this._uiHash(this))}}.call(this,this.containers[c]));if(this.containers[c].containerCache.over){a.push(function(d){return function(g){d._trigger("out",
145
+ g,this._uiHash(this))}}.call(this,this.containers[c]));this.containers[c].containerCache.over=0}}this._storedCursor&&b("body").css("cursor",this._storedCursor);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",e,this._uiHash());for(c=0;c<a.length;c++)a[c].call(this,e);this._trigger("stop",e,this._uiHash())}return false}f||
146
+ this._trigger("beforeStop",e,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!f){for(c=0;c<a.length;c++)a[c].call(this,e);this._trigger("stop",e,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){b.widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(e){var f=e||this;return{helper:f.helper,placeholder:f.placeholder||b([]),position:f.position,
147
+ absolutePosition:f.positionAbs,offset:f.positionAbs,item:f.currentItem,sender:e?e.element:null}}}));b.extend(b.ui.sortable,{getter:"serialize toArray",version:"1.7.3",eventPrefix:"sort",defaults:{appendTo:"parent",axis:false,cancel:":input,option",connectWith:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,
148
+ scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3}})})(jQuery);
149
+ (function(b){b.widget("ui.accordion",{_init:function(){var e=this.options,f=this;this.running=0;if(e.collapsible==b.ui.accordion.defaults.collapsible&&e.alwaysOpen!=b.ui.accordion.defaults.alwaysOpen)e.collapsible=!e.alwaysOpen;if(e.navigation){var a=this.element.find("a").filter(e.navigationFilter);if(a.length)if(a.filter(e.header).length)this.active=a;else{this.active=a.parent().parent().prev();a.addClass("ui-accordion-content-active")}}this.element.addClass("ui-accordion ui-widget ui-helper-reset");this.element[0].nodeName==
150
+ "UL"&&this.element.children("li").addClass("ui-accordion-li-fix");this.headers=this.element.find(e.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b(this).removeClass("ui-state-focus")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
151
+ this.active=this._findActive(this.active||e.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");b("<span/>").addClass("ui-icon "+e.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(e.icons.header).toggleClass(e.icons.headerSelected);b.browser.msie&&this.element.find("a").css("zoom","1");this.resize();this.element.attr("role","tablist");
152
+ this.headers.attr("role","tab").bind("keydown",function(c){return f._keydown(c)}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();this.active.length?this.active.attr("aria-expanded","true").attr("tabIndex","0"):this.headers.eq(0).attr("tabIndex","0");b.browser.safari||this.headers.find("a").attr("tabIndex","-1");e.event&&this.headers.bind(e.event+".accordion",function(c){return f._clickHandler.call(f,c,this)})},destroy:function(){var e=
153
+ this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();var f=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");
154
+ if(e.autoHeight||e.fillHeight)f.css("height","")},_setData:function(e,f){if(e=="alwaysOpen"){e="collapsible";f=!f}b.widget.prototype._setData.apply(this,arguments)},_keydown:function(e){var f=b.ui.keyCode;if(!(this.options.disabled||e.altKey||e.ctrlKey)){var a=this.headers.length,c=this.headers.index(e.target),d=false;switch(e.keyCode){case f.RIGHT:case f.DOWN:d=this.headers[(c+1)%a];break;case f.LEFT:case f.UP:d=this.headers[(c-1+a)%a];break;case f.SPACE:case f.ENTER:return this._clickHandler({target:e.target},
155
+ e.target)}if(d){b(e.target).attr("tabIndex","-1");b(d).attr("tabIndex","0");d.focus();return false}return true}},resize:function(){var e=this.options,f;if(e.fillSpace){if(b.browser.msie){var a=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}f=this.element.parent().height();b.browser.msie&&this.element.parent().css("overflow",a);this.headers.each(function(){f-=b(this).outerHeight()});var c=0;this.headers.next().each(function(){c=Math.max(c,b(this).innerHeight()-
156
+ b(this).height())}).height(Math.max(0,f-c)).css("overflow","auto")}else if(e.autoHeight){f=0;this.headers.next().each(function(){f=Math.max(f,b(this).outerHeight())}).height(f)}},activate:function(e){e=this._findActive(e)[0];this._clickHandler({target:e},e)},_findActive:function(e){return e?typeof e=="number"?this.headers.filter(":eq("+e+")"):this.headers.not(this.headers.not(e)):e===false?b([]):this.headers.filter(":eq(0)")},_clickHandler:function(e,f){var a=this.options;if(a.disabled)return false;
157
+ if(!e.target&&a.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(a.icons.headerSelected).addClass(a.icons.header);this.active.next().addClass("ui-accordion-content-active");e=this.active.next();a={options:a,newHeader:b([]),oldHeader:a.active,newContent:b([]),oldContent:e};f=this.active=b([]);this._toggle(f,e,a);return false}var c=b(e.currentTarget||f),d=c[0]==this.active[0];if(this.running||!a.collapsible&&
158
+ d)return false;this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(a.icons.headerSelected).addClass(a.icons.header);this.active.next().addClass("ui-accordion-content-active");if(!d){c.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(a.icons.header).addClass(a.icons.headerSelected);c.next().addClass("ui-accordion-content-active")}f=c.next();e=this.active.next();
159
+ a={options:a,newHeader:d&&a.collapsible?b([]):c,oldHeader:this.active,newContent:d&&a.collapsible?b([]):f.find("> *"),oldContent:e.find("> *")};var g=this.headers.index(this.active[0])>this.headers.index(c[0]);this.active=d?b([]):c;this._toggle(f,e,a,d,g);return false},_toggle:function(e,f,a,c,d){var g=this.options,i=this;this.toShow=e;this.toHide=f;this.data=a;var h=function(){if(i)return i._completed.apply(i,arguments)};this._trigger("changestart",null,this.data);this.running=f.size()===0?e.size():
160
+ f.size();if(g.animated){a={};a=g.collapsible&&c?{toShow:b([]),toHide:f,complete:h,down:d,autoHeight:g.autoHeight||g.fillSpace}:{toShow:e,toHide:f,complete:h,down:d,autoHeight:g.autoHeight||g.fillSpace};if(!g.proxied)g.proxied=g.animated;if(!g.proxiedDuration)g.proxiedDuration=g.duration;g.animated=b.isFunction(g.proxied)?g.proxied(a):g.proxied;g.duration=b.isFunction(g.proxiedDuration)?g.proxiedDuration(a):g.proxiedDuration;c=b.ui.accordion.animations;var j=g.duration,k=g.animated;c[k]||(c[k]=function(l){this.slide(l,
161
+ {easing:k,duration:j||700})});c[k](a)}else{if(g.collapsible&&c)e.toggle();else{f.hide();e.show()}h(true)}f.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();e.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(e){var f=this.options;this.running=e?0:--this.running;if(!this.running){f.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this._trigger("change",null,this.data)}}});b.extend(b.ui.accordion,{version:"1.7.3",defaults:{active:null,
162
+ alwaysOpen:true,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()}},animations:{slide:function(e,f){e=b.extend({easing:"swing",duration:300},e,f);if(e.toHide.size())if(e.toShow.size()){var a=e.toShow.css("overflow"),c,d={},g={},
163
+ i;f=e.toShow;i=f[0].style.width;f.width(parseInt(f.parent().width(),10)-parseInt(f.css("paddingLeft"),10)-parseInt(f.css("paddingRight"),10)-(parseInt(f.css("borderLeftWidth"),10)||0)-(parseInt(f.css("borderRightWidth"),10)||0));b.each(["height","paddingTop","paddingBottom"],function(h,j){g[j]="hide";h=(""+b.css(e.toShow[0],j)).match(/^([\d+-.]+)(.*)$/);d[j]={value:h[1],unit:h[2]||"px"}});e.toShow.css({height:0,overflow:"hidden"}).show();e.toHide.filter(":hidden").each(e.complete).end().filter(":visible").animate(g,
164
+ {step:function(h,j){if(j.prop=="height")c=(j.now-j.start)/(j.end-j.start);e.toShow[0].style[j.prop]=c*d[j.prop].value+d[j.prop].unit},duration:e.duration,easing:e.easing,complete:function(){e.autoHeight||e.toShow.css("height","");e.toShow.css("width",i);e.toShow.css({overflow:a});e.complete()}})}else e.toHide.animate({height:"hide"},e);else e.toShow.animate({height:"show"},e)},bounceslide:function(e){this.slide(e,{easing:e.down?"easeOutBounce":"swing",duration:e.down?1E3:200})},easeslide:function(e){this.slide(e,
165
+ {easing:"easeinout",duration:700})}}})})(jQuery);
166
+ (function(b){var e={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"};b.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var f=this,a=this.options,c=a.title||this.originalTitle||"&nbsp;",d=b.ui.dialog.getTitleId(this.element),g=(this.uiDialog=
167
+ b("<div/>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+a.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:a.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(j){a.closeOnEscape&&j.keyCode&&j.keyCode==b.ui.keyCode.ESCAPE&&f.close(j)}).attr({role:"dialog","aria-labelledby":d}).mousedown(function(j){f.moveToTop(false,j)});this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);
168
+ var i=(this.uiDialogTitlebar=b("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g),h=b('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){h.addClass("ui-state-hover")},function(){h.removeClass("ui-state-hover")}).focus(function(){h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-focus")}).mousedown(function(j){j.stopPropagation()}).click(function(j){f.close(j);return false}).appendTo(i);
169
+ (this.uiDialogTitlebarCloseText=b("<span/>")).addClass("ui-icon ui-icon-closethick").text(a.closeText).appendTo(h);b("<span/>").addClass("ui-dialog-title").attr("id",d).html(c).prependTo(i);i.find("*").add(i).disableSelection();a.draggable&&b.fn.draggable&&this._makeDraggable();a.resizable&&b.fn.resizable&&this._makeResizable();this._createButtons(a.buttons);this._isOpen=false;a.bgiframe&&b.fn.bgiframe&&g.bgiframe();a.autoOpen&&this.open()},destroy:function(){this.overlay&&this.overlay.destroy();
170
+ this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle)},close:function(f){var a=this;if(false!==a._trigger("beforeclose",f)){a.overlay&&a.overlay.destroy();a.uiDialog.unbind("keypress.ui-dialog");a.options.hide?a.uiDialog.hide(a.options.hide,function(){a._trigger("close",f)}):a.uiDialog.hide()&&a._trigger("close",f);b.ui.dialog.overlay.resize();
171
+ a._isOpen=false;if(a.options.modal){var c=0;b(".ui-dialog").each(function(){if(this!=a.uiDialog[0])c=Math.max(c,b(this).css("z-index"))});b.ui.dialog.maxZ=c}}},isOpen:function(){return this._isOpen},moveToTop:function(f,a){if(this.options.modal&&!f||!this.options.stack&&!this.options.modal)return this._trigger("focus",a);if(this.options.zIndex>b.ui.dialog.maxZ)b.ui.dialog.maxZ=this.options.zIndex;this.overlay&&this.overlay.$el.css("z-index",b.ui.dialog.overlay.maxZ=++b.ui.dialog.maxZ);f={scrollTop:this.element.attr("scrollTop"),
172
+ scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++b.ui.dialog.maxZ);this.element.attr(f);this._trigger("focus",a)},open:function(){if(!this._isOpen){var f=this.options,a=this.uiDialog;this.overlay=f.modal?new b.ui.dialog.overlay(this):null;a.next().length&&a.appendTo("body");this._size();this._position(f.position);a.show(f.show);this.moveToTop(true);f.modal&&a.bind("keypress.ui-dialog",function(c){if(c.keyCode==b.ui.keyCode.TAB){var d=b(":tabbable",this),g=d.filter(":first")[0],
173
+ i=d.filter(":last")[0];if(c.target==i&&!c.shiftKey)setTimeout(function(){g.focus()},1);else c.target==g&&c.shiftKey&&setTimeout(function(){i.focus()},1)}});b([]).add(a.find(".ui-dialog-content :tabbable:first")).add(a.find(".ui-dialog-buttonpane :tabbable:first")).add(a).filter(":first").focus();this._trigger("open");this._isOpen=true}},_createButtons:function(f){var a=this,c=false,d=b("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiDialog.find(".ui-dialog-buttonpane").remove();
174
+ typeof f=="object"&&f!==null&&b.each(f,function(){return!(c=true)});if(c){b.each(f,function(g,i){b('<button type="button"></button>').addClass("ui-state-default ui-corner-all").text(g).click(function(){i.apply(a.element[0],arguments)}).hover(function(){b(this).addClass("ui-state-hover")},function(){b(this).removeClass("ui-state-hover")}).focus(function(){b(this).addClass("ui-state-focus")}).blur(function(){b(this).removeClass("ui-state-focus")}).appendTo(d)});d.appendTo(this.uiDialog)}},_makeDraggable:function(){var f=
175
+ this,a=this.options,c;this.uiDialog.draggable({cancel:".ui-dialog-content",handle:".ui-dialog-titlebar",containment:"document",start:function(){c=a.height;b(this).height(b(this).height()).addClass("ui-dialog-dragging");a.dragStart&&a.dragStart.apply(f.element[0],arguments)},drag:function(){a.drag&&a.drag.apply(f.element[0],arguments)},stop:function(){b(this).removeClass("ui-dialog-dragging").height(c);a.dragStop&&a.dragStop.apply(f.element[0],arguments);b.ui.dialog.overlay.resize()}})},_makeResizable:function(f){f=
176
+ f===undefined?this.options.resizable:f;var a=this,c=this.options;this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,maxWidth:c.maxWidth,maxHeight:c.maxHeight,minWidth:c.minWidth,minHeight:c.minHeight,start:function(){b(this).addClass("ui-dialog-resizing");c.resizeStart&&c.resizeStart.apply(a.element[0],arguments)},resize:function(){c.resize&&c.resize.apply(a.element[0],arguments)},handles:typeof f=="string"?f:"n,e,s,w,se,sw,ne,nw",stop:function(){b(this).removeClass("ui-dialog-resizing");
177
+ c.height=b(this).height();c.width=b(this).width();c.resizeStop&&c.resizeStop.apply(a.element[0],arguments);b.ui.dialog.overlay.resize()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_position:function(f){var a=b(window),c=b(document),d=c.scrollTop();c=c.scrollLeft();var g=d;if(b.inArray(f,["center","top","right","bottom","left"])>=0)f=[f=="right"||f=="left"?f:"center",f=="top"||f=="bottom"?f:"middle"];if(f.constructor!=Array)f=["center","middle"];if(f[0].constructor==Number)c+=
178
+ f[0];else switch(f[0]){case "left":c+=0;break;case "right":c+=a.width()-this.uiDialog.outerWidth();break;default:case "center":c+=(a.width()-this.uiDialog.outerWidth())/2}if(f[1].constructor==Number)d+=f[1];else switch(f[1]){case "top":d+=0;break;case "bottom":d+=a.height()-this.uiDialog.outerHeight();break;default:case "middle":d+=(a.height()-this.uiDialog.outerHeight())/2}d=Math.max(d,g);this.uiDialog.css({top:d,left:c})},_setData:function(f,a){e[f]&&this.uiDialog.data(e[f],a);switch(f){case "buttons":this._createButtons(a);
179
+ break;case "closeText":this.uiDialogTitlebarCloseText.text(a);break;case "dialogClass":this.uiDialog.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+a);break;case "draggable":a?this._makeDraggable():this.uiDialog.draggable("destroy");break;case "height":this.uiDialog.height(a);break;case "position":this._position(a);break;case "resizable":var c=this.uiDialog,d=this.uiDialog.is(":data(resizable)");d&&!a&&c.resizable("destroy");d&&typeof a=="string"&&
180
+ c.resizable("option","handles",a);d||this._makeResizable(a);break;case "title":b(".ui-dialog-title",this.uiDialogTitlebar).html(a||"&nbsp;");break;case "width":this.uiDialog.width(a);break}b.widget.prototype._setData.apply(this,arguments)},_size:function(){var f=this.options;this.element.css({height:0,minHeight:0,width:"auto"});var a=this.uiDialog.css({height:"auto",width:f.width}).height();this.element.css({minHeight:Math.max(f.minHeight-a,0),height:f.height=="auto"?"auto":Math.max(f.height-a,0)})}});
181
+ b.extend(b.ui.dialog,{version:"1.7.3",defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},getter:"isOpen",uuid:0,maxZ:0,getTitleId:function(f){return"ui-dialog-title-"+(f.attr("id")||++this.uuid)},overlay:function(f){this.$el=b.ui.dialog.overlay.create(f)}});
182
+ b.extend(b.ui.dialog.overlay,{instances:[],maxZ:0,events:b.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(f){return f+".dialog-overlay"}).join(" "),create:function(f){if(this.instances.length===0){setTimeout(function(){b.ui.dialog.overlay.instances.length&&b(document).bind(b.ui.dialog.overlay.events,function(c){return(b(c.target).parents(".ui-dialog").css("zIndex")||0)>b.ui.dialog.overlay.maxZ})},1);b(document).bind("keydown.dialog-overlay",function(c){f.options.closeOnEscape&&
183
+ c.keyCode&&c.keyCode==b.ui.keyCode.ESCAPE&&f.close(c)});b(window).bind("resize.dialog-overlay",b.ui.dialog.overlay.resize)}var a=b("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});f.options.bgiframe&&b.fn.bgiframe&&a.bgiframe();this.instances.push(a);return a},destroy:function(f){this.instances.splice(b.inArray(this.instances,f),1);this.instances.length===0&&b([document,window]).unbind(".dialog-overlay");f.remove();var a=0;b.each(this.instances,
184
+ function(){a=Math.max(a,this.css("z-index"))});this.maxZ=a},height:function(){if(b.browser.msie&&b.browser.version<7){var f=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),a=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return f<a?b(window).height()+"px":f+"px"}else return b(document).height()+"px"},width:function(){if(b.browser.msie&&b.browser.version<7){var f=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),a=Math.max(document.documentElement.offsetWidth,
185
+ document.body.offsetWidth);return f<a?b(window).width()+"px":f+"px"}else return b(document).width()+"px"},resize:function(){var f=b([]);b.each(b.ui.dialog.overlay.instances,function(){f=f.add(this)});f.css({width:0,height:0}).css({width:b.ui.dialog.overlay.width(),height:b.ui.dialog.overlay.height()})}});b.extend(b.ui.dialog.overlay.prototype,{destroy:function(){b.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
186
+ (function(b){b.widget("ui.slider",b.extend({},b.ui.mouse,{_init:function(){var e=this,f=this.options;this._keySliding=false;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");this.range=b([]);if(f.range){if(f.range===true){this.range=b("<div></div>");if(!f.values)f.values=[this._valueMin(),this._valueMin()];if(f.values.length&&f.values.length!=2)f.values=[f.values[0],f.values[0]]}else this.range=
187
+ b("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(f.range=="min"||f.range=="max")this.range.addClass("ui-slider-range-"+f.range);this.range.addClass("ui-widget-header")}b(".ui-slider-handle",this.element).length==0&&b('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");if(f.values&&f.values.length)for(;b(".ui-slider-handle",this.element).length<f.values.length;)b('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");this.handles=
188
+ b(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(a){a.preventDefault()}).hover(function(){f.disabled||b(this).addClass("ui-state-hover")},function(){b(this).removeClass("ui-state-hover")}).focus(function(){if(f.disabled)b(this).blur();else{b(".ui-slider .ui-state-focus").removeClass("ui-state-focus");b(this).addClass("ui-state-focus")}}).blur(function(){b(this).removeClass("ui-state-focus")});
189
+ this.handles.each(function(a){b(this).data("index.ui-slider-handle",a)});this.handles.keydown(function(a){var c=true,d=b(this).data("index.ui-slider-handle");if(!e.options.disabled){switch(a.keyCode){case b.ui.keyCode.HOME:case b.ui.keyCode.END:case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:c=false;if(!e._keySliding){e._keySliding=true;b(this).addClass("ui-state-active");e._start(a,d)}break}var g,i,h=e._step();g=e.options.values&&e.options.values.length?
190
+ (i=e.values(d)):(i=e.value());switch(a.keyCode){case b.ui.keyCode.HOME:i=e._valueMin();break;case b.ui.keyCode.END:i=e._valueMax();break;case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:if(g==e._valueMax())return;i=g+h;break;case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(g==e._valueMin())return;i=g-h;break}e._slide(a,d,i);return c}}).keyup(function(a){var c=b(this).data("index.ui-slider-handle");if(e._keySliding){e._stop(a,c);e._change(a,c);e._keySliding=false;b(this).removeClass("ui-state-active")}});
191
+ this._refreshValue()},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()},_mouseCapture:function(e){var f=this.options;if(f.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var a={x:e.pageX,y:e.pageY},
192
+ c=this._normValueFromMouse(a),d=this._valueMax()-this._valueMin()+1,g,i=this,h;this.handles.each(function(j){var k=Math.abs(c-i.values(j));if(d>k){d=k;g=b(this);h=j}});if(f.range==true&&this.values(1)==f.min)g=b(this.handles[++h]);this._start(e,h);i._handleIndex=h;g.addClass("ui-state-active").focus();f=g.offset();this._clickOffset=!b(e.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:e.pageX-f.left-g.width()/2,top:e.pageY-f.top-g.height()/2-(parseInt(g.css("borderTopWidth"),
193
+ 10)||0)-(parseInt(g.css("borderBottomWidth"),10)||0)+(parseInt(g.css("marginTop"),10)||0)};c=this._normValueFromMouse(a);this._slide(e,h,c);return true},_mouseStart:function(){return true},_mouseDrag:function(e){var f=this._normValueFromMouse({x:e.pageX,y:e.pageY});this._slide(e,this._handleIndex,f);return false},_mouseStop:function(e){this.handles.removeClass("ui-state-active");this._stop(e,this._handleIndex);this._change(e,this._handleIndex);this._clickOffset=this._handleIndex=null;return false},
194
+ _detectOrientation:function(){this.orientation=this.options.orientation=="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(e){var f;if("horizontal"==this.orientation){f=this.elementSize.width;e=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{f=this.elementSize.height;e=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}f=e/f;if(f>1)f=1;if(f<0)f=0;if("vertical"==this.orientation)f=1-f;e=this._valueMax()-this._valueMin();e=f*e;f=e%this.options.step;
195
+ e=this._valueMin()+e-f;if(f>this.options.step/2)e+=this.options.step;return parseFloat(e.toFixed(5))},_start:function(e,f){var a={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(f);a.values=this.values()}this._trigger("start",e,a)},_slide:function(e,f,a){if(this.options.values&&this.options.values.length){var c=this.values(f?0:1);if(this.options.values.length==2&&this.options.range===true&&(f==0&&a>c||f==1&&a<c))a=c;if(a!=this.values(f)){c=
196
+ this.values();c[f]=a;c=this._trigger("slide",e,{handle:this.handles[f],value:a,values:c});this.values(f?0:1);c!==false&&this.values(f,a,e.type=="mousedown"&&this.options.animate,true)}}else if(a!=this.value()){c=this._trigger("slide",e,{handle:this.handles[f],value:a});c!==false&&this._setData("value",a,e.type=="mousedown"&&this.options.animate)}},_stop:function(e,f){var a={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(f);a.values=
197
+ this.values()}this._trigger("stop",e,a)},_change:function(e,f){var a={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(f);a.values=this.values()}this._trigger("change",e,a)},value:function(e){if(arguments.length){this._setData("value",e);this._change(null,0)}return this._value()},values:function(e,f,a,c){if(arguments.length>1){this.options.values[e]=f;this._refreshValue(a);c||this._change(null,e)}return arguments.length?this.options.values&&
198
+ this.options.values.length?this._values(e):this.value():this._values()},_setData:function(e,f,a){b.widget.prototype._setData.apply(this,arguments);switch(e){case "disabled":if(f){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled")}else this.handles.removeAttr("disabled");case "orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);
199
+ this._refreshValue(a);break;case "value":this._refreshValue(a);break}},_step:function(){return this.options.step},_value:function(){var e=this.options.value;if(e<this._valueMin())e=this._valueMin();if(e>this._valueMax())e=this._valueMax();return e},_values:function(e){if(arguments.length){var f=this.options.values[e];if(f<this._valueMin())f=this._valueMin();if(f>this._valueMax())f=this._valueMax();return f}else return this.options.values},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},
200
+ _refreshValue:function(e){var f=this.options.range,a=this.options,c=this;if(this.options.values&&this.options.values.length)this.handles.each(function(h){var j=(c.values(h)-c._valueMin())/(c._valueMax()-c._valueMin())*100,k={};k[c.orientation=="horizontal"?"left":"bottom"]=j+"%";b(this).stop(1,1)[e?"animate":"css"](k,a.animate);if(c.options.range===true)if(c.orientation=="horizontal"){h==0&&c.range.stop(1,1)[e?"animate":"css"]({left:j+"%"},a.animate);h==1&&c.range[e?"animate":"css"]({width:j-lastValPercent+
201
+ "%"},{queue:false,duration:a.animate})}else{h==0&&c.range.stop(1,1)[e?"animate":"css"]({bottom:j+"%"},a.animate);h==1&&c.range[e?"animate":"css"]({height:j-lastValPercent+"%"},{queue:false,duration:a.animate})}lastValPercent=j});else{var d=this.value(),g=this._valueMin(),i=this._valueMax();d=i!=g?(d-g)/(i-g)*100:0;g={};g[c.orientation=="horizontal"?"left":"bottom"]=d+"%";this.handle.stop(1,1)[e?"animate":"css"](g,a.animate);f=="min"&&this.orientation=="horizontal"&&this.range.stop(1,1)[e?"animate":
202
+ "css"]({width:d+"%"},a.animate);f=="max"&&this.orientation=="horizontal"&&this.range[e?"animate":"css"]({width:100-d+"%"},{queue:false,duration:a.animate});f=="min"&&this.orientation=="vertical"&&this.range.stop(1,1)[e?"animate":"css"]({height:d+"%"},a.animate);f=="max"&&this.orientation=="vertical"&&this.range[e?"animate":"css"]({height:100-d+"%"},{queue:false,duration:a.animate})}}}));b.extend(b.ui.slider,{getter:"value values",version:"1.7.3",eventPrefix:"slide",defaults:{animate:false,delay:0,
203
+ distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null}})})(jQuery);
204
+ (function(b){var e=0,f=0;b.widget("ui.tabs",{_init:function(){if(this.options.deselectable!==undefined)this.options.collapsible=this.options.deselectable;this._tabify(true)},_setData:function(a,c){if(a=="selected")this.options.collapsible&&c==this.options.selected||this.select(c);else{this.options[a]=c;if(a=="deselectable")this.options.collapsible=c;this._tabify()}},_tabId:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+ ++e},_sanitizeSelector:function(a){return a.replace(/:/g,
205
+ "\\:")},_cookie:function(){var a=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++f);return b.cookie.apply(null,[a].concat(b.makeArray(arguments)))},_ui:function(a,c){return{tab:a,panel:c,index:this.anchors.index(a)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var a=b(this);a.html(a.data("label.tabs")).removeData("label.tabs")})},_tabify:function(a){function c(p,n){p.css({display:""});
206
+ b.browser.msie&&n.opacity&&p[0].style.removeAttribute("filter")}this.list=this.element.children("ul:first");this.lis=b("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return b("a",this)[0]});this.panels=b([]);var d=this,g=this.options,i=/^#.+/;this.anchors.each(function(p,n){var r=b(n).attr("href"),s=r.split("#")[0],u;if(s&&(s===location.toString().split("#")[0]||(u=b("base")[0])&&s===u.href)){r=n.hash;n.href=r}if(i.test(r))d.panels=d.panels.add(d._sanitizeSelector(r));else if(r!=
207
+ "#"){b.data(n,"href.tabs",r);b.data(n,"load.tabs",r.replace(/#.*$/,""));r=d._tabId(n);n.href="#"+r;n=b("#"+r);if(!n.length){n=b(g.panelTemplate).attr("id",r).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(d.panels[p-1]||d.list);n.data("destroy.tabs",true)}d.panels=d.panels.add(n)}else g.disabled.push(p)});if(a){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");
208
+ this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(g.selected===undefined){location.hash&&this.anchors.each(function(p,n){if(n.hash==location.hash){g.selected=p;return false}});if(typeof g.selected!="number"&&g.cookie)g.selected=parseInt(d._cookie(),10);if(typeof g.selected!="number"&&this.lis.filter(".ui-tabs-selected").length)g.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));g.selected=g.selected||0}else if(g.selected===
209
+ null)g.selected=-1;g.selected=g.selected>=0&&this.anchors[g.selected]||g.selected<0?g.selected:0;g.disabled=b.unique(g.disabled.concat(b.map(this.lis.filter(".ui-state-disabled"),function(p){return d.lis.index(p)}))).sort();b.inArray(g.selected,g.disabled)!=-1&&g.disabled.splice(b.inArray(g.selected,g.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(g.selected>=0&&this.anchors.length){this.panels.eq(g.selected).removeClass("ui-tabs-hide");
210
+ this.lis.eq(g.selected).addClass("ui-tabs-selected ui-state-active");d.element.queue("tabs",function(){d._trigger("show",null,d._ui(d.anchors[g.selected],d.panels[g.selected]))});this.load(g.selected)}b(window).bind("unload",function(){d.lis.add(d.anchors).unbind(".tabs");d.lis=d.anchors=d.panels=null})}else g.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));this.element[g.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");g.cookie&&this._cookie(g.selected,g.cookie);a=0;for(var h;h=
211
+ this.lis[a];a++)b(h)[b.inArray(a,g.disabled)!=-1&&!b(h).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");g.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(g.event!="mouseover"){var j=function(p,n){n.is(":not(.ui-state-disabled)")&&n.addClass("ui-state-"+p)},k=function(p,n){n.removeClass("ui-state-"+p)};this.lis.bind("mouseover.tabs",function(){j("hover",b(this))});this.lis.bind("mouseout.tabs",function(){k("hover",b(this))});
212
+ this.anchors.bind("focus.tabs",function(){j("focus",b(this).closest("li"))});this.anchors.bind("blur.tabs",function(){k("focus",b(this).closest("li"))})}var l,m;if(g.fx)if(b.isArray(g.fx)){l=g.fx[0];m=g.fx[1]}else l=m=g.fx;var q=m?function(p,n){b(p).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");n.hide().removeClass("ui-tabs-hide").animate(m,m.duration||"normal",function(){c(n,m);d._trigger("show",null,d._ui(p,n[0]))})}:function(p,n){b(p).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");
213
+ n.removeClass("ui-tabs-hide");d._trigger("show",null,d._ui(p,n[0]))},o=l?function(p,n){n.animate(l,l.duration||"normal",function(){d.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");n.addClass("ui-tabs-hide");c(n,l);d.element.dequeue("tabs")})}:function(p,n){d.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");n.addClass("ui-tabs-hide");d.element.dequeue("tabs")};this.anchors.bind(g.event+".tabs",function(){var p=this,n=b(this).closest("li"),
214
+ r=d.panels.filter(":not(.ui-tabs-hide)"),s=b(d._sanitizeSelector(this.hash));if(n.hasClass("ui-tabs-selected")&&!g.collapsible||n.hasClass("ui-state-disabled")||n.hasClass("ui-state-processing")||d._trigger("select",null,d._ui(this,s[0]))===false){this.blur();return false}g.selected=d.anchors.index(this);d.abort();if(g.collapsible)if(n.hasClass("ui-tabs-selected")){g.selected=-1;g.cookie&&d._cookie(g.selected,g.cookie);d.element.queue("tabs",function(){o(p,r)}).dequeue("tabs");this.blur();return false}else if(!r.length){g.cookie&&
215
+ d._cookie(g.selected,g.cookie);d.element.queue("tabs",function(){q(p,s)});d.load(d.anchors.index(this));this.blur();return false}g.cookie&&d._cookie(g.selected,g.cookie);if(s.length){r.length&&d.element.queue("tabs",function(){o(p,r)});d.element.queue("tabs",function(){q(p,s)});d.load(d.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";b.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},destroy:function(){var a=this.options;this.abort();
216
+ 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 c=b.data(this,"href.tabs");if(c)this.href=c;var d=b(this).unbind(".tabs");b.each(["href","load","cache"],function(g,i){d.removeData(i+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){b.data(this,"destroy.tabs")?
217
+ b(this).remove():b(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")});a.cookie&&this._cookie(null,a.cookie)},add:function(a,c,d){if(d===undefined)d=this.anchors.length;var g=this,i=this.options;c=b(i.tabTemplate.replace(/#\{href\}/g,a).replace(/#\{label\}/g,c));a=!a.indexOf("#")?a.replace("#",""):this._tabId(b("a",c)[0]);c.addClass("ui-state-default ui-corner-top").data("destroy.tabs",
218
+ true);var h=b("#"+a);h.length||(h=b(i.panelTemplate).attr("id",a).data("destroy.tabs",true));h.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(d>=this.lis.length){c.appendTo(this.list);h.appendTo(this.list[0].parentNode)}else{c.insertBefore(this.lis[d]);h.insertBefore(this.panels[d])}i.disabled=b.map(i.disabled,function(j){return j>=d?++j:j});this._tabify();if(this.anchors.length==1){c.addClass("ui-tabs-selected ui-state-active");h.removeClass("ui-tabs-hide");this.element.queue("tabs",
219
+ function(){g._trigger("show",null,g._ui(g.anchors[0],g.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[d],this.panels[d]))},remove:function(a){var c=this.options,d=this.lis.eq(a).remove(),g=this.panels.eq(a).remove();if(d.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(a+(a+1<this.anchors.length?1:-1));c.disabled=b.map(b.grep(c.disabled,function(i){return i!=a}),function(i){return i>=a?--i:i});this._tabify();this._trigger("remove",null,this._ui(d.find("a")[0],
220
+ g[0]))},enable:function(a){var c=this.options;if(b.inArray(a,c.disabled)!=-1){this.lis.eq(a).removeClass("ui-state-disabled");c.disabled=b.grep(c.disabled,function(d){return d!=a});this._trigger("enable",null,this._ui(this.anchors[a],this.panels[a]))}},disable:function(a){var c=this.options;if(a!=c.selected){this.lis.eq(a).addClass("ui-state-disabled");c.disabled.push(a);c.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[a],this.panels[a]))}},select:function(a){if(typeof a=="string")a=
221
+ this.anchors.index(this.anchors.filter("[href$="+a+"]"));else if(a===null)a=-1;if(a==-1&&this.options.collapsible)a=this.options.selected;this.anchors.eq(a).trigger(this.options.event+".tabs")},load:function(a){var c=this,d=this.options,g=this.anchors.eq(a)[0],i=b.data(g,"load.tabs");this.abort();if(!i||this.element.queue("tabs").length!==0&&b.data(g,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(a).addClass("ui-state-processing");if(d.spinner){var h=b("span",g);h.data("label.tabs",h.html()).html(d.spinner)}this.xhr=
222
+ b.ajax(b.extend({},d.ajaxOptions,{url:i,success:function(j,k){b(c._sanitizeSelector(g.hash)).html(j);c._cleanup();d.cache&&b.data(g,"cache.tabs",true);c._trigger("load",null,c._ui(c.anchors[a],c.panels[a]));try{d.ajaxOptions.success(j,k)}catch(l){}c.element.dequeue("tabs")}}))}},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup()},url:function(a,c){this.anchors.eq(a).removeData("cache.tabs").data("load.tabs",c)},length:function(){return this.anchors.length}});
223
+ b.extend(b.ui.tabs,{version:"1.7.3",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:"click",fx:null,idPrefix:"ui-tabs-",panelTemplate:"<div></div>",spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'}});b.extend(b.ui.tabs.prototype,{rotation:null,rotate:function(a,c){var d=this,g=this.options,i=d._rotate||(d._rotate=function(h){clearTimeout(d.rotation);d.rotation=setTimeout(function(){var j=g.selected;
224
+ d.select(++j<d.anchors.length?j:0)},a);h&&h.stopPropagation()});c=d._unrotate||(d._unrotate=!c?function(h){h.clientX&&d.rotate(null)}:function(){t=g.selected;i()});if(a){this.element.bind("tabsshow",i);this.anchors.bind(g.event+".tabs",c);i()}else{clearTimeout(d.rotation);this.element.unbind("tabsshow",i);this.anchors.unbind(g.event+".tabs",c);delete this._rotate;delete this._unrotate}}})})(jQuery);
225
+ (function(b){function e(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=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=
226
+ "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",
227
+ "Mo","Tu","We","Th","Fr","Sa"],dateFormat:"mm/dd/yy",firstDay:0,isRTL:false};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,showMonthAfterYear:false,yearRange:"-10:+10",showOtherMonths:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"normal",beforeShowDay:null,
228
+ beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false};b.extend(this._defaults,this.regional[""]);this.dpDiv=b('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}function f(a,c){b.extend(a,c);for(var d in c)if(c[d]==null||c[d]==undefined)a[d]=c[d];return a}
229
+ b.extend(b.ui,{datepicker:{version:"1.7.3"}});b.extend(e.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},setDefaults:function(a){f(this._defaults,a||{});return this},_attachDatepicker:function(a,c){var d=null;for(var g in this._defaults){var i=a.getAttribute("date:"+g);if(i){d=d||{};try{d[g]=eval(i)}catch(h){d[g]=i}}}g=a.nodeName.toLowerCase();i=g=="div"||g=="span";if(!a.id)a.id="dp"+ ++this.uuid;var j=this._newInst(b(a),i);j.settings=b.extend({},
230
+ c||{},d||{});if(g=="input")this._connectDatepicker(a,j);else i&&this._inlineDatepicker(a,j)},_newInst:function(a,c){return{id:a[0].id.replace(/([:\[\]\.])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:c,dpDiv:!c?this.dpDiv:b('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},_connectDatepicker:function(a,c){var d=b(a);c.append=b([]);c.trigger=b([]);if(!d.hasClass(this.markerClassName)){var g=
231
+ this._get(c,"appendText"),i=this._get(c,"isRTL");if(g){c.append=b('<span class="'+this._appendClass+'">'+g+"</span>");d[i?"before":"after"](c.append)}g=this._get(c,"showOn");if(g=="focus"||g=="both")d.focus(this._showDatepicker);if(g=="button"||g=="both"){g=this._get(c,"buttonText");var h=this._get(c,"buttonImage");c.trigger=b(this._get(c,"buttonImageOnly")?b("<img/>").addClass(this._triggerClass).attr({src:h,alt:g,title:g}):b('<button type="button"></button>').addClass(this._triggerClass).html(h==
232
+ ""?g:b("<img/>").attr({src:h,alt:g,title:g})));d[i?"before":"after"](c.trigger);c.trigger.click(function(){b.datepicker._datepickerShowing&&b.datepicker._lastInput==a?b.datepicker._hideDatepicker():b.datepicker._showDatepicker(a);return false})}d.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(j,k,l){c.settings[k]=l}).bind("getData.datepicker",function(j,k){return this._get(c,k)});b.data(a,"datepicker",c)}},_inlineDatepicker:function(a,
233
+ c){var d=b(a);if(!d.hasClass(this.markerClassName)){d.addClass(this.markerClassName).append(c.dpDiv).bind("setData.datepicker",function(g,i,h){c.settings[i]=h}).bind("getData.datepicker",function(g,i){return this._get(c,i)});b.data(a,"datepicker",c);this._setDate(c,this._getDefaultDate(c));this._updateDatepicker(c);this._updateAlternate(c)}},_dialogDatepicker:function(a,c,d,g,i){a=this._dialogInst;if(!a){a="dp"+ ++this.uuid;this._dialogInput=b('<input type="text" id="'+a+'" size="1" style="position: absolute; top: -100px;"/>');
234
+ this._dialogInput.keydown(this._doKeyDown);b("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};b.data(this._dialogInput[0],"datepicker",a)}f(a.settings,g||{});this._dialogInput.val(c);this._pos=i?i.length?i:[i.pageX,i.pageY]:null;if(!this._pos)this._pos=[(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),(window.innerHeight||document.documentElement.clientHeight||
235
+ document.body.clientHeight)/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");a.settings.onSelect=d;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);b.blockUI&&b.blockUI(this.dpDiv);b.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var c=b(a),d=b.data(a,"datepicker");if(c.hasClass(this.markerClassName)){var g=a.nodeName.toLowerCase();
236
+ b.removeData(a,"datepicker");if(g=="input"){d.append.remove();d.trigger.remove();c.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress)}else if(g=="div"||g=="span")c.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var c=b(a),d=b.data(a,"datepicker");if(c.hasClass(this.markerClassName)){var g=a.nodeName.toLowerCase();if(g=="input"){a.disabled=false;d.trigger.filter("button").each(function(){this.disabled=
237
+ false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(g=="div"||g=="span")c.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,function(i){return i==a?null:i})}},_disableDatepicker:function(a){var c=b(a),d=b.data(a,"datepicker");if(c.hasClass(this.markerClassName)){var g=a.nodeName.toLowerCase();if(g=="input"){a.disabled=true;d.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",
238
+ cursor:"default"})}else if(g=="div"||g=="span")c.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,function(i){return i==a?null:i});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;for(var c=0;c<this._disabledInputs.length;c++)if(this._disabledInputs[c]==a)return true;return false},_getInst:function(a){try{return b.data(a,"datepicker")}catch(c){throw"Missing instance data for this datepicker";
239
+ }},_optionDatepicker:function(a,c,d){var g=this._getInst(a);if(arguments.length==2&&typeof c=="string")return c=="defaults"?b.extend({},b.datepicker._defaults):g?c=="all"?b.extend({},g.settings):this._get(g,c):null;var i=c||{};if(typeof c=="string"){i={};i[c]=d}if(g){this._curInst==g&&this._hideDatepicker(null);var h=this._getDateDatepicker(a);f(g.settings,i);this._setDateDatepicker(a,h);this._updateDatepicker(g)}},_changeDatepicker:function(a,c,d){this._optionDatepicker(a,c,d)},_refreshDatepicker:function(a){(a=
240
+ this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,c,d){if(a=this._getInst(a)){this._setDate(a,c,d);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a);return a?this._getDate(a):null},_doKeyDown:function(a){var c=b.datepicker._getInst(a.target),d=true,g=c.dpDiv.is(".ui-datepicker-rtl");c._keyEvent=true;if(b.datepicker._datepickerShowing)switch(a.keyCode){case 9:b.datepicker._hideDatepicker(null,
241
+ "");break;case 13:d=b("td."+b.datepicker._dayOverClass+", td."+b.datepicker._currentClass,c.dpDiv);d[0]?b.datepicker._selectDay(a.target,c.selectedMonth,c.selectedYear,d[0]):b.datepicker._hideDatepicker(null,b.datepicker._get(c,"duration"));return false;case 27:b.datepicker._hideDatepicker(null,b.datepicker._get(c,"duration"));break;case 33:b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(c,"stepBigMonths"):-b.datepicker._get(c,"stepMonths"),"M");break;case 34:b.datepicker._adjustDate(a.target,
242
+ a.ctrlKey?+b.datepicker._get(c,"stepBigMonths"):+b.datepicker._get(c,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey)b.datepicker._clearDate(a.target);d=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey)b.datepicker._gotoToday(a.target);d=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,g?+1:-1,"D");d=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(c,"stepBigMonths"):-b.datepicker._get(c,
243
+ "stepMonths"),"M");break;case 38:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,-7,"D");d=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,g?-1:+1,"D");d=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(c,"stepBigMonths"):+b.datepicker._get(c,"stepMonths"),"M");break;case 40:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,+7,"D");d=a.ctrlKey||a.metaKey;break;default:d=false}else if(a.keyCode==
244
+ 36&&a.ctrlKey)b.datepicker._showDatepicker(this);else d=false;if(d){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var c=b.datepicker._getInst(a.target);if(b.datepicker._get(c,"constrainInput")){c=b.datepicker._possibleChars(b.datepicker._get(c,"dateFormat"));var d=String.fromCharCode(a.charCode==undefined?a.keyCode:a.charCode);return a.ctrlKey||d<" "||!c||c.indexOf(d)>-1}},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=b("input",a.parentNode)[0];
245
+ if(!(b.datepicker._isDisabledDatepicker(a)||b.datepicker._lastInput==a)){var c=b.datepicker._getInst(a),d=b.datepicker._get(c,"beforeShow");f(c.settings,d?d.apply(a,[a,c]):{});b.datepicker._hideDatepicker(null,"");b.datepicker._lastInput=a;b.datepicker._setDateFromField(c);if(b.datepicker._inDialog)a.value="";if(!b.datepicker._pos){b.datepicker._pos=b.datepicker._findPos(a);b.datepicker._pos[1]+=a.offsetHeight}var g=false;b(a).parents().each(function(){g|=b(this).css("position")=="fixed";return!g});
246
+ if(g&&b.browser.opera){b.datepicker._pos[0]-=document.documentElement.scrollLeft;b.datepicker._pos[1]-=document.documentElement.scrollTop}a={left:b.datepicker._pos[0],top:b.datepicker._pos[1]};b.datepicker._pos=null;c.rangeStart=null;c.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});b.datepicker._updateDatepicker(c);a=b.datepicker._checkOffset(c,a,g);c.dpDiv.css({position:b.datepicker._inDialog&&b.blockUI?"static":g?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"});
247
+ if(!c.inline){a=b.datepicker._get(c,"showAnim")||"show";d=b.datepicker._get(c,"duration");var i=function(){b.datepicker._datepickerShowing=true;b.browser.msie&&parseInt(b.browser.version,10)<7&&b("iframe.ui-datepicker-cover").css({width:c.dpDiv.width()+4,height:c.dpDiv.height()+4})};b.effects&&b.effects[a]?c.dpDiv.show(a,b.datepicker._get(c,"showOptions"),d,i):c.dpDiv[a](d,i);d==""&&i();c.input[0].type!="hidden"&&c.input[0].focus();b.datepicker._curInst=c}}},_updateDatepicker:function(a){var c={width:a.dpDiv.width()+
248
+ 4,height:a.dpDiv.height()+4},d=this;a.dpDiv.empty().append(this._generateHTML(a)).find("iframe.ui-datepicker-cover").css({width:c.width,height:c.height}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){b(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",
249
+ function(){if(!d._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])){b(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();c=this._getNumberOfMonths(a);var g=c[1];g>
250
+ 1?a.dpDiv.addClass("ui-datepicker-multi-"+g).css("width",17*g+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(c[0]!=1||c[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a.input&&a.input[0].type!="hidden"&&a==b.datepicker._curInst&&b(a.input[0]).focus()},_checkOffset:function(a,c,d){var g=a.dpDiv.outerWidth(),i=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():
251
+ 0,j=a.input?a.input.outerHeight():0,k=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+b(document).scrollLeft(),l=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)+b(document).scrollTop();c.left-=this._get(a,"isRTL")?g-h:0;c.left-=d&&c.left==a.input.offset().left?b(document).scrollLeft():0;c.top-=d&&c.top==a.input.offset().top+j?b(document).scrollTop():0;c.left-=c.left+g>k&&k>g?Math.abs(c.left+g-k):0;c.top-=c.top+i>l&&l>i?Math.abs(c.top+
252
+ i+j*2-l):0;return c},_findPos:function(a){for(;a&&(a.type=="hidden"||a.nodeType!=1);)a=a.nextSibling;a=b(a).offset();return[a.left,a.top]},_hideDatepicker:function(a,c){var d=this._curInst;if(!(!d||a&&d!=b.data(a,"datepicker"))){d.stayOpen&&this._selectDate("#"+d.id,this._formatDate(d,d.currentDay,d.currentMonth,d.currentYear));d.stayOpen=false;if(this._datepickerShowing){c=c!=null?c:this._get(d,"duration");a=this._get(d,"showAnim");var g=function(){b.datepicker._tidyDialog(d)};c!=""&&b.effects&&
253
+ b.effects[a]?d.dpDiv.hide(a,b.datepicker._get(d,"showOptions"),c,g):d.dpDiv[c==""?"hide":a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](c,g);c==""&&this._tidyDialog(d);if(c=this._get(d,"onClose"))c.apply(d.input?d.input[0]:null,[d.input?d.input.val():"",d]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(b.blockUI){b.unblockUI();b("body").append(this.dpDiv)}}this._inDialog=false}this._curInst=null}},
254
+ _tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(b.datepicker._curInst){a=b(a.target);a.parents("#"+b.datepicker._mainDivId).length==0&&!a.hasClass(b.datepicker.markerClassName)&&!a.hasClass(b.datepicker._triggerClass)&&b.datepicker._datepickerShowing&&!(b.datepicker._inDialog&&b.blockUI)&&b.datepicker._hideDatepicker(null,"")}},_adjustDate:function(a,c,d){a=b(a);var g=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(g,
255
+ c+(d=="M"?this._get(g,"showCurrentAtPos"):0),d);this._updateDatepicker(g)}},_gotoToday:function(a){a=b(a);var c=this._getInst(a[0]);if(this._get(c,"gotoCurrent")&&c.currentDay){c.selectedDay=c.currentDay;c.drawMonth=c.selectedMonth=c.currentMonth;c.drawYear=c.selectedYear=c.currentYear}else{var d=new Date;c.selectedDay=d.getDate();c.drawMonth=c.selectedMonth=d.getMonth();c.drawYear=c.selectedYear=d.getFullYear()}this._notifyChange(c);this._adjustDate(a)},_selectMonthYear:function(a,c,d){a=b(a);var g=
256
+ this._getInst(a[0]);g._selectingMonthYear=false;g["selected"+(d=="M"?"Month":"Year")]=g["draw"+(d=="M"?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10);this._notifyChange(g);this._adjustDate(a)},_clickMonthYear:function(a){a=this._getInst(b(a)[0]);a.input&&a._selectingMonthYear&&!b.browser.msie&&a.input[0].focus();a._selectingMonthYear=!a._selectingMonthYear},_selectDay:function(a,c,d,g){var i=b(a);if(!(b(g).hasClass(this._unselectableClass)||this._isDisabledDatepicker(i[0]))){i=this._getInst(i[0]);
257
+ i.selectedDay=i.currentDay=b("a",g).html();i.selectedMonth=i.currentMonth=c;i.selectedYear=i.currentYear=d;if(i.stayOpen)i.endDay=i.endMonth=i.endYear=null;this._selectDate(a,this._formatDate(i,i.currentDay,i.currentMonth,i.currentYear));if(i.stayOpen){i.rangeStart=this._daylightSavingAdjust(new Date(i.currentYear,i.currentMonth,i.currentDay));this._updateDatepicker(i)}}},_clearDate:function(a){a=b(a);var c=this._getInst(a[0]);c.stayOpen=false;c.endDay=c.endMonth=c.endYear=c.rangeStart=null;this._selectDate(a,
258
+ "")},_selectDate:function(a,c){a=this._getInst(b(a)[0]);c=c!=null?c:this._formatDate(a);a.input&&a.input.val(c);this._updateAlternate(a);var d=this._get(a,"onSelect");if(d)d.apply(a.input?a.input[0]:null,[c,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);else if(!a.stayOpen){this._hideDatepicker(null,this._get(a,"duration"));this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input[0].focus();this._lastInput=null}},_updateAlternate:function(a){var c=this._get(a,
259
+ "altField");if(c){var d=this._get(a,"altFormat")||this._get(a,"dateFormat"),g=this._getDate(a);dateStr=this.formatDate(d,g,this._getFormatConfig(a));b(c).each(function(){b(this).val(dateStr)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getFullYear(),a.getMonth(),a.getDate());var c=new Date(a.getFullYear(),0,4),d=c.getDay()||7;c.setDate(c.getDate()+1-d);if(d<4&&a<c){a.setDate(a.getDate()-3);return b.datepicker.iso8601Week(a)}else if(a>new Date(a.getFullYear(),
260
+ 11,28)){d=(new Date(a.getFullYear()+1,0,4)).getDay()||7;if(d>4&&(a.getDay()||7)<d-3)return 1}return Math.floor((a-c)/864E5/7)+1},parseDate:function(a,c,d){if(a==null||c==null)throw"Invalid arguments";c=typeof c=="object"?c.toString():c+"";if(c=="")return null;for(var g=(d?d.shortYearCutoff:null)||this._defaults.shortYearCutoff,i=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,h=(d?d.dayNames:null)||this._defaults.dayNames,j=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,k=(d?d.monthNames:
261
+ null)||this._defaults.monthNames,l=d=-1,m=-1,q=-1,o=false,p=function(w){(w=A+1<a.length&&a.charAt(A+1)==w)&&A++;return w},n=function(w){p(w);for(var z=w=w=="@"?14:w=="y"?4:w=="o"?3:2,y=0;z>0&&u<c.length&&c.charAt(u)>="0"&&c.charAt(u)<="9";){y=y*10+parseInt(c.charAt(u++),10);z--}if(z==w)throw"Missing number at position "+u;return y},r=function(w,z,y){w=p(w)?y:z;for(y=z=0;y<w.length;y++)z=Math.max(z,w[y].length);y="";for(var F=u;z>0&&u<c.length;){y+=c.charAt(u++);for(var D=0;D<w.length;D++)if(y==w[D])return D+
262
+ 1;z--}throw"Unknown name at position "+F;},s=function(){if(c.charAt(u)!=a.charAt(A))throw"Unexpected literal at position "+u;u++},u=0,A=0;A<a.length;A++)if(o)if(a.charAt(A)=="'"&&!p("'"))o=false;else s();else switch(a.charAt(A)){case "d":m=n("d");break;case "D":r("D",i,h);break;case "o":q=n("o");break;case "m":l=n("m");break;case "M":l=r("M",j,k);break;case "y":d=n("y");break;case "@":var B=new Date(n("@"));d=B.getFullYear();l=B.getMonth()+1;m=B.getDate();break;case "'":if(p("'"))s();else o=true;
263
+ break;default:s()}if(d==-1)d=(new Date).getFullYear();else if(d<100)d+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d<=g?0:-100);if(q>-1){l=1;m=q;do{g=this._getDaysInMonth(d,l-1);if(m<=g)break;l++;m-=g}while(1)}B=this._daylightSavingAdjust(new Date(d,l-1,m));if(B.getFullYear()!=d||B.getMonth()+1!=l||B.getDate()!=m)throw"Invalid date";return B},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",
264
+ RSS:"D, d M y",TIMESTAMP:"@",W3C:"yy-mm-dd",formatDate:function(a,c,d){if(!c)return"";var g=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,i=(d?d.dayNames:null)||this._defaults.dayNames,h=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort;d=(d?d.monthNames:null)||this._defaults.monthNames;var j=function(r){(r=o+1<a.length&&a.charAt(o+1)==r)&&o++;return r},k=function(r,s,u){s=""+s;if(j(r))for(;s.length<u;)s="0"+s;return s},l=function(r,s,u,A){return j(r)?A[s]:u[s]},m="",q=false;if(c)for(var o=
265
+ 0;o<a.length;o++)if(q)if(a.charAt(o)=="'"&&!j("'"))q=false;else m+=a.charAt(o);else switch(a.charAt(o)){case "d":m+=k("d",c.getDate(),2);break;case "D":m+=l("D",c.getDay(),g,i);break;case "o":for(var p=c.getDate(),n=c.getMonth()-1;n>=0;n--)p+=this._getDaysInMonth(c.getFullYear(),n);m+=k("o",p,3);break;case "m":m+=k("m",c.getMonth()+1,2);break;case "M":m+=l("M",c.getMonth(),h,d);break;case "y":m+=j("y")?c.getFullYear():(c.getYear()%100<10?"0":"")+c.getYear()%100;break;case "@":m+=c.getTime();break;
266
+ case "'":if(j("'"))m+="'";else q=true;break;default:m+=a.charAt(o)}return m},_possibleChars:function(a){for(var c="",d=false,g=0;g<a.length;g++)if(d)if(a.charAt(g)=="'"&&!lookAhead("'"))d=false;else c+=a.charAt(g);else switch(a.charAt(g)){case "d":case "m":case "y":case "@":c+="0123456789";break;case "D":case "M":return null;case "'":if(lookAhead("'"))c+="'";else d=true;break;default:c+=a.charAt(g)}return c},_get:function(a,c){return a.settings[c]!==undefined?a.settings[c]:this._defaults[c]},_setDateFromField:function(a){var c=
267
+ this._get(a,"dateFormat"),d=a.input?a.input.val():null;a.endDay=a.endMonth=a.endYear=null;var g=defaultDate=this._getDefaultDate(a),i=this._getFormatConfig(a);try{g=this.parseDate(c,d,i)||defaultDate}catch(h){this.log(h);g=defaultDate}a.selectedDay=g.getDate();a.drawMonth=a.selectedMonth=g.getMonth();a.drawYear=a.selectedYear=g.getFullYear();a.currentDay=d?g.getDate():0;a.currentMonth=d?g.getMonth():0;a.currentYear=d?g.getFullYear():0;this._adjustInstDate(a)},_getDefaultDate:function(a){var c=this._determineDate(this._get(a,
268
+ "defaultDate"),new Date),d=this._getMinMaxDate(a,"min",true);a=this._getMinMaxDate(a,"max");c=d&&c<d?d:c;return c=a&&c>a?a:c},_determineDate:function(a,c){var d=function(i){var h=new Date;h.setDate(h.getDate()+i);return h},g=function(i,h){var j=new Date,k=j.getFullYear(),l=j.getMonth();j=j.getDate();for(var m=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,q=m.exec(i);q;){switch(q[2]||"d"){case "d":case "D":j+=parseInt(q[1],10);break;case "w":case "W":j+=parseInt(q[1],10)*7;break;case "m":case "M":l+=parseInt(q[1],
269
+ 10);j=Math.min(j,h(k,l));break;case "y":case "Y":k+=parseInt(q[1],10);j=Math.min(j,h(k,l));break}q=m.exec(i)}return new Date(k,l,j)};if(a=(a=a==null?c:typeof a=="string"?g(a,this._getDaysInMonth):typeof a=="number"?isNaN(a)?c:d(a):a)&&a.toString()=="Invalid Date"?c:a){a.setHours(0);a.setMinutes(0);a.setSeconds(0);a.setMilliseconds(0)}return this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,
270
+ c){var d=!c,g=a.selectedMonth,i=a.selectedYear;c=this._determineDate(c,new Date);a.selectedDay=a.currentDay=c.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=c.getMonth();a.drawYear=a.selectedYear=a.currentYear=c.getFullYear();if(g!=a.selectedMonth||i!=a.selectedYear)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(d?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,
271
+ a.currentDay))},_generateHTML:function(a){var c=new Date;c=this._daylightSavingAdjust(new Date(c.getFullYear(),c.getMonth(),c.getDate()));var d=this._get(a,"isRTL"),g=this._get(a,"showButtonPanel"),i=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),j=this._getNumberOfMonths(a),k=this._get(a,"showCurrentAtPos"),l=this._get(a,"stepMonths");this._get(a,"stepBigMonths");var m=j[0]!=1||j[1]!=1,q=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,
272
+ a.currentDay)),o=this._getMinMaxDate(a,"min",true),p=this._getMinMaxDate(a,"max");k=a.drawMonth-k;var n=a.drawYear;if(k<0){k+=12;n--}if(p){var r=this._daylightSavingAdjust(new Date(p.getFullYear(),p.getMonth()-j[1]+1,p.getDate()));for(r=o&&r<o?o:r;this._daylightSavingAdjust(new Date(n,k,1))>r;){k--;if(k<0){k=11;n--}}}a.drawMonth=k;a.drawYear=n;r=this._get(a,"prevText");r=!h?r:this.formatDate(r,this._daylightSavingAdjust(new Date(n,k-l,1)),this._getFormatConfig(a));r=this._canAdjustMonth(a,-1,n,k)?
273
+ '<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+a.id+"', -"+l+", 'M');\" title=\""+r+'"><span class="ui-icon ui-icon-circle-triangle-'+(d?"e":"w")+'">'+r+"</span></a>":i?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+r+'"><span class="ui-icon ui-icon-circle-triangle-'+(d?"e":"w")+'">'+r+"</span></a>";var s=this._get(a,"nextText");s=!h?s:this.formatDate(s,this._daylightSavingAdjust(new Date(n,k+l,1)),this._getFormatConfig(a));
274
+ i=this._canAdjustMonth(a,+1,n,k)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+a.id+"', +"+l+", 'M');\" title=\""+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(d?"w":"e")+'">'+s+"</span></a>":i?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(d?"w":"e")+'">'+s+"</span></a>";l=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&&a.currentDay?q:c;l=!h?l:this.formatDate(l,
275
+ s,this._getFormatConfig(a));h=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";g=g?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(d?h:"")+(this._isInRange(a,s)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery.datepicker._gotoToday(\'#'+a.id+"');\">"+l+"</button>":
276
+ "")+(d?"":h)+"</div>":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;l=this._get(a,"dayNames");this._get(a,"dayNamesShort");s=this._get(a,"dayNamesMin");var u=this._get(a,"monthNames"),A=this._get(a,"monthNamesShort"),B=this._get(a,"beforeShowDay"),w=this._get(a,"showOtherMonths");this._get(a,"calculateWeek");for(var z=a.endDay?this._daylightSavingAdjust(new Date(a.endYear,a.endMonth,a.endDay)):q,y=this._getDefaultDate(a),F="",D=0;D<j[0];D++){for(var L="",G=0;G<j[1];G++){var J=this._daylightSavingAdjust(new Date(n,
277
+ k,a.selectedDay)),x=" ui-corner-all",C="";if(m){C+='<div class="ui-datepicker-group ui-datepicker-group-';switch(G){case 0:C+="first";x=" ui-corner-"+(d?"right":"left");break;case j[1]-1:C+="last";x=" ui-corner-"+(d?"left":"right");break;default:C+="middle";x="";break}C+='">'}C+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+x+'">'+(/all|left/.test(x)&&D==0?d?i:r:"")+(/all|right/.test(x)&&D==0?d?r:i:"")+this._generateMonthYearHeader(a,k,n,o,p,J,D>0||G>0,u,A)+'</div><table class="ui-datepicker-calendar"><thead><tr>';
278
+ var E="";for(x=0;x<7;x++){var v=(x+h)%7;E+="<th"+((x+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+l[v]+'">'+s[v]+"</span></th>"}C+=E+"</tr></thead><tbody>";E=this._getDaysInMonth(n,k);if(n==a.selectedYear&&k==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,E);x=(this._getFirstDayOfMonth(n,k)-h+7)%7;E=m?6:Math.ceil((x+E)/7);v=this._daylightSavingAdjust(new Date(n,k,1-x));for(var M=0;M<E;M++){C+="<tr>";var N="";for(x=0;x<7;x++){var I=B?B.apply(a.input?a.input[0]:null,[v]):[true,
279
+ ""],H=v.getMonth()!=k,K=H||!I[0]||o&&v<o||p&&v>p;N+='<td class="'+((x+h+6)%7>=5?" ui-datepicker-week-end":"")+(H?" ui-datepicker-other-month":"")+(v.getTime()==J.getTime()&&k==a.selectedMonth&&a._keyEvent||y.getTime()==v.getTime()&&y.getTime()==J.getTime()?" "+this._dayOverClass:"")+(K?" "+this._unselectableClass+" ui-state-disabled":"")+(H&&!w?"":" "+I[1]+(v.getTime()>=q.getTime()&&v.getTime()<=z.getTime()?" "+this._currentClass:"")+(v.getTime()==c.getTime()?" ui-datepicker-today":""))+'"'+((!H||
280
+ w)&&I[2]?' title="'+I[2]+'"':"")+(K?"":" onclick=\"DP_jQuery.datepicker._selectDay('#"+a.id+"',"+k+","+n+', this);return false;"')+">"+(H?w?v.getDate():"&#xa0;":K?'<span class="ui-state-default">'+v.getDate()+"</span>":'<a class="ui-state-default'+(v.getTime()==c.getTime()?" ui-state-highlight":"")+(v.getTime()>=q.getTime()&&v.getTime()<=z.getTime()?" ui-state-active":"")+'" href="#">'+v.getDate()+"</a>")+"</td>";v.setDate(v.getDate()+1);v=this._daylightSavingAdjust(v)}C+=N+"</tr>"}k++;if(k>11){k=
281
+ 0;n++}C+="</tbody></table>"+(m?"</div>"+(j[0]>0&&G==j[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");L+=C}F+=L}F+=g+(b.browser.msie&&parseInt(b.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");a._keyEvent=false;return F},_generateMonthYearHeader:function(a,c,d,g,i,h,j,k,l){g=a.rangeStart&&g&&h<g?h:g;h=this._get(a,"changeMonth");var m=this._get(a,"changeYear"),q=this._get(a,"showMonthAfterYear"),o='<div class="ui-datepicker-title">',
282
+ p="";if(j||!h)p+='<span class="ui-datepicker-month">'+k[c]+"</span> ";else{k=g&&g.getFullYear()==d;var n=i&&i.getFullYear()==d;p+='<select class="ui-datepicker-month" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+a.id+"', this, 'M');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+a.id+"');\">";for(var r=0;r<12;r++)if((!k||r>=g.getMonth())&&(!n||r<=i.getMonth()))p+='<option value="'+r+'"'+(r==c?' selected="selected"':"")+">"+l[r]+"</option>";p+="</select>"}q||(o+=p+((j||h||m)&&!(h&&m)?
283
+ "&#xa0;":""));if(j||!m)o+='<span class="ui-datepicker-year">'+d+"</span>";else{c=this._get(a,"yearRange").split(":");k=l=0;if(c.length!=2){l=d-10;k=d+10}else if(c[0].charAt(0)=="+"||c[0].charAt(0)=="-"){l=d+parseInt(c[0],10);k=d+parseInt(c[1],10)}else{l=parseInt(c[0],10);k=parseInt(c[1],10)}l=g?Math.max(l,g.getFullYear()):l;k=i?Math.min(k,i.getFullYear()):k;for(o+='<select class="ui-datepicker-year" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+a.id+"', this, 'Y');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+
284
+ a.id+"');\">";l<=k;l++)o+='<option value="'+l+'"'+(l==d?' selected="selected"':"")+">"+l+"</option>";o+="</select>"}if(q)o+=(j||h||m?"&#xa0;":"")+p;o+="</div>";return o},_adjustInstDate:function(a,c,d){var g=a.drawYear+(d=="Y"?c:0),i=a.drawMonth+(d=="M"?c:0);c=Math.min(a.selectedDay,this._getDaysInMonth(g,i))+(d=="D"?c:0);g=this._daylightSavingAdjust(new Date(g,i,c));i=this._getMinMaxDate(a,"min",true);c=this._getMinMaxDate(a,"max");g=i&&g<i?i:g;g=c&&g>c?c:g;a.selectedDay=g.getDate();a.drawMonth=
285
+ a.selectedMonth=g.getMonth();a.drawYear=a.selectedYear=g.getFullYear();if(d=="M"||d=="Y")this._notifyChange(a)},_notifyChange:function(a){var c=this._get(a,"onChangeMonthYear");if(c)c.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,c,d){c=this._determineDate(this._get(a,c+"Date"),null);return!d||!a.rangeStart?c:!c||a.rangeStart>c?a.rangeStart:
286
+ c},_getDaysInMonth:function(a,c){return 32-(new Date(a,c,32)).getDate()},_getFirstDayOfMonth:function(a,c){return(new Date(a,c,1)).getDay()},_canAdjustMonth:function(a,c,d,g){var i=this._getNumberOfMonths(a);d=this._daylightSavingAdjust(new Date(d,g+(c<0?c:i[1]),1));c<0&&d.setDate(this._getDaysInMonth(d.getFullYear(),d.getMonth()));return this._isInRange(a,d)},_isInRange:function(a,c){var d=!a.rangeStart?null:this._daylightSavingAdjust(new Date(a.selectedYear,a.selectedMonth,a.selectedDay));d=(d=
287
+ d&&a.rangeStart<d?a.rangeStart:d)||this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!d||c>=d)&&(!a||c<=a)},_getFormatConfig:function(a){var c=this._get(a,"shortYearCutoff");c=typeof c!="string"?c:(new Date).getFullYear()%100+parseInt(c,10);return{shortYearCutoff:c,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,c,d,g){if(!c){a.currentDay=a.selectedDay;
288
+ a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}c=c?typeof c=="object"?c:this._daylightSavingAdjust(new Date(g,d,c)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),c,this._getFormatConfig(a))}});b.fn.datepicker=function(a){if(!b.datepicker.initialized){b(document).mousedown(b.datepicker._checkExternalClick).find("body").append(b.datepicker.dpDiv);b.datepicker.initialized=true}var c=Array.prototype.slice.call(arguments,
289
+ 1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"))return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(c));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(c));return this.each(function(){typeof a=="string"?b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this].concat(c)):b.datepicker._attachDatepicker(this,a)})};b.datepicker=new e;b.datepicker.initialized=false;b.datepicker.uuid=
290
+ (new Date).getTime();b.datepicker.version="1.7.3";window.DP_jQuery=b})(jQuery);
291
+ (function(b){b.widget("ui.progressbar",{_init:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this._valueMin(),"aria-valuemax":this._valueMax(),"aria-valuenow":this._value()});this.valueDiv=b('<div class="ui-progressbar-value ui-widget-header ui-corner-left"></div>').appendTo(this.element);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").removeData("progressbar").unbind(".progressbar");this.valueDiv.remove();
292
+ b.widget.prototype.destroy.apply(this,arguments)},value:function(e){if(e===undefined)return this._value();this._setData("value",e);return this},_setData:function(e,f){switch(e){case "value":this.options.value=f;this._refreshValue();this._trigger("change",null,{});break}b.widget.prototype._setData.apply(this,arguments)},_value:function(){var e=this.options.value;if(e<this._valueMin())e=this._valueMin();if(e>this._valueMax())e=this._valueMax();return e},_valueMin:function(){return 0},_valueMax:function(){return 100},
293
+ _refreshValue:function(){var e=this.value();this.valueDiv[e==this._valueMax()?"addClass":"removeClass"]("ui-corner-right");this.valueDiv.width(e+"%");this.element.attr("aria-valuenow",e)}});b.extend(b.ui.progressbar,{version:"1.7.3",defaults:{value:0}})})(jQuery);
294
+ jQuery.effects||function(b){function e(d,g){var i=d[1]&&d[1].constructor==Object?d[1]:{};if(g)i.mode=g;g=d[1]&&d[1].constructor!=Object?d[1]:i.duration?i.duration:d[2];g=b.fx.off?0:typeof g==="number"?g:b.fx.speeds[g]||b.fx.speeds._default;var h=i.callback||b.isFunction(d[1])&&d[1]||b.isFunction(d[2])&&d[2]||b.isFunction(d[3])&&d[3];return[d[0],i,g,h]}function f(d){var g;if(d&&d.constructor==Array&&d.length==3)return d;if(g=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(d))return[parseInt(g[1],
295
+ 10),parseInt(g[2],10),parseInt(g[3],10)];if(g=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(d))return[parseFloat(g[1])*2.55,parseFloat(g[2])*2.55,parseFloat(g[3])*2.55];if(g=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(d))return[parseInt(g[1],16),parseInt(g[2],16),parseInt(g[3],16)];if(g=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(d))return[parseInt(g[1]+g[1],16),parseInt(g[2]+g[2],16),parseInt(g[3]+g[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(d))return c.transparent;
296
+ return c[b.trim(d).toLowerCase()]}function a(d,g){var i;do{i=b.curCSS(d,g);if(i!=""&&i!="transparent"||b.nodeName(d,"body"))break;g="backgroundColor"}while(d=d.parentNode);return f(i)}b.effects={version:"1.7.3",save:function(d,g){for(var i=0;i<g.length;i++)g[i]!==null&&d.data("ec.storage."+g[i],d[0].style[g[i]])},restore:function(d,g){for(var i=0;i<g.length;i++)g[i]!==null&&d.css(g[i],d.data("ec.storage."+g[i]))},setMode:function(d,g){if(g=="toggle")g=d.is(":hidden")?"show":"hide";return g},getBaseline:function(d,
297
+ g){var i;switch(d[0]){case "top":i=0;break;case "middle":i=0.5;break;case "bottom":i=1;break;default:i=d[0]/g.height}switch(d[1]){case "left":d=0;break;case "center":d=0.5;break;case "right":d=1;break;default:d=d[1]/g.width}return{x:d,y:i}},createWrapper:function(d){if(d.parent().is(".ui-effects-wrapper"))return d.parent();var g={width:d.outerWidth(true),height:d.outerHeight(true),"float":d.css("float")};d.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');
298
+ var i=d.parent();if(d.css("position")=="static"){i.css({position:"relative"});d.css({position:"relative"})}else{var h=d.css("top");if(isNaN(parseInt(h,10)))h="auto";var j=d.css("left");if(isNaN(parseInt(j,10)))j="auto";i.css({position:d.css("position"),top:h,left:j,zIndex:d.css("z-index")}).show();d.css({position:"relative",top:0,left:0})}i.css(g);return i},removeWrapper:function(d){if(d.parent().is(".ui-effects-wrapper"))return d.parent().replaceWith(d);return d},setTransition:function(d,g,i,h){h=
299
+ h||{};b.each(g,function(j,k){unit=d.cssUnit(k);if(unit[0]>0)h[k]=unit[0]*i+unit[1]});return h},animateClass:function(d,g,i,h){var j=typeof i=="function"?i:h?h:null,k=typeof i=="string"?i:null;return this.each(function(){var l={},m=b(this),q=m.attr("style")||"";if(typeof q=="object")q=q.cssText;if(d.toggle)m.hasClass(d.toggle)?(d.remove=d.toggle):(d.add=d.toggle);var o=b.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);d.add&&m.addClass(d.add);d.remove&&
300
+ m.removeClass(d.remove);var p=b.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);d.add&&m.removeClass(d.add);d.remove&&m.addClass(d.remove);for(var n in p)if(typeof p[n]!="function"&&p[n]&&n.indexOf("Moz")==-1&&n.indexOf("length")==-1&&p[n]!=o[n]&&(n.match(/color/i)||!n.match(/color/i)&&!isNaN(parseInt(p[n],10)))&&(o.position!="static"||o.position=="static"&&!n.match(/left|top|bottom|right/)))l[n]=p[n];m.animate(l,g,k,function(){if(typeof b(this).attr("style")==
301
+ "object"){b(this).attr("style").cssText="";b(this).attr("style").cssText=q}else b(this).attr("style",q);d.add&&b(this).addClass(d.add);d.remove&&b(this).removeClass(d.remove);j&&j.apply(this,arguments)})})}};b.fn.extend({_show:b.fn.show,_hide:b.fn.hide,__toggle:b.fn.toggle,_addClass:b.fn.addClass,_removeClass:b.fn.removeClass,_toggleClass:b.fn.toggleClass,effect:function(d,g,i,h){return b.effects[d]?b.effects[d].call(this,{method:d,options:g||{},duration:i,callback:h}):null},show:function(){return!arguments[0]||
302
+ arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0])?this._show.apply(this,arguments):this.effect.apply(this,e(arguments,"show"))},hide:function(){return!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0])?this._hide.apply(this,arguments):this.effect.apply(this,e(arguments,"hide"))},toggle:function(){return!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0])||b.isFunction(arguments[0])||typeof arguments[0]==
303
+ "boolean"?this.__toggle.apply(this,arguments):this.effect.apply(this,e(arguments,"toggle"))},addClass:function(d,g,i,h){return g?b.effects.animateClass.apply(this,[{add:d},g,i,h]):this._addClass(d)},removeClass:function(d,g,i,h){return g?b.effects.animateClass.apply(this,[{remove:d},g,i,h]):this._removeClass(d)},toggleClass:function(d,g,i,h){return typeof g!=="boolean"&&g?b.effects.animateClass.apply(this,[{toggle:d},g,i,h]):this._toggleClass(d,g)},morph:function(d,g,i,h,j){return b.effects.animateClass.apply(this,
304
+ [{add:g,remove:d},i,h,j])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(d){var g=this.css(d),i=[];b.each(["em","px","%","pt"],function(h,j){if(g.indexOf(j)>0)i=[parseFloat(g),j]});return i}});b.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(d,g){b.fx.step[g]=function(i){if(i.state==0){i.start=a(i.elem,g);i.end=f(i.end)}i.elem.style[g]="rgb("+[Math.max(Math.min(parseInt(i.pos*(i.end[0]-
305
+ i.start[0])+i.start[0],10),255),0),Math.max(Math.min(parseInt(i.pos*(i.end[1]-i.start[1])+i.start[1],10),255),0),Math.max(Math.min(parseInt(i.pos*(i.end[2]-i.start[2])+i.start[2],10),255),0)].join(",")+")"}});var c={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,
306
+ 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,
307
+ 0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};b.easing.jswing=b.easing.swing;b.extend(b.easing,{def:"easeOutQuad",swing:function(d,g,i,h,j){return b.easing[b.easing.def](d,g,i,h,j)},easeInQuad:function(d,g,i,h,j){return h*(g/=j)*g+i},easeOutQuad:function(d,g,i,h,j){return-h*(g/=j)*(g-2)+i},easeInOutQuad:function(d,g,i,h,j){if((g/=j/2)<1)return h/2*g*g+i;return-h/2*(--g*(g-2)-1)+i},easeInCubic:function(d,g,i,h,j){return h*(g/=j)*g*g+i},easeOutCubic:function(d,
308
+ g,i,h,j){return h*((g=g/j-1)*g*g+1)+i},easeInOutCubic:function(d,g,i,h,j){if((g/=j/2)<1)return h/2*g*g*g+i;return h/2*((g-=2)*g*g+2)+i},easeInQuart:function(d,g,i,h,j){return h*(g/=j)*g*g*g+i},easeOutQuart:function(d,g,i,h,j){return-h*((g=g/j-1)*g*g*g-1)+i},easeInOutQuart:function(d,g,i,h,j){if((g/=j/2)<1)return h/2*g*g*g*g+i;return-h/2*((g-=2)*g*g*g-2)+i},easeInQuint:function(d,g,i,h,j){return h*(g/=j)*g*g*g*g+i},easeOutQuint:function(d,g,i,h,j){return h*((g=g/j-1)*g*g*g*g+1)+i},easeInOutQuint:function(d,
309
+ g,i,h,j){if((g/=j/2)<1)return h/2*g*g*g*g*g+i;return h/2*((g-=2)*g*g*g*g+2)+i},easeInSine:function(d,g,i,h,j){return-h*Math.cos(g/j*(Math.PI/2))+h+i},easeOutSine:function(d,g,i,h,j){return h*Math.sin(g/j*(Math.PI/2))+i},easeInOutSine:function(d,g,i,h,j){return-h/2*(Math.cos(Math.PI*g/j)-1)+i},easeInExpo:function(d,g,i,h,j){return g==0?i:h*Math.pow(2,10*(g/j-1))+i},easeOutExpo:function(d,g,i,h,j){return g==j?i+h:h*(-Math.pow(2,-10*g/j)+1)+i},easeInOutExpo:function(d,g,i,h,j){if(g==0)return i;if(g==
310
+ j)return i+h;if((g/=j/2)<1)return h/2*Math.pow(2,10*(g-1))+i;return h/2*(-Math.pow(2,-10*--g)+2)+i},easeInCirc:function(d,g,i,h,j){return-h*(Math.sqrt(1-(g/=j)*g)-1)+i},easeOutCirc:function(d,g,i,h,j){return h*Math.sqrt(1-(g=g/j-1)*g)+i},easeInOutCirc:function(d,g,i,h,j){if((g/=j/2)<1)return-h/2*(Math.sqrt(1-g*g)-1)+i;return h/2*(Math.sqrt(1-(g-=2)*g)+1)+i},easeInElastic:function(d,g,i,h,j){d=1.70158;var k=0,l=h;if(g==0)return i;if((g/=j)==1)return i+h;k||(k=j*0.3);if(l<Math.abs(h)){l=h;d=k/4}else d=
311
+ k/(2*Math.PI)*Math.asin(h/l);return-(l*Math.pow(2,10*(g-=1))*Math.sin((g*j-d)*2*Math.PI/k))+i},easeOutElastic:function(d,g,i,h,j){d=1.70158;var k=0,l=h;if(g==0)return i;if((g/=j)==1)return i+h;k||(k=j*0.3);if(l<Math.abs(h)){l=h;d=k/4}else d=k/(2*Math.PI)*Math.asin(h/l);return l*Math.pow(2,-10*g)*Math.sin((g*j-d)*2*Math.PI/k)+h+i},easeInOutElastic:function(d,g,i,h,j){d=1.70158;var k=0,l=h;if(g==0)return i;if((g/=j/2)==2)return i+h;k||(k=j*0.3*1.5);if(l<Math.abs(h)){l=h;d=k/4}else d=k/(2*Math.PI)*Math.asin(h/
312
+ l);if(g<1)return-0.5*l*Math.pow(2,10*(g-=1))*Math.sin((g*j-d)*2*Math.PI/k)+i;return l*Math.pow(2,-10*(g-=1))*Math.sin((g*j-d)*2*Math.PI/k)*0.5+h+i},easeInBack:function(d,g,i,h,j,k){if(k==undefined)k=1.70158;return h*(g/=j)*g*((k+1)*g-k)+i},easeOutBack:function(d,g,i,h,j,k){if(k==undefined)k=1.70158;return h*((g=g/j-1)*g*((k+1)*g+k)+1)+i},easeInOutBack:function(d,g,i,h,j,k){if(k==undefined)k=1.70158;if((g/=j/2)<1)return h/2*g*g*(((k*=1.525)+1)*g-k)+i;return h/2*((g-=2)*g*(((k*=1.525)+1)*g+k)+2)+i},
313
+ easeInBounce:function(d,g,i,h,j){return h-b.easing.easeOutBounce(d,j-g,0,h,j)+i},easeOutBounce:function(d,g,i,h,j){return(g/=j)<1/2.75?h*7.5625*g*g+i:g<2/2.75?h*(7.5625*(g-=1.5/2.75)*g+0.75)+i:g<2.5/2.75?h*(7.5625*(g-=2.25/2.75)*g+0.9375)+i:h*(7.5625*(g-=2.625/2.75)*g+0.984375)+i},easeInOutBounce:function(d,g,i,h,j){if(g<j/2)return b.easing.easeInBounce(d,g*2,0,h,j)*0.5+i;return b.easing.easeOutBounce(d,g*2-j,0,h,j)*0.5+h*0.5+i}})}(jQuery);
314
+ (function(b){b.effects.blind=function(e){return this.queue(function(){var f=b(this),a=["position","top","left"],c=b.effects.setMode(f,e.options.mode||"hide"),d=e.options.direction||"vertical";b.effects.save(f,a);f.show();var g=b.effects.createWrapper(f).css({overflow:"hidden"}),i=d=="vertical"?"height":"width";d=d=="vertical"?g.height():g.width();c=="show"&&g.css(i,0);var h={};h[i]=c=="show"?d:0;g.animate(h,e.duration,e.options.easing,function(){c=="hide"&&f.hide();b.effects.restore(f,a);b.effects.removeWrapper(f);
315
+ e.callback&&e.callback.apply(f[0],arguments);f.dequeue()})})}})(jQuery);
316
+ (function(b){b.effects.bounce=function(e){return this.queue(function(){var f=b(this),a=["position","top","left"],c=b.effects.setMode(f,e.options.mode||"effect"),d=e.options.direction||"up",g=e.options.distance||20,i=e.options.times||5,h=e.duration||250;/show|hide/.test(c)&&a.push("opacity");b.effects.save(f,a);f.show();b.effects.createWrapper(f);var j=d=="up"||d=="down"?"top":"left";d=d=="up"||d=="left"?"pos":"neg";g=e.options.distance||(j=="top"?f.outerHeight({margin:true})/3:f.outerWidth({margin:true})/
317
+ 3);if(c=="show")f.css("opacity",0).css(j,d=="pos"?-g:g);if(c=="hide")g/=i*2;c!="hide"&&i--;if(c=="show"){var k={opacity:1};k[j]=(d=="pos"?"+=":"-=")+g;f.animate(k,h/2,e.options.easing);g/=2;i--}for(k=0;k<i;k++){var l={},m={};l[j]=(d=="pos"?"-=":"+=")+g;m[j]=(d=="pos"?"+=":"-=")+g;f.animate(l,h/2,e.options.easing).animate(m,h/2,e.options.easing);g=c=="hide"?g*2:g/2}if(c=="hide"){k={opacity:0};k[j]=(d=="pos"?"-=":"+=")+g;f.animate(k,h/2,e.options.easing,function(){f.hide();b.effects.restore(f,a);b.effects.removeWrapper(f);
318
+ e.callback&&e.callback.apply(this,arguments)})}else{l={};m={};l[j]=(d=="pos"?"-=":"+=")+g;m[j]=(d=="pos"?"+=":"-=")+g;f.animate(l,h/2,e.options.easing).animate(m,h/2,e.options.easing,function(){b.effects.restore(f,a);b.effects.removeWrapper(f);e.callback&&e.callback.apply(this,arguments)})}f.queue("fx",function(){f.dequeue()});f.dequeue()})}})(jQuery);
319
+ (function(b){b.effects.clip=function(e){return this.queue(function(){var f=b(this),a=["position","top","left","height","width"],c=b.effects.setMode(f,e.options.mode||"hide"),d=e.options.direction||"vertical";b.effects.save(f,a);f.show();var g=b.effects.createWrapper(f).css({overflow:"hidden"});g=f[0].tagName=="IMG"?g:f;var i={size:d=="vertical"?"height":"width",position:d=="vertical"?"top":"left"};d=d=="vertical"?g.height():g.width();if(c=="show"){g.css(i.size,0);g.css(i.position,d/2)}var h={};h[i.size]=
320
+ c=="show"?d:0;h[i.position]=c=="show"?0:d/2;g.animate(h,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){c=="hide"&&f.hide();b.effects.restore(f,a);b.effects.removeWrapper(f);e.callback&&e.callback.apply(f[0],arguments);f.dequeue()}})})}})(jQuery);
321
+ (function(b){b.effects.drop=function(e){return this.queue(function(){var f=b(this),a=["position","top","left","opacity"],c=b.effects.setMode(f,e.options.mode||"hide"),d=e.options.direction||"left";b.effects.save(f,a);f.show();b.effects.createWrapper(f);var g=d=="up"||d=="down"?"top":"left";d=d=="up"||d=="left"?"pos":"neg";var i=e.options.distance||(g=="top"?f.outerHeight({margin:true})/2:f.outerWidth({margin:true})/2);if(c=="show")f.css("opacity",0).css(g,d=="pos"?-i:i);var h={opacity:c=="show"?1:
322
+ 0};h[g]=(c=="show"?d=="pos"?"+=":"-=":d=="pos"?"-=":"+=")+i;f.animate(h,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){c=="hide"&&f.hide();b.effects.restore(f,a);b.effects.removeWrapper(f);e.callback&&e.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
323
+ (function(b){b.effects.explode=function(e){return this.queue(function(){var f=e.options.pieces?Math.round(Math.sqrt(e.options.pieces)):3,a=e.options.pieces?Math.round(Math.sqrt(e.options.pieces)):3;e.options.mode=e.options.mode=="toggle"?b(this).is(":visible")?"hide":"show":e.options.mode;var c=b(this).show().css("visibility","hidden"),d=c.offset();d.top-=parseInt(c.css("marginTop"),10)||0;d.left-=parseInt(c.css("marginLeft"),10)||0;for(var g=c.outerWidth(true),i=c.outerHeight(true),h=0;h<f;h++)for(var j=
324
+ 0;j<a;j++)c.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-j*(g/a),top:-h*(i/f)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g/a,height:i/f,left:d.left+j*(g/a)+(e.options.mode=="show"?(j-Math.floor(a/2))*(g/a):0),top:d.top+h*(i/f)+(e.options.mode=="show"?(h-Math.floor(f/2))*(i/f):0),opacity:e.options.mode=="show"?0:1}).animate({left:d.left+j*(g/a)+(e.options.mode=="show"?0:(j-Math.floor(a/2))*(g/a)),top:d.top+
325
+ h*(i/f)+(e.options.mode=="show"?0:(h-Math.floor(f/2))*(i/f)),opacity:e.options.mode=="show"?1:0},e.duration||500);setTimeout(function(){e.options.mode=="show"?c.css({visibility:"visible"}):c.css({visibility:"visible"}).hide();e.callback&&e.callback.apply(c[0]);c.dequeue();b("div.ui-effects-explode").remove()},e.duration||500)})}})(jQuery);
326
+ (function(b){b.effects.fold=function(e){return this.queue(function(){var f=b(this),a=["position","top","left"],c=b.effects.setMode(f,e.options.mode||"hide"),d=e.options.size||15,g=!!e.options.horizFirst,i=e.duration?e.duration/2:b.fx.speeds._default/2;b.effects.save(f,a);f.show();var h=b.effects.createWrapper(f).css({overflow:"hidden"}),j=c=="show"!=g,k=j?["width","height"]:["height","width"];j=j?[h.width(),h.height()]:[h.height(),h.width()];var l=/([0-9]+)%/.exec(d);if(l)d=parseInt(l[1],10)/100*
327
+ j[c=="hide"?0:1];if(c=="show")h.css(g?{height:0,width:d}:{height:d,width:0});g={};l={};g[k[0]]=c=="show"?j[0]:d;l[k[1]]=c=="show"?j[1]:0;h.animate(g,i,e.options.easing).animate(l,i,e.options.easing,function(){c=="hide"&&f.hide();b.effects.restore(f,a);b.effects.removeWrapper(f);e.callback&&e.callback.apply(f[0],arguments);f.dequeue()})})}})(jQuery);
328
+ (function(b){b.effects.highlight=function(e){return this.queue(function(){var f=b(this),a=["backgroundImage","backgroundColor","opacity"],c=b.effects.setMode(f,e.options.mode||"show"),d=e.options.color||"#ffff99",g=f.css("backgroundColor");b.effects.save(f,a);f.show();f.css({backgroundImage:"none",backgroundColor:d});d={backgroundColor:g};if(c=="hide")d.opacity=0;f.animate(d,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){c=="hide"&&f.hide();b.effects.restore(f,a);c==
329
+ "show"&&b.browser.msie&&this.style.removeAttribute("filter");e.callback&&e.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
330
+ (function(b){b.effects.pulsate=function(e){return this.queue(function(){var f=b(this),a=b.effects.setMode(f,e.options.mode||"show"),c=e.options.times||5,d=e.duration?e.duration/2:b.fx.speeds._default/2;a=="hide"&&c--;if(f.is(":hidden")){f.css("opacity",0);f.show();f.animate({opacity:1},d,e.options.easing);c-=2}for(var g=0;g<c;g++)f.animate({opacity:0},d,e.options.easing).animate({opacity:1},d,e.options.easing);a=="hide"?f.animate({opacity:0},d,e.options.easing,function(){f.hide();e.callback&&e.callback.apply(this,
331
+ arguments)}):f.animate({opacity:0},d,e.options.easing).animate({opacity:1},d,e.options.easing,function(){e.callback&&e.callback.apply(this,arguments)});f.queue("fx",function(){f.dequeue()});f.dequeue()})}})(jQuery);
332
+ (function(b){b.effects.puff=function(e){return this.queue(function(){var f=b(this),a=b.extend(true,{},e.options),c=b.effects.setMode(f,e.options.mode||"hide"),d=parseInt(e.options.percent,10)||150;a.fade=true;var g={height:f.height(),width:f.width()},i=d/100;f.from=c=="hide"?g:{height:g.height*i,width:g.width*i};a.from=f.from;a.percent=c=="hide"?d:100;a.mode=c;f.effect("scale",a,e.duration,e.callback);f.dequeue()})};b.effects.scale=function(e){return this.queue(function(){var f=b(this),a=b.extend(true,
333
+ {},e.options),c=b.effects.setMode(f,e.options.mode||"effect"),d=parseInt(e.options.percent,10)||(parseInt(e.options.percent,10)==0?0:c=="hide"?0:100),g=e.options.direction||"both",i=e.options.origin;if(c!="effect"){a.origin=i||["middle","center"];a.restore=true}i={height:f.height(),width:f.width()};f.from=e.options.from||(c=="show"?{height:0,width:0}:i);d={y:g!="horizontal"?d/100:1,x:g!="vertical"?d/100:1};f.to={height:i.height*d.y,width:i.width*d.x};if(e.options.fade){if(c=="show"){f.from.opacity=
334
+ 0;f.to.opacity=1}if(c=="hide"){f.from.opacity=1;f.to.opacity=0}}a.from=f.from;a.to=f.to;a.mode=c;f.effect("size",a,e.duration,e.callback);f.dequeue()})};b.effects.size=function(e){return this.queue(function(){var f=b(this),a=["position","top","left","width","height","overflow","opacity"],c=["position","top","left","overflow","opacity"],d=["width","height","overflow"],g=["fontSize"],i=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],h=["borderLeftWidth","borderRightWidth","paddingLeft",
335
+ "paddingRight"],j=b.effects.setMode(f,e.options.mode||"effect"),k=e.options.restore||false,l=e.options.scale||"both",m=e.options.origin,q={height:f.height(),width:f.width()};f.from=e.options.from||q;f.to=e.options.to||q;if(m){m=b.effects.getBaseline(m,q);f.from.top=(q.height-f.from.height)*m.y;f.from.left=(q.width-f.from.width)*m.x;f.to.top=(q.height-f.to.height)*m.y;f.to.left=(q.width-f.to.width)*m.x}var o={from:{y:f.from.height/q.height,x:f.from.width/q.width},to:{y:f.to.height/q.height,x:f.to.width/
336
+ q.width}};if(l=="box"||l=="both"){if(o.from.y!=o.to.y){a=a.concat(i);f.from=b.effects.setTransition(f,i,o.from.y,f.from);f.to=b.effects.setTransition(f,i,o.to.y,f.to)}if(o.from.x!=o.to.x){a=a.concat(h);f.from=b.effects.setTransition(f,h,o.from.x,f.from);f.to=b.effects.setTransition(f,h,o.to.x,f.to)}}if(l=="content"||l=="both")if(o.from.y!=o.to.y){a=a.concat(g);f.from=b.effects.setTransition(f,g,o.from.y,f.from);f.to=b.effects.setTransition(f,g,o.to.y,f.to)}b.effects.save(f,k?a:c);f.show();b.effects.createWrapper(f);
337
+ f.css("overflow","hidden").css(f.from);if(l=="content"||l=="both"){i=i.concat(["marginTop","marginBottom"]).concat(g);h=h.concat(["marginLeft","marginRight"]);d=a.concat(i).concat(h);f.find("*[width]").each(function(){child=b(this);k&&b.effects.save(child,d);var p={height:child.height(),width:child.width()};child.from={height:p.height*o.from.y,width:p.width*o.from.x};child.to={height:p.height*o.to.y,width:p.width*o.to.x};if(o.from.y!=o.to.y){child.from=b.effects.setTransition(child,i,o.from.y,child.from);
338
+ child.to=b.effects.setTransition(child,i,o.to.y,child.to)}if(o.from.x!=o.to.x){child.from=b.effects.setTransition(child,h,o.from.x,child.from);child.to=b.effects.setTransition(child,h,o.to.x,child.to)}child.css(child.from);child.animate(child.to,e.duration,e.options.easing,function(){k&&b.effects.restore(child,d)})})}f.animate(f.to,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){j=="hide"&&f.hide();b.effects.restore(f,k?a:c);b.effects.removeWrapper(f);e.callback&&e.callback.apply(this,
339
+ arguments);f.dequeue()}})})}})(jQuery);
340
+ (function(b){b.effects.shake=function(e){return this.queue(function(){var f=b(this),a=["position","top","left"];b.effects.setMode(f,e.options.mode||"effect");var c=e.options.direction||"left",d=e.options.distance||20,g=e.options.times||3,i=e.duration||e.options.duration||140;b.effects.save(f,a);f.show();b.effects.createWrapper(f);var h=c=="up"||c=="down"?"top":"left",j=c=="up"||c=="left"?"pos":"neg";c={};var k={},l={};c[h]=(j=="pos"?"-=":"+=")+d;k[h]=(j=="pos"?"+=":"-=")+d*2;l[h]=(j=="pos"?"-=":"+=")+
341
+ d*2;f.animate(c,i,e.options.easing);for(d=1;d<g;d++)f.animate(k,i,e.options.easing).animate(l,i,e.options.easing);f.animate(k,i,e.options.easing).animate(c,i/2,e.options.easing,function(){b.effects.restore(f,a);b.effects.removeWrapper(f);e.callback&&e.callback.apply(this,arguments)});f.queue("fx",function(){f.dequeue()});f.dequeue()})}})(jQuery);
342
+ (function(b){b.effects.slide=function(e){return this.queue(function(){var f=b(this),a=["position","top","left"],c=b.effects.setMode(f,e.options.mode||"show"),d=e.options.direction||"left";b.effects.save(f,a);f.show();b.effects.createWrapper(f).css({overflow:"hidden"});var g=d=="up"||d=="down"?"top":"left";d=d=="up"||d=="left"?"pos":"neg";var i=e.options.distance||(g=="top"?f.outerHeight({margin:true}):f.outerWidth({margin:true}));if(c=="show")f.css(g,d=="pos"?-i:i);var h={};h[g]=(c=="show"?d=="pos"?
343
+ "+=":"-=":d=="pos"?"-=":"+=")+i;f.animate(h,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){c=="hide"&&f.hide();b.effects.restore(f,a);b.effects.removeWrapper(f);e.callback&&e.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
344
+ (function(b){b.effects.transfer=function(e){return this.queue(function(){var f=b(this),a=b(e.options.to),c=a.offset();a={top:c.top,left:c.left,height:a.innerHeight(),width:a.innerWidth()};c=f.offset();var d=b('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(e.options.className).css({top:c.top,left:c.left,height:f.innerHeight(),width:f.innerWidth(),position:"absolute"}).animate(a,e.duration,e.options.easing,function(){d.remove();e.callback&&e.callback.apply(f[0],arguments);
345
+ f.dequeue()})})}})(jQuery);
346
+ (function(b){b.effects.blind=function(e){return this.queue(function(){var f=b(this),a=["position","top","left"],c=b.effects.setMode(f,e.options.mode||"hide"),d=e.options.direction||"vertical";b.effects.save(f,a);f.show();var g=b.effects.createWrapper(f).css({overflow:"hidden"}),i=d=="vertical"?"height":"width";d=d=="vertical"?g.height():g.width();c=="show"&&g.css(i,0);var h={};h[i]=c=="show"?d:0;g.animate(h,e.duration,e.options.easing,function(){c=="hide"&&f.hide();b.effects.restore(f,a);b.effects.removeWrapper(f);
347
+ e.callback&&e.callback.apply(f[0],arguments);f.dequeue()})})}})(jQuery);
348
+ (function(b){b.effects.bounce=function(e){return this.queue(function(){var f=b(this),a=["position","top","left"],c=b.effects.setMode(f,e.options.mode||"effect"),d=e.options.direction||"up",g=e.options.distance||20,i=e.options.times||5,h=e.duration||250;/show|hide/.test(c)&&a.push("opacity");b.effects.save(f,a);f.show();b.effects.createWrapper(f);var j=d=="up"||d=="down"?"top":"left";d=d=="up"||d=="left"?"pos":"neg";g=e.options.distance||(j=="top"?f.outerHeight({margin:true})/3:f.outerWidth({margin:true})/
349
+ 3);if(c=="show")f.css("opacity",0).css(j,d=="pos"?-g:g);if(c=="hide")g/=i*2;c!="hide"&&i--;if(c=="show"){var k={opacity:1};k[j]=(d=="pos"?"+=":"-=")+g;f.animate(k,h/2,e.options.easing);g/=2;i--}for(k=0;k<i;k++){var l={},m={};l[j]=(d=="pos"?"-=":"+=")+g;m[j]=(d=="pos"?"+=":"-=")+g;f.animate(l,h/2,e.options.easing).animate(m,h/2,e.options.easing);g=c=="hide"?g*2:g/2}if(c=="hide"){k={opacity:0};k[j]=(d=="pos"?"-=":"+=")+g;f.animate(k,h/2,e.options.easing,function(){f.hide();b.effects.restore(f,a);b.effects.removeWrapper(f);
350
+ e.callback&&e.callback.apply(this,arguments)})}else{l={};m={};l[j]=(d=="pos"?"-=":"+=")+g;m[j]=(d=="pos"?"+=":"-=")+g;f.animate(l,h/2,e.options.easing).animate(m,h/2,e.options.easing,function(){b.effects.restore(f,a);b.effects.removeWrapper(f);e.callback&&e.callback.apply(this,arguments)})}f.queue("fx",function(){f.dequeue()});f.dequeue()})}})(jQuery);
351
+ (function(b){b.effects.clip=function(e){return this.queue(function(){var f=b(this),a=["position","top","left","height","width"],c=b.effects.setMode(f,e.options.mode||"hide"),d=e.options.direction||"vertical";b.effects.save(f,a);f.show();var g=b.effects.createWrapper(f).css({overflow:"hidden"});g=f[0].tagName=="IMG"?g:f;var i={size:d=="vertical"?"height":"width",position:d=="vertical"?"top":"left"};d=d=="vertical"?g.height():g.width();if(c=="show"){g.css(i.size,0);g.css(i.position,d/2)}var h={};h[i.size]=
352
+ c=="show"?d:0;h[i.position]=c=="show"?0:d/2;g.animate(h,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){c=="hide"&&f.hide();b.effects.restore(f,a);b.effects.removeWrapper(f);e.callback&&e.callback.apply(f[0],arguments);f.dequeue()}})})}})(jQuery);
353
+ jQuery.effects||function(b){function e(d,g){var i=d[1]&&d[1].constructor==Object?d[1]:{};if(g)i.mode=g;g=d[1]&&d[1].constructor!=Object?d[1]:i.duration?i.duration:d[2];g=b.fx.off?0:typeof g==="number"?g:b.fx.speeds[g]||b.fx.speeds._default;var h=i.callback||b.isFunction(d[1])&&d[1]||b.isFunction(d[2])&&d[2]||b.isFunction(d[3])&&d[3];return[d[0],i,g,h]}function f(d){var g;if(d&&d.constructor==Array&&d.length==3)return d;if(g=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(d))return[parseInt(g[1],
354
+ 10),parseInt(g[2],10),parseInt(g[3],10)];if(g=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(d))return[parseFloat(g[1])*2.55,parseFloat(g[2])*2.55,parseFloat(g[3])*2.55];if(g=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(d))return[parseInt(g[1],16),parseInt(g[2],16),parseInt(g[3],16)];if(g=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(d))return[parseInt(g[1]+g[1],16),parseInt(g[2]+g[2],16),parseInt(g[3]+g[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(d))return c.transparent;
355
+ return c[b.trim(d).toLowerCase()]}function a(d,g){var i;do{i=b.curCSS(d,g);if(i!=""&&i!="transparent"||b.nodeName(d,"body"))break;g="backgroundColor"}while(d=d.parentNode);return f(i)}b.effects={version:"1.7.3",save:function(d,g){for(var i=0;i<g.length;i++)g[i]!==null&&d.data("ec.storage."+g[i],d[0].style[g[i]])},restore:function(d,g){for(var i=0;i<g.length;i++)g[i]!==null&&d.css(g[i],d.data("ec.storage."+g[i]))},setMode:function(d,g){if(g=="toggle")g=d.is(":hidden")?"show":"hide";return g},getBaseline:function(d,
356
+ g){var i;switch(d[0]){case "top":i=0;break;case "middle":i=0.5;break;case "bottom":i=1;break;default:i=d[0]/g.height}switch(d[1]){case "left":d=0;break;case "center":d=0.5;break;case "right":d=1;break;default:d=d[1]/g.width}return{x:d,y:i}},createWrapper:function(d){if(d.parent().is(".ui-effects-wrapper"))return d.parent();var g={width:d.outerWidth(true),height:d.outerHeight(true),"float":d.css("float")};d.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');
357
+ var i=d.parent();if(d.css("position")=="static"){i.css({position:"relative"});d.css({position:"relative"})}else{var h=d.css("top");if(isNaN(parseInt(h,10)))h="auto";var j=d.css("left");if(isNaN(parseInt(j,10)))j="auto";i.css({position:d.css("position"),top:h,left:j,zIndex:d.css("z-index")}).show();d.css({position:"relative",top:0,left:0})}i.css(g);return i},removeWrapper:function(d){if(d.parent().is(".ui-effects-wrapper"))return d.parent().replaceWith(d);return d},setTransition:function(d,g,i,h){h=
358
+ h||{};b.each(g,function(j,k){unit=d.cssUnit(k);if(unit[0]>0)h[k]=unit[0]*i+unit[1]});return h},animateClass:function(d,g,i,h){var j=typeof i=="function"?i:h?h:null,k=typeof i=="string"?i:null;return this.each(function(){var l={},m=b(this),q=m.attr("style")||"";if(typeof q=="object")q=q.cssText;if(d.toggle)m.hasClass(d.toggle)?(d.remove=d.toggle):(d.add=d.toggle);var o=b.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);d.add&&m.addClass(d.add);d.remove&&
359
+ m.removeClass(d.remove);var p=b.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);d.add&&m.removeClass(d.add);d.remove&&m.addClass(d.remove);for(var n in p)if(typeof p[n]!="function"&&p[n]&&n.indexOf("Moz")==-1&&n.indexOf("length")==-1&&p[n]!=o[n]&&(n.match(/color/i)||!n.match(/color/i)&&!isNaN(parseInt(p[n],10)))&&(o.position!="static"||o.position=="static"&&!n.match(/left|top|bottom|right/)))l[n]=p[n];m.animate(l,g,k,function(){if(typeof b(this).attr("style")==
360
+ "object"){b(this).attr("style").cssText="";b(this).attr("style").cssText=q}else b(this).attr("style",q);d.add&&b(this).addClass(d.add);d.remove&&b(this).removeClass(d.remove);j&&j.apply(this,arguments)})})}};b.fn.extend({_show:b.fn.show,_hide:b.fn.hide,__toggle:b.fn.toggle,_addClass:b.fn.addClass,_removeClass:b.fn.removeClass,_toggleClass:b.fn.toggleClass,effect:function(d,g,i,h){return b.effects[d]?b.effects[d].call(this,{method:d,options:g||{},duration:i,callback:h}):null},show:function(){return!arguments[0]||
361
+ arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0])?this._show.apply(this,arguments):this.effect.apply(this,e(arguments,"show"))},hide:function(){return!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0])?this._hide.apply(this,arguments):this.effect.apply(this,e(arguments,"hide"))},toggle:function(){return!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0])||b.isFunction(arguments[0])||typeof arguments[0]==
362
+ "boolean"?this.__toggle.apply(this,arguments):this.effect.apply(this,e(arguments,"toggle"))},addClass:function(d,g,i,h){return g?b.effects.animateClass.apply(this,[{add:d},g,i,h]):this._addClass(d)},removeClass:function(d,g,i,h){return g?b.effects.animateClass.apply(this,[{remove:d},g,i,h]):this._removeClass(d)},toggleClass:function(d,g,i,h){return typeof g!=="boolean"&&g?b.effects.animateClass.apply(this,[{toggle:d},g,i,h]):this._toggleClass(d,g)},morph:function(d,g,i,h,j){return b.effects.animateClass.apply(this,
363
+ [{add:g,remove:d},i,h,j])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(d){var g=this.css(d),i=[];b.each(["em","px","%","pt"],function(h,j){if(g.indexOf(j)>0)i=[parseFloat(g),j]});return i}});b.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(d,g){b.fx.step[g]=function(i){if(i.state==0){i.start=a(i.elem,g);i.end=f(i.end)}i.elem.style[g]="rgb("+[Math.max(Math.min(parseInt(i.pos*(i.end[0]-
364
+ i.start[0])+i.start[0],10),255),0),Math.max(Math.min(parseInt(i.pos*(i.end[1]-i.start[1])+i.start[1],10),255),0),Math.max(Math.min(parseInt(i.pos*(i.end[2]-i.start[2])+i.start[2],10),255),0)].join(",")+")"}});var c={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,
365
+ 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,
366
+ 0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};b.easing.jswing=b.easing.swing;b.extend(b.easing,{def:"easeOutQuad",swing:function(d,g,i,h,j){return b.easing[b.easing.def](d,g,i,h,j)},easeInQuad:function(d,g,i,h,j){return h*(g/=j)*g+i},easeOutQuad:function(d,g,i,h,j){return-h*(g/=j)*(g-2)+i},easeInOutQuad:function(d,g,i,h,j){if((g/=j/2)<1)return h/2*g*g+i;return-h/2*(--g*(g-2)-1)+i},easeInCubic:function(d,g,i,h,j){return h*(g/=j)*g*g+i},easeOutCubic:function(d,
367
+ g,i,h,j){return h*((g=g/j-1)*g*g+1)+i},easeInOutCubic:function(d,g,i,h,j){if((g/=j/2)<1)return h/2*g*g*g+i;return h/2*((g-=2)*g*g+2)+i},easeInQuart:function(d,g,i,h,j){return h*(g/=j)*g*g*g+i},easeOutQuart:function(d,g,i,h,j){return-h*((g=g/j-1)*g*g*g-1)+i},easeInOutQuart:function(d,g,i,h,j){if((g/=j/2)<1)return h/2*g*g*g*g+i;return-h/2*((g-=2)*g*g*g-2)+i},easeInQuint:function(d,g,i,h,j){return h*(g/=j)*g*g*g*g+i},easeOutQuint:function(d,g,i,h,j){return h*((g=g/j-1)*g*g*g*g+1)+i},easeInOutQuint:function(d,
368
+ g,i,h,j){if((g/=j/2)<1)return h/2*g*g*g*g*g+i;return h/2*((g-=2)*g*g*g*g+2)+i},easeInSine:function(d,g,i,h,j){return-h*Math.cos(g/j*(Math.PI/2))+h+i},easeOutSine:function(d,g,i,h,j){return h*Math.sin(g/j*(Math.PI/2))+i},easeInOutSine:function(d,g,i,h,j){return-h/2*(Math.cos(Math.PI*g/j)-1)+i},easeInExpo:function(d,g,i,h,j){return g==0?i:h*Math.pow(2,10*(g/j-1))+i},easeOutExpo:function(d,g,i,h,j){return g==j?i+h:h*(-Math.pow(2,-10*g/j)+1)+i},easeInOutExpo:function(d,g,i,h,j){if(g==0)return i;if(g==
369
+ j)return i+h;if((g/=j/2)<1)return h/2*Math.pow(2,10*(g-1))+i;return h/2*(-Math.pow(2,-10*--g)+2)+i},easeInCirc:function(d,g,i,h,j){return-h*(Math.sqrt(1-(g/=j)*g)-1)+i},easeOutCirc:function(d,g,i,h,j){return h*Math.sqrt(1-(g=g/j-1)*g)+i},easeInOutCirc:function(d,g,i,h,j){if((g/=j/2)<1)return-h/2*(Math.sqrt(1-g*g)-1)+i;return h/2*(Math.sqrt(1-(g-=2)*g)+1)+i},easeInElastic:function(d,g,i,h,j){d=1.70158;var k=0,l=h;if(g==0)return i;if((g/=j)==1)return i+h;k||(k=j*0.3);if(l<Math.abs(h)){l=h;d=k/4}else d=
370
+ k/(2*Math.PI)*Math.asin(h/l);return-(l*Math.pow(2,10*(g-=1))*Math.sin((g*j-d)*2*Math.PI/k))+i},easeOutElastic:function(d,g,i,h,j){d=1.70158;var k=0,l=h;if(g==0)return i;if((g/=j)==1)return i+h;k||(k=j*0.3);if(l<Math.abs(h)){l=h;d=k/4}else d=k/(2*Math.PI)*Math.asin(h/l);return l*Math.pow(2,-10*g)*Math.sin((g*j-d)*2*Math.PI/k)+h+i},easeInOutElastic:function(d,g,i,h,j){d=1.70158;var k=0,l=h;if(g==0)return i;if((g/=j/2)==2)return i+h;k||(k=j*0.3*1.5);if(l<Math.abs(h)){l=h;d=k/4}else d=k/(2*Math.PI)*Math.asin(h/
371
+ l);if(g<1)return-0.5*l*Math.pow(2,10*(g-=1))*Math.sin((g*j-d)*2*Math.PI/k)+i;return l*Math.pow(2,-10*(g-=1))*Math.sin((g*j-d)*2*Math.PI/k)*0.5+h+i},easeInBack:function(d,g,i,h,j,k){if(k==undefined)k=1.70158;return h*(g/=j)*g*((k+1)*g-k)+i},easeOutBack:function(d,g,i,h,j,k){if(k==undefined)k=1.70158;return h*((g=g/j-1)*g*((k+1)*g+k)+1)+i},easeInOutBack:function(d,g,i,h,j,k){if(k==undefined)k=1.70158;if((g/=j/2)<1)return h/2*g*g*(((k*=1.525)+1)*g-k)+i;return h/2*((g-=2)*g*(((k*=1.525)+1)*g+k)+2)+i},
372
+ easeInBounce:function(d,g,i,h,j){return h-b.easing.easeOutBounce(d,j-g,0,h,j)+i},easeOutBounce:function(d,g,i,h,j){return(g/=j)<1/2.75?h*7.5625*g*g+i:g<2/2.75?h*(7.5625*(g-=1.5/2.75)*g+0.75)+i:g<2.5/2.75?h*(7.5625*(g-=2.25/2.75)*g+0.9375)+i:h*(7.5625*(g-=2.625/2.75)*g+0.984375)+i},easeInOutBounce:function(d,g,i,h,j){if(g<j/2)return b.easing.easeInBounce(d,g*2,0,h,j)*0.5+i;return b.easing.easeOutBounce(d,g*2-j,0,h,j)*0.5+h*0.5+i}})}(jQuery);
373
+ (function(b){b.effects.drop=function(e){return this.queue(function(){var f=b(this),a=["position","top","left","opacity"],c=b.effects.setMode(f,e.options.mode||"hide"),d=e.options.direction||"left";b.effects.save(f,a);f.show();b.effects.createWrapper(f);var g=d=="up"||d=="down"?"top":"left";d=d=="up"||d=="left"?"pos":"neg";var i=e.options.distance||(g=="top"?f.outerHeight({margin:true})/2:f.outerWidth({margin:true})/2);if(c=="show")f.css("opacity",0).css(g,d=="pos"?-i:i);var h={opacity:c=="show"?1:
374
+ 0};h[g]=(c=="show"?d=="pos"?"+=":"-=":d=="pos"?"-=":"+=")+i;f.animate(h,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){c=="hide"&&f.hide();b.effects.restore(f,a);b.effects.removeWrapper(f);e.callback&&e.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
375
+ (function(b){b.effects.explode=function(e){return this.queue(function(){var f=e.options.pieces?Math.round(Math.sqrt(e.options.pieces)):3,a=e.options.pieces?Math.round(Math.sqrt(e.options.pieces)):3;e.options.mode=e.options.mode=="toggle"?b(this).is(":visible")?"hide":"show":e.options.mode;var c=b(this).show().css("visibility","hidden"),d=c.offset();d.top-=parseInt(c.css("marginTop"),10)||0;d.left-=parseInt(c.css("marginLeft"),10)||0;for(var g=c.outerWidth(true),i=c.outerHeight(true),h=0;h<f;h++)for(var j=
376
+ 0;j<a;j++)c.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-j*(g/a),top:-h*(i/f)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g/a,height:i/f,left:d.left+j*(g/a)+(e.options.mode=="show"?(j-Math.floor(a/2))*(g/a):0),top:d.top+h*(i/f)+(e.options.mode=="show"?(h-Math.floor(f/2))*(i/f):0),opacity:e.options.mode=="show"?0:1}).animate({left:d.left+j*(g/a)+(e.options.mode=="show"?0:(j-Math.floor(a/2))*(g/a)),top:d.top+
377
+ h*(i/f)+(e.options.mode=="show"?0:(h-Math.floor(f/2))*(i/f)),opacity:e.options.mode=="show"?1:0},e.duration||500);setTimeout(function(){e.options.mode=="show"?c.css({visibility:"visible"}):c.css({visibility:"visible"}).hide();e.callback&&e.callback.apply(c[0]);c.dequeue();b("div.ui-effects-explode").remove()},e.duration||500)})}})(jQuery);
378
+ (function(b){b.effects.fold=function(e){return this.queue(function(){var f=b(this),a=["position","top","left"],c=b.effects.setMode(f,e.options.mode||"hide"),d=e.options.size||15,g=!!e.options.horizFirst,i=e.duration?e.duration/2:b.fx.speeds._default/2;b.effects.save(f,a);f.show();var h=b.effects.createWrapper(f).css({overflow:"hidden"}),j=c=="show"!=g,k=j?["width","height"]:["height","width"];j=j?[h.width(),h.height()]:[h.height(),h.width()];var l=/([0-9]+)%/.exec(d);if(l)d=parseInt(l[1],10)/100*
379
+ j[c=="hide"?0:1];if(c=="show")h.css(g?{height:0,width:d}:{height:d,width:0});g={};l={};g[k[0]]=c=="show"?j[0]:d;l[k[1]]=c=="show"?j[1]:0;h.animate(g,i,e.options.easing).animate(l,i,e.options.easing,function(){c=="hide"&&f.hide();b.effects.restore(f,a);b.effects.removeWrapper(f);e.callback&&e.callback.apply(f[0],arguments);f.dequeue()})})}})(jQuery);
380
+ (function(b){b.effects.highlight=function(e){return this.queue(function(){var f=b(this),a=["backgroundImage","backgroundColor","opacity"],c=b.effects.setMode(f,e.options.mode||"show"),d=e.options.color||"#ffff99",g=f.css("backgroundColor");b.effects.save(f,a);f.show();f.css({backgroundImage:"none",backgroundColor:d});d={backgroundColor:g};if(c=="hide")d.opacity=0;f.animate(d,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){c=="hide"&&f.hide();b.effects.restore(f,a);c==
381
+ "show"&&b.browser.msie&&this.style.removeAttribute("filter");e.callback&&e.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
382
+ (function(b){b.effects.pulsate=function(e){return this.queue(function(){var f=b(this),a=b.effects.setMode(f,e.options.mode||"show"),c=e.options.times||5,d=e.duration?e.duration/2:b.fx.speeds._default/2;a=="hide"&&c--;if(f.is(":hidden")){f.css("opacity",0);f.show();f.animate({opacity:1},d,e.options.easing);c-=2}for(var g=0;g<c;g++)f.animate({opacity:0},d,e.options.easing).animate({opacity:1},d,e.options.easing);a=="hide"?f.animate({opacity:0},d,e.options.easing,function(){f.hide();e.callback&&e.callback.apply(this,
383
+ arguments)}):f.animate({opacity:0},d,e.options.easing).animate({opacity:1},d,e.options.easing,function(){e.callback&&e.callback.apply(this,arguments)});f.queue("fx",function(){f.dequeue()});f.dequeue()})}})(jQuery);
384
+ (function(b){b.effects.puff=function(e){return this.queue(function(){var f=b(this),a=b.extend(true,{},e.options),c=b.effects.setMode(f,e.options.mode||"hide"),d=parseInt(e.options.percent,10)||150;a.fade=true;var g={height:f.height(),width:f.width()},i=d/100;f.from=c=="hide"?g:{height:g.height*i,width:g.width*i};a.from=f.from;a.percent=c=="hide"?d:100;a.mode=c;f.effect("scale",a,e.duration,e.callback);f.dequeue()})};b.effects.scale=function(e){return this.queue(function(){var f=b(this),a=b.extend(true,
385
+ {},e.options),c=b.effects.setMode(f,e.options.mode||"effect"),d=parseInt(e.options.percent,10)||(parseInt(e.options.percent,10)==0?0:c=="hide"?0:100),g=e.options.direction||"both",i=e.options.origin;if(c!="effect"){a.origin=i||["middle","center"];a.restore=true}i={height:f.height(),width:f.width()};f.from=e.options.from||(c=="show"?{height:0,width:0}:i);d={y:g!="horizontal"?d/100:1,x:g!="vertical"?d/100:1};f.to={height:i.height*d.y,width:i.width*d.x};if(e.options.fade){if(c=="show"){f.from.opacity=
386
+ 0;f.to.opacity=1}if(c=="hide"){f.from.opacity=1;f.to.opacity=0}}a.from=f.from;a.to=f.to;a.mode=c;f.effect("size",a,e.duration,e.callback);f.dequeue()})};b.effects.size=function(e){return this.queue(function(){var f=b(this),a=["position","top","left","width","height","overflow","opacity"],c=["position","top","left","overflow","opacity"],d=["width","height","overflow"],g=["fontSize"],i=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],h=["borderLeftWidth","borderRightWidth","paddingLeft",
387
+ "paddingRight"],j=b.effects.setMode(f,e.options.mode||"effect"),k=e.options.restore||false,l=e.options.scale||"both",m=e.options.origin,q={height:f.height(),width:f.width()};f.from=e.options.from||q;f.to=e.options.to||q;if(m){m=b.effects.getBaseline(m,q);f.from.top=(q.height-f.from.height)*m.y;f.from.left=(q.width-f.from.width)*m.x;f.to.top=(q.height-f.to.height)*m.y;f.to.left=(q.width-f.to.width)*m.x}var o={from:{y:f.from.height/q.height,x:f.from.width/q.width},to:{y:f.to.height/q.height,x:f.to.width/
388
+ q.width}};if(l=="box"||l=="both"){if(o.from.y!=o.to.y){a=a.concat(i);f.from=b.effects.setTransition(f,i,o.from.y,f.from);f.to=b.effects.setTransition(f,i,o.to.y,f.to)}if(o.from.x!=o.to.x){a=a.concat(h);f.from=b.effects.setTransition(f,h,o.from.x,f.from);f.to=b.effects.setTransition(f,h,o.to.x,f.to)}}if(l=="content"||l=="both")if(o.from.y!=o.to.y){a=a.concat(g);f.from=b.effects.setTransition(f,g,o.from.y,f.from);f.to=b.effects.setTransition(f,g,o.to.y,f.to)}b.effects.save(f,k?a:c);f.show();b.effects.createWrapper(f);
389
+ f.css("overflow","hidden").css(f.from);if(l=="content"||l=="both"){i=i.concat(["marginTop","marginBottom"]).concat(g);h=h.concat(["marginLeft","marginRight"]);d=a.concat(i).concat(h);f.find("*[width]").each(function(){child=b(this);k&&b.effects.save(child,d);var p={height:child.height(),width:child.width()};child.from={height:p.height*o.from.y,width:p.width*o.from.x};child.to={height:p.height*o.to.y,width:p.width*o.to.x};if(o.from.y!=o.to.y){child.from=b.effects.setTransition(child,i,o.from.y,child.from);
390
+ child.to=b.effects.setTransition(child,i,o.to.y,child.to)}if(o.from.x!=o.to.x){child.from=b.effects.setTransition(child,h,o.from.x,child.from);child.to=b.effects.setTransition(child,h,o.to.x,child.to)}child.css(child.from);child.animate(child.to,e.duration,e.options.easing,function(){k&&b.effects.restore(child,d)})})}f.animate(f.to,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){j=="hide"&&f.hide();b.effects.restore(f,k?a:c);b.effects.removeWrapper(f);e.callback&&e.callback.apply(this,
391
+ arguments);f.dequeue()}})})}})(jQuery);
392
+ (function(b){b.effects.shake=function(e){return this.queue(function(){var f=b(this),a=["position","top","left"];b.effects.setMode(f,e.options.mode||"effect");var c=e.options.direction||"left",d=e.options.distance||20,g=e.options.times||3,i=e.duration||e.options.duration||140;b.effects.save(f,a);f.show();b.effects.createWrapper(f);var h=c=="up"||c=="down"?"top":"left",j=c=="up"||c=="left"?"pos":"neg";c={};var k={},l={};c[h]=(j=="pos"?"-=":"+=")+d;k[h]=(j=="pos"?"+=":"-=")+d*2;l[h]=(j=="pos"?"-=":"+=")+
393
+ d*2;f.animate(c,i,e.options.easing);for(d=1;d<g;d++)f.animate(k,i,e.options.easing).animate(l,i,e.options.easing);f.animate(k,i,e.options.easing).animate(c,i/2,e.options.easing,function(){b.effects.restore(f,a);b.effects.removeWrapper(f);e.callback&&e.callback.apply(this,arguments)});f.queue("fx",function(){f.dequeue()});f.dequeue()})}})(jQuery);
394
+ (function(b){b.effects.slide=function(e){return this.queue(function(){var f=b(this),a=["position","top","left"],c=b.effects.setMode(f,e.options.mode||"show"),d=e.options.direction||"left";b.effects.save(f,a);f.show();b.effects.createWrapper(f).css({overflow:"hidden"});var g=d=="up"||d=="down"?"top":"left";d=d=="up"||d=="left"?"pos":"neg";var i=e.options.distance||(g=="top"?f.outerHeight({margin:true}):f.outerWidth({margin:true}));if(c=="show")f.css(g,d=="pos"?-i:i);var h={};h[g]=(c=="show"?d=="pos"?
395
+ "+=":"-=":d=="pos"?"-=":"+=")+i;f.animate(h,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){c=="hide"&&f.hide();b.effects.restore(f,a);b.effects.removeWrapper(f);e.callback&&e.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
396
+ (function(b){b.effects.transfer=function(e){return this.queue(function(){var f=b(this),a=b(e.options.to),c=a.offset();a={top:c.top,left:c.left,height:a.innerHeight(),width:a.innerWidth()};c=f.offset();var d=b('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(e.options.className).css({top:c.top,left:c.left,height:f.innerHeight(),width:f.innerWidth(),position:"absolute"}).animate(a,e.duration,e.options.easing,function(){d.remove();e.callback&&e.callback.apply(f[0],arguments);
397
+ f.dequeue()})})}})(jQuery);
398
+ (function(b){b.widget("ui.accordion",{_init:function(){var e=this.options,f=this;this.running=0;if(e.collapsible==b.ui.accordion.defaults.collapsible&&e.alwaysOpen!=b.ui.accordion.defaults.alwaysOpen)e.collapsible=!e.alwaysOpen;if(e.navigation){var a=this.element.find("a").filter(e.navigationFilter);if(a.length)if(a.filter(e.header).length)this.active=a;else{this.active=a.parent().parent().prev();a.addClass("ui-accordion-content-active")}}this.element.addClass("ui-accordion ui-widget ui-helper-reset");this.element[0].nodeName==
399
+ "UL"&&this.element.children("li").addClass("ui-accordion-li-fix");this.headers=this.element.find(e.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b(this).removeClass("ui-state-focus")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
400
+ this.active=this._findActive(this.active||e.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");b("<span/>").addClass("ui-icon "+e.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(e.icons.header).toggleClass(e.icons.headerSelected);b.browser.msie&&this.element.find("a").css("zoom","1");this.resize();this.element.attr("role","tablist");
401
+ this.headers.attr("role","tab").bind("keydown",function(c){return f._keydown(c)}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();this.active.length?this.active.attr("aria-expanded","true").attr("tabIndex","0"):this.headers.eq(0).attr("tabIndex","0");b.browser.safari||this.headers.find("a").attr("tabIndex","-1");e.event&&this.headers.bind(e.event+".accordion",function(c){return f._clickHandler.call(f,c,this)})},destroy:function(){var e=
402
+ this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();var f=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");
403
+ if(e.autoHeight||e.fillHeight)f.css("height","")},_setData:function(e,f){if(e=="alwaysOpen"){e="collapsible";f=!f}b.widget.prototype._setData.apply(this,arguments)},_keydown:function(e){var f=b.ui.keyCode;if(!(this.options.disabled||e.altKey||e.ctrlKey)){var a=this.headers.length,c=this.headers.index(e.target),d=false;switch(e.keyCode){case f.RIGHT:case f.DOWN:d=this.headers[(c+1)%a];break;case f.LEFT:case f.UP:d=this.headers[(c-1+a)%a];break;case f.SPACE:case f.ENTER:return this._clickHandler({target:e.target},
404
+ e.target)}if(d){b(e.target).attr("tabIndex","-1");b(d).attr("tabIndex","0");d.focus();return false}return true}},resize:function(){var e=this.options,f;if(e.fillSpace){if(b.browser.msie){var a=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}f=this.element.parent().height();b.browser.msie&&this.element.parent().css("overflow",a);this.headers.each(function(){f-=b(this).outerHeight()});var c=0;this.headers.next().each(function(){c=Math.max(c,b(this).innerHeight()-
405
+ b(this).height())}).height(Math.max(0,f-c)).css("overflow","auto")}else if(e.autoHeight){f=0;this.headers.next().each(function(){f=Math.max(f,b(this).outerHeight())}).height(f)}},activate:function(e){e=this._findActive(e)[0];this._clickHandler({target:e},e)},_findActive:function(e){return e?typeof e=="number"?this.headers.filter(":eq("+e+")"):this.headers.not(this.headers.not(e)):e===false?b([]):this.headers.filter(":eq(0)")},_clickHandler:function(e,f){var a=this.options;if(a.disabled)return false;
406
+ if(!e.target&&a.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(a.icons.headerSelected).addClass(a.icons.header);this.active.next().addClass("ui-accordion-content-active");e=this.active.next();a={options:a,newHeader:b([]),oldHeader:a.active,newContent:b([]),oldContent:e};f=this.active=b([]);this._toggle(f,e,a);return false}var c=b(e.currentTarget||f),d=c[0]==this.active[0];if(this.running||!a.collapsible&&
407
+ d)return false;this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(a.icons.headerSelected).addClass(a.icons.header);this.active.next().addClass("ui-accordion-content-active");if(!d){c.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(a.icons.header).addClass(a.icons.headerSelected);c.next().addClass("ui-accordion-content-active")}f=c.next();e=this.active.next();
408
+ a={options:a,newHeader:d&&a.collapsible?b([]):c,oldHeader:this.active,newContent:d&&a.collapsible?b([]):f.find("> *"),oldContent:e.find("> *")};var g=this.headers.index(this.active[0])>this.headers.index(c[0]);this.active=d?b([]):c;this._toggle(f,e,a,d,g);return false},_toggle:function(e,f,a,c,d){var g=this.options,i=this;this.toShow=e;this.toHide=f;this.data=a;var h=function(){if(i)return i._completed.apply(i,arguments)};this._trigger("changestart",null,this.data);this.running=f.size()===0?e.size():
409
+ f.size();if(g.animated){a={};a=g.collapsible&&c?{toShow:b([]),toHide:f,complete:h,down:d,autoHeight:g.autoHeight||g.fillSpace}:{toShow:e,toHide:f,complete:h,down:d,autoHeight:g.autoHeight||g.fillSpace};if(!g.proxied)g.proxied=g.animated;if(!g.proxiedDuration)g.proxiedDuration=g.duration;g.animated=b.isFunction(g.proxied)?g.proxied(a):g.proxied;g.duration=b.isFunction(g.proxiedDuration)?g.proxiedDuration(a):g.proxiedDuration;c=b.ui.accordion.animations;var j=g.duration,k=g.animated;c[k]||(c[k]=function(l){this.slide(l,
410
+ {easing:k,duration:j||700})});c[k](a)}else{if(g.collapsible&&c)e.toggle();else{f.hide();e.show()}h(true)}f.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();e.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(e){var f=this.options;this.running=e?0:--this.running;if(!this.running){f.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this._trigger("change",null,this.data)}}});b.extend(b.ui.accordion,{version:"1.7.3",defaults:{active:null,
411
+ alwaysOpen:true,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()}},animations:{slide:function(e,f){e=b.extend({easing:"swing",duration:300},e,f);if(e.toHide.size())if(e.toShow.size()){var a=e.toShow.css("overflow"),c,d={},g={},
412
+ i;f=e.toShow;i=f[0].style.width;f.width(parseInt(f.parent().width(),10)-parseInt(f.css("paddingLeft"),10)-parseInt(f.css("paddingRight"),10)-(parseInt(f.css("borderLeftWidth"),10)||0)-(parseInt(f.css("borderRightWidth"),10)||0));b.each(["height","paddingTop","paddingBottom"],function(h,j){g[j]="hide";h=(""+b.css(e.toShow[0],j)).match(/^([\d+-.]+)(.*)$/);d[j]={value:h[1],unit:h[2]||"px"}});e.toShow.css({height:0,overflow:"hidden"}).show();e.toHide.filter(":hidden").each(e.complete).end().filter(":visible").animate(g,
413
+ {step:function(h,j){if(j.prop=="height")c=(j.now-j.start)/(j.end-j.start);e.toShow[0].style[j.prop]=c*d[j.prop].value+d[j.prop].unit},duration:e.duration,easing:e.easing,complete:function(){e.autoHeight||e.toShow.css("height","");e.toShow.css("width",i);e.toShow.css({overflow:a});e.complete()}})}else e.toHide.animate({height:"hide"},e);else e.toShow.animate({height:"show"},e)},bounceslide:function(e){this.slide(e,{easing:e.down?"easeOutBounce":"swing",duration:e.down?1E3:200})},easeslide:function(e){this.slide(e,
414
+ {easing:"easeinout",duration:700})}}})})(jQuery);
415
+ jQuery.ui||function(b){function e(h,j,k,l){function m(o){o=b[h][j][o]||[];return typeof o=="string"?o.split(/,?\s+/):o}var q=m("getter");if(l.length==1&&typeof l[0]=="string")q=q.concat(m("getterSetter"));return b.inArray(k,q)!=-1}var f=b.fn.remove,a=b.browser.mozilla&&parseFloat(b.browser.version)<1.9;b.ui={version:"1.7.3",plugin:{add:function(h,j,k){h=b.ui[h].prototype;for(var l in k){h.plugins[l]=h.plugins[l]||[];h.plugins[l].push([j,k[l]])}},call:function(h,j,k){if((j=h.plugins[j])&&h.element[0].parentNode)for(var l=
416
+ 0;l<j.length;l++)h.options[j[l][0]]&&j[l][1].apply(h.element,k)}},contains:function(h,j){return document.compareDocumentPosition?h.compareDocumentPosition(j)&16:h!==j&&h.contains(j)},hasScroll:function(h,j){if(b(h).css("overflow")=="hidden")return false;j=j&&j=="left"?"scrollLeft":"scrollTop";var k=false;if(h[j]>0)return true;h[j]=1;k=h[j]>0;h[j]=0;return k},isOverAxis:function(h,j,k){return h>j&&h<j+k},isOver:function(h,j,k,l,m,q){return b.ui.isOverAxis(h,k,m)&&b.ui.isOverAxis(j,l,q)},keyCode:{BACKSPACE:8,
417
+ CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,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}};if(a){var c=b.attr,d=b.fn.removeAttr,g=/^aria-/,i=/^wairole:/;b.attr=function(h,j,k){var l=k!==undefined;return j=="role"?l?c.call(this,h,j,"wairole:"+k):(c.apply(this,arguments)||"").replace(i,""):g.test(j)?l?h.setAttributeNS("http://www.w3.org/2005/07/aaa",
418
+ j.replace(g,"aaa:"),k):c.call(this,h,j.replace(g,"aaa:")):c.apply(this,arguments)};b.fn.removeAttr=function(h){return g.test(h)?this.each(function(){this.removeAttributeNS("http://www.w3.org/2005/07/aaa",h.replace(g,""))}):d.call(this,h)}}b.fn.extend({remove:function(h,j){return this.each(function(){if(!j)if(!h||b.filter(h,[this]).length)b("*",this).add(this).each(function(){b(this).triggerHandler("remove")});return f.call(b(this),h,j)})},enableSelection:function(){return this.attr("unselectable",
419
+ "off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var h;h=b.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(b.curCSS(this,"position",1))&&/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",
420
+ 1)+b.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!h.length?b(document):h}});b.extend(b.expr[":"],{data:function(h,j,k){return!!b.data(h,k[3])},focusable:function(h){var j=h.nodeName.toLowerCase(),k=b.attr(h,"tabindex");return(/input|select|textarea|button|object/.test(j)?!h.disabled:"a"==j||"area"==j?h.href||
421
+ !isNaN(k):!isNaN(k))&&!b(h)["area"==j?"parents":"closest"](":hidden").length},tabbable:function(h){var j=b.attr(h,"tabindex");return(isNaN(j)||j>=0)&&b(h).is(":focusable")}});b.widget=function(h,j){var k=h.split(".")[0];h=h.split(".")[1];b.fn[h]=function(l){var m=typeof l=="string",q=Array.prototype.slice.call(arguments,1);if(m&&l.substring(0,1)=="_")return this;if(m&&e(k,h,l,q)){var o=b.data(this[0],h);return o?o[l].apply(o,q):undefined}return this.each(function(){var p=b.data(this,h);!p&&!m&&b.data(this,
422
+ h,new b[k][h](this,l))._init();p&&m&&b.isFunction(p[l])&&p[l].apply(p,q)})};b[k]=b[k]||{};b[k][h]=function(l,m){var q=this;this.namespace=k;this.widgetName=h;this.widgetEventPrefix=b[k][h].eventPrefix||h;this.widgetBaseClass=k+"-"+h;this.options=b.extend({},b.widget.defaults,b[k][h].defaults,b.metadata&&b.metadata.get(l)[h],m);this.element=b(l).bind("setData."+h,function(o,p,n){if(o.target==l)return q._setData(p,n)}).bind("getData."+h,function(o,p){if(o.target==l)return q._getData(p)}).bind("remove",
423
+ function(){return q.destroy()})};b[k][h].prototype=b.extend({},b.widget.prototype,j);b[k][h].getterSetter="option"};b.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(h,j){var k=h,l=this;if(typeof h=="string"){if(j===undefined)return this._getData(h);k={};k[h]=j}b.each(k,function(m,q){l._setData(m,q)})},_getData:function(h){return this.options[h]},
424
+ _setData:function(h,j){this.options[h]=j;if(h=="disabled")this.element[j?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",j)},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(h,j,k){var l=this.options[h];h=h==this.widgetEventPrefix?h:this.widgetEventPrefix+h;j=b.Event(j);j.type=h;if(j.originalEvent){h=b.event.props.length;for(var m;h;){m=b.event.props[--h];j[m]=
425
+ j.originalEvent[m]}}this.element.trigger(j,k);return!(b.isFunction(l)&&l.call(this.element[0],j,k)===false||j.isDefaultPrevented())}};b.widget.defaults={disabled:false};b.ui.mouse={_mouseInit:function(){var h=this;this.element.bind("mousedown."+this.widgetName,function(j){return h._mouseDown(j)}).bind("click."+this.widgetName,function(j){if(h._preventClickEvent){h._preventClickEvent=false;j.stopImmediatePropagation();return false}});if(b.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");
426
+ this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);b.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable)},_mouseDown:function(h){h.originalEvent=h.originalEvent||{};if(!h.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(h);this._mouseDownEvent=h;var j=this,k=h.which==1,l=typeof this.options.cancel=="string"?b(h.target).parents().add(h.target).filter(this.options.cancel).length:false;if(!k||l||
427
+ !this._mouseCapture(h))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){j.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(h)&&this._mouseDelayMet(h)){this._mouseStarted=this._mouseStart(h)!==false;if(!this._mouseStarted){h.preventDefault();return true}}this._mouseMoveDelegate=function(m){return j._mouseMove(m)};this._mouseUpDelegate=function(m){return j._mouseUp(m)};b(document).bind("mousemove."+this.widgetName,
428
+ this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);b.browser.safari||h.preventDefault();return h.originalEvent.mouseHandled=true}},_mouseMove:function(h){if(b.browser.msie&&!h.button)return this._mouseUp(h);if(this._mouseStarted){this._mouseDrag(h);return h.preventDefault()}if(this._mouseDistanceMet(h)&&this._mouseDelayMet(h))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,h)!==false)?this._mouseDrag(h):this._mouseUp(h);return!this._mouseStarted},_mouseUp:function(h){b(document).unbind("mousemove."+
429
+ this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=h.target==this._mouseDownEvent.target;this._mouseStop(h)}return false},_mouseDistanceMet:function(h){return Math.max(Math.abs(this._mouseDownEvent.pageX-h.pageX),Math.abs(this._mouseDownEvent.pageY-h.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},
430
+ _mouseStop:function(){},_mouseCapture:function(){return true}};b.ui.mouse.defaults={cancel:null,distance:1,delay:0}}(jQuery);
431
+ (function(b){function e(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=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=
432
+ "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",
433
+ "Mo","Tu","We","Th","Fr","Sa"],dateFormat:"mm/dd/yy",firstDay:0,isRTL:false};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,showMonthAfterYear:false,yearRange:"-10:+10",showOtherMonths:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"normal",beforeShowDay:null,
434
+ beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false};b.extend(this._defaults,this.regional[""]);this.dpDiv=b('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}function f(a,c){b.extend(a,c);for(var d in c)if(c[d]==null||c[d]==undefined)a[d]=c[d];return a}
435
+ b.extend(b.ui,{datepicker:{version:"1.7.3"}});b.extend(e.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},setDefaults:function(a){f(this._defaults,a||{});return this},_attachDatepicker:function(a,c){var d=null;for(var g in this._defaults){var i=a.getAttribute("date:"+g);if(i){d=d||{};try{d[g]=eval(i)}catch(h){d[g]=i}}}g=a.nodeName.toLowerCase();i=g=="div"||g=="span";if(!a.id)a.id="dp"+ ++this.uuid;var j=this._newInst(b(a),i);j.settings=b.extend({},
436
+ c||{},d||{});if(g=="input")this._connectDatepicker(a,j);else i&&this._inlineDatepicker(a,j)},_newInst:function(a,c){return{id:a[0].id.replace(/([:\[\]\.])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:c,dpDiv:!c?this.dpDiv:b('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},_connectDatepicker:function(a,c){var d=b(a);c.append=b([]);c.trigger=b([]);if(!d.hasClass(this.markerClassName)){var g=
437
+ this._get(c,"appendText"),i=this._get(c,"isRTL");if(g){c.append=b('<span class="'+this._appendClass+'">'+g+"</span>");d[i?"before":"after"](c.append)}g=this._get(c,"showOn");if(g=="focus"||g=="both")d.focus(this._showDatepicker);if(g=="button"||g=="both"){g=this._get(c,"buttonText");var h=this._get(c,"buttonImage");c.trigger=b(this._get(c,"buttonImageOnly")?b("<img/>").addClass(this._triggerClass).attr({src:h,alt:g,title:g}):b('<button type="button"></button>').addClass(this._triggerClass).html(h==
438
+ ""?g:b("<img/>").attr({src:h,alt:g,title:g})));d[i?"before":"after"](c.trigger);c.trigger.click(function(){b.datepicker._datepickerShowing&&b.datepicker._lastInput==a?b.datepicker._hideDatepicker():b.datepicker._showDatepicker(a);return false})}d.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(j,k,l){c.settings[k]=l}).bind("getData.datepicker",function(j,k){return this._get(c,k)});b.data(a,"datepicker",c)}},_inlineDatepicker:function(a,
439
+ c){var d=b(a);if(!d.hasClass(this.markerClassName)){d.addClass(this.markerClassName).append(c.dpDiv).bind("setData.datepicker",function(g,i,h){c.settings[i]=h}).bind("getData.datepicker",function(g,i){return this._get(c,i)});b.data(a,"datepicker",c);this._setDate(c,this._getDefaultDate(c));this._updateDatepicker(c);this._updateAlternate(c)}},_dialogDatepicker:function(a,c,d,g,i){a=this._dialogInst;if(!a){a="dp"+ ++this.uuid;this._dialogInput=b('<input type="text" id="'+a+'" size="1" style="position: absolute; top: -100px;"/>');
440
+ this._dialogInput.keydown(this._doKeyDown);b("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};b.data(this._dialogInput[0],"datepicker",a)}f(a.settings,g||{});this._dialogInput.val(c);this._pos=i?i.length?i:[i.pageX,i.pageY]:null;if(!this._pos)this._pos=[(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),(window.innerHeight||document.documentElement.clientHeight||
441
+ document.body.clientHeight)/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");a.settings.onSelect=d;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);b.blockUI&&b.blockUI(this.dpDiv);b.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var c=b(a),d=b.data(a,"datepicker");if(c.hasClass(this.markerClassName)){var g=a.nodeName.toLowerCase();
442
+ b.removeData(a,"datepicker");if(g=="input"){d.append.remove();d.trigger.remove();c.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress)}else if(g=="div"||g=="span")c.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var c=b(a),d=b.data(a,"datepicker");if(c.hasClass(this.markerClassName)){var g=a.nodeName.toLowerCase();if(g=="input"){a.disabled=false;d.trigger.filter("button").each(function(){this.disabled=
443
+ false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(g=="div"||g=="span")c.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,function(i){return i==a?null:i})}},_disableDatepicker:function(a){var c=b(a),d=b.data(a,"datepicker");if(c.hasClass(this.markerClassName)){var g=a.nodeName.toLowerCase();if(g=="input"){a.disabled=true;d.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",
444
+ cursor:"default"})}else if(g=="div"||g=="span")c.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,function(i){return i==a?null:i});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;for(var c=0;c<this._disabledInputs.length;c++)if(this._disabledInputs[c]==a)return true;return false},_getInst:function(a){try{return b.data(a,"datepicker")}catch(c){throw"Missing instance data for this datepicker";
445
+ }},_optionDatepicker:function(a,c,d){var g=this._getInst(a);if(arguments.length==2&&typeof c=="string")return c=="defaults"?b.extend({},b.datepicker._defaults):g?c=="all"?b.extend({},g.settings):this._get(g,c):null;var i=c||{};if(typeof c=="string"){i={};i[c]=d}if(g){this._curInst==g&&this._hideDatepicker(null);var h=this._getDateDatepicker(a);f(g.settings,i);this._setDateDatepicker(a,h);this._updateDatepicker(g)}},_changeDatepicker:function(a,c,d){this._optionDatepicker(a,c,d)},_refreshDatepicker:function(a){(a=
446
+ this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,c,d){if(a=this._getInst(a)){this._setDate(a,c,d);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a);return a?this._getDate(a):null},_doKeyDown:function(a){var c=b.datepicker._getInst(a.target),d=true,g=c.dpDiv.is(".ui-datepicker-rtl");c._keyEvent=true;if(b.datepicker._datepickerShowing)switch(a.keyCode){case 9:b.datepicker._hideDatepicker(null,
447
+ "");break;case 13:d=b("td."+b.datepicker._dayOverClass+", td."+b.datepicker._currentClass,c.dpDiv);d[0]?b.datepicker._selectDay(a.target,c.selectedMonth,c.selectedYear,d[0]):b.datepicker._hideDatepicker(null,b.datepicker._get(c,"duration"));return false;case 27:b.datepicker._hideDatepicker(null,b.datepicker._get(c,"duration"));break;case 33:b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(c,"stepBigMonths"):-b.datepicker._get(c,"stepMonths"),"M");break;case 34:b.datepicker._adjustDate(a.target,
448
+ a.ctrlKey?+b.datepicker._get(c,"stepBigMonths"):+b.datepicker._get(c,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey)b.datepicker._clearDate(a.target);d=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey)b.datepicker._gotoToday(a.target);d=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,g?+1:-1,"D");d=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(c,"stepBigMonths"):-b.datepicker._get(c,
449
+ "stepMonths"),"M");break;case 38:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,-7,"D");d=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,g?-1:+1,"D");d=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(c,"stepBigMonths"):+b.datepicker._get(c,"stepMonths"),"M");break;case 40:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,+7,"D");d=a.ctrlKey||a.metaKey;break;default:d=false}else if(a.keyCode==
450
+ 36&&a.ctrlKey)b.datepicker._showDatepicker(this);else d=false;if(d){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var c=b.datepicker._getInst(a.target);if(b.datepicker._get(c,"constrainInput")){c=b.datepicker._possibleChars(b.datepicker._get(c,"dateFormat"));var d=String.fromCharCode(a.charCode==undefined?a.keyCode:a.charCode);return a.ctrlKey||d<" "||!c||c.indexOf(d)>-1}},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=b("input",a.parentNode)[0];
451
+ if(!(b.datepicker._isDisabledDatepicker(a)||b.datepicker._lastInput==a)){var c=b.datepicker._getInst(a),d=b.datepicker._get(c,"beforeShow");f(c.settings,d?d.apply(a,[a,c]):{});b.datepicker._hideDatepicker(null,"");b.datepicker._lastInput=a;b.datepicker._setDateFromField(c);if(b.datepicker._inDialog)a.value="";if(!b.datepicker._pos){b.datepicker._pos=b.datepicker._findPos(a);b.datepicker._pos[1]+=a.offsetHeight}var g=false;b(a).parents().each(function(){g|=b(this).css("position")=="fixed";return!g});
452
+ if(g&&b.browser.opera){b.datepicker._pos[0]-=document.documentElement.scrollLeft;b.datepicker._pos[1]-=document.documentElement.scrollTop}a={left:b.datepicker._pos[0],top:b.datepicker._pos[1]};b.datepicker._pos=null;c.rangeStart=null;c.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});b.datepicker._updateDatepicker(c);a=b.datepicker._checkOffset(c,a,g);c.dpDiv.css({position:b.datepicker._inDialog&&b.blockUI?"static":g?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"});
453
+ if(!c.inline){a=b.datepicker._get(c,"showAnim")||"show";d=b.datepicker._get(c,"duration");var i=function(){b.datepicker._datepickerShowing=true;b.browser.msie&&parseInt(b.browser.version,10)<7&&b("iframe.ui-datepicker-cover").css({width:c.dpDiv.width()+4,height:c.dpDiv.height()+4})};b.effects&&b.effects[a]?c.dpDiv.show(a,b.datepicker._get(c,"showOptions"),d,i):c.dpDiv[a](d,i);d==""&&i();c.input[0].type!="hidden"&&c.input[0].focus();b.datepicker._curInst=c}}},_updateDatepicker:function(a){var c={width:a.dpDiv.width()+
454
+ 4,height:a.dpDiv.height()+4},d=this;a.dpDiv.empty().append(this._generateHTML(a)).find("iframe.ui-datepicker-cover").css({width:c.width,height:c.height}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){b(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",
455
+ function(){if(!d._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])){b(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();c=this._getNumberOfMonths(a);var g=c[1];g>
456
+ 1?a.dpDiv.addClass("ui-datepicker-multi-"+g).css("width",17*g+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(c[0]!=1||c[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a.input&&a.input[0].type!="hidden"&&a==b.datepicker._curInst&&b(a.input[0]).focus()},_checkOffset:function(a,c,d){var g=a.dpDiv.outerWidth(),i=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():
457
+ 0,j=a.input?a.input.outerHeight():0,k=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+b(document).scrollLeft(),l=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)+b(document).scrollTop();c.left-=this._get(a,"isRTL")?g-h:0;c.left-=d&&c.left==a.input.offset().left?b(document).scrollLeft():0;c.top-=d&&c.top==a.input.offset().top+j?b(document).scrollTop():0;c.left-=c.left+g>k&&k>g?Math.abs(c.left+g-k):0;c.top-=c.top+i>l&&l>i?Math.abs(c.top+
458
+ i+j*2-l):0;return c},_findPos:function(a){for(;a&&(a.type=="hidden"||a.nodeType!=1);)a=a.nextSibling;a=b(a).offset();return[a.left,a.top]},_hideDatepicker:function(a,c){var d=this._curInst;if(!(!d||a&&d!=b.data(a,"datepicker"))){d.stayOpen&&this._selectDate("#"+d.id,this._formatDate(d,d.currentDay,d.currentMonth,d.currentYear));d.stayOpen=false;if(this._datepickerShowing){c=c!=null?c:this._get(d,"duration");a=this._get(d,"showAnim");var g=function(){b.datepicker._tidyDialog(d)};c!=""&&b.effects&&
459
+ b.effects[a]?d.dpDiv.hide(a,b.datepicker._get(d,"showOptions"),c,g):d.dpDiv[c==""?"hide":a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](c,g);c==""&&this._tidyDialog(d);if(c=this._get(d,"onClose"))c.apply(d.input?d.input[0]:null,[d.input?d.input.val():"",d]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(b.blockUI){b.unblockUI();b("body").append(this.dpDiv)}}this._inDialog=false}this._curInst=null}},
460
+ _tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(b.datepicker._curInst){a=b(a.target);a.parents("#"+b.datepicker._mainDivId).length==0&&!a.hasClass(b.datepicker.markerClassName)&&!a.hasClass(b.datepicker._triggerClass)&&b.datepicker._datepickerShowing&&!(b.datepicker._inDialog&&b.blockUI)&&b.datepicker._hideDatepicker(null,"")}},_adjustDate:function(a,c,d){a=b(a);var g=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(g,
461
+ c+(d=="M"?this._get(g,"showCurrentAtPos"):0),d);this._updateDatepicker(g)}},_gotoToday:function(a){a=b(a);var c=this._getInst(a[0]);if(this._get(c,"gotoCurrent")&&c.currentDay){c.selectedDay=c.currentDay;c.drawMonth=c.selectedMonth=c.currentMonth;c.drawYear=c.selectedYear=c.currentYear}else{var d=new Date;c.selectedDay=d.getDate();c.drawMonth=c.selectedMonth=d.getMonth();c.drawYear=c.selectedYear=d.getFullYear()}this._notifyChange(c);this._adjustDate(a)},_selectMonthYear:function(a,c,d){a=b(a);var g=
462
+ this._getInst(a[0]);g._selectingMonthYear=false;g["selected"+(d=="M"?"Month":"Year")]=g["draw"+(d=="M"?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10);this._notifyChange(g);this._adjustDate(a)},_clickMonthYear:function(a){a=this._getInst(b(a)[0]);a.input&&a._selectingMonthYear&&!b.browser.msie&&a.input[0].focus();a._selectingMonthYear=!a._selectingMonthYear},_selectDay:function(a,c,d,g){var i=b(a);if(!(b(g).hasClass(this._unselectableClass)||this._isDisabledDatepicker(i[0]))){i=this._getInst(i[0]);
463
+ i.selectedDay=i.currentDay=b("a",g).html();i.selectedMonth=i.currentMonth=c;i.selectedYear=i.currentYear=d;if(i.stayOpen)i.endDay=i.endMonth=i.endYear=null;this._selectDate(a,this._formatDate(i,i.currentDay,i.currentMonth,i.currentYear));if(i.stayOpen){i.rangeStart=this._daylightSavingAdjust(new Date(i.currentYear,i.currentMonth,i.currentDay));this._updateDatepicker(i)}}},_clearDate:function(a){a=b(a);var c=this._getInst(a[0]);c.stayOpen=false;c.endDay=c.endMonth=c.endYear=c.rangeStart=null;this._selectDate(a,
464
+ "")},_selectDate:function(a,c){a=this._getInst(b(a)[0]);c=c!=null?c:this._formatDate(a);a.input&&a.input.val(c);this._updateAlternate(a);var d=this._get(a,"onSelect");if(d)d.apply(a.input?a.input[0]:null,[c,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);else if(!a.stayOpen){this._hideDatepicker(null,this._get(a,"duration"));this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input[0].focus();this._lastInput=null}},_updateAlternate:function(a){var c=this._get(a,
465
+ "altField");if(c){var d=this._get(a,"altFormat")||this._get(a,"dateFormat"),g=this._getDate(a);dateStr=this.formatDate(d,g,this._getFormatConfig(a));b(c).each(function(){b(this).val(dateStr)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getFullYear(),a.getMonth(),a.getDate());var c=new Date(a.getFullYear(),0,4),d=c.getDay()||7;c.setDate(c.getDate()+1-d);if(d<4&&a<c){a.setDate(a.getDate()-3);return b.datepicker.iso8601Week(a)}else if(a>new Date(a.getFullYear(),
466
+ 11,28)){d=(new Date(a.getFullYear()+1,0,4)).getDay()||7;if(d>4&&(a.getDay()||7)<d-3)return 1}return Math.floor((a-c)/864E5/7)+1},parseDate:function(a,c,d){if(a==null||c==null)throw"Invalid arguments";c=typeof c=="object"?c.toString():c+"";if(c=="")return null;for(var g=(d?d.shortYearCutoff:null)||this._defaults.shortYearCutoff,i=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,h=(d?d.dayNames:null)||this._defaults.dayNames,j=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,k=(d?d.monthNames:
467
+ null)||this._defaults.monthNames,l=d=-1,m=-1,q=-1,o=false,p=function(w){(w=A+1<a.length&&a.charAt(A+1)==w)&&A++;return w},n=function(w){p(w);for(var z=w=w=="@"?14:w=="y"?4:w=="o"?3:2,y=0;z>0&&u<c.length&&c.charAt(u)>="0"&&c.charAt(u)<="9";){y=y*10+parseInt(c.charAt(u++),10);z--}if(z==w)throw"Missing number at position "+u;return y},r=function(w,z,y){w=p(w)?y:z;for(y=z=0;y<w.length;y++)z=Math.max(z,w[y].length);y="";for(var F=u;z>0&&u<c.length;){y+=c.charAt(u++);for(var D=0;D<w.length;D++)if(y==w[D])return D+
468
+ 1;z--}throw"Unknown name at position "+F;},s=function(){if(c.charAt(u)!=a.charAt(A))throw"Unexpected literal at position "+u;u++},u=0,A=0;A<a.length;A++)if(o)if(a.charAt(A)=="'"&&!p("'"))o=false;else s();else switch(a.charAt(A)){case "d":m=n("d");break;case "D":r("D",i,h);break;case "o":q=n("o");break;case "m":l=n("m");break;case "M":l=r("M",j,k);break;case "y":d=n("y");break;case "@":var B=new Date(n("@"));d=B.getFullYear();l=B.getMonth()+1;m=B.getDate();break;case "'":if(p("'"))s();else o=true;
469
+ break;default:s()}if(d==-1)d=(new Date).getFullYear();else if(d<100)d+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d<=g?0:-100);if(q>-1){l=1;m=q;do{g=this._getDaysInMonth(d,l-1);if(m<=g)break;l++;m-=g}while(1)}B=this._daylightSavingAdjust(new Date(d,l-1,m));if(B.getFullYear()!=d||B.getMonth()+1!=l||B.getDate()!=m)throw"Invalid date";return B},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",
470
+ RSS:"D, d M y",TIMESTAMP:"@",W3C:"yy-mm-dd",formatDate:function(a,c,d){if(!c)return"";var g=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,i=(d?d.dayNames:null)||this._defaults.dayNames,h=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort;d=(d?d.monthNames:null)||this._defaults.monthNames;var j=function(r){(r=o+1<a.length&&a.charAt(o+1)==r)&&o++;return r},k=function(r,s,u){s=""+s;if(j(r))for(;s.length<u;)s="0"+s;return s},l=function(r,s,u,A){return j(r)?A[s]:u[s]},m="",q=false;if(c)for(var o=
471
+ 0;o<a.length;o++)if(q)if(a.charAt(o)=="'"&&!j("'"))q=false;else m+=a.charAt(o);else switch(a.charAt(o)){case "d":m+=k("d",c.getDate(),2);break;case "D":m+=l("D",c.getDay(),g,i);break;case "o":for(var p=c.getDate(),n=c.getMonth()-1;n>=0;n--)p+=this._getDaysInMonth(c.getFullYear(),n);m+=k("o",p,3);break;case "m":m+=k("m",c.getMonth()+1,2);break;case "M":m+=l("M",c.getMonth(),h,d);break;case "y":m+=j("y")?c.getFullYear():(c.getYear()%100<10?"0":"")+c.getYear()%100;break;case "@":m+=c.getTime();break;
472
+ case "'":if(j("'"))m+="'";else q=true;break;default:m+=a.charAt(o)}return m},_possibleChars:function(a){for(var c="",d=false,g=0;g<a.length;g++)if(d)if(a.charAt(g)=="'"&&!lookAhead("'"))d=false;else c+=a.charAt(g);else switch(a.charAt(g)){case "d":case "m":case "y":case "@":c+="0123456789";break;case "D":case "M":return null;case "'":if(lookAhead("'"))c+="'";else d=true;break;default:c+=a.charAt(g)}return c},_get:function(a,c){return a.settings[c]!==undefined?a.settings[c]:this._defaults[c]},_setDateFromField:function(a){var c=
473
+ this._get(a,"dateFormat"),d=a.input?a.input.val():null;a.endDay=a.endMonth=a.endYear=null;var g=defaultDate=this._getDefaultDate(a),i=this._getFormatConfig(a);try{g=this.parseDate(c,d,i)||defaultDate}catch(h){this.log(h);g=defaultDate}a.selectedDay=g.getDate();a.drawMonth=a.selectedMonth=g.getMonth();a.drawYear=a.selectedYear=g.getFullYear();a.currentDay=d?g.getDate():0;a.currentMonth=d?g.getMonth():0;a.currentYear=d?g.getFullYear():0;this._adjustInstDate(a)},_getDefaultDate:function(a){var c=this._determineDate(this._get(a,
474
+ "defaultDate"),new Date),d=this._getMinMaxDate(a,"min",true);a=this._getMinMaxDate(a,"max");c=d&&c<d?d:c;return c=a&&c>a?a:c},_determineDate:function(a,c){var d=function(i){var h=new Date;h.setDate(h.getDate()+i);return h},g=function(i,h){var j=new Date,k=j.getFullYear(),l=j.getMonth();j=j.getDate();for(var m=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,q=m.exec(i);q;){switch(q[2]||"d"){case "d":case "D":j+=parseInt(q[1],10);break;case "w":case "W":j+=parseInt(q[1],10)*7;break;case "m":case "M":l+=parseInt(q[1],
475
+ 10);j=Math.min(j,h(k,l));break;case "y":case "Y":k+=parseInt(q[1],10);j=Math.min(j,h(k,l));break}q=m.exec(i)}return new Date(k,l,j)};if(a=(a=a==null?c:typeof a=="string"?g(a,this._getDaysInMonth):typeof a=="number"?isNaN(a)?c:d(a):a)&&a.toString()=="Invalid Date"?c:a){a.setHours(0);a.setMinutes(0);a.setSeconds(0);a.setMilliseconds(0)}return this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,
476
+ c){var d=!c,g=a.selectedMonth,i=a.selectedYear;c=this._determineDate(c,new Date);a.selectedDay=a.currentDay=c.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=c.getMonth();a.drawYear=a.selectedYear=a.currentYear=c.getFullYear();if(g!=a.selectedMonth||i!=a.selectedYear)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(d?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,
477
+ a.currentDay))},_generateHTML:function(a){var c=new Date;c=this._daylightSavingAdjust(new Date(c.getFullYear(),c.getMonth(),c.getDate()));var d=this._get(a,"isRTL"),g=this._get(a,"showButtonPanel"),i=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),j=this._getNumberOfMonths(a),k=this._get(a,"showCurrentAtPos"),l=this._get(a,"stepMonths");this._get(a,"stepBigMonths");var m=j[0]!=1||j[1]!=1,q=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,
478
+ a.currentDay)),o=this._getMinMaxDate(a,"min",true),p=this._getMinMaxDate(a,"max");k=a.drawMonth-k;var n=a.drawYear;if(k<0){k+=12;n--}if(p){var r=this._daylightSavingAdjust(new Date(p.getFullYear(),p.getMonth()-j[1]+1,p.getDate()));for(r=o&&r<o?o:r;this._daylightSavingAdjust(new Date(n,k,1))>r;){k--;if(k<0){k=11;n--}}}a.drawMonth=k;a.drawYear=n;r=this._get(a,"prevText");r=!h?r:this.formatDate(r,this._daylightSavingAdjust(new Date(n,k-l,1)),this._getFormatConfig(a));r=this._canAdjustMonth(a,-1,n,k)?
479
+ '<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+a.id+"', -"+l+", 'M');\" title=\""+r+'"><span class="ui-icon ui-icon-circle-triangle-'+(d?"e":"w")+'">'+r+"</span></a>":i?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+r+'"><span class="ui-icon ui-icon-circle-triangle-'+(d?"e":"w")+'">'+r+"</span></a>";var s=this._get(a,"nextText");s=!h?s:this.formatDate(s,this._daylightSavingAdjust(new Date(n,k+l,1)),this._getFormatConfig(a));
480
+ i=this._canAdjustMonth(a,+1,n,k)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+a.id+"', +"+l+", 'M');\" title=\""+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(d?"w":"e")+'">'+s+"</span></a>":i?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(d?"w":"e")+'">'+s+"</span></a>";l=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&&a.currentDay?q:c;l=!h?l:this.formatDate(l,
481
+ s,this._getFormatConfig(a));h=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";g=g?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(d?h:"")+(this._isInRange(a,s)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery.datepicker._gotoToday(\'#'+a.id+"');\">"+l+"</button>":
482
+ "")+(d?"":h)+"</div>":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;l=this._get(a,"dayNames");this._get(a,"dayNamesShort");s=this._get(a,"dayNamesMin");var u=this._get(a,"monthNames"),A=this._get(a,"monthNamesShort"),B=this._get(a,"beforeShowDay"),w=this._get(a,"showOtherMonths");this._get(a,"calculateWeek");for(var z=a.endDay?this._daylightSavingAdjust(new Date(a.endYear,a.endMonth,a.endDay)):q,y=this._getDefaultDate(a),F="",D=0;D<j[0];D++){for(var L="",G=0;G<j[1];G++){var J=this._daylightSavingAdjust(new Date(n,
483
+ k,a.selectedDay)),x=" ui-corner-all",C="";if(m){C+='<div class="ui-datepicker-group ui-datepicker-group-';switch(G){case 0:C+="first";x=" ui-corner-"+(d?"right":"left");break;case j[1]-1:C+="last";x=" ui-corner-"+(d?"left":"right");break;default:C+="middle";x="";break}C+='">'}C+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+x+'">'+(/all|left/.test(x)&&D==0?d?i:r:"")+(/all|right/.test(x)&&D==0?d?r:i:"")+this._generateMonthYearHeader(a,k,n,o,p,J,D>0||G>0,u,A)+'</div><table class="ui-datepicker-calendar"><thead><tr>';
484
+ var E="";for(x=0;x<7;x++){var v=(x+h)%7;E+="<th"+((x+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+l[v]+'">'+s[v]+"</span></th>"}C+=E+"</tr></thead><tbody>";E=this._getDaysInMonth(n,k);if(n==a.selectedYear&&k==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,E);x=(this._getFirstDayOfMonth(n,k)-h+7)%7;E=m?6:Math.ceil((x+E)/7);v=this._daylightSavingAdjust(new Date(n,k,1-x));for(var M=0;M<E;M++){C+="<tr>";var N="";for(x=0;x<7;x++){var I=B?B.apply(a.input?a.input[0]:null,[v]):[true,
485
+ ""],H=v.getMonth()!=k,K=H||!I[0]||o&&v<o||p&&v>p;N+='<td class="'+((x+h+6)%7>=5?" ui-datepicker-week-end":"")+(H?" ui-datepicker-other-month":"")+(v.getTime()==J.getTime()&&k==a.selectedMonth&&a._keyEvent||y.getTime()==v.getTime()&&y.getTime()==J.getTime()?" "+this._dayOverClass:"")+(K?" "+this._unselectableClass+" ui-state-disabled":"")+(H&&!w?"":" "+I[1]+(v.getTime()>=q.getTime()&&v.getTime()<=z.getTime()?" "+this._currentClass:"")+(v.getTime()==c.getTime()?" ui-datepicker-today":""))+'"'+((!H||
486
+ w)&&I[2]?' title="'+I[2]+'"':"")+(K?"":" onclick=\"DP_jQuery.datepicker._selectDay('#"+a.id+"',"+k+","+n+', this);return false;"')+">"+(H?w?v.getDate():"&#xa0;":K?'<span class="ui-state-default">'+v.getDate()+"</span>":'<a class="ui-state-default'+(v.getTime()==c.getTime()?" ui-state-highlight":"")+(v.getTime()>=q.getTime()&&v.getTime()<=z.getTime()?" ui-state-active":"")+'" href="#">'+v.getDate()+"</a>")+"</td>";v.setDate(v.getDate()+1);v=this._daylightSavingAdjust(v)}C+=N+"</tr>"}k++;if(k>11){k=
487
+ 0;n++}C+="</tbody></table>"+(m?"</div>"+(j[0]>0&&G==j[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");L+=C}F+=L}F+=g+(b.browser.msie&&parseInt(b.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");a._keyEvent=false;return F},_generateMonthYearHeader:function(a,c,d,g,i,h,j,k,l){g=a.rangeStart&&g&&h<g?h:g;h=this._get(a,"changeMonth");var m=this._get(a,"changeYear"),q=this._get(a,"showMonthAfterYear"),o='<div class="ui-datepicker-title">',
488
+ p="";if(j||!h)p+='<span class="ui-datepicker-month">'+k[c]+"</span> ";else{k=g&&g.getFullYear()==d;var n=i&&i.getFullYear()==d;p+='<select class="ui-datepicker-month" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+a.id+"', this, 'M');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+a.id+"');\">";for(var r=0;r<12;r++)if((!k||r>=g.getMonth())&&(!n||r<=i.getMonth()))p+='<option value="'+r+'"'+(r==c?' selected="selected"':"")+">"+l[r]+"</option>";p+="</select>"}q||(o+=p+((j||h||m)&&!(h&&m)?
489
+ "&#xa0;":""));if(j||!m)o+='<span class="ui-datepicker-year">'+d+"</span>";else{c=this._get(a,"yearRange").split(":");k=l=0;if(c.length!=2){l=d-10;k=d+10}else if(c[0].charAt(0)=="+"||c[0].charAt(0)=="-"){l=d+parseInt(c[0],10);k=d+parseInt(c[1],10)}else{l=parseInt(c[0],10);k=parseInt(c[1],10)}l=g?Math.max(l,g.getFullYear()):l;k=i?Math.min(k,i.getFullYear()):k;for(o+='<select class="ui-datepicker-year" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+a.id+"', this, 'Y');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+
490
+ a.id+"');\">";l<=k;l++)o+='<option value="'+l+'"'+(l==d?' selected="selected"':"")+">"+l+"</option>";o+="</select>"}if(q)o+=(j||h||m?"&#xa0;":"")+p;o+="</div>";return o},_adjustInstDate:function(a,c,d){var g=a.drawYear+(d=="Y"?c:0),i=a.drawMonth+(d=="M"?c:0);c=Math.min(a.selectedDay,this._getDaysInMonth(g,i))+(d=="D"?c:0);g=this._daylightSavingAdjust(new Date(g,i,c));i=this._getMinMaxDate(a,"min",true);c=this._getMinMaxDate(a,"max");g=i&&g<i?i:g;g=c&&g>c?c:g;a.selectedDay=g.getDate();a.drawMonth=
491
+ a.selectedMonth=g.getMonth();a.drawYear=a.selectedYear=g.getFullYear();if(d=="M"||d=="Y")this._notifyChange(a)},_notifyChange:function(a){var c=this._get(a,"onChangeMonthYear");if(c)c.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,c,d){c=this._determineDate(this._get(a,c+"Date"),null);return!d||!a.rangeStart?c:!c||a.rangeStart>c?a.rangeStart:
492
+ c},_getDaysInMonth:function(a,c){return 32-(new Date(a,c,32)).getDate()},_getFirstDayOfMonth:function(a,c){return(new Date(a,c,1)).getDay()},_canAdjustMonth:function(a,c,d,g){var i=this._getNumberOfMonths(a);d=this._daylightSavingAdjust(new Date(d,g+(c<0?c:i[1]),1));c<0&&d.setDate(this._getDaysInMonth(d.getFullYear(),d.getMonth()));return this._isInRange(a,d)},_isInRange:function(a,c){var d=!a.rangeStart?null:this._daylightSavingAdjust(new Date(a.selectedYear,a.selectedMonth,a.selectedDay));d=(d=
493
+ d&&a.rangeStart<d?a.rangeStart:d)||this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!d||c>=d)&&(!a||c<=a)},_getFormatConfig:function(a){var c=this._get(a,"shortYearCutoff");c=typeof c!="string"?c:(new Date).getFullYear()%100+parseInt(c,10);return{shortYearCutoff:c,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,c,d,g){if(!c){a.currentDay=a.selectedDay;
494
+ a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}c=c?typeof c=="object"?c:this._daylightSavingAdjust(new Date(g,d,c)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),c,this._getFormatConfig(a))}});b.fn.datepicker=function(a){if(!b.datepicker.initialized){b(document).mousedown(b.datepicker._checkExternalClick).find("body").append(b.datepicker.dpDiv);b.datepicker.initialized=true}var c=Array.prototype.slice.call(arguments,
495
+ 1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"))return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(c));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(c));return this.each(function(){typeof a=="string"?b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this].concat(c)):b.datepicker._attachDatepicker(this,a)})};b.datepicker=new e;b.datepicker.initialized=false;b.datepicker.uuid=
496
+ (new Date).getTime();b.datepicker.version="1.7.3";window.DP_jQuery=b})(jQuery);
497
+ (function(b){var e={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"};b.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var f=this,a=this.options,c=a.title||this.originalTitle||"&nbsp;",d=b.ui.dialog.getTitleId(this.element),g=(this.uiDialog=
498
+ b("<div/>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+a.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:a.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(j){a.closeOnEscape&&j.keyCode&&j.keyCode==b.ui.keyCode.ESCAPE&&f.close(j)}).attr({role:"dialog","aria-labelledby":d}).mousedown(function(j){f.moveToTop(false,j)});this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);
499
+ var i=(this.uiDialogTitlebar=b("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g),h=b('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){h.addClass("ui-state-hover")},function(){h.removeClass("ui-state-hover")}).focus(function(){h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-focus")}).mousedown(function(j){j.stopPropagation()}).click(function(j){f.close(j);return false}).appendTo(i);
500
+ (this.uiDialogTitlebarCloseText=b("<span/>")).addClass("ui-icon ui-icon-closethick").text(a.closeText).appendTo(h);b("<span/>").addClass("ui-dialog-title").attr("id",d).html(c).prependTo(i);i.find("*").add(i).disableSelection();a.draggable&&b.fn.draggable&&this._makeDraggable();a.resizable&&b.fn.resizable&&this._makeResizable();this._createButtons(a.buttons);this._isOpen=false;a.bgiframe&&b.fn.bgiframe&&g.bgiframe();a.autoOpen&&this.open()},destroy:function(){this.overlay&&this.overlay.destroy();
501
+ this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle)},close:function(f){var a=this;if(false!==a._trigger("beforeclose",f)){a.overlay&&a.overlay.destroy();a.uiDialog.unbind("keypress.ui-dialog");a.options.hide?a.uiDialog.hide(a.options.hide,function(){a._trigger("close",f)}):a.uiDialog.hide()&&a._trigger("close",f);b.ui.dialog.overlay.resize();
502
+ a._isOpen=false;if(a.options.modal){var c=0;b(".ui-dialog").each(function(){if(this!=a.uiDialog[0])c=Math.max(c,b(this).css("z-index"))});b.ui.dialog.maxZ=c}}},isOpen:function(){return this._isOpen},moveToTop:function(f,a){if(this.options.modal&&!f||!this.options.stack&&!this.options.modal)return this._trigger("focus",a);if(this.options.zIndex>b.ui.dialog.maxZ)b.ui.dialog.maxZ=this.options.zIndex;this.overlay&&this.overlay.$el.css("z-index",b.ui.dialog.overlay.maxZ=++b.ui.dialog.maxZ);f={scrollTop:this.element.attr("scrollTop"),
503
+ scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++b.ui.dialog.maxZ);this.element.attr(f);this._trigger("focus",a)},open:function(){if(!this._isOpen){var f=this.options,a=this.uiDialog;this.overlay=f.modal?new b.ui.dialog.overlay(this):null;a.next().length&&a.appendTo("body");this._size();this._position(f.position);a.show(f.show);this.moveToTop(true);f.modal&&a.bind("keypress.ui-dialog",function(c){if(c.keyCode==b.ui.keyCode.TAB){var d=b(":tabbable",this),g=d.filter(":first")[0],
504
+ i=d.filter(":last")[0];if(c.target==i&&!c.shiftKey)setTimeout(function(){g.focus()},1);else c.target==g&&c.shiftKey&&setTimeout(function(){i.focus()},1)}});b([]).add(a.find(".ui-dialog-content :tabbable:first")).add(a.find(".ui-dialog-buttonpane :tabbable:first")).add(a).filter(":first").focus();this._trigger("open");this._isOpen=true}},_createButtons:function(f){var a=this,c=false,d=b("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiDialog.find(".ui-dialog-buttonpane").remove();
505
+ typeof f=="object"&&f!==null&&b.each(f,function(){return!(c=true)});if(c){b.each(f,function(g,i){b('<button type="button"></button>').addClass("ui-state-default ui-corner-all").text(g).click(function(){i.apply(a.element[0],arguments)}).hover(function(){b(this).addClass("ui-state-hover")},function(){b(this).removeClass("ui-state-hover")}).focus(function(){b(this).addClass("ui-state-focus")}).blur(function(){b(this).removeClass("ui-state-focus")}).appendTo(d)});d.appendTo(this.uiDialog)}},_makeDraggable:function(){var f=
506
+ this,a=this.options,c;this.uiDialog.draggable({cancel:".ui-dialog-content",handle:".ui-dialog-titlebar",containment:"document",start:function(){c=a.height;b(this).height(b(this).height()).addClass("ui-dialog-dragging");a.dragStart&&a.dragStart.apply(f.element[0],arguments)},drag:function(){a.drag&&a.drag.apply(f.element[0],arguments)},stop:function(){b(this).removeClass("ui-dialog-dragging").height(c);a.dragStop&&a.dragStop.apply(f.element[0],arguments);b.ui.dialog.overlay.resize()}})},_makeResizable:function(f){f=
507
+ f===undefined?this.options.resizable:f;var a=this,c=this.options;this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,maxWidth:c.maxWidth,maxHeight:c.maxHeight,minWidth:c.minWidth,minHeight:c.minHeight,start:function(){b(this).addClass("ui-dialog-resizing");c.resizeStart&&c.resizeStart.apply(a.element[0],arguments)},resize:function(){c.resize&&c.resize.apply(a.element[0],arguments)},handles:typeof f=="string"?f:"n,e,s,w,se,sw,ne,nw",stop:function(){b(this).removeClass("ui-dialog-resizing");
508
+ c.height=b(this).height();c.width=b(this).width();c.resizeStop&&c.resizeStop.apply(a.element[0],arguments);b.ui.dialog.overlay.resize()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_position:function(f){var a=b(window),c=b(document),d=c.scrollTop();c=c.scrollLeft();var g=d;if(b.inArray(f,["center","top","right","bottom","left"])>=0)f=[f=="right"||f=="left"?f:"center",f=="top"||f=="bottom"?f:"middle"];if(f.constructor!=Array)f=["center","middle"];if(f[0].constructor==Number)c+=
509
+ f[0];else switch(f[0]){case "left":c+=0;break;case "right":c+=a.width()-this.uiDialog.outerWidth();break;default:case "center":c+=(a.width()-this.uiDialog.outerWidth())/2}if(f[1].constructor==Number)d+=f[1];else switch(f[1]){case "top":d+=0;break;case "bottom":d+=a.height()-this.uiDialog.outerHeight();break;default:case "middle":d+=(a.height()-this.uiDialog.outerHeight())/2}d=Math.max(d,g);this.uiDialog.css({top:d,left:c})},_setData:function(f,a){e[f]&&this.uiDialog.data(e[f],a);switch(f){case "buttons":this._createButtons(a);
510
+ break;case "closeText":this.uiDialogTitlebarCloseText.text(a);break;case "dialogClass":this.uiDialog.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+a);break;case "draggable":a?this._makeDraggable():this.uiDialog.draggable("destroy");break;case "height":this.uiDialog.height(a);break;case "position":this._position(a);break;case "resizable":var c=this.uiDialog,d=this.uiDialog.is(":data(resizable)");d&&!a&&c.resizable("destroy");d&&typeof a=="string"&&
511
+ c.resizable("option","handles",a);d||this._makeResizable(a);break;case "title":b(".ui-dialog-title",this.uiDialogTitlebar).html(a||"&nbsp;");break;case "width":this.uiDialog.width(a);break}b.widget.prototype._setData.apply(this,arguments)},_size:function(){var f=this.options;this.element.css({height:0,minHeight:0,width:"auto"});var a=this.uiDialog.css({height:"auto",width:f.width}).height();this.element.css({minHeight:Math.max(f.minHeight-a,0),height:f.height=="auto"?"auto":Math.max(f.height-a,0)})}});
512
+ b.extend(b.ui.dialog,{version:"1.7.3",defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},getter:"isOpen",uuid:0,maxZ:0,getTitleId:function(f){return"ui-dialog-title-"+(f.attr("id")||++this.uuid)},overlay:function(f){this.$el=b.ui.dialog.overlay.create(f)}});
513
+ b.extend(b.ui.dialog.overlay,{instances:[],maxZ:0,events:b.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(f){return f+".dialog-overlay"}).join(" "),create:function(f){if(this.instances.length===0){setTimeout(function(){b.ui.dialog.overlay.instances.length&&b(document).bind(b.ui.dialog.overlay.events,function(c){return(b(c.target).parents(".ui-dialog").css("zIndex")||0)>b.ui.dialog.overlay.maxZ})},1);b(document).bind("keydown.dialog-overlay",function(c){f.options.closeOnEscape&&
514
+ c.keyCode&&c.keyCode==b.ui.keyCode.ESCAPE&&f.close(c)});b(window).bind("resize.dialog-overlay",b.ui.dialog.overlay.resize)}var a=b("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});f.options.bgiframe&&b.fn.bgiframe&&a.bgiframe();this.instances.push(a);return a},destroy:function(f){this.instances.splice(b.inArray(this.instances,f),1);this.instances.length===0&&b([document,window]).unbind(".dialog-overlay");f.remove();var a=0;b.each(this.instances,
515
+ function(){a=Math.max(a,this.css("z-index"))});this.maxZ=a},height:function(){if(b.browser.msie&&b.browser.version<7){var f=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),a=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return f<a?b(window).height()+"px":f+"px"}else return b(document).height()+"px"},width:function(){if(b.browser.msie&&b.browser.version<7){var f=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),a=Math.max(document.documentElement.offsetWidth,
516
+ document.body.offsetWidth);return f<a?b(window).width()+"px":f+"px"}else return b(document).width()+"px"},resize:function(){var f=b([]);b.each(b.ui.dialog.overlay.instances,function(){f=f.add(this)});f.css({width:0,height:0}).css({width:b.ui.dialog.overlay.width(),height:b.ui.dialog.overlay.height()})}});b.extend(b.ui.dialog.overlay.prototype,{destroy:function(){b.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
517
+ (function(b){b.widget("ui.draggable",b.extend({},b.ui.mouse,{_init: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")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");
518
+ this._mouseDestroy()}},_mouseCapture:function(e){var f=this.options;if(this.helper||f.disabled||b(e.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(e);if(!this.handle)return false;return true},_mouseStart:function(e){var f=this.options;this.helper=this._createHelper(e);this._cacheHelperProportions();if(b.ui.ddmanager)b.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();
519
+ this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};b.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(e);this.originalPageX=e.pageX;this.originalPageY=e.pageY;f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt);f.containment&&this._setContainment();this._trigger("start",e);this._cacheHelperProportions();b.ui.ddmanager&&
520
+ !f.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,e);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(e,true);return true},_mouseDrag:function(e,f){this.position=this._generatePosition(e);this.positionAbs=this._convertPositionTo("absolute");if(!f){f=this._uiHash();this._trigger("drag",e,f);this.position=f.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+
521
+ "px";b.ui.ddmanager&&b.ui.ddmanager.drag(this,e);return false},_mouseStop:function(e){var f=false;if(b.ui.ddmanager&&!this.options.dropBehaviour)f=b.ui.ddmanager.drop(this,e);if(this.dropped){f=this.dropped;this.dropped=false}if(this.options.revert=="invalid"&&!f||this.options.revert=="valid"&&f||this.options.revert===true||b.isFunction(this.options.revert)&&this.options.revert.call(this.element,f)){var a=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){a._trigger("stop",
522
+ e);a._clear()})}else{this._trigger("stop",e);this._clear()}return false},_getHandle:function(e){var f=!this.options.handle||!b(this.options.handle,this.element).length?true:false;b(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==e.target)f=true});return f},_createHelper:function(e){var f=this.options;e=b.isFunction(f.helper)?b(f.helper.apply(this.element[0],[e])):f.helper=="clone"?this.element.clone():this.element;e.parents("body").length||e.appendTo(f.appendTo=="parent"?
523
+ this.element[0].parentNode:f.appendTo);e[0]!=this.element[0]&&!/(fixed|absolute)/.test(e.css("position"))&&e.css("position","absolute");return e},_adjustOffsetFromHelper:function(e){if(e.left!=undefined)this.offset.click.left=e.left+this.margins.left;if(e.right!=undefined)this.offset.click.left=this.helperProportions.width-e.right+this.margins.left;if(e.top!=undefined)this.offset.click.top=e.top+this.margins.top;if(e.bottom!=undefined)this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top},
524
+ _getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){e.left+=this.scrollParent.scrollLeft();e.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)e={top:0,left:0};return{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),
525
+ 10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var e=this.element.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.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"),
526
+ 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,b(e.containment=="document"?document:window).width()-this.helperProportions.width-
527
+ this.margins.left,(b(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(e.containment)&&e.containment.constructor!=Array){var f=b(e.containment)[0];if(f){e=b(e.containment).offset();var a=b(f).css("overflow")!="hidden";this.containment=[e.left+(parseInt(b(f).css("borderLeftWidth"),10)||0)+(parseInt(b(f).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(b(f).css("borderTopWidth"),
528
+ 10)||0)+(parseInt(b(f).css("paddingTop"),10)||0)-this.margins.top,e.left+(a?Math.max(f.scrollWidth,f.offsetWidth):f.offsetWidth)-(parseInt(b(f).css("borderLeftWidth"),10)||0)-(parseInt(b(f).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(a?Math.max(f.scrollHeight,f.offsetHeight):f.offsetHeight)-(parseInt(b(f).css("borderTopWidth"),10)||0)-(parseInt(b(f).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(e.containment.constructor==
529
+ Array)this.containment=e.containment},_convertPositionTo:function(e,f){if(!f)f=this.position;e=e=="absolute"?1:-1;var a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,c=/(html|body)/i.test(a[0].tagName);return{top:f.top+this.offset.relative.top*e+this.offset.parent.top*e-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():c?0:a.scrollTop())*
530
+ e),left:f.left+this.offset.relative.left*e+this.offset.parent.left*e-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():c?0:a.scrollLeft())*e)}},_generatePosition:function(e){var f=this.options,a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,c=/(html|body)/i.test(a[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=
531
+ document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var d=e.pageX,g=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0])d=this.containment[0]+this.offset.click.left;if(e.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(e.pageX-this.offset.click.left>this.containment[2])d=this.containment[2]+this.offset.click.left;if(e.pageY-this.offset.click.top>this.containment[3])g=
532
+ this.containment[3]+this.offset.click.top}if(f.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/f.grid[1])*f.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-f.grid[1]:g+f.grid[1]:g;d=this.originalPageX+Math.round((d-this.originalPageX)/f.grid[0])*f.grid[0];d=this.containment?!(d-this.offset.click.left<this.containment[0]||d-this.offset.click.left>this.containment[2])?
533
+ d:!(d-this.offset.click.left<this.containment[0])?d-f.grid[0]:d+f.grid[0]:d}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():c?0:a.scrollTop()),left:d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():c?0:a.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");
534
+ this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(e,f,a){a=a||this._uiHash();b.ui.plugin.call(this,e,[f,a]);if(e=="drag")this.positionAbs=this._convertPositionTo("absolute");return b.widget.prototype._trigger.call(this,e,f,a)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));b.extend(b.ui.draggable,{version:"1.7.3",
535
+ eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,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}});b.ui.plugin.add("draggable","connectToSortable",{start:function(e,
536
+ f){var a=b(this).data("draggable"),c=a.options,d=b.extend({},f,{item:a.element});a.sortables=[];b(c.connectToSortable).each(function(){var g=b.data(this,"sortable");if(g&&!g.options.disabled){a.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",e,d)}})},stop:function(e,f){var a=b(this).data("draggable"),c=b.extend({},f,{item:a.element});b.each(a.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;a.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=
537
+ false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(e);this.instance.options.helper=this.instance.options._helper;a.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",e,c)}})},drag:function(e,f){var a=b(this).data("draggable"),c=this;b.each(a.sortables,function(){this.instance.positionAbs=a.positionAbs;this.instance.helperProportions=a.helperProportions;
538
+ this.instance.offset.click=a.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=b(c).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return f.helper[0]};e.target=this.instance.currentItem[0];this.instance._mouseCapture(e,true);this.instance._mouseStart(e,true,true);this.instance.offset.click.top=
539
+ a.offset.click.top;this.instance.offset.click.left=a.offset.click.left;this.instance.offset.parent.left-=a.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=a.offset.parent.top-this.instance.offset.parent.top;a._trigger("toSortable",e);a.dropped=this.instance.element;a.currentItem=a.element;this.instance.fromOutside=a}this.instance.currentItem&&this.instance._mouseDrag(e)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;
540
+ this.instance.options.revert=false;this.instance._trigger("out",e,this.instance._uiHash(this.instance));this.instance._mouseStop(e,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();a._trigger("fromSortable",e);a.dropped=false}})}});b.ui.plugin.add("draggable","cursor",{start:function(){var e=b("body"),f=b(this).data("draggable").options;if(e.css("cursor"))f._cursor=e.css("cursor");e.css("cursor",
541
+ f.cursor)},stop:function(){var e=b(this).data("draggable").options;e._cursor&&b("body").css("cursor",e._cursor)}});b.ui.plugin.add("draggable","iframeFix",{start:function(){var e=b(this).data("draggable").options;b(e.iframeFix===true?"iframe":e.iframeFix).each(function(){b('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(b(this).offset()).appendTo("body")})},stop:function(){b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});
542
+ b.ui.plugin.add("draggable","opacity",{start:function(e,f){e=b(f.helper);f=b(this).data("draggable").options;if(e.css("opacity"))f._opacity=e.css("opacity");e.css("opacity",f.opacity)},stop:function(e,f){e=b(this).data("draggable").options;e._opacity&&b(f.helper).css("opacity",e._opacity)}});b.ui.plugin.add("draggable","scroll",{start:function(){var e=b(this).data("draggable");if(e.scrollParent[0]!=document&&e.scrollParent[0].tagName!="HTML")e.overflowOffset=e.scrollParent.offset()},drag:function(e){var f=
543
+ b(this).data("draggable"),a=f.options,c=false;if(f.scrollParent[0]!=document&&f.scrollParent[0].tagName!="HTML"){if(!a.axis||a.axis!="x")if(f.overflowOffset.top+f.scrollParent[0].offsetHeight-e.pageY<a.scrollSensitivity)f.scrollParent[0].scrollTop=c=f.scrollParent[0].scrollTop+a.scrollSpeed;else if(e.pageY-f.overflowOffset.top<a.scrollSensitivity)f.scrollParent[0].scrollTop=c=f.scrollParent[0].scrollTop-a.scrollSpeed;if(!a.axis||a.axis!="y")if(f.overflowOffset.left+f.scrollParent[0].offsetWidth-e.pageX<
544
+ a.scrollSensitivity)f.scrollParent[0].scrollLeft=c=f.scrollParent[0].scrollLeft+a.scrollSpeed;else if(e.pageX-f.overflowOffset.left<a.scrollSensitivity)f.scrollParent[0].scrollLeft=c=f.scrollParent[0].scrollLeft-a.scrollSpeed}else{if(!a.axis||a.axis!="x")if(e.pageY-b(document).scrollTop()<a.scrollSensitivity)c=b(document).scrollTop(b(document).scrollTop()-a.scrollSpeed);else if(b(window).height()-(e.pageY-b(document).scrollTop())<a.scrollSensitivity)c=b(document).scrollTop(b(document).scrollTop()+
545
+ a.scrollSpeed);if(!a.axis||a.axis!="y")if(e.pageX-b(document).scrollLeft()<a.scrollSensitivity)c=b(document).scrollLeft(b(document).scrollLeft()-a.scrollSpeed);else if(b(window).width()-(e.pageX-b(document).scrollLeft())<a.scrollSensitivity)c=b(document).scrollLeft(b(document).scrollLeft()+a.scrollSpeed)}c!==false&&b.ui.ddmanager&&!a.dropBehaviour&&b.ui.ddmanager.prepareOffsets(f,e)}});b.ui.plugin.add("draggable","snap",{start:function(){var e=b(this).data("draggable"),f=e.options;e.snapElements=
546
+ [];b(f.snap.constructor!=String?f.snap.items||":data(draggable)":f.snap).each(function(){var a=b(this),c=a.offset();this!=e.element[0]&&e.snapElements.push({item:this,width:a.outerWidth(),height:a.outerHeight(),top:c.top,left:c.left})})},drag:function(e,f){for(var a=b(this).data("draggable"),c=a.options,d=c.snapTolerance,g=f.offset.left,i=g+a.helperProportions.width,h=f.offset.top,j=h+a.helperProportions.height,k=a.snapElements.length-1;k>=0;k--){var l=a.snapElements[k].left,m=l+a.snapElements[k].width,
547
+ q=a.snapElements[k].top,o=q+a.snapElements[k].height;if(l-d<g&&g<m+d&&q-d<h&&h<o+d||l-d<g&&g<m+d&&q-d<j&&j<o+d||l-d<i&&i<m+d&&q-d<h&&h<o+d||l-d<i&&i<m+d&&q-d<j&&j<o+d){if(c.snapMode!="inner"){var p=Math.abs(q-j)<=d,n=Math.abs(o-h)<=d,r=Math.abs(l-i)<=d,s=Math.abs(m-g)<=d;if(p)f.position.top=a._convertPositionTo("relative",{top:q-a.helperProportions.height,left:0}).top-a.margins.top;if(n)f.position.top=a._convertPositionTo("relative",{top:o,left:0}).top-a.margins.top;if(r)f.position.left=a._convertPositionTo("relative",
548
+ {top:0,left:l-a.helperProportions.width}).left-a.margins.left;if(s)f.position.left=a._convertPositionTo("relative",{top:0,left:m}).left-a.margins.left}var u=p||n||r||s;if(c.snapMode!="outer"){p=Math.abs(q-h)<=d;n=Math.abs(o-j)<=d;r=Math.abs(l-g)<=d;s=Math.abs(m-i)<=d;if(p)f.position.top=a._convertPositionTo("relative",{top:q,left:0}).top-a.margins.top;if(n)f.position.top=a._convertPositionTo("relative",{top:o-a.helperProportions.height,left:0}).top-a.margins.top;if(r)f.position.left=a._convertPositionTo("relative",
549
+ {top:0,left:l}).left-a.margins.left;if(s)f.position.left=a._convertPositionTo("relative",{top:0,left:m-a.helperProportions.width}).left-a.margins.left}if(!a.snapElements[k].snapping&&(p||n||r||s||u))a.options.snap.snap&&a.options.snap.snap.call(a.element,e,b.extend(a._uiHash(),{snapItem:a.snapElements[k].item}));a.snapElements[k].snapping=p||n||r||s||u}else{a.snapElements[k].snapping&&a.options.snap.release&&a.options.snap.release.call(a.element,e,b.extend(a._uiHash(),{snapItem:a.snapElements[k].item}));
550
+ a.snapElements[k].snapping=false}}}});b.ui.plugin.add("draggable","stack",{start:function(){var e=b(this).data("draggable").options,f=b.makeArray(b(e.stack.group)).sort(function(a,c){return(parseInt(b(a).css("zIndex"),10)||e.stack.min)-(parseInt(b(c).css("zIndex"),10)||e.stack.min)});b(f).each(function(a){this.style.zIndex=e.stack.min+a});this[0].style.zIndex=e.stack.min+f.length}});b.ui.plugin.add("draggable","zIndex",{start:function(e,f){e=b(f.helper);f=b(this).data("draggable").options;if(e.css("zIndex"))f._zIndex=
551
+ e.css("zIndex");e.css("zIndex",f.zIndex)},stop:function(e,f){e=b(this).data("draggable").options;e._zIndex&&b(f.helper).css("zIndex",e._zIndex)}})})(jQuery);
552
+ (function(b){b.widget("ui.droppable",{_init:function(){var e=this.options.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&&b.isFunction(this.options.accept)?this.options.accept:function(f){return f.is(e)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};b.ui.ddmanager.droppables[this.options.scope]=b.ui.ddmanager.droppables[this.options.scope]||[];b.ui.ddmanager.droppables[this.options.scope].push(this);this.options.addClasses&&this.element.addClass("ui-droppable")},
553
+ destroy:function(){for(var e=b.ui.ddmanager.droppables[this.options.scope],f=0;f<e.length;f++)e[f]==this&&e.splice(f,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable")},_setData:function(e,f){if(e=="accept")this.options.accept=f&&b.isFunction(f)?f:function(a){return a.is(f)};else b.widget.prototype._setData.apply(this,arguments)},_activate:function(e){var f=b.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);
554
+ f&&this._trigger("activate",e,this.ui(f))},_deactivate:function(e){var f=b.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);f&&this._trigger("deactivate",e,this.ui(f))},_over:function(e){var f=b.ui.ddmanager.current;if(!(!f||(f.currentItem||f.element)[0]==this.element[0]))if(this.options.accept.call(this.element[0],f.currentItem||f.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);this._trigger("over",e,this.ui(f))}},
555
+ _out:function(e){var f=b.ui.ddmanager.current;if(!(!f||(f.currentItem||f.element)[0]==this.element[0]))if(this.options.accept.call(this.element[0],f.currentItem||f.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",e,this.ui(f))}},_drop:function(e,f){var a=f||b.ui.ddmanager.current;if(!a||(a.currentItem||a.element)[0]==this.element[0])return false;var c=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var d=
556
+ b.data(this,"droppable");if(d.options.greedy&&b.ui.intersect(a,b.extend(d,{offset:d.element.offset()}),d.options.tolerance)){c=true;return false}});if(c)return false;if(this.options.accept.call(this.element[0],a.currentItem||a.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",e,this.ui(a));return this.element}return false},ui:function(e){return{draggable:e.currentItem||
557
+ e.element,helper:e.helper,position:e.position,absolutePosition:e.positionAbs,offset:e.positionAbs}}});b.extend(b.ui.droppable,{version:"1.7.3",eventPrefix:"drop",defaults:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"}});b.ui.intersect=function(e,f,a){if(!f.offset)return false;var c=(e.positionAbs||e.position.absolute).left,d=c+e.helperProportions.width,g=(e.positionAbs||e.position.absolute).top,i=g+e.helperProportions.height,h=f.offset.left,
558
+ j=h+f.proportions.width,k=f.offset.top,l=k+f.proportions.height;switch(a){case "fit":return h<c&&d<j&&k<g&&i<l;case "intersect":return h<c+e.helperProportions.width/2&&d-e.helperProportions.width/2<j&&k<g+e.helperProportions.height/2&&i-e.helperProportions.height/2<l;case "pointer":return b.ui.isOver((e.positionAbs||e.position.absolute).top+(e.clickOffset||e.offset.click).top,(e.positionAbs||e.position.absolute).left+(e.clickOffset||e.offset.click).left,k,h,f.proportions.height,f.proportions.width);
559
+ case "touch":return(g>=k&&g<=l||i>=k&&i<=l||g<k&&i>l)&&(c>=h&&c<=j||d>=h&&d<=j||c<h&&d>j);default:return false}};b.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,f){var a=b.ui.ddmanager.droppables[e.options.scope],c=f?f.type:null,d=(e.currentItem||e.element).find(":data(droppable)").andSelf(),g=0;a:for(;g<a.length;g++)if(!(a[g].options.disabled||e&&!a[g].options.accept.call(a[g].element[0],e.currentItem||e.element))){for(var i=0;i<d.length;i++)if(d[i]==a[g].element[0]){a[g].proportions.height=
560
+ 0;continue a}a[g].visible=a[g].element.css("display")!="none";if(a[g].visible){a[g].offset=a[g].element.offset();a[g].proportions={width:a[g].element[0].offsetWidth,height:a[g].element[0].offsetHeight};c=="mousedown"&&a[g]._activate.call(a[g],f)}}},drop:function(e,f){var a=false;b.each(b.ui.ddmanager.droppables[e.options.scope],function(){if(this.options){if(!this.options.disabled&&this.visible&&b.ui.intersect(e,this,this.options.tolerance))a=this._drop.call(this,f);if(!this.options.disabled&&this.visible&&
561
+ this.options.accept.call(this.element[0],e.currentItem||e.element)){this.isout=1;this.isover=0;this._deactivate.call(this,f)}}});return a},drag:function(e,f){e.options.refreshPositions&&b.ui.ddmanager.prepareOffsets(e,f);b.each(b.ui.ddmanager.droppables[e.options.scope],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var a=b.ui.intersect(e,this,this.options.tolerance);if(a=!a&&this.isover==1?"isout":a&&this.isover==0?"isover":null){var c;if(this.options.greedy){var d=this.element.parents(":data(droppable):eq(0)");
562
+ if(d.length){c=b.data(d[0],"droppable");c.greedyChild=a=="isover"?1:0}}if(c&&a=="isover"){c.isover=0;c.isout=1;c._out.call(c,f)}this[a]=1;this[a=="isout"?"isover":"isout"]=0;this[a=="isover"?"_over":"_out"].call(this,f);if(c&&a=="isout"){c.isout=0;c.isover=1;c._over.call(c,f)}}}})}}})(jQuery);
563
+ (function(b){b.widget("ui.progressbar",{_init:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this._valueMin(),"aria-valuemax":this._valueMax(),"aria-valuenow":this._value()});this.valueDiv=b('<div class="ui-progressbar-value ui-widget-header ui-corner-left"></div>').appendTo(this.element);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").removeData("progressbar").unbind(".progressbar");
564
+ this.valueDiv.remove();b.widget.prototype.destroy.apply(this,arguments)},value:function(e){if(e===undefined)return this._value();this._setData("value",e);return this},_setData:function(e,f){switch(e){case "value":this.options.value=f;this._refreshValue();this._trigger("change",null,{});break}b.widget.prototype._setData.apply(this,arguments)},_value:function(){var e=this.options.value;if(e<this._valueMin())e=this._valueMin();if(e>this._valueMax())e=this._valueMax();return e},_valueMin:function(){return 0},
565
+ _valueMax:function(){return 100},_refreshValue:function(){var e=this.value();this.valueDiv[e==this._valueMax()?"addClass":"removeClass"]("ui-corner-right");this.valueDiv.width(e+"%");this.element.attr("aria-valuenow",e)}});b.extend(b.ui.progressbar,{version:"1.7.3",defaults:{value:0}})})(jQuery);
566
+ (function(b){b.widget("ui.resizable",b.extend({},b.ui.mouse,{_init:function(){var a=this,c=this.options;this.element.addClass("ui-resizable");b.extend(this,{_aspectRatio:!!c.aspectRatio,aspectRatio:c.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:c.helper||c.ghost||c.animate?c.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&b.browser.opera&&this.element.css({position:"relative",
567
+ top:"auto",left:"auto"});this.element.wrap(b('<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"),
568
+ 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=
569
+ c.handles||(!b(".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 d=this.handles.split(",");this.handles={};for(var g=0;g<d.length;g++){var i=b.trim(d[g]),h=b('<div class="ui-resizable-handle '+("ui-resizable-"+i)+'"></div>');/sw|se|ne|nw/.test(i)&&
570
+ h.css({zIndex:++c.zIndex});"se"==i&&h.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[i]=".ui-resizable-"+i;this.element.append(h)}}this._renderAxis=function(j){j=j||this.element;for(var k in this.handles){if(this.handles[k].constructor==String)this.handles[k]=b(this.handles[k],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var l=b(this.handles[k],this.element),m=0;m=/sw|ne|nw|se|n|s/.test(k)?l.outerHeight():l.outerWidth();
571
+ l=["padding",/ne|nw|n/.test(k)?"Top":/se|sw|s/.test(k)?"Bottom":/^e$/.test(k)?"Right":"Left"].join("");j.css(l,m);this._proportionallyResize()}b(this.handles[k])}};this._renderAxis(this.element);this._handles=b(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!a.resizing){if(this.className)var j=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);a.axis=j&&j[1]?j[1]:"se"}});if(c.autoHide){this._handles.hide();b(this.element).addClass("ui-resizable-autohide").hover(function(){b(this).removeClass("ui-resizable-autohide");
572
+ a._handles.show()},function(){if(!a.resizing){b(this).addClass("ui-resizable-autohide");a._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var a=function(d){b(d).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){a(this.element);var c=this.element;c.parent().append(this.originalElement.css({position:c.css("position"),width:c.outerWidth(),height:c.outerHeight(),
573
+ top:c.css("top"),left:c.css("left")})).end().remove()}this.originalElement.css("resize",this.originalResizeStyle);a(this.originalElement)},_mouseCapture:function(a){var c=false;for(var d in this.handles)if(b(this.handles[d])[0]==a.target)c=true;return this.options.disabled||!!c},_mouseStart:function(a){var c=this.options,d=this.element.position(),g=this.element;this.resizing=true;this.documentScroll={top:b(document).scrollTop(),left:b(document).scrollLeft()};if(g.is(".ui-draggable")||/absolute/.test(g.css("position")))g.css({position:"absolute",
574
+ top:d.top,left:d.left});b.browser.opera&&/relative/.test(g.css("position"))&&g.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();d=e(this.helper.css("left"));var i=e(this.helper.css("top"));if(c.containment){d+=b(c.containment).scrollLeft()||0;i+=b(c.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:d,top:i};this.size=this._helper?{width:g.outerWidth(),height:g.outerHeight()}:{width:g.width(),height:g.height()};this.originalSize=this._helper?{width:g.outerWidth(),
575
+ height:g.outerHeight()}:{width:g.width(),height:g.height()};this.originalPosition={left:d,top:i};this.sizeDiff={width:g.outerWidth()-g.width(),height:g.outerHeight()-g.height()};this.originalMousePosition={left:a.pageX,top:a.pageY};this.aspectRatio=typeof c.aspectRatio=="number"?c.aspectRatio:this.originalSize.width/this.originalSize.height||1;c=b(".ui-resizable-"+this.axis).css("cursor");b("body").css("cursor",c=="auto"?this.axis+"-resize":c);g.addClass("ui-resizable-resizing");this._propagate("start",
576
+ a);return true},_mouseDrag:function(a){var c=this.helper,d=this.originalMousePosition,g=this._change[this.axis];if(!g)return false;d=g.apply(this,[a,a.pageX-d.left||0,a.pageY-d.top||0]);if(this._aspectRatio||a.shiftKey)d=this._updateRatio(d,a);d=this._respectSize(d,a);this._propagate("resize",a);c.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();
577
+ this._updateCache(d);this._trigger("resize",a,this.ui());return false},_mouseStop:function(a){this.resizing=false;var c=this.options,d=this;if(this._helper){var g=this._proportionallyResizeElements,i=g.length&&/textarea/i.test(g[0].nodeName);g=i&&b.ui.hasScroll(g[0],"left")?0:d.sizeDiff.height;i={width:d.size.width-(i?0:d.sizeDiff.width),height:d.size.height-g};g=parseInt(d.element.css("left"),10)+(d.position.left-d.originalPosition.left)||null;var h=parseInt(d.element.css("top"),10)+(d.position.top-
578
+ d.originalPosition.top)||null;c.animate||this.element.css(b.extend(i,{top:h,left:g}));d.helper.height(d.size.height);d.helper.width(d.size.width);this._helper&&!c.animate&&this._proportionallyResize()}b("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",a);this._helper&&this.helper.remove();return false},_updateCache:function(a){this.offset=this.helper.offset();if(f(a.left))this.position.left=a.left;if(f(a.top))this.position.top=a.top;if(f(a.height))this.size.height=
579
+ a.height;if(f(a.width))this.size.width=a.width},_updateRatio:function(a){var c=this.position,d=this.size,g=this.axis;if(a.height)a.width=d.height*this.aspectRatio;else if(a.width)a.height=d.width/this.aspectRatio;if(g=="sw"){a.left=c.left+(d.width-a.width);a.top=null}if(g=="nw"){a.top=c.top+(d.height-a.height);a.left=c.left+(d.width-a.width)}return a},_respectSize:function(a){var c=this.options,d=this.axis,g=f(a.width)&&c.maxWidth&&c.maxWidth<a.width,i=f(a.height)&&c.maxHeight&&c.maxHeight<a.height,
580
+ h=f(a.width)&&c.minWidth&&c.minWidth>a.width,j=f(a.height)&&c.minHeight&&c.minHeight>a.height;if(h)a.width=c.minWidth;if(j)a.height=c.minHeight;if(g)a.width=c.maxWidth;if(i)a.height=c.maxHeight;var k=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,m=/sw|nw|w/.test(d);d=/nw|ne|n/.test(d);if(h&&m)a.left=k-c.minWidth;if(g&&m)a.left=k-c.maxWidth;if(j&&d)a.top=l-c.minHeight;if(i&&d)a.top=l-c.maxHeight;if((c=!a.width&&!a.height)&&!a.left&&a.top)a.top=null;else if(c&&
581
+ !a.top&&a.left)a.left=null;return a},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var a=this.helper||this.element,c=0;c<this._proportionallyResizeElements.length;c++){var d=this._proportionallyResizeElements[c];if(!this.borderDif){var g=[d.css("borderTopWidth"),d.css("borderRightWidth"),d.css("borderBottomWidth"),d.css("borderLeftWidth")],i=[d.css("paddingTop"),d.css("paddingRight"),d.css("paddingBottom"),d.css("paddingLeft")];this.borderDif=b.map(g,function(h,
582
+ j){h=parseInt(h,10)||0;j=parseInt(i[j],10)||0;return h+j})}b.browser.msie&&(b(a).is(":hidden")||b(a).parents(":hidden").length)||d.css({height:a.height()-this.borderDif[0]-this.borderDif[2]||0,width:a.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var a=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||b('<div style="overflow:hidden;"></div>');var c=b.browser.msie&&b.browser.version<7,d=c?1:0;c=c?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+
583
+ c,height:this.element.outerHeight()+c,position:"absolute",left:this.elementOffset.left-d+"px",top:this.elementOffset.top-d+"px",zIndex:++a.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(a,c){return{width:this.originalSize.width+c}},w:function(a,c){return{left:this.originalPosition.left+c,width:this.originalSize.width-c}},n:function(a,c,d){return{top:this.originalPosition.top+d,height:this.originalSize.height-d}},s:function(a,c,d){return{height:this.originalSize.height+
584
+ d}},se:function(a,c,d){return b.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[a,c,d]))},sw:function(a,c,d){return b.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[a,c,d]))},ne:function(a,c,d){return b.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[a,c,d]))},nw:function(a,c,d){return b.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[a,c,d]))}},_propagate:function(a,c){b.ui.plugin.call(this,a,[c,this.ui()]);
585
+ a!="resize"&&this._trigger(a,c,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}}}));b.extend(b.ui.resizable,{version:"1.7.3",eventPrefix:"resize",defaults:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,cancel:":input,option",containment:false,delay:0,distance:1,
586
+ ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3}});b.ui.plugin.add("resizable","alsoResize",{start:function(){var a=b(this).data("resizable").options;_store=function(c){b(c).each(function(){b(this).data("resizable-alsoresize",{width:parseInt(b(this).width(),10),height:parseInt(b(this).height(),10),left:parseInt(b(this).css("left"),10),top:parseInt(b(this).css("top"),10)})})};if(typeof a.alsoResize=="object"&&!a.alsoResize.parentNode)if(a.alsoResize.length){a.alsoResize=
587
+ a.alsoResize[0];_store(a.alsoResize)}else b.each(a.alsoResize,function(c){_store(c)});else _store(a.alsoResize)},resize:function(){var a=b(this).data("resizable"),c=a.options,d=a.originalSize,g=a.originalPosition,i={height:a.size.height-d.height||0,width:a.size.width-d.width||0,top:a.position.top-g.top||0,left:a.position.left-g.left||0},h=function(j,k){b(j).each(function(){var l=b(this),m=b(this).data("resizable-alsoresize"),q={};b.each((k&&k.length?k:["width","height","top","left"])||["width","height",
588
+ "top","left"],function(o,p){if((o=(m[p]||0)+(i[p]||0))&&o>=0)q[p]=o||null});if(/relative/.test(l.css("position"))&&b.browser.opera){a._revertToRelativePosition=true;l.css({position:"absolute",top:"auto",left:"auto"})}l.css(q)})};typeof c.alsoResize=="object"&&!c.alsoResize.nodeType?b.each(c.alsoResize,function(j,k){h(j,k)}):h(c.alsoResize)},stop:function(){var a=b(this).data("resizable");if(a._revertToRelativePosition&&b.browser.opera){a._revertToRelativePosition=false;el.css({position:"relative"})}b(this).removeData("resizable-alsoresize-start")}});
589
+ b.ui.plugin.add("resizable","animate",{stop:function(a){var c=b(this).data("resizable"),d=c.options,g=c._proportionallyResizeElements,i=g.length&&/textarea/i.test(g[0].nodeName),h=i&&b.ui.hasScroll(g[0],"left")?0:c.sizeDiff.height;i={width:c.size.width-(i?0:c.sizeDiff.width),height:c.size.height-h};h=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null;var j=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;c.element.animate(b.extend(i,j&&
590
+ h?{top:j,left:h}:{}),{duration:d.animateDuration,easing:d.animateEasing,step:function(){var k={width:parseInt(c.element.css("width"),10),height:parseInt(c.element.css("height"),10),top:parseInt(c.element.css("top"),10),left:parseInt(c.element.css("left"),10)};g&&g.length&&b(g[0]).css({width:k.width,height:k.height});c._updateCache(k);c._propagate("resize",a)}})}});b.ui.plugin.add("resizable","containment",{start:function(){var a=b(this).data("resizable"),c=a.element,d=a.options.containment;if(c=d instanceof
591
+ b?d.get(0):/parent/.test(d)?c.parent().get(0):d){a.containerElement=b(c);if(/document/.test(d)||d==document){a.containerOffset={left:0,top:0};a.containerPosition={left:0,top:0};a.parentData={element:b(document),left:0,top:0,width:b(document).width(),height:b(document).height()||document.body.parentNode.scrollHeight}}else{var g=b(c),i=[];b(["Top","Right","Left","Bottom"]).each(function(k,l){i[k]=e(g.css("padding"+l))});a.containerOffset=g.offset();a.containerPosition=g.position();a.containerSize={height:g.innerHeight()-
592
+ i[3],width:g.innerWidth()-i[1]};d=a.containerOffset;var h=a.containerSize.height,j=a.containerSize.width;j=b.ui.hasScroll(c,"left")?c.scrollWidth:j;h=b.ui.hasScroll(c)?c.scrollHeight:h;a.parentData={element:c,left:d.left,top:d.top,width:j,height:h}}}},resize:function(a){var c=b(this).data("resizable"),d=c.options,g=c.containerOffset,i=c.position;a=c._aspectRatio||a.shiftKey;var h={top:0,left:0},j=c.containerElement;if(j[0]!=document&&/static/.test(j.css("position")))h=g;if(i.left<(c._helper?g.left:
593
+ 0)){c.size.width+=c._helper?c.position.left-g.left:c.position.left-h.left;if(a)c.size.height=c.size.width/d.aspectRatio;c.position.left=d.helper?g.left:0}if(i.top<(c._helper?g.top:0)){c.size.height+=c._helper?c.position.top-g.top:c.position.top;if(a)c.size.width=c.size.height*d.aspectRatio;c.position.top=c._helper?g.top:0}c.offset.left=c.parentData.left+c.position.left;c.offset.top=c.parentData.top+c.position.top;d=Math.abs((c._helper?c.offset.left-h.left:c.offset.left-h.left)+c.sizeDiff.width);g=
594
+ Math.abs((c._helper?c.offset.top-h.top:c.offset.top-g.top)+c.sizeDiff.height);i=c.containerElement.get(0)==c.element.parent().get(0);h=/relative|absolute/.test(c.containerElement.css("position"));if(i&&h)d-=c.parentData.left;if(d+c.size.width>=c.parentData.width){c.size.width=c.parentData.width-d;if(a)c.size.height=c.size.width/c.aspectRatio}if(g+c.size.height>=c.parentData.height){c.size.height=c.parentData.height-g;if(a)c.size.width=c.size.height*c.aspectRatio}},stop:function(){var a=b(this).data("resizable"),
595
+ c=a.options,d=a.containerOffset,g=a.containerPosition,i=a.containerElement,h=b(a.helper),j=h.offset(),k=h.outerWidth()-a.sizeDiff.width;h=h.outerHeight()-a.sizeDiff.height;a._helper&&!c.animate&&/relative/.test(i.css("position"))&&b(this).css({left:j.left-g.left-d.left,width:k,height:h});a._helper&&!c.animate&&/static/.test(i.css("position"))&&b(this).css({left:j.left-g.left-d.left,width:k,height:h})}});b.ui.plugin.add("resizable","ghost",{start:function(){var a=b(this).data("resizable"),c=a.options,
596
+ d=a.size;a.ghost=a.originalElement.clone();a.ghost.css({opacity:0.25,display:"block",position:"relative",height:d.height,width:d.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof c.ghost=="string"?c.ghost:"");a.ghost.appendTo(a.helper)},resize:function(){var a=b(this).data("resizable");a.ghost&&a.ghost.css({position:"relative",height:a.size.height,width:a.size.width})},stop:function(){var a=b(this).data("resizable");a.ghost&&a.helper&&a.helper.get(0).removeChild(a.ghost.get(0))}});
597
+ b.ui.plugin.add("resizable","grid",{resize:function(){var a=b(this).data("resizable"),c=a.options,d=a.size,g=a.originalSize,i=a.originalPosition,h=a.axis;c.grid=typeof c.grid=="number"?[c.grid,c.grid]:c.grid;var j=Math.round((d.width-g.width)/(c.grid[0]||1))*(c.grid[0]||1);c=Math.round((d.height-g.height)/(c.grid[1]||1))*(c.grid[1]||1);if(/^(se|s|e)$/.test(h)){a.size.width=g.width+j;a.size.height=g.height+c}else if(/^(ne)$/.test(h)){a.size.width=g.width+j;a.size.height=g.height+c;a.position.top=i.top-
598
+ c}else{if(/^(sw)$/.test(h)){a.size.width=g.width+j;a.size.height=g.height+c}else{a.size.width=g.width+j;a.size.height=g.height+c;a.position.top=i.top-c}a.position.left=i.left-j}}});var e=function(a){return parseInt(a,10)||0},f=function(a){return!isNaN(parseInt(a,10))}})(jQuery);
599
+ (function(b){b.widget("ui.selectable",b.extend({},b.ui.mouse,{_init:function(){var e=this;this.element.addClass("ui-selectable");this.dragged=false;var f;this.refresh=function(){f=b(e.options.filter,e.element[0]);f.each(function(){var a=b(this),c=a.offset();b.data(this,"selectable-item",{element:this,$element:a,left:c.left,top:c.top,right:c.left+a.outerWidth(),bottom:c.top+a.outerHeight(),startselected:false,selected:a.hasClass("ui-selected"),selecting:a.hasClass("ui-selecting"),unselecting:a.hasClass("ui-unselecting")})})};
600
+ this.refresh();this.selectees=f.addClass("ui-selectee");this._mouseInit();this.helper=b(document.createElement("div")).css({border:"1px dotted black"}).addClass("ui-selectable-helper")},destroy:function(){this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy()},_mouseStart:function(e){var f=this;this.opos=[e.pageX,e.pageY];if(!this.options.disabled){var a=this.options;this.selectees=b(a.filter,this.element[0]);this._trigger("start",
601
+ e);b(a.appendTo).append(this.helper);this.helper.css({"z-index":100,position:"absolute",left:e.clientX,top:e.clientY,width:0,height:0});a.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var c=b.data(this,"selectable-item");c.startselected=true;if(!e.metaKey){c.$element.removeClass("ui-selected");c.selected=false;c.$element.addClass("ui-unselecting");c.unselecting=true;f._trigger("unselecting",e,{unselecting:c.element})}});b(e.target).parents().andSelf().each(function(){var c=
602
+ b.data(this,"selectable-item");if(c){c.$element.removeClass("ui-unselecting").addClass("ui-selecting");c.unselecting=false;c.selecting=true;c.selected=true;f._trigger("selecting",e,{selecting:c.element});return false}})}},_mouseDrag:function(e){var f=this;this.dragged=true;if(!this.options.disabled){var a=this.options,c=this.opos[0],d=this.opos[1],g=e.pageX,i=e.pageY;if(c>g){var h=g;g=c;c=h}if(d>i){h=i;i=d;d=h}this.helper.css({left:c,top:d,width:g-c,height:i-d});this.selectees.each(function(){var j=
603
+ b.data(this,"selectable-item");if(!(!j||j.element==f.element[0])){var k=false;if(a.tolerance=="touch")k=!(j.left>g||j.right<c||j.top>i||j.bottom<d);else if(a.tolerance=="fit")k=j.left>c&&j.right<g&&j.top>d&&j.bottom<i;if(k){if(j.selected){j.$element.removeClass("ui-selected");j.selected=false}if(j.unselecting){j.$element.removeClass("ui-unselecting");j.unselecting=false}if(!j.selecting){j.$element.addClass("ui-selecting");j.selecting=true;f._trigger("selecting",e,{selecting:j.element})}}else{if(j.selecting)if(e.metaKey&&
604
+ j.startselected){j.$element.removeClass("ui-selecting");j.selecting=false;j.$element.addClass("ui-selected");j.selected=true}else{j.$element.removeClass("ui-selecting");j.selecting=false;if(j.startselected){j.$element.addClass("ui-unselecting");j.unselecting=true}f._trigger("unselecting",e,{unselecting:j.element})}if(j.selected)if(!e.metaKey&&!j.startselected){j.$element.removeClass("ui-selected");j.selected=false;j.$element.addClass("ui-unselecting");j.unselecting=true;f._trigger("unselecting",e,
605
+ {unselecting:j.element})}}}});return false}},_mouseStop:function(e){var f=this;this.dragged=false;b(".ui-unselecting",this.element[0]).each(function(){var a=b.data(this,"selectable-item");a.$element.removeClass("ui-unselecting");a.unselecting=false;a.startselected=false;f._trigger("unselected",e,{unselected:a.element})});b(".ui-selecting",this.element[0]).each(function(){var a=b.data(this,"selectable-item");a.$element.removeClass("ui-selecting").addClass("ui-selected");a.selecting=false;a.selected=
606
+ true;a.startselected=true;f._trigger("selected",e,{selected:a.element})});this._trigger("stop",e);this.helper.remove();return false}}));b.extend(b.ui.selectable,{version:"1.7.3",defaults:{appendTo:"body",autoRefresh:true,cancel:":input,option",delay:0,distance:0,filter:"*",tolerance:"touch"}})})(jQuery);
607
+ (function(b){b.widget("ui.slider",b.extend({},b.ui.mouse,{_init:function(){var e=this,f=this.options;this._keySliding=false;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");this.range=b([]);if(f.range){if(f.range===true){this.range=b("<div></div>");if(!f.values)f.values=[this._valueMin(),this._valueMin()];if(f.values.length&&f.values.length!=2)f.values=[f.values[0],f.values[0]]}else this.range=
608
+ b("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(f.range=="min"||f.range=="max")this.range.addClass("ui-slider-range-"+f.range);this.range.addClass("ui-widget-header")}b(".ui-slider-handle",this.element).length==0&&b('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");if(f.values&&f.values.length)for(;b(".ui-slider-handle",this.element).length<f.values.length;)b('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");this.handles=
609
+ b(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(a){a.preventDefault()}).hover(function(){f.disabled||b(this).addClass("ui-state-hover")},function(){b(this).removeClass("ui-state-hover")}).focus(function(){if(f.disabled)b(this).blur();else{b(".ui-slider .ui-state-focus").removeClass("ui-state-focus");b(this).addClass("ui-state-focus")}}).blur(function(){b(this).removeClass("ui-state-focus")});
610
+ this.handles.each(function(a){b(this).data("index.ui-slider-handle",a)});this.handles.keydown(function(a){var c=true,d=b(this).data("index.ui-slider-handle");if(!e.options.disabled){switch(a.keyCode){case b.ui.keyCode.HOME:case b.ui.keyCode.END:case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:c=false;if(!e._keySliding){e._keySliding=true;b(this).addClass("ui-state-active");e._start(a,d)}break}var g,i,h=e._step();g=e.options.values&&e.options.values.length?
611
+ (i=e.values(d)):(i=e.value());switch(a.keyCode){case b.ui.keyCode.HOME:i=e._valueMin();break;case b.ui.keyCode.END:i=e._valueMax();break;case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:if(g==e._valueMax())return;i=g+h;break;case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(g==e._valueMin())return;i=g-h;break}e._slide(a,d,i);return c}}).keyup(function(a){var c=b(this).data("index.ui-slider-handle");if(e._keySliding){e._stop(a,c);e._change(a,c);e._keySliding=false;b(this).removeClass("ui-state-active")}});
612
+ this._refreshValue()},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()},_mouseCapture:function(e){var f=this.options;if(f.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var a={x:e.pageX,y:e.pageY},
613
+ c=this._normValueFromMouse(a),d=this._valueMax()-this._valueMin()+1,g,i=this,h;this.handles.each(function(j){var k=Math.abs(c-i.values(j));if(d>k){d=k;g=b(this);h=j}});if(f.range==true&&this.values(1)==f.min)g=b(this.handles[++h]);this._start(e,h);i._handleIndex=h;g.addClass("ui-state-active").focus();f=g.offset();this._clickOffset=!b(e.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:e.pageX-f.left-g.width()/2,top:e.pageY-f.top-g.height()/2-(parseInt(g.css("borderTopWidth"),
614
+ 10)||0)-(parseInt(g.css("borderBottomWidth"),10)||0)+(parseInt(g.css("marginTop"),10)||0)};c=this._normValueFromMouse(a);this._slide(e,h,c);return true},_mouseStart:function(){return true},_mouseDrag:function(e){var f=this._normValueFromMouse({x:e.pageX,y:e.pageY});this._slide(e,this._handleIndex,f);return false},_mouseStop:function(e){this.handles.removeClass("ui-state-active");this._stop(e,this._handleIndex);this._change(e,this._handleIndex);this._clickOffset=this._handleIndex=null;return false},
615
+ _detectOrientation:function(){this.orientation=this.options.orientation=="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(e){var f;if("horizontal"==this.orientation){f=this.elementSize.width;e=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{f=this.elementSize.height;e=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}f=e/f;if(f>1)f=1;if(f<0)f=0;if("vertical"==this.orientation)f=1-f;e=this._valueMax()-this._valueMin();e=f*e;f=e%this.options.step;
616
+ e=this._valueMin()+e-f;if(f>this.options.step/2)e+=this.options.step;return parseFloat(e.toFixed(5))},_start:function(e,f){var a={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(f);a.values=this.values()}this._trigger("start",e,a)},_slide:function(e,f,a){if(this.options.values&&this.options.values.length){var c=this.values(f?0:1);if(this.options.values.length==2&&this.options.range===true&&(f==0&&a>c||f==1&&a<c))a=c;if(a!=this.values(f)){c=
617
+ this.values();c[f]=a;c=this._trigger("slide",e,{handle:this.handles[f],value:a,values:c});this.values(f?0:1);c!==false&&this.values(f,a,e.type=="mousedown"&&this.options.animate,true)}}else if(a!=this.value()){c=this._trigger("slide",e,{handle:this.handles[f],value:a});c!==false&&this._setData("value",a,e.type=="mousedown"&&this.options.animate)}},_stop:function(e,f){var a={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(f);a.values=
618
+ this.values()}this._trigger("stop",e,a)},_change:function(e,f){var a={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(f);a.values=this.values()}this._trigger("change",e,a)},value:function(e){if(arguments.length){this._setData("value",e);this._change(null,0)}return this._value()},values:function(e,f,a,c){if(arguments.length>1){this.options.values[e]=f;this._refreshValue(a);c||this._change(null,e)}return arguments.length?this.options.values&&
619
+ this.options.values.length?this._values(e):this.value():this._values()},_setData:function(e,f,a){b.widget.prototype._setData.apply(this,arguments);switch(e){case "disabled":if(f){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled")}else this.handles.removeAttr("disabled");case "orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);
620
+ this._refreshValue(a);break;case "value":this._refreshValue(a);break}},_step:function(){return this.options.step},_value:function(){var e=this.options.value;if(e<this._valueMin())e=this._valueMin();if(e>this._valueMax())e=this._valueMax();return e},_values:function(e){if(arguments.length){var f=this.options.values[e];if(f<this._valueMin())f=this._valueMin();if(f>this._valueMax())f=this._valueMax();return f}else return this.options.values},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},
621
+ _refreshValue:function(e){var f=this.options.range,a=this.options,c=this;if(this.options.values&&this.options.values.length)this.handles.each(function(h){var j=(c.values(h)-c._valueMin())/(c._valueMax()-c._valueMin())*100,k={};k[c.orientation=="horizontal"?"left":"bottom"]=j+"%";b(this).stop(1,1)[e?"animate":"css"](k,a.animate);if(c.options.range===true)if(c.orientation=="horizontal"){h==0&&c.range.stop(1,1)[e?"animate":"css"]({left:j+"%"},a.animate);h==1&&c.range[e?"animate":"css"]({width:j-lastValPercent+
622
+ "%"},{queue:false,duration:a.animate})}else{h==0&&c.range.stop(1,1)[e?"animate":"css"]({bottom:j+"%"},a.animate);h==1&&c.range[e?"animate":"css"]({height:j-lastValPercent+"%"},{queue:false,duration:a.animate})}lastValPercent=j});else{var d=this.value(),g=this._valueMin(),i=this._valueMax();d=i!=g?(d-g)/(i-g)*100:0;g={};g[c.orientation=="horizontal"?"left":"bottom"]=d+"%";this.handle.stop(1,1)[e?"animate":"css"](g,a.animate);f=="min"&&this.orientation=="horizontal"&&this.range.stop(1,1)[e?"animate":
623
+ "css"]({width:d+"%"},a.animate);f=="max"&&this.orientation=="horizontal"&&this.range[e?"animate":"css"]({width:100-d+"%"},{queue:false,duration:a.animate});f=="min"&&this.orientation=="vertical"&&this.range.stop(1,1)[e?"animate":"css"]({height:d+"%"},a.animate);f=="max"&&this.orientation=="vertical"&&this.range[e?"animate":"css"]({height:100-d+"%"},{queue:false,duration:a.animate})}}}));b.extend(b.ui.slider,{getter:"value values",version:"1.7.3",eventPrefix:"slide",defaults:{animate:false,delay:0,
624
+ distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null}})})(jQuery);
625
+ (function(b){b.widget("ui.sortable",b.extend({},b.ui.mouse,{_init:function(){this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData("sortable-item")},
626
+ _mouseCapture:function(e,f){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(e);var a=null,c=this;b(e.target).parents().each(function(){if(b.data(this,"sortable-item")==c){a=b(this);return false}});if(b.data(e.target,"sortable-item")==c)a=b(e.target);if(!a)return false;if(this.options.handle&&!f){var d=false;b(this.options.handle,a).find("*").andSelf().each(function(){if(this==e.target)d=true});if(!d)return false}this.currentItem=
627
+ a;this._removeCurrentsFromItems();return true},_mouseStart:function(e,f,a){f=this.options;var c=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(e);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};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");b.extend(this.offset,
628
+ {click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(e);this.originalPageX=e.pageX;this.originalPageY=e.pageY;f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();f.containment&&this._setContainment();
629
+ if(f.cursor){if(b("body").css("cursor"))this._storedCursor=b("body").css("cursor");b("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",
630
+ e,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!a)for(a=this.containers.length-1;a>=0;a--)this.containers[a]._trigger("activate",e,c._uiHash(this));if(b.ui.ddmanager)b.ui.ddmanager.current=this;b.ui.ddmanager&&!f.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,e);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(e);return true},_mouseDrag:function(e){this.position=this._generatePosition(e);this.positionAbs=this._convertPositionTo("absolute");
631
+ if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var f=this.options,a=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<f.scrollSensitivity)this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+f.scrollSpeed;else if(e.pageY-this.overflowOffset.top<f.scrollSensitivity)this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-f.scrollSpeed;if(this.overflowOffset.left+
632
+ this.scrollParent[0].offsetWidth-e.pageX<f.scrollSensitivity)this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+f.scrollSpeed;else if(e.pageX-this.overflowOffset.left<f.scrollSensitivity)this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-f.scrollSpeed}else{if(e.pageY-b(document).scrollTop()<f.scrollSensitivity)a=b(document).scrollTop(b(document).scrollTop()-f.scrollSpeed);else if(b(window).height()-(e.pageY-b(document).scrollTop())<f.scrollSensitivity)a=b(document).scrollTop(b(document).scrollTop()+
633
+ f.scrollSpeed);if(e.pageX-b(document).scrollLeft()<f.scrollSensitivity)a=b(document).scrollLeft(b(document).scrollLeft()-f.scrollSpeed);else if(b(window).width()-(e.pageX-b(document).scrollLeft())<f.scrollSensitivity)a=b(document).scrollLeft(b(document).scrollLeft()+f.scrollSpeed)}a!==false&&b.ui.ddmanager&&!f.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,e)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+
634
+ "px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(f=this.items.length-1;f>=0;f--){a=this.items[f];var c=a.item[0],d=this._intersectsWithPointer(a);if(d)if(c!=this.currentItem[0]&&this.placeholder[d==1?"next":"prev"]()[0]!=c&&!b.ui.contains(this.placeholder[0],c)&&(this.options.type=="semi-dynamic"?!b.ui.contains(this.element[0],c):true)){this.direction=d==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(a))this._rearrange(e,
635
+ a);else break;this._trigger("change",e,this._uiHash());break}}this._contactContainers(e);b.ui.ddmanager&&b.ui.ddmanager.drag(this,e);this._trigger("sort",e,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(e,f){if(e){b.ui.ddmanager&&!this.options.dropBehaviour&&b.ui.ddmanager.drop(this,e);if(this.options.revert){var a=this;f=a.placeholder.offset();a.reverting=true;b(this.helper).animate({left:f.left-this.offset.parent.left-a.margins.left+(this.offsetParent[0]==
636
+ document.body?0:this.offsetParent[0].scrollLeft),top:f.top-this.offset.parent.top-a.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){a._clear(e)})}else this._clear(e,f);return false}},cancel:function(){var e=this;if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var f=this.containers.length-1;f>=0;f--){this.containers[f]._trigger("deactivate",
637
+ null,e._uiHash(this));if(this.containers[f].containerCache.over){this.containers[f]._trigger("out",null,e._uiHash(this));this.containers[f].containerCache.over=0}}}this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();b.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?b(this.domPosition.prev).after(this.currentItem):
638
+ b(this.domPosition.parent).prepend(this.currentItem);return true},serialize:function(e){var f=this._getItemsAsjQuery(e&&e.connected),a=[];e=e||{};b(f).each(function(){var c=(b(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[-=_](.+)/);if(c)a.push((e.key||c[1]+"[]")+"="+(e.key&&e.expression?c[1]:c[2]))});return a.join("&")},toArray:function(e){var f=this._getItemsAsjQuery(e&&e.connected),a=[];e=e||{};f.each(function(){a.push(b(e.item||this).attr(e.attribute||"id")||"")});return a},
639
+ _intersectsWith:function(e){var f=this.positionAbs.left,a=f+this.helperProportions.width,c=this.positionAbs.top,d=c+this.helperProportions.height,g=e.left,i=g+e.width,h=e.top,j=h+e.height,k=this.offset.click.top,l=this.offset.click.left;k=c+k>h&&c+k<j&&f+l>g&&f+l<i;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?k:g<f+this.helperProportions.width/
640
+ 2&&a-this.helperProportions.width/2<i&&h<c+this.helperProportions.height/2&&d-this.helperProportions.height/2<j},_intersectsWithPointer:function(e){var f=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height);e=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);f=f&&e;e=this._getDragVerticalDirection();var a=this._getDragHorizontalDirection();if(!f)return false;return this.floating?a&&a=="right"||e=="down"?2:1:e&&(e=="down"?2:1)},_intersectsWithSides:function(e){var f=
641
+ b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height);e=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width);var a=this._getDragVerticalDirection(),c=this._getDragHorizontalDirection();return this.floating&&c?c=="right"&&e||c=="left"&&!e:a&&(a=="down"&&f||a=="up"&&!f)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return e!=0&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=
642
+ this.positionAbs.left-this.lastPositionAbs.left;return e!=0&&(e>0?"right":"left")},refresh:function(e){this._refreshItems(e);this.refreshPositions()},_connectWith:function(){var e=this.options;return e.connectWith.constructor==String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(e){var f=[],a=[],c=this._connectWith();if(c&&e)for(e=c.length-1;e>=0;e--)for(var d=b(c[e]),g=d.length-1;g>=0;g--){var i=b.data(d[g],"sortable");if(i&&i!=this&&!i.options.disabled)a.push([b.isFunction(i.options.items)?
643
+ i.options.items.call(i.element):b(i.options.items,i.element).not(".ui-sortable-helper"),i])}a.push([b.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):b(this.options.items,this.element).not(".ui-sortable-helper"),this]);for(e=a.length-1;e>=0;e--)a[e][0].each(function(){f.push(this)});return b(f)},_removeCurrentsFromItems:function(){for(var e=this.currentItem.find(":data(sortable-item)"),f=0;f<this.items.length;f++)for(var a=0;a<
644
+ e.length;a++)e[a]==this.items[f].item[0]&&this.items.splice(f,1)},_refreshItems:function(e){this.items=[];this.containers=[this];var f=this.items,a=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):b(this.options.items,this.element),this]],c=this._connectWith();if(c)for(var d=c.length-1;d>=0;d--)for(var g=b(c[d]),i=g.length-1;i>=0;i--){var h=b.data(g[i],"sortable");if(h&&h!=this&&!h.options.disabled){a.push([b.isFunction(h.options.items)?h.options.items.call(h.element[0],
645
+ e,{item:this.currentItem}):b(h.options.items,h.element),h]);this.containers.push(h)}}for(d=a.length-1;d>=0;d--){e=a[d][1];c=a[d][0];i=0;for(g=c.length;i<g;i++){h=b(c[i]);h.data("sortable-item",e);f.push({item:h,instance:e,width:0,height:0,left:0,top:0})}}},refreshPositions:function(e){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var f=this.items.length-1;f>=0;f--){var a=this.items[f];if(!(a.instance!=this.currentContainer&&this.currentContainer&&a.item[0]!=this.currentItem[0])){var c=
646
+ this.options.toleranceElement?b(this.options.toleranceElement,a.item):a.item;if(!e){a.width=c.outerWidth();a.height=c.outerHeight()}c=c.offset();a.left=c.left;a.top=c.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(f=this.containers.length-1;f>=0;f--){c=this.containers[f].element.offset();this.containers[f].containerCache.left=c.left;this.containers[f].containerCache.top=c.top;this.containers[f].containerCache.width=this.containers[f].element.outerWidth();
647
+ this.containers[f].containerCache.height=this.containers[f].element.outerHeight()}},_createPlaceholder:function(e){var f=e||this,a=f.options;if(!a.placeholder||a.placeholder.constructor==String){var c=a.placeholder;a.placeholder={element:function(){var d=b(document.createElement(f.currentItem[0].nodeName)).addClass(c||f.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!c)d.style.visibility="hidden";return d},update:function(d,g){if(!(c&&!a.forcePlaceholderSize)){g.height()||
648
+ g.height(f.currentItem.innerHeight()-parseInt(f.currentItem.css("paddingTop")||0,10)-parseInt(f.currentItem.css("paddingBottom")||0,10));g.width()||g.width(f.currentItem.innerWidth()-parseInt(f.currentItem.css("paddingLeft")||0,10)-parseInt(f.currentItem.css("paddingRight")||0,10))}}}}f.placeholder=b(a.placeholder.element.call(f.element,f.currentItem));f.currentItem.after(f.placeholder);a.placeholder.update(f,f.placeholder)},_contactContainers:function(e){for(var f=this.containers.length-1;f>=0;f--)if(this._intersectsWith(this.containers[f].containerCache)){if(!this.containers[f].containerCache.over){if(this.currentContainer!=
649
+ this.containers[f]){for(var a=1E4,c=null,d=this.positionAbs[this.containers[f].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(b.ui.contains(this.containers[f].element[0],this.items[g].item[0])){var i=this.items[g][this.containers[f].floating?"left":"top"];if(Math.abs(i-d)<a){a=Math.abs(i-d);c=this.items[g]}}if(!c&&!this.options.dropOnEmpty)continue;this.currentContainer=this.containers[f];c?this._rearrange(e,c,null,true):this._rearrange(e,null,this.containers[f].element,true);this._trigger("change",
650
+ e,this._uiHash());this.containers[f]._trigger("change",e,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[f]._trigger("over",e,this._uiHash(this));this.containers[f].containerCache.over=1}}else if(this.containers[f].containerCache.over){this.containers[f]._trigger("out",e,this._uiHash(this));this.containers[f].containerCache.over=0}},_createHelper:function(e){var f=this.options;e=b.isFunction(f.helper)?b(f.helper.apply(this.element[0],[e,
651
+ this.currentItem])):f.helper=="clone"?this.currentItem.clone():this.currentItem;e.parents("body").length||b(f.appendTo!="parent"?f.appendTo:this.currentItem[0].parentNode)[0].appendChild(e[0]);if(e[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(e[0].style.width==""||f.forceHelperSize)e.width(this.currentItem.width());
652
+ if(e[0].style.height==""||f.forceHelperSize)e.height(this.currentItem.height());return e},_adjustOffsetFromHelper:function(e){if(e.left!=undefined)this.offset.click.left=e.left+this.margins.left;if(e.right!=undefined)this.offset.click.left=this.helperProportions.width-e.right+this.margins.left;if(e.top!=undefined)this.offset.click.top=e.top+this.margins.top;if(e.bottom!=undefined)this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=
653
+ this.helper.offsetParent();var e=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){e.left+=this.scrollParent.scrollLeft();e.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)e={top:0,left:0};return{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),
654
+ 10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.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=
655
+ {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,b(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(e.containment=="document"?document:window).height()||
656
+ document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(e.containment)){var f=b(e.containment)[0];e=b(e.containment).offset();var a=b(f).css("overflow")!="hidden";this.containment=[e.left+(parseInt(b(f).css("borderLeftWidth"),10)||0)+(parseInt(b(f).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(b(f).css("borderTopWidth"),10)||0)+(parseInt(b(f).css("paddingTop"),10)||0)-this.margins.top,e.left+(a?Math.max(f.scrollWidth,
657
+ f.offsetWidth):f.offsetWidth)-(parseInt(b(f).css("borderLeftWidth"),10)||0)-(parseInt(b(f).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(a?Math.max(f.scrollHeight,f.offsetHeight):f.offsetHeight)-(parseInt(b(f).css("borderTopWidth"),10)||0)-(parseInt(b(f).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(e,f){if(!f)f=this.position;e=e=="absolute"?1:-1;var a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=
658
+ document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,c=/(html|body)/i.test(a[0].tagName);return{top:f.top+this.offset.relative.top*e+this.offset.parent.top*e-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():c?0:a.scrollTop())*e),left:f.left+this.offset.relative.left*e+this.offset.parent.left*e-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
659
+ c?0:a.scrollLeft())*e)}},_generatePosition:function(e){var f=this.options,a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,c=/(html|body)/i.test(a[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var d=e.pageX,g=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-
660
+ this.offset.click.left<this.containment[0])d=this.containment[0]+this.offset.click.left;if(e.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(e.pageX-this.offset.click.left>this.containment[2])d=this.containment[2]+this.offset.click.left;if(e.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(f.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/f.grid[1])*f.grid[1];g=this.containment?!(g-this.offset.click.top<
661
+ this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-f.grid[1]:g+f.grid[1]:g;d=this.originalPageX+Math.round((d-this.originalPageX)/f.grid[0])*f.grid[0];d=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-f.grid[0]:d+f.grid[0]:d}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&
662
+ this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():c?0:a.scrollTop()),left:d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():c?0:a.scrollLeft())}},_rearrange:function(e,f,a,c){a?a[0].appendChild(this.placeholder[0]):f.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?f.item[0]:f.item[0].nextSibling);this.counter=
663
+ this.counter?++this.counter:1;var d=this,g=this.counter;window.setTimeout(function(){g==d.counter&&d.refreshPositions(!c)},0)},_clear:function(e,f){this.reverting=false;var a=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var c in this._storedCSS)if(this._storedCSS[c]=="auto"||this._storedCSS[c]=="static")this._storedCSS[c]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();
664
+ this.fromOutside&&!f&&a.push(function(d){this._trigger("receive",d,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)a.push(function(d){this._trigger("update",d,this._uiHash())});if(!b.ui.contains(this.element[0],this.currentItem[0])){f||a.push(function(d){this._trigger("remove",d,this._uiHash())});for(c=this.containers.length-1;c>=0;c--)if(b.ui.contains(this.containers[c].element[0],
665
+ this.currentItem[0])&&!f){a.push(function(d){return function(g){d._trigger("receive",g,this._uiHash(this))}}.call(this,this.containers[c]));a.push(function(d){return function(g){d._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[c]))}}for(c=this.containers.length-1;c>=0;c--){f||a.push(function(d){return function(g){d._trigger("deactivate",g,this._uiHash(this))}}.call(this,this.containers[c]));if(this.containers[c].containerCache.over){a.push(function(d){return function(g){d._trigger("out",
666
+ g,this._uiHash(this))}}.call(this,this.containers[c]));this.containers[c].containerCache.over=0}}this._storedCursor&&b("body").css("cursor",this._storedCursor);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",e,this._uiHash());for(c=0;c<a.length;c++)a[c].call(this,e);this._trigger("stop",e,this._uiHash())}return false}f||
667
+ this._trigger("beforeStop",e,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!f){for(c=0;c<a.length;c++)a[c].call(this,e);this._trigger("stop",e,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){b.widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(e){var f=e||this;return{helper:f.helper,placeholder:f.placeholder||b([]),position:f.position,
668
+ absolutePosition:f.positionAbs,offset:f.positionAbs,item:f.currentItem,sender:e?e.element:null}}}));b.extend(b.ui.sortable,{getter:"serialize toArray",version:"1.7.3",eventPrefix:"sort",defaults:{appendTo:"parent",axis:false,cancel:":input,option",connectWith:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,
669
+ scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3}})})(jQuery);
670
+ (function(b){var e=0,f=0;b.widget("ui.tabs",{_init:function(){if(this.options.deselectable!==undefined)this.options.collapsible=this.options.deselectable;this._tabify(true)},_setData:function(a,c){if(a=="selected")this.options.collapsible&&c==this.options.selected||this.select(c);else{this.options[a]=c;if(a=="deselectable")this.options.collapsible=c;this._tabify()}},_tabId:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+ ++e},_sanitizeSelector:function(a){return a.replace(/:/g,
671
+ "\\:")},_cookie:function(){var a=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++f);return b.cookie.apply(null,[a].concat(b.makeArray(arguments)))},_ui:function(a,c){return{tab:a,panel:c,index:this.anchors.index(a)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var a=b(this);a.html(a.data("label.tabs")).removeData("label.tabs")})},_tabify:function(a){function c(p,n){p.css({display:""});
672
+ b.browser.msie&&n.opacity&&p[0].style.removeAttribute("filter")}this.list=this.element.children("ul:first");this.lis=b("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return b("a",this)[0]});this.panels=b([]);var d=this,g=this.options,i=/^#.+/;this.anchors.each(function(p,n){var r=b(n).attr("href"),s=r.split("#")[0],u;if(s&&(s===location.toString().split("#")[0]||(u=b("base")[0])&&s===u.href)){r=n.hash;n.href=r}if(i.test(r))d.panels=d.panels.add(d._sanitizeSelector(r));else if(r!=
673
+ "#"){b.data(n,"href.tabs",r);b.data(n,"load.tabs",r.replace(/#.*$/,""));r=d._tabId(n);n.href="#"+r;n=b("#"+r);if(!n.length){n=b(g.panelTemplate).attr("id",r).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(d.panels[p-1]||d.list);n.data("destroy.tabs",true)}d.panels=d.panels.add(n)}else g.disabled.push(p)});if(a){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");
674
+ this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(g.selected===undefined){location.hash&&this.anchors.each(function(p,n){if(n.hash==location.hash){g.selected=p;return false}});if(typeof g.selected!="number"&&g.cookie)g.selected=parseInt(d._cookie(),10);if(typeof g.selected!="number"&&this.lis.filter(".ui-tabs-selected").length)g.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));g.selected=g.selected||0}else if(g.selected===
675
+ null)g.selected=-1;g.selected=g.selected>=0&&this.anchors[g.selected]||g.selected<0?g.selected:0;g.disabled=b.unique(g.disabled.concat(b.map(this.lis.filter(".ui-state-disabled"),function(p){return d.lis.index(p)}))).sort();b.inArray(g.selected,g.disabled)!=-1&&g.disabled.splice(b.inArray(g.selected,g.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(g.selected>=0&&this.anchors.length){this.panels.eq(g.selected).removeClass("ui-tabs-hide");
676
+ this.lis.eq(g.selected).addClass("ui-tabs-selected ui-state-active");d.element.queue("tabs",function(){d._trigger("show",null,d._ui(d.anchors[g.selected],d.panels[g.selected]))});this.load(g.selected)}b(window).bind("unload",function(){d.lis.add(d.anchors).unbind(".tabs");d.lis=d.anchors=d.panels=null})}else g.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));this.element[g.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");g.cookie&&this._cookie(g.selected,g.cookie);a=0;for(var h;h=
677
+ this.lis[a];a++)b(h)[b.inArray(a,g.disabled)!=-1&&!b(h).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");g.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(g.event!="mouseover"){var j=function(p,n){n.is(":not(.ui-state-disabled)")&&n.addClass("ui-state-"+p)},k=function(p,n){n.removeClass("ui-state-"+p)};this.lis.bind("mouseover.tabs",function(){j("hover",b(this))});this.lis.bind("mouseout.tabs",function(){k("hover",b(this))});
678
+ this.anchors.bind("focus.tabs",function(){j("focus",b(this).closest("li"))});this.anchors.bind("blur.tabs",function(){k("focus",b(this).closest("li"))})}var l,m;if(g.fx)if(b.isArray(g.fx)){l=g.fx[0];m=g.fx[1]}else l=m=g.fx;var q=m?function(p,n){b(p).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");n.hide().removeClass("ui-tabs-hide").animate(m,m.duration||"normal",function(){c(n,m);d._trigger("show",null,d._ui(p,n[0]))})}:function(p,n){b(p).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");
679
+ n.removeClass("ui-tabs-hide");d._trigger("show",null,d._ui(p,n[0]))},o=l?function(p,n){n.animate(l,l.duration||"normal",function(){d.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");n.addClass("ui-tabs-hide");c(n,l);d.element.dequeue("tabs")})}:function(p,n){d.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");n.addClass("ui-tabs-hide");d.element.dequeue("tabs")};this.anchors.bind(g.event+".tabs",function(){var p=this,n=b(this).closest("li"),
680
+ r=d.panels.filter(":not(.ui-tabs-hide)"),s=b(d._sanitizeSelector(this.hash));if(n.hasClass("ui-tabs-selected")&&!g.collapsible||n.hasClass("ui-state-disabled")||n.hasClass("ui-state-processing")||d._trigger("select",null,d._ui(this,s[0]))===false){this.blur();return false}g.selected=d.anchors.index(this);d.abort();if(g.collapsible)if(n.hasClass("ui-tabs-selected")){g.selected=-1;g.cookie&&d._cookie(g.selected,g.cookie);d.element.queue("tabs",function(){o(p,r)}).dequeue("tabs");this.blur();return false}else if(!r.length){g.cookie&&
681
+ d._cookie(g.selected,g.cookie);d.element.queue("tabs",function(){q(p,s)});d.load(d.anchors.index(this));this.blur();return false}g.cookie&&d._cookie(g.selected,g.cookie);if(s.length){r.length&&d.element.queue("tabs",function(){o(p,r)});d.element.queue("tabs",function(){q(p,s)});d.load(d.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";b.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},destroy:function(){var a=this.options;this.abort();
682
+ 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 c=b.data(this,"href.tabs");if(c)this.href=c;var d=b(this).unbind(".tabs");b.each(["href","load","cache"],function(g,i){d.removeData(i+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){b.data(this,"destroy.tabs")?
683
+ b(this).remove():b(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")});a.cookie&&this._cookie(null,a.cookie)},add:function(a,c,d){if(d===undefined)d=this.anchors.length;var g=this,i=this.options;c=b(i.tabTemplate.replace(/#\{href\}/g,a).replace(/#\{label\}/g,c));a=!a.indexOf("#")?a.replace("#",""):this._tabId(b("a",c)[0]);c.addClass("ui-state-default ui-corner-top").data("destroy.tabs",
684
+ true);var h=b("#"+a);h.length||(h=b(i.panelTemplate).attr("id",a).data("destroy.tabs",true));h.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(d>=this.lis.length){c.appendTo(this.list);h.appendTo(this.list[0].parentNode)}else{c.insertBefore(this.lis[d]);h.insertBefore(this.panels[d])}i.disabled=b.map(i.disabled,function(j){return j>=d?++j:j});this._tabify();if(this.anchors.length==1){c.addClass("ui-tabs-selected ui-state-active");h.removeClass("ui-tabs-hide");this.element.queue("tabs",
685
+ function(){g._trigger("show",null,g._ui(g.anchors[0],g.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[d],this.panels[d]))},remove:function(a){var c=this.options,d=this.lis.eq(a).remove(),g=this.panels.eq(a).remove();if(d.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(a+(a+1<this.anchors.length?1:-1));c.disabled=b.map(b.grep(c.disabled,function(i){return i!=a}),function(i){return i>=a?--i:i});this._tabify();this._trigger("remove",null,this._ui(d.find("a")[0],
686
+ g[0]))},enable:function(a){var c=this.options;if(b.inArray(a,c.disabled)!=-1){this.lis.eq(a).removeClass("ui-state-disabled");c.disabled=b.grep(c.disabled,function(d){return d!=a});this._trigger("enable",null,this._ui(this.anchors[a],this.panels[a]))}},disable:function(a){var c=this.options;if(a!=c.selected){this.lis.eq(a).addClass("ui-state-disabled");c.disabled.push(a);c.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[a],this.panels[a]))}},select:function(a){if(typeof a=="string")a=
687
+ this.anchors.index(this.anchors.filter("[href$="+a+"]"));else if(a===null)a=-1;if(a==-1&&this.options.collapsible)a=this.options.selected;this.anchors.eq(a).trigger(this.options.event+".tabs")},load:function(a){var c=this,d=this.options,g=this.anchors.eq(a)[0],i=b.data(g,"load.tabs");this.abort();if(!i||this.element.queue("tabs").length!==0&&b.data(g,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(a).addClass("ui-state-processing");if(d.spinner){var h=b("span",g);h.data("label.tabs",h.html()).html(d.spinner)}this.xhr=
688
+ b.ajax(b.extend({},d.ajaxOptions,{url:i,success:function(j,k){b(c._sanitizeSelector(g.hash)).html(j);c._cleanup();d.cache&&b.data(g,"cache.tabs",true);c._trigger("load",null,c._ui(c.anchors[a],c.panels[a]));try{d.ajaxOptions.success(j,k)}catch(l){}c.element.dequeue("tabs")}}))}},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup()},url:function(a,c){this.anchors.eq(a).removeData("cache.tabs").data("load.tabs",c)},length:function(){return this.anchors.length}});
689
+ b.extend(b.ui.tabs,{version:"1.7.3",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:"click",fx:null,idPrefix:"ui-tabs-",panelTemplate:"<div></div>",spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'}});b.extend(b.ui.tabs.prototype,{rotation:null,rotate:function(a,c){var d=this,g=this.options,i=d._rotate||(d._rotate=function(h){clearTimeout(d.rotation);d.rotation=setTimeout(function(){var j=g.selected;
690
+ d.select(++j<d.anchors.length?j:0)},a);h&&h.stopPropagation()});c=d._unrotate||(d._unrotate=!c?function(h){h.clientX&&d.rotate(null)}:function(){t=g.selected;i()});if(a){this.element.bind("tabsshow",i);this.anchors.bind(g.event+".tabs",c);i()}else{clearTimeout(d.rotation);this.element.unbind("tabsshow",i);this.anchors.unbind(g.event+".tabs",c);delete this._rotate;delete this._unrotate}}})})(jQuery);