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
@@ -1,20 +1,26 @@
1
- jQuery.ui||function(c){c.ui={version:"1.8",plugin:{add:function(b,d,e){b=c.ui[b].prototype;for(var a in e){b.plugins[a]=b.plugins[a]||[];b.plugins[a].push([d,e[a]])}},call:function(b,d,e){if((d=b.plugins[d])&&b.element[0].parentNode)for(var a=0;a<d.length;a++)b.options[d[a][0]]&&d[a][1].apply(b.element,e)}},contains:function(b,d){return document.compareDocumentPosition?b.compareDocumentPosition(d)&16:b!==d&&b.contains(d)},hasScroll:function(b,d){if(c(b).css("overflow")=="hidden")return false;d=d&&
2
- d=="left"?"scrollLeft":"scrollTop";var e=false;if(b[d]>0)return true;b[d]=1;e=b[d]>0;b[d]=0;return e},isOverAxis:function(b,d,e){return b>d&&b<d+e},isOver:function(b,d,e,a,f,g){return c.ui.isOverAxis(b,e,f)&&c.ui.isOverAxis(d,a,g)},keyCode:{BACKSPACE:8,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,
3
- RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};c.fn.extend({_focus:c.fn.focus,focus:function(b,d){return typeof b==="number"?this.each(function(){var e=this;setTimeout(function(){c(e).focus();d&&d.call(e)},b)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","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 b;
4
- b=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||
5
- !b.length?c(document):b},zIndex:function(b){if(b!==undefined)return this.css("zIndex",b);if(this.length){b=c(this[0]);for(var d;b.length&&b[0]!==document;){d=b.css("position");if(d=="absolute"||d=="relative"||d=="fixed"){d=parseInt(b.css("zIndex"));if(!isNaN(d)&&d!=0)return d}b=b.parent()}}return 0}});c.extend(c.expr[":"],{data:function(b,d,e){return!!c.data(b,e[3])},focusable:function(b){var d=b.nodeName.toLowerCase(),e=c.attr(b,"tabindex");return(/input|select|textarea|button|object/.test(d)?!b.disabled:
6
- "a"==d||"area"==d?b.href||!isNaN(e):!isNaN(e))&&!c(b)["area"==d?"parents":"closest"](":hidden").length},tabbable:function(b){var d=c.attr(b,"tabindex");return(isNaN(d)||d>=0)&&c(b).is(":focusable")}})}(jQuery);
1
+ jQuery.ui||function(c){c.ui={version:"1.8.1",plugin:{add:function(b,d,e){b=c.ui[b].prototype;for(var a in e){b.plugins[a]=b.plugins[a]||[];b.plugins[a].push([d,e[a]])}},call:function(b,d,e){if((d=b.plugins[d])&&b.element[0].parentNode)for(var a=0;a<d.length;a++)b.options[d[a][0]]&&d[a][1].apply(b.element,e)}},contains:function(b,d){return document.compareDocumentPosition?b.compareDocumentPosition(d)&16:b!==d&&b.contains(d)},hasScroll:function(b,d){if(c(b).css("overflow")=="hidden")return false;d=
2
+ d&&d=="left"?"scrollLeft":"scrollTop";var e=false;if(b[d]>0)return true;b[d]=1;e=b[d]>0;b[d]=0;return e},isOverAxis:function(b,d,e){return b>d&&b<d+e},isOver:function(b,d,e,a,f,g){return c.ui.isOverAxis(b,e,f)&&c.ui.isOverAxis(d,a,g)},keyCode:{ALT:18,BACKSPACE:8,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,
3
+ RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};c.fn.extend({_focus:c.fn.focus,focus:function(b,d){return typeof b==="number"?this.each(function(){var e=this;setTimeout(function(){c(e).focus();d&&d.call(e)},b)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none")},scrollParent:function(){var b;b=c.browser.msie&&/(static|relative)/.test(this.css("position"))||
4
+ /absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!b.length?c(document):b},zIndex:function(b){if(b!==
5
+ undefined)return this.css("zIndex",b);if(this.length){b=c(this[0]);for(var d;b.length&&b[0]!==document;){d=b.css("position");if(d=="absolute"||d=="relative"||d=="fixed"){d=parseInt(b.css("zIndex"));if(!isNaN(d)&&d!=0)return d}b=b.parent()}}return 0}});c.extend(c.expr[":"],{data:function(b,d,e){return!!c.data(b,e[3])},focusable:function(b){var d=b.nodeName.toLowerCase(),e=c.attr(b,"tabindex");return(/input|select|textarea|button|object/.test(d)?!b.disabled:"a"==d||"area"==d?b.href||!isNaN(e):!isNaN(e))&&
6
+ !c(b)["area"==d?"parents":"closest"](":hidden").length},tabbable:function(b){var d=c.attr(b,"tabindex");return(isNaN(d)||d>=0)&&c(b).is(":focusable")}})}(jQuery);
7
7
  (function(c){var b=c.fn.remove;c.fn.remove=function(d,e){return this.each(function(){if(!e)if(!d||c.filter(d,[this]).length)c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return b.call(c(this),d,e)})};c.widget=function(d,e,a){var f=d.split(".")[0],g;d=d.split(".")[1];g=f+"-"+d;if(!a){a=e;e=c.Widget}c.expr[":"][g]=function(i){return!!c.data(i,d)};c[f]=c[f]||{};c[f][d]=function(i,j){arguments.length&&this._createWidget(i,j)};e=new e;e.options=c.extend({},e.options);c[f][d].prototype=
8
8
  c.extend(true,e,{namespace:f,widgetName:d,widgetEventPrefix:c[f][d].prototype.widgetEventPrefix||d,widgetBaseClass:g},a);c.widget.bridge(d,c[f][d])};c.widget.bridge=function(d,e){c.fn[d]=function(a){var f=typeof a==="string",g=Array.prototype.slice.call(arguments,1),i=this;a=!f&&g.length?c.extend.apply(null,[true,a].concat(g)):a;if(f&&a.substring(0,1)==="_")return i;f?this.each(function(){var j=c.data(this,d),m=j&&c.isFunction(j[a])?j[a].apply(j,g):j;if(m!==j&&m!==undefined){i=m;return false}}):this.each(function(){var j=
9
9
  c.data(this,d);if(j){a&&j.option(a);j._init()}else c.data(this,d,new e(a,this))});return i}};c.Widget=function(d,e){arguments.length&&this._createWidget(d,e)};c.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(d,e){this.element=c(e).data(this.widgetName,this);this.options=c.extend(true,{},this.options,c.metadata&&c.metadata.get(e)[this.widgetName],d);var a=this;this.element.bind("remove."+this.widgetName,function(){a.destroy()});this._create();
10
- this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled")},widget:function(){return this.element},option:function(d,e){var a=d,f=this;if(arguments.length===0)return c.extend({},f.options);if(typeof d==="string"){if(e===undefined)return this.options[d];a={};a[d]=e}c.each(a,
11
- function(g,i){f._setOption(g,i)});return f},_setOption:function(d,e){this.options[d]=e;if(d==="disabled")this.widget()[e?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",e);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(d,e,a){var f=this.options[d];e=c.Event(e);e.type=(d===this.widgetEventPrefix?d:this.widgetEventPrefix+d).toLowerCase();
12
- a=a||{};if(e.originalEvent){d=c.event.props.length;for(var g;d;){g=c.event.props[--d];e[g]=e.originalEvent[g]}}this.element.trigger(e,a);return!(c.isFunction(f)&&f.call(this.element[0],e,a)===false||e.isDefaultPrevented())}}})(jQuery);
10
+ this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(d,e){var a=d,f=this;if(arguments.length===0)return c.extend({},f.options);if(typeof d==="string"){if(e===undefined)return this.options[d];a={};a[d]=e}c.each(a,function(g,
11
+ i){f._setOption(g,i)});return f},_setOption:function(d,e){this.options[d]=e;if(d==="disabled")this.widget()[e?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",e);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(d,e,a){var f=this.options[d];e=c.Event(e);e.type=(d===this.widgetEventPrefix?d:this.widgetEventPrefix+d).toLowerCase();a=a||{};if(e.originalEvent){d=
12
+ c.event.props.length;for(var g;d;){g=c.event.props[--d];e[g]=e.originalEvent[g]}}this.element.trigger(e,a);return!(c.isFunction(f)&&f.call(this.element[0],e,a)===false||e.isDefaultPrevented())}}})(jQuery);
13
13
  (function(c){c.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(d){return b._mouseDown(d)}).bind("click."+this.widgetName,function(d){if(b._preventClickEvent){b._preventClickEvent=false;d.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(!b.originalEvent.mouseHandled){this._mouseStarted&&
14
14
  this._mouseUp(b);this._mouseDownEvent=b;var d=this,e=b.which==1,a=typeof this.options.cancel=="string"?c(b.target).parents().add(b.target).filter(this.options.cancel).length:false;if(!e||a||!this._mouseCapture(b))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(b)!==false;if(!this._mouseStarted){b.preventDefault();
15
15
  return true}}this._mouseMoveDelegate=function(f){return d._mouseMove(f)};this._mouseUpDelegate=function(f){return d._mouseUp(f)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);c.browser.safari||b.preventDefault();return b.originalEvent.mouseHandled=true}},_mouseMove:function(b){if(c.browser.msie&&!b.button)return this._mouseUp(b);if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}if(this._mouseDistanceMet(b)&&
16
16
  this._mouseDelayMet(b))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==false)?this._mouseDrag(b):this._mouseUp(b);return!this._mouseStarted},_mouseUp:function(b){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=b.target==this._mouseDownEvent.target;this._mouseStop(b)}return false},_mouseDistanceMet:function(b){return Math.max(Math.abs(this._mouseDownEvent.pageX-
17
17
  b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
18
+ (function(c){c.ui=c.ui||{};var b=/left|center|right/,d=/top|center|bottom/,e=c.fn.position,a=c.fn.offset;c.fn.position=function(f){if(!f||!f.of)return e.apply(this,arguments);f=c.extend({},f);var g=c(f.of),i=(f.collision||"flip").split(" "),j=f.offset?f.offset.split(" "):[0,0],m,k,h;if(f.of.nodeType===9){m=g.width();k=g.height();h={top:0,left:0}}else if(f.of.scrollTo&&f.of.document){m=g.width();k=g.height();h={top:g.scrollTop(),left:g.scrollLeft()}}else if(f.of.preventDefault){f.at="left top";m=k=
19
+ 0;h={top:f.of.pageY,left:f.of.pageX}}else{m=g.outerWidth();k=g.outerHeight();h=g.offset()}c.each(["my","at"],function(){var l=(f[this]||"").split(" ");if(l.length===1)l=b.test(l[0])?l.concat(["center"]):d.test(l[0])?["center"].concat(l):["center","center"];l[0]=b.test(l[0])?l[0]:"center";l[1]=d.test(l[1])?l[1]:"center";f[this]=l});if(i.length===1)i[1]=i[0];j[0]=parseInt(j[0],10)||0;if(j.length===1)j[1]=j[0];j[1]=parseInt(j[1],10)||0;if(f.at[0]==="right")h.left+=m;else if(f.at[0]==="center")h.left+=
20
+ m/2;if(f.at[1]==="bottom")h.top+=k;else if(f.at[1]==="center")h.top+=k/2;h.left+=j[0];h.top+=j[1];return this.each(function(){var l=c(this),n=l.outerWidth(),o=l.outerHeight(),p=c.extend({},h);if(f.my[0]==="right")p.left-=n;else if(f.my[0]==="center")p.left-=n/2;if(f.my[1]==="bottom")p.top-=o;else if(f.my[1]==="center")p.top-=o/2;p.left=parseInt(p.left);p.top=parseInt(p.top);c.each(["left","top"],function(q,r){c.ui.position[i[q]]&&c.ui.position[i[q]][r](p,{targetWidth:m,targetHeight:k,elemWidth:n,
21
+ elemHeight:o,offset:j,my:f.my,at:f.at})});c.fn.bgiframe&&l.bgiframe();l.offset(c.extend(p,{using:f.using}))})};c.ui.position={fit:{left:function(f,g){var i=c(window);g=f.left+g.elemWidth-i.width()-i.scrollLeft();f.left=g>0?f.left-g:Math.max(0,f.left)},top:function(f,g){var i=c(window);g=f.top+g.elemHeight-i.height()-i.scrollTop();f.top=g>0?f.top-g:Math.max(0,f.top)}},flip:{left:function(f,g){if(g.at[0]!=="center"){var i=c(window);i=f.left+g.elemWidth-i.width()-i.scrollLeft();var j=g.my[0]==="left"?
22
+ -g.elemWidth:g.my[0]==="right"?g.elemWidth:0,m=-2*g.offset[0];f.left+=f.left<0?j+g.targetWidth+m:i>0?j-g.targetWidth+m:0}},top:function(f,g){if(g.at[1]!=="center"){var i=c(window);i=f.top+g.elemHeight-i.height()-i.scrollTop();var j=g.my[1]==="top"?-g.elemHeight:g.my[1]==="bottom"?g.elemHeight:0,m=g.at[1]==="top"?g.targetHeight:-g.targetHeight,k=-2*g.offset[1];f.top+=f.top<0?j+g.targetHeight+k:i>0?j+m+k:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(f,g){if(/static/.test(c.curCSS(f,"position")))f.style.position=
23
+ "relative";var i=c(f),j=i.offset(),m=parseInt(c.curCSS(f,"top",true),10)||0,k=parseInt(c.curCSS(f,"left",true),10)||0;j={top:g.top-j.top+m,left:g.left-j.left+k};"using"in g?g.using.call(f,j):i.css(j)};c.fn.offset=function(f){var g=this[0];if(!g||!g.ownerDocument)return null;if(f)return this.each(function(){c.offset.setOffset(this,f)});return a.call(this)}}})(jQuery);
18
24
  (function(c){c.widget("ui.draggable",c.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
19
25
  "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();return this}},_mouseCapture:function(b){var d=
20
26
  this.options;if(this.helper||d.disabled||c(b.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(b);if(!this.handle)return false;return true},_mouseStart:function(b){var d=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(c.ui.ddmanager)c.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-
@@ -34,7 +40,7 @@ a?0:e.scrollLeft())*b)}},_generatePosition:function(b){var d=this.options,e=this
34
40
  this.offset.click.top;if(b.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(b.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(d.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/d.grid[1])*d.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-d.grid[1]:g+d.grid[1]:g;f=this.originalPageX+
35
41
  Math.round((f-this.originalPageX)/d.grid[0])*d.grid[0];f=this.containment?!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:!(f-this.offset.click.left<this.containment[0])?f-d.grid[0]:f+d.grid[0]:f}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(c.browser.safari&&c.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():a?0:e.scrollTop()),left:f-this.offset.click.left-
36
42
  this.offset.relative.left-this.offset.parent.left+(c.browser.safari&&c.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():a?0:e.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(b,d,e){e=e||this._uiHash();c.ui.plugin.call(this,b,[d,e]);if(b=="drag")this.positionAbs=
37
- this._convertPositionTo("absolute");return c.Widget.prototype._trigger.call(this,b,d,e)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});c.extend(c.ui.draggable,{version:"1.8"});c.ui.plugin.add("draggable","connectToSortable",{start:function(b,d){var e=c(this).data("draggable"),a=e.options,f=c.extend({},d,{item:e.element});e.sortables=[];c(a.connectToSortable).each(function(){var g=c.data(this,"sortable");
43
+ this._convertPositionTo("absolute");return c.Widget.prototype._trigger.call(this,b,d,e)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});c.extend(c.ui.draggable,{version:"1.8.1"});c.ui.plugin.add("draggable","connectToSortable",{start:function(b,d){var e=c(this).data("draggable"),a=e.options,f=c.extend({},d,{item:e.element});e.sortables=[];c(a.connectToSortable).each(function(){var g=c.data(this,"sortable");
38
44
  if(g&&!g.options.disabled){e.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",b,f)}})},stop:function(b,d){var e=c(this).data("draggable"),a=c.extend({},d,{item:e.element});c.each(e.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;e.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(b);this.instance.options.helper=this.instance.options._helper;
39
45
  e.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",b,a)}})},drag:function(b,d){var e=c(this).data("draggable"),a=this;c.each(e.sortables,function(){this.instance.positionAbs=e.positionAbs;this.instance.helperProportions=e.helperProportions;this.instance.offset.click=e.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=
40
46
  1;this.instance.currentItem=c(a).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return d.helper[0]};b.target=this.instance.currentItem[0];this.instance._mouseCapture(b,true);this.instance._mouseStart(b,true,true);this.instance.offset.click.top=e.offset.click.top;this.instance.offset.click.left=e.offset.click.left;this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left;
@@ -55,7 +61,7 @@ b.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var
55
61
  this.element.addClass(this.options.activeClass);d&&this._trigger("activate",b,this.ui(d))},_deactivate:function(b){var d=c.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);d&&this._trigger("deactivate",b,this.ui(d))},_over:function(b){var d=c.ui.ddmanager.current;if(!(!d||(d.currentItem||d.element)[0]==this.element[0]))if(this.accept.call(this.element[0],d.currentItem||d.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
56
62
  this._trigger("over",b,this.ui(d))}},_out:function(b){var d=c.ui.ddmanager.current;if(!(!d||(d.currentItem||d.element)[0]==this.element[0]))if(this.accept.call(this.element[0],d.currentItem||d.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",b,this.ui(d))}},_drop:function(b,d){var e=d||c.ui.ddmanager.current;if(!e||(e.currentItem||e.element)[0]==this.element[0])return false;var a=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var f=
57
63
  c.data(this,"droppable");if(f.options.greedy&&!f.options.disabled&&f.options.scope==e.options.scope&&f.accept.call(f.element[0],e.currentItem||e.element)&&c.ui.intersect(e,c.extend(f,{offset:f.element.offset()}),f.options.tolerance)){a=true;return false}});if(a)return false;if(this.accept.call(this.element[0],e.currentItem||e.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",
58
- b,this.ui(e));return this.element}return false},ui:function(b){return{draggable:b.currentItem||b.element,helper:b.helper,position:b.position,offset:b.positionAbs}}});c.extend(c.ui.droppable,{version:"1.8"});c.ui.intersect=function(b,d,e){if(!d.offset)return false;var a=(b.positionAbs||b.position.absolute).left,f=a+b.helperProportions.width,g=(b.positionAbs||b.position.absolute).top,i=g+b.helperProportions.height,j=d.offset.left,m=j+d.proportions.width,k=d.offset.top,h=k+d.proportions.height;switch(e){case "fit":return j<
64
+ b,this.ui(e));return this.element}return false},ui:function(b){return{draggable:b.currentItem||b.element,helper:b.helper,position:b.position,offset:b.positionAbs}}});c.extend(c.ui.droppable,{version:"1.8.1"});c.ui.intersect=function(b,d,e){if(!d.offset)return false;var a=(b.positionAbs||b.position.absolute).left,f=a+b.helperProportions.width,g=(b.positionAbs||b.position.absolute).top,i=g+b.helperProportions.height,j=d.offset.left,m=j+d.proportions.width,k=d.offset.top,h=k+d.proportions.height;switch(e){case "fit":return j<
59
65
  a&&f<m&&k<g&&i<h;case "intersect":return j<a+b.helperProportions.width/2&&f-b.helperProportions.width/2<m&&k<g+b.helperProportions.height/2&&i-b.helperProportions.height/2<h;case "pointer":return c.ui.isOver((b.positionAbs||b.position.absolute).top+(b.clickOffset||b.offset.click).top,(b.positionAbs||b.position.absolute).left+(b.clickOffset||b.offset.click).left,k,j,d.proportions.height,d.proportions.width);case "touch":return(g>=k&&g<=h||i>=k&&i<=h||g<k&&i>h)&&(a>=j&&a<=m||f>=j&&f<=m||a<j&&f>m);default:return false}};
60
66
  c.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(b,d){var e=c.ui.ddmanager.droppables[b.options.scope]||[],a=d?d.type:null,f=(b.currentItem||b.element).find(":data(droppable)").andSelf(),g=0;a:for(;g<e.length;g++)if(!(e[g].options.disabled||b&&!e[g].accept.call(e[g].element[0],b.currentItem||b.element))){for(var i=0;i<f.length;i++)if(f[i]==e[g].element[0]){e[g].proportions.height=0;continue a}e[g].visible=e[g].element.css("display")!="none";if(e[g].visible){e[g].offset=
61
67
  e[g].element.offset();e[g].proportions={width:e[g].element[0].offsetWidth,height:e[g].element[0].offsetHeight};a=="mousedown"&&e[g]._activate.call(e[g],d)}}},drop:function(b,d){var e=false;c.each(c.ui.ddmanager.droppables[b.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&c.ui.intersect(b,this,this.options.tolerance))e=e||this._drop.call(this,d);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],b.currentItem||b.element)){this.isout=1;
@@ -81,7 +87,7 @@ f.css("borderRightWidth"),f.css("borderBottomWidth"),f.css("borderLeftWidth")],i
81
87
  this.element.offset();if(this._helper){this.helper=this.helper||c('<div style="overflow:hidden;"></div>');var a=c.browser.msie&&c.browser.version<7,f=a?1:0;a=a?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+a,height:this.element.outerHeight()+a,position:"absolute",left:this.elementOffset.left-f+"px",top:this.elementOffset.top-f+"px",zIndex:++e.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(e,a){return{width:this.originalSize.width+
82
88
  a}},w:function(e,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(e,a,f){return{top:this.originalPosition.top+f,height:this.originalSize.height-f}},s:function(e,a,f){return{height:this.originalSize.height+f}},se:function(e,a,f){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,a,f]))},sw:function(e,a,f){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,a,f]))},ne:function(e,a,f){return c.extend(this._change.n.apply(this,
83
89
  arguments),this._change.e.apply(this,[e,a,f]))},nw:function(e,a,f){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,a,f]))}},_propagate:function(e,a){c.ui.plugin.call(this,e,[a,this.ui()]);e!="resize"&&this._trigger(e,a,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}}});c.extend(c.ui.resizable,
84
- {version:"1.8"});c.ui.plugin.add("resizable","alsoResize",{start:function(){var e=c(this).data("resizable").options,a=function(f){c(f).each(function(){c(this).data("resizable-alsoresize",{width:parseInt(c(this).width(),10),height:parseInt(c(this).height(),10),left:parseInt(c(this).css("left"),10),top:parseInt(c(this).css("top"),10)})})};if(typeof e.alsoResize=="object"&&!e.alsoResize.parentNode)if(e.alsoResize.length){e.alsoResize=e.alsoResize[0];a(e.alsoResize)}else c.each(e.alsoResize,function(f){a(f)});
90
+ {version:"1.8.1"});c.ui.plugin.add("resizable","alsoResize",{start:function(){var e=c(this).data("resizable").options,a=function(f){c(f).each(function(){c(this).data("resizable-alsoresize",{width:parseInt(c(this).width(),10),height:parseInt(c(this).height(),10),left:parseInt(c(this).css("left"),10),top:parseInt(c(this).css("top"),10)})})};if(typeof e.alsoResize=="object"&&!e.alsoResize.parentNode)if(e.alsoResize.length){e.alsoResize=e.alsoResize[0];a(e.alsoResize)}else c.each(e.alsoResize,function(f){a(f)});
85
91
  else a(e.alsoResize)},resize:function(){var e=c(this).data("resizable"),a=e.options,f=e.originalSize,g=e.originalPosition,i={height:e.size.height-f.height||0,width:e.size.width-f.width||0,top:e.position.top-g.top||0,left:e.position.left-g.left||0},j=function(m,k){c(m).each(function(){var h=c(this),l=c(this).data("resizable-alsoresize"),n={};c.each((k&&k.length?k:["width","height","top","left"])||["width","height","top","left"],function(o,p){if((o=(l[p]||0)+(i[p]||0))&&o>=0)n[p]=o||null});if(/relative/.test(h.css("position"))&&
86
92
  c.browser.opera){e._revertToRelativePosition=true;h.css({position:"absolute",top:"auto",left:"auto"})}h.css(n)})};typeof a.alsoResize=="object"&&!a.alsoResize.nodeType?c.each(a.alsoResize,function(m,k){j(m,k)}):j(a.alsoResize)},stop:function(){var e=c(this).data("resizable");if(e._revertToRelativePosition&&c.browser.opera){e._revertToRelativePosition=false;el.css({position:"relative"})}c(this).removeData("resizable-alsoresize-start")}});c.ui.plugin.add("resizable","animate",{stop:function(e){var a=
87
93
  c(this).data("resizable"),f=a.options,g=a._proportionallyResizeElements,i=g.length&&/textarea/i.test(g[0].nodeName),j=i&&c.ui.hasScroll(g[0],"left")?0:a.sizeDiff.height;i={width:a.size.width-(i?0:a.sizeDiff.width),height:a.size.height-j};j=parseInt(a.element.css("left"),10)+(a.position.left-a.originalPosition.left)||null;var m=parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top)||null;a.element.animate(c.extend(i,m&&j?{top:m,left:j}:{}),{duration:f.animateDuration,easing:f.animateEasing,
@@ -101,112 +107,58 @@ a.selected=false;a.$element.addClass("ui-unselecting");a.unselecting=true;d._tri
101
107
  a=this.opos[0],f=this.opos[1],g=b.pageX,i=b.pageY;if(a>g){var j=g;g=a;a=j}if(f>i){j=i;i=f;f=j}this.helper.css({left:a,top:f,width:g-a,height:i-f});this.selectees.each(function(){var m=c.data(this,"selectable-item");if(!(!m||m.element==d.element[0])){var k=false;if(e.tolerance=="touch")k=!(m.left>g||m.right<a||m.top>i||m.bottom<f);else if(e.tolerance=="fit")k=m.left>a&&m.right<g&&m.top>f&&m.bottom<i;if(k){if(m.selected){m.$element.removeClass("ui-selected");m.selected=false}if(m.unselecting){m.$element.removeClass("ui-unselecting");
102
108
  m.unselecting=false}if(!m.selecting){m.$element.addClass("ui-selecting");m.selecting=true;d._trigger("selecting",b,{selecting:m.element})}}else{if(m.selecting)if(b.metaKey&&m.startselected){m.$element.removeClass("ui-selecting");m.selecting=false;m.$element.addClass("ui-selected");m.selected=true}else{m.$element.removeClass("ui-selecting");m.selecting=false;if(m.startselected){m.$element.addClass("ui-unselecting");m.unselecting=true}d._trigger("unselecting",b,{unselecting:m.element})}if(m.selected)if(!b.metaKey&&
103
109
  !m.startselected){m.$element.removeClass("ui-selected");m.selected=false;m.$element.addClass("ui-unselecting");m.unselecting=true;d._trigger("unselecting",b,{unselecting:m.element})}}}});return false}},_mouseStop:function(b){var d=this;this.dragged=false;c(".ui-unselecting",this.element[0]).each(function(){var e=c.data(this,"selectable-item");e.$element.removeClass("ui-unselecting");e.unselecting=false;e.startselected=false;d._trigger("unselected",b,{unselected:e.element})});c(".ui-selecting",this.element[0]).each(function(){var e=
104
- c.data(this,"selectable-item");e.$element.removeClass("ui-selecting").addClass("ui-selected");e.selecting=false;e.selected=true;e.startselected=true;d._trigger("selected",b,{selected:e.element})});this._trigger("stop",b);this.helper.remove();return false}});c.extend(c.ui.selectable,{version:"1.8"})})(jQuery);
110
+ c.data(this,"selectable-item");e.$element.removeClass("ui-selecting").addClass("ui-selected");e.selecting=false;e.selected=true;e.startselected=true;d._trigger("selected",b,{selected:e.element})});this._trigger("stop",b);this.helper.remove();return false}});c.extend(c.ui.selectable,{version:"1.8.1"})})(jQuery);
105
111
  (function(c){c.widget("ui.sortable",c.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");
106
- 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 b=this.items.length-1;b>=0;b--)this.items[b].item.removeData("sortable-item");return this},_mouseCapture:function(b,d){if(this.reverting)return false;if(this.options.disabled||this.options.type==
107
- "static")return false;this._refreshItems(b);var e=null,a=this;c(b.target).parents().each(function(){if(c.data(this,"sortable-item")==a){e=c(this);return false}});if(c.data(b.target,"sortable-item")==a)e=c(b.target);if(!e)return false;if(this.options.handle&&!d){var f=false;c(this.options.handle,e).find("*").andSelf().each(function(){if(this==b.target)f=true});if(!f)return false}this.currentItem=e;this._removeCurrentsFromItems();return true},_mouseStart:function(b,d,e){d=this.options;var a=this;this.currentContainer=
108
- this;this.refreshPositions();this.helper=this._createHelper(b);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");c.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});
109
- this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();d.containment&&this._setContainment();if(d.cursor){if(c("body").css("cursor"))this._storedCursor=c("body").css("cursor");c("body").css("cursor",d.cursor)}if(d.opacity){if(this.helper.css("opacity"))this._storedOpacity=
110
- this.helper.css("opacity");this.helper.css("opacity",d.opacity)}if(d.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",d.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",b,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!e)for(e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("activate",b,a._uiHash(this));
111
- if(c.ui.ddmanager)c.ui.ddmanager.current=this;c.ui.ddmanager&&!d.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,b);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(b);return true},_mouseDrag:function(b){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var d=this.options,e=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!=
112
- "HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<d.scrollSensitivity)this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop+d.scrollSpeed;else if(b.pageY-this.overflowOffset.top<d.scrollSensitivity)this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop-d.scrollSpeed;if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-b.pageX<d.scrollSensitivity)this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft+d.scrollSpeed;else if(b.pageX-this.overflowOffset.left<
113
- d.scrollSensitivity)this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft-d.scrollSpeed}else{if(b.pageY-c(document).scrollTop()<d.scrollSensitivity)e=c(document).scrollTop(c(document).scrollTop()-d.scrollSpeed);else if(c(window).height()-(b.pageY-c(document).scrollTop())<d.scrollSensitivity)e=c(document).scrollTop(c(document).scrollTop()+d.scrollSpeed);if(b.pageX-c(document).scrollLeft()<d.scrollSensitivity)e=c(document).scrollLeft(c(document).scrollLeft()-d.scrollSpeed);else if(c(window).width()-
114
- (b.pageX-c(document).scrollLeft())<d.scrollSensitivity)e=c(document).scrollLeft(c(document).scrollLeft()+d.scrollSpeed)}e!==false&&c.ui.ddmanager&&!d.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,b)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(d=this.items.length-1;d>=0;d--){e=this.items[d];var a=
115
- e.item[0],f=this._intersectsWithPointer(e);if(f)if(a!=this.currentItem[0]&&this.placeholder[f==1?"next":"prev"]()[0]!=a&&!c.ui.contains(this.placeholder[0],a)&&(this.options.type=="semi-dynamic"?!c.ui.contains(this.element[0],a):true)){this.direction=f==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(e))this._rearrange(b,e);else break;this._trigger("change",b,this._uiHash());break}}this._contactContainers(b);c.ui.ddmanager&&c.ui.ddmanager.drag(this,b);this._trigger("sort",
116
- b,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(b,d){if(b){c.ui.ddmanager&&!this.options.dropBehaviour&&c.ui.ddmanager.drop(this,b);if(this.options.revert){var e=this;d=e.placeholder.offset();e.reverting=true;c(this.helper).animate({left:d.left-this.offset.parent.left-e.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:d.top-this.offset.parent.top-e.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},
117
- parseInt(this.options.revert,10)||500,function(){e._clear(b)})}else this._clear(b,d);return false}},cancel:function(){var b=this;if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("deactivate",null,b._uiHash(this));if(this.containers[d].containerCache.over){this.containers[d]._trigger("out",null,b._uiHash(this));this.containers[d].containerCache.over=
118
- 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();c.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?c(this.domPosition.prev).after(this.currentItem):c(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(b){var d=this._getItemsAsjQuery(b&&b.connected),e=[];b=b||{};c(d).each(function(){var a=
119
- (c(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[-=_](.+)/);if(a)e.push((b.key||a[1]+"[]")+"="+(b.key&&b.expression?a[1]:a[2]))});return e.join("&")},toArray:function(b){var d=this._getItemsAsjQuery(b&&b.connected),e=[];b=b||{};d.each(function(){e.push(c(b.item||this).attr(b.attribute||"id")||"")});return e},_intersectsWith:function(b){var d=this.positionAbs.left,e=d+this.helperProportions.width,a=this.positionAbs.top,f=a+this.helperProportions.height,g=b.left,i=g+b.width,j=
120
- b.top,m=j+b.height,k=this.offset.click.top,h=this.offset.click.left;k=a+k>j&&a+k<m&&d+h>g&&d+h<i;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>b[this.floating?"width":"height"]?k:g<d+this.helperProportions.width/2&&e-this.helperProportions.width/2<i&&j<a+this.helperProportions.height/2&&f-this.helperProportions.height/2<m},_intersectsWithPointer:function(b){var d=c.ui.isOverAxis(this.positionAbs.top+
121
- this.offset.click.top,b.top,b.height);b=c.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left,b.width);d=d&&b;b=this._getDragVerticalDirection();var e=this._getDragHorizontalDirection();if(!d)return false;return this.floating?e&&e=="right"||b=="down"?2:1:b&&(b=="down"?2:1)},_intersectsWithSides:function(b){var d=c.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top+b.height/2,b.height);b=c.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left+b.width/2,b.width);
122
- var e=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();return this.floating&&a?a=="right"&&b||a=="left"&&!b:e&&(e=="down"&&d||e=="up"&&!d)},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!=0&&(b>0?"down":"up")},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;return b!=0&&(b>0?"right":"left")},refresh:function(b){this._refreshItems(b);this.refreshPositions();return this},_connectWith:function(){var b=
123
- this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(b){var d=[],e=[],a=this._connectWith();if(a&&b)for(b=a.length-1;b>=0;b--)for(var f=c(a[b]),g=f.length-1;g>=0;g--){var i=c.data(f[g],"sortable");if(i&&i!=this&&!i.options.disabled)e.push([c.isFunction(i.options.items)?i.options.items.call(i.element):c(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i])}e.push([c.isFunction(this.options.items)?this.options.items.call(this.element,
124
- null,{options:this.options,item:this.currentItem}):c(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(b=e.length-1;b>=0;b--)e[b][0].each(function(){d.push(this)});return c(d)},_removeCurrentsFromItems:function(){for(var b=this.currentItem.find(":data(sortable-item)"),d=0;d<this.items.length;d++)for(var e=0;e<b.length;e++)b[e]==this.items[d].item[0]&&this.items.splice(d,1)},_refreshItems:function(b){this.items=[];this.containers=[this];var d=this.items,
125
- e=[[c.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):c(this.options.items,this.element),this]],a=this._connectWith();if(a)for(var f=a.length-1;f>=0;f--)for(var g=c(a[f]),i=g.length-1;i>=0;i--){var j=c.data(g[i],"sortable");if(j&&j!=this&&!j.options.disabled){e.push([c.isFunction(j.options.items)?j.options.items.call(j.element[0],b,{item:this.currentItem}):c(j.options.items,j.element),j]);this.containers.push(j)}}for(f=e.length-1;f>=0;f--){b=e[f][1];
126
- a=e[f][0];i=0;for(g=a.length;i<g;i++){j=c(a[i]);j.data("sortable-item",b);d.push({item:j,instance:b,width:0,height:0,left:0,top:0})}}},refreshPositions:function(b){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var d=this.items.length-1;d>=0;d--){var e=this.items[d],a=this.options.toleranceElement?c(this.options.toleranceElement,e.item):e.item;if(!b){e.width=a.outerWidth();e.height=a.outerHeight()}a=a.offset();e.left=a.left;e.top=a.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);
127
- else for(d=this.containers.length-1;d>=0;d--){a=this.containers[d].element.offset();this.containers[d].containerCache.left=a.left;this.containers[d].containerCache.top=a.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=this.containers[d].element.outerHeight()}return this},_createPlaceholder:function(b){var d=b||this,e=d.options;if(!e.placeholder||e.placeholder.constructor==String){var a=e.placeholder;e.placeholder={element:function(){var f=
128
- c(document.createElement(d.currentItem[0].nodeName)).addClass(a||d.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!a)f.style.visibility="hidden";return f},update:function(f,g){if(!(a&&!e.forcePlaceholderSize)){g.height()||g.height(d.currentItem.innerHeight()-parseInt(d.currentItem.css("paddingTop")||0,10)-parseInt(d.currentItem.css("paddingBottom")||0,10));g.width()||g.width(d.currentItem.innerWidth()-parseInt(d.currentItem.css("paddingLeft")||0,10)-parseInt(d.currentItem.css("paddingRight")||
129
- 0,10))}}}}d.placeholder=c(e.placeholder.element.call(d.element,d.currentItem));d.currentItem.after(d.placeholder);e.placeholder.update(d,d.placeholder)},_contactContainers:function(b){for(var d=null,e=null,a=this.containers.length-1;a>=0;a--)if(!c.ui.contains(this.currentItem[0],this.containers[a].element[0]))if(this._intersectsWith(this.containers[a].containerCache)){if(!(d&&c.ui.contains(this.containers[a].element[0],d.element[0]))){d=this.containers[a];e=a}}else if(this.containers[a].containerCache.over){this.containers[a]._trigger("out",
130
- b,this._uiHash(this));this.containers[a].containerCache.over=0}if(d)if(this.containers.length===1){this.containers[e]._trigger("over",b,this._uiHash(this));this.containers[e].containerCache.over=1}else if(this.currentContainer!=this.containers[e]){d=1E4;a=null;for(var f=this.positionAbs[this.containers[e].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(c.ui.contains(this.containers[e].element[0],this.items[g].item[0])){var i=this.items[g][this.containers[e].floating?"left":"top"];if(Math.abs(i-
131
- f)<d){d=Math.abs(i-f);a=this.items[g]}}if(a||this.options.dropOnEmpty){this.currentContainer=this.containers[e];a?this._rearrange(b,a,null,true):this._rearrange(b,null,this.containers[e].element,true);this._trigger("change",b,this._uiHash());this.containers[e]._trigger("change",b,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[e]._trigger("over",b,this._uiHash(this));this.containers[e].containerCache.over=1}}},_createHelper:function(b){var d=
132
- this.options;b=c.isFunction(d.helper)?c(d.helper.apply(this.element[0],[b,this.currentItem])):d.helper=="clone"?this.currentItem.clone():this.currentItem;b.parents("body").length||c(d.appendTo!="parent"?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0]);if(b[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(b[0].style.width==
133
- ""||d.forceHelperSize)b.width(this.currentItem.width());if(b[0].style.height==""||d.forceHelperSize)b.height(this.currentItem.height());return b},_adjustOffsetFromHelper:function(b){if(typeof b=="string")b=b.split(" ");if(c.isArray(b))b={left:+b[0],top:+b[1]||0};if("left"in b)this.offset.click.left=b.left+this.margins.left;if("right"in b)this.offset.click.left=this.helperProportions.width-b.right+this.margins.left;if("top"in b)this.offset.click.top=b.top+this.margins.top;if("bottom"in b)this.offset.click.top=
134
- this.helperProportions.height-b.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&c.browser.msie)b=
135
- {top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.currentItem.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.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"),
136
- 10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;if(b.containment=="parent")b.containment=this.helper[0].parentNode;if(b.containment=="document"||b.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,c(b.containment=="document"?
137
- document:window).width()-this.helperProportions.width-this.margins.left,(c(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)){var d=c(b.containment)[0];b=c(b.containment).offset();var e=c(d).css("overflow")!="hidden";this.containment=[b.left+(parseInt(c(d).css("borderLeftWidth"),10)||0)+(parseInt(c(d).css("paddingLeft"),10)||0)-this.margins.left,b.top+(parseInt(c(d).css("borderTopWidth"),
138
- 10)||0)+(parseInt(c(d).css("paddingTop"),10)||0)-this.margins.top,b.left+(e?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(c(d).css("borderLeftWidth"),10)||0)-(parseInt(c(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,b.top+(e?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(c(d).css("borderTopWidth"),10)||0)-(parseInt(c(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(b,d){if(!d)d=
139
- this.position;b=b=="absolute"?1:-1;var e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,a=/(html|body)/i.test(e[0].tagName);return{top:d.top+this.offset.relative.top*b+this.offset.parent.top*b-(c.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():a?0:e.scrollTop())*b),left:d.left+this.offset.relative.left*b+this.offset.parent.left*b-(c.browser.safari&&
140
- this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():a?0:e.scrollLeft())*b)}},_generatePosition:function(b){var d=this.options,e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,a=/(html|body)/i.test(e[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();
141
- var f=b.pageX,g=b.pageY;if(this.originalPosition){if(this.containment){if(b.pageX-this.offset.click.left<this.containment[0])f=this.containment[0]+this.offset.click.left;if(b.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(b.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(b.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(d.grid){g=this.originalPageY+Math.round((g-
142
- this.originalPageY)/d.grid[1])*d.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-d.grid[1]:g+d.grid[1]:g;f=this.originalPageX+Math.round((f-this.originalPageX)/d.grid[0])*d.grid[0];f=this.containment?!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:!(f-this.offset.click.left<this.containment[0])?f-d.grid[0]:f+d.grid[0]:f}}return{top:g-
143
- this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(c.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():a?0:e.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(c.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():a?0:e.scrollLeft())}},_rearrange:function(b,d,e,a){e?e[0].appendChild(this.placeholder[0]):d.item[0].parentNode.insertBefore(this.placeholder[0],
144
- this.direction=="down"?d.item[0]:d.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var f=this,g=this.counter;window.setTimeout(function(){g==f.counter&&f.refreshPositions(!a)},0)},_clear:function(b,d){this.reverting=false;var e=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var a in this._storedCSS)if(this._storedCSS[a]=="auto"||this._storedCSS[a]=="static")this._storedCSS[a]=
145
- "";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!d&&e.push(function(f){this._trigger("receive",f,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])&&!d)e.push(function(f){this._trigger("update",f,this._uiHash())});if(!c.ui.contains(this.element[0],this.currentItem[0])){d||e.push(function(f){this._trigger("remove",
146
- f,this._uiHash())});for(a=this.containers.length-1;a>=0;a--)if(c.ui.contains(this.containers[a].element[0],this.currentItem[0])&&!d){e.push(function(f){return function(g){f._trigger("receive",g,this._uiHash(this))}}.call(this,this.containers[a]));e.push(function(f){return function(g){f._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[a]))}}for(a=this.containers.length-1;a>=0;a--){d||e.push(function(f){return function(g){f._trigger("deactivate",g,this._uiHash(this))}}.call(this,
147
- this.containers[a]));if(this.containers[a].containerCache.over){e.push(function(f){return function(g){f._trigger("out",g,this._uiHash(this))}}.call(this,this.containers[a]));this.containers[a].containerCache.over=0}}this._storedCursor&&c("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(!d){this._trigger("beforeStop",
148
- b,this._uiHash());for(a=0;a<e.length;a++)e[a].call(this,b);this._trigger("stop",b,this._uiHash())}return false}d||this._trigger("beforeStop",b,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!d){for(a=0;a<e.length;a++)e[a].call(this,b);this._trigger("stop",b,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){c.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},
149
- _uiHash:function(b){var d=b||this;return{helper:d.helper,placeholder:d.placeholder||c([]),position:d.position,originalPosition:d.originalPosition,offset:d.positionAbs,item:d.currentItem,sender:b?b.element:null}}});c.extend(c.ui.sortable,{version:"1.8"})})(jQuery);
150
- jQuery.effects||function(c){function b(k){var h;if(k&&k.constructor==Array&&k.length==3)return k;if(h=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(k))return[parseInt(h[1],10),parseInt(h[2],10),parseInt(h[3],10)];if(h=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(k))return[parseFloat(h[1])*2.55,parseFloat(h[2])*2.55,parseFloat(h[3])*2.55];if(h=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(k))return[parseInt(h[1],
151
- 16),parseInt(h[2],16),parseInt(h[3],16)];if(h=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(k))return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(k))return i.transparent;return i[c.trim(k).toLowerCase()]}function d(k,h){var l;do{l=c.curCSS(k,h);if(l!=""&&l!="transparent"||c.nodeName(k,"body"))break;h="backgroundColor"}while(k=k.parentNode);return b(l)}function e(){var k=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,
152
- h={},l,n;if(k&&k.length&&k[0]&&k[k[0]])for(var o=k.length;o--;){l=k[o];if(typeof k[l]=="string"){n=l.replace(/\-(\w)/g,function(p,q){return q.toUpperCase()});h[n]=k[l]}}else for(l in k)if(typeof k[l]==="string")h[l]=k[l];return h}function a(k){var h,l;for(h in k){l=k[h];if(l==null||c.isFunction(l)||h in m||/scrollbar/.test(h)||!/color/i.test(h)&&isNaN(parseFloat(l)))delete k[h]}return k}function f(k,h){var l={_:0},n;for(n in h)if(k[n]!=h[n])l[n]=h[n];return l}function g(k,h,l,n){if(typeof k=="object"){n=
153
- h;l=null;h=k;k=h.effect}if(c.isFunction(h)){n=h;l=null;h={}}if(c.isFunction(l)){n=l;l=null}if(typeof h=="number"||c.fx.speeds[h]){n=l;l=h;h={}}h=h||{};l=l||h.duration;l=c.fx.off?0:typeof l=="number"?l:c.fx.speeds[l]||c.fx.speeds._default;n=n||h.complete;return[k,h,l,n]}c.effects={};c.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(k,h){c.fx.step[h]=function(l){if(!l.colorInit){l.start=d(l.elem,h);l.end=b(l.end);l.colorInit=
154
- true}l.elem.style[h]="rgb("+Math.max(Math.min(parseInt(l.pos*(l.end[0]-l.start[0])+l.start[0],10),255),0)+","+Math.max(Math.min(parseInt(l.pos*(l.end[1]-l.start[1])+l.start[1],10),255),0)+","+Math.max(Math.min(parseInt(l.pos*(l.end[2]-l.start[2])+l.start[2],10),255),0)+")"}});var i={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,
155
- 183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,
156
- 165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},j=["add","remove","toggle"],m={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};c.effects.animateClass=function(k,h,l,n){if(c.isFunction(l)){n=l;l=null}return this.each(function(){var o=c(this),p=o.attr("style")||" ",q=a(e.call(this)),r,s=o.attr("className");c.each(j,function(u,
157
- v){k[v]&&o[v+"Class"](k[v])});r=a(e.call(this));o.attr("className",s);o.animate(f(q,r),h,l,function(){c.each(j,function(u,v){k[v]&&o[v+"Class"](k[v])});if(typeof o.attr("style")=="object"){o.attr("style").cssText="";o.attr("style").cssText=p}else o.attr("style",p);n&&n.apply(this,arguments)})})};c.fn.extend({_addClass:c.fn.addClass,addClass:function(k,h,l,n){return h?c.effects.animateClass.apply(this,[{add:k},h,l,n]):this._addClass(k)},_removeClass:c.fn.removeClass,removeClass:function(k,h,l,n){return h?
158
- c.effects.animateClass.apply(this,[{remove:k},h,l,n]):this._removeClass(k)},_toggleClass:c.fn.toggleClass,toggleClass:function(k,h,l,n,o){return typeof h=="boolean"||h===undefined?l?c.effects.animateClass.apply(this,[h?{add:k}:{remove:k},l,n,o]):this._toggleClass(k,h):c.effects.animateClass.apply(this,[{toggle:k},h,l,n])},switchClass:function(k,h,l,n,o){return c.effects.animateClass.apply(this,[{add:h,remove:k},l,n,o])}});c.extend(c.effects,{version:"1.8",save:function(k,h){for(var l=0;l<h.length;l++)h[l]!==
159
- null&&k.data("ec.storage."+h[l],k[0].style[h[l]])},restore:function(k,h){for(var l=0;l<h.length;l++)h[l]!==null&&k.css(h[l],k.data("ec.storage."+h[l]))},setMode:function(k,h){if(h=="toggle")h=k.is(":hidden")?"show":"hide";return h},getBaseline:function(k,h){var l;switch(k[0]){case "top":l=0;break;case "middle":l=0.5;break;case "bottom":l=1;break;default:l=k[0]/h.height}switch(k[1]){case "left":k=0;break;case "center":k=0.5;break;case "right":k=1;break;default:k=k[1]/h.width}return{x:k,y:l}},createWrapper:function(k){if(k.parent().is(".ui-effects-wrapper"))return k.parent();
160
- var h={width:k.outerWidth(true),height:k.outerHeight(true),"float":k.css("float")},l=c("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});k.wrap(l);l=k.parent();if(k.css("position")=="static"){l.css({position:"relative"});k.css({position:"relative"})}else{c.extend(h,{position:k.css("position"),zIndex:k.css("z-index")});c.each(["top","left","bottom","right"],function(n,o){h[o]=k.css(o);if(isNaN(parseInt(h[o],10)))h[o]="auto"});
161
- k.css({position:"relative",top:0,left:0})}return l.css(h).show()},removeWrapper:function(k){if(k.parent().is(".ui-effects-wrapper"))return k.parent().replaceWith(k);return k},setTransition:function(k,h,l,n){n=n||{};c.each(h,function(o,p){unit=k.cssUnit(p);if(unit[0]>0)n[p]=unit[0]*l+unit[1]});return n}});c.fn.extend({effect:function(k){var h=g.apply(this,arguments);h={options:h[1],duration:h[2],callback:h[3]};var l=c.effects[k];return l&&!c.fx.off?l.call(this,h):this},_show:c.fn.show,show:function(k){if(!k||
162
- typeof k=="number"||c.fx.speeds[k])return this._show.apply(this,arguments);else{var h=g.apply(this,arguments);h[1].mode="show";return this.effect.apply(this,h)}},_hide:c.fn.hide,hide:function(k){if(!k||typeof k=="number"||c.fx.speeds[k])return this._hide.apply(this,arguments);else{var h=g.apply(this,arguments);h[1].mode="hide";return this.effect.apply(this,h)}},__toggle:c.fn.toggle,toggle:function(k){if(!k||typeof k=="number"||c.fx.speeds[k]||typeof k=="boolean"||c.isFunction(k))return this.__toggle.apply(this,
163
- arguments);else{var h=g.apply(this,arguments);h[1].mode="toggle";return this.effect.apply(this,h)}},cssUnit:function(k){var h=this.css(k),l=[];c.each(["em","px","%","pt"],function(n,o){if(h.indexOf(o)>0)l=[parseFloat(h),o]});return l}});c.easing.jswing=c.easing.swing;c.extend(c.easing,{def:"easeOutQuad",swing:function(k,h,l,n,o){return c.easing[c.easing.def](k,h,l,n,o)},easeInQuad:function(k,h,l,n,o){return n*(h/=o)*h+l},easeOutQuad:function(k,h,l,n,o){return-n*(h/=o)*(h-2)+l},easeInOutQuad:function(k,
164
- h,l,n,o){if((h/=o/2)<1)return n/2*h*h+l;return-n/2*(--h*(h-2)-1)+l},easeInCubic:function(k,h,l,n,o){return n*(h/=o)*h*h+l},easeOutCubic:function(k,h,l,n,o){return n*((h=h/o-1)*h*h+1)+l},easeInOutCubic:function(k,h,l,n,o){if((h/=o/2)<1)return n/2*h*h*h+l;return n/2*((h-=2)*h*h+2)+l},easeInQuart:function(k,h,l,n,o){return n*(h/=o)*h*h*h+l},easeOutQuart:function(k,h,l,n,o){return-n*((h=h/o-1)*h*h*h-1)+l},easeInOutQuart:function(k,h,l,n,o){if((h/=o/2)<1)return n/2*h*h*h*h+l;return-n/2*((h-=2)*h*h*h-2)+
165
- l},easeInQuint:function(k,h,l,n,o){return n*(h/=o)*h*h*h*h+l},easeOutQuint:function(k,h,l,n,o){return n*((h=h/o-1)*h*h*h*h+1)+l},easeInOutQuint:function(k,h,l,n,o){if((h/=o/2)<1)return n/2*h*h*h*h*h+l;return n/2*((h-=2)*h*h*h*h+2)+l},easeInSine:function(k,h,l,n,o){return-n*Math.cos(h/o*(Math.PI/2))+n+l},easeOutSine:function(k,h,l,n,o){return n*Math.sin(h/o*(Math.PI/2))+l},easeInOutSine:function(k,h,l,n,o){return-n/2*(Math.cos(Math.PI*h/o)-1)+l},easeInExpo:function(k,h,l,n,o){return h==0?l:n*Math.pow(2,
166
- 10*(h/o-1))+l},easeOutExpo:function(k,h,l,n,o){return h==o?l+n:n*(-Math.pow(2,-10*h/o)+1)+l},easeInOutExpo:function(k,h,l,n,o){if(h==0)return l;if(h==o)return l+n;if((h/=o/2)<1)return n/2*Math.pow(2,10*(h-1))+l;return n/2*(-Math.pow(2,-10*--h)+2)+l},easeInCirc:function(k,h,l,n,o){return-n*(Math.sqrt(1-(h/=o)*h)-1)+l},easeOutCirc:function(k,h,l,n,o){return n*Math.sqrt(1-(h=h/o-1)*h)+l},easeInOutCirc:function(k,h,l,n,o){if((h/=o/2)<1)return-n/2*(Math.sqrt(1-h*h)-1)+l;return n/2*(Math.sqrt(1-(h-=2)*
167
- h)+1)+l},easeInElastic:function(k,h,l,n,o){k=1.70158;var p=0,q=n;if(h==0)return l;if((h/=o)==1)return l+n;p||(p=o*0.3);if(q<Math.abs(n)){q=n;k=p/4}else k=p/(2*Math.PI)*Math.asin(n/q);return-(q*Math.pow(2,10*(h-=1))*Math.sin((h*o-k)*2*Math.PI/p))+l},easeOutElastic:function(k,h,l,n,o){k=1.70158;var p=0,q=n;if(h==0)return l;if((h/=o)==1)return l+n;p||(p=o*0.3);if(q<Math.abs(n)){q=n;k=p/4}else k=p/(2*Math.PI)*Math.asin(n/q);return q*Math.pow(2,-10*h)*Math.sin((h*o-k)*2*Math.PI/p)+n+l},easeInOutElastic:function(k,
168
- h,l,n,o){k=1.70158;var p=0,q=n;if(h==0)return l;if((h/=o/2)==2)return l+n;p||(p=o*0.3*1.5);if(q<Math.abs(n)){q=n;k=p/4}else k=p/(2*Math.PI)*Math.asin(n/q);if(h<1)return-0.5*q*Math.pow(2,10*(h-=1))*Math.sin((h*o-k)*2*Math.PI/p)+l;return q*Math.pow(2,-10*(h-=1))*Math.sin((h*o-k)*2*Math.PI/p)*0.5+n+l},easeInBack:function(k,h,l,n,o,p){if(p==undefined)p=1.70158;return n*(h/=o)*h*((p+1)*h-p)+l},easeOutBack:function(k,h,l,n,o,p){if(p==undefined)p=1.70158;return n*((h=h/o-1)*h*((p+1)*h+p)+1)+l},easeInOutBack:function(k,
169
- h,l,n,o,p){if(p==undefined)p=1.70158;if((h/=o/2)<1)return n/2*h*h*(((p*=1.525)+1)*h-p)+l;return n/2*((h-=2)*h*(((p*=1.525)+1)*h+p)+2)+l},easeInBounce:function(k,h,l,n,o){return n-c.easing.easeOutBounce(k,o-h,0,n,o)+l},easeOutBounce:function(k,h,l,n,o){return(h/=o)<1/2.75?n*7.5625*h*h+l:h<2/2.75?n*(7.5625*(h-=1.5/2.75)*h+0.75)+l:h<2.5/2.75?n*(7.5625*(h-=2.25/2.75)*h+0.9375)+l:n*(7.5625*(h-=2.625/2.75)*h+0.984375)+l},easeInOutBounce:function(k,h,l,n,o){if(h<o/2)return c.easing.easeInBounce(k,h*2,0,
170
- n,o)*0.5+l;return c.easing.easeOutBounce(k,h*2-o,0,n,o)*0.5+n*0.5+l}})}(jQuery);
171
- (function(c){c.effects.blind=function(b){return this.queue(function(){var d=c(this),e=["position","top","left"],a=c.effects.setMode(d,b.options.mode||"hide"),f=b.options.direction||"vertical";c.effects.save(d,e);d.show();var g=c.effects.createWrapper(d).css({overflow:"hidden"}),i=f=="vertical"?"height":"width";f=f=="vertical"?g.height():g.width();a=="show"&&g.css(i,0);var j={};j[i]=a=="show"?f:0;g.animate(j,b.duration,b.options.easing,function(){a=="hide"&&d.hide();c.effects.restore(d,e);c.effects.removeWrapper(d);
172
- b.callback&&b.callback.apply(d[0],arguments);d.dequeue()})})}})(jQuery);
173
- (function(c){c.effects.bounce=function(b){return this.queue(function(){var d=c(this),e=["position","top","left"],a=c.effects.setMode(d,b.options.mode||"effect"),f=b.options.direction||"up",g=b.options.distance||20,i=b.options.times||5,j=b.duration||250;/show|hide/.test(a)&&e.push("opacity");c.effects.save(d,e);d.show();c.effects.createWrapper(d);var m=f=="up"||f=="down"?"top":"left";f=f=="up"||f=="left"?"pos":"neg";g=b.options.distance||(m=="top"?d.outerHeight({margin:true})/3:d.outerWidth({margin:true})/
174
- 3);if(a=="show")d.css("opacity",0).css(m,f=="pos"?-g:g);if(a=="hide")g/=i*2;a!="hide"&&i--;if(a=="show"){var k={opacity:1};k[m]=(f=="pos"?"+=":"-=")+g;d.animate(k,j/2,b.options.easing);g/=2;i--}for(k=0;k<i;k++){var h={},l={};h[m]=(f=="pos"?"-=":"+=")+g;l[m]=(f=="pos"?"+=":"-=")+g;d.animate(h,j/2,b.options.easing).animate(l,j/2,b.options.easing);g=a=="hide"?g*2:g/2}if(a=="hide"){k={opacity:0};k[m]=(f=="pos"?"-=":"+=")+g;d.animate(k,j/2,b.options.easing,function(){d.hide();c.effects.restore(d,e);c.effects.removeWrapper(d);
175
- b.callback&&b.callback.apply(this,arguments)})}else{h={};l={};h[m]=(f=="pos"?"-=":"+=")+g;l[m]=(f=="pos"?"+=":"-=")+g;d.animate(h,j/2,b.options.easing).animate(l,j/2,b.options.easing,function(){c.effects.restore(d,e);c.effects.removeWrapper(d);b.callback&&b.callback.apply(this,arguments)})}d.queue("fx",function(){d.dequeue()});d.dequeue()})}})(jQuery);
176
- (function(c){c.effects.clip=function(b){return this.queue(function(){var d=c(this),e=["position","top","left","height","width"],a=c.effects.setMode(d,b.options.mode||"hide"),f=b.options.direction||"vertical";c.effects.save(d,e);d.show();var g=c.effects.createWrapper(d).css({overflow:"hidden"});g=d[0].tagName=="IMG"?g:d;var i={size:f=="vertical"?"height":"width",position:f=="vertical"?"top":"left"};f=f=="vertical"?g.height():g.width();if(a=="show"){g.css(i.size,0);g.css(i.position,f/2)}var j={};j[i.size]=
177
- a=="show"?f:0;j[i.position]=a=="show"?0:f/2;g.animate(j,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){a=="hide"&&d.hide();c.effects.restore(d,e);c.effects.removeWrapper(d);b.callback&&b.callback.apply(d[0],arguments);d.dequeue()}})})}})(jQuery);
178
- (function(c){c.effects.drop=function(b){return this.queue(function(){var d=c(this),e=["position","top","left","opacity"],a=c.effects.setMode(d,b.options.mode||"hide"),f=b.options.direction||"left";c.effects.save(d,e);d.show();c.effects.createWrapper(d);var g=f=="up"||f=="down"?"top":"left";f=f=="up"||f=="left"?"pos":"neg";var i=b.options.distance||(g=="top"?d.outerHeight({margin:true})/2:d.outerWidth({margin:true})/2);if(a=="show")d.css("opacity",0).css(g,f=="pos"?-i:i);var j={opacity:a=="show"?1:
179
- 0};j[g]=(a=="show"?f=="pos"?"+=":"-=":f=="pos"?"-=":"+=")+i;d.animate(j,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){a=="hide"&&d.hide();c.effects.restore(d,e);c.effects.removeWrapper(d);b.callback&&b.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
180
- (function(c){c.effects.explode=function(b){return this.queue(function(){var d=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3,e=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3;b.options.mode=b.options.mode=="toggle"?c(this).is(":visible")?"hide":"show":b.options.mode;var a=c(this).show().css("visibility","hidden"),f=a.offset();f.top-=parseInt(a.css("marginTop"),10)||0;f.left-=parseInt(a.css("marginLeft"),10)||0;for(var g=a.outerWidth(true),i=a.outerHeight(true),j=0;j<d;j++)for(var m=
181
- 0;m<e;m++)a.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-m*(g/e),top:-j*(i/d)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g/e,height:i/d,left:f.left+m*(g/e)+(b.options.mode=="show"?(m-Math.floor(e/2))*(g/e):0),top:f.top+j*(i/d)+(b.options.mode=="show"?(j-Math.floor(d/2))*(i/d):0),opacity:b.options.mode=="show"?0:1}).animate({left:f.left+m*(g/e)+(b.options.mode=="show"?0:(m-Math.floor(e/2))*(g/e)),top:f.top+
182
- j*(i/d)+(b.options.mode=="show"?0:(j-Math.floor(d/2))*(i/d)),opacity:b.options.mode=="show"?1:0},b.duration||500);setTimeout(function(){b.options.mode=="show"?a.css({visibility:"visible"}):a.css({visibility:"visible"}).hide();b.callback&&b.callback.apply(a[0]);a.dequeue();c("div.ui-effects-explode").remove()},b.duration||500)})}})(jQuery);
183
- (function(c){c.effects.fade=function(b){return this.queue(function(){var d=c(this),e=c.effects.setMode(d,b.options.mode||"hide");d.animate({opacity:e},{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){b.callback&&b.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
184
- (function(c){c.effects.fold=function(b){return this.queue(function(){var d=c(this),e=["position","top","left"],a=c.effects.setMode(d,b.options.mode||"hide"),f=b.options.size||15,g=!!b.options.horizFirst,i=b.duration?b.duration/2:c.fx.speeds._default/2;c.effects.save(d,e);d.show();var j=c.effects.createWrapper(d).css({overflow:"hidden"}),m=a=="show"!=g,k=m?["width","height"]:["height","width"];m=m?[j.width(),j.height()]:[j.height(),j.width()];var h=/([0-9]+)%/.exec(f);if(h)f=parseInt(h[1],10)/100*
185
- m[a=="hide"?0:1];if(a=="show")j.css(g?{height:0,width:f}:{height:f,width:0});g={};h={};g[k[0]]=a=="show"?m[0]:f;h[k[1]]=a=="show"?m[1]:0;j.animate(g,i,b.options.easing).animate(h,i,b.options.easing,function(){a=="hide"&&d.hide();c.effects.restore(d,e);c.effects.removeWrapper(d);b.callback&&b.callback.apply(d[0],arguments);d.dequeue()})})}})(jQuery);
186
- (function(c){c.effects.highlight=function(b){return this.queue(function(){var d=c(this),e=["backgroundImage","backgroundColor","opacity"],a=c.effects.setMode(d,b.options.mode||"show"),f={backgroundColor:d.css("backgroundColor")};if(a=="hide")f.opacity=0;c.effects.save(d,e);d.show().css({backgroundImage:"none",backgroundColor:b.options.color||"#ffff99"}).animate(f,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){a=="hide"&&d.hide();c.effects.restore(d,e);a=="show"&&!c.support.opacity&&
187
- this.style.removeAttribute("filter");b.callback&&b.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
188
- (function(c){c.effects.pulsate=function(b){return this.queue(function(){var d=c(this),e=c.effects.setMode(d,b.options.mode||"show");times=(b.options.times||5)*2-1;duration=b.duration?b.duration/2:c.fx.speeds._default/2;isVisible=d.is(":visible");animateTo=0;if(!isVisible){d.css("opacity",0).show();animateTo=1}if(e=="hide"&&isVisible||e=="show"&&!isVisible)times--;for(e=0;e<times;e++){d.animate({opacity:animateTo},duration,b.options.easing);animateTo=(animateTo+1)%2}d.animate({opacity:animateTo},duration,
189
- b.options.easing,function(){animateTo==0&&d.hide();b.callback&&b.callback.apply(this,arguments)});d.queue("fx",function(){d.dequeue()}).dequeue()})}})(jQuery);
190
- (function(c){c.effects.puff=function(b){return this.queue(function(){var d=c(this),e=c.effects.setMode(d,b.options.mode||"hide"),a=parseInt(b.options.percent,10)||150,f=a/100,g={height:d.height(),width:d.width()};c.extend(b.options,{fade:true,mode:e,percent:e=="hide"?a:100,from:e=="hide"?g:{height:g.height*f,width:g.width*f}});d.effect("scale",b.options,b.duration,b.callback);d.dequeue()})};c.effects.scale=function(b){return this.queue(function(){var d=c(this),e=c.extend(true,{},b.options),a=c.effects.setMode(d,
191
- b.options.mode||"effect"),f=parseInt(b.options.percent,10)||(parseInt(b.options.percent,10)==0?0:a=="hide"?0:100),g=b.options.direction||"both",i=b.options.origin;if(a!="effect"){e.origin=i||["middle","center"];e.restore=true}i={height:d.height(),width:d.width()};d.from=b.options.from||(a=="show"?{height:0,width:0}:i);f={y:g!="horizontal"?f/100:1,x:g!="vertical"?f/100:1};d.to={height:i.height*f.y,width:i.width*f.x};if(b.options.fade){if(a=="show"){d.from.opacity=0;d.to.opacity=1}if(a=="hide"){d.from.opacity=
192
- 1;d.to.opacity=0}}e.from=d.from;e.to=d.to;e.mode=a;d.effect("size",e,b.duration,b.callback);d.dequeue()})};c.effects.size=function(b){return this.queue(function(){var d=c(this),e=["position","top","left","width","height","overflow","opacity"],a=["position","top","left","overflow","opacity"],f=["width","height","overflow"],g=["fontSize"],i=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],j=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],m=c.effects.setMode(d,
193
- b.options.mode||"effect"),k=b.options.restore||false,h=b.options.scale||"both",l=b.options.origin,n={height:d.height(),width:d.width()};d.from=b.options.from||n;d.to=b.options.to||n;if(l){l=c.effects.getBaseline(l,n);d.from.top=(n.height-d.from.height)*l.y;d.from.left=(n.width-d.from.width)*l.x;d.to.top=(n.height-d.to.height)*l.y;d.to.left=(n.width-d.to.width)*l.x}var o={from:{y:d.from.height/n.height,x:d.from.width/n.width},to:{y:d.to.height/n.height,x:d.to.width/n.width}};if(h=="box"||h=="both"){if(o.from.y!=
194
- o.to.y){e=e.concat(i);d.from=c.effects.setTransition(d,i,o.from.y,d.from);d.to=c.effects.setTransition(d,i,o.to.y,d.to)}if(o.from.x!=o.to.x){e=e.concat(j);d.from=c.effects.setTransition(d,j,o.from.x,d.from);d.to=c.effects.setTransition(d,j,o.to.x,d.to)}}if(h=="content"||h=="both")if(o.from.y!=o.to.y){e=e.concat(g);d.from=c.effects.setTransition(d,g,o.from.y,d.from);d.to=c.effects.setTransition(d,g,o.to.y,d.to)}c.effects.save(d,k?e:a);d.show();c.effects.createWrapper(d);d.css("overflow","hidden").css(d.from);
195
- if(h=="content"||h=="both"){i=i.concat(["marginTop","marginBottom"]).concat(g);j=j.concat(["marginLeft","marginRight"]);f=e.concat(i).concat(j);d.find("*[width]").each(function(){child=c(this);k&&c.effects.save(child,f);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=c.effects.setTransition(child,i,o.from.y,child.from);child.to=c.effects.setTransition(child,
196
- i,o.to.y,child.to)}if(o.from.x!=o.to.x){child.from=c.effects.setTransition(child,j,o.from.x,child.from);child.to=c.effects.setTransition(child,j,o.to.x,child.to)}child.css(child.from);child.animate(child.to,b.duration,b.options.easing,function(){k&&c.effects.restore(child,f)})})}d.animate(d.to,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){d.to.opacity===0&&d.css("opacity",d.from.opacity);m=="hide"&&d.hide();c.effects.restore(d,k?e:a);c.effects.removeWrapper(d);b.callback&&
197
- b.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
198
- (function(c){c.effects.shake=function(b){return this.queue(function(){var d=c(this),e=["position","top","left"];c.effects.setMode(d,b.options.mode||"effect");var a=b.options.direction||"left",f=b.options.distance||20,g=b.options.times||3,i=b.duration||b.options.duration||140;c.effects.save(d,e);d.show();c.effects.createWrapper(d);var j=a=="up"||a=="down"?"top":"left",m=a=="up"||a=="left"?"pos":"neg";a={};var k={},h={};a[j]=(m=="pos"?"-=":"+=")+f;k[j]=(m=="pos"?"+=":"-=")+f*2;h[j]=(m=="pos"?"-=":"+=")+
199
- f*2;d.animate(a,i,b.options.easing);for(f=1;f<g;f++)d.animate(k,i,b.options.easing).animate(h,i,b.options.easing);d.animate(k,i,b.options.easing).animate(a,i/2,b.options.easing,function(){c.effects.restore(d,e);c.effects.removeWrapper(d);b.callback&&b.callback.apply(this,arguments)});d.queue("fx",function(){d.dequeue()});d.dequeue()})}})(jQuery);
200
- (function(c){c.effects.slide=function(b){return this.queue(function(){var d=c(this),e=["position","top","left"],a=c.effects.setMode(d,b.options.mode||"show"),f=b.options.direction||"left";c.effects.save(d,e);d.show();c.effects.createWrapper(d).css({overflow:"hidden"});var g=f=="up"||f=="down"?"top":"left";f=f=="up"||f=="left"?"pos":"neg";var i=b.options.distance||(g=="top"?d.outerHeight({margin:true}):d.outerWidth({margin:true}));if(a=="show")d.css(g,f=="pos"?-i:i);var j={};j[g]=(a=="show"?f=="pos"?
201
- "+=":"-=":f=="pos"?"-=":"+=")+i;d.animate(j,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){a=="hide"&&d.hide();c.effects.restore(d,e);c.effects.removeWrapper(d);b.callback&&b.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
202
- (function(c){c.effects.transfer=function(b){return this.queue(function(){var d=c(this),e=c(b.options.to),a=e.offset();e={top:a.top,left:a.left,height:e.innerHeight(),width:e.innerWidth()};a=d.offset();var f=c('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(b.options.className).css({top:a.top,left:a.left,height:d.innerHeight(),width:d.innerWidth(),position:"absolute"}).animate(e,b.duration,b.options.easing,function(){f.remove();b.callback&&b.callback.apply(d[0],arguments);
203
- d.dequeue()})})}})(jQuery);
204
- (function(c){c.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},_create:function(){var b=this.options,d=this;this.running=0;this.element.addClass("ui-accordion ui-widget ui-helper-reset");this.element[0].nodeName==
205
- "UL"&&this.element.children("li").addClass("ui-accordion-li-fix");this.headers=this.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){c(this).removeClass("ui-state-focus")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
206
- if(b.navigation){var e=this.element.find("a").filter(b.navigationFilter);if(e.length){var a=e.closest(".ui-accordion-header");this.active=a.length?a:e.closest(".ui-accordion-content").prev()}}this.active=this._findActive(this.active||b.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");this._createIcons();c.browser.msie&&this.element.find("a").css("zoom","1");this.resize();
207
- this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(f){return d._keydown(f)}).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");c.browser.safari||this.headers.find("a").attr("tabIndex","-1");b.event&&this.headers.bind(b.event+".accordion",function(f){d._clickHandler.call(d,
208
- f,this);f.preventDefault()})},_createIcons:function(){var b=this.options;if(b.icons){c("<span/>").addClass("ui-icon "+b.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(b.icons.header).toggleClass(b.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var b=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");
209
- 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._destroyIcons();var d=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(b.autoHeight||b.fillHeight)d.css("height",
112
+ 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 b=this.items.length-1;b>=0;b--)this.items[b].item.removeData("sortable-item");return this},_setOption:function(b,d){if(b==="disabled"){this.options[b]=d;this.widget()[d?"addClass":"removeClass"]("ui-sortable-disabled")}else c.Widget.prototype._setOption.apply(self,
113
+ arguments)},_mouseCapture:function(b,d){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(b);var e=null,a=this;c(b.target).parents().each(function(){if(c.data(this,"sortable-item")==a){e=c(this);return false}});if(c.data(b.target,"sortable-item")==a)e=c(b.target);if(!e)return false;if(this.options.handle&&!d){var f=false;c(this.options.handle,e).find("*").andSelf().each(function(){if(this==b.target)f=true});if(!f)return false}this.currentItem=
114
+ e;this._removeCurrentsFromItems();return true},_mouseStart:function(b,d,e){d=this.options;var a=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(b);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");c.extend(this.offset,
115
+ {click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();d.containment&&this._setContainment();
116
+ if(d.cursor){if(c("body").css("cursor"))this._storedCursor=c("body").css("cursor");c("body").css("cursor",d.cursor)}if(d.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",d.opacity)}if(d.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",d.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",
117
+ b,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!e)for(e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("activate",b,a._uiHash(this));if(c.ui.ddmanager)c.ui.ddmanager.current=this;c.ui.ddmanager&&!d.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,b);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(b);return true},_mouseDrag:function(b){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");
118
+ if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var d=this.options,e=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<d.scrollSensitivity)this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop+d.scrollSpeed;else if(b.pageY-this.overflowOffset.top<d.scrollSensitivity)this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop-d.scrollSpeed;if(this.overflowOffset.left+
119
+ this.scrollParent[0].offsetWidth-b.pageX<d.scrollSensitivity)this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft+d.scrollSpeed;else if(b.pageX-this.overflowOffset.left<d.scrollSensitivity)this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft-d.scrollSpeed}else{if(b.pageY-c(document).scrollTop()<d.scrollSensitivity)e=c(document).scrollTop(c(document).scrollTop()-d.scrollSpeed);else if(c(window).height()-(b.pageY-c(document).scrollTop())<d.scrollSensitivity)e=c(document).scrollTop(c(document).scrollTop()+
120
+ d.scrollSpeed);if(b.pageX-c(document).scrollLeft()<d.scrollSensitivity)e=c(document).scrollLeft(c(document).scrollLeft()-d.scrollSpeed);else if(c(window).width()-(b.pageX-c(document).scrollLeft())<d.scrollSensitivity)e=c(document).scrollLeft(c(document).scrollLeft()+d.scrollSpeed)}e!==false&&c.ui.ddmanager&&!d.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,b)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+
121
+ "px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(d=this.items.length-1;d>=0;d--){e=this.items[d];var a=e.item[0],f=this._intersectsWithPointer(e);if(f)if(a!=this.currentItem[0]&&this.placeholder[f==1?"next":"prev"]()[0]!=a&&!c.ui.contains(this.placeholder[0],a)&&(this.options.type=="semi-dynamic"?!c.ui.contains(this.element[0],a):true)){this.direction=f==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(e))this._rearrange(b,
122
+ e);else break;this._trigger("change",b,this._uiHash());break}}this._contactContainers(b);c.ui.ddmanager&&c.ui.ddmanager.drag(this,b);this._trigger("sort",b,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(b,d){if(b){c.ui.ddmanager&&!this.options.dropBehaviour&&c.ui.ddmanager.drop(this,b);if(this.options.revert){var e=this;d=e.placeholder.offset();e.reverting=true;c(this.helper).animate({left:d.left-this.offset.parent.left-e.margins.left+(this.offsetParent[0]==
123
+ document.body?0:this.offsetParent[0].scrollLeft),top:d.top-this.offset.parent.top-e.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){e._clear(b)})}else this._clear(b,d);return false}},cancel:function(){var b=this;if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("deactivate",
124
+ null,b._uiHash(this));if(this.containers[d].containerCache.over){this.containers[d]._trigger("out",null,b._uiHash(this));this.containers[d].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();c.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?c(this.domPosition.prev).after(this.currentItem):
125
+ c(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(b){var d=this._getItemsAsjQuery(b&&b.connected),e=[];b=b||{};c(d).each(function(){var a=(c(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[-=_](.+)/);if(a)e.push((b.key||a[1]+"[]")+"="+(b.key&&b.expression?a[1]:a[2]))});return e.join("&")},toArray:function(b){var d=this._getItemsAsjQuery(b&&b.connected),e=[];b=b||{};d.each(function(){e.push(c(b.item||this).attr(b.attribute||"id")||"")});return e},
126
+ _intersectsWith:function(b){var d=this.positionAbs.left,e=d+this.helperProportions.width,a=this.positionAbs.top,f=a+this.helperProportions.height,g=b.left,i=g+b.width,j=b.top,m=j+b.height,k=this.offset.click.top,h=this.offset.click.left;k=a+k>j&&a+k<m&&d+h>g&&d+h<i;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>b[this.floating?"width":"height"]?k:g<d+this.helperProportions.width/
127
+ 2&&e-this.helperProportions.width/2<i&&j<a+this.helperProportions.height/2&&f-this.helperProportions.height/2<m},_intersectsWithPointer:function(b){var d=c.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top,b.height);b=c.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left,b.width);d=d&&b;b=this._getDragVerticalDirection();var e=this._getDragHorizontalDirection();if(!d)return false;return this.floating?e&&e=="right"||b=="down"?2:1:b&&(b=="down"?2:1)},_intersectsWithSides:function(b){var d=
128
+ c.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top+b.height/2,b.height);b=c.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left+b.width/2,b.width);var e=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();return this.floating&&a?a=="right"&&b||a=="left"&&!b:e&&(e=="down"&&d||e=="up"&&!d)},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!=0&&(b>0?"down":"up")},_getDragHorizontalDirection:function(){var b=
129
+ this.positionAbs.left-this.lastPositionAbs.left;return b!=0&&(b>0?"right":"left")},refresh:function(b){this._refreshItems(b);this.refreshPositions();return this},_connectWith:function(){var b=this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(b){var d=[],e=[],a=this._connectWith();if(a&&b)for(b=a.length-1;b>=0;b--)for(var f=c(a[b]),g=f.length-1;g>=0;g--){var i=c.data(f[g],"sortable");if(i&&i!=this&&!i.options.disabled)e.push([c.isFunction(i.options.items)?
130
+ i.options.items.call(i.element):c(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i])}e.push([c.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):c(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(b=e.length-1;b>=0;b--)e[b][0].each(function(){d.push(this)});return c(d)},_removeCurrentsFromItems:function(){for(var b=this.currentItem.find(":data(sortable-item)"),
131
+ d=0;d<this.items.length;d++)for(var e=0;e<b.length;e++)b[e]==this.items[d].item[0]&&this.items.splice(d,1)},_refreshItems:function(b){this.items=[];this.containers=[this];var d=this.items,e=[[c.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):c(this.options.items,this.element),this]],a=this._connectWith();if(a)for(var f=a.length-1;f>=0;f--)for(var g=c(a[f]),i=g.length-1;i>=0;i--){var j=c.data(g[i],"sortable");if(j&&j!=this&&!j.options.disabled){e.push([c.isFunction(j.options.items)?
132
+ j.options.items.call(j.element[0],b,{item:this.currentItem}):c(j.options.items,j.element),j]);this.containers.push(j)}}for(f=e.length-1;f>=0;f--){b=e[f][1];a=e[f][0];i=0;for(g=a.length;i<g;i++){j=c(a[i]);j.data("sortable-item",b);d.push({item:j,instance:b,width:0,height:0,left:0,top:0})}}},refreshPositions:function(b){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var d=this.items.length-1;d>=0;d--){var e=this.items[d],a=this.options.toleranceElement?c(this.options.toleranceElement,
133
+ e.item):e.item;if(!b){e.width=a.outerWidth();e.height=a.outerHeight()}a=a.offset();e.left=a.left;e.top=a.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(d=this.containers.length-1;d>=0;d--){a=this.containers[d].element.offset();this.containers[d].containerCache.left=a.left;this.containers[d].containerCache.top=a.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=
134
+ this.containers[d].element.outerHeight()}return this},_createPlaceholder:function(b){var d=b||this,e=d.options;if(!e.placeholder||e.placeholder.constructor==String){var a=e.placeholder;e.placeholder={element:function(){var f=c(document.createElement(d.currentItem[0].nodeName)).addClass(a||d.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!a)f.style.visibility="hidden";return f},update:function(f,g){if(!(a&&!e.forcePlaceholderSize)){g.height()||g.height(d.currentItem.innerHeight()-
135
+ parseInt(d.currentItem.css("paddingTop")||0,10)-parseInt(d.currentItem.css("paddingBottom")||0,10));g.width()||g.width(d.currentItem.innerWidth()-parseInt(d.currentItem.css("paddingLeft")||0,10)-parseInt(d.currentItem.css("paddingRight")||0,10))}}}}d.placeholder=c(e.placeholder.element.call(d.element,d.currentItem));d.currentItem.after(d.placeholder);e.placeholder.update(d,d.placeholder)},_contactContainers:function(b){for(var d=null,e=null,a=this.containers.length-1;a>=0;a--)if(!c.ui.contains(this.currentItem[0],
136
+ this.containers[a].element[0]))if(this._intersectsWith(this.containers[a].containerCache)){if(!(d&&c.ui.contains(this.containers[a].element[0],d.element[0]))){d=this.containers[a];e=a}}else if(this.containers[a].containerCache.over){this.containers[a]._trigger("out",b,this._uiHash(this));this.containers[a].containerCache.over=0}if(d)if(this.containers.length===1){this.containers[e]._trigger("over",b,this._uiHash(this));this.containers[e].containerCache.over=1}else if(this.currentContainer!=this.containers[e]){d=
137
+ 1E4;a=null;for(var f=this.positionAbs[this.containers[e].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(c.ui.contains(this.containers[e].element[0],this.items[g].item[0])){var i=this.items[g][this.containers[e].floating?"left":"top"];if(Math.abs(i-f)<d){d=Math.abs(i-f);a=this.items[g]}}if(a||this.options.dropOnEmpty){this.currentContainer=this.containers[e];a?this._rearrange(b,a,null,true):this._rearrange(b,null,this.containers[e].element,true);this._trigger("change",b,this._uiHash());this.containers[e]._trigger("change",
138
+ b,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[e]._trigger("over",b,this._uiHash(this));this.containers[e].containerCache.over=1}}},_createHelper:function(b){var d=this.options;b=c.isFunction(d.helper)?c(d.helper.apply(this.element[0],[b,this.currentItem])):d.helper=="clone"?this.currentItem.clone():this.currentItem;b.parents("body").length||c(d.appendTo!="parent"?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0]);if(b[0]==
139
+ 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(b[0].style.width==""||d.forceHelperSize)b.width(this.currentItem.width());if(b[0].style.height==""||d.forceHelperSize)b.height(this.currentItem.height());return b},_adjustOffsetFromHelper:function(b){if(typeof b=="string")b=b.split(" ");if(c.isArray(b))b={left:+b[0],top:+b[1]||
140
+ 0};if("left"in b)this.offset.click.left=b.left+this.margins.left;if("right"in b)this.offset.click.left=this.helperProportions.width-b.right+this.margins.left;if("top"in b)this.offset.click.top=b.top+this.margins.top;if("bottom"in b)this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],
141
+ this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&c.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.currentItem.position();return{top:b.top-
142
+ (parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;
143
+ if(b.containment=="parent")b.containment=this.helper[0].parentNode;if(b.containment=="document"||b.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,c(b.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(c(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)){var d=
144
+ c(b.containment)[0];b=c(b.containment).offset();var e=c(d).css("overflow")!="hidden";this.containment=[b.left+(parseInt(c(d).css("borderLeftWidth"),10)||0)+(parseInt(c(d).css("paddingLeft"),10)||0)-this.margins.left,b.top+(parseInt(c(d).css("borderTopWidth"),10)||0)+(parseInt(c(d).css("paddingTop"),10)||0)-this.margins.top,b.left+(e?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(c(d).css("borderLeftWidth"),10)||0)-(parseInt(c(d).css("paddingRight"),10)||0)-this.helperProportions.width-
145
+ this.margins.left,b.top+(e?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(c(d).css("borderTopWidth"),10)||0)-(parseInt(c(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(b,d){if(!d)d=this.position;b=b=="absolute"?1:-1;var e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,a=/(html|body)/i.test(e[0].tagName);return{top:d.top+
146
+ this.offset.relative.top*b+this.offset.parent.top*b-(c.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():a?0:e.scrollTop())*b),left:d.left+this.offset.relative.left*b+this.offset.parent.left*b-(c.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():a?0:e.scrollLeft())*b)}},_generatePosition:function(b){var d=this.options,e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],
147
+ this.offsetParent[0]))?this.offsetParent:this.scrollParent,a=/(html|body)/i.test(e[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var f=b.pageX,g=b.pageY;if(this.originalPosition){if(this.containment){if(b.pageX-this.offset.click.left<this.containment[0])f=this.containment[0]+this.offset.click.left;if(b.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;
148
+ if(b.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(b.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(d.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/d.grid[1])*d.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-d.grid[1]:g+d.grid[1]:g;f=this.originalPageX+Math.round((f-
149
+ this.originalPageX)/d.grid[0])*d.grid[0];f=this.containment?!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:!(f-this.offset.click.left<this.containment[0])?f-d.grid[0]:f+d.grid[0]:f}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(c.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():a?0:e.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+
150
+ (c.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():a?0:e.scrollLeft())}},_rearrange:function(b,d,e,a){e?e[0].appendChild(this.placeholder[0]):d.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?d.item[0]:d.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var f=this,g=this.counter;window.setTimeout(function(){g==f.counter&&f.refreshPositions(!a)},0)},_clear:function(b,d){this.reverting=false;var e=[];!this._noFinalSort&&
151
+ this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var a in this._storedCSS)if(this._storedCSS[a]=="auto"||this._storedCSS[a]=="static")this._storedCSS[a]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!d&&e.push(function(f){this._trigger("receive",f,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||
152
+ this.domPosition.parent!=this.currentItem.parent()[0])&&!d)e.push(function(f){this._trigger("update",f,this._uiHash())});if(!c.ui.contains(this.element[0],this.currentItem[0])){d||e.push(function(f){this._trigger("remove",f,this._uiHash())});for(a=this.containers.length-1;a>=0;a--)if(c.ui.contains(this.containers[a].element[0],this.currentItem[0])&&!d){e.push(function(f){return function(g){f._trigger("receive",g,this._uiHash(this))}}.call(this,this.containers[a]));e.push(function(f){return function(g){f._trigger("update",
153
+ g,this._uiHash(this))}}.call(this,this.containers[a]))}}for(a=this.containers.length-1;a>=0;a--){d||e.push(function(f){return function(g){f._trigger("deactivate",g,this._uiHash(this))}}.call(this,this.containers[a]));if(this.containers[a].containerCache.over){e.push(function(f){return function(g){f._trigger("out",g,this._uiHash(this))}}.call(this,this.containers[a]));this.containers[a].containerCache.over=0}}this._storedCursor&&c("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",
154
+ this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!d){this._trigger("beforeStop",b,this._uiHash());for(a=0;a<e.length;a++)e[a].call(this,b);this._trigger("stop",b,this._uiHash())}return false}d||this._trigger("beforeStop",b,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!d){for(a=
155
+ 0;a<e.length;a++)e[a].call(this,b);this._trigger("stop",b,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){c.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(b){var d=b||this;return{helper:d.helper,placeholder:d.placeholder||c([]),position:d.position,originalPosition:d.originalPosition,offset:d.positionAbs,item:d.currentItem,sender:b?b.element:null}}});c.extend(c.ui.sortable,{version:"1.8.1"})})(jQuery);
156
+ (function(c){c.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},_create:function(){var b=this.options,d=this;this.running=0;this.element.addClass("ui-accordion ui-widget ui-helper-reset");
157
+ this.element[0].nodeName=="UL"&&this.element.children("li").addClass("ui-accordion-li-fix");this.headers=this.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){c(this).removeClass("ui-state-focus")});
158
+ this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(b.navigation){var e=this.element.find("a").filter(b.navigationFilter);if(e.length){var a=e.closest(".ui-accordion-header");this.active=a.length?a:e.closest(".ui-accordion-content").prev()}}this.active=this._findActive(this.active||b.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");
159
+ this._createIcons();this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(f){return d._keydown(f)}).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");c.browser.safari||this.headers.find("a").attr("tabIndex","-1");b.event&&this.headers.bind(b.event+
160
+ ".accordion",function(f){d._clickHandler.call(d,f,this);f.preventDefault()})},_createIcons:function(){var b=this.options;if(b.icons){c("<span/>").addClass("ui-icon "+b.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(b.icons.header).toggleClass(b.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var b=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");
161
+ 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._destroyIcons();var d=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(b.autoHeight||b.fillHeight)d.css("height",
210
162
  "");return this},_setOption:function(b,d){c.Widget.prototype._setOption.apply(this,arguments);b=="active"&&this.activate(d);if(b=="icons"){this._destroyIcons();d&&this._createIcons()}},_keydown:function(b){var d=c.ui.keyCode;if(!(this.options.disabled||b.altKey||b.ctrlKey)){var e=this.headers.length,a=this.headers.index(b.target),f=false;switch(b.keyCode){case d.RIGHT:case d.DOWN:f=this.headers[(a+1)%e];break;case d.LEFT:case d.UP:f=this.headers[(a-1+e)%e];break;case d.SPACE:case d.ENTER:this._clickHandler({target:b.target},
211
163
  b.target);b.preventDefault()}if(f){c(b.target).attr("tabIndex","-1");c(f).attr("tabIndex","0");f.focus();return false}return true}},resize:function(){var b=this.options,d;if(b.fillSpace){if(c.browser.msie){var e=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",e);this.headers.each(function(){d-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,
212
164
  d-c(this).innerHeight()+c(this).height()))}).css("overflow","auto")}else if(b.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,c(this).height())}).height(d)}return this},activate:function(b){this.options.active=b;b=this._findActive(b)[0];this._clickHandler({target:b},b);return this},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,d){var e=
@@ -215,23 +167,23 @@ b.next().addClass("ui-accordion-content-active")}g=b.next();a=this.active.next()
215
167
  this.active.next().addClass("ui-accordion-content-active");var a=this.active.next(),f={options:e,newHeader:c([]),oldHeader:e.active,newContent:c([]),oldContent:a},g=this.active=c([]);this._toggle(g,a,f)}},_toggle:function(b,d,e,a,f){var g=this.options,i=this;this.toShow=b;this.toHide=d;this.data=e;var j=function(){if(i)return i._completed.apply(i,arguments)};this._trigger("changestart",null,this.data);this.running=d.size()===0?b.size():d.size();if(g.animated){e={};e=g.collapsible&&a?{toShow:c([]),
216
168
  toHide:d,complete:j,down:f,autoHeight:g.autoHeight||g.fillSpace}:{toShow:b,toHide:d,complete:j,down:f,autoHeight:g.autoHeight||g.fillSpace};if(!g.proxied)g.proxied=g.animated;if(!g.proxiedDuration)g.proxiedDuration=g.duration;g.animated=c.isFunction(g.proxied)?g.proxied(e):g.proxied;g.duration=c.isFunction(g.proxiedDuration)?g.proxiedDuration(e):g.proxiedDuration;a=c.ui.accordion.animations;var m=g.duration,k=g.animated;if(k&&!a[k]&&!c.easing[k])k="slide";a[k]||(a[k]=function(h){this.slide(h,{easing:k,
217
169
  duration:m||700})});a[k](e)}else{if(g.collapsible&&a)b.toggle();else{d.hide();b.show()}j(true)}d.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();b.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(b){var d=this.options;this.running=b?0:--this.running;if(!this.running){d.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,
218
- {version:"1.8",animations:{slide:function(b,d){b=c.extend({easing:"swing",duration:300},b,d);if(b.toHide.size())if(b.toShow.size()){var e=b.toShow.css("overflow"),a=0,f={},g={},i;d=b.toShow;i=d[0].style.width;d.width(parseInt(d.parent().width(),10)-parseInt(d.css("paddingLeft"),10)-parseInt(d.css("paddingRight"),10)-(parseInt(d.css("borderLeftWidth"),10)||0)-(parseInt(d.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,m){g[m]="hide";j=(""+c.css(b.toShow[0],
170
+ {version:"1.8.1",animations:{slide:function(b,d){b=c.extend({easing:"swing",duration:300},b,d);if(b.toHide.size())if(b.toShow.size()){var e=b.toShow.css("overflow"),a=0,f={},g={},i;d=b.toShow;i=d[0].style.width;d.width(parseInt(d.parent().width(),10)-parseInt(d.css("paddingLeft"),10)-parseInt(d.css("paddingRight"),10)-(parseInt(d.css("borderLeftWidth"),10)||0)-(parseInt(d.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,m){g[m]="hide";j=(""+c.css(b.toShow[0],
219
171
  m)).match(/^([\d+-.]+)(.*)$/);f[m]={value:j[1],unit:j[2]||"px"}});b.toShow.css({height:0,overflow:"hidden"}).show();b.toHide.filter(":hidden").each(b.complete).end().filter(":visible").animate(g,{step:function(j,m){if(m.prop=="height")a=m.end-m.start===0?0:(m.now-m.start)/(m.end-m.start);b.toShow[0].style[m.prop]=a*f[m.prop].value+f[m.prop].unit},duration:b.duration,easing:b.easing,complete:function(){b.autoHeight||b.toShow.css("height","");b.toShow.css("width",i);b.toShow.css({overflow:e});b.complete()}})}else b.toHide.animate({height:"hide"},
220
172
  b);else b.toShow.animate({height:"show"},b)},bounceslide:function(b){this.slide(b,{easing:b.down?"easeOutBounce":"swing",duration:b.down?1E3:200})}}})})(jQuery);
221
173
  (function(c){c.widget("ui.autocomplete",{options:{minLength:1,delay:300},_create:function(){var b=this,d=this.element[0].ownerDocument;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(e){var a=c.ui.keyCode;switch(e.keyCode){case a.PAGE_UP:b._move("previousPage",e);break;case a.PAGE_DOWN:b._move("nextPage",e);break;case a.UP:b._move("previous",e);e.preventDefault();
222
- break;case a.DOWN:b._move("next",e);e.preventDefault();break;case a.ENTER:b.menu.active&&e.preventDefault();case a.TAB:if(!b.menu.active)return;b.menu.select();break;case a.ESCAPE:b.element.val(b.term);b.close(e);break;case a.SHIFT:case a.CONTROL:case 18:break;default:clearTimeout(b.searching);b.searching=setTimeout(function(){b.search(null,e)},b.options.delay);break}}).bind("focus.autocomplete",function(){b.previous=b.element.val()}).bind("blur.autocomplete",function(e){clearTimeout(b.searching);
223
- b.closing=setTimeout(function(){b.close(e)},150)});this._initSource();this.response=function(){return b._response.apply(b,arguments)};this.menu=c("<ul></ul>").addClass("ui-autocomplete").appendTo("body",d).menu({focus:function(e,a){e=a.item.data("item.autocomplete");false!==b._trigger("focus",null,{item:e})&&b.element.val(e.value)},selected:function(e,a){a=a.item.data("item.autocomplete");false!==b._trigger("select",e,{item:a})&&b.element.val(a.value);b.close(e);b.previous=b.element.val();b.element[0]!==
224
- d.activeElement&&b.element.focus()},blur:function(){b.menu.element.is(":visible")&&b.element.val(b.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");c.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input ui-widget ui-widget-content").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();c.Widget.prototype.destroy.call(this)},_setOption:function(b){c.Widget.prototype._setOption.apply(this,
225
- arguments);b==="source"&&this._initSource()},_initSource:function(){var b,d;if(c.isArray(this.options.source)){b=this.options.source;this.source=function(e,a){var f=new RegExp(c.ui.autocomplete.escapeRegex(e.term),"i");a(c.grep(b,function(g){return f.test(g.label||g.value||g)}))}}else if(typeof this.options.source==="string"){d=this.options.source;this.source=function(e,a){c.getJSON(d,e,a)}}else this.source=this.options.source},search:function(b,d){b=b!=null?b:this.element.val();if(b.length<this.options.minLength)return this.close(d);
226
- clearTimeout(this.closing);if(this._trigger("search")!==false)return this._search(b)},_search:function(b){this.term=this.element.addClass("ui-autocomplete-loading").val();this.source({term:b},this.response)},_response:function(b){if(b.length){b=this._normalize(b);this._suggest(b);this._trigger("open")}else this.close();this.element.removeClass("ui-autocomplete-loading")},close:function(b){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this._trigger("close",b);this.menu.element.hide();
227
- this.menu.deactivate()}this.previous!==this.element.val()&&this._trigger("change",b)},_normalize:function(b){if(b.length&&b[0].label&&b[0].value)return b;return c.map(b,function(d){if(typeof d==="string")return{label:d,value:d};return c.extend({label:d.label||d.value,value:d.value||d.label},d)})},_suggest:function(b){var d=this.menu.element.empty().zIndex(this.element.zIndex()+1),e;this._renderMenu(d,b);this.menu.deactivate();this.menu.refresh();this.menu.element.show().position({my:"left top",at:"left bottom",
228
- of:this.element,collision:"none"});b=d.width("").width();e=this.element.width();d.width(Math.max(b,e))},_renderMenu:function(b,d){var e=this;c.each(d,function(a,f){e._renderItem(b,f)})},_renderItem:function(b,d){return c("<li></li>").data("item.autocomplete",d).append("<a>"+d.label+"</a>").appendTo(b)},_move:function(b,d){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(b)||this.menu.last()&&/^next/.test(b)){this.element.val(this.term);this.menu.deactivate()}else this.menu[b]();
229
- else this.search(null,d)},widget:function(){return this.menu.element}});c.extend(c.ui.autocomplete,{escapeRegex:function(b){return b.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")}})})(jQuery);
230
- (function(c){c.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(d){d.preventDefault();b.select()});this.refresh()},refresh:function(){var b=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(){b.activate(c(this).parent())}).mouseleave(function(){b.deactivate()})},
231
- activate:function(b){this.deactivate();if(this.hasScroll()){var d=b.offset().top-this.element.offset().top,e=this.element.attr("scrollTop"),a=this.element.height();if(d<0)this.element.attr("scrollTop",e+d);else d>a&&this.element.attr("scrollTop",e+d-a+b.height())}this.active=b.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",null,{item:b})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
232
- this._trigger("blur");this.active=null}},next:function(){this.move("next","li:first")},previous:function(){this.move("prev","li:last")},first:function(){return this.active&&!this.active.prev().length},last:function(){return this.active&&!this.active.next().length},move:function(b,d){if(this.active){b=this.active[b]();b.length?this.activate(b):this.activate(this.element.children(d))}else this.activate(this.element.children(d))},nextPage:function(){if(this.hasScroll())if(!this.active||this.last())this.activate(this.element.children(":first"));
233
- else{var b=this.active.offset().top,d=this.element.height(),e=this.element.children("li").filter(function(){var a=c(this).offset().top-b-d+c(this).height();return a<10&&a>-10});e.length||(e=this.element.children(":last"));this.activate(e)}else this.activate(this.element.children(!this.active||this.last()?":first":":last"))},previousPage:function(){if(this.hasScroll())if(!this.active||this.first())this.activate(this.element.children(":last"));else{var b=this.active.offset().top,d=this.element.height();
234
- result=this.element.children("li").filter(function(){var e=c(this).offset().top-b+d-c(this).height();return e<10&&e>-10});result.length||(result=this.element.children(":first"));this.activate(result)}else this.activate(this.element.children(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(){this._trigger("selected",null,{item:this.active})}})})(jQuery);
174
+ break;case a.DOWN:b._move("next",e);e.preventDefault();break;case a.ENTER:b.menu.active&&e.preventDefault();case a.TAB:if(!b.menu.active)return;b.menu.select(e);break;case a.ESCAPE:b.element.val(b.term);b.close(e);break;case a.LEFT:case a.RIGHT:case a.SHIFT:case a.CONTROL:case a.ALT:break;default:clearTimeout(b.searching);b.searching=setTimeout(function(){b.search(null,e)},b.options.delay);break}}).bind("focus.autocomplete",function(){b.selectedItem=null;b.previous=b.element.val()}).bind("blur.autocomplete",
175
+ function(e){clearTimeout(b.searching);b.closing=setTimeout(function(){b.close(e);b._change(e)},150)});this._initSource();this.response=function(){return b._response.apply(b,arguments)};this.menu=c("<ul></ul>").addClass("ui-autocomplete").appendTo("body",d).menu({focus:function(e,a){a=a.item.data("item.autocomplete");false!==b._trigger("focus",null,{item:a})&&/^key/.test(e.originalEvent.type)&&b.element.val(a.value)},selected:function(e,a){a=a.item.data("item.autocomplete");false!==b._trigger("select",
176
+ e,{item:a})&&b.element.val(a.value);b.close(e);e=b.previous;if(b.element[0]!==d.activeElement){b.element.focus();b.previous=e}b.selectedItem=a},blur:function(){b.menu.element.is(":visible")&&b.element.val(b.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");c.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");
177
+ this.menu.element.remove();c.Widget.prototype.destroy.call(this)},_setOption:function(b){c.Widget.prototype._setOption.apply(this,arguments);b==="source"&&this._initSource()},_initSource:function(){var b,d;if(c.isArray(this.options.source)){b=this.options.source;this.source=function(e,a){a(c.ui.autocomplete.filter(b,e.term))}}else if(typeof this.options.source==="string"){d=this.options.source;this.source=function(e,a){c.getJSON(d,e,a)}}else this.source=this.options.source},search:function(b,d){b=
178
+ b!=null?b:this.element.val();if(b.length<this.options.minLength)return this.close(d);clearTimeout(this.closing);if(this._trigger("search")!==false)return this._search(b)},_search:function(b){this.term=this.element.addClass("ui-autocomplete-loading").val();this.source({term:b},this.response)},_response:function(b){if(b.length){b=this._normalize(b);this._suggest(b);this._trigger("open")}else this.close();this.element.removeClass("ui-autocomplete-loading")},close:function(b){clearTimeout(this.closing);
179
+ if(this.menu.element.is(":visible")){this._trigger("close",b);this.menu.element.hide();this.menu.deactivate()}},_change:function(b){this.previous!==this.element.val()&&this._trigger("change",b,{item:this.selectedItem})},_normalize:function(b){if(b.length&&b[0].label&&b[0].value)return b;return c.map(b,function(d){if(typeof d==="string")return{label:d,value:d};return c.extend({label:d.label||d.value,value:d.value||d.label},d)})},_suggest:function(b){var d=this.menu.element.empty().zIndex(this.element.zIndex()+
180
+ 1),e;this._renderMenu(d,b);this.menu.deactivate();this.menu.refresh();this.menu.element.show().position({my:"left top",at:"left bottom",of:this.element,collision:"none"});b=d.width("").width();e=this.element.width();d.width(Math.max(b,e))},_renderMenu:function(b,d){var e=this;c.each(d,function(a,f){e._renderItem(b,f)})},_renderItem:function(b,d){return c("<li></li>").data("item.autocomplete",d).append("<a>"+d.label+"</a>").appendTo(b)},_move:function(b,d){if(this.menu.element.is(":visible"))if(this.menu.first()&&
181
+ /^previous/.test(b)||this.menu.last()&&/^next/.test(b)){this.element.val(this.term);this.menu.deactivate()}else this.menu[b](d);else this.search(null,d)},widget:function(){return this.menu.element}});c.extend(c.ui.autocomplete,{escapeRegex:function(b){return b.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")},filter:function(b,d){var e=new RegExp(c.ui.autocomplete.escapeRegex(d),"i");return c.grep(b,function(a){return e.test(a.label||a.value||a)})}})})(jQuery);
182
+ (function(c){c.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(d){if(c(d.target).closest(".ui-menu-item a").length){d.preventDefault();b.select(d)}});this.refresh()},refresh:function(){var b=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
183
+ -1).mouseenter(function(d){b.activate(d,c(this).parent())}).mouseleave(function(){b.deactivate()})},activate:function(b,d){this.deactivate();if(this.hasScroll()){var e=d.offset().top-this.element.offset().top,a=this.element.attr("scrollTop"),f=this.element.height();if(e<0)this.element.attr("scrollTop",a+e);else e>f&&this.element.attr("scrollTop",a+e-f+d.height())}this.active=d.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",b,{item:d})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
184
+ this._trigger("blur");this.active=null}},next:function(b){this.move("next",".ui-menu-item:first",b)},previous:function(b){this.move("prev",".ui-menu-item:last",b)},first:function(){return this.active&&!this.active.prev().length},last:function(){return this.active&&!this.active.next().length},move:function(b,d,e){if(this.active){b=this.active[b+"All"](".ui-menu-item").eq(0);b.length?this.activate(e,b):this.activate(e,this.element.children(d))}else this.activate(e,this.element.children(d))},nextPage:function(b){if(this.hasScroll())if(!this.active||
185
+ this.last())this.activate(b,this.element.children(":first"));else{var d=this.active.offset().top,e=this.element.height(),a=this.element.children("li").filter(function(){var f=c(this).offset().top-d-e+c(this).height();return f<10&&f>-10});a.length||(a=this.element.children(":last"));this.activate(b,a)}else this.activate(b,this.element.children(!this.active||this.last()?":first":":last"))},previousPage:function(b){if(this.hasScroll())if(!this.active||this.first())this.activate(b,this.element.children(":last"));
186
+ else{var d=this.active.offset().top,e=this.element.height();result=this.element.children("li").filter(function(){var a=c(this).offset().top-d+e-c(this).height();return a<10&&a>-10});result.length||(result=this.element.children(":first"));this.activate(b,result)}else this.activate(b,this.element.children(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(b){this._trigger("selected",b,{item:this.active})}})})(jQuery);
235
187
  (function(c){var b,d=function(a){c(":ui-button",a.target.form).each(function(){var f=c(this).data("button");setTimeout(function(){f.refresh()},1)})},e=function(a){var f=a.name,g=a.form,i=c([]);if(f)i=g?c(g).find("[name='"+f+"']"):c("[name='"+f+"']",a.ownerDocument).filter(function(){return!this.form});return i};c.widget("ui.button",{options:{text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",d);this._determineButtonType();
236
188
  this.hasTitle=!!this.buttonElement.attr("title");var a=this,f=this.options,g=this.type==="checkbox"||this.type==="radio",i="ui-state-hover"+(!g?" ui-state-active":"");if(f.label===null)f.label=this.buttonElement.html();if(this.element.is(":disabled"))f.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!f.disabled){c(this).addClass("ui-state-hover");this===b&&c(this).addClass("ui-state-active")}}).bind("mouseleave.button",
237
189
  function(){f.disabled||c(this).removeClass(i)}).bind("focus.button",function(){c(this).addClass("ui-state-focus")}).bind("blur.button",function(){c(this).removeClass("ui-state-focus")});g&&this.element.bind("change.button",function(){a.refresh()});if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(f.disabled)return false;c(this).toggleClass("ui-state-active");a.buttonElement.attr("aria-pressed",a.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",
@@ -243,11 +195,72 @@ true):c(this).button("widget").removeClass("ui-state-active").attr("aria-pressed
243
195
  g=this.options.icons,i=g.primary&&g.secondary;if(g.primary||g.secondary){a.addClass("ui-button-text-icon"+(i?"s":""));g.primary&&a.prepend("<span class='ui-button-icon-primary ui-icon "+g.primary+"'></span>");g.secondary&&a.append("<span class='ui-button-icon-secondary ui-icon "+g.secondary+"'></span>");if(!this.options.text){a.addClass(i?"ui-button-icons-only":"ui-button-icon-only").removeClass("ui-button-text-icons ui-button-text-icon");this.hasTitle||a.attr("title",f)}}else a.addClass("ui-button-text-only")}}});
244
196
  c.widget("ui.buttonset",{_create:function(){this.element.addClass("ui-buttonset");this._init()},_init:function(){this.refresh()},_setOption:function(a,f){a==="disabled"&&this.buttons.button("option",a,f);c.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(":button, :submit, :reset, :checkbox, :radio, a, :data(button)").filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return c(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end()},
245
197
  destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return c(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");c.Widget.prototype.destroy.call(this)}})})(jQuery);
198
+ (function(c){c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");var b=this,d=b.options,e=d.title||b.originalTitle||"&#160;",a=c.ui.dialog.getTitleId(b.element),f=(b.uiDialog=c("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
199
+ d.dialogClass).css({zIndex:d.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(j){if(d.closeOnEscape&&j.keyCode&&j.keyCode===c.ui.keyCode.ESCAPE){b.close(j);j.preventDefault()}}).attr({role:"dialog","aria-labelledby":a}).mousedown(function(j){b.moveToTop(false,j)});b.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(f);var g=(b.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(f),
200
+ i=c('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){i.addClass("ui-state-hover")},function(){i.removeClass("ui-state-hover")}).focus(function(){i.addClass("ui-state-focus")}).blur(function(){i.removeClass("ui-state-focus")}).click(function(j){b.close(j);return false}).appendTo(g);(b.uiDialogTitlebarCloseText=c("<span></span>")).addClass("ui-icon ui-icon-closethick").text(d.closeText).appendTo(i);c("<span></span>").addClass("ui-dialog-title").attr("id",
201
+ a).html(e).prependTo(g);if(c.isFunction(d.beforeclose)&&!c.isFunction(d.beforeClose))d.beforeClose=d.beforeclose;g.find("*").add(g).disableSelection();d.draggable&&c.fn.draggable&&b._makeDraggable();d.resizable&&c.fn.resizable&&b._makeResizable();b._createButtons(d.buttons);b._isOpen=false;c.fn.bgiframe&&f.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var b=this;b.overlay&&b.overlay.destroy();b.uiDialog.hide();b.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
202
+ b.uiDialog.remove();b.originalTitle&&b.element.attr("title",b.originalTitle);return b},widget:function(){return this.uiDialog},close:function(b){var d=this,e;if(false!==d._trigger("beforeClose",b)){d.overlay&&d.overlay.destroy();d.uiDialog.unbind("keypress.ui-dialog");d._isOpen=false;if(d.options.hide)d.uiDialog.hide(d.options.hide,function(){d._trigger("close",b)});else{d.uiDialog.hide();d._trigger("close",b)}c.ui.dialog.overlay.resize();if(d.options.modal){e=0;c(".ui-dialog").each(function(){if(this!==
203
+ d.uiDialog[0])e=Math.max(e,c(this).css("z-index"))});c.ui.dialog.maxZ=e}return d}},isOpen:function(){return this._isOpen},moveToTop:function(b,d){var e=this,a=e.options;if(a.modal&&!b||!a.stack&&!a.modal)return e._trigger("focus",d);if(a.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=a.zIndex;if(e.overlay){c.ui.dialog.maxZ+=1;e.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}b={scrollTop:e.element.attr("scrollTop"),scrollLeft:e.element.attr("scrollLeft")};c.ui.dialog.maxZ+=1;e.uiDialog.css("z-index",
204
+ c.ui.dialog.maxZ);e.element.attr(b);e._trigger("focus",d);return e},open:function(){if(!this._isOpen){var b=this,d=b.options,e=b.uiDialog;b.overlay=d.modal?new c.ui.dialog.overlay(b):null;e.next().length&&e.appendTo("body");b._size();b._position(d.position);e.show(d.show);b.moveToTop(true);d.modal&&e.bind("keypress.ui-dialog",function(a){if(a.keyCode===c.ui.keyCode.TAB){var f=c(":tabbable",this),g=f.filter(":first");f=f.filter(":last");if(a.target===f[0]&&!a.shiftKey){g.focus(1);return false}else if(a.target===
205
+ g[0]&&a.shiftKey){f.focus(1);return false}}});c([]).add(e.find(".ui-dialog-content :tabbable:first")).add(e.find(".ui-dialog-buttonpane :tabbable:first")).add(e).filter(":first").focus();b._trigger("open");b._isOpen=true;return b}},_createButtons:function(b){var d=this,e=false,a=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");d.uiDialog.find(".ui-dialog-buttonpane").remove();typeof b==="object"&&b!==null&&c.each(b,function(){return!(e=true)});if(e){c.each(b,
206
+ function(f,g){f=c('<button type="button"></button>').text(f).click(function(){g.apply(d.element[0],arguments)}).appendTo(a);c.fn.button&&f.button()});a.appendTo(d.uiDialog)}},_makeDraggable:function(){function b(g){return{position:g.position,offset:g.offset}}var d=this,e=d.options,a=c(document),f;d.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(g,i){f=e.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");
207
+ d._trigger("dragStart",g,b(i))},drag:function(g,i){d._trigger("drag",g,b(i))},stop:function(g,i){e.position=[i.position.left-a.scrollLeft(),i.position.top-a.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(f);d._trigger("dragStop",g,b(i));c.ui.dialog.overlay.resize()}})},_makeResizable:function(b){function d(g){return{originalPosition:g.originalPosition,originalSize:g.originalSize,position:g.position,size:g.size}}b=b===undefined?this.options.resizable:b;var e=this,a=e.options,f=e.uiDialog.css("position");
208
+ b=typeof b==="string"?b:"n,e,s,w,se,sw,ne,nw";e.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:e.element,maxWidth:a.maxWidth,maxHeight:a.maxHeight,minWidth:a.minWidth,minHeight:e._minHeight(),handles:b,start:function(g,i){c(this).addClass("ui-dialog-resizing");e._trigger("resizeStart",g,d(i))},resize:function(g,i){e._trigger("resize",g,d(i))},stop:function(g,i){c(this).removeClass("ui-dialog-resizing");a.height=c(this).height();a.width=c(this).width();e._trigger("resizeStop",
209
+ g,d(i));c.ui.dialog.overlay.resize()}}).css("position",f).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var b=this.options;return b.height==="auto"?b.minHeight:Math.min(b.minHeight,b.height)},_position:function(b){var d=[],e=[0,0];b=b||c.ui.dialog.prototype.options.position;if(typeof b==="string"||typeof b==="object"&&"0"in b){d=b.split?b.split(" "):[b[0],b[1]];if(d.length===1)d[1]=d[0];c.each(["left","top"],function(a,f){if(+d[a]===d[a]){e[a]=d[a];d[a]=
210
+ f}})}else if(typeof b==="object"){if("left"in b){d[0]="left";e[0]=b.left}else if("right"in b){d[0]="right";e[0]=-b.right}if("top"in b){d[1]="top";e[1]=b.top}else if("bottom"in b){d[1]="bottom";e[1]=-b.bottom}}(b=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position({my:d.join(" "),at:d.join(" "),offset:e.join(" "),of:window,collision:"fit",using:function(a){var f=c(this).css(a).offset().top;f<0&&c(this).css("top",a.top-f)}});b||this.uiDialog.hide()},_setOption:function(b,
211
+ d){var e=this,a=e.uiDialog,f=a.is(":data(resizable)"),g=false;switch(b){case "beforeclose":b="beforeClose";break;case "buttons":e._createButtons(d);break;case "closeText":e.uiDialogTitlebarCloseText.text(""+d);break;case "dialogClass":a.removeClass(e.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+d);break;case "disabled":d?a.addClass("ui-dialog-disabled"):a.removeClass("ui-dialog-disabled");break;case "draggable":d?e._makeDraggable():a.draggable("destroy");break;
212
+ case "height":g=true;break;case "maxHeight":f&&a.resizable("option","maxHeight",d);g=true;break;case "maxWidth":f&&a.resizable("option","maxWidth",d);g=true;break;case "minHeight":f&&a.resizable("option","minHeight",d);g=true;break;case "minWidth":f&&a.resizable("option","minWidth",d);g=true;break;case "position":e._position(d);break;case "resizable":f&&!d&&a.resizable("destroy");f&&typeof d==="string"&&a.resizable("option","handles",d);!f&&d!==false&&e._makeResizable(d);break;case "title":c(".ui-dialog-title",
213
+ e.uiDialogTitlebar).html(""+(d||"&#160;"));break;case "width":g=true;break}c.Widget.prototype._setOption.apply(e,arguments);g&&e._size()},_size:function(){var b=this.options,d;this.element.css({width:"auto",minHeight:0,height:0});d=this.uiDialog.css({height:"auto",width:b.width}).height();this.element.css(b.height==="auto"?{minHeight:Math.max(b.minHeight-d,0),height:"auto"}:{minHeight:0,height:Math.max(b.height-d,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",
214
+ this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.1",uuid:0,maxZ:0,getTitleId:function(b){b=b.attr("id");if(!b){this.uuid+=1;b=this.uuid}return"ui-dialog-title-"+b},overlay:function(b){this.$el=c.ui.dialog.overlay.create(b)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(b){return b+".dialog-overlay"}).join(" "),create:function(b){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&
215
+ c(document).bind(c.ui.dialog.overlay.events,function(e){return c(e.target).zIndex()>=c.ui.dialog.overlay.maxZ})},1);c(document).bind("keydown.dialog-overlay",function(e){if(b.options.closeOnEscape&&e.keyCode&&e.keyCode===c.ui.keyCode.ESCAPE){b.close(e);e.preventDefault()}});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var d=(this.oldInstances.pop()||c("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});c.fn.bgiframe&&
216
+ d.bgiframe();this.instances.push(d);return d},destroy:function(b){this.oldInstances.push(this.instances.splice(c.inArray(b,this.instances),1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");b.remove();var d=0;c.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var b,d;if(c.browser.msie&&c.browser.version<7){b=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);d=Math.max(document.documentElement.offsetHeight,
217
+ document.body.offsetHeight);return b<d?c(window).height()+"px":b+"px"}else return c(document).height()+"px"},width:function(){var b,d;if(c.browser.msie&&c.browser.version<7){b=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);d=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return b<d?c(window).width()+"px":b+"px"}else return c(document).width()+"px"},resize:function(){var b=c([]);c.each(c.ui.dialog.overlay.instances,function(){b=b.add(this)});b.css({width:0,
218
+ height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
219
+ (function(c){c.widget("ui.slider",c.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var b=this,d=this.options;this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");d.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");
220
+ this.range=c([]);if(d.range){if(d.range===true){this.range=c("<div></div>");if(!d.values)d.values=[this._valueMin(),this._valueMin()];if(d.values.length&&d.values.length!==2)d.values=[d.values[0],d.values[0]]}else this.range=c("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(d.range==="min"||d.range==="max")this.range.addClass("ui-slider-range-"+d.range);this.range.addClass("ui-widget-header")}c(".ui-slider-handle",this.element).length===0&&c("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");
221
+ if(d.values&&d.values.length)for(;c(".ui-slider-handle",this.element).length<d.values.length;)c("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");this.handles=c(".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(e){e.preventDefault()}).hover(function(){d.disabled||c(this).addClass("ui-state-hover")},function(){c(this).removeClass("ui-state-hover")}).focus(function(){if(d.disabled)c(this).blur();
222
+ else{c(".ui-slider .ui-state-focus").removeClass("ui-state-focus");c(this).addClass("ui-state-focus")}}).blur(function(){c(this).removeClass("ui-state-focus")});this.handles.each(function(e){c(this).data("index.ui-slider-handle",e)});this.handles.keydown(function(e){var a=true,f=c(this).data("index.ui-slider-handle"),g,i,j;if(!b.options.disabled){switch(e.keyCode){case c.ui.keyCode.HOME:case c.ui.keyCode.END:case c.ui.keyCode.PAGE_UP:case c.ui.keyCode.PAGE_DOWN:case c.ui.keyCode.UP:case c.ui.keyCode.RIGHT:case c.ui.keyCode.DOWN:case c.ui.keyCode.LEFT:a=
223
+ false;if(!b._keySliding){b._keySliding=true;c(this).addClass("ui-state-active");g=b._start(e,f);if(g===false)return}break}j=b.options.step;g=b.options.values&&b.options.values.length?(i=b.values(f)):(i=b.value());switch(e.keyCode){case c.ui.keyCode.HOME:i=b._valueMin();break;case c.ui.keyCode.END:i=b._valueMax();break;case c.ui.keyCode.PAGE_UP:i=g+(b._valueMax()-b._valueMin())/5;break;case c.ui.keyCode.PAGE_DOWN:i=g-(b._valueMax()-b._valueMin())/5;break;case c.ui.keyCode.UP:case c.ui.keyCode.RIGHT:if(g===
224
+ b._valueMax())return;i=g+j;break;case c.ui.keyCode.DOWN:case c.ui.keyCode.LEFT:if(g===b._valueMin())return;i=g-j;break}b._slide(e,f,i);return a}}).keyup(function(e){var a=c(this).data("index.ui-slider-handle");if(b._keySliding){b._keySliding=false;b._stop(e,a);b._change(e,a);c(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
225
+ this._mouseDestroy();return this},_mouseCapture:function(b){var d=this.options,e,a,f,g,i,j;if(d.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();e={x:b.pageX,y:b.pageY};a=this._normValueFromMouse(e);f=this._valueMax()-this._valueMin()+1;i=this;this.handles.each(function(m){var k=Math.abs(a-i.values(m));if(f>k){f=k;g=c(this);j=m}});if(d.range===true&&this.values(1)===d.min){j+=1;g=c(this.handles[j])}if(this._start(b,
226
+ j)===false)return false;this._mouseSliding=true;i._handleIndex=j;g.addClass("ui-state-active").focus();d=g.offset();this._clickOffset=!c(b.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:b.pageX-d.left-g.width()/2,top:b.pageY-d.top-g.height()/2-(parseInt(g.css("borderTopWidth"),10)||0)-(parseInt(g.css("borderBottomWidth"),10)||0)+(parseInt(g.css("marginTop"),10)||0)};a=this._normValueFromMouse(e);this._slide(b,j,a);return this._animateOff=true},_mouseStart:function(){return true},
227
+ _mouseDrag:function(b){var d=this._normValueFromMouse({x:b.pageX,y:b.pageY});this._slide(b,this._handleIndex,d);return false},_mouseStop:function(b){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(b,this._handleIndex);this._change(b,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(b){var d;
228
+ if(this.orientation==="horizontal"){d=this.elementSize.width;b=b.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{d=this.elementSize.height;b=b.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}d=b/d;if(d>1)d=1;if(d<0)d=0;if(this.orientation==="vertical")d=1-d;b=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+d*b)},_start:function(b,d){var e={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){e.value=
229
+ this.values(d);e.values=this.values()}return this._trigger("start",b,e)},_slide:function(b,d,e){var a;if(this.options.values&&this.options.values.length){a=this.values(d?0:1);if(this.options.values.length===2&&this.options.range===true&&(d===0&&e>a||d===1&&e<a))e=a;if(e!==this.values(d)){a=this.values();a[d]=e;b=this._trigger("slide",b,{handle:this.handles[d],value:e,values:a});this.values(d?0:1);b!==false&&this.values(d,e,true)}}else if(e!==this.value()){b=this._trigger("slide",b,{handle:this.handles[d],
230
+ value:e});b!==false&&this.value(e)}},_stop:function(b,d){var e={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){e.value=this.values(d);e.values=this.values()}this._trigger("stop",b,e)},_change:function(b,d){if(!this._keySliding&&!this._mouseSliding){var e={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){e.value=this.values(d);e.values=this.values()}this._trigger("change",b,e)}},value:function(b){if(arguments.length){this.options.value=
231
+ this._trimAlignValue(b);this._refreshValue();this._change(null,0)}return this._value()},values:function(b,d){var e,a,f;if(arguments.length>1){this.options.values[b]=this._trimAlignValue(d);this._refreshValue();this._change(null,b)}if(arguments.length)if(c.isArray(arguments[0])){e=this.options.values;a=arguments[0];for(f=0;f<e.length;f+=1){e[f]=this._trimAlignValue(a[f]);this._change(null,f)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(b):this.value();
232
+ else return this._values()},_setOption:function(b,d){var e,a=0;if(c.isArray(this.options.values))a=this.options.values.length;c.Widget.prototype._setOption.apply(this,arguments);switch(b){case "disabled":if(d){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}break;case "orientation":this._detectOrientation();
233
+ this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(e=0;e<a;e+=1)this._change(null,e);this._animateOff=false;break}},_value:function(){var b=this.options.value;return b=this._trimAlignValue(b)},_values:function(b){var d,e;if(arguments.length){d=this.options.values[b];
234
+ return d=this._trimAlignValue(d)}else{d=this.options.values.slice();for(e=0;e<d.length;e+=1)d[e]=this._trimAlignValue(d[e]);return d}},_trimAlignValue:function(b){if(b<this._valueMin())return this._valueMin();if(b>this._valueMax())return this._valueMax();var d=this.options.step,e=b%d;b=b-e;if(e>=d/2)b+=d;return parseFloat(b.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var b=this.options.range,d=this.options,e=this,
235
+ a=!this._animateOff?d.animate:false,f,g={},i,j,m,k;if(this.options.values&&this.options.values.length)this.handles.each(function(h){f=(e.values(h)-e._valueMin())/(e._valueMax()-e._valueMin())*100;g[e.orientation==="horizontal"?"left":"bottom"]=f+"%";c(this).stop(1,1)[a?"animate":"css"](g,d.animate);if(e.options.range===true)if(e.orientation==="horizontal"){if(h===0)e.range.stop(1,1)[a?"animate":"css"]({left:f+"%"},d.animate);if(h===1)e.range[a?"animate":"css"]({width:f-i+"%"},{queue:false,duration:d.animate})}else{if(h===
236
+ 0)e.range.stop(1,1)[a?"animate":"css"]({bottom:f+"%"},d.animate);if(h===1)e.range[a?"animate":"css"]({height:f-i+"%"},{queue:false,duration:d.animate})}i=f});else{j=this.value();m=this._valueMin();k=this._valueMax();f=k!==m?(j-m)/(k-m)*100:0;g[e.orientation==="horizontal"?"left":"bottom"]=f+"%";this.handle.stop(1,1)[a?"animate":"css"](g,d.animate);if(b==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[a?"animate":"css"]({width:f+"%"},d.animate);if(b==="max"&&this.orientation==="horizontal")this.range[a?
237
+ "animate":"css"]({width:100-f+"%"},{queue:false,duration:d.animate});if(b==="min"&&this.orientation==="vertical")this.range.stop(1,1)[a?"animate":"css"]({height:f+"%"},d.animate);if(b==="max"&&this.orientation==="vertical")this.range[a?"animate":"css"]({height:100-f+"%"},{queue:false,duration:d.animate})}}});c.extend(c.ui.slider,{version:"1.8.1"})})(jQuery);
238
+ (function(c){var b=0,d=0;c.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'},_create:function(){this._tabify(true)},_setOption:function(e,a){if(e=="selected")this.options.collapsible&&a==this.options.selected||
239
+ this.select(a);else{this.options[e]=a;this._tabify()}},_tabId:function(e){return e.title&&e.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+ ++b},_sanitizeSelector:function(e){return e.replace(/:/g,"\\:")},_cookie:function(){var e=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++d);return c.cookie.apply(null,[e].concat(c.makeArray(arguments)))},_ui:function(e,a){return{tab:e,panel:a,index:this.anchors.index(e)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var e=
240
+ c(this);e.html(e.data("label.tabs")).removeData("label.tabs")})},_tabify:function(e){function a(p,q){p.css({display:""});!c.support.opacity&&q.opacity&&p[0].style.removeAttribute("filter")}this.list=this.element.find("ol,ul").eq(0);this.lis=c("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return c("a",this)[0]});this.panels=c([]);var f=this,g=this.options,i=/^#.+/;this.anchors.each(function(p,q){var r=c(q).attr("href"),s=r.split("#")[0],u;if(s&&(s===location.toString().split("#")[0]||
241
+ (u=c("base")[0])&&s===u.href)){r=q.hash;q.href=r}if(i.test(r))f.panels=f.panels.add(f._sanitizeSelector(r));else if(r!="#"){c.data(q,"href.tabs",r);c.data(q,"load.tabs",r.replace(/#.*$/,""));r=f._tabId(q);q.href="#"+r;q=c("#"+r);if(!q.length){q=c(g.panelTemplate).attr("id",r).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(f.panels[p-1]||f.list);q.data("destroy.tabs",true)}f.panels=f.panels.add(q)}else g.disabled.push(p)});if(e){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");
242
+ this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(g.selected===undefined){location.hash&&this.anchors.each(function(p,q){if(q.hash==location.hash){g.selected=p;return false}});if(typeof g.selected!="number"&&g.cookie)g.selected=parseInt(f._cookie(),10);if(typeof g.selected!="number"&&this.lis.filter(".ui-tabs-selected").length)g.selected=
243
+ this.lis.index(this.lis.filter(".ui-tabs-selected"));g.selected=g.selected||(this.lis.length?0:-1)}else if(g.selected===null)g.selected=-1;g.selected=g.selected>=0&&this.anchors[g.selected]||g.selected<0?g.selected:0;g.disabled=c.unique(g.disabled.concat(c.map(this.lis.filter(".ui-state-disabled"),function(p){return f.lis.index(p)}))).sort();c.inArray(g.selected,g.disabled)!=-1&&g.disabled.splice(c.inArray(g.selected,g.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
244
+ if(g.selected>=0&&this.anchors.length){this.panels.eq(g.selected).removeClass("ui-tabs-hide");this.lis.eq(g.selected).addClass("ui-tabs-selected ui-state-active");f.element.queue("tabs",function(){f._trigger("show",null,f._ui(f.anchors[g.selected],f.panels[g.selected]))});this.load(g.selected)}c(window).bind("unload",function(){f.lis.add(f.anchors).unbind(".tabs");f.lis=f.anchors=f.panels=null})}else g.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));this.element[g.collapsible?"addClass":
245
+ "removeClass"]("ui-tabs-collapsible");g.cookie&&this._cookie(g.selected,g.cookie);e=0;for(var j;j=this.lis[e];e++)c(j)[c.inArray(e,g.disabled)!=-1&&!c(j).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 m=function(p,q){q.is(":not(.ui-state-disabled)")&&q.addClass("ui-state-"+p)},k=function(p,q){q.removeClass("ui-state-"+p)};this.lis.bind("mouseover.tabs",
246
+ function(){m("hover",c(this))});this.lis.bind("mouseout.tabs",function(){k("hover",c(this))});this.anchors.bind("focus.tabs",function(){m("focus",c(this).closest("li"))});this.anchors.bind("blur.tabs",function(){k("focus",c(this).closest("li"))})}var h,l;if(g.fx)if(c.isArray(g.fx)){h=g.fx[0];l=g.fx[1]}else h=l=g.fx;var n=l?function(p,q){c(p).closest("li").addClass("ui-tabs-selected ui-state-active");q.hide().removeClass("ui-tabs-hide").animate(l,l.duration||"normal",function(){a(q,l);f._trigger("show",
247
+ null,f._ui(p,q[0]))})}:function(p,q){c(p).closest("li").addClass("ui-tabs-selected ui-state-active");q.removeClass("ui-tabs-hide");f._trigger("show",null,f._ui(p,q[0]))},o=h?function(p,q){q.animate(h,h.duration||"normal",function(){f.lis.removeClass("ui-tabs-selected ui-state-active");q.addClass("ui-tabs-hide");a(q,h);f.element.dequeue("tabs")})}:function(p,q){f.lis.removeClass("ui-tabs-selected ui-state-active");q.addClass("ui-tabs-hide");f.element.dequeue("tabs")};this.anchors.bind(g.event+".tabs",
248
+ function(){var p=this,q=c(this).closest("li"),r=f.panels.filter(":not(.ui-tabs-hide)"),s=c(f._sanitizeSelector(this.hash));if(q.hasClass("ui-tabs-selected")&&!g.collapsible||q.hasClass("ui-state-disabled")||q.hasClass("ui-state-processing")||f._trigger("select",null,f._ui(this,s[0]))===false){this.blur();return false}g.selected=f.anchors.index(this);f.abort();if(g.collapsible)if(q.hasClass("ui-tabs-selected")){g.selected=-1;g.cookie&&f._cookie(g.selected,g.cookie);f.element.queue("tabs",function(){o(p,
249
+ r)}).dequeue("tabs");this.blur();return false}else if(!r.length){g.cookie&&f._cookie(g.selected,g.cookie);f.element.queue("tabs",function(){n(p,s)});f.load(f.anchors.index(this));this.blur();return false}g.cookie&&f._cookie(g.selected,g.cookie);if(s.length){r.length&&f.element.queue("tabs",function(){o(p,r)});f.element.queue("tabs",function(){n(p,s)});f.load(f.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";c.browser.msie&&this.blur()});this.anchors.bind("click.tabs",
250
+ function(){return false})},destroy:function(){var e=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var a=c.data(this,"href.tabs");if(a)this.href=a;var f=c(this).unbind(".tabs");c.each(["href","load","cache"],function(g,i){f.removeData(i+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){c.data(this,
251
+ "destroy.tabs")?c(this).remove():c(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")});e.cookie&&this._cookie(null,e.cookie);return this},add:function(e,a,f){if(f===undefined)f=this.anchors.length;var g=this,i=this.options;a=c(i.tabTemplate.replace(/#\{href\}/g,e).replace(/#\{label\}/g,a));e=!e.indexOf("#")?e.replace("#",""):this._tabId(c("a",a)[0]);a.addClass("ui-state-default ui-corner-top").data("destroy.tabs",
252
+ true);var j=c("#"+e);j.length||(j=c(i.panelTemplate).attr("id",e).data("destroy.tabs",true));j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(f>=this.lis.length){a.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{a.insertBefore(this.lis[f]);j.insertBefore(this.panels[f])}i.disabled=c.map(i.disabled,function(m){return m>=f?++m:m});this._tabify();if(this.anchors.length==1){i.selected=0;a.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");
253
+ this.element.queue("tabs",function(){g._trigger("show",null,g._ui(g.anchors[0],g.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[f],this.panels[f]));return this},remove:function(e){var a=this.options,f=this.lis.eq(e).remove(),g=this.panels.eq(e).remove();if(f.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(e+(e+1<this.anchors.length?1:-1));a.disabled=c.map(c.grep(a.disabled,function(i){return i!=e}),function(i){return i>=e?--i:i});this._tabify();this._trigger("remove",
254
+ null,this._ui(f.find("a")[0],g[0]));return this},enable:function(e){var a=this.options;if(c.inArray(e,a.disabled)!=-1){this.lis.eq(e).removeClass("ui-state-disabled");a.disabled=c.grep(a.disabled,function(f){return f!=e});this._trigger("enable",null,this._ui(this.anchors[e],this.panels[e]));return this}},disable:function(e){var a=this.options;if(e!=a.selected){this.lis.eq(e).addClass("ui-state-disabled");a.disabled.push(e);a.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[e],this.panels[e]))}return this},
255
+ select:function(e){if(typeof e=="string")e=this.anchors.index(this.anchors.filter("[href$="+e+"]"));else if(e===null)e=-1;if(e==-1&&this.options.collapsible)e=this.options.selected;this.anchors.eq(e).trigger(this.options.event+".tabs");return this},load:function(e){var a=this,f=this.options,g=this.anchors.eq(e)[0],i=c.data(g,"load.tabs");this.abort();if(!i||this.element.queue("tabs").length!==0&&c.data(g,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(e).addClass("ui-state-processing");
256
+ if(f.spinner){var j=c("span",g);j.data("label.tabs",j.html()).html(f.spinner)}this.xhr=c.ajax(c.extend({},f.ajaxOptions,{url:i,success:function(m,k){c(a._sanitizeSelector(g.hash)).html(m);a._cleanup();f.cache&&c.data(g,"cache.tabs",true);a._trigger("load",null,a._ui(a.anchors[e],a.panels[e]));try{f.ajaxOptions.success(m,k)}catch(h){}},error:function(m,k){a._cleanup();a._trigger("load",null,a._ui(a.anchors[e],a.panels[e]));try{f.ajaxOptions.error(m,k,e,g)}catch(h){}}}));a.element.dequeue("tabs");return this}},
257
+ abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(e,a){this.anchors.eq(e).removeData("cache.tabs").data("load.tabs",a);return this},length:function(){return this.anchors.length}});c.extend(c.ui.tabs,{version:"1.8.1"});c.extend(c.ui.tabs.prototype,{rotation:null,rotate:function(e,a){var f=this,g=this.options,i=f._rotate||(f._rotate=
258
+ function(j){clearTimeout(f.rotation);f.rotation=setTimeout(function(){var m=g.selected;f.select(++m<f.anchors.length?m:0)},e);j&&j.stopPropagation()});a=f._unrotate||(f._unrotate=!a?function(j){j.clientX&&f.rotate(null)}:function(){t=g.selected;i()});if(e){this.element.bind("tabsshow",i);this.anchors.bind(g.event+".tabs",a);i()}else{clearTimeout(f.rotation);this.element.unbind("tabsshow",i);this.anchors.unbind(g.event+".tabs",a);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
246
259
  (function(c){function b(){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=
247
260
  "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",
248
261
  "Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
249
262
  minDate:null,maxDate:null,duration:"_default",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};c.extend(this._defaults,this.regional[""]);this.dpDiv=c('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}function d(a,f){c.extend(a,
250
- f);for(var g in f)if(f[g]==null||f[g]==undefined)a[g]=f[g];return a}c.extend(c.ui,{datepicker:{version:"1.8"}});var e=(new Date).getTime();c.extend(b.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){d(this._defaults,a||{});return this},_attachDatepicker:function(a,f){var g=null;for(var i in this._defaults){var j=a.getAttribute("date:"+i);if(j){g=g||{};try{g[i]=eval(j)}catch(m){g[i]=
263
+ f);for(var g in f)if(f[g]==null||f[g]==undefined)a[g]=f[g];return a}c.extend(c.ui,{datepicker:{version:"1.8.1"}});var e=(new Date).getTime();c.extend(b.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){d(this._defaults,a||{});return this},_attachDatepicker:function(a,f){var g=null;for(var i in this._defaults){var j=a.getAttribute("date:"+i);if(j){g=g||{};try{g[i]=eval(j)}catch(m){g[i]=
251
264
  j}}}i=a.nodeName.toLowerCase();j=i=="div"||i=="span";if(!a.id)a.id="dp"+ ++this.uuid;var k=this._newInst(c(a),j);k.settings=c.extend({},f||{},g||{});if(i=="input")this._connectDatepicker(a,k);else j&&this._inlineDatepicker(a,k)},_newInst:function(a,f){return{id:a[0].id.replace(/([^A-Za-z0-9_])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:f,dpDiv:!f?this.dpDiv:c('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},
252
265
  _connectDatepicker:function(a,f){var g=c(a);f.append=c([]);f.trigger=c([]);if(!g.hasClass(this.markerClassName)){this._attachments(g,f);g.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(i,j,m){f.settings[j]=m}).bind("getData.datepicker",function(i,j){return this._get(f,j)});this._autoSize(f);c.data(a,"datepicker",f)}},_attachments:function(a,f){var g=this._get(f,"appendText"),i=this._get(f,"isRTL");f.append&&
253
266
  f.append.remove();if(g){f.append=c('<span class="'+this._appendClass+'">'+g+"</span>");a[i?"before":"after"](f.append)}a.unbind("focus",this._showDatepicker);f.trigger&&f.trigger.remove();g=this._get(f,"showOn");if(g=="focus"||g=="both")a.focus(this._showDatepicker);if(g=="button"||g=="both"){g=this._get(f,"buttonText");var j=this._get(f,"buttonImage");f.trigger=c(this._get(f,"buttonImageOnly")?c("<img/>").addClass(this._triggerClass).attr({src:j,alt:g,title:g}):c('<button type="button"></button>').addClass(this._triggerClass).html(j==
@@ -310,77 +323,63 @@ a.drawYear+(g=="Y"?f:0),j=a.drawMonth+(g=="M"?f:0);f=Math.min(a.selectedDay,this
310
323
  g=this._daylightSavingAdjust(new Date(g,i+(f<0?f:j[0]*j[1]),1));f<0&&g.setDate(this._getDaysInMonth(g.getFullYear(),g.getMonth()));return this._isInRange(a,g)},_isInRange:function(a,f){var g=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!g||f.getTime()>=g.getTime())&&(!a||f.getTime()<=a.getTime())},_getFormatConfig:function(a){var f=this._get(a,"shortYearCutoff");f=typeof f!="string"?f:(new Date).getFullYear()%100+parseInt(f,10);return{shortYearCutoff:f,dayNamesShort:this._get(a,
311
324
  "dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,f,g,i){if(!f){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}f=f?typeof f=="object"?f:this._daylightSavingAdjust(new Date(i,g,f)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),f,this._getFormatConfig(a))}});c.fn.datepicker=
312
325
  function(a){if(!c.datepicker.initialized){c(document).mousedown(c.datepicker._checkExternalClick).find("body").append(c.datepicker.dpDiv);c.datepicker.initialized=true}var f=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return c.datepicker["_"+a+"Datepicker"].apply(c.datepicker,[this[0]].concat(f));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return c.datepicker["_"+a+"Datepicker"].apply(c.datepicker,[this[0]].concat(f));
313
- return this.each(function(){typeof a=="string"?c.datepicker["_"+a+"Datepicker"].apply(c.datepicker,[this].concat(f)):c.datepicker._attachDatepicker(this,a)})};c.datepicker=new b;c.datepicker.initialized=false;c.datepicker.uuid=(new Date).getTime();c.datepicker.version="1.8";window["DP_jQuery_"+e]=c})(jQuery);
314
- (function(c){c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");var b=this,d=b.options,e=d.title||b.originalTitle||"&#160;",a=c.ui.dialog.getTitleId(b.element),f=(b.uiDialog=c("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
315
- d.dialogClass).css({zIndex:d.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(j){if(d.closeOnEscape&&j.keyCode&&j.keyCode===c.ui.keyCode.ESCAPE){b.close(j);j.preventDefault()}}).attr({role:"dialog","aria-labelledby":a}).mousedown(function(j){b.moveToTop(false,j)});b.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(f);var g=(b.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(f),
316
- i=c('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){i.addClass("ui-state-hover")},function(){i.removeClass("ui-state-hover")}).focus(function(){i.addClass("ui-state-focus")}).blur(function(){i.removeClass("ui-state-focus")}).click(function(j){b.close(j);return false}).appendTo(g);(b.uiDialogTitlebarCloseText=c("<span></span>")).addClass("ui-icon ui-icon-closethick").text(d.closeText).appendTo(i);c("<span></span>").addClass("ui-dialog-title").attr("id",
317
- a).html(e).prependTo(g);if(c.isFunction(d.beforeclose)&&!c.isFunction(d.beforeClose))d.beforeClose=d.beforeclose;g.find("*").add(g).disableSelection();d.draggable&&c.fn.draggable&&b._makeDraggable();d.resizable&&c.fn.resizable&&b._makeResizable();b._createButtons(d.buttons);b._isOpen=false;c.fn.bgiframe&&f.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var b=this;b.overlay&&b.overlay.destroy();b.uiDialog.hide();b.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
318
- b.uiDialog.remove();b.originalTitle&&b.element.attr("title",b.originalTitle);return b},widget:function(){return this.uiDialog},close:function(b){var d=this,e;if(false!==d._trigger("beforeClose",b)){d.overlay&&d.overlay.destroy();d.uiDialog.unbind("keypress.ui-dialog");d._isOpen=false;if(d.options.hide)d.uiDialog.hide(d.options.hide,function(){d._trigger("close",b)});else{d.uiDialog.hide();d._trigger("close",b)}c.ui.dialog.overlay.resize();if(d.options.modal){e=0;c(".ui-dialog").each(function(){if(this!==
319
- d.uiDialog[0])e=Math.max(e,c(this).css("z-index"))});c.ui.dialog.maxZ=e}return d}},isOpen:function(){return this._isOpen},moveToTop:function(b,d){var e=this,a=e.options;if(a.modal&&!b||!a.stack&&!a.modal)return e._trigger("focus",d);if(a.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=a.zIndex;if(e.overlay){c.ui.dialog.maxZ+=1;e.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}b={scrollTop:e.element.attr("scrollTop"),scrollLeft:e.element.attr("scrollLeft")};c.ui.dialog.maxZ+=1;e.uiDialog.css("z-index",
320
- c.ui.dialog.maxZ);e.element.attr(b);e._trigger("focus",d);return e},open:function(){if(!this._isOpen){var b=this,d=b.options,e=b.uiDialog;b.overlay=d.modal?new c.ui.dialog.overlay(b):null;e.next().length&&e.appendTo("body");b._size();b._position(d.position);e.show(d.show);b.moveToTop(true);d.modal&&e.bind("keypress.ui-dialog",function(a){if(a.keyCode===c.ui.keyCode.TAB){var f=c(":tabbable",this),g=f.filter(":first");f=f.filter(":last");if(a.target===f[0]&&!a.shiftKey){g.focus(1);return false}else if(a.target===
321
- g[0]&&a.shiftKey){f.focus(1);return false}}});c([]).add(e.find(".ui-dialog-content :tabbable:first")).add(e.find(".ui-dialog-buttonpane :tabbable:first")).add(e).filter(":first").focus();b._trigger("open");b._isOpen=true;return b}},_createButtons:function(b){var d=this,e=false,a=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");d.uiDialog.find(".ui-dialog-buttonpane").remove();typeof b==="object"&&b!==null&&c.each(b,function(){return!(e=true)});if(e){c.each(b,
322
- function(f,g){f=c('<button type="button"></button>').text(f).click(function(){g.apply(d.element[0],arguments)}).appendTo(a);c.fn.button&&f.button()});a.appendTo(d.uiDialog)}},_makeDraggable:function(){function b(g){return{position:g.position,offset:g.offset}}var d=this,e=d.options,a=c(document),f;d.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(g,i){f=e.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");
323
- d._trigger("dragStart",g,b(i))},drag:function(g,i){d._trigger("drag",g,b(i))},stop:function(g,i){e.position=[i.position.left-a.scrollLeft(),i.position.top-a.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(f);d._trigger("dragStop",g,b(i));c.ui.dialog.overlay.resize()}})},_makeResizable:function(b){function d(g){return{originalPosition:g.originalPosition,originalSize:g.originalSize,position:g.position,size:g.size}}b=b===undefined?this.options.resizable:b;var e=this,a=e.options,f=e.uiDialog.css("position");
324
- b=typeof b==="string"?b:"n,e,s,w,se,sw,ne,nw";e.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:e.element,maxWidth:a.maxWidth,maxHeight:a.maxHeight,minWidth:a.minWidth,minHeight:e._minHeight(),handles:b,start:function(g,i){c(this).addClass("ui-dialog-resizing");e._trigger("resizeStart",g,d(i))},resize:function(g,i){e._trigger("resize",g,d(i))},stop:function(g,i){c(this).removeClass("ui-dialog-resizing");a.height=c(this).height();a.width=c(this).width();e._trigger("resizeStop",
325
- g,d(i));c.ui.dialog.overlay.resize()}}).css("position",f).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var b=this.options;return b.height==="auto"?b.minHeight:Math.min(b.minHeight,b.height)},_position:function(b){var d=[],e=[0,0];b=b||c.ui.dialog.prototype.options.position;if(typeof b==="string"||typeof b==="object"&&"0"in b){d=b.split?b.split(" "):[b[0],b[1]];if(d.length===1)d[1]=d[0];c.each(["left","top"],function(a,f){if(+d[a]===d[a]){e[a]=d[a];d[a]=
326
- f}})}else if(typeof b==="object"){if("left"in b){d[0]="left";e[0]=b.left}else if("right"in b){d[0]="right";e[0]=-b.right}if("top"in b){d[1]="top";e[1]=b.top}else if("bottom"in b){d[1]="bottom";e[1]=-b.bottom}}(b=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position({my:d.join(" "),at:d.join(" "),offset:e.join(" "),of:window,collision:"fit",using:function(a){var f=c(this).css(a).offset().top;f<0&&c(this).css("top",a.top-f)}});b||this.uiDialog.hide()},_setOption:function(b,
327
- d){var e=this,a=e.uiDialog,f=a.is(":data(resizable)"),g=false;switch(b){case "beforeclose":b="beforeClose";break;case "buttons":e._createButtons(d);break;case "closeText":e.uiDialogTitlebarCloseText.text(""+d);break;case "dialogClass":a.removeClass(e.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+d);break;case "disabled":d?a.addClass("ui-dialog-disabled"):a.removeClass("ui-dialog-disabled");break;case "draggable":d?e._makeDraggable():a.draggable("destroy");break;
328
- case "height":g=true;break;case "maxHeight":f&&a.resizable("option","maxHeight",d);g=true;break;case "maxWidth":f&&a.resizable("option","maxWidth",d);g=true;break;case "minHeight":f&&a.resizable("option","minHeight",d);g=true;break;case "minWidth":f&&a.resizable("option","minWidth",d);g=true;break;case "position":e._position(d);break;case "resizable":f&&!d&&a.resizable("destroy");f&&typeof d==="string"&&a.resizable("option","handles",d);!f&&d!==false&&e._makeResizable(d);break;case "title":c(".ui-dialog-title",
329
- e.uiDialogTitlebar).html(""+(d||"&#160;"));break;case "width":g=true;break}c.Widget.prototype._setOption.apply(e,arguments);g&&e._size()},_size:function(){var b=this.options,d;this.element.css("width","auto").hide();d=this.uiDialog.css({height:"auto",width:b.width}).height();this.element.css(b.height==="auto"?{minHeight:Math.max(b.minHeight-d,0),height:"auto"}:{minHeight:0,height:Math.max(b.height-d,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});
330
- c.extend(c.ui.dialog,{version:"1.8",uuid:0,maxZ:0,getTitleId:function(b){b=b.attr("id");if(!b){this.uuid+=1;b=this.uuid}return"ui-dialog-title-"+b},overlay:function(b){this.$el=c.ui.dialog.overlay.create(b)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(b){return b+".dialog-overlay"}).join(" "),create:function(b){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&
331
- c(document).bind(c.ui.dialog.overlay.events,function(e){return c(e.target).zIndex()>=c.ui.dialog.overlay.maxZ})},1);c(document).bind("keydown.dialog-overlay",function(e){if(b.options.closeOnEscape&&e.keyCode&&e.keyCode===c.ui.keyCode.ESCAPE){b.close(e);e.preventDefault()}});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var d=(this.oldInstances.pop()||c("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});c.fn.bgiframe&&
332
- d.bgiframe();this.instances.push(d);return d},destroy:function(b){this.oldInstances.push(this.instances.splice(c.inArray(b,this.instances),1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");b.remove();var d=0;c.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var b,d;if(c.browser.msie&&c.browser.version<7){b=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);d=Math.max(document.documentElement.offsetHeight,
333
- document.body.offsetHeight);return b<d?c(window).height()+"px":b+"px"}else return c(document).height()+"px"},width:function(){var b,d;if(c.browser.msie&&c.browser.version<7){b=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);d=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return b<d?c(window).width()+"px":b+"px"}else return c(document).width()+"px"},resize:function(){var b=c([]);c.each(c.ui.dialog.overlay.instances,function(){b=b.add(this)});b.css({width:0,
334
- height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
335
- (function(c){c.ui=c.ui||{};var b=/left|center|right/,d=/top|center|bottom/,e=c.fn.position,a=c.fn.offset;c.fn.position=function(f){if(!f||!f.of)return e.apply(this,arguments);f=c.extend({},f);var g=c(f.of),i=(f.collision||"flip").split(" "),j=f.offset?f.offset.split(" "):[0,0],m,k,h;if(f.of.nodeType===9){m=g.width();k=g.height();h={top:0,left:0}}else if(f.of.scrollTo&&f.of.document){m=g.width();k=g.height();h={top:g.scrollTop(),left:g.scrollLeft()}}else if(f.of.preventDefault){f.at="left top";m=k=
336
- 0;h={top:f.of.pageY,left:f.of.pageX}}else{m=g.outerWidth();k=g.outerHeight();h=g.offset()}c.each(["my","at"],function(){var l=(f[this]||"").split(" ");if(l.length===1)l=b.test(l[0])?l.concat(["center"]):d.test(l[0])?["center"].concat(l):["center","center"];l[0]=b.test(l[0])?l[0]:"center";l[1]=d.test(l[1])?l[1]:"center";f[this]=l});if(i.length===1)i[1]=i[0];j[0]=parseInt(j[0],10)||0;if(j.length===1)j[1]=j[0];j[1]=parseInt(j[1],10)||0;if(f.at[0]==="right")h.left+=m;else if(f.at[0]==="center")h.left+=
337
- m/2;if(f.at[1]==="bottom")h.top+=k;else if(f.at[1]==="center")h.top+=k/2;h.left+=j[0];h.top+=j[1];return this.each(function(){var l=c(this),n=l.outerWidth(),o=l.outerHeight(),p=c.extend({},h);if(f.my[0]==="right")p.left-=n;else if(f.my[0]==="center")p.left-=n/2;if(f.my[1]==="bottom")p.top-=o;else if(f.my[1]==="center")p.top-=o/2;c.each(["left","top"],function(q,r){c.ui.position[i[q]]&&c.ui.position[i[q]][r](p,{targetWidth:m,targetHeight:k,elemWidth:n,elemHeight:o,offset:j,my:f.my,at:f.at})});c.fn.bgiframe&&
338
- l.bgiframe();l.offset(c.extend(p,{using:f.using}))})};c.ui.position={fit:{left:function(f,g){var i=c(window);g=f.left+g.elemWidth-i.width()-i.scrollLeft();f.left=g>0?f.left-g:Math.max(0,f.left)},top:function(f,g){var i=c(window);g=f.top+g.elemHeight-i.height()-i.scrollTop();f.top=g>0?f.top-g:Math.max(0,f.top)}},flip:{left:function(f,g){if(g.at[0]!=="center"){var i=c(window);i=f.left+g.elemWidth-i.width()-i.scrollLeft();var j=g.my[0]==="left"?-g.elemWidth:g.my[0]==="right"?g.elemWidth:0,m=-2*g.offset[0];
339
- f.left+=f.left<0?j+g.targetWidth+m:i>0?j-g.targetWidth+m:0}},top:function(f,g){if(g.at[1]!=="center"){var i=c(window);i=f.top+g.elemHeight-i.height()-i.scrollTop();var j=g.my[1]==="top"?-g.elemHeight:g.my[1]==="bottom"?g.elemHeight:0,m=g.at[1]==="top"?g.targetHeight:-g.targetHeight,k=-2*g.offset[1];f.top+=f.top<0?j+g.targetHeight+k:i>0?j+m+k:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(f,g){if(/static/.test(c.curCSS(f,"position")))f.style.position="relative";var i=c(f),j=i.offset(),m=
340
- parseInt(c.curCSS(f,"top",true),10)||0,k=parseInt(c.curCSS(f,"left",true),10)||0;j={top:g.top-j.top+m,left:g.left-j.left+k};"using"in g?g.using.call(f,j):i.css(j)};c.fn.offset=function(f){var g=this[0];if(!g||!g.ownerDocument)return null;if(f)return this.each(function(){c.offset.setOffset(this,f)});return a.call(this)}}})(jQuery);
326
+ return this.each(function(){typeof a=="string"?c.datepicker["_"+a+"Datepicker"].apply(c.datepicker,[this].concat(f)):c.datepicker._attachDatepicker(this,a)})};c.datepicker=new b;c.datepicker.initialized=false;c.datepicker.uuid=(new Date).getTime();c.datepicker.version="1.8.1";window["DP_jQuery_"+e]=c})(jQuery);
341
327
  (function(c){c.widget("ui.progressbar",{options:{value:0},_create: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=c("<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");
342
328
  this.valueDiv.remove();c.Widget.prototype.destroy.apply(this,arguments)},value:function(b){if(b===undefined)return this._value();this._setOption("value",b);return this},_setOption:function(b,d){switch(b){case "value":this.options.value=d;this._refreshValue();this._trigger("change");break}c.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var b=this.options.value;if(typeof b!=="number")b=0;if(b<this._valueMin())b=this._valueMin();if(b>this._valueMax())b=this._valueMax();return b},
343
- _valueMin:function(){return 0},_valueMax:function(){return 100},_refreshValue:function(){var b=this.value();this.valueDiv[b===this._valueMax()?"addClass":"removeClass"]("ui-corner-right").width(b+"%");this.element.attr("aria-valuenow",b)}});c.extend(c.ui.progressbar,{version:"1.8"})})(jQuery);
344
- (function(c){c.widget("ui.slider",c.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var b=this,d=this.options;this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");d.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");
345
- this.range=c([]);if(d.range){if(d.range===true){this.range=c("<div></div>");if(!d.values)d.values=[this._valueMin(),this._valueMin()];if(d.values.length&&d.values.length!=2)d.values=[d.values[0],d.values[0]]}else this.range=c("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(d.range=="min"||d.range=="max")this.range.addClass("ui-slider-range-"+d.range);this.range.addClass("ui-widget-header")}c(".ui-slider-handle",this.element).length==0&&c('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");
346
- if(d.values&&d.values.length)for(;c(".ui-slider-handle",this.element).length<d.values.length;)c('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");this.handles=c(".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(e){e.preventDefault()}).hover(function(){d.disabled||c(this).addClass("ui-state-hover")},function(){c(this).removeClass("ui-state-hover")}).focus(function(){if(d.disabled)c(this).blur();
347
- else{c(".ui-slider .ui-state-focus").removeClass("ui-state-focus");c(this).addClass("ui-state-focus")}}).blur(function(){c(this).removeClass("ui-state-focus")});this.handles.each(function(e){c(this).data("index.ui-slider-handle",e)});this.handles.keydown(function(e){var a=true,f=c(this).data("index.ui-slider-handle");if(!b.options.disabled){switch(e.keyCode){case c.ui.keyCode.HOME:case c.ui.keyCode.END:case c.ui.keyCode.PAGE_UP:case c.ui.keyCode.PAGE_DOWN:case c.ui.keyCode.UP:case c.ui.keyCode.RIGHT:case c.ui.keyCode.DOWN:case c.ui.keyCode.LEFT:a=
348
- false;if(!b._keySliding){b._keySliding=true;c(this).addClass("ui-state-active");b._start(e,f)}break}var g,i,j=b._step();g=b.options.values&&b.options.values.length?(i=b.values(f)):(i=b.value());switch(e.keyCode){case c.ui.keyCode.HOME:i=b._valueMin();break;case c.ui.keyCode.END:i=b._valueMax();break;case c.ui.keyCode.PAGE_UP:i=g+(b._valueMax()-b._valueMin())/5;break;case c.ui.keyCode.PAGE_DOWN:i=g-(b._valueMax()-b._valueMin())/5;break;case c.ui.keyCode.UP:case c.ui.keyCode.RIGHT:if(g==b._valueMax())return;
349
- i=g+j;break;case c.ui.keyCode.DOWN:case c.ui.keyCode.LEFT:if(g==b._valueMin())return;i=g-j;break}b._slide(e,f,i);return a}}).keyup(function(e){var a=c(this).data("index.ui-slider-handle");if(b._keySliding){b._keySliding=false;b._stop(e,a);b._change(e,a);c(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
350
- this._mouseDestroy();return this},_mouseCapture:function(b){var d=this.options;if(d.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var e={x:b.pageX,y:b.pageY},a=this._normValueFromMouse(e),f=this._valueMax()-this._valueMin()+1,g,i=this,j;this.handles.each(function(m){var k=Math.abs(a-i.values(m));if(f>k){f=k;g=c(this);j=m}});if(d.range==true&&this.values(1)==d.min)g=c(this.handles[++j]);this._start(b,
351
- j);this._mouseSliding=true;i._handleIndex=j;g.addClass("ui-state-active").focus();d=g.offset();this._clickOffset=!c(b.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:b.pageX-d.left-g.width()/2,top:b.pageY-d.top-g.height()/2-(parseInt(g.css("borderTopWidth"),10)||0)-(parseInt(g.css("borderBottomWidth"),10)||0)+(parseInt(g.css("marginTop"),10)||0)};a=this._normValueFromMouse(e);this._slide(b,j,a);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(b){var d=
352
- this._normValueFromMouse({x:b.pageX,y:b.pageY});this._slide(b,this._handleIndex,d);return false},_mouseStop:function(b){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(b,this._handleIndex);this._change(b,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation=="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(b){var d;if("horizontal"==this.orientation){d=
353
- this.elementSize.width;b=b.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{d=this.elementSize.height;b=b.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}d=b/d;if(d>1)d=1;if(d<0)d=0;if("vertical"==this.orientation)d=1-d;b=this._valueMax()-this._valueMin();b=d*b;d=b%this.options.step;b=this._valueMin()+b-d;if(d>this.options.step/2)b+=this.options.step;return parseFloat(b.toFixed(5))},_start:function(b,d){var e={handle:this.handles[d],value:this.value()};
354
- if(this.options.values&&this.options.values.length){e.value=this.values(d);e.values=this.values()}this._trigger("start",b,e)},_slide:function(b,d,e){if(this.options.values&&this.options.values.length){var a=this.values(d?0:1);if(this.options.values.length==2&&this.options.range===true&&(d==0&&e>a||d==1&&e<a))e=a;if(e!=this.values(d)){a=this.values();a[d]=e;b=this._trigger("slide",b,{handle:this.handles[d],value:e,values:a});this.values(d?0:1);b!==false&&this.values(d,e,true)}}else if(e!=this.value()){b=
355
- this._trigger("slide",b,{handle:this.handles[d],value:e});b!==false&&this.value(e)}},_stop:function(b,d){var e={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){e.value=this.values(d);e.values=this.values()}this._trigger("stop",b,e)},_change:function(b,d){if(!this._keySliding&&!this._mouseSliding){var e={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){e.value=this.values(d);e.values=this.values()}this._trigger("change",
356
- b,e)}},value:function(b){if(arguments.length){this.options.value=this._trimValue(b);this._refreshValue();this._change(null,0)}return this._value()},values:function(b,d){if(arguments.length>1){this.options.values[b]=this._trimValue(d);this._refreshValue();this._change(null,b)}if(arguments.length)if(c.isArray(arguments[0])){for(var e=this.options.values,a=arguments[0],f=0,g=e.length;f<g;f++){e[f]=this._trimValue(a[f]);this._change(null,f)}this._refreshValue()}else return this.options.values&&this.options.values.length?
357
- this._values(b):this.value();else return this._values()},_setOption:function(b,d){var e,a=0;if(jQuery.isArray(this.options.values))a=this.options.values.length;c.Widget.prototype._setOption.apply(this,arguments);switch(b){case "disabled":if(d){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}case "orientation":this._detectOrientation();
358
- this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(e=0;e<a;e++)this._change(null,e);this._animateOff=false;break}},_step:function(){return this.options.step},_value:function(){var b=this.options.value;return b=this._trimValue(b)},_values:function(b){if(arguments.length){var d=
359
- this.options.values[b];return d=this._trimValue(d)}else{d=this.options.values.slice();for(var e=0,a=d.length;e<a;e++)d[e]=this._trimValue(d[e]);return d}},_trimValue:function(b){if(b<this._valueMin())b=this._valueMin();if(b>this._valueMax())b=this._valueMax();return b},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var b=this.options.range,d=this.options,e=this,a=!this._animateOff?d.animate:false;if(this.options.values&&this.options.values.length)this.handles.each(function(j){var m=
360
- (e.values(j)-e._valueMin())/(e._valueMax()-e._valueMin())*100,k={};k[e.orientation=="horizontal"?"left":"bottom"]=m+"%";c(this).stop(1,1)[a?"animate":"css"](k,d.animate);if(e.options.range===true)if(e.orientation=="horizontal"){j==0&&e.range.stop(1,1)[a?"animate":"css"]({left:m+"%"},d.animate);j==1&&e.range[a?"animate":"css"]({width:m-lastValPercent+"%"},{queue:false,duration:d.animate})}else{j==0&&e.range.stop(1,1)[a?"animate":"css"]({bottom:m+"%"},d.animate);j==1&&e.range[a?"animate":"css"]({height:m-
361
- lastValPercent+"%"},{queue:false,duration:d.animate})}lastValPercent=m});else{var f=this.value(),g=this._valueMin(),i=this._valueMax();f=i!=g?(f-g)/(i-g)*100:0;g={};g[e.orientation=="horizontal"?"left":"bottom"]=f+"%";this.handle.stop(1,1)[a?"animate":"css"](g,d.animate);b=="min"&&this.orientation=="horizontal"&&this.range.stop(1,1)[a?"animate":"css"]({width:f+"%"},d.animate);b=="max"&&this.orientation=="horizontal"&&this.range[a?"animate":"css"]({width:100-f+"%"},{queue:false,duration:d.animate});
362
- b=="min"&&this.orientation=="vertical"&&this.range.stop(1,1)[a?"animate":"css"]({height:f+"%"},d.animate);b=="max"&&this.orientation=="vertical"&&this.range[a?"animate":"css"]({height:100-f+"%"},{queue:false,duration:d.animate})}}});c.extend(c.ui.slider,{version:"1.8"})})(jQuery);
363
- (function(c){var b=0,d=0;c.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'},_create:function(){this._tabify(true)},_setOption:function(e,a){if(e=="selected")this.options.collapsible&&a==this.options.selected||
364
- this.select(a);else{this.options[e]=a;this._tabify()}},_tabId:function(e){return e.title&&e.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+ ++b},_sanitizeSelector:function(e){return e.replace(/:/g,"\\:")},_cookie:function(){var e=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++d);return c.cookie.apply(null,[e].concat(c.makeArray(arguments)))},_ui:function(e,a){return{tab:e,panel:a,index:this.anchors.index(e)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var e=
365
- c(this);e.html(e.data("label.tabs")).removeData("label.tabs")})},_tabify:function(e){function a(p,q){p.css({display:""});!c.support.opacity&&q.opacity&&p[0].style.removeAttribute("filter")}this.list=this.element.find("ol,ul").eq(0);this.lis=c("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return c("a",this)[0]});this.panels=c([]);var f=this,g=this.options,i=/^#.+/;this.anchors.each(function(p,q){var r=c(q).attr("href"),s=r.split("#")[0],u;if(s&&(s===location.toString().split("#")[0]||
366
- (u=c("base")[0])&&s===u.href)){r=q.hash;q.href=r}if(i.test(r))f.panels=f.panels.add(f._sanitizeSelector(r));else if(r!="#"){c.data(q,"href.tabs",r);c.data(q,"load.tabs",r.replace(/#.*$/,""));r=f._tabId(q);q.href="#"+r;q=c("#"+r);if(!q.length){q=c(g.panelTemplate).attr("id",r).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(f.panels[p-1]||f.list);q.data("destroy.tabs",true)}f.panels=f.panels.add(q)}else g.disabled.push(p)});if(e){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");
367
- this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(g.selected===undefined){location.hash&&this.anchors.each(function(p,q){if(q.hash==location.hash){g.selected=p;return false}});if(typeof g.selected!="number"&&g.cookie)g.selected=parseInt(f._cookie(),10);if(typeof g.selected!="number"&&this.lis.filter(".ui-tabs-selected").length)g.selected=
368
- this.lis.index(this.lis.filter(".ui-tabs-selected"));g.selected=g.selected||(this.lis.length?0:-1)}else if(g.selected===null)g.selected=-1;g.selected=g.selected>=0&&this.anchors[g.selected]||g.selected<0?g.selected:0;g.disabled=c.unique(g.disabled.concat(c.map(this.lis.filter(".ui-state-disabled"),function(p){return f.lis.index(p)}))).sort();c.inArray(g.selected,g.disabled)!=-1&&g.disabled.splice(c.inArray(g.selected,g.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
369
- if(g.selected>=0&&this.anchors.length){this.panels.eq(g.selected).removeClass("ui-tabs-hide");this.lis.eq(g.selected).addClass("ui-tabs-selected ui-state-active");f.element.queue("tabs",function(){f._trigger("show",null,f._ui(f.anchors[g.selected],f.panels[g.selected]))});this.load(g.selected)}c(window).bind("unload",function(){f.lis.add(f.anchors).unbind(".tabs");f.lis=f.anchors=f.panels=null})}else g.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));this.element[g.collapsible?"addClass":
370
- "removeClass"]("ui-tabs-collapsible");g.cookie&&this._cookie(g.selected,g.cookie);e=0;for(var j;j=this.lis[e];e++)c(j)[c.inArray(e,g.disabled)!=-1&&!c(j).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 m=function(p,q){q.is(":not(.ui-state-disabled)")&&q.addClass("ui-state-"+p)},k=function(p,q){q.removeClass("ui-state-"+p)};this.lis.bind("mouseover.tabs",
371
- function(){m("hover",c(this))});this.lis.bind("mouseout.tabs",function(){k("hover",c(this))});this.anchors.bind("focus.tabs",function(){m("focus",c(this).closest("li"))});this.anchors.bind("blur.tabs",function(){k("focus",c(this).closest("li"))})}var h,l;if(g.fx)if(c.isArray(g.fx)){h=g.fx[0];l=g.fx[1]}else h=l=g.fx;var n=l?function(p,q){c(p).closest("li").addClass("ui-tabs-selected ui-state-active");q.hide().removeClass("ui-tabs-hide").animate(l,l.duration||"normal",function(){a(q,l);f._trigger("show",
372
- null,f._ui(p,q[0]))})}:function(p,q){c(p).closest("li").addClass("ui-tabs-selected ui-state-active");q.removeClass("ui-tabs-hide");f._trigger("show",null,f._ui(p,q[0]))},o=h?function(p,q){q.animate(h,h.duration||"normal",function(){f.lis.removeClass("ui-tabs-selected ui-state-active");q.addClass("ui-tabs-hide");a(q,h);f.element.dequeue("tabs")})}:function(p,q){f.lis.removeClass("ui-tabs-selected ui-state-active");q.addClass("ui-tabs-hide");f.element.dequeue("tabs")};this.anchors.bind(g.event+".tabs",
373
- function(){var p=this,q=c(this).closest("li"),r=f.panels.filter(":not(.ui-tabs-hide)"),s=c(f._sanitizeSelector(this.hash));if(q.hasClass("ui-tabs-selected")&&!g.collapsible||q.hasClass("ui-state-disabled")||q.hasClass("ui-state-processing")||f._trigger("select",null,f._ui(this,s[0]))===false){this.blur();return false}g.selected=f.anchors.index(this);f.abort();if(g.collapsible)if(q.hasClass("ui-tabs-selected")){g.selected=-1;g.cookie&&f._cookie(g.selected,g.cookie);f.element.queue("tabs",function(){o(p,
374
- r)}).dequeue("tabs");this.blur();return false}else if(!r.length){g.cookie&&f._cookie(g.selected,g.cookie);f.element.queue("tabs",function(){n(p,s)});f.load(f.anchors.index(this));this.blur();return false}g.cookie&&f._cookie(g.selected,g.cookie);if(s.length){r.length&&f.element.queue("tabs",function(){o(p,r)});f.element.queue("tabs",function(){n(p,s)});f.load(f.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";c.browser.msie&&this.blur()});this.anchors.bind("click.tabs",
375
- function(){return false})},destroy:function(){var e=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var a=c.data(this,"href.tabs");if(a)this.href=a;var f=c(this).unbind(".tabs");c.each(["href","load","cache"],function(g,i){f.removeData(i+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){c.data(this,
376
- "destroy.tabs")?c(this).remove():c(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")});e.cookie&&this._cookie(null,e.cookie);return this},add:function(e,a,f){if(f===undefined)f=this.anchors.length;var g=this,i=this.options;a=c(i.tabTemplate.replace(/#\{href\}/g,e).replace(/#\{label\}/g,a));e=!e.indexOf("#")?e.replace("#",""):this._tabId(c("a",a)[0]);a.addClass("ui-state-default ui-corner-top").data("destroy.tabs",
377
- true);var j=c("#"+e);j.length||(j=c(i.panelTemplate).attr("id",e).data("destroy.tabs",true));j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(f>=this.lis.length){a.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{a.insertBefore(this.lis[f]);j.insertBefore(this.panels[f])}i.disabled=c.map(i.disabled,function(m){return m>=f?++m:m});this._tabify();if(this.anchors.length==1){i.selected=0;a.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");
378
- this.element.queue("tabs",function(){g._trigger("show",null,g._ui(g.anchors[0],g.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[f],this.panels[f]));return this},remove:function(e){var a=this.options,f=this.lis.eq(e).remove(),g=this.panels.eq(e).remove();if(f.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(e+(e+1<this.anchors.length?1:-1));a.disabled=c.map(c.grep(a.disabled,function(i){return i!=e}),function(i){return i>=e?--i:i});this._tabify();this._trigger("remove",
379
- null,this._ui(f.find("a")[0],g[0]));return this},enable:function(e){var a=this.options;if(c.inArray(e,a.disabled)!=-1){this.lis.eq(e).removeClass("ui-state-disabled");a.disabled=c.grep(a.disabled,function(f){return f!=e});this._trigger("enable",null,this._ui(this.anchors[e],this.panels[e]));return this}},disable:function(e){var a=this.options;if(e!=a.selected){this.lis.eq(e).addClass("ui-state-disabled");a.disabled.push(e);a.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[e],this.panels[e]))}return this},
380
- select:function(e){if(typeof e=="string")e=this.anchors.index(this.anchors.filter("[href$="+e+"]"));else if(e===null)e=-1;if(e==-1&&this.options.collapsible)e=this.options.selected;this.anchors.eq(e).trigger(this.options.event+".tabs");return this},load:function(e){var a=this,f=this.options,g=this.anchors.eq(e)[0],i=c.data(g,"load.tabs");this.abort();if(!i||this.element.queue("tabs").length!==0&&c.data(g,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(e).addClass("ui-state-processing");
381
- if(f.spinner){var j=c("span",g);j.data("label.tabs",j.html()).html(f.spinner)}this.xhr=c.ajax(c.extend({},f.ajaxOptions,{url:i,success:function(m,k){c(a._sanitizeSelector(g.hash)).html(m);a._cleanup();f.cache&&c.data(g,"cache.tabs",true);a._trigger("load",null,a._ui(a.anchors[e],a.panels[e]));try{f.ajaxOptions.success(m,k)}catch(h){}},error:function(m,k){a._cleanup();a._trigger("load",null,a._ui(a.anchors[e],a.panels[e]));try{f.ajaxOptions.error(m,k,e,g)}catch(h){}}}));a.element.dequeue("tabs");return this}},
382
- abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(e,a){this.anchors.eq(e).removeData("cache.tabs").data("load.tabs",a);return this},length:function(){return this.anchors.length}});c.extend(c.ui.tabs,{version:"1.8"});c.extend(c.ui.tabs.prototype,{rotation:null,rotate:function(e,a){var f=this,g=this.options,i=f._rotate||(f._rotate=
383
- function(j){clearTimeout(f.rotation);f.rotation=setTimeout(function(){var m=g.selected;f.select(++m<f.anchors.length?m:0)},e);j&&j.stopPropagation()});a=f._unrotate||(f._unrotate=!a?function(j){j.clientX&&f.rotate(null)}:function(){t=g.selected;i()});if(e){this.element.bind("tabsshow",i);this.anchors.bind(g.event+".tabs",a);i()}else{clearTimeout(f.rotation);this.element.unbind("tabsshow",i);this.anchors.unbind(g.event+".tabs",a);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
329
+ _valueMin:function(){return 0},_valueMax:function(){return 100},_refreshValue:function(){var b=this.value();this.valueDiv[b===this._valueMax()?"addClass":"removeClass"]("ui-corner-right").width(b+"%");this.element.attr("aria-valuenow",b)}});c.extend(c.ui.progressbar,{version:"1.8.1"})})(jQuery);
330
+ jQuery.effects||function(c){function b(k){var h;if(k&&k.constructor==Array&&k.length==3)return k;if(h=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(k))return[parseInt(h[1],10),parseInt(h[2],10),parseInt(h[3],10)];if(h=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(k))return[parseFloat(h[1])*2.55,parseFloat(h[2])*2.55,parseFloat(h[3])*2.55];if(h=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(k))return[parseInt(h[1],
331
+ 16),parseInt(h[2],16),parseInt(h[3],16)];if(h=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(k))return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(k))return i.transparent;return i[c.trim(k).toLowerCase()]}function d(k,h){var l;do{l=c.curCSS(k,h);if(l!=""&&l!="transparent"||c.nodeName(k,"body"))break;h="backgroundColor"}while(k=k.parentNode);return b(l)}function e(){var k=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,
332
+ h={},l,n;if(k&&k.length&&k[0]&&k[k[0]])for(var o=k.length;o--;){l=k[o];if(typeof k[l]=="string"){n=l.replace(/\-(\w)/g,function(p,q){return q.toUpperCase()});h[n]=k[l]}}else for(l in k)if(typeof k[l]==="string")h[l]=k[l];return h}function a(k){var h,l;for(h in k){l=k[h];if(l==null||c.isFunction(l)||h in m||/scrollbar/.test(h)||!/color/i.test(h)&&isNaN(parseFloat(l)))delete k[h]}return k}function f(k,h){var l={_:0},n;for(n in h)if(k[n]!=h[n])l[n]=h[n];return l}function g(k,h,l,n){if(typeof k=="object"){n=
333
+ h;l=null;h=k;k=h.effect}if(c.isFunction(h)){n=h;l=null;h={}}if(c.isFunction(l)){n=l;l=null}if(typeof h=="number"||c.fx.speeds[h]){n=l;l=h;h={}}h=h||{};l=l||h.duration;l=c.fx.off?0:typeof l=="number"?l:c.fx.speeds[l]||c.fx.speeds._default;n=n||h.complete;return[k,h,l,n]}c.effects={};c.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(k,h){c.fx.step[h]=function(l){if(!l.colorInit){l.start=d(l.elem,h);l.end=b(l.end);l.colorInit=
334
+ true}l.elem.style[h]="rgb("+Math.max(Math.min(parseInt(l.pos*(l.end[0]-l.start[0])+l.start[0],10),255),0)+","+Math.max(Math.min(parseInt(l.pos*(l.end[1]-l.start[1])+l.start[1],10),255),0)+","+Math.max(Math.min(parseInt(l.pos*(l.end[2]-l.start[2])+l.start[2],10),255),0)+")"}});var i={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,
335
+ 183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,
336
+ 165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},j=["add","remove","toggle"],m={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};c.effects.animateClass=function(k,h,l,n){if(c.isFunction(l)){n=l;l=null}return this.each(function(){var o=c(this),p=o.attr("style")||" ",q=a(e.call(this)),r,s=o.attr("className");c.each(j,function(u,
337
+ v){k[v]&&o[v+"Class"](k[v])});r=a(e.call(this));o.attr("className",s);o.animate(f(q,r),h,l,function(){c.each(j,function(u,v){k[v]&&o[v+"Class"](k[v])});if(typeof o.attr("style")=="object"){o.attr("style").cssText="";o.attr("style").cssText=p}else o.attr("style",p);n&&n.apply(this,arguments)})})};c.fn.extend({_addClass:c.fn.addClass,addClass:function(k,h,l,n){return h?c.effects.animateClass.apply(this,[{add:k},h,l,n]):this._addClass(k)},_removeClass:c.fn.removeClass,removeClass:function(k,h,l,n){return h?
338
+ c.effects.animateClass.apply(this,[{remove:k},h,l,n]):this._removeClass(k)},_toggleClass:c.fn.toggleClass,toggleClass:function(k,h,l,n,o){return typeof h=="boolean"||h===undefined?l?c.effects.animateClass.apply(this,[h?{add:k}:{remove:k},l,n,o]):this._toggleClass(k,h):c.effects.animateClass.apply(this,[{toggle:k},h,l,n])},switchClass:function(k,h,l,n,o){return c.effects.animateClass.apply(this,[{add:h,remove:k},l,n,o])}});c.extend(c.effects,{version:"1.8.1",save:function(k,h){for(var l=0;l<h.length;l++)h[l]!==
339
+ null&&k.data("ec.storage."+h[l],k[0].style[h[l]])},restore:function(k,h){for(var l=0;l<h.length;l++)h[l]!==null&&k.css(h[l],k.data("ec.storage."+h[l]))},setMode:function(k,h){if(h=="toggle")h=k.is(":hidden")?"show":"hide";return h},getBaseline:function(k,h){var l;switch(k[0]){case "top":l=0;break;case "middle":l=0.5;break;case "bottom":l=1;break;default:l=k[0]/h.height}switch(k[1]){case "left":k=0;break;case "center":k=0.5;break;case "right":k=1;break;default:k=k[1]/h.width}return{x:k,y:l}},createWrapper:function(k){if(k.parent().is(".ui-effects-wrapper"))return k.parent();
340
+ var h={width:k.outerWidth(true),height:k.outerHeight(true),"float":k.css("float")},l=c("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});k.wrap(l);l=k.parent();if(k.css("position")=="static"){l.css({position:"relative"});k.css({position:"relative"})}else{c.extend(h,{position:k.css("position"),zIndex:k.css("z-index")});c.each(["top","left","bottom","right"],function(n,o){h[o]=k.css(o);if(isNaN(parseInt(h[o],10)))h[o]="auto"});
341
+ k.css({position:"relative",top:0,left:0})}return l.css(h).show()},removeWrapper:function(k){if(k.parent().is(".ui-effects-wrapper"))return k.parent().replaceWith(k);return k},setTransition:function(k,h,l,n){n=n||{};c.each(h,function(o,p){unit=k.cssUnit(p);if(unit[0]>0)n[p]=unit[0]*l+unit[1]});return n}});c.fn.extend({effect:function(k){var h=g.apply(this,arguments);h={options:h[1],duration:h[2],callback:h[3]};var l=c.effects[k];return l&&!c.fx.off?l.call(this,h):this},_show:c.fn.show,show:function(k){if(!k||
342
+ typeof k=="number"||c.fx.speeds[k])return this._show.apply(this,arguments);else{var h=g.apply(this,arguments);h[1].mode="show";return this.effect.apply(this,h)}},_hide:c.fn.hide,hide:function(k){if(!k||typeof k=="number"||c.fx.speeds[k])return this._hide.apply(this,arguments);else{var h=g.apply(this,arguments);h[1].mode="hide";return this.effect.apply(this,h)}},__toggle:c.fn.toggle,toggle:function(k){if(!k||typeof k=="number"||c.fx.speeds[k]||typeof k=="boolean"||c.isFunction(k))return this.__toggle.apply(this,
343
+ arguments);else{var h=g.apply(this,arguments);h[1].mode="toggle";return this.effect.apply(this,h)}},cssUnit:function(k){var h=this.css(k),l=[];c.each(["em","px","%","pt"],function(n,o){if(h.indexOf(o)>0)l=[parseFloat(h),o]});return l}});c.easing.jswing=c.easing.swing;c.extend(c.easing,{def:"easeOutQuad",swing:function(k,h,l,n,o){return c.easing[c.easing.def](k,h,l,n,o)},easeInQuad:function(k,h,l,n,o){return n*(h/=o)*h+l},easeOutQuad:function(k,h,l,n,o){return-n*(h/=o)*(h-2)+l},easeInOutQuad:function(k,
344
+ h,l,n,o){if((h/=o/2)<1)return n/2*h*h+l;return-n/2*(--h*(h-2)-1)+l},easeInCubic:function(k,h,l,n,o){return n*(h/=o)*h*h+l},easeOutCubic:function(k,h,l,n,o){return n*((h=h/o-1)*h*h+1)+l},easeInOutCubic:function(k,h,l,n,o){if((h/=o/2)<1)return n/2*h*h*h+l;return n/2*((h-=2)*h*h+2)+l},easeInQuart:function(k,h,l,n,o){return n*(h/=o)*h*h*h+l},easeOutQuart:function(k,h,l,n,o){return-n*((h=h/o-1)*h*h*h-1)+l},easeInOutQuart:function(k,h,l,n,o){if((h/=o/2)<1)return n/2*h*h*h*h+l;return-n/2*((h-=2)*h*h*h-2)+
345
+ l},easeInQuint:function(k,h,l,n,o){return n*(h/=o)*h*h*h*h+l},easeOutQuint:function(k,h,l,n,o){return n*((h=h/o-1)*h*h*h*h+1)+l},easeInOutQuint:function(k,h,l,n,o){if((h/=o/2)<1)return n/2*h*h*h*h*h+l;return n/2*((h-=2)*h*h*h*h+2)+l},easeInSine:function(k,h,l,n,o){return-n*Math.cos(h/o*(Math.PI/2))+n+l},easeOutSine:function(k,h,l,n,o){return n*Math.sin(h/o*(Math.PI/2))+l},easeInOutSine:function(k,h,l,n,o){return-n/2*(Math.cos(Math.PI*h/o)-1)+l},easeInExpo:function(k,h,l,n,o){return h==0?l:n*Math.pow(2,
346
+ 10*(h/o-1))+l},easeOutExpo:function(k,h,l,n,o){return h==o?l+n:n*(-Math.pow(2,-10*h/o)+1)+l},easeInOutExpo:function(k,h,l,n,o){if(h==0)return l;if(h==o)return l+n;if((h/=o/2)<1)return n/2*Math.pow(2,10*(h-1))+l;return n/2*(-Math.pow(2,-10*--h)+2)+l},easeInCirc:function(k,h,l,n,o){return-n*(Math.sqrt(1-(h/=o)*h)-1)+l},easeOutCirc:function(k,h,l,n,o){return n*Math.sqrt(1-(h=h/o-1)*h)+l},easeInOutCirc:function(k,h,l,n,o){if((h/=o/2)<1)return-n/2*(Math.sqrt(1-h*h)-1)+l;return n/2*(Math.sqrt(1-(h-=2)*
347
+ h)+1)+l},easeInElastic:function(k,h,l,n,o){k=1.70158;var p=0,q=n;if(h==0)return l;if((h/=o)==1)return l+n;p||(p=o*0.3);if(q<Math.abs(n)){q=n;k=p/4}else k=p/(2*Math.PI)*Math.asin(n/q);return-(q*Math.pow(2,10*(h-=1))*Math.sin((h*o-k)*2*Math.PI/p))+l},easeOutElastic:function(k,h,l,n,o){k=1.70158;var p=0,q=n;if(h==0)return l;if((h/=o)==1)return l+n;p||(p=o*0.3);if(q<Math.abs(n)){q=n;k=p/4}else k=p/(2*Math.PI)*Math.asin(n/q);return q*Math.pow(2,-10*h)*Math.sin((h*o-k)*2*Math.PI/p)+n+l},easeInOutElastic:function(k,
348
+ h,l,n,o){k=1.70158;var p=0,q=n;if(h==0)return l;if((h/=o/2)==2)return l+n;p||(p=o*0.3*1.5);if(q<Math.abs(n)){q=n;k=p/4}else k=p/(2*Math.PI)*Math.asin(n/q);if(h<1)return-0.5*q*Math.pow(2,10*(h-=1))*Math.sin((h*o-k)*2*Math.PI/p)+l;return q*Math.pow(2,-10*(h-=1))*Math.sin((h*o-k)*2*Math.PI/p)*0.5+n+l},easeInBack:function(k,h,l,n,o,p){if(p==undefined)p=1.70158;return n*(h/=o)*h*((p+1)*h-p)+l},easeOutBack:function(k,h,l,n,o,p){if(p==undefined)p=1.70158;return n*((h=h/o-1)*h*((p+1)*h+p)+1)+l},easeInOutBack:function(k,
349
+ h,l,n,o,p){if(p==undefined)p=1.70158;if((h/=o/2)<1)return n/2*h*h*(((p*=1.525)+1)*h-p)+l;return n/2*((h-=2)*h*(((p*=1.525)+1)*h+p)+2)+l},easeInBounce:function(k,h,l,n,o){return n-c.easing.easeOutBounce(k,o-h,0,n,o)+l},easeOutBounce:function(k,h,l,n,o){return(h/=o)<1/2.75?n*7.5625*h*h+l:h<2/2.75?n*(7.5625*(h-=1.5/2.75)*h+0.75)+l:h<2.5/2.75?n*(7.5625*(h-=2.25/2.75)*h+0.9375)+l:n*(7.5625*(h-=2.625/2.75)*h+0.984375)+l},easeInOutBounce:function(k,h,l,n,o){if(h<o/2)return c.easing.easeInBounce(k,h*2,0,
350
+ n,o)*0.5+l;return c.easing.easeOutBounce(k,h*2-o,0,n,o)*0.5+n*0.5+l}})}(jQuery);
351
+ (function(c){c.effects.blind=function(b){return this.queue(function(){var d=c(this),e=["position","top","left"],a=c.effects.setMode(d,b.options.mode||"hide"),f=b.options.direction||"vertical";c.effects.save(d,e);d.show();var g=c.effects.createWrapper(d).css({overflow:"hidden"}),i=f=="vertical"?"height":"width";f=f=="vertical"?g.height():g.width();a=="show"&&g.css(i,0);var j={};j[i]=a=="show"?f:0;g.animate(j,b.duration,b.options.easing,function(){a=="hide"&&d.hide();c.effects.restore(d,e);c.effects.removeWrapper(d);
352
+ b.callback&&b.callback.apply(d[0],arguments);d.dequeue()})})}})(jQuery);
353
+ (function(c){c.effects.bounce=function(b){return this.queue(function(){var d=c(this),e=["position","top","left"],a=c.effects.setMode(d,b.options.mode||"effect"),f=b.options.direction||"up",g=b.options.distance||20,i=b.options.times||5,j=b.duration||250;/show|hide/.test(a)&&e.push("opacity");c.effects.save(d,e);d.show();c.effects.createWrapper(d);var m=f=="up"||f=="down"?"top":"left";f=f=="up"||f=="left"?"pos":"neg";g=b.options.distance||(m=="top"?d.outerHeight({margin:true})/3:d.outerWidth({margin:true})/
354
+ 3);if(a=="show")d.css("opacity",0).css(m,f=="pos"?-g:g);if(a=="hide")g/=i*2;a!="hide"&&i--;if(a=="show"){var k={opacity:1};k[m]=(f=="pos"?"+=":"-=")+g;d.animate(k,j/2,b.options.easing);g/=2;i--}for(k=0;k<i;k++){var h={},l={};h[m]=(f=="pos"?"-=":"+=")+g;l[m]=(f=="pos"?"+=":"-=")+g;d.animate(h,j/2,b.options.easing).animate(l,j/2,b.options.easing);g=a=="hide"?g*2:g/2}if(a=="hide"){k={opacity:0};k[m]=(f=="pos"?"-=":"+=")+g;d.animate(k,j/2,b.options.easing,function(){d.hide();c.effects.restore(d,e);c.effects.removeWrapper(d);
355
+ b.callback&&b.callback.apply(this,arguments)})}else{h={};l={};h[m]=(f=="pos"?"-=":"+=")+g;l[m]=(f=="pos"?"+=":"-=")+g;d.animate(h,j/2,b.options.easing).animate(l,j/2,b.options.easing,function(){c.effects.restore(d,e);c.effects.removeWrapper(d);b.callback&&b.callback.apply(this,arguments)})}d.queue("fx",function(){d.dequeue()});d.dequeue()})}})(jQuery);
356
+ (function(c){c.effects.clip=function(b){return this.queue(function(){var d=c(this),e=["position","top","left","height","width"],a=c.effects.setMode(d,b.options.mode||"hide"),f=b.options.direction||"vertical";c.effects.save(d,e);d.show();var g=c.effects.createWrapper(d).css({overflow:"hidden"});g=d[0].tagName=="IMG"?g:d;var i={size:f=="vertical"?"height":"width",position:f=="vertical"?"top":"left"};f=f=="vertical"?g.height():g.width();if(a=="show"){g.css(i.size,0);g.css(i.position,f/2)}var j={};j[i.size]=
357
+ a=="show"?f:0;j[i.position]=a=="show"?0:f/2;g.animate(j,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){a=="hide"&&d.hide();c.effects.restore(d,e);c.effects.removeWrapper(d);b.callback&&b.callback.apply(d[0],arguments);d.dequeue()}})})}})(jQuery);
358
+ (function(c){c.effects.drop=function(b){return this.queue(function(){var d=c(this),e=["position","top","left","opacity"],a=c.effects.setMode(d,b.options.mode||"hide"),f=b.options.direction||"left";c.effects.save(d,e);d.show();c.effects.createWrapper(d);var g=f=="up"||f=="down"?"top":"left";f=f=="up"||f=="left"?"pos":"neg";var i=b.options.distance||(g=="top"?d.outerHeight({margin:true})/2:d.outerWidth({margin:true})/2);if(a=="show")d.css("opacity",0).css(g,f=="pos"?-i:i);var j={opacity:a=="show"?1:
359
+ 0};j[g]=(a=="show"?f=="pos"?"+=":"-=":f=="pos"?"-=":"+=")+i;d.animate(j,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){a=="hide"&&d.hide();c.effects.restore(d,e);c.effects.removeWrapper(d);b.callback&&b.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
360
+ (function(c){c.effects.explode=function(b){return this.queue(function(){var d=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3,e=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3;b.options.mode=b.options.mode=="toggle"?c(this).is(":visible")?"hide":"show":b.options.mode;var a=c(this).show().css("visibility","hidden"),f=a.offset();f.top-=parseInt(a.css("marginTop"),10)||0;f.left-=parseInt(a.css("marginLeft"),10)||0;for(var g=a.outerWidth(true),i=a.outerHeight(true),j=0;j<d;j++)for(var m=
361
+ 0;m<e;m++)a.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-m*(g/e),top:-j*(i/d)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g/e,height:i/d,left:f.left+m*(g/e)+(b.options.mode=="show"?(m-Math.floor(e/2))*(g/e):0),top:f.top+j*(i/d)+(b.options.mode=="show"?(j-Math.floor(d/2))*(i/d):0),opacity:b.options.mode=="show"?0:1}).animate({left:f.left+m*(g/e)+(b.options.mode=="show"?0:(m-Math.floor(e/2))*(g/e)),top:f.top+
362
+ j*(i/d)+(b.options.mode=="show"?0:(j-Math.floor(d/2))*(i/d)),opacity:b.options.mode=="show"?1:0},b.duration||500);setTimeout(function(){b.options.mode=="show"?a.css({visibility:"visible"}):a.css({visibility:"visible"}).hide();b.callback&&b.callback.apply(a[0]);a.dequeue();c("div.ui-effects-explode").remove()},b.duration||500)})}})(jQuery);
363
+ (function(c){c.effects.fold=function(b){return this.queue(function(){var d=c(this),e=["position","top","left"],a=c.effects.setMode(d,b.options.mode||"hide"),f=b.options.size||15,g=!!b.options.horizFirst,i=b.duration?b.duration/2:c.fx.speeds._default/2;c.effects.save(d,e);d.show();var j=c.effects.createWrapper(d).css({overflow:"hidden"}),m=a=="show"!=g,k=m?["width","height"]:["height","width"];m=m?[j.width(),j.height()]:[j.height(),j.width()];var h=/([0-9]+)%/.exec(f);if(h)f=parseInt(h[1],10)/100*
364
+ m[a=="hide"?0:1];if(a=="show")j.css(g?{height:0,width:f}:{height:f,width:0});g={};h={};g[k[0]]=a=="show"?m[0]:f;h[k[1]]=a=="show"?m[1]:0;j.animate(g,i,b.options.easing).animate(h,i,b.options.easing,function(){a=="hide"&&d.hide();c.effects.restore(d,e);c.effects.removeWrapper(d);b.callback&&b.callback.apply(d[0],arguments);d.dequeue()})})}})(jQuery);
365
+ (function(c){c.effects.highlight=function(b){return this.queue(function(){var d=c(this),e=["backgroundImage","backgroundColor","opacity"],a=c.effects.setMode(d,b.options.mode||"show"),f={backgroundColor:d.css("backgroundColor")};if(a=="hide")f.opacity=0;c.effects.save(d,e);d.show().css({backgroundImage:"none",backgroundColor:b.options.color||"#ffff99"}).animate(f,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){a=="hide"&&d.hide();c.effects.restore(d,e);a=="show"&&!c.support.opacity&&
366
+ this.style.removeAttribute("filter");b.callback&&b.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
367
+ (function(c){c.effects.pulsate=function(b){return this.queue(function(){var d=c(this),e=c.effects.setMode(d,b.options.mode||"show");times=(b.options.times||5)*2-1;duration=b.duration?b.duration/2:c.fx.speeds._default/2;isVisible=d.is(":visible");animateTo=0;if(!isVisible){d.css("opacity",0).show();animateTo=1}if(e=="hide"&&isVisible||e=="show"&&!isVisible)times--;for(e=0;e<times;e++){d.animate({opacity:animateTo},duration,b.options.easing);animateTo=(animateTo+1)%2}d.animate({opacity:animateTo},duration,
368
+ b.options.easing,function(){animateTo==0&&d.hide();b.callback&&b.callback.apply(this,arguments)});d.queue("fx",function(){d.dequeue()}).dequeue()})}})(jQuery);
369
+ (function(c){c.effects.puff=function(b){return this.queue(function(){var d=c(this),e=c.effects.setMode(d,b.options.mode||"hide"),a=parseInt(b.options.percent,10)||150,f=a/100,g={height:d.height(),width:d.width()};c.extend(b.options,{fade:true,mode:e,percent:e=="hide"?a:100,from:e=="hide"?g:{height:g.height*f,width:g.width*f}});d.effect("scale",b.options,b.duration,b.callback);d.dequeue()})};c.effects.scale=function(b){return this.queue(function(){var d=c(this),e=c.extend(true,{},b.options),a=c.effects.setMode(d,
370
+ b.options.mode||"effect"),f=parseInt(b.options.percent,10)||(parseInt(b.options.percent,10)==0?0:a=="hide"?0:100),g=b.options.direction||"both",i=b.options.origin;if(a!="effect"){e.origin=i||["middle","center"];e.restore=true}i={height:d.height(),width:d.width()};d.from=b.options.from||(a=="show"?{height:0,width:0}:i);f={y:g!="horizontal"?f/100:1,x:g!="vertical"?f/100:1};d.to={height:i.height*f.y,width:i.width*f.x};if(b.options.fade){if(a=="show"){d.from.opacity=0;d.to.opacity=1}if(a=="hide"){d.from.opacity=
371
+ 1;d.to.opacity=0}}e.from=d.from;e.to=d.to;e.mode=a;d.effect("size",e,b.duration,b.callback);d.dequeue()})};c.effects.size=function(b){return this.queue(function(){var d=c(this),e=["position","top","left","width","height","overflow","opacity"],a=["position","top","left","overflow","opacity"],f=["width","height","overflow"],g=["fontSize"],i=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],j=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],m=c.effects.setMode(d,
372
+ b.options.mode||"effect"),k=b.options.restore||false,h=b.options.scale||"both",l=b.options.origin,n={height:d.height(),width:d.width()};d.from=b.options.from||n;d.to=b.options.to||n;if(l){l=c.effects.getBaseline(l,n);d.from.top=(n.height-d.from.height)*l.y;d.from.left=(n.width-d.from.width)*l.x;d.to.top=(n.height-d.to.height)*l.y;d.to.left=(n.width-d.to.width)*l.x}var o={from:{y:d.from.height/n.height,x:d.from.width/n.width},to:{y:d.to.height/n.height,x:d.to.width/n.width}};if(h=="box"||h=="both"){if(o.from.y!=
373
+ o.to.y){e=e.concat(i);d.from=c.effects.setTransition(d,i,o.from.y,d.from);d.to=c.effects.setTransition(d,i,o.to.y,d.to)}if(o.from.x!=o.to.x){e=e.concat(j);d.from=c.effects.setTransition(d,j,o.from.x,d.from);d.to=c.effects.setTransition(d,j,o.to.x,d.to)}}if(h=="content"||h=="both")if(o.from.y!=o.to.y){e=e.concat(g);d.from=c.effects.setTransition(d,g,o.from.y,d.from);d.to=c.effects.setTransition(d,g,o.to.y,d.to)}c.effects.save(d,k?e:a);d.show();c.effects.createWrapper(d);d.css("overflow","hidden").css(d.from);
374
+ if(h=="content"||h=="both"){i=i.concat(["marginTop","marginBottom"]).concat(g);j=j.concat(["marginLeft","marginRight"]);f=e.concat(i).concat(j);d.find("*[width]").each(function(){child=c(this);k&&c.effects.save(child,f);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=c.effects.setTransition(child,i,o.from.y,child.from);child.to=c.effects.setTransition(child,
375
+ i,o.to.y,child.to)}if(o.from.x!=o.to.x){child.from=c.effects.setTransition(child,j,o.from.x,child.from);child.to=c.effects.setTransition(child,j,o.to.x,child.to)}child.css(child.from);child.animate(child.to,b.duration,b.options.easing,function(){k&&c.effects.restore(child,f)})})}d.animate(d.to,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){d.to.opacity===0&&d.css("opacity",d.from.opacity);m=="hide"&&d.hide();c.effects.restore(d,k?e:a);c.effects.removeWrapper(d);b.callback&&
376
+ b.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
377
+ (function(c){c.effects.shake=function(b){return this.queue(function(){var d=c(this),e=["position","top","left"];c.effects.setMode(d,b.options.mode||"effect");var a=b.options.direction||"left",f=b.options.distance||20,g=b.options.times||3,i=b.duration||b.options.duration||140;c.effects.save(d,e);d.show();c.effects.createWrapper(d);var j=a=="up"||a=="down"?"top":"left",m=a=="up"||a=="left"?"pos":"neg";a={};var k={},h={};a[j]=(m=="pos"?"-=":"+=")+f;k[j]=(m=="pos"?"+=":"-=")+f*2;h[j]=(m=="pos"?"-=":"+=")+
378
+ f*2;d.animate(a,i,b.options.easing);for(f=1;f<g;f++)d.animate(k,i,b.options.easing).animate(h,i,b.options.easing);d.animate(k,i,b.options.easing).animate(a,i/2,b.options.easing,function(){c.effects.restore(d,e);c.effects.removeWrapper(d);b.callback&&b.callback.apply(this,arguments)});d.queue("fx",function(){d.dequeue()});d.dequeue()})}})(jQuery);
379
+ (function(c){c.effects.slide=function(b){return this.queue(function(){var d=c(this),e=["position","top","left"],a=c.effects.setMode(d,b.options.mode||"show"),f=b.options.direction||"left";c.effects.save(d,e);d.show();c.effects.createWrapper(d).css({overflow:"hidden"});var g=f=="up"||f=="down"?"top":"left";f=f=="up"||f=="left"?"pos":"neg";var i=b.options.distance||(g=="top"?d.outerHeight({margin:true}):d.outerWidth({margin:true}));if(a=="show")d.css(g,f=="pos"?-i:i);var j={};j[g]=(a=="show"?f=="pos"?
380
+ "+=":"-=":f=="pos"?"-=":"+=")+i;d.animate(j,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){a=="hide"&&d.hide();c.effects.restore(d,e);c.effects.removeWrapper(d);b.callback&&b.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
381
+ (function(c){c.effects.transfer=function(b){return this.queue(function(){var d=c(this),e=c(b.options.to),a=e.offset();e={top:a.top,left:a.left,height:e.innerHeight(),width:e.innerWidth()};a=d.offset();var f=c('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(b.options.className).css({top:a.top,left:a.left,height:d.innerHeight(),width:d.innerWidth(),position:"absolute"}).animate(e,b.duration,b.options.easing,function(){f.remove();b.callback&&b.callback.apply(d[0],arguments);
382
+ d.dequeue()})})}})(jQuery);
384
383
  (function(c){c.effects.blind=function(b){return this.queue(function(){var d=c(this),e=["position","top","left"],a=c.effects.setMode(d,b.options.mode||"hide"),f=b.options.direction||"vertical";c.effects.save(d,e);d.show();var g=c.effects.createWrapper(d).css({overflow:"hidden"}),i=f=="vertical"?"height":"width";f=f=="vertical"?g.height():g.width();a=="show"&&g.css(i,0);var j={};j[i]=a=="show"?f:0;g.animate(j,b.duration,b.options.easing,function(){a=="hide"&&d.hide();c.effects.restore(d,e);c.effects.removeWrapper(d);
385
384
  b.callback&&b.callback.apply(d[0],arguments);d.dequeue()})})}})(jQuery);
386
385
  (function(c){c.effects.bounce=function(b){return this.queue(function(){var d=c(this),e=["position","top","left"],a=c.effects.setMode(d,b.options.mode||"effect"),f=b.options.direction||"up",g=b.options.distance||20,i=b.options.times||5,j=b.duration||250;/show|hide/.test(a)&&e.push("opacity");c.effects.save(d,e);d.show();c.effects.createWrapper(d);var m=f=="up"||f=="down"?"top":"left";f=f=="up"||f=="left"?"pos":"neg";g=b.options.distance||(m=="top"?d.outerHeight({margin:true})/3:d.outerWidth({margin:true})/
@@ -396,7 +395,7 @@ true}l.elem.style[h]="rgb("+Math.max(Math.min(parseInt(l.pos*(l.end[0]-l.start[0
396
395
  183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,
397
396
  165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},j=["add","remove","toggle"],m={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};c.effects.animateClass=function(k,h,l,n){if(c.isFunction(l)){n=l;l=null}return this.each(function(){var o=c(this),p=o.attr("style")||" ",q=a(e.call(this)),r,s=o.attr("className");c.each(j,function(u,
398
397
  v){k[v]&&o[v+"Class"](k[v])});r=a(e.call(this));o.attr("className",s);o.animate(f(q,r),h,l,function(){c.each(j,function(u,v){k[v]&&o[v+"Class"](k[v])});if(typeof o.attr("style")=="object"){o.attr("style").cssText="";o.attr("style").cssText=p}else o.attr("style",p);n&&n.apply(this,arguments)})})};c.fn.extend({_addClass:c.fn.addClass,addClass:function(k,h,l,n){return h?c.effects.animateClass.apply(this,[{add:k},h,l,n]):this._addClass(k)},_removeClass:c.fn.removeClass,removeClass:function(k,h,l,n){return h?
399
- c.effects.animateClass.apply(this,[{remove:k},h,l,n]):this._removeClass(k)},_toggleClass:c.fn.toggleClass,toggleClass:function(k,h,l,n,o){return typeof h=="boolean"||h===undefined?l?c.effects.animateClass.apply(this,[h?{add:k}:{remove:k},l,n,o]):this._toggleClass(k,h):c.effects.animateClass.apply(this,[{toggle:k},h,l,n])},switchClass:function(k,h,l,n,o){return c.effects.animateClass.apply(this,[{add:h,remove:k},l,n,o])}});c.extend(c.effects,{version:"1.8",save:function(k,h){for(var l=0;l<h.length;l++)h[l]!==
398
+ c.effects.animateClass.apply(this,[{remove:k},h,l,n]):this._removeClass(k)},_toggleClass:c.fn.toggleClass,toggleClass:function(k,h,l,n,o){return typeof h=="boolean"||h===undefined?l?c.effects.animateClass.apply(this,[h?{add:k}:{remove:k},l,n,o]):this._toggleClass(k,h):c.effects.animateClass.apply(this,[{toggle:k},h,l,n])},switchClass:function(k,h,l,n,o){return c.effects.animateClass.apply(this,[{add:h,remove:k},l,n,o])}});c.extend(c.effects,{version:"1.8.1",save:function(k,h){for(var l=0;l<h.length;l++)h[l]!==
400
399
  null&&k.data("ec.storage."+h[l],k[0].style[h[l]])},restore:function(k,h){for(var l=0;l<h.length;l++)h[l]!==null&&k.css(h[l],k.data("ec.storage."+h[l]))},setMode:function(k,h){if(h=="toggle")h=k.is(":hidden")?"show":"hide";return h},getBaseline:function(k,h){var l;switch(k[0]){case "top":l=0;break;case "middle":l=0.5;break;case "bottom":l=1;break;default:l=k[0]/h.height}switch(k[1]){case "left":k=0;break;case "center":k=0.5;break;case "right":k=1;break;default:k=k[1]/h.width}return{x:k,y:l}},createWrapper:function(k){if(k.parent().is(".ui-effects-wrapper"))return k.parent();
401
400
  var h={width:k.outerWidth(true),height:k.outerHeight(true),"float":k.css("float")},l=c("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});k.wrap(l);l=k.parent();if(k.css("position")=="static"){l.css({position:"relative"});k.css({position:"relative"})}else{c.extend(h,{position:k.css("position"),zIndex:k.css("z-index")});c.each(["top","left","bottom","right"],function(n,o){h[o]=k.css(o);if(isNaN(parseInt(h[o],10)))h[o]="auto"});
402
401
  k.css({position:"relative",top:0,left:0})}return l.css(h).show()},removeWrapper:function(k){if(k.parent().is(".ui-effects-wrapper"))return k.parent().replaceWith(k);return k},setTransition:function(k,h,l,n){n=n||{};c.each(h,function(o,p){unit=k.cssUnit(p);if(unit[0]>0)n[p]=unit[0]*l+unit[1]});return n}});c.fn.extend({effect:function(k){var h=g.apply(this,arguments);h={options:h[1],duration:h[2],callback:h[3]};var l=c.effects[k];return l&&!c.fx.off?l.call(this,h):this},_show:c.fn.show,show:function(k){if(!k||
@@ -437,10 +436,10 @@ f*2;d.animate(a,i,b.options.easing);for(f=1;f<g;f++)d.animate(k,i,b.options.easi
437
436
  d.dequeue()})})}})(jQuery);
438
437
  (function(c){c.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},_create:function(){var b=this.options,d=this;this.running=0;this.element.addClass("ui-accordion ui-widget ui-helper-reset");this.element[0].nodeName==
439
438
  "UL"&&this.element.children("li").addClass("ui-accordion-li-fix");this.headers=this.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){c(this).removeClass("ui-state-focus")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
440
- if(b.navigation){var e=this.element.find("a").filter(b.navigationFilter);if(e.length){var a=e.closest(".ui-accordion-header");this.active=a.length?a:e.closest(".ui-accordion-content").prev()}}this.active=this._findActive(this.active||b.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");this._createIcons();c.browser.msie&&this.element.find("a").css("zoom","1");this.resize();
441
- this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(f){return d._keydown(f)}).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");c.browser.safari||this.headers.find("a").attr("tabIndex","-1");b.event&&this.headers.bind(b.event+".accordion",function(f){d._clickHandler.call(d,
442
- f,this);f.preventDefault()})},_createIcons:function(){var b=this.options;if(b.icons){c("<span/>").addClass("ui-icon "+b.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(b.icons.header).toggleClass(b.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var b=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");
443
- 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._destroyIcons();var d=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(b.autoHeight||b.fillHeight)d.css("height",
439
+ if(b.navigation){var e=this.element.find("a").filter(b.navigationFilter);if(e.length){var a=e.closest(".ui-accordion-header");this.active=a.length?a:e.closest(".ui-accordion-content").prev()}}this.active=this._findActive(this.active||b.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");this._createIcons();this.resize();this.element.attr("role","tablist");this.headers.attr("role",
440
+ "tab").bind("keydown",function(f){return d._keydown(f)}).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");c.browser.safari||this.headers.find("a").attr("tabIndex","-1");b.event&&this.headers.bind(b.event+".accordion",function(f){d._clickHandler.call(d,f,this);f.preventDefault()})},_createIcons:function(){var b=
441
+ this.options;if(b.icons){c("<span/>").addClass("ui-icon "+b.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(b.icons.header).toggleClass(b.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var b=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");
442
+ 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._destroyIcons();var d=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(b.autoHeight||b.fillHeight)d.css("height",
444
443
  "");return this},_setOption:function(b,d){c.Widget.prototype._setOption.apply(this,arguments);b=="active"&&this.activate(d);if(b=="icons"){this._destroyIcons();d&&this._createIcons()}},_keydown:function(b){var d=c.ui.keyCode;if(!(this.options.disabled||b.altKey||b.ctrlKey)){var e=this.headers.length,a=this.headers.index(b.target),f=false;switch(b.keyCode){case d.RIGHT:case d.DOWN:f=this.headers[(a+1)%e];break;case d.LEFT:case d.UP:f=this.headers[(a-1+e)%e];break;case d.SPACE:case d.ENTER:this._clickHandler({target:b.target},
445
444
  b.target);b.preventDefault()}if(f){c(b.target).attr("tabIndex","-1");c(f).attr("tabIndex","0");f.focus();return false}return true}},resize:function(){var b=this.options,d;if(b.fillSpace){if(c.browser.msie){var e=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",e);this.headers.each(function(){d-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,
446
445
  d-c(this).innerHeight()+c(this).height()))}).css("overflow","auto")}else if(b.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,c(this).height())}).height(d)}return this},activate:function(b){this.options.active=b;b=this._findActive(b)[0];this._clickHandler({target:b},b);return this},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,d){var e=
@@ -449,23 +448,23 @@ b.next().addClass("ui-accordion-content-active")}g=b.next();a=this.active.next()
449
448
  this.active.next().addClass("ui-accordion-content-active");var a=this.active.next(),f={options:e,newHeader:c([]),oldHeader:e.active,newContent:c([]),oldContent:a},g=this.active=c([]);this._toggle(g,a,f)}},_toggle:function(b,d,e,a,f){var g=this.options,i=this;this.toShow=b;this.toHide=d;this.data=e;var j=function(){if(i)return i._completed.apply(i,arguments)};this._trigger("changestart",null,this.data);this.running=d.size()===0?b.size():d.size();if(g.animated){e={};e=g.collapsible&&a?{toShow:c([]),
450
449
  toHide:d,complete:j,down:f,autoHeight:g.autoHeight||g.fillSpace}:{toShow:b,toHide:d,complete:j,down:f,autoHeight:g.autoHeight||g.fillSpace};if(!g.proxied)g.proxied=g.animated;if(!g.proxiedDuration)g.proxiedDuration=g.duration;g.animated=c.isFunction(g.proxied)?g.proxied(e):g.proxied;g.duration=c.isFunction(g.proxiedDuration)?g.proxiedDuration(e):g.proxiedDuration;a=c.ui.accordion.animations;var m=g.duration,k=g.animated;if(k&&!a[k]&&!c.easing[k])k="slide";a[k]||(a[k]=function(h){this.slide(h,{easing:k,
451
450
  duration:m||700})});a[k](e)}else{if(g.collapsible&&a)b.toggle();else{d.hide();b.show()}j(true)}d.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();b.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(b){var d=this.options;this.running=b?0:--this.running;if(!this.running){d.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,
452
- {version:"1.8",animations:{slide:function(b,d){b=c.extend({easing:"swing",duration:300},b,d);if(b.toHide.size())if(b.toShow.size()){var e=b.toShow.css("overflow"),a=0,f={},g={},i;d=b.toShow;i=d[0].style.width;d.width(parseInt(d.parent().width(),10)-parseInt(d.css("paddingLeft"),10)-parseInt(d.css("paddingRight"),10)-(parseInt(d.css("borderLeftWidth"),10)||0)-(parseInt(d.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,m){g[m]="hide";j=(""+c.css(b.toShow[0],
451
+ {version:"1.8.1",animations:{slide:function(b,d){b=c.extend({easing:"swing",duration:300},b,d);if(b.toHide.size())if(b.toShow.size()){var e=b.toShow.css("overflow"),a=0,f={},g={},i;d=b.toShow;i=d[0].style.width;d.width(parseInt(d.parent().width(),10)-parseInt(d.css("paddingLeft"),10)-parseInt(d.css("paddingRight"),10)-(parseInt(d.css("borderLeftWidth"),10)||0)-(parseInt(d.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,m){g[m]="hide";j=(""+c.css(b.toShow[0],
453
452
  m)).match(/^([\d+-.]+)(.*)$/);f[m]={value:j[1],unit:j[2]||"px"}});b.toShow.css({height:0,overflow:"hidden"}).show();b.toHide.filter(":hidden").each(b.complete).end().filter(":visible").animate(g,{step:function(j,m){if(m.prop=="height")a=m.end-m.start===0?0:(m.now-m.start)/(m.end-m.start);b.toShow[0].style[m.prop]=a*f[m.prop].value+f[m.prop].unit},duration:b.duration,easing:b.easing,complete:function(){b.autoHeight||b.toShow.css("height","");b.toShow.css("width",i);b.toShow.css({overflow:e});b.complete()}})}else b.toHide.animate({height:"hide"},
454
453
  b);else b.toShow.animate({height:"show"},b)},bounceslide:function(b){this.slide(b,{easing:b.down?"easeOutBounce":"swing",duration:b.down?1E3:200})}}})})(jQuery);
455
454
  (function(c){c.widget("ui.autocomplete",{options:{minLength:1,delay:300},_create:function(){var b=this,d=this.element[0].ownerDocument;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(e){var a=c.ui.keyCode;switch(e.keyCode){case a.PAGE_UP:b._move("previousPage",e);break;case a.PAGE_DOWN:b._move("nextPage",e);break;case a.UP:b._move("previous",e);e.preventDefault();
456
- break;case a.DOWN:b._move("next",e);e.preventDefault();break;case a.ENTER:b.menu.active&&e.preventDefault();case a.TAB:if(!b.menu.active)return;b.menu.select();break;case a.ESCAPE:b.element.val(b.term);b.close(e);break;case a.SHIFT:case a.CONTROL:case 18:break;default:clearTimeout(b.searching);b.searching=setTimeout(function(){b.search(null,e)},b.options.delay);break}}).bind("focus.autocomplete",function(){b.previous=b.element.val()}).bind("blur.autocomplete",function(e){clearTimeout(b.searching);
457
- b.closing=setTimeout(function(){b.close(e)},150)});this._initSource();this.response=function(){return b._response.apply(b,arguments)};this.menu=c("<ul></ul>").addClass("ui-autocomplete").appendTo("body",d).menu({focus:function(e,a){e=a.item.data("item.autocomplete");false!==b._trigger("focus",null,{item:e})&&b.element.val(e.value)},selected:function(e,a){a=a.item.data("item.autocomplete");false!==b._trigger("select",e,{item:a})&&b.element.val(a.value);b.close(e);b.previous=b.element.val();b.element[0]!==
458
- d.activeElement&&b.element.focus()},blur:function(){b.menu.element.is(":visible")&&b.element.val(b.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");c.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input ui-widget ui-widget-content").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();c.Widget.prototype.destroy.call(this)},_setOption:function(b){c.Widget.prototype._setOption.apply(this,
459
- arguments);b==="source"&&this._initSource()},_initSource:function(){var b,d;if(c.isArray(this.options.source)){b=this.options.source;this.source=function(e,a){var f=new RegExp(c.ui.autocomplete.escapeRegex(e.term),"i");a(c.grep(b,function(g){return f.test(g.label||g.value||g)}))}}else if(typeof this.options.source==="string"){d=this.options.source;this.source=function(e,a){c.getJSON(d,e,a)}}else this.source=this.options.source},search:function(b,d){b=b!=null?b:this.element.val();if(b.length<this.options.minLength)return this.close(d);
460
- clearTimeout(this.closing);if(this._trigger("search")!==false)return this._search(b)},_search:function(b){this.term=this.element.addClass("ui-autocomplete-loading").val();this.source({term:b},this.response)},_response:function(b){if(b.length){b=this._normalize(b);this._suggest(b);this._trigger("open")}else this.close();this.element.removeClass("ui-autocomplete-loading")},close:function(b){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this._trigger("close",b);this.menu.element.hide();
461
- this.menu.deactivate()}this.previous!==this.element.val()&&this._trigger("change",b)},_normalize:function(b){if(b.length&&b[0].label&&b[0].value)return b;return c.map(b,function(d){if(typeof d==="string")return{label:d,value:d};return c.extend({label:d.label||d.value,value:d.value||d.label},d)})},_suggest:function(b){var d=this.menu.element.empty().zIndex(this.element.zIndex()+1),e;this._renderMenu(d,b);this.menu.deactivate();this.menu.refresh();this.menu.element.show().position({my:"left top",at:"left bottom",
462
- of:this.element,collision:"none"});b=d.width("").width();e=this.element.width();d.width(Math.max(b,e))},_renderMenu:function(b,d){var e=this;c.each(d,function(a,f){e._renderItem(b,f)})},_renderItem:function(b,d){return c("<li></li>").data("item.autocomplete",d).append("<a>"+d.label+"</a>").appendTo(b)},_move:function(b,d){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(b)||this.menu.last()&&/^next/.test(b)){this.element.val(this.term);this.menu.deactivate()}else this.menu[b]();
463
- else this.search(null,d)},widget:function(){return this.menu.element}});c.extend(c.ui.autocomplete,{escapeRegex:function(b){return b.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")}})})(jQuery);
464
- (function(c){c.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(d){d.preventDefault();b.select()});this.refresh()},refresh:function(){var b=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(){b.activate(c(this).parent())}).mouseleave(function(){b.deactivate()})},
465
- activate:function(b){this.deactivate();if(this.hasScroll()){var d=b.offset().top-this.element.offset().top,e=this.element.attr("scrollTop"),a=this.element.height();if(d<0)this.element.attr("scrollTop",e+d);else d>a&&this.element.attr("scrollTop",e+d-a+b.height())}this.active=b.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",null,{item:b})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
466
- this._trigger("blur");this.active=null}},next:function(){this.move("next","li:first")},previous:function(){this.move("prev","li:last")},first:function(){return this.active&&!this.active.prev().length},last:function(){return this.active&&!this.active.next().length},move:function(b,d){if(this.active){b=this.active[b]();b.length?this.activate(b):this.activate(this.element.children(d))}else this.activate(this.element.children(d))},nextPage:function(){if(this.hasScroll())if(!this.active||this.last())this.activate(this.element.children(":first"));
467
- else{var b=this.active.offset().top,d=this.element.height(),e=this.element.children("li").filter(function(){var a=c(this).offset().top-b-d+c(this).height();return a<10&&a>-10});e.length||(e=this.element.children(":last"));this.activate(e)}else this.activate(this.element.children(!this.active||this.last()?":first":":last"))},previousPage:function(){if(this.hasScroll())if(!this.active||this.first())this.activate(this.element.children(":last"));else{var b=this.active.offset().top,d=this.element.height();
468
- result=this.element.children("li").filter(function(){var e=c(this).offset().top-b+d-c(this).height();return e<10&&e>-10});result.length||(result=this.element.children(":first"));this.activate(result)}else this.activate(this.element.children(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(){this._trigger("selected",null,{item:this.active})}})})(jQuery);
455
+ break;case a.DOWN:b._move("next",e);e.preventDefault();break;case a.ENTER:b.menu.active&&e.preventDefault();case a.TAB:if(!b.menu.active)return;b.menu.select(e);break;case a.ESCAPE:b.element.val(b.term);b.close(e);break;case a.LEFT:case a.RIGHT:case a.SHIFT:case a.CONTROL:case a.ALT:break;default:clearTimeout(b.searching);b.searching=setTimeout(function(){b.search(null,e)},b.options.delay);break}}).bind("focus.autocomplete",function(){b.selectedItem=null;b.previous=b.element.val()}).bind("blur.autocomplete",
456
+ function(e){clearTimeout(b.searching);b.closing=setTimeout(function(){b.close(e);b._change(e)},150)});this._initSource();this.response=function(){return b._response.apply(b,arguments)};this.menu=c("<ul></ul>").addClass("ui-autocomplete").appendTo("body",d).menu({focus:function(e,a){a=a.item.data("item.autocomplete");false!==b._trigger("focus",null,{item:a})&&/^key/.test(e.originalEvent.type)&&b.element.val(a.value)},selected:function(e,a){a=a.item.data("item.autocomplete");false!==b._trigger("select",
457
+ e,{item:a})&&b.element.val(a.value);b.close(e);e=b.previous;if(b.element[0]!==d.activeElement){b.element.focus();b.previous=e}b.selectedItem=a},blur:function(){b.menu.element.is(":visible")&&b.element.val(b.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");c.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");
458
+ this.menu.element.remove();c.Widget.prototype.destroy.call(this)},_setOption:function(b){c.Widget.prototype._setOption.apply(this,arguments);b==="source"&&this._initSource()},_initSource:function(){var b,d;if(c.isArray(this.options.source)){b=this.options.source;this.source=function(e,a){a(c.ui.autocomplete.filter(b,e.term))}}else if(typeof this.options.source==="string"){d=this.options.source;this.source=function(e,a){c.getJSON(d,e,a)}}else this.source=this.options.source},search:function(b,d){b=
459
+ b!=null?b:this.element.val();if(b.length<this.options.minLength)return this.close(d);clearTimeout(this.closing);if(this._trigger("search")!==false)return this._search(b)},_search:function(b){this.term=this.element.addClass("ui-autocomplete-loading").val();this.source({term:b},this.response)},_response:function(b){if(b.length){b=this._normalize(b);this._suggest(b);this._trigger("open")}else this.close();this.element.removeClass("ui-autocomplete-loading")},close:function(b){clearTimeout(this.closing);
460
+ if(this.menu.element.is(":visible")){this._trigger("close",b);this.menu.element.hide();this.menu.deactivate()}},_change:function(b){this.previous!==this.element.val()&&this._trigger("change",b,{item:this.selectedItem})},_normalize:function(b){if(b.length&&b[0].label&&b[0].value)return b;return c.map(b,function(d){if(typeof d==="string")return{label:d,value:d};return c.extend({label:d.label||d.value,value:d.value||d.label},d)})},_suggest:function(b){var d=this.menu.element.empty().zIndex(this.element.zIndex()+
461
+ 1),e;this._renderMenu(d,b);this.menu.deactivate();this.menu.refresh();this.menu.element.show().position({my:"left top",at:"left bottom",of:this.element,collision:"none"});b=d.width("").width();e=this.element.width();d.width(Math.max(b,e))},_renderMenu:function(b,d){var e=this;c.each(d,function(a,f){e._renderItem(b,f)})},_renderItem:function(b,d){return c("<li></li>").data("item.autocomplete",d).append("<a>"+d.label+"</a>").appendTo(b)},_move:function(b,d){if(this.menu.element.is(":visible"))if(this.menu.first()&&
462
+ /^previous/.test(b)||this.menu.last()&&/^next/.test(b)){this.element.val(this.term);this.menu.deactivate()}else this.menu[b](d);else this.search(null,d)},widget:function(){return this.menu.element}});c.extend(c.ui.autocomplete,{escapeRegex:function(b){return b.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")},filter:function(b,d){var e=new RegExp(c.ui.autocomplete.escapeRegex(d),"i");return c.grep(b,function(a){return e.test(a.label||a.value||a)})}})})(jQuery);
463
+ (function(c){c.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(d){if(c(d.target).closest(".ui-menu-item a").length){d.preventDefault();b.select(d)}});this.refresh()},refresh:function(){var b=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
464
+ -1).mouseenter(function(d){b.activate(d,c(this).parent())}).mouseleave(function(){b.deactivate()})},activate:function(b,d){this.deactivate();if(this.hasScroll()){var e=d.offset().top-this.element.offset().top,a=this.element.attr("scrollTop"),f=this.element.height();if(e<0)this.element.attr("scrollTop",a+e);else e>f&&this.element.attr("scrollTop",a+e-f+d.height())}this.active=d.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",b,{item:d})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
465
+ this._trigger("blur");this.active=null}},next:function(b){this.move("next",".ui-menu-item:first",b)},previous:function(b){this.move("prev",".ui-menu-item:last",b)},first:function(){return this.active&&!this.active.prev().length},last:function(){return this.active&&!this.active.next().length},move:function(b,d,e){if(this.active){b=this.active[b+"All"](".ui-menu-item").eq(0);b.length?this.activate(e,b):this.activate(e,this.element.children(d))}else this.activate(e,this.element.children(d))},nextPage:function(b){if(this.hasScroll())if(!this.active||
466
+ this.last())this.activate(b,this.element.children(":first"));else{var d=this.active.offset().top,e=this.element.height(),a=this.element.children("li").filter(function(){var f=c(this).offset().top-d-e+c(this).height();return f<10&&f>-10});a.length||(a=this.element.children(":last"));this.activate(b,a)}else this.activate(b,this.element.children(!this.active||this.last()?":first":":last"))},previousPage:function(b){if(this.hasScroll())if(!this.active||this.first())this.activate(b,this.element.children(":last"));
467
+ else{var d=this.active.offset().top,e=this.element.height();result=this.element.children("li").filter(function(){var a=c(this).offset().top-d+e-c(this).height();return a<10&&a>-10});result.length||(result=this.element.children(":first"));this.activate(b,result)}else this.activate(b,this.element.children(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(b){this._trigger("selected",b,{item:this.active})}})})(jQuery);
469
468
  (function(c){var b,d=function(a){c(":ui-button",a.target.form).each(function(){var f=c(this).data("button");setTimeout(function(){f.refresh()},1)})},e=function(a){var f=a.name,g=a.form,i=c([]);if(f)i=g?c(g).find("[name='"+f+"']"):c("[name='"+f+"']",a.ownerDocument).filter(function(){return!this.form});return i};c.widget("ui.button",{options:{text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",d);this._determineButtonType();
470
469
  this.hasTitle=!!this.buttonElement.attr("title");var a=this,f=this.options,g=this.type==="checkbox"||this.type==="radio",i="ui-state-hover"+(!g?" ui-state-active":"");if(f.label===null)f.label=this.buttonElement.html();if(this.element.is(":disabled"))f.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!f.disabled){c(this).addClass("ui-state-hover");this===b&&c(this).addClass("ui-state-active")}}).bind("mouseleave.button",
471
470
  function(){f.disabled||c(this).removeClass(i)}).bind("focus.button",function(){c(this).addClass("ui-state-focus")}).bind("blur.button",function(){c(this).removeClass("ui-state-focus")});g&&this.element.bind("change.button",function(){a.refresh()});if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(f.disabled)return false;c(this).toggleClass("ui-state-active");a.buttonElement.attr("aria-pressed",a.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",
@@ -477,17 +476,17 @@ true):c(this).button("widget").removeClass("ui-state-active").attr("aria-pressed
477
476
  g=this.options.icons,i=g.primary&&g.secondary;if(g.primary||g.secondary){a.addClass("ui-button-text-icon"+(i?"s":""));g.primary&&a.prepend("<span class='ui-button-icon-primary ui-icon "+g.primary+"'></span>");g.secondary&&a.append("<span class='ui-button-icon-secondary ui-icon "+g.secondary+"'></span>");if(!this.options.text){a.addClass(i?"ui-button-icons-only":"ui-button-icon-only").removeClass("ui-button-text-icons ui-button-text-icon");this.hasTitle||a.attr("title",f)}}else a.addClass("ui-button-text-only")}}});
478
477
  c.widget("ui.buttonset",{_create:function(){this.element.addClass("ui-buttonset");this._init()},_init:function(){this.refresh()},_setOption:function(a,f){a==="disabled"&&this.buttons.button("option",a,f);c.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(":button, :submit, :reset, :checkbox, :radio, a, :data(button)").filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return c(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end()},
479
478
  destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return c(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");c.Widget.prototype.destroy.call(this)}})})(jQuery);
480
- jQuery.ui||function(c){c.ui={version:"1.8",plugin:{add:function(b,d,e){b=c.ui[b].prototype;for(var a in e){b.plugins[a]=b.plugins[a]||[];b.plugins[a].push([d,e[a]])}},call:function(b,d,e){if((d=b.plugins[d])&&b.element[0].parentNode)for(var a=0;a<d.length;a++)b.options[d[a][0]]&&d[a][1].apply(b.element,e)}},contains:function(b,d){return document.compareDocumentPosition?b.compareDocumentPosition(d)&16:b!==d&&b.contains(d)},hasScroll:function(b,d){if(c(b).css("overflow")=="hidden")return false;d=d&&
481
- d=="left"?"scrollLeft":"scrollTop";var e=false;if(b[d]>0)return true;b[d]=1;e=b[d]>0;b[d]=0;return e},isOverAxis:function(b,d,e){return b>d&&b<d+e},isOver:function(b,d,e,a,f,g){return c.ui.isOverAxis(b,e,f)&&c.ui.isOverAxis(d,a,g)},keyCode:{BACKSPACE:8,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,
482
- RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};c.fn.extend({_focus:c.fn.focus,focus:function(b,d){return typeof b==="number"?this.each(function(){var e=this;setTimeout(function(){c(e).focus();d&&d.call(e)},b)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","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 b;
483
- b=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||
484
- !b.length?c(document):b},zIndex:function(b){if(b!==undefined)return this.css("zIndex",b);if(this.length){b=c(this[0]);for(var d;b.length&&b[0]!==document;){d=b.css("position");if(d=="absolute"||d=="relative"||d=="fixed"){d=parseInt(b.css("zIndex"));if(!isNaN(d)&&d!=0)return d}b=b.parent()}}return 0}});c.extend(c.expr[":"],{data:function(b,d,e){return!!c.data(b,e[3])},focusable:function(b){var d=b.nodeName.toLowerCase(),e=c.attr(b,"tabindex");return(/input|select|textarea|button|object/.test(d)?!b.disabled:
485
- "a"==d||"area"==d?b.href||!isNaN(e):!isNaN(e))&&!c(b)["area"==d?"parents":"closest"](":hidden").length},tabbable:function(b){var d=c.attr(b,"tabindex");return(isNaN(d)||d>=0)&&c(b).is(":focusable")}})}(jQuery);
479
+ jQuery.ui||function(c){c.ui={version:"1.8.1",plugin:{add:function(b,d,e){b=c.ui[b].prototype;for(var a in e){b.plugins[a]=b.plugins[a]||[];b.plugins[a].push([d,e[a]])}},call:function(b,d,e){if((d=b.plugins[d])&&b.element[0].parentNode)for(var a=0;a<d.length;a++)b.options[d[a][0]]&&d[a][1].apply(b.element,e)}},contains:function(b,d){return document.compareDocumentPosition?b.compareDocumentPosition(d)&16:b!==d&&b.contains(d)},hasScroll:function(b,d){if(c(b).css("overflow")=="hidden")return false;d=
480
+ d&&d=="left"?"scrollLeft":"scrollTop";var e=false;if(b[d]>0)return true;b[d]=1;e=b[d]>0;b[d]=0;return e},isOverAxis:function(b,d,e){return b>d&&b<d+e},isOver:function(b,d,e,a,f,g){return c.ui.isOverAxis(b,e,f)&&c.ui.isOverAxis(d,a,g)},keyCode:{ALT:18,BACKSPACE:8,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,
481
+ RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};c.fn.extend({_focus:c.fn.focus,focus:function(b,d){return typeof b==="number"?this.each(function(){var e=this;setTimeout(function(){c(e).focus();d&&d.call(e)},b)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none")},scrollParent:function(){var b;b=c.browser.msie&&/(static|relative)/.test(this.css("position"))||
482
+ /absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!b.length?c(document):b},zIndex:function(b){if(b!==
483
+ undefined)return this.css("zIndex",b);if(this.length){b=c(this[0]);for(var d;b.length&&b[0]!==document;){d=b.css("position");if(d=="absolute"||d=="relative"||d=="fixed"){d=parseInt(b.css("zIndex"));if(!isNaN(d)&&d!=0)return d}b=b.parent()}}return 0}});c.extend(c.expr[":"],{data:function(b,d,e){return!!c.data(b,e[3])},focusable:function(b){var d=b.nodeName.toLowerCase(),e=c.attr(b,"tabindex");return(/input|select|textarea|button|object/.test(d)?!b.disabled:"a"==d||"area"==d?b.href||!isNaN(e):!isNaN(e))&&
484
+ !c(b)["area"==d?"parents":"closest"](":hidden").length},tabbable:function(b){var d=c.attr(b,"tabindex");return(isNaN(d)||d>=0)&&c(b).is(":focusable")}})}(jQuery);
486
485
  (function(c){function b(){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=
487
486
  "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",
488
487
  "Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
489
488
  minDate:null,maxDate:null,duration:"_default",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};c.extend(this._defaults,this.regional[""]);this.dpDiv=c('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}function d(a,f){c.extend(a,
490
- f);for(var g in f)if(f[g]==null||f[g]==undefined)a[g]=f[g];return a}c.extend(c.ui,{datepicker:{version:"1.8"}});var e=(new Date).getTime();c.extend(b.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){d(this._defaults,a||{});return this},_attachDatepicker:function(a,f){var g=null;for(var i in this._defaults){var j=a.getAttribute("date:"+i);if(j){g=g||{};try{g[i]=eval(j)}catch(m){g[i]=
489
+ f);for(var g in f)if(f[g]==null||f[g]==undefined)a[g]=f[g];return a}c.extend(c.ui,{datepicker:{version:"1.8.1"}});var e=(new Date).getTime();c.extend(b.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){d(this._defaults,a||{});return this},_attachDatepicker:function(a,f){var g=null;for(var i in this._defaults){var j=a.getAttribute("date:"+i);if(j){g=g||{};try{g[i]=eval(j)}catch(m){g[i]=
491
490
  j}}}i=a.nodeName.toLowerCase();j=i=="div"||i=="span";if(!a.id)a.id="dp"+ ++this.uuid;var k=this._newInst(c(a),j);k.settings=c.extend({},f||{},g||{});if(i=="input")this._connectDatepicker(a,k);else j&&this._inlineDatepicker(a,k)},_newInst:function(a,f){return{id:a[0].id.replace(/([^A-Za-z0-9_])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:f,dpDiv:!f?this.dpDiv:c('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},
492
491
  _connectDatepicker:function(a,f){var g=c(a);f.append=c([]);f.trigger=c([]);if(!g.hasClass(this.markerClassName)){this._attachments(g,f);g.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(i,j,m){f.settings[j]=m}).bind("getData.datepicker",function(i,j){return this._get(f,j)});this._autoSize(f);c.data(a,"datepicker",f)}},_attachments:function(a,f){var g=this._get(f,"appendText"),i=this._get(f,"isRTL");f.append&&
493
492
  f.append.remove();if(g){f.append=c('<span class="'+this._appendClass+'">'+g+"</span>");a[i?"before":"after"](f.append)}a.unbind("focus",this._showDatepicker);f.trigger&&f.trigger.remove();g=this._get(f,"showOn");if(g=="focus"||g=="both")a.focus(this._showDatepicker);if(g=="button"||g=="both"){g=this._get(f,"buttonText");var j=this._get(f,"buttonImage");f.trigger=c(this._get(f,"buttonImageOnly")?c("<img/>").addClass(this._triggerClass).attr({src:j,alt:g,title:g}):c('<button type="button"></button>').addClass(this._triggerClass).html(j==
@@ -550,7 +549,7 @@ a.drawYear+(g=="Y"?f:0),j=a.drawMonth+(g=="M"?f:0);f=Math.min(a.selectedDay,this
550
549
  g=this._daylightSavingAdjust(new Date(g,i+(f<0?f:j[0]*j[1]),1));f<0&&g.setDate(this._getDaysInMonth(g.getFullYear(),g.getMonth()));return this._isInRange(a,g)},_isInRange:function(a,f){var g=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!g||f.getTime()>=g.getTime())&&(!a||f.getTime()<=a.getTime())},_getFormatConfig:function(a){var f=this._get(a,"shortYearCutoff");f=typeof f!="string"?f:(new Date).getFullYear()%100+parseInt(f,10);return{shortYearCutoff:f,dayNamesShort:this._get(a,
551
550
  "dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,f,g,i){if(!f){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}f=f?typeof f=="object"?f:this._daylightSavingAdjust(new Date(i,g,f)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),f,this._getFormatConfig(a))}});c.fn.datepicker=
552
551
  function(a){if(!c.datepicker.initialized){c(document).mousedown(c.datepicker._checkExternalClick).find("body").append(c.datepicker.dpDiv);c.datepicker.initialized=true}var f=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return c.datepicker["_"+a+"Datepicker"].apply(c.datepicker,[this[0]].concat(f));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return c.datepicker["_"+a+"Datepicker"].apply(c.datepicker,[this[0]].concat(f));
553
- return this.each(function(){typeof a=="string"?c.datepicker["_"+a+"Datepicker"].apply(c.datepicker,[this].concat(f)):c.datepicker._attachDatepicker(this,a)})};c.datepicker=new b;c.datepicker.initialized=false;c.datepicker.uuid=(new Date).getTime();c.datepicker.version="1.8";window["DP_jQuery_"+e]=c})(jQuery);
552
+ return this.each(function(){typeof a=="string"?c.datepicker["_"+a+"Datepicker"].apply(c.datepicker,[this].concat(f)):c.datepicker._attachDatepicker(this,a)})};c.datepicker=new b;c.datepicker.initialized=false;c.datepicker.uuid=(new Date).getTime();c.datepicker.version="1.8.1";window["DP_jQuery_"+e]=c})(jQuery);
554
553
  (function(c){c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");var b=this,d=b.options,e=d.title||b.originalTitle||"&#160;",a=c.ui.dialog.getTitleId(b.element),f=(b.uiDialog=c("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
555
554
  d.dialogClass).css({zIndex:d.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(j){if(d.closeOnEscape&&j.keyCode&&j.keyCode===c.ui.keyCode.ESCAPE){b.close(j);j.preventDefault()}}).attr({role:"dialog","aria-labelledby":a}).mousedown(function(j){b.moveToTop(false,j)});b.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(f);var g=(b.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(f),
556
555
  i=c('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){i.addClass("ui-state-hover")},function(){i.removeClass("ui-state-hover")}).focus(function(){i.addClass("ui-state-focus")}).blur(function(){i.removeClass("ui-state-focus")}).click(function(j){b.close(j);return false}).appendTo(g);(b.uiDialogTitlebarCloseText=c("<span></span>")).addClass("ui-icon ui-icon-closethick").text(d.closeText).appendTo(i);c("<span></span>").addClass("ui-dialog-title").attr("id",
@@ -566,8 +565,8 @@ g,d(i));c.ui.dialog.overlay.resize()}}).css("position",f).find(".ui-resizable-se
566
565
  f}})}else if(typeof b==="object"){if("left"in b){d[0]="left";e[0]=b.left}else if("right"in b){d[0]="right";e[0]=-b.right}if("top"in b){d[1]="top";e[1]=b.top}else if("bottom"in b){d[1]="bottom";e[1]=-b.bottom}}(b=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position({my:d.join(" "),at:d.join(" "),offset:e.join(" "),of:window,collision:"fit",using:function(a){var f=c(this).css(a).offset().top;f<0&&c(this).css("top",a.top-f)}});b||this.uiDialog.hide()},_setOption:function(b,
567
566
  d){var e=this,a=e.uiDialog,f=a.is(":data(resizable)"),g=false;switch(b){case "beforeclose":b="beforeClose";break;case "buttons":e._createButtons(d);break;case "closeText":e.uiDialogTitlebarCloseText.text(""+d);break;case "dialogClass":a.removeClass(e.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+d);break;case "disabled":d?a.addClass("ui-dialog-disabled"):a.removeClass("ui-dialog-disabled");break;case "draggable":d?e._makeDraggable():a.draggable("destroy");break;
568
567
  case "height":g=true;break;case "maxHeight":f&&a.resizable("option","maxHeight",d);g=true;break;case "maxWidth":f&&a.resizable("option","maxWidth",d);g=true;break;case "minHeight":f&&a.resizable("option","minHeight",d);g=true;break;case "minWidth":f&&a.resizable("option","minWidth",d);g=true;break;case "position":e._position(d);break;case "resizable":f&&!d&&a.resizable("destroy");f&&typeof d==="string"&&a.resizable("option","handles",d);!f&&d!==false&&e._makeResizable(d);break;case "title":c(".ui-dialog-title",
569
- e.uiDialogTitlebar).html(""+(d||"&#160;"));break;case "width":g=true;break}c.Widget.prototype._setOption.apply(e,arguments);g&&e._size()},_size:function(){var b=this.options,d;this.element.css("width","auto").hide();d=this.uiDialog.css({height:"auto",width:b.width}).height();this.element.css(b.height==="auto"?{minHeight:Math.max(b.minHeight-d,0),height:"auto"}:{minHeight:0,height:Math.max(b.height-d,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});
570
- c.extend(c.ui.dialog,{version:"1.8",uuid:0,maxZ:0,getTitleId:function(b){b=b.attr("id");if(!b){this.uuid+=1;b=this.uuid}return"ui-dialog-title-"+b},overlay:function(b){this.$el=c.ui.dialog.overlay.create(b)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(b){return b+".dialog-overlay"}).join(" "),create:function(b){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&
568
+ e.uiDialogTitlebar).html(""+(d||"&#160;"));break;case "width":g=true;break}c.Widget.prototype._setOption.apply(e,arguments);g&&e._size()},_size:function(){var b=this.options,d;this.element.css({width:"auto",minHeight:0,height:0});d=this.uiDialog.css({height:"auto",width:b.width}).height();this.element.css(b.height==="auto"?{minHeight:Math.max(b.minHeight-d,0),height:"auto"}:{minHeight:0,height:Math.max(b.height-d,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",
569
+ this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.1",uuid:0,maxZ:0,getTitleId:function(b){b=b.attr("id");if(!b){this.uuid+=1;b=this.uuid}return"ui-dialog-title-"+b},overlay:function(b){this.$el=c.ui.dialog.overlay.create(b)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(b){return b+".dialog-overlay"}).join(" "),create:function(b){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&
571
570
  c(document).bind(c.ui.dialog.overlay.events,function(e){return c(e.target).zIndex()>=c.ui.dialog.overlay.maxZ})},1);c(document).bind("keydown.dialog-overlay",function(e){if(b.options.closeOnEscape&&e.keyCode&&e.keyCode===c.ui.keyCode.ESCAPE){b.close(e);e.preventDefault()}});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var d=(this.oldInstances.pop()||c("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});c.fn.bgiframe&&
572
571
  d.bgiframe();this.instances.push(d);return d},destroy:function(b){this.oldInstances.push(this.instances.splice(c.inArray(b,this.instances),1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");b.remove();var d=0;c.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var b,d;if(c.browser.msie&&c.browser.version<7){b=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);d=Math.max(document.documentElement.offsetHeight,
573
572
  document.body.offsetHeight);return b<d?c(window).height()+"px":b+"px"}else return c(document).height()+"px"},width:function(){var b,d;if(c.browser.msie&&c.browser.version<7){b=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);d=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return b<d?c(window).width()+"px":b+"px"}else return c(document).width()+"px"},resize:function(){var b=c([]);c.each(c.ui.dialog.overlay.instances,function(){b=b.add(this)});b.css({width:0,
@@ -591,7 +590,7 @@ a?0:e.scrollLeft())*b)}},_generatePosition:function(b){var d=this.options,e=this
591
590
  this.offset.click.top;if(b.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(b.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(d.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/d.grid[1])*d.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-d.grid[1]:g+d.grid[1]:g;f=this.originalPageX+
592
591
  Math.round((f-this.originalPageX)/d.grid[0])*d.grid[0];f=this.containment?!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:!(f-this.offset.click.left<this.containment[0])?f-d.grid[0]:f+d.grid[0]:f}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(c.browser.safari&&c.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():a?0:e.scrollTop()),left:f-this.offset.click.left-
593
592
  this.offset.relative.left-this.offset.parent.left+(c.browser.safari&&c.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():a?0:e.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(b,d,e){e=e||this._uiHash();c.ui.plugin.call(this,b,[d,e]);if(b=="drag")this.positionAbs=
594
- this._convertPositionTo("absolute");return c.Widget.prototype._trigger.call(this,b,d,e)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});c.extend(c.ui.draggable,{version:"1.8"});c.ui.plugin.add("draggable","connectToSortable",{start:function(b,d){var e=c(this).data("draggable"),a=e.options,f=c.extend({},d,{item:e.element});e.sortables=[];c(a.connectToSortable).each(function(){var g=c.data(this,"sortable");
593
+ this._convertPositionTo("absolute");return c.Widget.prototype._trigger.call(this,b,d,e)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});c.extend(c.ui.draggable,{version:"1.8.1"});c.ui.plugin.add("draggable","connectToSortable",{start:function(b,d){var e=c(this).data("draggable"),a=e.options,f=c.extend({},d,{item:e.element});e.sortables=[];c(a.connectToSortable).each(function(){var g=c.data(this,"sortable");
595
594
  if(g&&!g.options.disabled){e.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",b,f)}})},stop:function(b,d){var e=c(this).data("draggable"),a=c.extend({},d,{item:e.element});c.each(e.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;e.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(b);this.instance.options.helper=this.instance.options._helper;
596
595
  e.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",b,a)}})},drag:function(b,d){var e=c(this).data("draggable"),a=this;c.each(e.sortables,function(){this.instance.positionAbs=e.positionAbs;this.instance.helperProportions=e.helperProportions;this.instance.offset.click=e.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=
597
596
  1;this.instance.currentItem=c(a).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return d.helper[0]};b.target=this.instance.currentItem[0];this.instance._mouseCapture(b,true);this.instance._mouseStart(b,true,true);this.instance.offset.click.top=e.offset.click.top;this.instance.offset.click.left=e.offset.click.left;this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left;
@@ -612,7 +611,7 @@ b.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var
612
611
  this.element.addClass(this.options.activeClass);d&&this._trigger("activate",b,this.ui(d))},_deactivate:function(b){var d=c.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);d&&this._trigger("deactivate",b,this.ui(d))},_over:function(b){var d=c.ui.ddmanager.current;if(!(!d||(d.currentItem||d.element)[0]==this.element[0]))if(this.accept.call(this.element[0],d.currentItem||d.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
613
612
  this._trigger("over",b,this.ui(d))}},_out:function(b){var d=c.ui.ddmanager.current;if(!(!d||(d.currentItem||d.element)[0]==this.element[0]))if(this.accept.call(this.element[0],d.currentItem||d.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",b,this.ui(d))}},_drop:function(b,d){var e=d||c.ui.ddmanager.current;if(!e||(e.currentItem||e.element)[0]==this.element[0])return false;var a=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var f=
614
613
  c.data(this,"droppable");if(f.options.greedy&&!f.options.disabled&&f.options.scope==e.options.scope&&f.accept.call(f.element[0],e.currentItem||e.element)&&c.ui.intersect(e,c.extend(f,{offset:f.element.offset()}),f.options.tolerance)){a=true;return false}});if(a)return false;if(this.accept.call(this.element[0],e.currentItem||e.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",
615
- b,this.ui(e));return this.element}return false},ui:function(b){return{draggable:b.currentItem||b.element,helper:b.helper,position:b.position,offset:b.positionAbs}}});c.extend(c.ui.droppable,{version:"1.8"});c.ui.intersect=function(b,d,e){if(!d.offset)return false;var a=(b.positionAbs||b.position.absolute).left,f=a+b.helperProportions.width,g=(b.positionAbs||b.position.absolute).top,i=g+b.helperProportions.height,j=d.offset.left,m=j+d.proportions.width,k=d.offset.top,h=k+d.proportions.height;switch(e){case "fit":return j<
614
+ b,this.ui(e));return this.element}return false},ui:function(b){return{draggable:b.currentItem||b.element,helper:b.helper,position:b.position,offset:b.positionAbs}}});c.extend(c.ui.droppable,{version:"1.8.1"});c.ui.intersect=function(b,d,e){if(!d.offset)return false;var a=(b.positionAbs||b.position.absolute).left,f=a+b.helperProportions.width,g=(b.positionAbs||b.position.absolute).top,i=g+b.helperProportions.height,j=d.offset.left,m=j+d.proportions.width,k=d.offset.top,h=k+d.proportions.height;switch(e){case "fit":return j<
616
615
  a&&f<m&&k<g&&i<h;case "intersect":return j<a+b.helperProportions.width/2&&f-b.helperProportions.width/2<m&&k<g+b.helperProportions.height/2&&i-b.helperProportions.height/2<h;case "pointer":return c.ui.isOver((b.positionAbs||b.position.absolute).top+(b.clickOffset||b.offset.click).top,(b.positionAbs||b.position.absolute).left+(b.clickOffset||b.offset.click).left,k,j,d.proportions.height,d.proportions.width);case "touch":return(g>=k&&g<=h||i>=k&&i<=h||g<k&&i>h)&&(a>=j&&a<=m||f>=j&&f<=m||a<j&&f>m);default:return false}};
617
616
  c.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(b,d){var e=c.ui.ddmanager.droppables[b.options.scope]||[],a=d?d.type:null,f=(b.currentItem||b.element).find(":data(droppable)").andSelf(),g=0;a:for(;g<e.length;g++)if(!(e[g].options.disabled||b&&!e[g].accept.call(e[g].element[0],b.currentItem||b.element))){for(var i=0;i<f.length;i++)if(f[i]==e[g].element[0]){e[g].proportions.height=0;continue a}e[g].visible=e[g].element.css("display")!="none";if(e[g].visible){e[g].offset=
618
617
  e[g].element.offset();e[g].proportions={width:e[g].element[0].offsetWidth,height:e[g].element[0].offsetHeight};a=="mousedown"&&e[g]._activate.call(e[g],d)}}},drop:function(b,d){var e=false;c.each(c.ui.ddmanager.droppables[b.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&c.ui.intersect(b,this,this.options.tolerance))e=e||this._drop.call(this,d);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],b.currentItem||b.element)){this.isout=1;
@@ -625,13 +624,13 @@ this._mouseDelayMet(b))(this._mouseStarted=this._mouseStart(this._mouseDownEvent
625
624
  b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
626
625
  (function(c){c.ui=c.ui||{};var b=/left|center|right/,d=/top|center|bottom/,e=c.fn.position,a=c.fn.offset;c.fn.position=function(f){if(!f||!f.of)return e.apply(this,arguments);f=c.extend({},f);var g=c(f.of),i=(f.collision||"flip").split(" "),j=f.offset?f.offset.split(" "):[0,0],m,k,h;if(f.of.nodeType===9){m=g.width();k=g.height();h={top:0,left:0}}else if(f.of.scrollTo&&f.of.document){m=g.width();k=g.height();h={top:g.scrollTop(),left:g.scrollLeft()}}else if(f.of.preventDefault){f.at="left top";m=k=
627
626
  0;h={top:f.of.pageY,left:f.of.pageX}}else{m=g.outerWidth();k=g.outerHeight();h=g.offset()}c.each(["my","at"],function(){var l=(f[this]||"").split(" ");if(l.length===1)l=b.test(l[0])?l.concat(["center"]):d.test(l[0])?["center"].concat(l):["center","center"];l[0]=b.test(l[0])?l[0]:"center";l[1]=d.test(l[1])?l[1]:"center";f[this]=l});if(i.length===1)i[1]=i[0];j[0]=parseInt(j[0],10)||0;if(j.length===1)j[1]=j[0];j[1]=parseInt(j[1],10)||0;if(f.at[0]==="right")h.left+=m;else if(f.at[0]==="center")h.left+=
628
- m/2;if(f.at[1]==="bottom")h.top+=k;else if(f.at[1]==="center")h.top+=k/2;h.left+=j[0];h.top+=j[1];return this.each(function(){var l=c(this),n=l.outerWidth(),o=l.outerHeight(),p=c.extend({},h);if(f.my[0]==="right")p.left-=n;else if(f.my[0]==="center")p.left-=n/2;if(f.my[1]==="bottom")p.top-=o;else if(f.my[1]==="center")p.top-=o/2;c.each(["left","top"],function(q,r){c.ui.position[i[q]]&&c.ui.position[i[q]][r](p,{targetWidth:m,targetHeight:k,elemWidth:n,elemHeight:o,offset:j,my:f.my,at:f.at})});c.fn.bgiframe&&
629
- l.bgiframe();l.offset(c.extend(p,{using:f.using}))})};c.ui.position={fit:{left:function(f,g){var i=c(window);g=f.left+g.elemWidth-i.width()-i.scrollLeft();f.left=g>0?f.left-g:Math.max(0,f.left)},top:function(f,g){var i=c(window);g=f.top+g.elemHeight-i.height()-i.scrollTop();f.top=g>0?f.top-g:Math.max(0,f.top)}},flip:{left:function(f,g){if(g.at[0]!=="center"){var i=c(window);i=f.left+g.elemWidth-i.width()-i.scrollLeft();var j=g.my[0]==="left"?-g.elemWidth:g.my[0]==="right"?g.elemWidth:0,m=-2*g.offset[0];
630
- f.left+=f.left<0?j+g.targetWidth+m:i>0?j-g.targetWidth+m:0}},top:function(f,g){if(g.at[1]!=="center"){var i=c(window);i=f.top+g.elemHeight-i.height()-i.scrollTop();var j=g.my[1]==="top"?-g.elemHeight:g.my[1]==="bottom"?g.elemHeight:0,m=g.at[1]==="top"?g.targetHeight:-g.targetHeight,k=-2*g.offset[1];f.top+=f.top<0?j+g.targetHeight+k:i>0?j+m+k:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(f,g){if(/static/.test(c.curCSS(f,"position")))f.style.position="relative";var i=c(f),j=i.offset(),m=
631
- parseInt(c.curCSS(f,"top",true),10)||0,k=parseInt(c.curCSS(f,"left",true),10)||0;j={top:g.top-j.top+m,left:g.left-j.left+k};"using"in g?g.using.call(f,j):i.css(j)};c.fn.offset=function(f){var g=this[0];if(!g||!g.ownerDocument)return null;if(f)return this.each(function(){c.offset.setOffset(this,f)});return a.call(this)}}})(jQuery);
627
+ m/2;if(f.at[1]==="bottom")h.top+=k;else if(f.at[1]==="center")h.top+=k/2;h.left+=j[0];h.top+=j[1];return this.each(function(){var l=c(this),n=l.outerWidth(),o=l.outerHeight(),p=c.extend({},h);if(f.my[0]==="right")p.left-=n;else if(f.my[0]==="center")p.left-=n/2;if(f.my[1]==="bottom")p.top-=o;else if(f.my[1]==="center")p.top-=o/2;p.left=parseInt(p.left);p.top=parseInt(p.top);c.each(["left","top"],function(q,r){c.ui.position[i[q]]&&c.ui.position[i[q]][r](p,{targetWidth:m,targetHeight:k,elemWidth:n,
628
+ elemHeight:o,offset:j,my:f.my,at:f.at})});c.fn.bgiframe&&l.bgiframe();l.offset(c.extend(p,{using:f.using}))})};c.ui.position={fit:{left:function(f,g){var i=c(window);g=f.left+g.elemWidth-i.width()-i.scrollLeft();f.left=g>0?f.left-g:Math.max(0,f.left)},top:function(f,g){var i=c(window);g=f.top+g.elemHeight-i.height()-i.scrollTop();f.top=g>0?f.top-g:Math.max(0,f.top)}},flip:{left:function(f,g){if(g.at[0]!=="center"){var i=c(window);i=f.left+g.elemWidth-i.width()-i.scrollLeft();var j=g.my[0]==="left"?
629
+ -g.elemWidth:g.my[0]==="right"?g.elemWidth:0,m=-2*g.offset[0];f.left+=f.left<0?j+g.targetWidth+m:i>0?j-g.targetWidth+m:0}},top:function(f,g){if(g.at[1]!=="center"){var i=c(window);i=f.top+g.elemHeight-i.height()-i.scrollTop();var j=g.my[1]==="top"?-g.elemHeight:g.my[1]==="bottom"?g.elemHeight:0,m=g.at[1]==="top"?g.targetHeight:-g.targetHeight,k=-2*g.offset[1];f.top+=f.top<0?j+g.targetHeight+k:i>0?j+m+k:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(f,g){if(/static/.test(c.curCSS(f,"position")))f.style.position=
630
+ "relative";var i=c(f),j=i.offset(),m=parseInt(c.curCSS(f,"top",true),10)||0,k=parseInt(c.curCSS(f,"left",true),10)||0;j={top:g.top-j.top+m,left:g.left-j.left+k};"using"in g?g.using.call(f,j):i.css(j)};c.fn.offset=function(f){var g=this[0];if(!g||!g.ownerDocument)return null;if(f)return this.each(function(){c.offset.setOffset(this,f)});return a.call(this)}}})(jQuery);
632
631
  (function(c){c.widget("ui.progressbar",{options:{value:0},_create: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=c("<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");
633
632
  this.valueDiv.remove();c.Widget.prototype.destroy.apply(this,arguments)},value:function(b){if(b===undefined)return this._value();this._setOption("value",b);return this},_setOption:function(b,d){switch(b){case "value":this.options.value=d;this._refreshValue();this._trigger("change");break}c.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var b=this.options.value;if(typeof b!=="number")b=0;if(b<this._valueMin())b=this._valueMin();if(b>this._valueMax())b=this._valueMax();return b},
634
- _valueMin:function(){return 0},_valueMax:function(){return 100},_refreshValue:function(){var b=this.value();this.valueDiv[b===this._valueMax()?"addClass":"removeClass"]("ui-corner-right").width(b+"%");this.element.attr("aria-valuenow",b)}});c.extend(c.ui.progressbar,{version:"1.8"})})(jQuery);
633
+ _valueMin:function(){return 0},_valueMax:function(){return 100},_refreshValue:function(){var b=this.value();this.valueDiv[b===this._valueMax()?"addClass":"removeClass"]("ui-corner-right").width(b+"%");this.element.attr("aria-valuenow",b)}});c.extend(c.ui.progressbar,{version:"1.8.1"})})(jQuery);
635
634
  (function(c){c.widget("ui.resizable",c.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var e=this,a=this.options;this.element.addClass("ui-resizable");c.extend(this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElement:this.element,
636
635
  _proportionallyResizeElements:[],_helper:a.helper||a.ghost||a.animate?a.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&c.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(c('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
637
636
  top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=
@@ -652,7 +651,7 @@ f.css("borderRightWidth"),f.css("borderBottomWidth"),f.css("borderLeftWidth")],i
652
651
  this.element.offset();if(this._helper){this.helper=this.helper||c('<div style="overflow:hidden;"></div>');var a=c.browser.msie&&c.browser.version<7,f=a?1:0;a=a?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+a,height:this.element.outerHeight()+a,position:"absolute",left:this.elementOffset.left-f+"px",top:this.elementOffset.top-f+"px",zIndex:++e.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(e,a){return{width:this.originalSize.width+
653
652
  a}},w:function(e,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(e,a,f){return{top:this.originalPosition.top+f,height:this.originalSize.height-f}},s:function(e,a,f){return{height:this.originalSize.height+f}},se:function(e,a,f){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,a,f]))},sw:function(e,a,f){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,a,f]))},ne:function(e,a,f){return c.extend(this._change.n.apply(this,
654
653
  arguments),this._change.e.apply(this,[e,a,f]))},nw:function(e,a,f){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,a,f]))}},_propagate:function(e,a){c.ui.plugin.call(this,e,[a,this.ui()]);e!="resize"&&this._trigger(e,a,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}}});c.extend(c.ui.resizable,
655
- {version:"1.8"});c.ui.plugin.add("resizable","alsoResize",{start:function(){var e=c(this).data("resizable").options,a=function(f){c(f).each(function(){c(this).data("resizable-alsoresize",{width:parseInt(c(this).width(),10),height:parseInt(c(this).height(),10),left:parseInt(c(this).css("left"),10),top:parseInt(c(this).css("top"),10)})})};if(typeof e.alsoResize=="object"&&!e.alsoResize.parentNode)if(e.alsoResize.length){e.alsoResize=e.alsoResize[0];a(e.alsoResize)}else c.each(e.alsoResize,function(f){a(f)});
654
+ {version:"1.8.1"});c.ui.plugin.add("resizable","alsoResize",{start:function(){var e=c(this).data("resizable").options,a=function(f){c(f).each(function(){c(this).data("resizable-alsoresize",{width:parseInt(c(this).width(),10),height:parseInt(c(this).height(),10),left:parseInt(c(this).css("left"),10),top:parseInt(c(this).css("top"),10)})})};if(typeof e.alsoResize=="object"&&!e.alsoResize.parentNode)if(e.alsoResize.length){e.alsoResize=e.alsoResize[0];a(e.alsoResize)}else c.each(e.alsoResize,function(f){a(f)});
656
655
  else a(e.alsoResize)},resize:function(){var e=c(this).data("resizable"),a=e.options,f=e.originalSize,g=e.originalPosition,i={height:e.size.height-f.height||0,width:e.size.width-f.width||0,top:e.position.top-g.top||0,left:e.position.left-g.left||0},j=function(m,k){c(m).each(function(){var h=c(this),l=c(this).data("resizable-alsoresize"),n={};c.each((k&&k.length?k:["width","height","top","left"])||["width","height","top","left"],function(o,p){if((o=(l[p]||0)+(i[p]||0))&&o>=0)n[p]=o||null});if(/relative/.test(h.css("position"))&&
657
656
  c.browser.opera){e._revertToRelativePosition=true;h.css({position:"absolute",top:"auto",left:"auto"})}h.css(n)})};typeof a.alsoResize=="object"&&!a.alsoResize.nodeType?c.each(a.alsoResize,function(m,k){j(m,k)}):j(a.alsoResize)},stop:function(){var e=c(this).data("resizable");if(e._revertToRelativePosition&&c.browser.opera){e._revertToRelativePosition=false;el.css({position:"relative"})}c(this).removeData("resizable-alsoresize-start")}});c.ui.plugin.add("resizable","animate",{stop:function(e){var a=
658
657
  c(this).data("resizable"),f=a.options,g=a._proportionallyResizeElements,i=g.length&&/textarea/i.test(g[0].nodeName),j=i&&c.ui.hasScroll(g[0],"left")?0:a.sizeDiff.height;i={width:a.size.width-(i?0:a.sizeDiff.width),height:a.size.height-j};j=parseInt(a.element.css("left"),10)+(a.position.left-a.originalPosition.left)||null;var m=parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top)||null;a.element.animate(c.extend(i,m&&j?{top:m,left:j}:{}),{duration:f.animateDuration,easing:f.animateEasing,
@@ -672,71 +671,71 @@ a.selected=false;a.$element.addClass("ui-unselecting");a.unselecting=true;d._tri
672
671
  a=this.opos[0],f=this.opos[1],g=b.pageX,i=b.pageY;if(a>g){var j=g;g=a;a=j}if(f>i){j=i;i=f;f=j}this.helper.css({left:a,top:f,width:g-a,height:i-f});this.selectees.each(function(){var m=c.data(this,"selectable-item");if(!(!m||m.element==d.element[0])){var k=false;if(e.tolerance=="touch")k=!(m.left>g||m.right<a||m.top>i||m.bottom<f);else if(e.tolerance=="fit")k=m.left>a&&m.right<g&&m.top>f&&m.bottom<i;if(k){if(m.selected){m.$element.removeClass("ui-selected");m.selected=false}if(m.unselecting){m.$element.removeClass("ui-unselecting");
673
672
  m.unselecting=false}if(!m.selecting){m.$element.addClass("ui-selecting");m.selecting=true;d._trigger("selecting",b,{selecting:m.element})}}else{if(m.selecting)if(b.metaKey&&m.startselected){m.$element.removeClass("ui-selecting");m.selecting=false;m.$element.addClass("ui-selected");m.selected=true}else{m.$element.removeClass("ui-selecting");m.selecting=false;if(m.startselected){m.$element.addClass("ui-unselecting");m.unselecting=true}d._trigger("unselecting",b,{unselecting:m.element})}if(m.selected)if(!b.metaKey&&
674
673
  !m.startselected){m.$element.removeClass("ui-selected");m.selected=false;m.$element.addClass("ui-unselecting");m.unselecting=true;d._trigger("unselecting",b,{unselecting:m.element})}}}});return false}},_mouseStop:function(b){var d=this;this.dragged=false;c(".ui-unselecting",this.element[0]).each(function(){var e=c.data(this,"selectable-item");e.$element.removeClass("ui-unselecting");e.unselecting=false;e.startselected=false;d._trigger("unselected",b,{unselected:e.element})});c(".ui-selecting",this.element[0]).each(function(){var e=
675
- c.data(this,"selectable-item");e.$element.removeClass("ui-selecting").addClass("ui-selected");e.selecting=false;e.selected=true;e.startselected=true;d._trigger("selected",b,{selected:e.element})});this._trigger("stop",b);this.helper.remove();return false}});c.extend(c.ui.selectable,{version:"1.8"})})(jQuery);
674
+ c.data(this,"selectable-item");e.$element.removeClass("ui-selecting").addClass("ui-selected");e.selecting=false;e.selected=true;e.startselected=true;d._trigger("selected",b,{selected:e.element})});this._trigger("stop",b);this.helper.remove();return false}});c.extend(c.ui.selectable,{version:"1.8.1"})})(jQuery);
676
675
  (function(c){c.widget("ui.slider",c.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var b=this,d=this.options;this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");d.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");
677
- this.range=c([]);if(d.range){if(d.range===true){this.range=c("<div></div>");if(!d.values)d.values=[this._valueMin(),this._valueMin()];if(d.values.length&&d.values.length!=2)d.values=[d.values[0],d.values[0]]}else this.range=c("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(d.range=="min"||d.range=="max")this.range.addClass("ui-slider-range-"+d.range);this.range.addClass("ui-widget-header")}c(".ui-slider-handle",this.element).length==0&&c('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");
678
- if(d.values&&d.values.length)for(;c(".ui-slider-handle",this.element).length<d.values.length;)c('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");this.handles=c(".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(e){e.preventDefault()}).hover(function(){d.disabled||c(this).addClass("ui-state-hover")},function(){c(this).removeClass("ui-state-hover")}).focus(function(){if(d.disabled)c(this).blur();
679
- else{c(".ui-slider .ui-state-focus").removeClass("ui-state-focus");c(this).addClass("ui-state-focus")}}).blur(function(){c(this).removeClass("ui-state-focus")});this.handles.each(function(e){c(this).data("index.ui-slider-handle",e)});this.handles.keydown(function(e){var a=true,f=c(this).data("index.ui-slider-handle");if(!b.options.disabled){switch(e.keyCode){case c.ui.keyCode.HOME:case c.ui.keyCode.END:case c.ui.keyCode.PAGE_UP:case c.ui.keyCode.PAGE_DOWN:case c.ui.keyCode.UP:case c.ui.keyCode.RIGHT:case c.ui.keyCode.DOWN:case c.ui.keyCode.LEFT:a=
680
- false;if(!b._keySliding){b._keySliding=true;c(this).addClass("ui-state-active");b._start(e,f)}break}var g,i,j=b._step();g=b.options.values&&b.options.values.length?(i=b.values(f)):(i=b.value());switch(e.keyCode){case c.ui.keyCode.HOME:i=b._valueMin();break;case c.ui.keyCode.END:i=b._valueMax();break;case c.ui.keyCode.PAGE_UP:i=g+(b._valueMax()-b._valueMin())/5;break;case c.ui.keyCode.PAGE_DOWN:i=g-(b._valueMax()-b._valueMin())/5;break;case c.ui.keyCode.UP:case c.ui.keyCode.RIGHT:if(g==b._valueMax())return;
681
- i=g+j;break;case c.ui.keyCode.DOWN:case c.ui.keyCode.LEFT:if(g==b._valueMin())return;i=g-j;break}b._slide(e,f,i);return a}}).keyup(function(e){var a=c(this).data("index.ui-slider-handle");if(b._keySliding){b._keySliding=false;b._stop(e,a);b._change(e,a);c(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
682
- this._mouseDestroy();return this},_mouseCapture:function(b){var d=this.options;if(d.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var e={x:b.pageX,y:b.pageY},a=this._normValueFromMouse(e),f=this._valueMax()-this._valueMin()+1,g,i=this,j;this.handles.each(function(m){var k=Math.abs(a-i.values(m));if(f>k){f=k;g=c(this);j=m}});if(d.range==true&&this.values(1)==d.min)g=c(this.handles[++j]);this._start(b,
683
- j);this._mouseSliding=true;i._handleIndex=j;g.addClass("ui-state-active").focus();d=g.offset();this._clickOffset=!c(b.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:b.pageX-d.left-g.width()/2,top:b.pageY-d.top-g.height()/2-(parseInt(g.css("borderTopWidth"),10)||0)-(parseInt(g.css("borderBottomWidth"),10)||0)+(parseInt(g.css("marginTop"),10)||0)};a=this._normValueFromMouse(e);this._slide(b,j,a);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(b){var d=
684
- this._normValueFromMouse({x:b.pageX,y:b.pageY});this._slide(b,this._handleIndex,d);return false},_mouseStop:function(b){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(b,this._handleIndex);this._change(b,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation=="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(b){var d;if("horizontal"==this.orientation){d=
685
- this.elementSize.width;b=b.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{d=this.elementSize.height;b=b.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}d=b/d;if(d>1)d=1;if(d<0)d=0;if("vertical"==this.orientation)d=1-d;b=this._valueMax()-this._valueMin();b=d*b;d=b%this.options.step;b=this._valueMin()+b-d;if(d>this.options.step/2)b+=this.options.step;return parseFloat(b.toFixed(5))},_start:function(b,d){var e={handle:this.handles[d],value:this.value()};
686
- if(this.options.values&&this.options.values.length){e.value=this.values(d);e.values=this.values()}this._trigger("start",b,e)},_slide:function(b,d,e){if(this.options.values&&this.options.values.length){var a=this.values(d?0:1);if(this.options.values.length==2&&this.options.range===true&&(d==0&&e>a||d==1&&e<a))e=a;if(e!=this.values(d)){a=this.values();a[d]=e;b=this._trigger("slide",b,{handle:this.handles[d],value:e,values:a});this.values(d?0:1);b!==false&&this.values(d,e,true)}}else if(e!=this.value()){b=
687
- this._trigger("slide",b,{handle:this.handles[d],value:e});b!==false&&this.value(e)}},_stop:function(b,d){var e={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){e.value=this.values(d);e.values=this.values()}this._trigger("stop",b,e)},_change:function(b,d){if(!this._keySliding&&!this._mouseSliding){var e={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){e.value=this.values(d);e.values=this.values()}this._trigger("change",
688
- b,e)}},value:function(b){if(arguments.length){this.options.value=this._trimValue(b);this._refreshValue();this._change(null,0)}return this._value()},values:function(b,d){if(arguments.length>1){this.options.values[b]=this._trimValue(d);this._refreshValue();this._change(null,b)}if(arguments.length)if(c.isArray(arguments[0])){for(var e=this.options.values,a=arguments[0],f=0,g=e.length;f<g;f++){e[f]=this._trimValue(a[f]);this._change(null,f)}this._refreshValue()}else return this.options.values&&this.options.values.length?
689
- this._values(b):this.value();else return this._values()},_setOption:function(b,d){var e,a=0;if(jQuery.isArray(this.options.values))a=this.options.values.length;c.Widget.prototype._setOption.apply(this,arguments);switch(b){case "disabled":if(d){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}case "orientation":this._detectOrientation();
690
- this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(e=0;e<a;e++)this._change(null,e);this._animateOff=false;break}},_step:function(){return this.options.step},_value:function(){var b=this.options.value;return b=this._trimValue(b)},_values:function(b){if(arguments.length){var d=
691
- this.options.values[b];return d=this._trimValue(d)}else{d=this.options.values.slice();for(var e=0,a=d.length;e<a;e++)d[e]=this._trimValue(d[e]);return d}},_trimValue:function(b){if(b<this._valueMin())b=this._valueMin();if(b>this._valueMax())b=this._valueMax();return b},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var b=this.options.range,d=this.options,e=this,a=!this._animateOff?d.animate:false;if(this.options.values&&this.options.values.length)this.handles.each(function(j){var m=
692
- (e.values(j)-e._valueMin())/(e._valueMax()-e._valueMin())*100,k={};k[e.orientation=="horizontal"?"left":"bottom"]=m+"%";c(this).stop(1,1)[a?"animate":"css"](k,d.animate);if(e.options.range===true)if(e.orientation=="horizontal"){j==0&&e.range.stop(1,1)[a?"animate":"css"]({left:m+"%"},d.animate);j==1&&e.range[a?"animate":"css"]({width:m-lastValPercent+"%"},{queue:false,duration:d.animate})}else{j==0&&e.range.stop(1,1)[a?"animate":"css"]({bottom:m+"%"},d.animate);j==1&&e.range[a?"animate":"css"]({height:m-
693
- lastValPercent+"%"},{queue:false,duration:d.animate})}lastValPercent=m});else{var f=this.value(),g=this._valueMin(),i=this._valueMax();f=i!=g?(f-g)/(i-g)*100:0;g={};g[e.orientation=="horizontal"?"left":"bottom"]=f+"%";this.handle.stop(1,1)[a?"animate":"css"](g,d.animate);b=="min"&&this.orientation=="horizontal"&&this.range.stop(1,1)[a?"animate":"css"]({width:f+"%"},d.animate);b=="max"&&this.orientation=="horizontal"&&this.range[a?"animate":"css"]({width:100-f+"%"},{queue:false,duration:d.animate});
694
- b=="min"&&this.orientation=="vertical"&&this.range.stop(1,1)[a?"animate":"css"]({height:f+"%"},d.animate);b=="max"&&this.orientation=="vertical"&&this.range[a?"animate":"css"]({height:100-f+"%"},{queue:false,duration:d.animate})}}});c.extend(c.ui.slider,{version:"1.8"})})(jQuery);
676
+ this.range=c([]);if(d.range){if(d.range===true){this.range=c("<div></div>");if(!d.values)d.values=[this._valueMin(),this._valueMin()];if(d.values.length&&d.values.length!==2)d.values=[d.values[0],d.values[0]]}else this.range=c("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(d.range==="min"||d.range==="max")this.range.addClass("ui-slider-range-"+d.range);this.range.addClass("ui-widget-header")}c(".ui-slider-handle",this.element).length===0&&c("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");
677
+ if(d.values&&d.values.length)for(;c(".ui-slider-handle",this.element).length<d.values.length;)c("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");this.handles=c(".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(e){e.preventDefault()}).hover(function(){d.disabled||c(this).addClass("ui-state-hover")},function(){c(this).removeClass("ui-state-hover")}).focus(function(){if(d.disabled)c(this).blur();
678
+ else{c(".ui-slider .ui-state-focus").removeClass("ui-state-focus");c(this).addClass("ui-state-focus")}}).blur(function(){c(this).removeClass("ui-state-focus")});this.handles.each(function(e){c(this).data("index.ui-slider-handle",e)});this.handles.keydown(function(e){var a=true,f=c(this).data("index.ui-slider-handle"),g,i,j;if(!b.options.disabled){switch(e.keyCode){case c.ui.keyCode.HOME:case c.ui.keyCode.END:case c.ui.keyCode.PAGE_UP:case c.ui.keyCode.PAGE_DOWN:case c.ui.keyCode.UP:case c.ui.keyCode.RIGHT:case c.ui.keyCode.DOWN:case c.ui.keyCode.LEFT:a=
679
+ false;if(!b._keySliding){b._keySliding=true;c(this).addClass("ui-state-active");g=b._start(e,f);if(g===false)return}break}j=b.options.step;g=b.options.values&&b.options.values.length?(i=b.values(f)):(i=b.value());switch(e.keyCode){case c.ui.keyCode.HOME:i=b._valueMin();break;case c.ui.keyCode.END:i=b._valueMax();break;case c.ui.keyCode.PAGE_UP:i=g+(b._valueMax()-b._valueMin())/5;break;case c.ui.keyCode.PAGE_DOWN:i=g-(b._valueMax()-b._valueMin())/5;break;case c.ui.keyCode.UP:case c.ui.keyCode.RIGHT:if(g===
680
+ b._valueMax())return;i=g+j;break;case c.ui.keyCode.DOWN:case c.ui.keyCode.LEFT:if(g===b._valueMin())return;i=g-j;break}b._slide(e,f,i);return a}}).keyup(function(e){var a=c(this).data("index.ui-slider-handle");if(b._keySliding){b._keySliding=false;b._stop(e,a);b._change(e,a);c(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
681
+ this._mouseDestroy();return this},_mouseCapture:function(b){var d=this.options,e,a,f,g,i,j;if(d.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();e={x:b.pageX,y:b.pageY};a=this._normValueFromMouse(e);f=this._valueMax()-this._valueMin()+1;i=this;this.handles.each(function(m){var k=Math.abs(a-i.values(m));if(f>k){f=k;g=c(this);j=m}});if(d.range===true&&this.values(1)===d.min){j+=1;g=c(this.handles[j])}if(this._start(b,
682
+ j)===false)return false;this._mouseSliding=true;i._handleIndex=j;g.addClass("ui-state-active").focus();d=g.offset();this._clickOffset=!c(b.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:b.pageX-d.left-g.width()/2,top:b.pageY-d.top-g.height()/2-(parseInt(g.css("borderTopWidth"),10)||0)-(parseInt(g.css("borderBottomWidth"),10)||0)+(parseInt(g.css("marginTop"),10)||0)};a=this._normValueFromMouse(e);this._slide(b,j,a);return this._animateOff=true},_mouseStart:function(){return true},
683
+ _mouseDrag:function(b){var d=this._normValueFromMouse({x:b.pageX,y:b.pageY});this._slide(b,this._handleIndex,d);return false},_mouseStop:function(b){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(b,this._handleIndex);this._change(b,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(b){var d;
684
+ if(this.orientation==="horizontal"){d=this.elementSize.width;b=b.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{d=this.elementSize.height;b=b.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}d=b/d;if(d>1)d=1;if(d<0)d=0;if(this.orientation==="vertical")d=1-d;b=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+d*b)},_start:function(b,d){var e={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){e.value=
685
+ this.values(d);e.values=this.values()}return this._trigger("start",b,e)},_slide:function(b,d,e){var a;if(this.options.values&&this.options.values.length){a=this.values(d?0:1);if(this.options.values.length===2&&this.options.range===true&&(d===0&&e>a||d===1&&e<a))e=a;if(e!==this.values(d)){a=this.values();a[d]=e;b=this._trigger("slide",b,{handle:this.handles[d],value:e,values:a});this.values(d?0:1);b!==false&&this.values(d,e,true)}}else if(e!==this.value()){b=this._trigger("slide",b,{handle:this.handles[d],
686
+ value:e});b!==false&&this.value(e)}},_stop:function(b,d){var e={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){e.value=this.values(d);e.values=this.values()}this._trigger("stop",b,e)},_change:function(b,d){if(!this._keySliding&&!this._mouseSliding){var e={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){e.value=this.values(d);e.values=this.values()}this._trigger("change",b,e)}},value:function(b){if(arguments.length){this.options.value=
687
+ this._trimAlignValue(b);this._refreshValue();this._change(null,0)}return this._value()},values:function(b,d){var e,a,f;if(arguments.length>1){this.options.values[b]=this._trimAlignValue(d);this._refreshValue();this._change(null,b)}if(arguments.length)if(c.isArray(arguments[0])){e=this.options.values;a=arguments[0];for(f=0;f<e.length;f+=1){e[f]=this._trimAlignValue(a[f]);this._change(null,f)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(b):this.value();
688
+ else return this._values()},_setOption:function(b,d){var e,a=0;if(c.isArray(this.options.values))a=this.options.values.length;c.Widget.prototype._setOption.apply(this,arguments);switch(b){case "disabled":if(d){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}break;case "orientation":this._detectOrientation();
689
+ this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(e=0;e<a;e+=1)this._change(null,e);this._animateOff=false;break}},_value:function(){var b=this.options.value;return b=this._trimAlignValue(b)},_values:function(b){var d,e;if(arguments.length){d=this.options.values[b];
690
+ return d=this._trimAlignValue(d)}else{d=this.options.values.slice();for(e=0;e<d.length;e+=1)d[e]=this._trimAlignValue(d[e]);return d}},_trimAlignValue:function(b){if(b<this._valueMin())return this._valueMin();if(b>this._valueMax())return this._valueMax();var d=this.options.step,e=b%d;b=b-e;if(e>=d/2)b+=d;return parseFloat(b.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var b=this.options.range,d=this.options,e=this,
691
+ a=!this._animateOff?d.animate:false,f,g={},i,j,m,k;if(this.options.values&&this.options.values.length)this.handles.each(function(h){f=(e.values(h)-e._valueMin())/(e._valueMax()-e._valueMin())*100;g[e.orientation==="horizontal"?"left":"bottom"]=f+"%";c(this).stop(1,1)[a?"animate":"css"](g,d.animate);if(e.options.range===true)if(e.orientation==="horizontal"){if(h===0)e.range.stop(1,1)[a?"animate":"css"]({left:f+"%"},d.animate);if(h===1)e.range[a?"animate":"css"]({width:f-i+"%"},{queue:false,duration:d.animate})}else{if(h===
692
+ 0)e.range.stop(1,1)[a?"animate":"css"]({bottom:f+"%"},d.animate);if(h===1)e.range[a?"animate":"css"]({height:f-i+"%"},{queue:false,duration:d.animate})}i=f});else{j=this.value();m=this._valueMin();k=this._valueMax();f=k!==m?(j-m)/(k-m)*100:0;g[e.orientation==="horizontal"?"left":"bottom"]=f+"%";this.handle.stop(1,1)[a?"animate":"css"](g,d.animate);if(b==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[a?"animate":"css"]({width:f+"%"},d.animate);if(b==="max"&&this.orientation==="horizontal")this.range[a?
693
+ "animate":"css"]({width:100-f+"%"},{queue:false,duration:d.animate});if(b==="min"&&this.orientation==="vertical")this.range.stop(1,1)[a?"animate":"css"]({height:f+"%"},d.animate);if(b==="max"&&this.orientation==="vertical")this.range[a?"animate":"css"]({height:100-f+"%"},{queue:false,duration:d.animate})}}});c.extend(c.ui.slider,{version:"1.8.1"})})(jQuery);
695
694
  (function(c){c.widget("ui.sortable",c.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");
696
- 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 b=this.items.length-1;b>=0;b--)this.items[b].item.removeData("sortable-item");return this},_mouseCapture:function(b,d){if(this.reverting)return false;if(this.options.disabled||this.options.type==
697
- "static")return false;this._refreshItems(b);var e=null,a=this;c(b.target).parents().each(function(){if(c.data(this,"sortable-item")==a){e=c(this);return false}});if(c.data(b.target,"sortable-item")==a)e=c(b.target);if(!e)return false;if(this.options.handle&&!d){var f=false;c(this.options.handle,e).find("*").andSelf().each(function(){if(this==b.target)f=true});if(!f)return false}this.currentItem=e;this._removeCurrentsFromItems();return true},_mouseStart:function(b,d,e){d=this.options;var a=this;this.currentContainer=
698
- this;this.refreshPositions();this.helper=this._createHelper(b);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");c.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});
699
- this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();d.containment&&this._setContainment();if(d.cursor){if(c("body").css("cursor"))this._storedCursor=c("body").css("cursor");c("body").css("cursor",d.cursor)}if(d.opacity){if(this.helper.css("opacity"))this._storedOpacity=
700
- this.helper.css("opacity");this.helper.css("opacity",d.opacity)}if(d.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",d.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",b,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!e)for(e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("activate",b,a._uiHash(this));
701
- if(c.ui.ddmanager)c.ui.ddmanager.current=this;c.ui.ddmanager&&!d.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,b);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(b);return true},_mouseDrag:function(b){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var d=this.options,e=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!=
702
- "HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<d.scrollSensitivity)this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop+d.scrollSpeed;else if(b.pageY-this.overflowOffset.top<d.scrollSensitivity)this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop-d.scrollSpeed;if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-b.pageX<d.scrollSensitivity)this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft+d.scrollSpeed;else if(b.pageX-this.overflowOffset.left<
703
- d.scrollSensitivity)this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft-d.scrollSpeed}else{if(b.pageY-c(document).scrollTop()<d.scrollSensitivity)e=c(document).scrollTop(c(document).scrollTop()-d.scrollSpeed);else if(c(window).height()-(b.pageY-c(document).scrollTop())<d.scrollSensitivity)e=c(document).scrollTop(c(document).scrollTop()+d.scrollSpeed);if(b.pageX-c(document).scrollLeft()<d.scrollSensitivity)e=c(document).scrollLeft(c(document).scrollLeft()-d.scrollSpeed);else if(c(window).width()-
704
- (b.pageX-c(document).scrollLeft())<d.scrollSensitivity)e=c(document).scrollLeft(c(document).scrollLeft()+d.scrollSpeed)}e!==false&&c.ui.ddmanager&&!d.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,b)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(d=this.items.length-1;d>=0;d--){e=this.items[d];var a=
705
- e.item[0],f=this._intersectsWithPointer(e);if(f)if(a!=this.currentItem[0]&&this.placeholder[f==1?"next":"prev"]()[0]!=a&&!c.ui.contains(this.placeholder[0],a)&&(this.options.type=="semi-dynamic"?!c.ui.contains(this.element[0],a):true)){this.direction=f==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(e))this._rearrange(b,e);else break;this._trigger("change",b,this._uiHash());break}}this._contactContainers(b);c.ui.ddmanager&&c.ui.ddmanager.drag(this,b);this._trigger("sort",
706
- b,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(b,d){if(b){c.ui.ddmanager&&!this.options.dropBehaviour&&c.ui.ddmanager.drop(this,b);if(this.options.revert){var e=this;d=e.placeholder.offset();e.reverting=true;c(this.helper).animate({left:d.left-this.offset.parent.left-e.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:d.top-this.offset.parent.top-e.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},
707
- parseInt(this.options.revert,10)||500,function(){e._clear(b)})}else this._clear(b,d);return false}},cancel:function(){var b=this;if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("deactivate",null,b._uiHash(this));if(this.containers[d].containerCache.over){this.containers[d]._trigger("out",null,b._uiHash(this));this.containers[d].containerCache.over=
708
- 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();c.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?c(this.domPosition.prev).after(this.currentItem):c(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(b){var d=this._getItemsAsjQuery(b&&b.connected),e=[];b=b||{};c(d).each(function(){var a=
709
- (c(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[-=_](.+)/);if(a)e.push((b.key||a[1]+"[]")+"="+(b.key&&b.expression?a[1]:a[2]))});return e.join("&")},toArray:function(b){var d=this._getItemsAsjQuery(b&&b.connected),e=[];b=b||{};d.each(function(){e.push(c(b.item||this).attr(b.attribute||"id")||"")});return e},_intersectsWith:function(b){var d=this.positionAbs.left,e=d+this.helperProportions.width,a=this.positionAbs.top,f=a+this.helperProportions.height,g=b.left,i=g+b.width,j=
710
- b.top,m=j+b.height,k=this.offset.click.top,h=this.offset.click.left;k=a+k>j&&a+k<m&&d+h>g&&d+h<i;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>b[this.floating?"width":"height"]?k:g<d+this.helperProportions.width/2&&e-this.helperProportions.width/2<i&&j<a+this.helperProportions.height/2&&f-this.helperProportions.height/2<m},_intersectsWithPointer:function(b){var d=c.ui.isOverAxis(this.positionAbs.top+
711
- this.offset.click.top,b.top,b.height);b=c.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left,b.width);d=d&&b;b=this._getDragVerticalDirection();var e=this._getDragHorizontalDirection();if(!d)return false;return this.floating?e&&e=="right"||b=="down"?2:1:b&&(b=="down"?2:1)},_intersectsWithSides:function(b){var d=c.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top+b.height/2,b.height);b=c.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left+b.width/2,b.width);
712
- var e=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();return this.floating&&a?a=="right"&&b||a=="left"&&!b:e&&(e=="down"&&d||e=="up"&&!d)},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!=0&&(b>0?"down":"up")},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;return b!=0&&(b>0?"right":"left")},refresh:function(b){this._refreshItems(b);this.refreshPositions();return this},_connectWith:function(){var b=
713
- this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(b){var d=[],e=[],a=this._connectWith();if(a&&b)for(b=a.length-1;b>=0;b--)for(var f=c(a[b]),g=f.length-1;g>=0;g--){var i=c.data(f[g],"sortable");if(i&&i!=this&&!i.options.disabled)e.push([c.isFunction(i.options.items)?i.options.items.call(i.element):c(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i])}e.push([c.isFunction(this.options.items)?this.options.items.call(this.element,
714
- null,{options:this.options,item:this.currentItem}):c(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(b=e.length-1;b>=0;b--)e[b][0].each(function(){d.push(this)});return c(d)},_removeCurrentsFromItems:function(){for(var b=this.currentItem.find(":data(sortable-item)"),d=0;d<this.items.length;d++)for(var e=0;e<b.length;e++)b[e]==this.items[d].item[0]&&this.items.splice(d,1)},_refreshItems:function(b){this.items=[];this.containers=[this];var d=this.items,
715
- e=[[c.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):c(this.options.items,this.element),this]],a=this._connectWith();if(a)for(var f=a.length-1;f>=0;f--)for(var g=c(a[f]),i=g.length-1;i>=0;i--){var j=c.data(g[i],"sortable");if(j&&j!=this&&!j.options.disabled){e.push([c.isFunction(j.options.items)?j.options.items.call(j.element[0],b,{item:this.currentItem}):c(j.options.items,j.element),j]);this.containers.push(j)}}for(f=e.length-1;f>=0;f--){b=e[f][1];
716
- a=e[f][0];i=0;for(g=a.length;i<g;i++){j=c(a[i]);j.data("sortable-item",b);d.push({item:j,instance:b,width:0,height:0,left:0,top:0})}}},refreshPositions:function(b){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var d=this.items.length-1;d>=0;d--){var e=this.items[d],a=this.options.toleranceElement?c(this.options.toleranceElement,e.item):e.item;if(!b){e.width=a.outerWidth();e.height=a.outerHeight()}a=a.offset();e.left=a.left;e.top=a.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);
717
- else for(d=this.containers.length-1;d>=0;d--){a=this.containers[d].element.offset();this.containers[d].containerCache.left=a.left;this.containers[d].containerCache.top=a.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=this.containers[d].element.outerHeight()}return this},_createPlaceholder:function(b){var d=b||this,e=d.options;if(!e.placeholder||e.placeholder.constructor==String){var a=e.placeholder;e.placeholder={element:function(){var f=
718
- c(document.createElement(d.currentItem[0].nodeName)).addClass(a||d.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!a)f.style.visibility="hidden";return f},update:function(f,g){if(!(a&&!e.forcePlaceholderSize)){g.height()||g.height(d.currentItem.innerHeight()-parseInt(d.currentItem.css("paddingTop")||0,10)-parseInt(d.currentItem.css("paddingBottom")||0,10));g.width()||g.width(d.currentItem.innerWidth()-parseInt(d.currentItem.css("paddingLeft")||0,10)-parseInt(d.currentItem.css("paddingRight")||
719
- 0,10))}}}}d.placeholder=c(e.placeholder.element.call(d.element,d.currentItem));d.currentItem.after(d.placeholder);e.placeholder.update(d,d.placeholder)},_contactContainers:function(b){for(var d=null,e=null,a=this.containers.length-1;a>=0;a--)if(!c.ui.contains(this.currentItem[0],this.containers[a].element[0]))if(this._intersectsWith(this.containers[a].containerCache)){if(!(d&&c.ui.contains(this.containers[a].element[0],d.element[0]))){d=this.containers[a];e=a}}else if(this.containers[a].containerCache.over){this.containers[a]._trigger("out",
720
- b,this._uiHash(this));this.containers[a].containerCache.over=0}if(d)if(this.containers.length===1){this.containers[e]._trigger("over",b,this._uiHash(this));this.containers[e].containerCache.over=1}else if(this.currentContainer!=this.containers[e]){d=1E4;a=null;for(var f=this.positionAbs[this.containers[e].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(c.ui.contains(this.containers[e].element[0],this.items[g].item[0])){var i=this.items[g][this.containers[e].floating?"left":"top"];if(Math.abs(i-
721
- f)<d){d=Math.abs(i-f);a=this.items[g]}}if(a||this.options.dropOnEmpty){this.currentContainer=this.containers[e];a?this._rearrange(b,a,null,true):this._rearrange(b,null,this.containers[e].element,true);this._trigger("change",b,this._uiHash());this.containers[e]._trigger("change",b,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[e]._trigger("over",b,this._uiHash(this));this.containers[e].containerCache.over=1}}},_createHelper:function(b){var d=
722
- this.options;b=c.isFunction(d.helper)?c(d.helper.apply(this.element[0],[b,this.currentItem])):d.helper=="clone"?this.currentItem.clone():this.currentItem;b.parents("body").length||c(d.appendTo!="parent"?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0]);if(b[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(b[0].style.width==
723
- ""||d.forceHelperSize)b.width(this.currentItem.width());if(b[0].style.height==""||d.forceHelperSize)b.height(this.currentItem.height());return b},_adjustOffsetFromHelper:function(b){if(typeof b=="string")b=b.split(" ");if(c.isArray(b))b={left:+b[0],top:+b[1]||0};if("left"in b)this.offset.click.left=b.left+this.margins.left;if("right"in b)this.offset.click.left=this.helperProportions.width-b.right+this.margins.left;if("top"in b)this.offset.click.top=b.top+this.margins.top;if("bottom"in b)this.offset.click.top=
724
- this.helperProportions.height-b.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&c.browser.msie)b=
725
- {top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.currentItem.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.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"),
726
- 10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;if(b.containment=="parent")b.containment=this.helper[0].parentNode;if(b.containment=="document"||b.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,c(b.containment=="document"?
727
- document:window).width()-this.helperProportions.width-this.margins.left,(c(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)){var d=c(b.containment)[0];b=c(b.containment).offset();var e=c(d).css("overflow")!="hidden";this.containment=[b.left+(parseInt(c(d).css("borderLeftWidth"),10)||0)+(parseInt(c(d).css("paddingLeft"),10)||0)-this.margins.left,b.top+(parseInt(c(d).css("borderTopWidth"),
728
- 10)||0)+(parseInt(c(d).css("paddingTop"),10)||0)-this.margins.top,b.left+(e?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(c(d).css("borderLeftWidth"),10)||0)-(parseInt(c(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,b.top+(e?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(c(d).css("borderTopWidth"),10)||0)-(parseInt(c(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(b,d){if(!d)d=
729
- this.position;b=b=="absolute"?1:-1;var e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,a=/(html|body)/i.test(e[0].tagName);return{top:d.top+this.offset.relative.top*b+this.offset.parent.top*b-(c.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():a?0:e.scrollTop())*b),left:d.left+this.offset.relative.left*b+this.offset.parent.left*b-(c.browser.safari&&
730
- this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():a?0:e.scrollLeft())*b)}},_generatePosition:function(b){var d=this.options,e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,a=/(html|body)/i.test(e[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();
731
- var f=b.pageX,g=b.pageY;if(this.originalPosition){if(this.containment){if(b.pageX-this.offset.click.left<this.containment[0])f=this.containment[0]+this.offset.click.left;if(b.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(b.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(b.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(d.grid){g=this.originalPageY+Math.round((g-
732
- this.originalPageY)/d.grid[1])*d.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-d.grid[1]:g+d.grid[1]:g;f=this.originalPageX+Math.round((f-this.originalPageX)/d.grid[0])*d.grid[0];f=this.containment?!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:!(f-this.offset.click.left<this.containment[0])?f-d.grid[0]:f+d.grid[0]:f}}return{top:g-
733
- this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(c.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():a?0:e.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(c.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():a?0:e.scrollLeft())}},_rearrange:function(b,d,e,a){e?e[0].appendChild(this.placeholder[0]):d.item[0].parentNode.insertBefore(this.placeholder[0],
734
- this.direction=="down"?d.item[0]:d.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var f=this,g=this.counter;window.setTimeout(function(){g==f.counter&&f.refreshPositions(!a)},0)},_clear:function(b,d){this.reverting=false;var e=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var a in this._storedCSS)if(this._storedCSS[a]=="auto"||this._storedCSS[a]=="static")this._storedCSS[a]=
735
- "";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!d&&e.push(function(f){this._trigger("receive",f,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])&&!d)e.push(function(f){this._trigger("update",f,this._uiHash())});if(!c.ui.contains(this.element[0],this.currentItem[0])){d||e.push(function(f){this._trigger("remove",
736
- f,this._uiHash())});for(a=this.containers.length-1;a>=0;a--)if(c.ui.contains(this.containers[a].element[0],this.currentItem[0])&&!d){e.push(function(f){return function(g){f._trigger("receive",g,this._uiHash(this))}}.call(this,this.containers[a]));e.push(function(f){return function(g){f._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[a]))}}for(a=this.containers.length-1;a>=0;a--){d||e.push(function(f){return function(g){f._trigger("deactivate",g,this._uiHash(this))}}.call(this,
737
- this.containers[a]));if(this.containers[a].containerCache.over){e.push(function(f){return function(g){f._trigger("out",g,this._uiHash(this))}}.call(this,this.containers[a]));this.containers[a].containerCache.over=0}}this._storedCursor&&c("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(!d){this._trigger("beforeStop",
738
- b,this._uiHash());for(a=0;a<e.length;a++)e[a].call(this,b);this._trigger("stop",b,this._uiHash())}return false}d||this._trigger("beforeStop",b,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!d){for(a=0;a<e.length;a++)e[a].call(this,b);this._trigger("stop",b,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){c.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},
739
- _uiHash:function(b){var d=b||this;return{helper:d.helper,placeholder:d.placeholder||c([]),position:d.position,originalPosition:d.originalPosition,offset:d.positionAbs,item:d.currentItem,sender:b?b.element:null}}});c.extend(c.ui.sortable,{version:"1.8"})})(jQuery);
695
+ 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 b=this.items.length-1;b>=0;b--)this.items[b].item.removeData("sortable-item");return this},_setOption:function(b,d){if(b==="disabled"){this.options[b]=d;this.widget()[d?"addClass":"removeClass"]("ui-sortable-disabled")}else c.Widget.prototype._setOption.apply(self,
696
+ arguments)},_mouseCapture:function(b,d){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(b);var e=null,a=this;c(b.target).parents().each(function(){if(c.data(this,"sortable-item")==a){e=c(this);return false}});if(c.data(b.target,"sortable-item")==a)e=c(b.target);if(!e)return false;if(this.options.handle&&!d){var f=false;c(this.options.handle,e).find("*").andSelf().each(function(){if(this==b.target)f=true});if(!f)return false}this.currentItem=
697
+ e;this._removeCurrentsFromItems();return true},_mouseStart:function(b,d,e){d=this.options;var a=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(b);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");c.extend(this.offset,
698
+ {click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();d.containment&&this._setContainment();
699
+ if(d.cursor){if(c("body").css("cursor"))this._storedCursor=c("body").css("cursor");c("body").css("cursor",d.cursor)}if(d.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",d.opacity)}if(d.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",d.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",
700
+ b,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!e)for(e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("activate",b,a._uiHash(this));if(c.ui.ddmanager)c.ui.ddmanager.current=this;c.ui.ddmanager&&!d.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,b);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(b);return true},_mouseDrag:function(b){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");
701
+ if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var d=this.options,e=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<d.scrollSensitivity)this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop+d.scrollSpeed;else if(b.pageY-this.overflowOffset.top<d.scrollSensitivity)this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop-d.scrollSpeed;if(this.overflowOffset.left+
702
+ this.scrollParent[0].offsetWidth-b.pageX<d.scrollSensitivity)this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft+d.scrollSpeed;else if(b.pageX-this.overflowOffset.left<d.scrollSensitivity)this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft-d.scrollSpeed}else{if(b.pageY-c(document).scrollTop()<d.scrollSensitivity)e=c(document).scrollTop(c(document).scrollTop()-d.scrollSpeed);else if(c(window).height()-(b.pageY-c(document).scrollTop())<d.scrollSensitivity)e=c(document).scrollTop(c(document).scrollTop()+
703
+ d.scrollSpeed);if(b.pageX-c(document).scrollLeft()<d.scrollSensitivity)e=c(document).scrollLeft(c(document).scrollLeft()-d.scrollSpeed);else if(c(window).width()-(b.pageX-c(document).scrollLeft())<d.scrollSensitivity)e=c(document).scrollLeft(c(document).scrollLeft()+d.scrollSpeed)}e!==false&&c.ui.ddmanager&&!d.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,b)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+
704
+ "px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(d=this.items.length-1;d>=0;d--){e=this.items[d];var a=e.item[0],f=this._intersectsWithPointer(e);if(f)if(a!=this.currentItem[0]&&this.placeholder[f==1?"next":"prev"]()[0]!=a&&!c.ui.contains(this.placeholder[0],a)&&(this.options.type=="semi-dynamic"?!c.ui.contains(this.element[0],a):true)){this.direction=f==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(e))this._rearrange(b,
705
+ e);else break;this._trigger("change",b,this._uiHash());break}}this._contactContainers(b);c.ui.ddmanager&&c.ui.ddmanager.drag(this,b);this._trigger("sort",b,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(b,d){if(b){c.ui.ddmanager&&!this.options.dropBehaviour&&c.ui.ddmanager.drop(this,b);if(this.options.revert){var e=this;d=e.placeholder.offset();e.reverting=true;c(this.helper).animate({left:d.left-this.offset.parent.left-e.margins.left+(this.offsetParent[0]==
706
+ document.body?0:this.offsetParent[0].scrollLeft),top:d.top-this.offset.parent.top-e.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){e._clear(b)})}else this._clear(b,d);return false}},cancel:function(){var b=this;if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("deactivate",
707
+ null,b._uiHash(this));if(this.containers[d].containerCache.over){this.containers[d]._trigger("out",null,b._uiHash(this));this.containers[d].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();c.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?c(this.domPosition.prev).after(this.currentItem):
708
+ c(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(b){var d=this._getItemsAsjQuery(b&&b.connected),e=[];b=b||{};c(d).each(function(){var a=(c(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[-=_](.+)/);if(a)e.push((b.key||a[1]+"[]")+"="+(b.key&&b.expression?a[1]:a[2]))});return e.join("&")},toArray:function(b){var d=this._getItemsAsjQuery(b&&b.connected),e=[];b=b||{};d.each(function(){e.push(c(b.item||this).attr(b.attribute||"id")||"")});return e},
709
+ _intersectsWith:function(b){var d=this.positionAbs.left,e=d+this.helperProportions.width,a=this.positionAbs.top,f=a+this.helperProportions.height,g=b.left,i=g+b.width,j=b.top,m=j+b.height,k=this.offset.click.top,h=this.offset.click.left;k=a+k>j&&a+k<m&&d+h>g&&d+h<i;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>b[this.floating?"width":"height"]?k:g<d+this.helperProportions.width/
710
+ 2&&e-this.helperProportions.width/2<i&&j<a+this.helperProportions.height/2&&f-this.helperProportions.height/2<m},_intersectsWithPointer:function(b){var d=c.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top,b.height);b=c.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left,b.width);d=d&&b;b=this._getDragVerticalDirection();var e=this._getDragHorizontalDirection();if(!d)return false;return this.floating?e&&e=="right"||b=="down"?2:1:b&&(b=="down"?2:1)},_intersectsWithSides:function(b){var d=
711
+ c.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top+b.height/2,b.height);b=c.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left+b.width/2,b.width);var e=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();return this.floating&&a?a=="right"&&b||a=="left"&&!b:e&&(e=="down"&&d||e=="up"&&!d)},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!=0&&(b>0?"down":"up")},_getDragHorizontalDirection:function(){var b=
712
+ this.positionAbs.left-this.lastPositionAbs.left;return b!=0&&(b>0?"right":"left")},refresh:function(b){this._refreshItems(b);this.refreshPositions();return this},_connectWith:function(){var b=this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(b){var d=[],e=[],a=this._connectWith();if(a&&b)for(b=a.length-1;b>=0;b--)for(var f=c(a[b]),g=f.length-1;g>=0;g--){var i=c.data(f[g],"sortable");if(i&&i!=this&&!i.options.disabled)e.push([c.isFunction(i.options.items)?
713
+ i.options.items.call(i.element):c(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i])}e.push([c.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):c(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(b=e.length-1;b>=0;b--)e[b][0].each(function(){d.push(this)});return c(d)},_removeCurrentsFromItems:function(){for(var b=this.currentItem.find(":data(sortable-item)"),
714
+ d=0;d<this.items.length;d++)for(var e=0;e<b.length;e++)b[e]==this.items[d].item[0]&&this.items.splice(d,1)},_refreshItems:function(b){this.items=[];this.containers=[this];var d=this.items,e=[[c.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):c(this.options.items,this.element),this]],a=this._connectWith();if(a)for(var f=a.length-1;f>=0;f--)for(var g=c(a[f]),i=g.length-1;i>=0;i--){var j=c.data(g[i],"sortable");if(j&&j!=this&&!j.options.disabled){e.push([c.isFunction(j.options.items)?
715
+ j.options.items.call(j.element[0],b,{item:this.currentItem}):c(j.options.items,j.element),j]);this.containers.push(j)}}for(f=e.length-1;f>=0;f--){b=e[f][1];a=e[f][0];i=0;for(g=a.length;i<g;i++){j=c(a[i]);j.data("sortable-item",b);d.push({item:j,instance:b,width:0,height:0,left:0,top:0})}}},refreshPositions:function(b){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var d=this.items.length-1;d>=0;d--){var e=this.items[d],a=this.options.toleranceElement?c(this.options.toleranceElement,
716
+ e.item):e.item;if(!b){e.width=a.outerWidth();e.height=a.outerHeight()}a=a.offset();e.left=a.left;e.top=a.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(d=this.containers.length-1;d>=0;d--){a=this.containers[d].element.offset();this.containers[d].containerCache.left=a.left;this.containers[d].containerCache.top=a.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=
717
+ this.containers[d].element.outerHeight()}return this},_createPlaceholder:function(b){var d=b||this,e=d.options;if(!e.placeholder||e.placeholder.constructor==String){var a=e.placeholder;e.placeholder={element:function(){var f=c(document.createElement(d.currentItem[0].nodeName)).addClass(a||d.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!a)f.style.visibility="hidden";return f},update:function(f,g){if(!(a&&!e.forcePlaceholderSize)){g.height()||g.height(d.currentItem.innerHeight()-
718
+ parseInt(d.currentItem.css("paddingTop")||0,10)-parseInt(d.currentItem.css("paddingBottom")||0,10));g.width()||g.width(d.currentItem.innerWidth()-parseInt(d.currentItem.css("paddingLeft")||0,10)-parseInt(d.currentItem.css("paddingRight")||0,10))}}}}d.placeholder=c(e.placeholder.element.call(d.element,d.currentItem));d.currentItem.after(d.placeholder);e.placeholder.update(d,d.placeholder)},_contactContainers:function(b){for(var d=null,e=null,a=this.containers.length-1;a>=0;a--)if(!c.ui.contains(this.currentItem[0],
719
+ this.containers[a].element[0]))if(this._intersectsWith(this.containers[a].containerCache)){if(!(d&&c.ui.contains(this.containers[a].element[0],d.element[0]))){d=this.containers[a];e=a}}else if(this.containers[a].containerCache.over){this.containers[a]._trigger("out",b,this._uiHash(this));this.containers[a].containerCache.over=0}if(d)if(this.containers.length===1){this.containers[e]._trigger("over",b,this._uiHash(this));this.containers[e].containerCache.over=1}else if(this.currentContainer!=this.containers[e]){d=
720
+ 1E4;a=null;for(var f=this.positionAbs[this.containers[e].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(c.ui.contains(this.containers[e].element[0],this.items[g].item[0])){var i=this.items[g][this.containers[e].floating?"left":"top"];if(Math.abs(i-f)<d){d=Math.abs(i-f);a=this.items[g]}}if(a||this.options.dropOnEmpty){this.currentContainer=this.containers[e];a?this._rearrange(b,a,null,true):this._rearrange(b,null,this.containers[e].element,true);this._trigger("change",b,this._uiHash());this.containers[e]._trigger("change",
721
+ b,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[e]._trigger("over",b,this._uiHash(this));this.containers[e].containerCache.over=1}}},_createHelper:function(b){var d=this.options;b=c.isFunction(d.helper)?c(d.helper.apply(this.element[0],[b,this.currentItem])):d.helper=="clone"?this.currentItem.clone():this.currentItem;b.parents("body").length||c(d.appendTo!="parent"?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0]);if(b[0]==
722
+ 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(b[0].style.width==""||d.forceHelperSize)b.width(this.currentItem.width());if(b[0].style.height==""||d.forceHelperSize)b.height(this.currentItem.height());return b},_adjustOffsetFromHelper:function(b){if(typeof b=="string")b=b.split(" ");if(c.isArray(b))b={left:+b[0],top:+b[1]||
723
+ 0};if("left"in b)this.offset.click.left=b.left+this.margins.left;if("right"in b)this.offset.click.left=this.helperProportions.width-b.right+this.margins.left;if("top"in b)this.offset.click.top=b.top+this.margins.top;if("bottom"in b)this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],
724
+ this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&c.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.currentItem.position();return{top:b.top-
725
+ (parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;
726
+ if(b.containment=="parent")b.containment=this.helper[0].parentNode;if(b.containment=="document"||b.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,c(b.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(c(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)){var d=
727
+ c(b.containment)[0];b=c(b.containment).offset();var e=c(d).css("overflow")!="hidden";this.containment=[b.left+(parseInt(c(d).css("borderLeftWidth"),10)||0)+(parseInt(c(d).css("paddingLeft"),10)||0)-this.margins.left,b.top+(parseInt(c(d).css("borderTopWidth"),10)||0)+(parseInt(c(d).css("paddingTop"),10)||0)-this.margins.top,b.left+(e?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(c(d).css("borderLeftWidth"),10)||0)-(parseInt(c(d).css("paddingRight"),10)||0)-this.helperProportions.width-
728
+ this.margins.left,b.top+(e?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(c(d).css("borderTopWidth"),10)||0)-(parseInt(c(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(b,d){if(!d)d=this.position;b=b=="absolute"?1:-1;var e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,a=/(html|body)/i.test(e[0].tagName);return{top:d.top+
729
+ this.offset.relative.top*b+this.offset.parent.top*b-(c.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():a?0:e.scrollTop())*b),left:d.left+this.offset.relative.left*b+this.offset.parent.left*b-(c.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():a?0:e.scrollLeft())*b)}},_generatePosition:function(b){var d=this.options,e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],
730
+ this.offsetParent[0]))?this.offsetParent:this.scrollParent,a=/(html|body)/i.test(e[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var f=b.pageX,g=b.pageY;if(this.originalPosition){if(this.containment){if(b.pageX-this.offset.click.left<this.containment[0])f=this.containment[0]+this.offset.click.left;if(b.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;
731
+ if(b.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(b.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(d.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/d.grid[1])*d.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-d.grid[1]:g+d.grid[1]:g;f=this.originalPageX+Math.round((f-
732
+ this.originalPageX)/d.grid[0])*d.grid[0];f=this.containment?!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:!(f-this.offset.click.left<this.containment[0])?f-d.grid[0]:f+d.grid[0]:f}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(c.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():a?0:e.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+
733
+ (c.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():a?0:e.scrollLeft())}},_rearrange:function(b,d,e,a){e?e[0].appendChild(this.placeholder[0]):d.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?d.item[0]:d.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var f=this,g=this.counter;window.setTimeout(function(){g==f.counter&&f.refreshPositions(!a)},0)},_clear:function(b,d){this.reverting=false;var e=[];!this._noFinalSort&&
734
+ this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var a in this._storedCSS)if(this._storedCSS[a]=="auto"||this._storedCSS[a]=="static")this._storedCSS[a]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!d&&e.push(function(f){this._trigger("receive",f,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||
735
+ this.domPosition.parent!=this.currentItem.parent()[0])&&!d)e.push(function(f){this._trigger("update",f,this._uiHash())});if(!c.ui.contains(this.element[0],this.currentItem[0])){d||e.push(function(f){this._trigger("remove",f,this._uiHash())});for(a=this.containers.length-1;a>=0;a--)if(c.ui.contains(this.containers[a].element[0],this.currentItem[0])&&!d){e.push(function(f){return function(g){f._trigger("receive",g,this._uiHash(this))}}.call(this,this.containers[a]));e.push(function(f){return function(g){f._trigger("update",
736
+ g,this._uiHash(this))}}.call(this,this.containers[a]))}}for(a=this.containers.length-1;a>=0;a--){d||e.push(function(f){return function(g){f._trigger("deactivate",g,this._uiHash(this))}}.call(this,this.containers[a]));if(this.containers[a].containerCache.over){e.push(function(f){return function(g){f._trigger("out",g,this._uiHash(this))}}.call(this,this.containers[a]));this.containers[a].containerCache.over=0}}this._storedCursor&&c("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",
737
+ this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!d){this._trigger("beforeStop",b,this._uiHash());for(a=0;a<e.length;a++)e[a].call(this,b);this._trigger("stop",b,this._uiHash())}return false}d||this._trigger("beforeStop",b,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!d){for(a=
738
+ 0;a<e.length;a++)e[a].call(this,b);this._trigger("stop",b,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){c.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(b){var d=b||this;return{helper:d.helper,placeholder:d.placeholder||c([]),position:d.position,originalPosition:d.originalPosition,offset:d.positionAbs,item:d.currentItem,sender:b?b.element:null}}});c.extend(c.ui.sortable,{version:"1.8.1"})})(jQuery);
740
739
  (function(c){var b=0,d=0;c.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'},_create:function(){this._tabify(true)},_setOption:function(e,a){if(e=="selected")this.options.collapsible&&a==this.options.selected||
741
740
  this.select(a);else{this.options[e]=a;this._tabify()}},_tabId:function(e){return e.title&&e.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+ ++b},_sanitizeSelector:function(e){return e.replace(/:/g,"\\:")},_cookie:function(){var e=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++d);return c.cookie.apply(null,[e].concat(c.makeArray(arguments)))},_ui:function(e,a){return{tab:e,panel:a,index:this.anchors.index(e)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var e=
742
741
  c(this);e.html(e.data("label.tabs")).removeData("label.tabs")})},_tabify:function(e){function a(p,q){p.css({display:""});!c.support.opacity&&q.opacity&&p[0].style.removeAttribute("filter")}this.list=this.element.find("ol,ul").eq(0);this.lis=c("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return c("a",this)[0]});this.panels=c([]);var f=this,g=this.options,i=/^#.+/;this.anchors.each(function(p,q){var r=c(q).attr("href"),s=r.split("#")[0],u;if(s&&(s===location.toString().split("#")[0]||
@@ -756,11 +755,11 @@ this.element.queue("tabs",function(){g._trigger("show",null,g._ui(g.anchors[0],g
756
755
  null,this._ui(f.find("a")[0],g[0]));return this},enable:function(e){var a=this.options;if(c.inArray(e,a.disabled)!=-1){this.lis.eq(e).removeClass("ui-state-disabled");a.disabled=c.grep(a.disabled,function(f){return f!=e});this._trigger("enable",null,this._ui(this.anchors[e],this.panels[e]));return this}},disable:function(e){var a=this.options;if(e!=a.selected){this.lis.eq(e).addClass("ui-state-disabled");a.disabled.push(e);a.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[e],this.panels[e]))}return this},
757
756
  select:function(e){if(typeof e=="string")e=this.anchors.index(this.anchors.filter("[href$="+e+"]"));else if(e===null)e=-1;if(e==-1&&this.options.collapsible)e=this.options.selected;this.anchors.eq(e).trigger(this.options.event+".tabs");return this},load:function(e){var a=this,f=this.options,g=this.anchors.eq(e)[0],i=c.data(g,"load.tabs");this.abort();if(!i||this.element.queue("tabs").length!==0&&c.data(g,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(e).addClass("ui-state-processing");
758
757
  if(f.spinner){var j=c("span",g);j.data("label.tabs",j.html()).html(f.spinner)}this.xhr=c.ajax(c.extend({},f.ajaxOptions,{url:i,success:function(m,k){c(a._sanitizeSelector(g.hash)).html(m);a._cleanup();f.cache&&c.data(g,"cache.tabs",true);a._trigger("load",null,a._ui(a.anchors[e],a.panels[e]));try{f.ajaxOptions.success(m,k)}catch(h){}},error:function(m,k){a._cleanup();a._trigger("load",null,a._ui(a.anchors[e],a.panels[e]));try{f.ajaxOptions.error(m,k,e,g)}catch(h){}}}));a.element.dequeue("tabs");return this}},
759
- abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(e,a){this.anchors.eq(e).removeData("cache.tabs").data("load.tabs",a);return this},length:function(){return this.anchors.length}});c.extend(c.ui.tabs,{version:"1.8"});c.extend(c.ui.tabs.prototype,{rotation:null,rotate:function(e,a){var f=this,g=this.options,i=f._rotate||(f._rotate=
758
+ abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(e,a){this.anchors.eq(e).removeData("cache.tabs").data("load.tabs",a);return this},length:function(){return this.anchors.length}});c.extend(c.ui.tabs,{version:"1.8.1"});c.extend(c.ui.tabs.prototype,{rotation:null,rotate:function(e,a){var f=this,g=this.options,i=f._rotate||(f._rotate=
760
759
  function(j){clearTimeout(f.rotation);f.rotation=setTimeout(function(){var m=g.selected;f.select(++m<f.anchors.length?m:0)},e);j&&j.stopPropagation()});a=f._unrotate||(f._unrotate=!a?function(j){j.clientX&&f.rotate(null)}:function(){t=g.selected;i()});if(e){this.element.bind("tabsshow",i);this.anchors.bind(g.event+".tabs",a);i()}else{clearTimeout(f.rotation);this.element.unbind("tabsshow",i);this.anchors.unbind(g.event+".tabs",a);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
761
760
  (function(c){var b=c.fn.remove;c.fn.remove=function(d,e){return this.each(function(){if(!e)if(!d||c.filter(d,[this]).length)c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return b.call(c(this),d,e)})};c.widget=function(d,e,a){var f=d.split(".")[0],g;d=d.split(".")[1];g=f+"-"+d;if(!a){a=e;e=c.Widget}c.expr[":"][g]=function(i){return!!c.data(i,d)};c[f]=c[f]||{};c[f][d]=function(i,j){arguments.length&&this._createWidget(i,j)};e=new e;e.options=c.extend({},e.options);c[f][d].prototype=
762
761
  c.extend(true,e,{namespace:f,widgetName:d,widgetEventPrefix:c[f][d].prototype.widgetEventPrefix||d,widgetBaseClass:g},a);c.widget.bridge(d,c[f][d])};c.widget.bridge=function(d,e){c.fn[d]=function(a){var f=typeof a==="string",g=Array.prototype.slice.call(arguments,1),i=this;a=!f&&g.length?c.extend.apply(null,[true,a].concat(g)):a;if(f&&a.substring(0,1)==="_")return i;f?this.each(function(){var j=c.data(this,d),m=j&&c.isFunction(j[a])?j[a].apply(j,g):j;if(m!==j&&m!==undefined){i=m;return false}}):this.each(function(){var j=
763
762
  c.data(this,d);if(j){a&&j.option(a);j._init()}else c.data(this,d,new e(a,this))});return i}};c.Widget=function(d,e){arguments.length&&this._createWidget(d,e)};c.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(d,e){this.element=c(e).data(this.widgetName,this);this.options=c.extend(true,{},this.options,c.metadata&&c.metadata.get(e)[this.widgetName],d);var a=this;this.element.bind("remove."+this.widgetName,function(){a.destroy()});this._create();
764
- this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled")},widget:function(){return this.element},option:function(d,e){var a=d,f=this;if(arguments.length===0)return c.extend({},f.options);if(typeof d==="string"){if(e===undefined)return this.options[d];a={};a[d]=e}c.each(a,
765
- function(g,i){f._setOption(g,i)});return f},_setOption:function(d,e){this.options[d]=e;if(d==="disabled")this.widget()[e?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",e);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(d,e,a){var f=this.options[d];e=c.Event(e);e.type=(d===this.widgetEventPrefix?d:this.widgetEventPrefix+d).toLowerCase();
766
- a=a||{};if(e.originalEvent){d=c.event.props.length;for(var g;d;){g=c.event.props[--d];e[g]=e.originalEvent[g]}}this.element.trigger(e,a);return!(c.isFunction(f)&&f.call(this.element[0],e,a)===false||e.isDefaultPrevented())}}})(jQuery);
763
+ this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(d,e){var a=d,f=this;if(arguments.length===0)return c.extend({},f.options);if(typeof d==="string"){if(e===undefined)return this.options[d];a={};a[d]=e}c.each(a,function(g,
764
+ i){f._setOption(g,i)});return f},_setOption:function(d,e){this.options[d]=e;if(d==="disabled")this.widget()[e?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",e);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(d,e,a){var f=this.options[d];e=c.Event(e);e.type=(d===this.widgetEventPrefix?d:this.widgetEventPrefix+d).toLowerCase();a=a||{};if(e.originalEvent){d=
765
+ c.event.props.length;for(var g;d;){g=c.event.props[--d];e[g]=e.originalEvent[g]}}this.element.trigger(e,a);return!(c.isFunction(f)&&f.call(this.element[0],e,a)===false||e.isDefaultPrevented())}}})(jQuery);