compass-jquery-plugin 0.3.0.beta.22 → 0.3.0.beta.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1192) hide show
  1. data/README.textile +59 -17
  2. data/Rakefile +51 -51
  3. data/VERSION.yml +1 -1
  4. data/compass-jquery-plugin.gemspec +1132 -1049
  5. data/gem_tasks/dynatree.rake +76 -76
  6. data/gem_tasks/emulators.rake +57 -0
  7. data/gem_tasks/jqgrid.rake +118 -118
  8. data/gem_tasks/jqical.rake +85 -85
  9. data/gem_tasks/jqtools.rake +60 -0
  10. data/gem_tasks/jqtouch.rake +20 -40
  11. data/gem_tasks/jrails.rake +35 -25
  12. data/gem_tasks/jstree.rake +96 -95
  13. data/gem_tasks/mobile.rake +113 -0
  14. data/gem_tasks/ribbon.rake +77 -77
  15. data/gem_tasks/rubygems.rake +6 -6
  16. data/gem_tasks/secret_sauce.rake +63 -63
  17. data/lib/jquery.mobile.rb +33 -0
  18. data/lib/jquery.ui.rb +140 -140
  19. data/lib/jquery/emulators.rb +3 -0
  20. data/lib/jquery/jqical/helpers/ui_event_helper.rb +13 -13
  21. data/lib/jquery/jqtools.rb +2 -0
  22. data/lib/jquery/mobile.rb +3 -0
  23. data/lib/jquery/secret_sauce/helpers/ui_form_helper.rb +117 -117
  24. data/lib/jquery/secret_sauce/helpers/ui_grid_helper.rb +225 -225
  25. data/templates/dynatree/config/initializers/dynatree.rb +4 -4
  26. data/templates/dynatree/{jquery.ui/dynatree.aero.scss → jquery/dynatree/aero.scss} +31 -31
  27. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/cbChecked.png +0 -0
  28. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/cbChecked_hover.png +0 -0
  29. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/cbIntermediate.png +0 -0
  30. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/cbIntermediate_hover.png +0 -0
  31. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/cbUnchecked.png +0 -0
  32. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/cbUnchecked_hover.png +0 -0
  33. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/collapsed.png +0 -0
  34. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/collapsed_hover.png +0 -0
  35. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/copy_here.png +0 -0
  36. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/customDoc1.png +0 -0
  37. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/customFolder1.png +0 -0
  38. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/doc_with_children.png +0 -0
  39. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/document.png +0 -0
  40. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/drop_accept.png +0 -0
  41. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/drop_here.png +0 -0
  42. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/drop_reject.png +0 -0
  43. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/empty.png +0 -0
  44. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/expanded.png +0 -0
  45. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/expanded_hover.png +0 -0
  46. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/folder.png +0 -0
  47. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/folder_docs.png +0 -0
  48. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/folder_images.png +0 -0
  49. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/folder_page.png +0 -0
  50. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/ltDoc.png +0 -0
  51. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/ltError.png +0 -0
  52. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/ltWait.gif +0 -0
  53. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/move_here.png +0 -0
  54. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/rbChecked.png +0 -0
  55. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/rbChecked_hover.png +0 -0
  56. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/rbIntermediate.png +0 -0
  57. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/rbIntermediate_hover.png +0 -0
  58. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/rbUnchecked.png +0 -0
  59. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/rbUnchecked_hover.png +0 -0
  60. data/templates/dynatree/{jquery.ui/dynatree.crystal.scss → jquery/dynatree/aqua.scss} +32 -32
  61. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/cbChecked.png +0 -0
  62. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/cbChecked_hover.png +0 -0
  63. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/cbIntermediate.png +0 -0
  64. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/cbIntermediate_hover.png +0 -0
  65. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/cbUnchecked.png +0 -0
  66. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/cbUnchecked_hover.png +0 -0
  67. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/collapsed.png +0 -0
  68. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/collapsed_hover.png +0 -0
  69. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/copy_here.png +0 -0
  70. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/customDoc1.png +0 -0
  71. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/customFolder1.png +0 -0
  72. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/doc_with_children.png +0 -0
  73. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/document.png +0 -0
  74. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/drop_accept.png +0 -0
  75. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/drop_here.png +0 -0
  76. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/drop_reject.png +0 -0
  77. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/empty.png +0 -0
  78. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/expanded.png +0 -0
  79. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/expanded_hover.png +0 -0
  80. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/folder.png +0 -0
  81. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/folder_docs.png +0 -0
  82. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/folder_images.png +0 -0
  83. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/folder_open.png +0 -0
  84. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/folder_page.png +0 -0
  85. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/ltDoc.png +0 -0
  86. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/ltError.png +0 -0
  87. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/ltWait.gif +0 -0
  88. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/move_here.png +0 -0
  89. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/rbChecked.png +0 -0
  90. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/rbChecked_hover.png +0 -0
  91. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/rbIntermediate.png +0 -0
  92. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/rbIntermediate_hover.png +0 -0
  93. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/rbUnchecked.png +0 -0
  94. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/rbUnchecked_hover.png +0 -0
  95. data/templates/dynatree/{jquery.ui/dynatree.aqua.scss → jquery/dynatree/crystal.scss} +32 -32
  96. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/cbChecked.png +0 -0
  97. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/cbChecked_hover.png +0 -0
  98. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/cbIntermediate.png +0 -0
  99. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/cbIntermediate_hover.png +0 -0
  100. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/cbUnchecked.png +0 -0
  101. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/cbUnchecked_hover.png +0 -0
  102. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/collapsed.png +0 -0
  103. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/collapsed_hover.png +0 -0
  104. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/copy_here.png +0 -0
  105. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/customDoc1.png +0 -0
  106. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/customFolder1.png +0 -0
  107. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/doc_with_children.png +0 -0
  108. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/document.png +0 -0
  109. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/drop_accept.png +0 -0
  110. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/drop_here.png +0 -0
  111. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/drop_reject.png +0 -0
  112. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/empty.png +0 -0
  113. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/expanded.png +0 -0
  114. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/expanded_hover.png +0 -0
  115. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/folder.png +0 -0
  116. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/folder_docs.png +0 -0
  117. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/folder_images.png +0 -0
  118. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/folder_open.png +0 -0
  119. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/folder_page.png +0 -0
  120. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/ltDoc.png +0 -0
  121. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/ltError.png +0 -0
  122. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/ltWait.gif +0 -0
  123. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/move_here.png +0 -0
  124. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/rbChecked.png +0 -0
  125. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/rbChecked_hover.png +0 -0
  126. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/rbIntermediate.png +0 -0
  127. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/rbIntermediate_hover.png +0 -0
  128. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/rbUnchecked.png +0 -0
  129. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/rbUnchecked_hover.png +0 -0
  130. data/templates/dynatree/{jquery.ui/dynatree.xp.scss → jquery/dynatree/xp.scss} +35 -35
  131. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/cbChecked.png +0 -0
  132. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/cbChecked_hover.png +0 -0
  133. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/cbIntermediate.png +0 -0
  134. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/cbIntermediate_hover.png +0 -0
  135. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/cbUnchecked.png +0 -0
  136. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/cbUnchecked_hover.png +0 -0
  137. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/copy_here.png +0 -0
  138. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/customDoc1.png +0 -0
  139. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/customFolder1.png +0 -0
  140. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/drop_accept.png +0 -0
  141. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/drop_here.png +0 -0
  142. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/drop_reject.png +0 -0
  143. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltD_ne.png +0 -0
  144. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltD_nes.png +0 -0
  145. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltDoc.png +0 -0
  146. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltError.png +0 -0
  147. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltFld.png +0 -0
  148. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltFld_o.png +0 -0
  149. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltL_.png +0 -0
  150. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltL_ne.png +0 -0
  151. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltL_nes.png +0 -0
  152. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltL_ns.png +0 -0
  153. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltM_ne.png +0 -0
  154. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltM_nes.png +0 -0
  155. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltP_ne.png +0 -0
  156. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltP_nes.png +0 -0
  157. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltWait.gif +0 -0
  158. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/move_here.png +0 -0
  159. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/rbChecked.png +0 -0
  160. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/rbChecked_hover.png +0 -0
  161. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/rbIntermediate.png +0 -0
  162. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/rbIntermediate_hover.png +0 -0
  163. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/rbUnchecked.png +0 -0
  164. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/rbUnchecked_hover.png +0 -0
  165. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/vline.png +0 -0
  166. data/templates/dynatree/manifest.rb +140 -140
  167. data/templates/emulators/config/initializers/emulators.rb +10 -0
  168. data/templates/emulators/emulators/blackberry.landscape.scss +15 -0
  169. data/templates/emulators/emulators/blackberry.portrait.scss +15 -0
  170. data/templates/emulators/emulators/blackberry.torch.landscape.png +0 -0
  171. data/templates/emulators/emulators/blackberry.torch.portrait.png +0 -0
  172. data/templates/emulators/emulators/ipad.landscape.png +0 -0
  173. data/templates/emulators/emulators/ipad.landscape.scss +15 -0
  174. data/templates/emulators/emulators/ipad.portrait.png +0 -0
  175. data/templates/emulators/emulators/ipad.portrait.scss +15 -0
  176. data/templates/emulators/emulators/iphone.landscape.png +0 -0
  177. data/templates/emulators/emulators/iphone.landscape.scss +15 -0
  178. data/templates/emulators/emulators/iphone.portrait.png +0 -0
  179. data/templates/emulators/emulators/iphone.portrait.scss +15 -0
  180. data/templates/emulators/emulators/palm.landscape.scss +15 -0
  181. data/templates/emulators/emulators/palm.portrait.scss +15 -0
  182. data/templates/emulators/emulators/palm.pre.landscape.png +0 -0
  183. data/templates/emulators/emulators/palm.pre.portrait.png +0 -0
  184. data/templates/emulators/manifest.rb +20 -0
  185. data/templates/jqgrid/config/initializers/jqgrid.rb +1 -1
  186. data/templates/jqgrid/i18n/jqgrid/locale-cat.js +1 -1
  187. data/templates/jqgrid/i18n/jqgrid/locale-cat.min.js +1 -1
  188. data/templates/jqgrid/i18n/jqgrid/locale-de.js +23 -18
  189. data/templates/jqgrid/i18n/jqgrid/locale-de.min.js +6 -6
  190. data/templates/jqgrid/i18n/jqgrid/locale-fr.js +2 -2
  191. data/templates/jqgrid/i18n/jqgrid/locale-fr.min.js +1 -1
  192. data/templates/jqgrid/jquery.jqGrid.js +1858 -1850
  193. data/templates/jqgrid/jquery.jqGrid.min.js +214 -214
  194. data/templates/jqgrid/{jquery.ui → jquery}/jqGrid.scss +0 -0
  195. data/templates/jqgrid/manifest.rb +1 -1
  196. data/templates/jqical/app/views/{ui → shared}/_ui_event_for.js.haml +0 -0
  197. data/templates/jqical/config/initializers/jqical.rb +1 -1
  198. data/templates/jqical/{jquery.ui → jquery}/jqical.scss +0 -0
  199. data/templates/jqical/{jquery.ui → jquery}/jqical/calendar.png +0 -0
  200. data/templates/jqical/{jquery.ui → jquery}/jqical/clock.png +0 -0
  201. data/templates/jqical/manifest.rb +4 -4
  202. data/templates/jqtools/config/initializers/jqtools.rb +3 -0
  203. data/templates/jqtools/jquery.tools.js +4576 -0
  204. data/templates/jqtools/jquery.tools.min.js +255 -0
  205. data/templates/jqtools/manifest.rb +6 -0
  206. data/templates/jqtouch/config/initializers/jqtouch.rb +5 -6
  207. data/templates/jqtouch/jquery.jqtouch.js +656 -414
  208. data/templates/jqtouch/jquery.jqtouch.min.js +1 -1
  209. data/templates/jqtouch/{jqtouch/jqt.apple.scss → jquery/touch/apple.scss} +30 -36
  210. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/activeButton.png +0 -0
  211. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/backButton.png +0 -0
  212. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/cancel.png +0 -0
  213. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/chevron.png +0 -0
  214. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/grayButton.png +0 -0
  215. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/greenButton.png +0 -0
  216. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/listArrowSel.png +0 -0
  217. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/listGroup.png +0 -0
  218. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/loading.gif +0 -0
  219. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/on_off.png +0 -0
  220. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/pinstripes.png +0 -0
  221. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/redButton.png +0 -0
  222. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/selection.png +0 -0
  223. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/thumb.png +0 -0
  224. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/toggle.png +0 -0
  225. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/toggleOn.png +0 -0
  226. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/toolButton.png +0 -0
  227. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/toolbar.png +0 -0
  228. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/whiteButton.png +0 -0
  229. data/templates/jqtouch/{jqtouch/jqt.default.scss → jquery/touch/default.scss} +31 -43
  230. data/templates/jqtouch/{jqtouch → jquery/touch}/default/backButton.png +0 -0
  231. data/templates/jqtouch/{jqtouch → jquery/touch}/default/backButtonActive.png +0 -0
  232. data/templates/jqtouch/{jqtouch → jquery/touch}/default/bigButton.png +0 -0
  233. data/templates/jqtouch/{jqtouch → jquery/touch}/default/bigButtonActive.png +0 -0
  234. data/templates/jqtouch/{jqtouch → jquery/touch}/default/button.png +0 -0
  235. data/templates/jqtouch/{jqtouch → jquery/touch}/default/buttonActive.png +0 -0
  236. data/templates/jqtouch/{jqtouch → jquery/touch}/default/chevron.png +0 -0
  237. data/templates/jqtouch/{jqtouch → jquery/touch}/default/chevronActive.png +0 -0
  238. data/templates/jqtouch/{jqtouch → jquery/touch}/default/chevronCircle.png +0 -0
  239. data/templates/jqtouch/{jqtouch → jquery/touch}/default/chevronCircleActive.png +0 -0
  240. data/templates/jqtouch/{jqtouch → jquery/touch}/default/loading.gif +0 -0
  241. data/templates/jqtouch/{jqtouch → jquery/touch}/default/toggleSwitch.png +0 -0
  242. data/templates/jqtouch/{jqtouch → jquery/touch}/default/toolbarBackground.png +0 -0
  243. data/templates/jqtouch/jqtouch/glyphish/Read me first - license.txt b/data/templates/jqtouch/jquery/touch/glyphish/Read me first - → license.txt +0 -0
  244. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/01-refresh.png +0 -0
  245. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/02-redo.png +0 -0
  246. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/03-loopback.png +0 -0
  247. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/04-squiggle.png +0 -0
  248. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/05-shuffle.png +0 -0
  249. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/06-magnifying-glass.png +0 -0
  250. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/07-map-marker.png +0 -0
  251. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/08-chat.png +0 -0
  252. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/09-chat2.png +0 -0
  253. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/10-medical.png +0 -0
  254. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/100-coffee.png +0 -0
  255. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/101-gameplan.png +0 -0
  256. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/102-walk.png +0 -0
  257. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/103-map.png +0 -0
  258. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/104-index-cards.png +0 -0
  259. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/105-piano.png +0 -0
  260. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/106-sliders.png +0 -0
  261. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/107-widescreen.png +0 -0
  262. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/108-badge.png +0 -0
  263. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/109-chicken.png +0 -0
  264. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/11-clock.png +0 -0
  265. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/110-bug.png +0 -0
  266. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/111-user.png +0 -0
  267. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/112-group.png +0 -0
  268. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/113-navigation.png +0 -0
  269. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/114-balloon.png +0 -0
  270. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/115-bow-and-arrow.png +0 -0
  271. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/116-controller.png +0 -0
  272. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/117-todo.png +0 -0
  273. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/118-coathanger.png +0 -0
  274. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/119-piggybank.png +0 -0
  275. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/12-eye.png +0 -0
  276. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/120-headphones.png +0 -0
  277. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/121-lanscape.png +0 -0
  278. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/122-stats.png +0 -0
  279. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/123-id-card.png +0 -0
  280. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/124-bullhorn.png +0 -0
  281. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/125-food.png +0 -0
  282. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/126-moon.png +0 -0
  283. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/127-sock.png +0 -0
  284. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/128-bone.png +0 -0
  285. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/129-golf.png +0 -0
  286. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/13-target.png +0 -0
  287. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/130-dice.png +0 -0
  288. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/14-tag.png +0 -0
  289. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/15-tags.png +0 -0
  290. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/16-line-chart.png +0 -0
  291. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/17-bar-chart.png +0 -0
  292. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/18-envelope.png +0 -0
  293. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/19-gear.png +0 -0
  294. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/20-gear2.png +0 -0
  295. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/21-skull.png +0 -0
  296. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/22-skull-n-crossbones.png +0 -0
  297. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/23-bird.png +0 -0
  298. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/24-gift.png +0 -0
  299. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/25-weather.png +0 -0
  300. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/26-bandaid.png +0 -0
  301. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/27-planet.png +0 -0
  302. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/28-star.png +0 -0
  303. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/29-heart.png +0 -0
  304. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/30-key.png +0 -0
  305. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/31-ipod.png +0 -0
  306. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/32-iphone.png +0 -0
  307. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/33-cabinet.png +0 -0
  308. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/34-coffee.png +0 -0
  309. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/35-shopping-bag.png +0 -0
  310. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/36-toolbox.png +0 -0
  311. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/37-suitcase.png +0 -0
  312. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/38-airplane.png +0 -0
  313. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/39-spraycan.png +0 -0
  314. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/40-inbox.png +0 -0
  315. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/41-picture-frame.png +0 -0
  316. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/42-photos.png +0 -0
  317. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/43-film-roll.png +0 -0
  318. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/44-shoebox.png +0 -0
  319. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/45-movie1.png +0 -0
  320. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/46-movie2.png +0 -0
  321. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/47-fuel.png +0 -0
  322. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/48-fork-and-knife.png +0 -0
  323. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/49-battery.png +0 -0
  324. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/50-beaker.png +0 -0
  325. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/51-outlet.png +0 -0
  326. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/52-pinetree.png +0 -0
  327. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/53-house.png +0 -0
  328. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/54-lock.png +0 -0
  329. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/55-network.png +0 -0
  330. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/56-cloud.png +0 -0
  331. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/57-download.png +0 -0
  332. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/58-bookmark.png +0 -0
  333. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/59-flag.png +0 -0
  334. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/60-signpost.png +0 -0
  335. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/61-brightness.png +0 -0
  336. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/62-contrast.png +0 -0
  337. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/63-runner.png +0 -0
  338. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/64-zap.png +0 -0
  339. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/65-note.png +0 -0
  340. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/66-microphone.png +0 -0
  341. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/67-tshirt.png +0 -0
  342. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/68-paperclip.png +0 -0
  343. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/69-display.png +0 -0
  344. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/70-tv.png +0 -0
  345. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/71-compass.png +0 -0
  346. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/72-pin.png +0 -0
  347. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/73-radar.png +0 -0
  348. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/74-location.png +0 -0
  349. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/75-phone.png +0 -0
  350. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/76-baby.png +0 -0
  351. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/77-ekg.png +0 -0
  352. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/78-stopwatch.png +0 -0
  353. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/79-medical-bag.png +0 -0
  354. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/80-shopping-cart.png +0 -0
  355. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/81-dashboard.png +0 -0
  356. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/82-dogpaw.png +0 -0
  357. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/83-calendar.png +0 -0
  358. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/84-lightbulb.png +0 -0
  359. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/85-trophy.png +0 -0
  360. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/86-camera.png +0 -0
  361. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/87-wineglass.png +0 -0
  362. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/88-beermug.png +0 -0
  363. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/89-dumbbell.png +0 -0
  364. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/90-lifebuoy.png +0 -0
  365. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/91-beaker2.png +0 -0
  366. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/92-testtube.png +0 -0
  367. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/93-thermometer.png +0 -0
  368. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/94-pill.png +0 -0
  369. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/95-equalizer.png +0 -0
  370. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/96-book.png +0 -0
  371. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/97-puzzle.png +0 -0
  372. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/98-palette.png +0 -0
  373. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/99-umbrella.png +0 -0
  374. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/01-refresh.png +0 -0
  375. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/02-redo.png +0 -0
  376. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/03-loopback.png +0 -0
  377. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/04-squiggle.png +0 -0
  378. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/05-shuffle.png +0 -0
  379. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/06-magnifying-glass.png +0 -0
  380. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/07-map-marker.png +0 -0
  381. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/08-chat.png +0 -0
  382. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/09-chat2.png +0 -0
  383. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/10-medical.png +0 -0
  384. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/100-coffee.png +0 -0
  385. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/101-gameplan.png +0 -0
  386. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/102-walk.png +0 -0
  387. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/103-map.png +0 -0
  388. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/104-index-cards.png +0 -0
  389. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/105-piano.png +0 -0
  390. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/106-sliders.png +0 -0
  391. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/107-widescreen.png +0 -0
  392. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/108-badge.png +0 -0
  393. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/109-chicken.png +0 -0
  394. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/11-clock.png +0 -0
  395. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/110-bug.png +0 -0
  396. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/111-user.png +0 -0
  397. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/112-group.png +0 -0
  398. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/113-navigation.png +0 -0
  399. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/114-balloon.png +0 -0
  400. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/115-bow-and-arrow.png +0 -0
  401. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/116-controller.png +0 -0
  402. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/117-todo.png +0 -0
  403. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/118-coathanger.png +0 -0
  404. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/119-piggybank.png +0 -0
  405. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/12-eye.png +0 -0
  406. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/120-headphones.png +0 -0
  407. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/121-lanscape.png +0 -0
  408. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/122-stats.png +0 -0
  409. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/123-id-card.png +0 -0
  410. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/124-bullhorn.png +0 -0
  411. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/125-food.png +0 -0
  412. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/126-moon.png +0 -0
  413. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/127-sock.png +0 -0
  414. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/128-bone.png +0 -0
  415. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/129-golf.png +0 -0
  416. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/13-target.png +0 -0
  417. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/130-dice.png +0 -0
  418. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/14-tag.png +0 -0
  419. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/15-tags.png +0 -0
  420. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/16-line-chart.png +0 -0
  421. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/17-bar-chart.png +0 -0
  422. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/18-envelope.png +0 -0
  423. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/19-gear.png +0 -0
  424. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/20-gear2.png +0 -0
  425. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/21-skull.png +0 -0
  426. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/22-skull-n-crossbones.png +0 -0
  427. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/23-bird.png +0 -0
  428. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/24-gift.png +0 -0
  429. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/25-weather.png +0 -0
  430. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/26-bandaid.png +0 -0
  431. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/27-planet.png +0 -0
  432. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/28-star.png +0 -0
  433. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/29-heart.png +0 -0
  434. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/30-key.png +0 -0
  435. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/31-ipod.png +0 -0
  436. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/32-iphone.png +0 -0
  437. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/33-cabinet.png +0 -0
  438. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/34-coffee.png +0 -0
  439. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/35-shopping-bag.png +0 -0
  440. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/36-toolbox.png +0 -0
  441. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/37-suitcase.png +0 -0
  442. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/38-airplane.png +0 -0
  443. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/39-spraycan.png +0 -0
  444. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/40-inbox.png +0 -0
  445. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/41-picture-frame.png +0 -0
  446. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/42-photos.png +0 -0
  447. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/43-film-roll.png +0 -0
  448. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/44-shoebox.png +0 -0
  449. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/45-movie1.png +0 -0
  450. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/46-movie2.png +0 -0
  451. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/47-fuel.png +0 -0
  452. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/48-fork-and-knife.png +0 -0
  453. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/49-battery.png +0 -0
  454. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/50-beaker.png +0 -0
  455. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/51-outlet.png +0 -0
  456. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/52-pinetree.png +0 -0
  457. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/53-house.png +0 -0
  458. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/54-lock.png +0 -0
  459. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/55-network.png +0 -0
  460. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/56-cloud.png +0 -0
  461. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/57-download.png +0 -0
  462. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/58-bookmark.png +0 -0
  463. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/59-flag.png +0 -0
  464. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/60-signpost.png +0 -0
  465. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/61-brightness.png +0 -0
  466. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/62-contrast.png +0 -0
  467. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/63-runner.png +0 -0
  468. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/64-zap.png +0 -0
  469. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/65-note.png +0 -0
  470. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/66-microphone.png +0 -0
  471. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/67-tshirt.png +0 -0
  472. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/68-paperclip.png +0 -0
  473. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/69-display.png +0 -0
  474. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/70-tv.png +0 -0
  475. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/71-compass.png +0 -0
  476. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/72-pin.png +0 -0
  477. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/73-radar.png +0 -0
  478. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/74-location.png +0 -0
  479. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/75-phone.png +0 -0
  480. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/76-baby.png +0 -0
  481. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/77-ekg.png +0 -0
  482. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/78-stopwatch.png +0 -0
  483. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/79-medical-bag.png +0 -0
  484. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/80-shopping-cart.png +0 -0
  485. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/81-dashboard.png +0 -0
  486. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/82-dogpaw.png +0 -0
  487. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/83-calendar.png +0 -0
  488. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/84-lightbulb.png +0 -0
  489. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/85-trophy.png +0 -0
  490. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/86-camera.png +0 -0
  491. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/87-wineglass.png +0 -0
  492. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/88-beermug.png +0 -0
  493. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/89-dumbbell.png +0 -0
  494. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/90-lifebuoy.png +0 -0
  495. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/91-beaker2.png +0 -0
  496. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/92-testtube.png +0 -0
  497. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/93-thermometer.png +0 -0
  498. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/94-pill.png +0 -0
  499. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/95-equalizer.png +0 -0
  500. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/96-book.png +0 -0
  501. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/97-puzzle.png +0 -0
  502. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/98-palette.png +0 -0
  503. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/99-umbrella.png +0 -0
  504. data/templates/jqtouch/{jqtouch → jquery/touch}/ical/bottom_bar.png +0 -0
  505. data/templates/jqtouch/{jqtouch → jquery/touch}/ical/calpad.jpg +0 -0
  506. data/templates/jqtouch/{jqtouch → jquery/touch}/ical/cells.png +0 -0
  507. data/templates/jqtouch/{jqtouch → jquery/touch}/ical/footer.png +0 -0
  508. data/templates/jqtouch/{jqtouch → jquery/touch}/ical/header.png +0 -0
  509. data/templates/jqtouch/{jqtouch → jquery/touch}/ical/header_left.png +0 -0
  510. data/templates/jqtouch/{jqtouch → jquery/touch}/ical/header_right.png +0 -0
  511. data/templates/jqtouch/{jqtouch → jquery/touch}/ical/jqt_startup.png +0 -0
  512. data/templates/jqtouch/{jqtouch → jquery/touch}/ical/jqtouch-ical.png +0 -0
  513. data/templates/jqtouch/{jqtouch/jqt.jqt.scss → jquery/touch/jqt.scss} +36 -40
  514. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/activeButton.png +0 -0
  515. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/back_button.png +0 -0
  516. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/back_button_clicked.png +0 -0
  517. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/blueButton.png +0 -0
  518. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/button.png +0 -0
  519. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/button_clicked.png +0 -0
  520. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/chevron.png +0 -0
  521. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/chevron_circle.png +0 -0
  522. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/grayButton.png +0 -0
  523. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/greenButton.png +0 -0
  524. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/loading.gif +0 -0
  525. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/on_off.png +0 -0
  526. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/redButton.png +0 -0
  527. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/rowhead.png +0 -0
  528. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/toggle.png +0 -0
  529. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/toggleOn.png +0 -0
  530. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/toolbar.png +0 -0
  531. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/whiteButton.png +0 -0
  532. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt_startup.png +0 -0
  533. data/templates/jqtouch/{jqtouch → jquery/touch}/jqtouch.png +0 -0
  534. data/templates/jqtouch/{jqtouch → jquery/touch}/jqtouch.scss +276 -254
  535. data/templates/jqtouch/jquery/touch/jqtouch4.png +0 -0
  536. data/templates/jqtouch/{jqtouch → jquery/touch}/photo/btnBack.png +0 -0
  537. data/templates/jqtouch/{jqtouch → jquery/touch}/photo/loading.gif +0 -0
  538. data/templates/jqtouch/{jqtouch → jquery/touch}/photo/navNext.png +0 -0
  539. data/templates/jqtouch/{jqtouch → jquery/touch}/photo/navPause.png +0 -0
  540. data/templates/jqtouch/{jqtouch → jquery/touch}/photo/navPlay.png +0 -0
  541. data/templates/jqtouch/{jqtouch → jquery/touch}/photo/navPrev.png +0 -0
  542. data/templates/jqtouch/{jqtouch → jquery/touch}/photo/toolbar.png +0 -0
  543. data/templates/jqtouch/{jqtouch → jquery/touch}/sw/alpha.png +0 -0
  544. data/templates/jqtouch/{jqtouch → jquery/touch}/sw/button-cancel.png +0 -0
  545. data/templates/jqtouch/{jqtouch → jquery/touch}/sw/button-done.png +0 -0
  546. data/templates/jqtouch/{jqtouch → jquery/touch}/sw/header.png +0 -0
  547. data/templates/jqtouch/{jqtouch → jquery/touch}/sw/slot-border.png +0 -0
  548. data/templates/jqtouch/manifest.rb +339 -342
  549. data/templates/jrails/config/initializers/jrails.rb +8 -4
  550. data/templates/jrails/i18n/jquery.ui/datepicker-gl.js +23 -0
  551. data/templates/jrails/i18n/jquery.ui/datepicker-gl.min.js +2 -0
  552. data/templates/jrails/i18n/jquery.ui/datepicker-pt.js +22 -0
  553. data/templates/jrails/i18n/jquery.ui/datepicker-pt.min.js +2 -0
  554. data/templates/jrails/i18n/jquery.ui/datepicker-ru.js +1 -1
  555. data/templates/jrails/i18n/jquery.ui/datepicker-ru.min.js +1 -1
  556. data/templates/jrails/jquery-1.4.3.js +6944 -0
  557. data/templates/jrails/jquery-1.4.3.min.js +152 -0
  558. data/templates/jrails/{jquery-ui-1.8.5.js → jquery-ui-1.8.6.js} +514 -356
  559. data/templates/jrails/jquery-ui-1.8.6.min.js +825 -0
  560. data/templates/jrails/jquery.bgiframe.js +37 -8
  561. data/templates/jrails/jquery.bgiframe.min.js +2 -2
  562. data/templates/jrails/jquery.cookie.js +89 -0
  563. data/templates/jrails/jquery.cookie.min.js +2 -0
  564. data/templates/jrails/jquery.flash_messages.js +5 -0
  565. data/templates/jrails/jquery.flash_messages.min.js +1 -0
  566. data/templates/jrails/jquery.form.js +660 -0
  567. data/templates/jrails/jquery.form.min.js +17 -0
  568. data/templates/jrails/jquery.layout.js +2507 -0
  569. data/templates/jrails/jquery.layout.min.js +49 -0
  570. data/templates/jrails/jquery.themeswitchertool.js +4 -4
  571. data/templates/jrails/jquery.themeswitchertool.min.js +4 -4
  572. data/templates/jrails/{jquery.ui → jquery/ui}/_theme.scss +20 -15
  573. data/templates/jrails/{jquery.ui → jquery/ui}/base.scss +18 -18
  574. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-anim_basic_16x16.gif +0 -0
  575. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  576. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_flat_75_ffffff_40x100.png +0 -0
  577. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  578. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_glass_65_ffffff_1x400.png +0 -0
  579. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_glass_75_dadada_1x400.png +0 -0
  580. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  581. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  582. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  583. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-icons_222222_256x240.png +0 -0
  584. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-icons_2e83ff_256x240.png +0 -0
  585. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-icons_454545_256x240.png +0 -0
  586. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-icons_888888_256x240.png +0 -0
  587. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-icons_cd0a0a_256x240.png +0 -0
  588. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie.scss +18 -18
  589. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-anim_basic_16x16.gif +0 -0
  590. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_diagonals-thick_8_333333_40x40.png +0 -0
  591. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_flat_65_ffffff_40x100.png +0 -0
  592. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_glass_40_111111_1x400.png +0 -0
  593. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_glass_55_1c1c1c_1x400.png +0 -0
  594. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_highlight-hard_100_f9f9f9_1x100.png +0 -0
  595. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_highlight-hard_40_aaaaaa_1x100.png +0 -0
  596. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_highlight-soft_50_aaaaaa_1x100.png +0 -0
  597. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_inset-hard_45_cd0a0a_1x100.png +0 -0
  598. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_inset-hard_55_ffeb80_1x100.png +0 -0
  599. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-icons_222222_256x240.png +0 -0
  600. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-icons_4ca300_256x240.png +0 -0
  601. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-icons_bbbbbb_256x240.png +0 -0
  602. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-icons_ededed_256x240.png +0 -0
  603. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-icons_ffcf29_256x240.png +0 -0
  604. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-icons_ffffff_256x240.png +0 -0
  605. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer.scss +18 -18
  606. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-anim_basic_16x16.gif +0 -0
  607. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_diagonals-thick_75_f3d8d8_40x40.png +0 -0
  608. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_dots-small_65_a6a6a6_2x2.png +0 -0
  609. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_flat_0_333333_40x100.png +0 -0
  610. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_flat_65_ffffff_40x100.png +0 -0
  611. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_flat_75_ffffff_40x100.png +0 -0
  612. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_glass_55_fbf8ee_1x400.png +0 -0
  613. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_highlight-hard_100_eeeeee_1x100.png +0 -0
  614. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_highlight-hard_100_f6f6f6_1x100.png +0 -0
  615. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_highlight-soft_15_cc0000_1x100.png +0 -0
  616. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-icons_004276_256x240.png +0 -0
  617. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-icons_cc0000_256x240.png +0 -0
  618. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-icons_ffffff_256x240.png +0 -0
  619. data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu.scss +6 -6
  620. data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu/cut.png +0 -0
  621. data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu/door.png +0 -0
  622. data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu/page_white_copy.png +0 -0
  623. data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu/page_white_delete.png +0 -0
  624. data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu/page_white_edit.png +0 -0
  625. data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu/page_white_paste.png +0 -0
  626. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino.scss +18 -18
  627. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-anim_basic_16x16.gif +0 -0
  628. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_diagonals-thick_90_eeeeee_40x40.png +0 -0
  629. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_flat_15_cd0a0a_40x100.png +0 -0
  630. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_glass_100_e4f1fb_1x400.png +0 -0
  631. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_glass_50_3baae3_1x400.png +0 -0
  632. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_glass_80_d7ebf9_1x400.png +0 -0
  633. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_highlight-hard_100_f2f5f7_1x100.png +0 -0
  634. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_highlight-hard_70_000000_1x100.png +0 -0
  635. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_highlight-soft_100_deedf7_1x100.png +0 -0
  636. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_highlight-soft_25_ffef8f_1x100.png +0 -0
  637. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-icons_2694e8_256x240.png +0 -0
  638. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-icons_2e83ff_256x240.png +0 -0
  639. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-icons_3d80b3_256x240.png +0 -0
  640. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-icons_72a7cf_256x240.png +0 -0
  641. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-icons_ffffff_256x240.png +0 -0
  642. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive.scss +18 -18
  643. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-anim_basic_16x16.gif +0 -0
  644. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_flat_30_cccccc_40x100.png +0 -0
  645. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  646. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  647. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_highlight-hard_20_0972a5_1x100.png +0 -0
  648. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_highlight-soft_33_003147_1x100.png +0 -0
  649. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_highlight-soft_35_222222_1x100.png +0 -0
  650. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_highlight-soft_44_444444_1x100.png +0 -0
  651. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  652. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_loop_25_000000_21x21.png +0 -0
  653. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-icons_222222_256x240.png +0 -0
  654. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-icons_4b8e0b_256x240.png +0 -0
  655. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-icons_a83300_256x240.png +0 -0
  656. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-icons_cccccc_256x240.png +0 -0
  657. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-icons_ffffff_256x240.png +0 -0
  658. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv.scss +18 -18
  659. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-anim_basic_16x16.gif +0 -0
  660. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_diagonals-thick_15_0b3e6f_40x40.png +0 -0
  661. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_dots-medium_30_0b58a2_4x4.png +0 -0
  662. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_dots-small_20_333333_2x2.png +0 -0
  663. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_dots-small_30_a32d00_2x2.png +0 -0
  664. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_dots-small_40_00498f_2x2.png +0 -0
  665. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  666. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_flat_40_292929_40x100.png +0 -0
  667. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_gloss-wave_20_111111_500x100.png +0 -0
  668. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-icons_00498f_256x240.png +0 -0
  669. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-icons_98d2fb_256x240.png +0 -0
  670. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-icons_9ccdfc_256x240.png +0 -0
  671. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-icons_ffffff_256x240.png +0 -0
  672. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant.scss +18 -18
  673. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-anim_basic_16x16.gif +0 -0
  674. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  675. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_flat_0_eeeeee_40x100.png +0 -0
  676. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_flat_55_994d53_40x100.png +0 -0
  677. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_flat_55_fafafa_40x100.png +0 -0
  678. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_gloss-wave_30_3d3644_500x100.png +0 -0
  679. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_highlight-soft_100_dcd9de_1x100.png +0 -0
  680. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_highlight-soft_100_eae6ea_1x100.png +0 -0
  681. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_highlight-soft_25_30273a_1x100.png +0 -0
  682. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_highlight-soft_45_5f5964_1x100.png +0 -0
  683. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-icons_454545_256x240.png +0 -0
  684. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-icons_734d99_256x240.png +0 -0
  685. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-icons_8d78a5_256x240.png +0 -0
  686. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-icons_a8a3ae_256x240.png +0 -0
  687. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-icons_ebccce_256x240.png +0 -0
  688. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-icons_ffffff_256x240.png +0 -0
  689. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike.scss +18 -18
  690. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-anim_basic_16x16.gif +0 -0
  691. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_diagonals-small_25_c5ddfc_40x40.png +0 -0
  692. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_diagonals-thick_20_e69700_40x40.png +0 -0
  693. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_diagonals-thick_22_1484e6_40x40.png +0 -0
  694. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_diagonals-thick_26_2293f7_40x40.png +0 -0
  695. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_flat_0_e69700_40x100.png +0 -0
  696. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_flat_0_e6b900_40x100.png +0 -0
  697. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_highlight-soft_100_f9f9f9_1x100.png +0 -0
  698. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_inset-hard_100_eeeeee_1x100.png +0 -0
  699. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-icons_0a82eb_256x240.png +0 -0
  700. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-icons_0b54d5_256x240.png +0 -0
  701. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-icons_5fa5e3_256x240.png +0 -0
  702. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-icons_fcdd4a_256x240.png +0 -0
  703. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-icons_ffffff_256x240.png +0 -0
  704. data/templates/jrails/{jquery.ui → jquery/ui}/farbtastic.scss +3 -3
  705. data/templates/jrails/{jquery.ui → jquery/ui}/farbtastic/marker.png +0 -0
  706. data/templates/jrails/{jquery.ui → jquery/ui}/farbtastic/mask.png +0 -0
  707. data/templates/jrails/{jquery.ui → jquery/ui}/farbtastic/wheel.png +0 -0
  708. data/templates/jrails/{jquery.ui → jquery/ui}/flash_messages/flash-check.png +0 -0
  709. data/templates/jrails/{jquery.ui → jquery/ui}/flash_messages/flash-error-bg.png +0 -0
  710. data/templates/jrails/{jquery.ui → jquery/ui}/flash_messages/flash-error.png +0 -0
  711. data/templates/jrails/{jquery.ui → jquery/ui}/flash_messages/flash-notice-bg.png +0 -0
  712. data/templates/jrails/{jquery.ui → jquery/ui}/flash_messages/flash-warning-bg.png +0 -0
  713. data/templates/jrails/{jquery.ui → jquery/ui}/flash_messages/flash-warning.png +0 -0
  714. data/templates/jrails/{jquery.ui → jquery/ui}/flick.scss +18 -18
  715. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-anim_basic_16x16.gif +0 -0
  716. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  717. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_flat_0_eeeeee_40x100.png +0 -0
  718. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_flat_55_ffffff_40x100.png +0 -0
  719. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_flat_75_ffffff_40x100.png +0 -0
  720. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_glass_65_ffffff_1x400.png +0 -0
  721. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_highlight-soft_100_f6f6f6_1x100.png +0 -0
  722. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_highlight-soft_25_0073ea_1x100.png +0 -0
  723. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_highlight-soft_50_dddddd_1x100.png +0 -0
  724. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-icons_0073ea_256x240.png +0 -0
  725. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-icons_454545_256x240.png +0 -0
  726. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-icons_666666_256x240.png +0 -0
  727. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-icons_ff0084_256x240.png +0 -0
  728. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-icons_ffffff_256x240.png +0 -0
  729. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks.scss +18 -18
  730. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-anim_basic_16x16.gif +0 -0
  731. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_diagonals-small_40_db4865_40x40.png +0 -0
  732. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_diagonals-small_50_93c3cd_40x40.png +0 -0
  733. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_diagonals-small_50_ff3853_40x40.png +0 -0
  734. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_diagonals-small_75_ccd232_40x40.png +0 -0
  735. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_dots-medium_80_ffff38_4x4.png +0 -0
  736. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_dots-small_35_35414f_2x2.png +0 -0
  737. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_flat_75_ba9217_40x100.png +0 -0
  738. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_flat_75_ffffff_40x100.png +0 -0
  739. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_white-lines_85_f7f7ba_40x100.png +0 -0
  740. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-icons_454545_256x240.png +0 -0
  741. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-icons_88a206_256x240.png +0 -0
  742. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-icons_c02669_256x240.png +0 -0
  743. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-icons_e1e463_256x240.png +0 -0
  744. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-icons_ffeb33_256x240.png +0 -0
  745. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-icons_ffffff_256x240.png +0 -0
  746. data/templates/jrails/{jquery.ui → jquery/ui}/humanity.scss +18 -18
  747. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-anim_basic_16x16.gif +0 -0
  748. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_flat_75_aaaaaa_40x100.png +0 -0
  749. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_glass_100_f5f0e5_1x400.png +0 -0
  750. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_glass_25_cb842e_1x400.png +0 -0
  751. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_glass_70_ede4d4_1x400.png +0 -0
  752. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_highlight-hard_100_f4f0ec_1x100.png +0 -0
  753. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
  754. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_highlight-hard_75_f5f5b5_1x100.png +0 -0
  755. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_inset-soft_100_f4f0ec_1x100.png +0 -0
  756. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-icons_c47a23_256x240.png +0 -0
  757. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-icons_cb672b_256x240.png +0 -0
  758. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-icons_f08000_256x240.png +0 -0
  759. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-icons_f35f07_256x240.png +0 -0
  760. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-icons_ff7519_256x240.png +0 -0
  761. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-icons_ffffff_256x240.png +0 -0
  762. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog.scss +18 -18
  763. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-anim_basic_16x16.gif +0 -0
  764. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_diagonals-small_0_aaaaaa_40x40.png +0 -0
  765. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_diagonals-thick_15_444444_40x40.png +0 -0
  766. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_diagonals-thick_95_ffdc2e_40x40.png +0 -0
  767. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_glass_55_fbf5d0_1x400.png +0 -0
  768. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_highlight-hard_30_285c00_1x100.png +0 -0
  769. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_highlight-soft_33_3a8104_1x100.png +0 -0
  770. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_highlight-soft_50_4eb305_1x100.png +0 -0
  771. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_highlight-soft_60_4ca20b_1x100.png +0 -0
  772. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_inset-soft_10_285c00_1x100.png +0 -0
  773. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-icons_4eb305_256x240.png +0 -0
  774. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-icons_72b42d_256x240.png +0 -0
  775. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-icons_cd0a0a_256x240.png +0 -0
  776. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-icons_ffffff_256x240.png +0 -0
  777. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc.scss +18 -18
  778. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-anim_basic_16x16.gif +0 -0
  779. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  780. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_glass_15_5f391b_1x400.png +0 -0
  781. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_gloss-wave_20_1c160d_500x100.png +0 -0
  782. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_gloss-wave_25_453326_500x100.png +0 -0
  783. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_gloss-wave_30_44372c_500x100.png +0 -0
  784. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_highlight-soft_20_201913_1x100.png +0 -0
  785. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_highlight-soft_20_619226_1x100.png +0 -0
  786. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_inset-soft_10_201913_1x100.png +0 -0
  787. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-icons_222222_256x240.png +0 -0
  788. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-icons_9bcc60_256x240.png +0 -0
  789. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-icons_add978_256x240.png +0 -0
  790. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-icons_e3ddc9_256x240.png +0 -0
  791. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-icons_f1fd86_256x240.png +0 -0
  792. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-icons_ffffff_256x240.png +0 -0
  793. data/templates/jrails/{jquery.ui → jquery/ui}/overcast.scss +18 -18
  794. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-anim_basic_16x16.gif +0 -0
  795. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  796. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_flat_0_eeeeee_40x100.png +0 -0
  797. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_flat_55_c0402a_40x100.png +0 -0
  798. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_flat_55_eeeeee_40x100.png +0 -0
  799. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_glass_100_f8f8f8_1x400.png +0 -0
  800. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_glass_35_dddddd_1x400.png +0 -0
  801. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_glass_60_eeeeee_1x400.png +0 -0
  802. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_inset-hard_75_999999_1x100.png +0 -0
  803. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_inset-soft_50_c9c9c9_1x100.png +0 -0
  804. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-icons_3383bb_256x240.png +0 -0
  805. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-icons_454545_256x240.png +0 -0
  806. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-icons_70b2e1_256x240.png +0 -0
  807. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-icons_999999_256x240.png +0 -0
  808. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-icons_fbc856_256x240.png +0 -0
  809. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder.scss +18 -18
  810. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-anim_basic_16x16.gif +0 -0
  811. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_diagonal-maze_20_6e4f1c_10x10.png +0 -0
  812. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_diagonal-maze_40_000000_10x10.png +0 -0
  813. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_10_eceadf_60x60.png +0 -0
  814. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_10_f8f7f6_60x60.png +0 -0
  815. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_15_eceadf_60x60.png +0 -0
  816. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_15_f7f3de_60x60.png +0 -0
  817. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_15_ffffff_60x60.png +0 -0
  818. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_65_654b24_60x60.png +0 -0
  819. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_68_b83400_60x60.png +0 -0
  820. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-icons_222222_256x240.png +0 -0
  821. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-icons_3572ac_256x240.png +0 -0
  822. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-icons_8c291d_256x240.png +0 -0
  823. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-icons_b83400_256x240.png +0 -0
  824. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-icons_fbdb93_256x240.png +0 -0
  825. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-icons_ffffff_256x240.png +0 -0
  826. data/templates/jrails/{jquery.ui → jquery/ui}/redmond.scss +18 -18
  827. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-anim_basic_16x16.gif +0 -0
  828. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  829. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_flat_55_fbec88_40x100.png +0 -0
  830. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  831. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  832. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  833. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  834. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  835. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  836. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_217bc0_256x240.png +0 -0
  837. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_2e83ff_256x240.png +0 -0
  838. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_469bdd_256x240.png +0 -0
  839. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_6da8d5_256x240.png +0 -0
  840. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_cd0a0a_256x240.png +0 -0
  841. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_d8e7f3_256x240.png +0 -0
  842. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_f9bd01_256x240.png +0 -0
  843. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness.scss +18 -18
  844. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-anim_basic_16x16.gif +0 -0
  845. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  846. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_flat_75_ffffff_40x100.png +0 -0
  847. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  848. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_glass_65_ffffff_1x400.png +0 -0
  849. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_glass_75_dadada_1x400.png +0 -0
  850. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  851. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  852. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  853. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-icons_222222_256x240.png +0 -0
  854. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-icons_2e83ff_256x240.png +0 -0
  855. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-icons_454545_256x240.png +0 -0
  856. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-icons_888888_256x240.png +0 -0
  857. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-icons_cd0a0a_256x240.png +0 -0
  858. data/templates/jrails/{jquery.ui → jquery/ui}/south-street.scss +18 -18
  859. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-anim_basic_16x16.gif +0 -0
  860. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_glass_55_fcf0ba_1x400.png +0 -0
  861. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_gloss-wave_100_ece8da_500x100.png +0 -0
  862. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_highlight-hard_100_f5f3e5_1x100.png +0 -0
  863. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_highlight-hard_100_fafaf4_1x100.png +0 -0
  864. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_highlight-hard_15_459e00_1x100.png +0 -0
  865. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_highlight-hard_95_cccccc_1x100.png +0 -0
  866. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_highlight-soft_25_67b021_1x100.png +0 -0
  867. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_highlight-soft_95_ffedad_1x100.png +0 -0
  868. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_inset-soft_15_2b2922_1x100.png +0 -0
  869. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-icons_808080_256x240.png +0 -0
  870. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-icons_847e71_256x240.png +0 -0
  871. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-icons_8dc262_256x240.png +0 -0
  872. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-icons_cd0a0a_256x240.png +0 -0
  873. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-icons_eeeeee_256x240.png +0 -0
  874. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-icons_ffffff_256x240.png +0 -0
  875. data/templates/jrails/{jquery.ui → jquery/ui}/start.scss +18 -18
  876. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-anim_basic_16x16.gif +0 -0
  877. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_flat_55_999999_40x100.png +0 -0
  878. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_flat_75_aaaaaa_40x100.png +0 -0
  879. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_glass_45_0078ae_1x400.png +0 -0
  880. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_glass_55_f8da4e_1x400.png +0 -0
  881. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_glass_75_79c9ec_1x400.png +0 -0
  882. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_gloss-wave_45_e14f1c_500x100.png +0 -0
  883. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_gloss-wave_50_6eac2c_500x100.png +0 -0
  884. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_gloss-wave_75_2191c0_500x100.png +0 -0
  885. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  886. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_0078ae_256x240.png +0 -0
  887. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_056b93_256x240.png +0 -0
  888. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_d8e7f3_256x240.png +0 -0
  889. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_e0fdff_256x240.png +0 -0
  890. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_f5e175_256x240.png +0 -0
  891. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_f7a50d_256x240.png +0 -0
  892. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_fcd113_256x240.png +0 -0
  893. data/templates/jrails/{jquery.ui → jquery/ui}/sunny.scss +18 -18
  894. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-anim_basic_16x16.gif +0 -0
  895. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_diagonals-medium_20_d34d17_40x40.png +0 -0
  896. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_flat_30_cccccc_40x100.png +0 -0
  897. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  898. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_gloss-wave_45_817865_500x100.png +0 -0
  899. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_gloss-wave_60_fece2f_500x100.png +0 -0
  900. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_gloss-wave_70_ffdd57_500x100.png +0 -0
  901. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_gloss-wave_90_fff9e5_500x100.png +0 -0
  902. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_highlight-soft_100_feeebd_1x100.png +0 -0
  903. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_inset-soft_30_ffffff_1x100.png +0 -0
  904. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_3d3d3d_256x240.png +0 -0
  905. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_bd7b00_256x240.png +0 -0
  906. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_d19405_256x240.png +0 -0
  907. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_eb990f_256x240.png +0 -0
  908. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_ed9f26_256x240.png +0 -0
  909. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_fadc7a_256x240.png +0 -0
  910. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_ffe180_256x240.png +0 -0
  911. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse.scss +18 -18
  912. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-anim_basic_16x16.gif +0 -0
  913. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_diamond_10_4f4221_10x8.png +0 -0
  914. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_diamond_20_372806_10x8.png +0 -0
  915. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_diamond_25_675423_10x8.png +0 -0
  916. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_diamond_25_d5ac5d_10x8.png +0 -0
  917. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_diamond_8_261803_10x8.png +0 -0
  918. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_diamond_8_443113_10x8.png +0 -0
  919. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_flat_75_ddd4b0_40x100.png +0 -0
  920. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
  921. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_070603_256x240.png +0 -0
  922. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_e8e2b5_256x240.png +0 -0
  923. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_e9cd86_256x240.png +0 -0
  924. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_efec9f_256x240.png +0 -0
  925. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_f2ec64_256x240.png +0 -0
  926. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_f9f2bd_256x240.png +0 -0
  927. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_ff7519_256x240.png +0 -0
  928. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/buttonbg.png +0 -0
  929. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/icon_color_arrow.gif +0 -0
  930. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/menuhoverbg.png +0 -0
  931. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_black_matte.png +0 -0
  932. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_black_tie.png +0 -0
  933. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_blitzer.png +0 -0
  934. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_cupertino.png +0 -0
  935. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_dark_hive.png +0 -0
  936. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_dot_luv.png +0 -0
  937. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_eggplant.png +0 -0
  938. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_excite_bike.png +0 -0
  939. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_flick.png +0 -0
  940. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_hot_sneaks.png +0 -0
  941. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_humanity.png +0 -0
  942. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_le_frog.png +0 -0
  943. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_mint_choco.png +0 -0
  944. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_overcast.png +0 -0
  945. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_pepper_grinder.png +0 -0
  946. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_smoothness.png +0 -0
  947. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_south_street.png +0 -0
  948. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_start_menu.png +0 -0
  949. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_sunny.png +0 -0
  950. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_swanky_purse.png +0 -0
  951. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_trontastic.png +0 -0
  952. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_ui_dark.png +0 -0
  953. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_ui_light.png +0 -0
  954. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_windoze.png +0 -0
  955. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic.scss +18 -18
  956. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-anim_basic_16x16.gif +0 -0
  957. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_diagonals-small_50_262626_40x40.png +0 -0
  958. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_flat_0_303030_40x100.png +0 -0
  959. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_flat_0_4c4c4c_40x100.png +0 -0
  960. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_glass_40_0a0a0a_1x400.png +0 -0
  961. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_glass_55_f1fbe5_1x400.png +0 -0
  962. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_glass_60_000000_1x400.png +0 -0
  963. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_gloss-wave_55_000000_500x100.png +0 -0
  964. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_gloss-wave_85_9fda58_500x100.png +0 -0
  965. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_gloss-wave_95_f6ecd5_500x100.png +0 -0
  966. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-icons_000000_256x240.png +0 -0
  967. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-icons_1f1f1f_256x240.png +0 -0
  968. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-icons_9fda58_256x240.png +0 -0
  969. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-icons_b8ec79_256x240.png +0 -0
  970. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-icons_cd0a0a_256x240.png +0 -0
  971. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-icons_ffffff_256x240.png +0 -0
  972. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness.scss +18 -18
  973. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-anim_basic_16x16.gif +0 -0
  974. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_flat_30_cccccc_40x100.png +0 -0
  975. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  976. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_glass_20_555555_1x400.png +0 -0
  977. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_glass_40_0078a3_1x400.png +0 -0
  978. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  979. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_gloss-wave_25_333333_500x100.png +0 -0
  980. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  981. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_inset-soft_25_000000_1x100.png +0 -0
  982. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_inset-soft_30_f58400_1x100.png +0 -0
  983. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-icons_222222_256x240.png +0 -0
  984. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-icons_4b8e0b_256x240.png +0 -0
  985. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-icons_a83300_256x240.png +0 -0
  986. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-icons_cccccc_256x240.png +0 -0
  987. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-icons_ffffff_256x240.png +0 -0
  988. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness.scss +18 -18
  989. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-anim_basic_16x16.gif +0 -0
  990. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  991. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  992. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_flat_10_000000_40x100.png +0 -0
  993. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  994. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  995. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_glass_65_ffffff_1x400.png +0 -0
  996. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  997. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  998. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  999. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-icons_222222_256x240.png +0 -0
  1000. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-icons_228ef1_256x240.png +0 -0
  1001. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-icons_ef8c08_256x240.png +0 -0
  1002. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-icons_ffd27a_256x240.png +0 -0
  1003. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-icons_ffffff_256x240.png +0 -0
  1004. data/templates/jrails/{jquery.ui → jquery/ui}/vader.scss +18 -18
  1005. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-anim_basic_16x16.gif +0 -0
  1006. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  1007. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  1008. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_gloss-wave_16_121212_500x100.png +0 -0
  1009. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_highlight-hard_15_888888_1x100.png +0 -0
  1010. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_highlight-hard_55_555555_1x100.png +0 -0
  1011. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_highlight-soft_35_adadad_1x100.png +0 -0
  1012. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_highlight-soft_60_dddddd_1x100.png +0 -0
  1013. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_inset-soft_15_121212_1x100.png +0 -0
  1014. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_666666_256x240.png +0 -0
  1015. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_aaaaaa_256x240.png +0 -0
  1016. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_bbbbbb_256x240.png +0 -0
  1017. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_c98000_256x240.png +0 -0
  1018. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_cccccc_256x240.png +0 -0
  1019. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_cd0a0a_256x240.png +0 -0
  1020. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_f29a00_256x240.png +0 -0
  1021. data/templates/jrails/manifest.rb +466 -454
  1022. data/templates/jrails/partials/_flash_messages.scss +8 -8
  1023. data/templates/jstree/config/initializers/jstree.rb +4 -4
  1024. data/templates/jstree/jquery.jstree.js +4534 -3513
  1025. data/templates/jstree/jquery.jstree.min.js +220 -172
  1026. data/templates/jstree/{jquery.ui/jstree.aero.scss → jquery/jstree/aero.scss} +10 -10
  1027. data/templates/jstree/{jquery.ui/jstree.aero → jquery/jstree/aero}/clicked.png +0 -0
  1028. data/templates/jstree/{jquery.ui/jstree.aero → jquery/jstree/aero}/d.gif +0 -0
  1029. data/templates/jstree/{jquery.ui/jstree.aero → jquery/jstree/aero}/d.png +0 -0
  1030. data/templates/jstree/{jquery.ui/jstree.aero → jquery/jstree/aero}/hovered.png +0 -0
  1031. data/templates/jstree/{jquery.ui/jstree.aero → jquery/jstree/aero}/throbber.gif +0 -0
  1032. data/templates/jstree/{jquery.ui/jstree.aqua.scss → jquery/jstree/aqua.scss} +10 -10
  1033. data/templates/jstree/{jquery.ui/jstree.aqua → jquery/jstree/aqua}/clicked.png +0 -0
  1034. data/templates/jstree/{jquery.ui/jstree.aqua → jquery/jstree/aqua}/d.gif +0 -0
  1035. data/templates/jstree/{jquery.ui/jstree.aqua → jquery/jstree/aqua}/d.png +0 -0
  1036. data/templates/jstree/{jquery.ui/jstree.aqua → jquery/jstree/aqua}/hovered.png +0 -0
  1037. data/templates/jstree/{jquery.ui/jstree.aqua → jquery/jstree/aqua}/throbber.gif +0 -0
  1038. data/templates/jstree/{jquery.ui/jstree.classic.scss → jquery/jstree/classic.scss} +5 -5
  1039. data/templates/jstree/{jquery.ui/jstree.classic → jquery/jstree/classic}/d.png +0 -0
  1040. data/templates/jstree/{jquery.ui/jstree.classic → jquery/jstree/classic}/dot_for_ie.gif +0 -0
  1041. data/templates/jstree/{jquery.ui/jstree.classic → jquery/jstree/classic}/throbber.gif +0 -0
  1042. data/templates/jstree/{jquery.ui/jstree.crystal.scss → jquery/jstree/crystal.scss} +8 -8
  1043. data/templates/jstree/{jquery.ui/jstree.crystal → jquery/jstree/crystal}/d.gif +0 -0
  1044. data/templates/jstree/{jquery.ui/jstree.crystal → jquery/jstree/crystal}/d.png +0 -0
  1045. data/templates/jstree/{jquery.ui/jstree.crystal → jquery/jstree/crystal}/throbber.gif +0 -0
  1046. data/templates/jstree/{jquery.ui/jstree.default-rtl.scss → jquery/jstree/default-rtl.scss} +9 -9
  1047. data/templates/jstree/{jquery.ui/jstree.default-rtl → jquery/jstree/default-rtl}/d.gif +0 -0
  1048. data/templates/jstree/{jquery.ui/jstree.default-rtl → jquery/jstree/default-rtl}/d.png +0 -0
  1049. data/templates/jstree/{jquery.ui/jstree.default-rtl → jquery/jstree/default-rtl}/dots.gif +0 -0
  1050. data/templates/jstree/{jquery.ui/jstree.default-rtl → jquery/jstree/default-rtl}/throbber.gif +0 -0
  1051. data/templates/jstree/{jquery.ui/jstree.default.scss → jquery/jstree/default.scss} +8 -8
  1052. data/templates/jstree/{jquery.ui/jstree.default → jquery/jstree/default}/d.gif +0 -0
  1053. data/templates/jstree/{jquery.ui/jstree.default → jquery/jstree/default}/d.png +0 -0
  1054. data/templates/jstree/{jquery.ui/jstree.default → jquery/jstree/default}/throbber.gif +0 -0
  1055. data/templates/jstree/manifest.rb +29 -29
  1056. data/templates/mobile/config/initializers/mobile.rb +6 -0
  1057. data/templates/mobile/jquery.mobile.js +3189 -0
  1058. data/templates/mobile/jquery.mobile.min.js +28 -0
  1059. data/templates/mobile/jquery/mobile/_base.scss +1326 -0
  1060. data/templates/mobile/jquery/mobile/default.scss +742 -0
  1061. data/templates/mobile/jquery/mobile/default/ajax-loader.gif +0 -0
  1062. data/templates/mobile/jquery/mobile/default/ajax-loader.png +0 -0
  1063. data/templates/mobile/jquery/mobile/default/form-check-off.png +0 -0
  1064. data/templates/mobile/jquery/mobile/default/form-check-on.png +0 -0
  1065. data/templates/mobile/jquery/mobile/default/form-radio-off.png +0 -0
  1066. data/templates/mobile/jquery/mobile/default/form-radio-on.png +0 -0
  1067. data/templates/mobile/jquery/mobile/default/icon-arrow-white-down.png +0 -0
  1068. data/templates/mobile/jquery/mobile/default/icon-arrow-white-left.png +0 -0
  1069. data/templates/mobile/jquery/mobile/default/icon-arrow-white-right.png +0 -0
  1070. data/templates/mobile/jquery/mobile/default/icon-arrow-white-up.png +0 -0
  1071. data/templates/mobile/jquery/mobile/default/icon-delete.png +0 -0
  1072. data/templates/mobile/jquery/mobile/default/icon-minus-white.png +0 -0
  1073. data/templates/mobile/jquery/mobile/default/icon-plus-white.png +0 -0
  1074. data/templates/mobile/jquery/mobile/default/icon-search-black.png +0 -0
  1075. data/templates/mobile/jquery/mobile/default/icons-18-black.png +0 -0
  1076. data/templates/mobile/jquery/mobile/default/icons-18-white.png +0 -0
  1077. data/templates/mobile/jquery/mobile/default/icons-36-black.png +0 -0
  1078. data/templates/mobile/jquery/mobile/default/icons-36-white.png +0 -0
  1079. data/templates/mobile/jquery/mobile/valencia.scss +804 -0
  1080. data/templates/mobile/jquery/mobile/valencia/ajax-loader.gif +0 -0
  1081. data/templates/mobile/jquery/mobile/valencia/ajax-loader.png +0 -0
  1082. data/templates/mobile/jquery/mobile/valencia/form-check-off.png +0 -0
  1083. data/templates/mobile/jquery/mobile/valencia/form-check-on.png +0 -0
  1084. data/templates/mobile/jquery/mobile/valencia/form-radio-off.png +0 -0
  1085. data/templates/mobile/jquery/mobile/valencia/form-radio-on.png +0 -0
  1086. data/templates/mobile/jquery/mobile/valencia/icon-arrow-white-down.png +0 -0
  1087. data/templates/mobile/jquery/mobile/valencia/icon-arrow-white-left.png +0 -0
  1088. data/templates/mobile/jquery/mobile/valencia/icon-arrow-white-right.png +0 -0
  1089. data/templates/mobile/jquery/mobile/valencia/icon-arrow-white-up.png +0 -0
  1090. data/templates/mobile/jquery/mobile/valencia/icon-delete.png +0 -0
  1091. data/templates/mobile/jquery/mobile/valencia/icon-minus-white.png +0 -0
  1092. data/templates/mobile/jquery/mobile/valencia/icon-plus-white.png +0 -0
  1093. data/templates/mobile/jquery/mobile/valencia/icon-search-black.png +0 -0
  1094. data/templates/mobile/jquery/mobile/valencia/icons-18-black.png +0 -0
  1095. data/templates/mobile/jquery/mobile/valencia/icons-18-white.png +0 -0
  1096. data/templates/mobile/jquery/mobile/valencia/icons-36-black.png +0 -0
  1097. data/templates/mobile/jquery/mobile/valencia/icons-36-white.png +0 -0
  1098. data/templates/mobile/jquery/mobile/valencia/texture_05.png +0 -0
  1099. data/templates/mobile/jquery/mobile/valencia/texture_075.png +0 -0
  1100. data/templates/mobile/manifest.rb +47 -0
  1101. data/templates/ribbon/config/initializers/ribbon.rb +3 -3
  1102. data/templates/ribbon/jquery.ribbon.js +4 -4
  1103. data/templates/ribbon/jquery.ribbon.min.js +3 -3
  1104. data/templates/ribbon/{jquery.ui/ribbon.windows7.scss → jquery/ribbon/office.scss} +20 -20
  1105. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/arrow.png +0 -0
  1106. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/arrow_down.png +0 -0
  1107. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/bg.png +0 -0
  1108. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/item_background.png +0 -0
  1109. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/item_small_background.png +0 -0
  1110. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_background.png +0 -0
  1111. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_bottom.png +0 -0
  1112. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_dropdownitembg.png +0 -0
  1113. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_dropdownitembghover.png +0 -0
  1114. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_item_hover.png +0 -0
  1115. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_middle.png +0 -0
  1116. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_top.png +0 -0
  1117. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_top_backstage.png +0 -0
  1118. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_top_backstage2.png +0 -0
  1119. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menuitem_background.png +0 -0
  1120. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/orb.png +0 -0
  1121. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/orb_hover.png +0 -0
  1122. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/orb_office.png +0 -0
  1123. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/orb_office_hover.png +0 -0
  1124. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/orb_submenu_item_hover.png +0 -0
  1125. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/ribbon-backstage-firstLevel-hover.png +0 -0
  1126. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/ribbon-backstage-rightColumn-wide.png +0 -0
  1127. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/ribbon-backstage-subMenu-item-hover.png +0 -0
  1128. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/ribbon-backstage-subMenu-item.png +0 -0
  1129. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/ribbon-backstage-subMenu-itemSquare-hover.png +0 -0
  1130. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/ribbon-backstage-subMenu-itemSquare.png +0 -0
  1131. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/top_background.png +0 -0
  1132. data/templates/ribbon/{jquery.ui/ribbon.simple.scss → jquery/ribbon/simple.scss} +13 -13
  1133. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/arrow.png +0 -0
  1134. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/arrow_down.png +0 -0
  1135. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/bg.png +0 -0
  1136. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/item_background.png +0 -0
  1137. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/item_small_background.png +0 -0
  1138. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_background.png +0 -0
  1139. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_bottom.png +0 -0
  1140. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_dropdownitembg.png +0 -0
  1141. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_dropdownitembghover.png +0 -0
  1142. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_item_hover.png +0 -0
  1143. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_middle.png +0 -0
  1144. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_top.png +0 -0
  1145. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menuitem_background.png +0 -0
  1146. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/orb.png +0 -0
  1147. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/orb_hover.png +0 -0
  1148. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/orb_submenu_item_hover.png +0 -0
  1149. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/top_background.png +0 -0
  1150. data/templates/ribbon/{jquery.ui/ribbon.office.scss → jquery/ribbon/windows7.scss} +20 -20
  1151. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/arrow.png +0 -0
  1152. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/arrow_down.png +0 -0
  1153. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/bg.png +0 -0
  1154. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/item_background.png +0 -0
  1155. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/item_small_background.png +0 -0
  1156. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_background.png +0 -0
  1157. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_bottom.png +0 -0
  1158. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_dropdownitembg.png +0 -0
  1159. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_dropdownitembghover.png +0 -0
  1160. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_item_hover.png +0 -0
  1161. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_middle.png +0 -0
  1162. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_top.png +0 -0
  1163. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_top_backstage.png +0 -0
  1164. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_top_backstage2.png +0 -0
  1165. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menuitem_background.png +0 -0
  1166. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/orb.png +0 -0
  1167. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/orb_hover.png +0 -0
  1168. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/orb_office.png +0 -0
  1169. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/orb_office_hover.png +0 -0
  1170. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/orb_submenu_item_hover.png +0 -0
  1171. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/ribbon-backstage-firstLevel-hover.png +0 -0
  1172. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/ribbon-backstage-rightColumn-wide.png +0 -0
  1173. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/ribbon-backstage-subMenu-item-hover.png +0 -0
  1174. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/ribbon-backstage-subMenu-item.png +0 -0
  1175. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/ribbon-backstage-subMenu-itemSquare-hover.png +0 -0
  1176. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/ribbon-backstage-subMenu-itemSquare.png +0 -0
  1177. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/top_background.png +0 -0
  1178. data/templates/ribbon/manifest.rb +74 -74
  1179. data/templates/secret_sauce/app/views/{ui → shared}/_ui_form_error_messages.html.haml +0 -0
  1180. data/templates/secret_sauce/app/views/{ui → shared}/_ui_grid_for_without_block.js.haml +8 -8
  1181. data/templates/secret_sauce/app/views/{ui → shared}/_ui_static_dialog.html.haml +0 -0
  1182. data/templates/secret_sauce/config/initializers/secret_sauce.rb +1 -1
  1183. data/templates/secret_sauce/{jquery.ui → jquery}/secret_sauce.scss +0 -0
  1184. data/templates/secret_sauce/manifest.rb +4 -4
  1185. metadata +1134 -1051
  1186. data/templates/jqtouch/jqtouch/apple/actionButton.png +0 -0
  1187. data/templates/jqtouch/jqtouch/icons/iphone_16x16.png +0 -0
  1188. data/templates/jqtouch/jqtouch/iphone-emulator.scss +0 -21
  1189. data/templates/jqtouch/jqtouch/iphone_fullsize.png +0 -0
  1190. data/templates/jrails/jquery-1.4.2.js +0 -9502
  1191. data/templates/jrails/jquery-1.4.2.min.js +0 -210
  1192. data/templates/jrails/jquery-ui-1.8.5.min.js +0 -823
@@ -1,210 +0,0 @@
1
- (function(q,D){function w(){if(!d.isReady){try{C.documentElement.doScroll("left")}catch(b){setTimeout(w,1);return}d.ready()}}function P(b,c){c.src?d.ajax({url:c.src,async:false,dataType:"script"}):d.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function L(b,c,e,g,f,l){var m=b.length;if(typeof c==="object"){for(var v in c)L(b,v,c[v],g,f,e);return b}if(e!==D){g=!l&&g&&d.isFunction(e);for(v=0;v<m;v++)f(b[v],c,g?e.call(b[v],v,f(b[v],c)):e,l);return b}return m?
2
- f(b[0],c):D}function M(){return(new Date).getTime()}function O(){return false}function ea(){return true}function V(b,c,e){e[0].type=b;return d.event.handle.apply(c,e)}function K(b){var c,e=[],g=[],f=arguments,l,m,v,s,x,F;m=d.data(this,"events");if(!(b.liveFired===this||!m||!m.live||b.button&&b.type==="click")){b.liveFired=this;var U=m.live.slice(0);for(s=0;s<U.length;s++){m=U[s];m.origType.replace(za,"")===b.type?g.push(m.selector):U.splice(s--,1)}l=d(b.target).closest(g,b.currentTarget);x=0;for(F=
3
- l.length;x<F;x++)for(s=0;s<U.length;s++){m=U[s];if(l[x].selector===m.selector){v=l[x].elem;g=null;if(m.preType==="mouseenter"||m.preType==="mouseleave")g=d(b.relatedTarget).closest(m.selector)[0];if(!g||g!==v)e.push({elem:v,handleObj:m})}}x=0;for(F=e.length;x<F;x++){l=e[x];b.currentTarget=l.elem;b.data=l.handleObj.data;b.handleObj=l.handleObj;if(l.handleObj.origHandler.apply(l.elem,f)===false){c=false;break}}return c}}function la(b,c){return"live."+(b&&b!=="*"?b+".":"")+c.replace(/\./g,"`").replace(/ /g,
4
- "&")}function R(b,c){var e=0;c.each(function(){if(this.nodeName===(b[e]&&b[e].nodeName)){var g=d.data(b[e++]),f=d.data(this,g);if(g=g&&g.events){delete f.handle;f.events={};for(var l in g)for(var m in g[l])d.event.add(this,l,g[l][m],g[l][m].data)}}})}function Aa(b,c,e){var g,f,l;c=c&&c[0]?c[0].ownerDocument||c[0]:C;if(b.length===1&&typeof b[0]==="string"&&b[0].length<512&&c===C&&!E.test(b[0])&&(d.support.checkClone||!I.test(b[0]))){f=true;if(l=d.fragments[b[0]])if(l!==1)g=l}if(!g){g=c.createDocumentFragment();
5
- d.clean(b,c,g,e)}if(f)d.fragments[b[0]]=l?g:1;return{fragment:g,cacheable:f}}function ca(b,c){var e={};d.each(jb.concat.apply([],jb.slice(0,c)),function(){e[this]=b});return e}function Y(b){return"scrollTo"in b&&b.document?b:b.nodeType===9?b.defaultView||b.parentWindow:false}var d=function(b,c){return new d.fn.init(b,c)},Na=q.jQuery,xa=q.$,C=q.document,W,ha=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,pa=/^.[^:#\[\.,]*$/,ma=/\S/,sa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Ea=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ka=navigator.userAgent,
6
- ia=false,fa=[],na,Fa=Object.prototype.toString,Ga=Object.prototype.hasOwnProperty,Oa=Array.prototype.push,Ba=Array.prototype.slice,ab=Array.prototype.indexOf;d.fn=d.prototype={init:function(b,c){var e,g,f;if(!b)return this;if(b.nodeType){this.context=this[0]=b;this.length=1;return this}if(b==="body"&&!c){this.context=C;this[0]=C.body;this.selector="body";this.length=1;return this}if(typeof b==="string")if((e=ha.exec(b))&&(e[1]||!c))if(e[1]){f=c?c.ownerDocument||c:C;if(g=Ea.exec(b))if(d.isPlainObject(c)){b=
7
- [C.createElement(g[1])];d.fn.attr.call(b,c,true)}else b=[f.createElement(g[1])];else{g=Aa([e[1]],[f]);b=(g.cacheable?g.fragment.cloneNode(true):g.fragment).childNodes}return d.merge(this,b)}else{if(g=C.getElementById(e[2])){if(g.id!==e[2])return W.find(b);this.length=1;this[0]=g}this.context=C;this.selector=b;return this}else if(!c&&/^\w+$/.test(b)){this.selector=b;this.context=C;b=C.getElementsByTagName(b);return d.merge(this,b)}else return!c||c.jquery?(c||W).find(b):d(c).find(b);else if(d.isFunction(b))return W.ready(b);
8
- if(b.selector!==D){this.selector=b.selector;this.context=b.context}return d.makeArray(b,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return Ba.call(this,0)},get:function(b){return b==null?this.toArray():b<0?this.slice(b)[0]:this[b]},pushStack:function(b,c,e){var g=d();d.isArray(b)?Oa.apply(g,b):d.merge(g,b);g.prevObject=this;g.context=this.context;if(c==="find")g.selector=this.selector+(this.selector?" ":"")+e;else if(c)g.selector=this.selector+
9
- "."+c+"("+e+")";return g},each:function(b,c){return d.each(this,b,c)},ready:function(b){d.bindReady();if(d.isReady)b.call(C,d);else fa&&fa.push(b);return this},eq:function(b){return b===-1?this.slice(b):this.slice(b,+b+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Ba.apply(this,arguments),"slice",Ba.call(arguments).join(","))},map:function(b){return this.pushStack(d.map(this,function(c,e){return b.call(c,e,c)}))},end:function(){return this.prevObject||
10
- d(null)},push:Oa,sort:[].sort,splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var b=arguments[0]||{},c=1,e=arguments.length,g=false,f,l,m,v;if(typeof b==="boolean"){g=b;b=arguments[1]||{};c=2}if(typeof b!=="object"&&!d.isFunction(b))b={};if(e===c){b=this;--c}for(;c<e;c++)if((f=arguments[c])!=null)for(l in f){m=b[l];v=f[l];if(b!==v)if(g&&v&&(d.isPlainObject(v)||d.isArray(v))){m=m&&(d.isPlainObject(m)||d.isArray(m))?m:d.isArray(v)?[]:{};b[l]=d.extend(g,m,v)}else if(v!==D)b[l]=
11
- v}return b};d.extend({noConflict:function(b){q.$=xa;if(b)q.jQuery=Na;return d},isReady:false,ready:function(){if(!d.isReady){if(!C.body)return setTimeout(d.ready,13);d.isReady=true;if(fa){for(var b,c=0;b=fa[c++];)b.call(C,d);fa=null}d.fn.triggerHandler&&d(C).triggerHandler("ready")}},bindReady:function(){if(!ia){ia=true;if(C.readyState==="complete")return d.ready();if(C.addEventListener){C.addEventListener("DOMContentLoaded",na,false);q.addEventListener("load",d.ready,false)}else if(C.attachEvent){C.attachEvent("onreadystatechange",
12
- na);q.attachEvent("onload",d.ready);var b=false;try{b=q.frameElement==null}catch(c){}C.documentElement.doScroll&&b&&w()}}},isFunction:function(b){return Fa.call(b)==="[object Function]"},isArray:function(b){return Fa.call(b)==="[object Array]"},isPlainObject:function(b){if(!b||Fa.call(b)!=="[object Object]"||b.nodeType||b.setInterval)return false;if(b.constructor&&!Ga.call(b,"constructor")&&!Ga.call(b.constructor.prototype,"isPrototypeOf"))return false;for(var c in b);return c===D||Ga.call(b,c)},
13
- isEmptyObject:function(b){for(var c in b)return false;return true},error:function(b){throw b;},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=d.trim(b);if(/^[\],:{}\s]*$/.test(b.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return q.JSON&&q.JSON.parse?q.JSON.parse(b):(new Function("return "+b))();else d.error("Invalid JSON: "+b)},noop:function(){},globalEval:function(b){if(b&&
14
- ma.test(b)){var c=C.getElementsByTagName("head")[0]||C.documentElement,e=C.createElement("script");e.type="text/javascript";if(d.support.scriptEval)e.appendChild(C.createTextNode(b));else e.text=b;c.insertBefore(e,c.firstChild);c.removeChild(e)}},nodeName:function(b,c){return b.nodeName&&b.nodeName.toUpperCase()===c.toUpperCase()},each:function(b,c,e){var g,f=0,l=b.length,m=l===D||d.isFunction(b);if(e)if(m)for(g in b){if(c.apply(b[g],e)===false)break}else for(;f<l;){if(c.apply(b[f++],e)===false)break}else if(m)for(g in b){if(c.call(b[g],
15
- g,b[g])===false)break}else for(e=b[0];f<l&&c.call(e,f,e)!==false;e=b[++f]);return b},trim:function(b){return(b||"").replace(sa,"")},makeArray:function(b,c){var e=c||[];if(b!=null)b.length==null||typeof b==="string"||d.isFunction(b)||typeof b!=="function"&&b.setInterval?Oa.call(e,b):d.merge(e,b);return e},inArray:function(b,c){if(c.indexOf)return c.indexOf(b);for(var e=0,g=c.length;e<g;e++)if(c[e]===b)return e;return-1},merge:function(b,c){var e=b.length,g=0;if(typeof c.length==="number")for(var f=
16
- c.length;g<f;g++)b[e++]=c[g];else for(;c[g]!==D;)b[e++]=c[g++];b.length=e;return b},grep:function(b,c,e){for(var g=[],f=0,l=b.length;f<l;f++)!e!==!c(b[f],f)&&g.push(b[f]);return g},map:function(b,c,e){for(var g=[],f,l=0,m=b.length;l<m;l++){f=c(b[l],l,e);if(f!=null)g[g.length]=f}return g.concat.apply([],g)},guid:1,proxy:function(b,c,e){if(arguments.length===2)if(typeof c==="string"){e=b;b=e[c];c=D}else if(c&&!d.isFunction(c)){e=c;c=D}if(!c&&b)c=function(){return b.apply(e||this,arguments)};if(b)c.guid=
17
- b.guid=b.guid||c.guid||d.guid++;return c},uaMatch:function(b){b=b.toLowerCase();b=/(webkit)[ \/]([\w.]+)/.exec(b)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(b)||/(msie) ([\w.]+)/.exec(b)||!/compatible/.test(b)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(b)||[];return{browser:b[1]||"",version:b[2]||"0"}},browser:{}});ka=d.uaMatch(ka);if(ka.browser){d.browser[ka.browser]=true;d.browser.version=ka.version}if(d.browser.webkit)d.browser.safari=true;if(ab)d.inArray=function(b,c){return ab.call(c,b)};W=d(C);if(C.addEventListener)na=
18
- function(){C.removeEventListener("DOMContentLoaded",na,false);d.ready()};else if(C.attachEvent)na=function(){if(C.readyState==="complete"){C.detachEvent("onreadystatechange",na);d.ready()}};(function(){d.support={};var b=C.documentElement,c=C.createElement("script"),e=C.createElement("div"),g="script"+M();e.style.display="none";e.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var f=e.getElementsByTagName("*"),l=e.getElementsByTagName("a")[0];
19
- if(!(!f||!f.length||!l)){d.support={leadingWhitespace:e.firstChild.nodeType===3,tbody:!e.getElementsByTagName("tbody").length,htmlSerialize:!!e.getElementsByTagName("link").length,style:/red/.test(l.getAttribute("style")),hrefNormalized:l.getAttribute("href")==="/a",opacity:/^0.55$/.test(l.style.opacity),cssFloat:!!l.style.cssFloat,checkOn:e.getElementsByTagName("input")[0].value==="on",optSelected:C.createElement("select").appendChild(C.createElement("option")).selected,parentNode:e.removeChild(e.appendChild(C.createElement("div"))).parentNode===
20
- null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};c.type="text/javascript";try{c.appendChild(C.createTextNode("window."+g+"=1;"))}catch(m){}b.insertBefore(c,b.firstChild);if(q[g]){d.support.scriptEval=true;delete q[g]}try{delete c.test}catch(v){d.support.deleteExpando=false}b.removeChild(c);if(e.attachEvent&&e.fireEvent){e.attachEvent("onclick",function s(){d.support.noCloneEvent=false;e.detachEvent("onclick",s)});e.cloneNode(true).fireEvent("onclick")}e=C.createElement("div");
21
- e.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";b=C.createDocumentFragment();b.appendChild(e.firstChild);d.support.checkClone=b.cloneNode(true).cloneNode(true).lastChild.checked;d(function(){var s=C.createElement("div");s.style.width=s.style.paddingLeft="1px";C.body.appendChild(s);d.boxModel=d.support.boxModel=s.offsetWidth===2;C.body.removeChild(s).style.display="none"});b=function(s){var x=C.createElement("div");s="on"+s;var F=s in x;if(!F){x.setAttribute(s,"return;");F=typeof x[s]===
22
- "function"}return F};d.support.submitBubbles=b("submit");d.support.changeBubbles=b("change");b=c=e=f=l=null}})();d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var ya="jQuery"+M(),Va=0,Pa={};d.extend({cache:{},expando:ya,noData:{embed:true,object:true,applet:true},data:function(b,c,e){if(!(b.nodeName&&d.noData[b.nodeName.toLowerCase()])){b=
23
- b==q?Pa:b;var g=b[ya],f=d.cache;if(!g&&typeof c==="string"&&e===D)return null;g||(g=++Va);if(typeof c==="object"){b[ya]=g;f[g]=d.extend(true,{},c)}else if(!f[g]){b[ya]=g;f[g]={}}b=f[g];if(e!==D)b[c]=e;return typeof c==="string"?b[c]:b}},removeData:function(b,c){if(!(b.nodeName&&d.noData[b.nodeName.toLowerCase()])){b=b==q?Pa:b;var e=b[ya],g=d.cache,f=g[e];if(c){if(f){delete f[c];d.isEmptyObject(f)&&d.removeData(b)}}else{if(d.support.deleteExpando)delete b[d.expando];else b.removeAttribute&&b.removeAttribute(d.expando);
24
- delete g[e]}}}});d.fn.extend({data:function(b,c){if(typeof b==="undefined"&&this.length)return d.data(this[0]);else if(typeof b==="object")return this.each(function(){d.data(this,b)});var e=b.split(".");e[1]=e[1]?"."+e[1]:"";if(c===D){var g=this.triggerHandler("getData"+e[1]+"!",[e[0]]);if(g===D&&this.length)g=d.data(this[0],b);return g===D&&e[1]?this.data(e[0]):g}else return this.trigger("setData"+e[1]+"!",[e[0],c]).each(function(){d.data(this,b,c)})},removeData:function(b){return this.each(function(){d.removeData(this,
25
- b)})}});d.extend({queue:function(b,c,e){if(b){c=(c||"fx")+"queue";var g=d.data(b,c);if(!e)return g||[];if(!g||d.isArray(e))g=d.data(b,c,d.makeArray(e));else g.push(e);return g}},dequeue:function(b,c){c=c||"fx";var e=d.queue(b,c),g=e.shift();if(g==="inprogress")g=e.shift();if(g){c==="fx"&&e.unshift("inprogress");g.call(b,function(){d.dequeue(b,c)})}}});d.fn.extend({queue:function(b,c){if(typeof b!=="string"){c=b;b="fx"}if(c===D)return d.queue(this[0],b);return this.each(function(){var e=d.queue(this,
26
- b,c);b==="fx"&&e[0]!=="inprogress"&&d.dequeue(this,b)})},dequeue:function(b){return this.each(function(){d.dequeue(this,b)})},delay:function(b,c){b=d.fx?d.fx.speeds[b]||b:b;c=c||"fx";return this.queue(c,function(){var e=this;setTimeout(function(){d.dequeue(e,c)},b)})},clearQueue:function(b){return this.queue(b||"fx",[])}});var Qa=/[\n\t]/g,va=/\s+/,Ca=/\r/g,Sa=/href|src|style/,Wa=/(button|input)/i,Xa=/(button|input|object|select|textarea)/i,db=/^(a|area)$/i,Ya=/radio|checkbox/;d.fn.extend({attr:function(b,
27
- c){return L(this,b,c,true,d.attr)},removeAttr:function(b){return this.each(function(){d.attr(this,b,"");this.nodeType===1&&this.removeAttribute(b)})},addClass:function(b){if(d.isFunction(b))return this.each(function(x){var F=d(this);F.addClass(b.call(this,x,F.attr("class")))});if(b&&typeof b==="string")for(var c=(b||"").split(va),e=0,g=this.length;e<g;e++){var f=this[e];if(f.nodeType===1)if(f.className){for(var l=" "+f.className+" ",m=f.className,v=0,s=c.length;v<s;v++)if(l.indexOf(" "+c[v]+" ")<
28
- 0)m+=" "+c[v];f.className=d.trim(m)}else f.className=b}return this},removeClass:function(b){if(d.isFunction(b))return this.each(function(s){var x=d(this);x.removeClass(b.call(this,s,x.attr("class")))});if(b&&typeof b==="string"||b===D)for(var c=(b||"").split(va),e=0,g=this.length;e<g;e++){var f=this[e];if(f.nodeType===1&&f.className)if(b){for(var l=(" "+f.className+" ").replace(Qa," "),m=0,v=c.length;m<v;m++)l=l.replace(" "+c[m]+" "," ");f.className=d.trim(l)}else f.className=""}return this},toggleClass:function(b,
29
- c){var e=typeof b,g=typeof c==="boolean";if(d.isFunction(b))return this.each(function(f){var l=d(this);l.toggleClass(b.call(this,f,l.attr("class"),c),c)});return this.each(function(){if(e==="string")for(var f,l=0,m=d(this),v=c,s=b.split(va);f=s[l++];){v=g?v:!m.hasClass(f);m[v?"addClass":"removeClass"](f)}else if(e==="undefined"||e==="boolean"){this.className&&d.data(this,"__className__",this.className);this.className=this.className||b===false?"":d.data(this,"__className__")||""}})},hasClass:function(b){b=
30
- " "+b+" ";for(var c=0,e=this.length;c<e;c++)if((" "+this[c].className+" ").replace(Qa," ").indexOf(b)>-1)return true;return false},val:function(b){if(b===D){var c=this[0];if(c){if(d.nodeName(c,"option"))return(c.attributes.value||{}).specified?c.value:c.text;if(d.nodeName(c,"select")){var e=c.selectedIndex,g=[],f=c.options;c=c.type==="select-one";if(e<0)return null;var l=c?e:0;for(e=c?e+1:f.length;l<e;l++){var m=f[l];if(m.selected){b=d(m).val();if(c)return b;g.push(b)}}return g}if(Ya.test(c.type)&&
31
- !d.support.checkOn)return c.getAttribute("value")===null?"on":c.value;return(c.value||"").replace(Ca,"")}return D}var v=d.isFunction(b);return this.each(function(s){var x=d(this),F=b;if(this.nodeType===1){if(v)F=b.call(this,s,x.val());if(typeof F==="number")F+="";if(d.isArray(F)&&Ya.test(this.type))this.checked=d.inArray(x.val(),F)>=0;else if(d.nodeName(this,"select")){var U=d.makeArray(F);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),U)>=0});if(!U.length)this.selectedIndex=
32
- -1}else this.value=F}})}});d.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(b,c,e,g){if(!b||b.nodeType===3||b.nodeType===8)return D;if(g&&c in d.attrFn)return d(b)[c](e);g=b.nodeType!==1||!d.isXMLDoc(b);var f=e!==D;c=g&&d.props[c]||c;if(b.nodeType===1){var l=Sa.test(c);if(c in b&&g&&!l){if(f){c==="type"&&Wa.test(b.nodeName)&&b.parentNode&&d.error("type property can't be changed");b[c]=e}if(d.nodeName(b,"form")&&b.getAttributeNode(c))return b.getAttributeNode(c).nodeValue;
33
- if(c==="tabIndex")return(c=b.getAttributeNode("tabIndex"))&&c.specified?c.value:Xa.test(b.nodeName)||db.test(b.nodeName)&&b.href?0:D;return b[c]}if(!d.support.style&&g&&c==="style"){if(f)b.style.cssText=""+e;return b.style.cssText}f&&b.setAttribute(c,""+e);b=!d.support.hrefNormalized&&g&&l?b.getAttribute(c,2):b.getAttribute(c);return b===null?D:b}return d.style(b,c,e)}});var za=/\.(.*)$/,Da=function(b){return b.replace(/[^\w\s\.\|`]/g,function(c){return"\\"+c})};d.event={add:function(b,c,e,g){if(!(b.nodeType===
34
- 3||b.nodeType===8)){if(b.setInterval&&b!==q&&!b.frameElement)b=q;var f,l;if(e.handler){f=e;e=f.handler}if(!e.guid)e.guid=d.guid++;if(l=d.data(b)){var m=l.events=l.events||{},v=l.handle;if(!v)l.handle=v=function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(v.elem,arguments):D};v.elem=b;c=c.split(" ");for(var s,x=0,F;s=c[x++];){l=f?d.extend({},f):{handler:e,data:g};if(s.indexOf(".")>-1){F=s.split(".");s=F.shift();l.namespace=F.slice(0).sort().join(".")}else{F=[];l.namespace=
35
- ""}l.type=s;l.guid=e.guid;var U=m[s],ba=d.event.special[s]||{};if(!U){U=m[s]=[];if(!ba.setup||ba.setup.call(b,g,F,v)===false)if(b.addEventListener)b.addEventListener(s,v,false);else b.attachEvent&&b.attachEvent("on"+s,v)}if(ba.add){ba.add.call(b,l);if(!l.handler.guid)l.handler.guid=e.guid}U.push(l);d.event.global[s]=true}b=null}}},global:{},remove:function(b,c,e,g){if(!(b.nodeType===3||b.nodeType===8)){var f,l=0,m,v,s,x,F,U,ba=d.data(b),ga=ba&&ba.events;if(ba&&ga){if(c&&c.type){e=c.handler;c=c.type}if(!c||
36
- typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(f in ga)d.event.remove(b,f+c)}else{for(c=c.split(" ");f=c[l++];){x=f;m=f.indexOf(".")<0;v=[];if(!m){v=f.split(".");f=v.shift();s=RegExp("(^|\\.)"+d.map(v.slice(0).sort(),Da).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(F=ga[f])if(e){x=d.event.special[f]||{};for(da=g||0;da<F.length;da++){U=F[da];if(e.guid===U.guid){if(m||s.test(U.namespace)){g==null&&F.splice(da--,1);x.remove&&x.remove.call(b,U)}if(g!=null)break}}if(F.length===0||g!=null&&F.length===1){if(!x.teardown||
37
- x.teardown.call(b,v)===false)Ha(b,f,ba.handle);delete ga[f]}}else for(var da=0;da<F.length;da++){U=F[da];if(m||s.test(U.namespace)){d.event.remove(b,x,U.handler,da);F.splice(da--,1)}}}if(d.isEmptyObject(ga)){if(c=ba.handle)c.elem=null;delete ba.events;delete ba.handle;d.isEmptyObject(ba)&&d.removeData(b)}}}}},trigger:function(b,c,e,g){var f=b.type||b;if(!g){b=typeof b==="object"?b[ya]?b:d.extend(d.Event(f),b):d.Event(f);if(f.indexOf("!")>=0){b.type=f=f.slice(0,-1);b.exclusive=true}if(!e){b.stopPropagation();
38
- d.event.global[f]&&d.each(d.cache,function(){this.events&&this.events[f]&&d.event.trigger(b,c,this.handle.elem)})}if(!e||e.nodeType===3||e.nodeType===8)return D;b.result=D;b.target=e;c=d.makeArray(c);c.unshift(b)}b.currentTarget=e;(g=d.data(e,"handle"))&&g.apply(e,c);g=e.parentNode||e.ownerDocument;try{if(!(e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]))if(e["on"+f]&&e["on"+f].apply(e,c)===false)b.result=false}catch(l){}if(!b.isPropagationStopped()&&g)d.event.trigger(b,c,g,true);else if(!b.isDefaultPrevented()){g=
39
- b.target;var m,v=d.nodeName(g,"a")&&f==="click",s=d.event.special[f]||{};if((!s._default||s._default.call(e,b)===false)&&!v&&!(g&&g.nodeName&&d.noData[g.nodeName.toLowerCase()])){try{if(g[f]){if(m=g["on"+f])g["on"+f]=null;d.event.triggered=true;g[f]()}}catch(x){}if(m)g["on"+f]=m;d.event.triggered=false}}},handle:function(b){var c,e,g,f;b=arguments[0]=d.event.fix(b||q.event);b.currentTarget=this;c=b.type.indexOf(".")<0&&!b.exclusive;if(!c){e=b.type.split(".");b.type=e.shift();g=RegExp("(^|\\.)"+e.slice(0).sort().join("\\.(?:.*\\.)?")+
40
- "(\\.|$)")}f=d.data(this,"events");e=f[b.type];if(f&&e){e=e.slice(0);f=0;for(var l=e.length;f<l;f++){var m=e[f];if(c||g.test(m.namespace)){b.handler=m.handler;b.data=m.data;b.handleObj=m;m=m.handler.apply(this,arguments);if(m!==D){b.result=m;if(m===false){b.preventDefault();b.stopPropagation()}}if(b.isImmediatePropagationStopped())break}}}return b.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
41
- fix:function(b){if(b[ya])return b;var c=b;b=d.Event(c);for(var e=this.props.length,g;e;){g=this.props[--e];b[g]=c[g]}if(!b.target)b.target=b.srcElement||C;if(b.target.nodeType===3)b.target=b.target.parentNode;if(!b.relatedTarget&&b.fromElement)b.relatedTarget=b.fromElement===b.target?b.toElement:b.fromElement;if(b.pageX==null&&b.clientX!=null){c=C.documentElement;e=C.body;b.pageX=b.clientX+(c&&c.scrollLeft||e&&e.scrollLeft||0)-(c&&c.clientLeft||e&&e.clientLeft||0);b.pageY=b.clientY+(c&&c.scrollTop||
42
- e&&e.scrollTop||0)-(c&&c.clientTop||e&&e.clientTop||0)}if(!b.which&&(b.charCode||b.charCode===0?b.charCode:b.keyCode))b.which=b.charCode||b.keyCode;if(!b.metaKey&&b.ctrlKey)b.metaKey=b.ctrlKey;if(!b.which&&b.button!==D)b.which=b.button&1?1:b.button&2?3:b.button&4?2:0;return b},guid:1E8,proxy:d.proxy,special:{ready:{setup:d.bindReady,teardown:d.noop},live:{add:function(b){d.event.add(this,b.origType,d.extend({},b,{handler:K}))},remove:function(b){var c=true,e=b.origType.replace(za,"");d.each(d.data(this,
43
- "events").live||[],function(){if(e===this.origType.replace(za,""))return c=false});c&&d.event.remove(this,b.origType,K)}},beforeunload:{setup:function(b,c,e){if(this.setInterval)this.onbeforeunload=e;return false},teardown:function(b,c){if(this.onbeforeunload===c)this.onbeforeunload=null}}}};var Ha=C.removeEventListener?function(b,c,e){b.removeEventListener(c,e,false)}:function(b,c,e){b.detachEvent("on"+c,e)};d.Event=function(b){if(!this.preventDefault)return new d.Event(b);if(b&&b.type){this.originalEvent=
44
- b;this.type=b.type}else this.type=b;this.timeStamp=M();this[ya]=true};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ea;var b=this.originalEvent;if(b){b.preventDefault&&b.preventDefault();b.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=ea;var b=this.originalEvent;if(b){b.stopPropagation&&b.stopPropagation();b.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ea;this.stopPropagation()},isDefaultPrevented:O,isPropagationStopped:O,
45
- isImmediatePropagationStopped:O};var Ia=function(b){var c=b.relatedTarget;try{for(;c&&c!==this;)c=c.parentNode;if(c!==this){b.type=b.data;d.event.handle.apply(this,arguments)}}catch(e){}},Za=function(b){b.type=b.data;d.event.handle.apply(this,arguments)};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(b,c){d.event.special[b]={setup:function(e){d.event.add(this,c,e&&e.selector?Za:Ia,b)},teardown:function(e){d.event.remove(this,c,e&&e.selector?Za:Ia)}}});if(!d.support.submitBubbles)d.event.special.submit=
46
- {setup:function(){if(this.nodeName.toLowerCase()!=="form"){d.event.add(this,"click.specialSubmit",function(b){var c=b.target,e=c.type;if((e==="submit"||e==="image")&&d(c).closest("form").length)return V("submit",this,arguments)});d.event.add(this,"keypress.specialSubmit",function(b){var c=b.target,e=c.type;if((e==="text"||e==="password")&&d(c).closest("form").length&&b.keyCode===13)return V("submit",this,arguments)})}else return false},teardown:function(){d.event.remove(this,".specialSubmit")}};if(!d.support.changeBubbles){var oa=
47
- /textarea|input|select/i,X,Ja=function(b){var c=b.type,e=b.value;if(c==="radio"||c==="checkbox")e=b.checked;else if(c==="select-multiple")e=b.selectedIndex>-1?d.map(b.options,function(g){return g.selected}).join("-"):"";else if(b.nodeName.toLowerCase()==="select")e=b.selectedIndex;return e},qa=function(b,c){var e=b.target,g,f;if(!(!oa.test(e.nodeName)||e.readOnly)){g=d.data(e,"_change_data");f=Ja(e);if(b.type!=="focusout"||e.type!=="radio")d.data(e,"_change_data",f);if(!(g===D||f===g))if(g!=null||
48
- f){b.type="change";return d.event.trigger(b,c,e)}}};d.event.special.change={filters:{focusout:qa,click:function(b){var c=b.target,e=c.type;if(e==="radio"||e==="checkbox"||c.nodeName.toLowerCase()==="select")return qa.call(this,b)},keydown:function(b){var c=b.target,e=c.type;if(b.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||b.keyCode===32&&(e==="checkbox"||e==="radio")||e==="select-multiple")return qa.call(this,b)},beforeactivate:function(b){b=b.target;d.data(b,"_change_data",Ja(b))}},setup:function(){if(this.type===
49
- "file")return false;for(var b in X)d.event.add(this,b+".specialChange",X[b]);return oa.test(this.nodeName)},teardown:function(){d.event.remove(this,".specialChange");return oa.test(this.nodeName)}};X=d.event.special.change.filters}C.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(b,c){function e(g){g=d.event.fix(g);g.type=c;return d.event.handle.call(this,g)}d.event.special[c]={setup:function(){this.addEventListener(b,e,true)},teardown:function(){this.removeEventListener(b,e,true)}}});
50
- d.each(["bind","one"],function(b,c){d.fn[c]=function(e,g,f){if(typeof e==="object"){for(var l in e)this[c](l,g,e[l],f);return this}if(d.isFunction(g)){f=g;g=D}var m=c==="one"?d.proxy(f,function(s){d(this).unbind(s,m);return f.apply(this,arguments)}):f;if(e==="unload"&&c!=="one")this.one(e,g,f);else{l=0;for(var v=this.length;l<v;l++)d.event.add(this[l],e,m,g)}return this}});d.fn.extend({unbind:function(b,c){if(typeof b==="object"&&!b.preventDefault)for(var e in b)this.unbind(e,b[e]);else{e=0;for(var g=
51
- this.length;e<g;e++)d.event.remove(this[e],b,c)}return this},delegate:function(b,c,e,g){return this.live(c,e,g,b)},undelegate:function(b,c,e){return arguments.length===0?this.unbind("live"):this.die(c,null,e,b)},trigger:function(b,c){return this.each(function(){d.event.trigger(b,c,this)})},triggerHandler:function(b,c){if(this[0]){var e=d.Event(b);e.preventDefault();e.stopPropagation();d.event.trigger(e,c,this[0]);return e.result}},toggle:function(b){for(var c=arguments,e=1;e<c.length;)d.proxy(b,c[e++]);
52
- return this.click(d.proxy(b,function(g){var f=(d.data(this,"lastToggle"+b.guid)||0)%e;d.data(this,"lastToggle"+b.guid,f+1);g.preventDefault();return c[f].apply(this,arguments)||false}))},hover:function(b,c){return this.mouseenter(b).mouseleave(c||b)}});var Ka={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};d.each(["live","die"],function(b,c){d.fn[c]=function(e,g,f,l){var m,v=0,s,x,F=l||this.selector,U=l?this:d(this.context);if(d.isFunction(g)){f=g;g=D}for(e=(e||"").split(" ");(m=
53
- e[v++])!=null;){l=za.exec(m);s="";if(l){s=l[0];m=m.replace(za,"")}if(m==="hover")e.push("mouseenter"+s,"mouseleave"+s);else{x=m;if(m==="focus"||m==="blur"){e.push(Ka[m]+s);m+=s}else m=(Ka[m]||m)+s;c==="live"?U.each(function(){d.event.add(this,la(m,F),{data:g,selector:F,handler:f,origType:m,origHandler:f,preType:x})}):U.unbind(la(m,F),f)}}return this}});d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
54
- function(b,c){d.fn[c]=function(e){return e?this.bind(c,e):this.trigger(c)};if(d.attrFn)d.attrFn[c]=true});q.attachEvent&&!q.addEventListener&&q.attachEvent("onunload",function(){for(var b in d.cache)if(d.cache[b].handle)try{d.event.remove(d.cache[b].handle.elem)}catch(c){}});(function(){function b(i){for(var n="",t,u=0;i[u];u++){t=i[u];if(t.nodeType===3||t.nodeType===4)n+=t.nodeValue;else if(t.nodeType!==8)n+=b(t.childNodes)}return n}function c(i,n,t,u,z,y){z=0;for(var Q=u.length;z<Q;z++){var N=u[z];
55
- if(N){N=N[i];for(var Z=false;N;){if(N.sizcache===t){Z=u[N.sizset];break}if(N.nodeType===1&&!y){N.sizcache=t;N.sizset=z}if(N.nodeName.toLowerCase()===n){Z=N;break}N=N[i]}u[z]=Z}}}function e(i,n,t,u,z,y){z=0;for(var Q=u.length;z<Q;z++){var N=u[z];if(N){N=N[i];for(var Z=false;N;){if(N.sizcache===t){Z=u[N.sizset];break}if(N.nodeType===1){if(!y){N.sizcache=t;N.sizset=z}if(typeof n!=="string"){if(N===n){Z=true;break}}else if(s.filter(n,[N]).length>0){Z=N;break}}N=N[i]}u[z]=Z}}}var g=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
56
- f=0,l=Object.prototype.toString,m=false,v=true;[0,0].sort(function(){v=false;return 0});var s=function(i,n,t,u){t=t||[];var z=n=n||C;if(n.nodeType!==1&&n.nodeType!==9)return[];if(!i||typeof i!=="string")return t;for(var y=[],Q,N,Z,$a,La=true,Ta=S(n),Ma=i;(g.exec(""),Q=g.exec(Ma))!==null;){Ma=Q[3];y.push(Q[1]);if(Q[2]){$a=Q[3];break}}if(y.length>1&&F.exec(i))if(y.length===2&&x.relative[y[0]])N=eb(y[0]+y[1],n);else for(N=x.relative[y[0]]?[n]:s(y.shift(),n);y.length;){i=y.shift();if(x.relative[i])i+=
57
- y.shift();N=eb(i,N)}else{if(!u&&y.length>1&&n.nodeType===9&&!Ta&&x.match.ID.test(y[0])&&!x.match.ID.test(y[y.length-1])){Q=s.find(y.shift(),n,Ta);n=Q.expr?s.filter(Q.expr,Q.set)[0]:Q.set[0]}if(n){Q=u?{expr:y.pop(),set:ba(u)}:s.find(y.pop(),y.length===1&&(y[0]==="~"||y[0]==="+")&&n.parentNode?n.parentNode:n,Ta);N=Q.expr?s.filter(Q.expr,Q.set):Q.set;if(y.length>0)Z=ba(N);else La=false;for(;y.length;){var ua=y.pop();Q=ua;if(x.relative[ua])Q=y.pop();else ua="";if(Q==null)Q=n;x.relative[ua](Z,Q,Ta)}}else Z=
58
- []}Z||(Z=N);Z||s.error(ua||i);if(l.call(Z)==="[object Array]")if(La)if(n&&n.nodeType===1)for(i=0;Z[i]!=null;i++){if(Z[i]&&(Z[i]===true||Z[i].nodeType===1&&ta(n,Z[i])))t.push(N[i])}else for(i=0;Z[i]!=null;i++)Z[i]&&Z[i].nodeType===1&&t.push(N[i]);else t.push.apply(t,Z);else ba(Z,t);if($a){s($a,z,t,u);s.uniqueSort(t)}return t};s.uniqueSort=function(i){if(da){m=v;i.sort(da);if(m)for(var n=1;n<i.length;n++)i[n]===i[n-1]&&i.splice(n--,1)}return i};s.matches=function(i,n){return s(i,null,null,n)};s.find=
59
- function(i,n,t){var u,z;if(!i)return[];for(var y=0,Q=x.order.length;y<Q;y++){var N=x.order[y];if(z=x.leftMatch[N].exec(i)){var Z=z[1];z.splice(1,1);if(Z.substr(Z.length-1)!=="\\"){z[1]=(z[1]||"").replace(/\\/g,"");u=x.find[N](z,n,t);if(u!=null){i=i.replace(x.match[N],"");break}}}}u||(u=n.getElementsByTagName("*"));return{set:u,expr:i}};s.filter=function(i,n,t,u){for(var z=i,y=[],Q=n,N,Z,$a=n&&n[0]&&S(n[0]);i&&n.length;){for(var La in x.filter)if((N=x.leftMatch[La].exec(i))!=null&&N[2]){var Ta=x.filter[La],
60
- Ma,ua;ua=N[1];Z=false;N.splice(1,1);if(ua.substr(ua.length-1)!=="\\"){if(Q===y)y=[];if(x.preFilter[La])if(N=x.preFilter[La](N,Q,t,y,u,$a)){if(N===true)continue}else Z=Ma=true;if(N)for(var bb=0;(ua=Q[bb])!=null;bb++)if(ua){Ma=Ta(ua,N,bb,Q);var kb=u^!!Ma;if(t&&Ma!=null)if(kb)Z=true;else Q[bb]=false;else if(kb){y.push(ua);Z=true}}if(Ma!==D){t||(Q=y);i=i.replace(x.match[La],"");if(!Z)return[];break}}}if(i===z)if(Z==null)s.error(i);else break;z=i}return Q};s.error=function(i){throw"Syntax error, unrecognized expression: "+
61
- i;};var x=s.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},
62
- leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(i){return i.getAttribute("href")}},relative:{"+":function(i,n){var t=typeof n==="string",u=t&&!/\W/.test(n);t=t&&!u;if(u)n=n.toLowerCase();u=0;for(var z=i.length,y;u<z;u++)if(y=i[u]){for(;(y=y.previousSibling)&&y.nodeType!==1;);i[u]=t||y&&y.nodeName.toLowerCase()===n?y||false:y===n}t&&s.filter(n,i,true)},">":function(i,n){var t=typeof n==="string";if(t&&!/\W/.test(n)){n=n.toLowerCase();for(var u=0,z=i.length;u<z;u++){var y=
63
- i[u];if(y){t=y.parentNode;i[u]=t.nodeName.toLowerCase()===n?t:false}}}else{u=0;for(z=i.length;u<z;u++)if(y=i[u])i[u]=t?y.parentNode:y.parentNode===n;t&&s.filter(n,i,true)}},"":function(i,n,t){var u=f++,z=e;if(typeof n==="string"&&!/\W/.test(n)){var y=n=n.toLowerCase();z=c}z("parentNode",n,u,i,y,t)},"~":function(i,n,t){var u=f++,z=e;if(typeof n==="string"&&!/\W/.test(n)){var y=n=n.toLowerCase();z=c}z("previousSibling",n,u,i,y,t)}},find:{ID:function(i,n,t){if(typeof n.getElementById!=="undefined"&&
64
- !t)return(i=n.getElementById(i[1]))?[i]:[]},NAME:function(i,n){if(typeof n.getElementsByName!=="undefined"){for(var t=[],u=n.getElementsByName(i[1]),z=0,y=u.length;z<y;z++)u[z].getAttribute("name")===i[1]&&t.push(u[z]);return t.length===0?null:t}},TAG:function(i,n){return n.getElementsByTagName(i[1])}},preFilter:{CLASS:function(i,n,t,u,z,y){i=" "+i[1].replace(/\\/g,"")+" ";if(y)return i;y=0;for(var Q;(Q=n[y])!=null;y++)if(Q)if(z^(Q.className&&(" "+Q.className+" ").replace(/[\t\n]/g," ").indexOf(i)>=
65
- 0))t||u.push(Q);else if(t)n[y]=false;return false},ID:function(i){return i[1].replace(/\\/g,"")},TAG:function(i){return i[1].toLowerCase()},CHILD:function(i){if(i[1]==="nth"){var n=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(i[2]==="even"&&"2n"||i[2]==="odd"&&"2n+1"||!/\D/.test(i[2])&&"0n+"+i[2]||i[2]);i[2]=n[1]+(n[2]||1)-0;i[3]=n[3]-0}i[0]=f++;return i},ATTR:function(i,n,t,u,z,y){n=i[1].replace(/\\/g,"");if(!y&&x.attrMap[n])i[1]=x.attrMap[n];if(i[2]==="~=")i[4]=" "+i[4]+" ";return i},PSEUDO:function(i,n,t,u,
66
- z){if(i[1]==="not")if((g.exec(i[3])||"").length>1||/^\w/.test(i[3]))i[3]=s(i[3],null,null,n);else{i=s.filter(i[3],n,t,true^z);t||u.push.apply(u,i);return false}else if(x.match.POS.test(i[0])||x.match.CHILD.test(i[0]))return true;return i},POS:function(i){i.unshift(true);return i}},filters:{enabled:function(i){return i.disabled===false&&i.type!=="hidden"},disabled:function(i){return i.disabled===true},checked:function(i){return i.checked===true},selected:function(i){return i.selected===true},parent:function(i){return!!i.firstChild},
67
- empty:function(i){return!i.firstChild},has:function(i,n,t){return!!s(t[3],i).length},header:function(i){return/h\d/i.test(i.nodeName)},text:function(i){return"text"===i.type},radio:function(i){return"radio"===i.type},checkbox:function(i){return"checkbox"===i.type},file:function(i){return"file"===i.type},password:function(i){return"password"===i.type},submit:function(i){return"submit"===i.type},image:function(i){return"image"===i.type},reset:function(i){return"reset"===i.type},button:function(i){return"button"===
68
- i.type||i.nodeName.toLowerCase()==="button"},input:function(i){return/input|select|textarea|button/i.test(i.nodeName)}},setFilters:{first:function(i,n){return n===0},last:function(i,n,t,u){return n===u.length-1},even:function(i,n){return n%2===0},odd:function(i,n){return n%2===1},lt:function(i,n,t){return n<t[3]-0},gt:function(i,n,t){return n>t[3]-0},nth:function(i,n,t){return t[3]-0===n},eq:function(i,n,t){return t[3]-0===n}},filter:{PSEUDO:function(i,n,t,u){var z=n[1],y=x.filters[z];if(y)return y(i,
69
- t,n,u);else if(z==="contains")return(i.textContent||i.innerText||b([i])||"").indexOf(n[3])>=0;else if(z==="not"){n=n[3];t=0;for(u=n.length;t<u;t++)if(n[t]===i)return false;return true}else s.error("Syntax error, unrecognized expression: "+z)},CHILD:function(i,n){var t=n[1],u=i;switch(t){case "only":case "first":for(;u=u.previousSibling;)if(u.nodeType===1)return false;if(t==="first")return true;u=i;case "last":for(;u=u.nextSibling;)if(u.nodeType===1)return false;return true;case "nth":t=n[2];var z=
70
- n[3];if(t===1&&z===0)return true;var y=n[0],Q=i.parentNode;if(Q&&(Q.sizcache!==y||!i.nodeIndex)){var N=0;for(u=Q.firstChild;u;u=u.nextSibling)if(u.nodeType===1)u.nodeIndex=++N;Q.sizcache=y}u=i.nodeIndex-z;return t===0?u===0:u%t===0&&u/t>=0}},ID:function(i,n){return i.nodeType===1&&i.getAttribute("id")===n},TAG:function(i,n){return n==="*"&&i.nodeType===1||i.nodeName.toLowerCase()===n},CLASS:function(i,n){return(" "+(i.className||i.getAttribute("class"))+" ").indexOf(n)>-1},ATTR:function(i,n){var t=
71
- n[1];t=x.attrHandle[t]?x.attrHandle[t](i):i[t]!=null?i[t]:i.getAttribute(t);var u=t+"",z=n[2],y=n[4];return t==null?z==="!=":z==="="?u===y:z==="*="?u.indexOf(y)>=0:z==="~="?(" "+u+" ").indexOf(y)>=0:!y?u&&t!==false:z==="!="?u!==y:z==="^="?u.indexOf(y)===0:z==="$="?u.substr(u.length-y.length)===y:z==="|="?u===y||u.substr(0,y.length+1)===y+"-":false},POS:function(i,n,t,u){var z=x.setFilters[n[2]];if(z)return z(i,t,n,u)}}},F=x.match.POS,U;for(U in x.match){x.match[U]=RegExp(x.match[U].source+/(?![^\[]*\])(?![^\(]*\))/.source);
72
- x.leftMatch[U]=RegExp(/(^(?:.|\r|\n)*?)/.source+x.match[U].source.replace(/\\(\d+)/g,function(i,n){return"\\"+(n-0+1)}))}var ba=function(i,n){i=Array.prototype.slice.call(i,0);if(n){n.push.apply(n,i);return n}return i};try{Array.prototype.slice.call(C.documentElement.childNodes,0)}catch(ga){ba=function(i,n){var t=n||[];if(l.call(i)==="[object Array]")Array.prototype.push.apply(t,i);else if(typeof i.length==="number")for(var u=0,z=i.length;u<z;u++)t.push(i[u]);else for(u=0;i[u];u++)t.push(i[u]);return t}}var da;
73
- if(C.documentElement.compareDocumentPosition)da=function(i,n){if(!i.compareDocumentPosition||!n.compareDocumentPosition){if(i==n)m=true;return i.compareDocumentPosition?-1:1}var t=i.compareDocumentPosition(n)&4?-1:i===n?0:1;if(t===0)m=true;return t};else if("sourceIndex"in C.documentElement)da=function(i,n){if(!i.sourceIndex||!n.sourceIndex){if(i==n)m=true;return i.sourceIndex?-1:1}var t=i.sourceIndex-n.sourceIndex;if(t===0)m=true;return t};else if(C.createRange)da=function(i,n){if(!i.ownerDocument||
74
- !n.ownerDocument){if(i==n)m=true;return i.ownerDocument?-1:1}var t=i.ownerDocument.createRange(),u=n.ownerDocument.createRange();t.setStart(i,0);t.setEnd(i,0);u.setStart(n,0);u.setEnd(n,0);t=t.compareBoundaryPoints(Range.START_TO_END,u);if(t===0)m=true;return t};(function(){var i=C.createElement("div"),n="script"+(new Date).getTime();i.innerHTML="<a name='"+n+"'/>";var t=C.documentElement;t.insertBefore(i,t.firstChild);if(C.getElementById(n)){x.find.ID=function(u,z,y){if(typeof z.getElementById!==
75
- "undefined"&&!y)return(z=z.getElementById(u[1]))?z.id===u[1]||typeof z.getAttributeNode!=="undefined"&&z.getAttributeNode("id").nodeValue===u[1]?[z]:D:[]};x.filter.ID=function(u,z){var y=typeof u.getAttributeNode!=="undefined"&&u.getAttributeNode("id");return u.nodeType===1&&y&&y.nodeValue===z}}t.removeChild(i);t=i=null})();(function(){var i=C.createElement("div");i.appendChild(C.createComment(""));if(i.getElementsByTagName("*").length>0)x.find.TAG=function(n,t){var u=t.getElementsByTagName(n[1]);
76
- if(n[1]==="*"){for(var z=[],y=0;u[y];y++)u[y].nodeType===1&&z.push(u[y]);u=z}return u};i.innerHTML="<a href='#'></a>";if(i.firstChild&&typeof i.firstChild.getAttribute!=="undefined"&&i.firstChild.getAttribute("href")!=="#")x.attrHandle.href=function(n){return n.getAttribute("href",2)};i=null})();C.querySelectorAll&&function(){var i=s,n=C.createElement("div");n.innerHTML="<p class='TEST'></p>";if(!(n.querySelectorAll&&n.querySelectorAll(".TEST").length===0)){s=function(u,z,y,Q){z=z||C;if(!Q&&z.nodeType===
77
- 9&&!S(z))try{return ba(z.querySelectorAll(u),y)}catch(N){}return i(u,z,y,Q)};for(var t in i)s[t]=i[t];n=null}}();(function(){var i=C.createElement("div");i.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!i.getElementsByClassName||i.getElementsByClassName("e").length===0)){i.lastChild.className="e";if(i.getElementsByClassName("e").length!==1){x.order.splice(1,0,"CLASS");x.find.CLASS=function(n,t,u){if(typeof t.getElementsByClassName!=="undefined"&&!u)return t.getElementsByClassName(n[1])};
78
- i=null}}})();var ta=C.compareDocumentPosition?function(i,n){return!!(i.compareDocumentPosition(n)&16)}:function(i,n){return i!==n&&(i.contains?i.contains(n):true)},S=function(i){return(i=(i?i.ownerDocument||i:0).documentElement)?i.nodeName!=="HTML":false},eb=function(i,n){for(var t=[],u="",z,y=n.nodeType?[n]:n;z=x.match.PSEUDO.exec(i);){u+=z[0];i=i.replace(x.match.PSEUDO,"")}i=x.relative[i]?i+"*":i;z=0;for(var Q=y.length;z<Q;z++)s(i,y[z],t);return s.filter(u,t)};d.find=s;d.expr=s.selectors;d.expr[":"]=
79
- d.expr.filters;d.unique=s.uniqueSort;d.text=b;d.isXMLDoc=S;d.contains=ta})();var H=/Until$/,T=/^(?:parents|prevUntil|prevAll)/,h=/,/;Ba=Array.prototype.slice;var j=function(b,c,e){if(d.isFunction(c))return d.grep(b,function(f,l){return!!c.call(f,l,f)===e});else if(c.nodeType)return d.grep(b,function(f){return f===c===e});else if(typeof c==="string"){var g=d.grep(b,function(f){return f.nodeType===1});if(pa.test(c))return d.filter(c,g,!e);else c=d.filter(c,g)}return d.grep(b,function(f){return d.inArray(f,
80
- c)>=0===e})};d.fn.extend({find:function(b){for(var c=this.pushStack("","find",b),e=0,g=0,f=this.length;g<f;g++){e=c.length;d.find(b,this[g],c);if(g>0)for(var l=e;l<c.length;l++)for(var m=0;m<e;m++)if(c[m]===c[l]){c.splice(l--,1);break}}return c},has:function(b){var c=d(b);return this.filter(function(){for(var e=0,g=c.length;e<g;e++)if(d.contains(this,c[e]))return true})},not:function(b){return this.pushStack(j(this,b,false),"not",b)},filter:function(b){return this.pushStack(j(this,b,true),"filter",
81
- b)},is:function(b){return!!b&&d.filter(b,this).length>0},closest:function(b,c){if(d.isArray(b)){var e=[],g=this[0],f,l={},m;if(g&&b.length){f=0;for(var v=b.length;f<v;f++){m=b[f];l[m]||(l[m]=d.expr.match.POS.test(m)?d(m,c||this.context):m)}for(;g&&g.ownerDocument&&g!==c;){for(m in l){f=l[m];if(f.jquery?f.index(g)>-1:d(g).is(f)){e.push({selector:m,elem:g});delete l[m]}}g=g.parentNode}}return e}var s=d.expr.match.POS.test(b)?d(b,c||this.context):null;return this.map(function(x,F){for(;F&&F.ownerDocument&&
82
- F!==c;){if(s?s.index(F)>-1:d(F).is(b))return F;F=F.parentNode}return null})},index:function(b){if(!b||typeof b==="string")return d.inArray(this[0],b?d(b):this.parent().children());return d.inArray(b.jquery?b[0]:b,this)},add:function(b,c){var e=typeof b==="string"?d(b,c||this.context):d.makeArray(b),g=d.merge(this.get(),e);return this.pushStack(!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11||!g[0]||!g[0].parentNode||g[0].parentNode.nodeType===11?g:d.unique(g))},andSelf:function(){return this.add(this.prevObject)}});
83
- d.each({parent:function(b){return(b=b.parentNode)&&b.nodeType!==11?b:null},parents:function(b){return d.dir(b,"parentNode")},parentsUntil:function(b,c,e){return d.dir(b,"parentNode",e)},next:function(b){return d.nth(b,2,"nextSibling")},prev:function(b){return d.nth(b,2,"previousSibling")},nextAll:function(b){return d.dir(b,"nextSibling")},prevAll:function(b){return d.dir(b,"previousSibling")},nextUntil:function(b,c,e){return d.dir(b,"nextSibling",e)},prevUntil:function(b,c,e){return d.dir(b,"previousSibling",
84
- e)},siblings:function(b){return d.sibling(b.parentNode.firstChild,b)},children:function(b){return d.sibling(b.firstChild)},contents:function(b){return d.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:d.makeArray(b.childNodes)}},function(b,c){d.fn[b]=function(e,g){var f=d.map(this,c,e);H.test(b)||(g=e);if(g&&typeof g==="string")f=d.filter(g,f);f=this.length>1?d.unique(f):f;if((this.length>1||h.test(g))&&T.test(b))f=f.reverse();return this.pushStack(f,b,Ba.call(arguments).join(","))}});
85
- d.extend({filter:function(b,c,e){if(e)b=":not("+b+")";return d.find.matches(b,c)},dir:function(b,c,e){var g=[];for(b=b[c];b&&b.nodeType!==9&&(e===D||b.nodeType!==1||!d(b).is(e));){b.nodeType===1&&g.push(b);b=b[c]}return g},nth:function(b,c,e){c=c||1;for(var g=0;b;b=b[e])if(b.nodeType===1&&++g===c)break;return b},sibling:function(b,c){for(var e=[];b;b=b.nextSibling)b.nodeType===1&&b!==c&&e.push(b);return e}});var k=/ jQuery\d+="(?:\d+|null)"/g,p=/^\s+/,r=/(<([\w:]+)[^>]*?)\/>/g,A=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,
86
- G=/<([\w:]+)/,B=/<tbody/i,J=/<|&#?\w+;/,E=/<script|<object|<embed|<option|<style/i,I=/checked\s*(?:[^=]|=\s*.checked.)/i,$=function(b,c,e){return A.test(e)?b:c+"></"+e+">"},aa={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",
87
- ""]};aa.optgroup=aa.option;aa.tbody=aa.tfoot=aa.colgroup=aa.caption=aa.thead;aa.th=aa.td;if(!d.support.htmlSerialize)aa._default=[1,"div<div>","</div>"];d.fn.extend({text:function(b){if(d.isFunction(b))return this.each(function(c){var e=d(this);e.text(b.call(this,c,e.text()))});if(typeof b!=="object"&&b!==D)return this.empty().append((this[0]&&this[0].ownerDocument||C).createTextNode(b));return d.text(this)},wrapAll:function(b){if(d.isFunction(b))return this.each(function(e){d(this).wrapAll(b.call(this,
88
- e))});if(this[0]){var c=d(b,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var e=this;e.firstChild&&e.firstChild.nodeType===1;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(b){if(d.isFunction(b))return this.each(function(c){d(this).wrapInner(b.call(this,c))});return this.each(function(){var c=d(this),e=c.contents();e.length?e.wrapAll(b):c.append(b)})},wrap:function(b){return this.each(function(){d(this).wrapAll(b)})},
89
- unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(b){this.nodeType===1&&this.appendChild(b)})},prepend:function(){return this.domManip(arguments,true,function(b){this.nodeType===1&&this.insertBefore(b,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(c){this.parentNode.insertBefore(c,this)});else if(arguments.length){var b=
90
- d(arguments[0]);b.push.apply(b,this.toArray());return this.pushStack(b,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(c){this.parentNode.insertBefore(c,this.nextSibling)});else if(arguments.length){var b=this.pushStack(this,"after",arguments);b.push.apply(b,d(arguments[0]).toArray());return b}},remove:function(b,c){for(var e=0,g;(g=this[e])!=null;e++)if(!b||d.filter(b,[g]).length){if(!c&&g.nodeType===1){d.cleanData(g.getElementsByTagName("*"));
91
- d.cleanData([g])}g.parentNode&&g.parentNode.removeChild(g)}return this},empty:function(){for(var b=0,c;(c=this[b])!=null;b++)for(c.nodeType===1&&d.cleanData(c.getElementsByTagName("*"));c.firstChild;)c.removeChild(c.firstChild);return this},clone:function(b){var c=this.map(function(){if(!d.support.noCloneEvent&&!d.isXMLDoc(this)){var e=this.outerHTML,g=this.ownerDocument;if(!e){e=g.createElement("div");e.appendChild(this.cloneNode(true));e=e.innerHTML}return d.clean([e.replace(k,"").replace(/=([^="'>\s]+\/)>/g,
92
- '="$1">').replace(p,"")],g)[0]}else return this.cloneNode(true)});if(b===true){R(this,c);R(this.find("*"),c.find("*"))}return c},html:function(b){if(b===D)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(k,""):null;else if(typeof b==="string"&&!E.test(b)&&(d.support.leadingWhitespace||!p.test(b))&&!aa[(G.exec(b)||["",""])[1].toLowerCase()]){b=b.replace(r,$);try{for(var c=0,e=this.length;c<e;c++)if(this[c].nodeType===1){d.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=
93
- b}}catch(g){this.empty().append(b)}}else d.isFunction(b)?this.each(function(f){var l=d(this),m=l.html();l.empty().append(function(){return b.call(this,f,m)})}):this.empty().append(b);return this},replaceWith:function(b){if(this[0]&&this[0].parentNode){if(d.isFunction(b))return this.each(function(c){var e=d(this),g=e.html();e.replaceWith(b.call(this,c,g))});if(typeof b!=="string")b=d(b).detach();return this.each(function(){var c=this.nextSibling,e=this.parentNode;d(this).remove();c?d(c).before(b):
94
- d(e).append(b)})}else return this.pushStack(d(d.isFunction(b)?b():b),"replaceWith",b)},detach:function(b){return this.remove(b,true)},domManip:function(b,c,e){var g,f,l=b[0],m=[],v;if(!d.support.checkClone&&arguments.length===3&&typeof l==="string"&&I.test(l))return this.each(function(){d(this).domManip(b,c,e,true)});if(d.isFunction(l))return this.each(function(x){var F=d(this);b[0]=l.call(this,x,c?F.html():D);F.domManip(b,c,e)});if(this[0]){g=l&&l.parentNode;g=d.support.parentNode&&g&&g.nodeType===
95
- 11&&g.childNodes.length===this.length?{fragment:g}:Aa(b,this,m);v=g.fragment;if(f=v.childNodes.length===1?v=v.firstChild:v.firstChild){c=c&&d.nodeName(f,"tr");f=0;for(var s=this.length;f<s;f++)e.call(c?d.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):this[f]:this[f],f>0||g.cacheable||this.length>1?v.cloneNode(true):v)}m.length&&d.each(m,P)}return this}});d.fragments={};d.each({appendTo:"append",prependTo:"prepend",
96
- insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,c){d.fn[b]=function(e){var g=[];e=d(e);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&e.length===1){e[c](this[0]);return this}else{f=0;for(var l=e.length;f<l;f++){var m=(f>0?this.clone(true):this).get();d.fn[c].apply(d(e[f]),m);g=g.concat(m)}return this.pushStack(g,b,e.selector)}}});d.extend({clean:function(b,c,e,g){c=c||C;if(typeof c.createElement==="undefined")c=c.ownerDocument||
97
- c[0]&&c[0].ownerDocument||C;for(var f=[],l=0,m;(m=b[l])!=null;l++){if(typeof m==="number")m+="";if(m){if(typeof m==="string"&&!J.test(m))m=c.createTextNode(m);else if(typeof m==="string"){m=m.replace(r,$);var v=(G.exec(m)||["",""])[1].toLowerCase(),s=aa[v]||aa._default,x=s[0],F=c.createElement("div");for(F.innerHTML=s[1]+m+s[2];x--;)F=F.lastChild;if(!d.support.tbody){x=B.test(m);v=v==="table"&&!x?F.firstChild&&F.firstChild.childNodes:s[1]==="<table>"&&!x?F.childNodes:[];for(s=v.length-1;s>=0;--s)d.nodeName(v[s],
98
- "tbody")&&!v[s].childNodes.length&&v[s].parentNode.removeChild(v[s])}!d.support.leadingWhitespace&&p.test(m)&&F.insertBefore(c.createTextNode(p.exec(m)[0]),F.firstChild);m=F.childNodes}if(m.nodeType)f.push(m);else f=d.merge(f,m)}}if(e)for(l=0;f[l];l++)if(g&&d.nodeName(f[l],"script")&&(!f[l].type||f[l].type.toLowerCase()==="text/javascript"))g.push(f[l].parentNode?f[l].parentNode.removeChild(f[l]):f[l]);else{f[l].nodeType===1&&f.splice.apply(f,[l+1,0].concat(d.makeArray(f[l].getElementsByTagName("script"))));
99
- e.appendChild(f[l])}return f},cleanData:function(b){for(var c,e,g=d.cache,f=d.event.special,l=d.support.deleteExpando,m=0,v;(v=b[m])!=null;m++)if(e=v[d.expando]){c=g[e];if(c.events)for(var s in c.events)f[s]?d.event.remove(v,s):Ha(v,s,c.handle);if(l)delete v[d.expando];else v.removeAttribute&&v.removeAttribute(d.expando);delete g[e]}}});var ja=/z-?index|font-?weight|opacity|zoom|line-?height/i,ra=/alpha\([^)]*\)/,wa=/opacity=([^)]*)/,Ra=/float/i,fb=/-([a-z])/ig,mb=/([A-Z])/g,nb=/^-?\d+(?:px)?$/i,
100
- ob=/^-?\d/,pb={position:"absolute",visibility:"hidden",display:"block"},qb=["Left","Right"],rb=["Top","Bottom"],sb=C.defaultView&&C.defaultView.getComputedStyle,lb=d.support.cssFloat?"cssFloat":"styleFloat",gb=function(b,c){return c.toUpperCase()};d.fn.css=function(b,c){return L(this,b,c,true,function(e,g,f){if(f===D)return d.curCSS(e,g);if(typeof f==="number"&&!ja.test(g))f+="px";d.style(e,g,f)})};d.extend({style:function(b,c,e){if(!b||b.nodeType===3||b.nodeType===8)return D;if((c==="width"||c===
101
- "height")&&parseFloat(e)<0)e=D;var g=b.style||b,f=e!==D;if(!d.support.opacity&&c==="opacity"){if(f){g.zoom=1;c=parseInt(e,10)+""==="NaN"?"":"alpha(opacity="+e*100+")";b=g.filter||d.curCSS(b,"filter")||"";g.filter=ra.test(b)?b.replace(ra,c):c}return g.filter&&g.filter.indexOf("opacity=")>=0?parseFloat(wa.exec(g.filter)[1])/100+"":""}if(Ra.test(c))c=lb;c=c.replace(fb,gb);if(f)g[c]=e;return g[c]},css:function(b,c,e,g){if(c==="width"||c==="height"){var f,l=c==="width"?qb:rb;e=function(){f=c==="width"?
102
- b.offsetWidth:b.offsetHeight;g!=="border"&&d.each(l,function(){g||(f-=parseFloat(d.curCSS(b,"padding"+this,true))||0);if(g==="margin")f+=parseFloat(d.curCSS(b,"margin"+this,true))||0;else f-=parseFloat(d.curCSS(b,"border"+this+"Width",true))||0})};b.offsetWidth!==0?e():d.swap(b,pb,e);return Math.max(0,Math.round(f))}return d.curCSS(b,c,e)},curCSS:function(b,c,e){var g,f=b.style;if(!d.support.opacity&&c==="opacity"&&b.currentStyle){g=wa.test(b.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":
103
- "";return g===""?"1":g}if(Ra.test(c))c=lb;if(!e&&f&&f[c])g=f[c];else if(sb){if(Ra.test(c))c="float";c=c.replace(mb,"-$1").toLowerCase();f=b.ownerDocument.defaultView;if(!f)return null;if(b=f.getComputedStyle(b,null))g=b.getPropertyValue(c);if(c==="opacity"&&g==="")g="1"}else if(b.currentStyle){e=c.replace(fb,gb);g=b.currentStyle[c]||b.currentStyle[e];if(!nb.test(g)&&ob.test(g)){c=f.left;var l=b.runtimeStyle.left;b.runtimeStyle.left=b.currentStyle.left;f.left=e==="fontSize"?"1em":g||0;g=f.pixelLeft+
104
- "px";f.left=c;b.runtimeStyle.left=l}}return g},swap:function(b,c,e){var g={},f;for(f in c){g[f]=b.style[f];b.style[f]=c[f]}e.call(b);for(f in c)b.style[f]=g[f]}});if(d.expr&&d.expr.filters){d.expr.filters.hidden=function(b){var c=b.offsetWidth,e=b.offsetHeight,g=b.nodeName.toLowerCase()==="tr";return c===0&&e===0&&!g?true:c>0&&e>0&&!g?false:d.curCSS(b,"display")==="none"};d.expr.filters.visible=function(b){return!d.expr.filters.hidden(b)}}var tb=M(),ub=/<script(.|\s)*?\/script>/gi,vb=/select|textarea/i,
105
- wb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,Ua=/=\?(&|$)/,hb=/\?/,xb=/(\?|&)_=.*?(&|$)/,yb=/^(\w+:)?\/\/([^\/?#]+)/,zb=/%20/g,Ab=d.fn.load;d.fn.extend({load:function(b,c,e){if(typeof b!=="string")return Ab.call(this,b);else if(!this.length)return this;var g=b.indexOf(" ");if(g>=0){var f=b.slice(g,b.length);b=b.slice(0,g)}g="GET";if(c)if(d.isFunction(c)){e=c;c=null}else if(typeof c==="object"){c=d.param(c,d.ajaxSettings.traditional);g="POST"}var l=
106
- this;d.ajax({url:b,type:g,dataType:"html",data:c,complete:function(m,v){if(v==="success"||v==="notmodified")l.html(f?d("<div />").append(m.responseText.replace(ub,"")).find(f):m.responseText);e&&l.each(e,[m.responseText,v,m])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||vb.test(this.nodeName)||
107
- wb.test(this.type))}).map(function(b,c){var e=d(this).val();return e==null?null:d.isArray(e)?d.map(e,function(g){return{name:c.name,value:g}}):{name:c.name,value:e}}).get()}});d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(b,c){d.fn[c]=function(e){return this.bind(c,e)}});d.extend({get:function(b,c,e,g){if(d.isFunction(c)){g=g||e;e=c;c=null}return d.ajax({type:"GET",url:b,data:c,success:e,dataType:g})},getScript:function(b,c){return d.get(b,null,c,"script")},
108
- getJSON:function(b,c,e){return d.get(b,c,e,"json")},post:function(b,c,e,g){if(d.isFunction(c)){g=g||e;e=c;c={}}return d.ajax({type:"POST",url:b,data:c,success:e,dataType:g})},ajaxSetup:function(b){d.extend(d.ajaxSettings,b)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:q.XMLHttpRequest&&(q.location.protocol!=="file:"||!q.ActiveXObject)?function(){return new q.XMLHttpRequest}:function(){try{return new q.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}},
109
- accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(b){function c(){f.success&&f.success.call(s,v,m,S);f.global&&g("ajaxSuccess",[S,f])}function e(){f.complete&&f.complete.call(s,S,m);f.global&&g("ajaxComplete",[S,f]);f.global&&!--d.active&&d.event.trigger("ajaxStop")}function g(z,y){(f.context?d(f.context):d.event).trigger(z,y)}var f=
110
- d.extend(true,{},d.ajaxSettings,b),l,m,v,s=b&&b.context||f,x=f.type.toUpperCase();if(f.data&&f.processData&&typeof f.data!=="string")f.data=d.param(f.data,f.traditional);if(f.dataType==="jsonp"){if(x==="GET")Ua.test(f.url)||(f.url+=(hb.test(f.url)?"&":"?")+(f.jsonp||"callback")+"=?");else if(!f.data||!Ua.test(f.data))f.data=(f.data?f.data+"&":"")+(f.jsonp||"callback")+"=?";f.dataType="json"}if(f.dataType==="json"&&(f.data&&Ua.test(f.data)||Ua.test(f.url))){l=f.jsonpCallback||"jsonp"+tb++;if(f.data)f.data=
111
- (f.data+"").replace(Ua,"="+l+"$1");f.url=f.url.replace(Ua,"="+l+"$1");f.dataType="script";q[l]=q[l]||function(z){v=z;c();e();q[l]=D;try{delete q[l]}catch(y){}ba&&ba.removeChild(ga)}}if(f.dataType==="script"&&f.cache===null)f.cache=false;if(f.cache===false&&x==="GET"){var F=M(),U=f.url.replace(xb,"$1_="+F+"$2");f.url=U+(U===f.url?(hb.test(f.url)?"&":"?")+"_="+F:"")}if(f.data&&x==="GET")f.url+=(hb.test(f.url)?"&":"?")+f.data;f.global&&!d.active++&&d.event.trigger("ajaxStart");F=(F=yb.exec(f.url))&&
112
- (F[1]&&F[1]!==location.protocol||F[2]!==location.host);if(f.dataType==="script"&&x==="GET"&&F){var ba=C.getElementsByTagName("head")[0]||C.documentElement,ga=C.createElement("script");ga.src=f.url;if(f.scriptCharset)ga.charset=f.scriptCharset;if(!l){var da=false;ga.onload=ga.onreadystatechange=function(){if(!da&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){da=true;c();e();ga.onload=ga.onreadystatechange=null;ba&&ga.parentNode&&ba.removeChild(ga)}}}ba.insertBefore(ga,
113
- ba.firstChild);return D}var ta=false,S=f.xhr();if(S){f.username?S.open(x,f.url,f.async,f.username,f.password):S.open(x,f.url,f.async);try{if(f.data||b&&b.contentType)S.setRequestHeader("Content-Type",f.contentType);if(f.ifModified){d.lastModified[f.url]&&S.setRequestHeader("If-Modified-Since",d.lastModified[f.url]);d.etag[f.url]&&S.setRequestHeader("If-None-Match",d.etag[f.url])}F||S.setRequestHeader("X-Requested-With","XMLHttpRequest");S.setRequestHeader("Accept",f.dataType&&f.accepts[f.dataType]?
114
- f.accepts[f.dataType]+", */*":f.accepts._default)}catch(eb){}if(f.beforeSend&&f.beforeSend.call(s,S,f)===false){f.global&&!--d.active&&d.event.trigger("ajaxStop");S.abort();return false}f.global&&g("ajaxSend",[S,f]);var i=S.onreadystatechange=function(z){if(!S||S.readyState===0||z==="abort"){ta||e();ta=true;if(S)S.onreadystatechange=d.noop}else if(!ta&&S&&(S.readyState===4||z==="timeout")){ta=true;S.onreadystatechange=d.noop;m=z==="timeout"?"timeout":!d.httpSuccess(S)?"error":f.ifModified&&d.httpNotModified(S,
115
- f.url)?"notmodified":"success";var y;if(m==="success")try{v=d.httpData(S,f.dataType,f)}catch(Q){m="parsererror";y=Q}if(m==="success"||m==="notmodified")l||c();else d.handleError(f,S,m,y);e();z==="timeout"&&S.abort();if(f.async)S=null}};try{var n=S.abort;S.abort=function(){S&&n.call(S);i("abort")}}catch(t){}f.async&&f.timeout>0&&setTimeout(function(){S&&!ta&&i("timeout")},f.timeout);try{S.send(x==="POST"||x==="PUT"||x==="DELETE"?f.data:null)}catch(u){d.handleError(f,S,null,u);e()}f.async||i();return S}},
116
- handleError:function(b,c,e,g){if(b.error)b.error.call(b.context||b,c,e,g);if(b.global)(b.context?d(b.context):d.event).trigger("ajaxError",[c,b,g])},active:0,httpSuccess:function(b){try{return!b.status&&location.protocol==="file:"||b.status>=200&&b.status<300||b.status===304||b.status===1223||b.status===0}catch(c){}return false},httpNotModified:function(b,c){var e=b.getResponseHeader("Last-Modified"),g=b.getResponseHeader("Etag");if(e)d.lastModified[c]=e;if(g)d.etag[c]=g;return b.status===304||b.status===
117
- 0},httpData:function(b,c,e){var g=b.getResponseHeader("content-type")||"",f=c==="xml"||!c&&g.indexOf("xml")>=0;b=f?b.responseXML:b.responseText;f&&b.documentElement.nodeName==="parsererror"&&d.error("parsererror");if(e&&e.dataFilter)b=e.dataFilter(b,c);if(typeof b==="string")if(c==="json"||!c&&g.indexOf("json")>=0)b=d.parseJSON(b);else if(c==="script"||!c&&g.indexOf("javascript")>=0)d.globalEval(b);return b},param:function(b,c){function e(m,v){if(d.isArray(v))d.each(v,function(s,x){c||/\[\]$/.test(m)?
118
- g(m,x):e(m+"["+(typeof x==="object"||d.isArray(x)?s:"")+"]",x)});else!c&&v!=null&&typeof v==="object"?d.each(v,function(s,x){e(m+"["+s+"]",x)}):g(m,v)}function g(m,v){v=d.isFunction(v)?v():v;f[f.length]=encodeURIComponent(m)+"="+encodeURIComponent(v)}var f=[];if(c===D)c=d.ajaxSettings.traditional;if(d.isArray(b)||b.jquery)d.each(b,function(){g(this.name,this.value)});else for(var l in b)e(l,b[l]);return f.join("&").replace(zb,"+")}});var ib={},Bb=/toggle|show|hide/,Cb=/^([+-]=)?([\d+-.]+)(.*)$/,cb,
119
- jb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(b,c){if(b||b===0)return this.animate(ca("show",3),b,c);else{for(var e=0,g=this.length;e<g;e++){var f=d.data(this[e],"olddisplay");this[e].style.display=f||"";if(d.css(this[e],"display")==="none"){f=this[e].nodeName;var l;if(ib[f])l=ib[f];else{var m=d("<"+f+" />").appendTo("body");l=m.css("display");if(l==="none")l="block";
120
- m.remove();ib[f]=l}d.data(this[e],"olddisplay",l)}}e=0;for(g=this.length;e<g;e++)this[e].style.display=d.data(this[e],"olddisplay")||"";return this}},hide:function(b,c){if(b||b===0)return this.animate(ca("hide",3),b,c);else{for(var e=0,g=this.length;e<g;e++){var f=d.data(this[e],"olddisplay");!f&&f!=="none"&&d.data(this[e],"olddisplay",d.css(this[e],"display"))}e=0;for(g=this.length;e<g;e++)this[e].style.display="none";return this}},_toggle:d.fn.toggle,toggle:function(b,c){var e=typeof b==="boolean";
121
- if(d.isFunction(b)&&d.isFunction(c))this._toggle.apply(this,arguments);else b==null||e?this.each(function(){var g=e?b:d(this).is(":hidden");d(this)[g?"show":"hide"]()}):this.animate(ca("toggle",3),b,c);return this},fadeTo:function(b,c,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},b,e)},animate:function(b,c,e,g){var f=d.speed(c,e,g);if(d.isEmptyObject(b))return this.each(f.complete);return this[f.queue===false?"each":"queue"](function(){var l=d.extend({},f),m,v=
122
- this.nodeType===1&&d(this).is(":hidden"),s=this;for(m in b){var x=m.replace(fb,gb);if(m!==x){b[x]=b[m];delete b[m];m=x}if(b[m]==="hide"&&v||b[m]==="show"&&!v)return l.complete.call(this);if((m==="height"||m==="width")&&this.style){l.display=d.css(this,"display");l.overflow=this.style.overflow}if(d.isArray(b[m])){(l.specialEasing=l.specialEasing||{})[m]=b[m][1];b[m]=b[m][0]}}if(l.overflow!=null)this.style.overflow="hidden";l.curAnim=d.extend({},b);d.each(b,function(F,U){var ba=new d.fx(s,l,F);if(Bb.test(U))ba[U===
123
- "toggle"?v?"show":"hide":U](b);else{var ga=Cb.exec(U),da=ba.cur(true)||0;if(ga){var ta=parseFloat(ga[2]),S=ga[3]||"px";if(S!=="px"){s.style[F]=(ta||1)+S;da=(ta||1)/ba.cur(true)*da;s.style[F]=da+S}if(ga[1])ta=(ga[1]==="-="?-1:1)*ta+da;ba.custom(da,ta,S)}else ba.custom(da,U,"")}});return true})},stop:function(b,c){var e=d.timers;b&&this.queue([]);this.each(function(){for(var g=e.length-1;g>=0;g--)if(e[g].elem===this){c&&e[g](true);e.splice(g,1)}});c||this.dequeue();return this}});d.each({slideDown:ca("show",
124
- 1),slideUp:ca("hide",1),slideToggle:ca("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,c){d.fn[b]=function(e,g){return this.animate(c,e,g)}});d.extend({speed:function(b,c,e){var g=b&&typeof b==="object"?b:{complete:e||!e&&c||d.isFunction(b)&&b,duration:b,easing:e&&c||c&&!d.isFunction(c)&&c};g.duration=d.fx.off?0:typeof g.duration==="number"?g.duration:d.fx.speeds[g.duration]||d.fx.speeds._default;g.old=g.complete;g.complete=function(){g.queue!==false&&d(this).dequeue();d.isFunction(g.old)&&
125
- g.old.call(this)};return g},easing:{linear:function(b,c,e,g){return e+g*b},swing:function(b,c,e,g){return(-Math.cos(b*Math.PI)/2+0.5)*g+e}},timers:[],fx:function(b,c,e){this.options=c;this.elem=b;this.prop=e;if(!c.orig)c.orig={}}});d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(d.fx.step[this.prop]||d.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(b){if(this.elem[this.prop]!=
126
- null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(b=parseFloat(d.css(this.elem,this.prop,b)))&&b>-1E4?b:parseFloat(d.curCSS(this.elem,this.prop))||0},custom:function(b,c,e){function g(l){return f.step(l)}this.startTime=M();this.start=b;this.end=c;this.unit=e||this.unit||"px";this.now=this.start;this.pos=this.state=0;var f=this;g.elem=this.elem;if(g()&&d.timers.push(g)&&!cb)cb=setInterval(d.fx.tick,13)},show:function(){this.options.orig[this.prop]=d.style(this.elem,
127
- this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(b){var c=M(),e=true;if(b||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var g in this.options.curAnim)if(this.options.curAnim[g]!==true)e=false;if(e){if(this.options.display!=
128
- null){this.elem.style.overflow=this.options.overflow;b=d.data(this.elem,"olddisplay");this.elem.style.display=b?b:this.options.display;if(d.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var f in this.options.curAnim)d.style(this.elem,f,this.options.orig[f]);this.options.complete.call(this.elem)}return false}else{f=c-this.startTime;this.state=f/this.options.duration;b=this.options.easing||(d.easing.swing?
129
- "swing":"linear");this.pos=d.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,f,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};d.extend(d.fx,{tick:function(){for(var b=d.timers,c=0;c<b.length;c++)b[c]()||b.splice(c--,1);b.length||d.fx.stop()},stop:function(){clearInterval(cb);cb=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){d.style(b.elem,"opacity",b.now)},_default:function(b){if(b.elem.style&&
130
- b.elem.style[b.prop]!=null)b.elem.style[b.prop]=(b.prop==="width"||b.prop==="height"?Math.max(0,b.now):b.now)+b.unit;else b.elem[b.prop]=b.now}}});if(d.expr&&d.expr.filters)d.expr.filters.animated=function(b){return d.grep(d.timers,function(c){return b===c.elem}).length};d.fn.offset="getBoundingClientRect"in C.documentElement?function(b){var c=this[0];if(b)return this.each(function(f){d.offset.setOffset(this,b,f)});if(!c||!c.ownerDocument)return null;if(c===c.ownerDocument.body)return d.offset.bodyOffset(c);
131
- var e=c.getBoundingClientRect(),g=c.ownerDocument;c=g.body;g=g.documentElement;return{top:e.top+(self.pageYOffset||d.support.boxModel&&g.scrollTop||c.scrollTop)-(g.clientTop||c.clientTop||0),left:e.left+(self.pageXOffset||d.support.boxModel&&g.scrollLeft||c.scrollLeft)-(g.clientLeft||c.clientLeft||0)}}:function(b){var c=this[0];if(b)return this.each(function(x){d.offset.setOffset(this,b,x)});if(!c||!c.ownerDocument)return null;if(c===c.ownerDocument.body)return d.offset.bodyOffset(c);d.offset.initialize();
132
- var e=c.offsetParent,g=c.ownerDocument,f,l=g.documentElement,m=g.body;f=(g=g.defaultView)?g.getComputedStyle(c,null):c.currentStyle;for(var v=c.offsetTop,s=c.offsetLeft;(c=c.parentNode)&&c!==m&&c!==l;){if(d.offset.supportsFixedPosition&&f.position==="fixed")break;f=g?g.getComputedStyle(c,null):c.currentStyle;v-=c.scrollTop;s-=c.scrollLeft;if(c===e){v+=c.offsetTop;s+=c.offsetLeft;if(d.offset.doesNotAddBorder&&!(d.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(c.nodeName))){v+=parseFloat(f.borderTopWidth)||
133
- 0;s+=parseFloat(f.borderLeftWidth)||0}e=c.offsetParent}if(d.offset.subtractsBorderForOverflowNotVisible&&f.overflow!=="visible"){v+=parseFloat(f.borderTopWidth)||0;s+=parseFloat(f.borderLeftWidth)||0}f=f}if(f.position==="relative"||f.position==="static"){v+=m.offsetTop;s+=m.offsetLeft}if(d.offset.supportsFixedPosition&&f.position==="fixed"){v+=Math.max(l.scrollTop,m.scrollTop);s+=Math.max(l.scrollLeft,m.scrollLeft)}return{top:v,left:s}};d.offset={initialize:function(){var b=C.body,c=C.createElement("div"),
134
- e,g,f,l=parseFloat(d.curCSS(b,"marginTop",true))||0;d.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});c.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";b.insertBefore(c,b.firstChild);
135
- e=c.firstChild;g=e.firstChild;f=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=g.offsetTop!==5;this.doesAddBorderForTableAndCells=f.offsetTop===5;g.style.position="fixed";g.style.top="20px";this.supportsFixedPosition=g.offsetTop===20||g.offsetTop===15;g.style.position=g.style.top="";e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=g.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=b.offsetTop!==l;b.removeChild(c);d.offset.initialize=d.noop},
136
- bodyOffset:function(b){var c=b.offsetTop,e=b.offsetLeft;d.offset.initialize();if(d.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(d.curCSS(b,"marginTop",true))||0;e+=parseFloat(d.curCSS(b,"marginLeft",true))||0}return{top:c,left:e}},setOffset:function(b,c,e){if(/static/.test(d.curCSS(b,"position")))b.style.position="relative";var g=d(b),f=g.offset(),l=parseInt(d.curCSS(b,"top",true),10)||0,m=parseInt(d.curCSS(b,"left",true),10)||0;if(d.isFunction(c))c=c.call(b,e,f);e={top:c.top-f.top+l,left:c.left-
137
- f.left+m};"using"in c?c.using.call(b,e):g.css(e)}};d.fn.extend({position:function(){if(!this[0])return null;var b=this[0],c=this.offsetParent(),e=this.offset(),g=/^body|html$/i.test(c[0].nodeName)?{top:0,left:0}:c.offset();e.top-=parseFloat(d.curCSS(b,"marginTop",true))||0;e.left-=parseFloat(d.curCSS(b,"marginLeft",true))||0;g.top+=parseFloat(d.curCSS(c[0],"borderTopWidth",true))||0;g.left+=parseFloat(d.curCSS(c[0],"borderLeftWidth",true))||0;return{top:e.top-g.top,left:e.left-g.left}},offsetParent:function(){return this.map(function(){for(var b=
138
- this.offsetParent||C.body;b&&!/^body|html$/i.test(b.nodeName)&&d.css(b,"position")==="static";)b=b.offsetParent;return b})}});d.each(["Left","Top"],function(b,c){var e="scroll"+c;d.fn[e]=function(g){var f=this[0],l;if(!f)return null;if(g!==D)return this.each(function(){if(l=Y(this))l.scrollTo(!b?g:d(l).scrollLeft(),b?g:d(l).scrollTop());else this[e]=g});else return(l=Y(f))?"pageXOffset"in l?l[b?"pageYOffset":"pageXOffset"]:d.support.boxModel&&l.document.documentElement[e]||l.document.body[e]:f[e]}});
139
- d.each(["Height","Width"],function(b,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?d.css(this[0],e,false,"padding"):null};d.fn["outer"+c]=function(g){return this[0]?d.css(this[0],e,false,g?"margin":"border"):null};d.fn[e]=function(g){var f=this[0];if(!f)return g==null?null:this;if(d.isFunction(g))return this.each(function(l){var m=d(this);m[e](g.call(this,l,m[e]()))});return"scrollTo"in f&&f.document?f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+c]||
140
- f.document.body["client"+c]:f.nodeType===9?Math.max(f.documentElement["client"+c],f.body["scroll"+c],f.documentElement["scroll"+c],f.body["offset"+c],f.documentElement["offset"+c]):g===D?d.css(f,e):this.css(e,typeof g==="string"?g:g+"px")}});q.jQuery=q.$=d})(window);
141
- jQuery.cookie=function(q,D,w){if(arguments.length>1&&(D===null||typeof D!=="object")){w=jQuery.extend({},w);if(D===null)w.expires=-1;if(typeof w.expires==="number"){var P=w.expires,L=w.expires=new Date;L.setDate(L.getDate()+P)}return document.cookie=[encodeURIComponent(q),"=",w.raw?String(D):encodeURIComponent(String(D)),w.expires?"; expires="+w.expires.toUTCString():"",w.path?"; path="+w.path:"",w.domain?"; domain="+w.domain:"",w.secure?"; secure":""].join("")}w=D||{};L=w.raw?function(M){return M}:
142
- decodeURIComponent;return(P=RegExp("(?:^|; )"+encodeURIComponent(q)+"=([^;]*)").exec(document.cookie))?L(P[1]):null};
143
- (function(q){function D(){q.fn.ajaxSubmit.debug&&window.console&&window.console.log&&window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))}q.fn.ajaxSubmit=function(w){function P(){function R(){if(!pa++){C.detachEvent?C.detachEvent("onload",R):C.removeEventListener("load",R,false);var ka=true;try{if(ma)throw"timeout";var ia,fa;fa=C.contentWindow?C.contentWindow.document:C.contentDocument?C.contentDocument:C.document;var na=Y.dataType=="xml"||fa.XMLDocument||q.isXMLDoc(fa);D("isXml="+
144
- na);if(!na&&(fa.body==null||fa.body.innerHTML=="")){if(--Ea){pa=0;setTimeout(R,100);return}D("Could not access iframe DOM after 50 tries.");return}W.responseText=fa.body?fa.body.innerHTML:null;W.responseXML=fa.XMLDocument?fa.XMLDocument:fa;W.getResponseHeader=function(Ba){return{"content-type":Y.dataType}[Ba]};if(Y.dataType=="json"||Y.dataType=="script"){var Fa=fa.getElementsByTagName("textarea")[0];if(Fa)W.responseText=Fa.value;else{var Ga=fa.getElementsByTagName("pre")[0];if(Ga)W.responseText=Ga.innerHTML}}else if(Y.dataType==
145
- "xml"&&!W.responseXML&&W.responseText!=null)W.responseXML=Aa(W.responseText);ia=q.httpData(W,Y.dataType)}catch(Oa){ka=false;q.handleError(Y,W,"error",Oa)}if(ka){Y.success(ia,"success");ha&&q.event.trigger("ajaxSuccess",[W,Y])}ha&&q.event.trigger("ajaxComplete",[W,Y]);ha&&!--q.active&&q.event.trigger("ajaxStop");if(Y.complete)Y.complete(W,ka?"success":"error");setTimeout(function(){xa.remove();W.responseXML=null},100)}}function Aa(ka,ia){if(window.ActiveXObject){ia=new ActiveXObject("Microsoft.XMLDOM");
146
- ia.async="false";ia.loadXML(ka)}else ia=(new DOMParser).parseFromString(ka,"text/xml");return ia&&ia.documentElement&&ia.documentElement.tagName!="parsererror"?ia:null}var ca=V[0];if(q(":input[name=submit]",ca).length)alert('Error: Form elements must not be named "submit".');else{var Y=q.extend({},q.ajaxSettings,w),d=q.extend(true,{},q.extend(true,{},q.ajaxSettings),Y),Na="jqFormIO"+(new Date).getTime(),xa=q('<iframe id="'+Na+'" name="'+Na+'" src="'+Y.iframeSrc+'" />'),C=xa[0];xa.css({position:"absolute",
147
- top:"-1000px",left:"-1000px"});var W={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;xa.attr("src",Y.iframeSrc)}},ha=Y.global;ha&&!q.active++&&q.event.trigger("ajaxStart");ha&&q.event.trigger("ajaxSend",[W,Y]);if(d.beforeSend&&d.beforeSend(W,d)===false)d.global&&q.active--;else if(!W.aborted){var pa=0,ma=0;if(d=ca.clk){var sa=d.name;if(sa&&!d.disabled){w.extraData=
148
- w.extraData||{};w.extraData[sa]=d.value;if(d.type=="image"){w.extraData[name+".x"]=ca.clk_x;w.extraData[name+".y"]=ca.clk_y}}}setTimeout(function(){var ka=V.attr("target"),ia=V.attr("action");ca.setAttribute("target",Na);ca.getAttribute("method")!="POST"&&ca.setAttribute("method","POST");ca.getAttribute("action")!=Y.url&&ca.setAttribute("action",Y.url);w.skipEncodingOverride||V.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});Y.timeout&&setTimeout(function(){ma=true;R()},Y.timeout);
149
- var fa=[];try{if(w.extraData)for(var na in w.extraData)fa.push(q('<input type="hidden" name="'+na+'" value="'+w.extraData[na]+'" />').appendTo(ca)[0]);xa.appendTo("body");C.attachEvent?C.attachEvent("onload",R):C.addEventListener("load",R,false);ca.submit()}finally{ca.setAttribute("action",ia);ka?ca.setAttribute("target",ka):V.removeAttr("target");q(fa).remove()}},10);var Ea=50}}}if(!this.length){D("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof w=="function")w=
150
- {success:w};var L=q.trim(this.attr("action"));if(L)L=(L.match(/^([^#]+)/)||[])[1];L=L||window.location.href||"";w=q.extend({url:L,type:this.attr("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},w||{});L={};this.trigger("form-pre-serialize",[this,w,L]);if(L.veto){D("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(w.beforeSerialize&&w.beforeSerialize(this,w)===false){D("ajaxSubmit: submit aborted via beforeSerialize callback");
151
- return this}var M=this.formToArray(w.semantic);if(w.data){w.extraData=w.data;for(var O in w.data)if(w.data[O]instanceof Array)for(var ea in w.data[O])M.push({name:O,value:w.data[O][ea]});else M.push({name:O,value:w.data[O]})}if(w.beforeSubmit&&w.beforeSubmit(M,this,w)===false){D("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[M,this,w,L]);if(L.veto){D("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}O=q.param(M);if(w.type.toUpperCase()==
152
- "GET"){w.url+=(w.url.indexOf("?")>=0?"&":"?")+O;w.data=null}else w.data=O;var V=this,K=[];w.resetForm&&K.push(function(){V.resetForm()});w.clearForm&&K.push(function(){V.clearForm()});if(!w.dataType&&w.target){var la=w.success||function(){};K.push(function(R){q(w.target).html(R).each(la,arguments)})}else w.success&&K.push(w.success);w.success=function(R,Aa){for(var ca=0,Y=K.length;ca<Y;ca++)K[ca].apply(w,[R,Aa,V])};O=q("input:file",this).fieldValue();ea=false;for(L=0;L<O.length;L++)if(O[L])ea=true;
153
- if(O.length&&w.iframe!==false||w.iframe||ea||0)w.closeKeepAlive?q.get(w.closeKeepAlive,P):P();else q.ajax(w);this.trigger("form-submit-notify",[this,w]);return this};q.fn.ajaxForm=function(w){return this.ajaxFormUnbind().bind("submit.form-plugin",function(){q(this).ajaxSubmit(w);return false}).bind("click.form-plugin",function(P){var L=P.target,M=q(L);if(!M.is(":submit,input:image")){L=M.closest(":submit");if(L.length==0)return;L=L[0]}var O=this;O.clk=L;if(L.type=="image")if(P.offsetX!=undefined){O.clk_x=
154
- P.offsetX;O.clk_y=P.offsetY}else if(typeof q.fn.offset=="function"){M=M.offset();O.clk_x=P.pageX-M.left;O.clk_y=P.pageY-M.top}else{O.clk_x=P.pageX-L.offsetLeft;O.clk_y=P.pageY-L.offsetTop}setTimeout(function(){O.clk=O.clk_x=O.clk_y=null},100)})};q.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};q.fn.formToArray=function(w){var P=[];if(this.length==0)return P;var L=this[0],M=w?L.getElementsByTagName("*"):L.elements;if(!M)return P;for(var O=0,ea=M.length;O<ea;O++){var V=
155
- M[O],K=V.name;if(K)if(w&&L.clk&&V.type=="image"){if(!V.disabled&&L.clk==V){P.push({name:K,value:q(V).val()});P.push({name:K+".x",value:L.clk_x},{name:K+".y",value:L.clk_y})}}else if((V=q.fieldValue(V,true))&&V.constructor==Array)for(var la=0,R=V.length;la<R;la++)P.push({name:K,value:V[la]});else V!==null&&typeof V!="undefined"&&P.push({name:K,value:V})}if(!w&&L.clk){w=q(L.clk);M=w[0];if((K=M.name)&&!M.disabled&&M.type=="image"){P.push({name:K,value:w.val()});P.push({name:K+".x",value:L.clk_x},{name:K+
156
- ".y",value:L.clk_y})}}return P};q.fn.formSerialize=function(w){return q.param(this.formToArray(w))};q.fn.fieldSerialize=function(w){var P=[];this.each(function(){var L=this.name;if(L){var M=q.fieldValue(this,w);if(M&&M.constructor==Array)for(var O=0,ea=M.length;O<ea;O++)P.push({name:L,value:M[O]});else M!==null&&typeof M!="undefined"&&P.push({name:this.name,value:M})}});return q.param(P)};q.fn.fieldValue=function(w){for(var P=[],L=0,M=this.length;L<M;L++){var O=q.fieldValue(this[L],w);O===null||typeof O==
157
- "undefined"||O.constructor==Array&&!O.length||(O.constructor==Array?q.merge(P,O):P.push(O))}return P};q.fieldValue=function(w,P){var L=w.name,M=w.type,O=w.tagName.toLowerCase();if(typeof P=="undefined")P=true;if(P&&(!L||w.disabled||M=="reset"||M=="button"||(M=="checkbox"||M=="radio")&&!w.checked||(M=="submit"||M=="image")&&w.form&&w.form.clk!=w||O=="select"&&w.selectedIndex==-1))return null;if(O=="select"){var ea=w.selectedIndex;if(ea<0)return null;L=[];O=w.options;var V=(M=M=="select-one")?ea+1:
158
- O.length;for(ea=M?ea:0;ea<V;ea++){var K=O[ea];if(K.selected){var la=K.value;la||(la=K.attributes&&K.attributes.value&&!K.attributes.value.specified?K.text:K.value);if(M)return la;L.push(la)}}return L}return w.value};q.fn.clearForm=function(){return this.each(function(){q("input,select,textarea",this).clearFields()})};q.fn.clearFields=q.fn.clearInputs=function(){return this.each(function(){var w=this.type,P=this.tagName.toLowerCase();if(w=="text"||w=="password"||P=="textarea")this.value="";else if(w==
159
- "checkbox"||w=="radio")this.checked=false;else if(P=="select")this.selectedIndex=-1})};q.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)this.reset()})};q.fn.enable=function(w){if(w==undefined)w=true;return this.each(function(){this.disabled=!w})};q.fn.selected=function(w){if(w==undefined)w=true;return this.each(function(){var P=this.type;if(P=="checkbox"||P=="radio")this.checked=w;else if(this.tagName.toLowerCase()==
160
- "option"){P=q(this).parent("select");w&&P[0]&&P[0].type=="select-one"&&P.find("option").selected(false);this.selected=w}})}})(jQuery);
161
- (function(q){q.fn.layout=function(D){function w(h){if(!h)return true;var j=h.keyCode;if(j<33)return true;var k={38:"north",40:"south",37:"west",39:"east"},p=j>=37&&j<=40,r=h.shiftKey,A=h.ctrlKey,G=false,B,J,E;if(!A&&!r)return true;else if(p&&K[k[j]].enableCursorHotkey)G=k[j];else q.each(H.borderPanes.split(","),function(I,$){B=K[$];J=B.customHotkey;E=B.customHotkeyModifier;if(r&&E=="SHIFT"||A&&E=="CTRL"||A&&r)if(J&&j==(isNaN(J)||J<=9?J.toUpperCase().charCodeAt(0):J)){G=$;return false}});if(!G)return true;
162
- B=K[G];k=R[G];if(!B.enableCursorHotkey||k.isHidden||!X[G])return true;if((k=h.target||h.srcElement)&&r&&p&&(k.tagName=="TEXTAREA"||k.tagName=="INPUT"&&(j==37||j==39)))return true;Qa(G);h.stopPropagation();return h.returnValue=false}function P(h){if(this&&this.tagName)h=this;h=typeof h=="string"?X[h]:q(h).attr("pane")?q(h):q(h).parents("div[pane]:first");if(h.length){var j=h.attr("pane"),k=R[j];k.cssSaved&&L(j);if(k.isSliding||k.isResizing||k.isClosed)k.cssSaved=false;else{var p={zIndex:H.zIndex.pane_normal+
163
- 1},r={},A=h.css("overflow"),G=h.css("overflowX"),B=h.css("overflowY");if(A!="visible"){r.overflow=A;p.overflow="visible"}if(G&&G!="visible"&&G!="auto"){r.overflowX=G;p.overflowX="visible"}if(B&&B!="visible"&&B!="auto"){r.overflowY=G;p.overflowY="visible"}k.cssSaved=r;h.css(p);q.each(H.allPanes.split(","),function(J,E){E!=j&&L(E)})}}}function L(h){if(this&&this.tagName)h=this;h=typeof h=="string"?X[h]:q(h).hasClass("ui-layout-pane")?q(h):q(h).parents("div[pane]:first");if(h.length){var j=h.attr("pane");
164
- j=R[j];var k=j.cssSaved||{};!j.isSliding&&!j.isResizing&&h.css("zIndex",H.zIndex.pane_normal);h.css(k);j.cssSaved=false}}function M(h,j,k){var p=q(h);if(p.length)if(H.borderPanes.indexOf(j)==-1)alert("Error Adding Button \n\nInvalid pane: "+j);else{h=K[j].buttonClass+"-"+k;p.addClass(h+" "+h+"-"+j);return p}else alert("Error Adding Button \n\nInvalid selector: "+h);return false}function O(h,j){q.each(H[h].pins,function(k,p){ea(q(p),h,j)})}function ea(h,j,k){var p=h.attr("pin");if(!(p&&k==(p=="down"))){var r=
165
- K[j].buttonClass+"-pin",A=r+"-"+j;j=r+"-up";p=A+"-up";r=r+"-down";A=A+"-down";h.attr("pin",k?"down":"up").attr("title",k?"Un-Pin":"Pin").removeClass(k?j:r).removeClass(k?p:A).addClass(k?r:j).addClass(k?A:p)}}var V={paneClass:"ui-layout-pane",resizerClass:"ui-layout-resizer",togglerClass:"ui-layout-toggler",togglerInnerClass:"ui-layout-",buttonClass:"ui-layout-button",contentSelector:".ui-layout-content",contentIgnoreSelector:".ui-layout-ignore"},K={name:"",scrollToBookmarkOnLoad:true,defaults:{applyDefaultStyles:false,
166
- closable:true,resizable:true,slidable:true,contentSelector:V.contentSelector,contentIgnoreSelector:V.contentIgnoreSelector,paneClass:V.paneClass,resizerClass:V.resizerClass,togglerClass:V.togglerClass,buttonClass:V.buttonClass,resizerDragOpacity:1,maskIframesOnResize:true,minSize:0,maxSize:0,spacing_open:6,spacing_closed:6,togglerLength_open:50,togglerLength_closed:50,togglerAlign_open:"center",togglerAlign_closed:"center",togglerTip_open:"Close",togglerTip_closed:"Open",resizerTip:"Resize",sliderTip:"Slide Open",
167
- sliderCursor:"pointer",slideTrigger_open:"click",slideTrigger_close:"mouseout",hideTogglerOnSlide:false,togglerContent_open:"",togglerContent_closed:"",showOverflowOnHover:false,enableCursorHotkey:true,customHotkeyModifier:"SHIFT",fxName:"slide",fxSpeed:null,fxSettings:{},initClosed:false,initHidden:false},north:{paneSelector:".ui-layout-north",size:"auto",resizerCursor:"n-resize"},south:{paneSelector:".ui-layout-south",size:"auto",resizerCursor:"s-resize"},east:{paneSelector:".ui-layout-east",size:200,
168
- resizerCursor:"e-resize"},west:{paneSelector:".ui-layout-west",size:200,resizerCursor:"w-resize"},center:{paneSelector:".ui-layout-center"}},la={slide:{all:{duration:"fast"},north:{direction:"up"},south:{direction:"down"},east:{direction:"right"},west:{direction:"left"}},drop:{all:{duration:"slow"},north:{direction:"up"},south:{direction:"down"},east:{direction:"right"},west:{direction:"left"}},scale:{all:{duration:"fast"}}},R={id:Math.floor(Math.random()*1E4),container:{},north:{},south:{},east:{},
169
- west:{},center:{}},Aa={north:"south",south:"north",east:"west",west:"east"},ca=function(h){if(typeof h=="string")return true;else if(typeof h=="object")try{return h.constructor.toString().match(/string/i)!==null}catch(j){}return false},Y=function(h){return typeof h=="string"||ca(h)?q.trim(h):h},d=function(h,j){return Math.max(h,j)},Na=function(h){var j={defaults:{fxSettings:{}},north:{fxSettings:{}},south:{fxSettings:{}},east:{fxSettings:{}},west:{fxSettings:{}},center:{fxSettings:{}}};h=h||{};if(h.effects||
170
- h.defaults||h.north||h.south||h.west||h.east||h.center)j=q.extend(j,h);else q.each(h,function(k,p){a=k.split("__");j[a[1]?a[0]:"defaults"][a[1]?a[1]:a[0]]=p});return j},xa=function(h,j,k){function p(G){A=H[G];if(A.doCallback){cpPane=A.callback.split(",")[1];cpPane!=G&&cpPane!=j&&p(cpPane,true)}else{A.doCallback=true;A.callback=r}}var r=h+","+j+","+(k?1:0),A;q.each(H.borderPanes.split(","),function(G,B){if(H[B].isMoving){p(B);return false}})},C=function(h){h=H[h];H.isLayoutBusy=false;delete h.isMoving;
171
- if(h.doCallback&&h.callback){h.doCallback=false;var j=h.callback.split(","),k=j[2]>0?true:false;if(j[0]=="open")Ca(j[1],k);else j[0]=="close"&&va(j[1],k);if(!h.doCallback)h.callback=null}},W=function(h,j){if(j){var k;try{if(typeof j=="function")k=j;else if(typeof j!="string")return;else if(j.indexOf(",")>0){var p=j.split(",");k=eval(p[0]);if(typeof k=="function"&&p.length>1)return k(p[1])}else k=eval(j);if(typeof k=="function")return k(h,X[h],q.extend({},R[h]),q.extend({},K[h]),K.name)}catch(r){}}},
172
- ha=function(h,j){var k=0,p=false,r="";if(!q.browser.msie)if(q.curCSS(h[0],"display",true)=="none"){p=true;r=q.curCSS(h[0],"visibility",true);h.css({display:"block",visibility:"hidden"})}k=parseInt(q.curCSS(h[0],j,true),10)||0;if(p){h.css({display:"none"});r&&r!="hidden"&&h.css({visibility:r})}return k},pa=function(h,j){var k;if(ca(h)){h=Y(h);k=X[h]}else k=q(h);if(j<=0)return 0;else j>0||(j=ca(h)?sa(h):k.outerWidth());return q.boxModel?j-ha(k,"paddingLeft")-ha(k,"paddingRight")-(q.curCSS(k[0],"borderLeftStyle",
173
- true)=="none"?0:ha(k,"borderLeftWidth"))-(q.curCSS(k[0],"borderRightStyle",true)=="none"?0:ha(k,"borderRightWidth")):j},ma=function(h,j){var k;if(ca(h)){h=Y(h);k=X[h]}else k=q(h);if(j<=0)return 0;else j>0||(j=ca(h)?sa(h):k.outerHeight());return q.boxModel?j-ha(k,"paddingTop")-ha(k,"paddingBottom")-(q.curCSS(k[0],"borderTopStyle",true)=="none"?0:ha(k,"borderTopWidth"))-(q.curCSS(k[0],"borderBottomStyle",true)=="none"?0:ha(k,"borderBottomWidth")):j},sa=function(h,j){var k=X[h],p=K[h],r=R[h],A=j?p.spacing_open:
174
- 0;p=j?p.spacing_closed:0;return!k||r.isHidden?0:r.isClosed||r.isSliding&&j?p:H[h].dir=="horz"?k.outerHeight()+A:k.outerWidth()+A},Ea=function(h){var j=T,k=H[h].dir,p=R[h],r=X[Aa[h]],A=K[h].spacing_open,G=K[Aa[h]].spacing_open,B=!r?0:k=="horz"?r.outerHeight():r.outerWidth();r=p.minSize||0;k=Math.min(p.maxSize||9999,(k=="horz"?j.innerHeight:j.innerWidth)-A-B-G);var J,E;switch(h){case "north":J=j.offsetTop+r;E=j.offsetTop+k;break;case "west":J=j.offsetLeft+r;E=j.offsetLeft+k;break;case "south":J=j.offsetTop+
175
- j.innerHeight-k;E=j.offsetTop+j.innerHeight-r;break;case "east":J=j.offsetLeft+j.innerWidth-k;E=j.offsetLeft+j.innerWidth-r}q.extend(p,{minSize:r,maxSize:k,minPosition:J,maxPosition:E})},ka=function(){var h={top:sa("north",true),bottom:sa("south",true),left:sa("west",true),right:sa("east",true),width:0,height:0};with(h){width=T.innerWidth-left-right;height=T.innerHeight-bottom-top;top+=T.top;bottom+=T.bottom;left+=T.left;right+=T.right}return h},ia=function(h){var j={},k,p,r;q.each("Left,Right,Top,Bottom".split(","),
176
- function(){k=Y(this);p=j["border"+k]=ha(h,"border"+k+"Width");r=j["padding"+k]=ha(h,"padding"+k);j["offset"+k]=p+r;if(h==oa)j[k.toLowerCase()]=q.boxModel?r:0});j.innerWidth=j.outerWidth=h.outerWidth();j.innerHeight=j.outerHeight=h.outerHeight();if(q.boxModel){j.innerWidth-=j.offsetLeft+j.offsetRight;j.innerHeight-=j.offsetTop+j.offsetBottom}return j},fa=function(h,j,k,p){var r=window.layout=window.layout||{};r=r.timers=r.timers||{};h="layout_"+R.id+"_"+h+"_"+j;r[h]||(r[h]=setTimeout(k,p))},na=function(h,
177
- j){var k=window.layout=window.layout||{};k=k.timers=k.timers||{};var p="layout_"+R.id+"_"+h+"_"+j;if(k[p]){clearTimeout(k[p]);delete k[p];return true}else return false},Fa=function(){try{if(oa[0].tagName=="BODY"){q("html").css({height:"100%",overflow:"hidden"});q("body").css({position:"relative",height:"100%",overflow:"hidden",margin:0,padding:0,border:"none"})}else{var h={overflow:"hidden"},j=oa.css("position"),k=oa.css("height");if(!oa.hasClass("ui-layout-pane")){if(!j||"fixed,absolute,relative".indexOf(j)<
178
- 0)h.position="relative";if(!k||k=="auto")h.height="100%"}oa.css(h)}}catch(p){}T=R.container=ia(oa)},Ga=function(){q.each(H.borderPanes.split(","),function(h,j){var k=K[j];if(k.enableCursorHotkey||k.customHotkey){q(document).keydown(w);return false}})},Oa=function(){D=Na(D);if(D.effects){q.extend(la,D.effects);delete D.effects}q.each("name,scrollToBookmarkOnLoad".split(","),function(k,p){if(D[p]!==undefined)K[p]=D[p];else if(D.defaults[p]!==undefined){K[p]=D.defaults[p];delete D.defaults[p]}});q.each("paneSelector,resizerCursor,customHotkey".split(","),
179
- function(k,p){delete D.defaults[p]});q.extend(K.defaults,D.defaults);H.center=q.extend(true,{},H.defaults,H.center);q.extend(K.center,D.center);var h=q.extend(true,{},K.defaults,D.defaults,K.center);q.each("paneClass,contentSelector,contentIgnoreSelector,applyDefaultStyles,showOverflowOnHover".split(","),function(k,p){K.center[p]=h[p]});var j=K.defaults;q.each(H.borderPanes.split(","),function(k,p){H[p]=q.extend(true,{},H.defaults,H[p]);o=K[p]=q.extend(true,{},K.defaults,K[p],D.defaults,D[p]);if(!o.paneClass)o.paneClass=
180
- V.paneClass;if(!o.resizerClass)o.resizerClass=V.resizerClass;if(!o.togglerClass)o.togglerClass=V.togglerClass;q.each(["_open","_close",""],function(r,A){var G="fxName"+A,B="fxSpeed"+A,J="fxSettings"+A;o[G]=D[p][G]||D[p].fxName||D.defaults[G]||D.defaults.fxName||o[G]||o.fxName||j[G]||j.fxName||"none";var E=o[G];if(E=="none"||!q.effects||!q.effects[E]||!la[E]&&!o[J]&&!o.fxSettings)E=o[G]="none";E=la[E]||{};G=E.all||{};E=E[p]||{};o[J]=q.extend({},G,E,j.fxSettings||{},j[J]||{},o.fxSettings,o[J],D.defaults.fxSettings,
181
- D.defaults[J]||{},D[p].fxSettings,D[p][J]||{});o[B]=D[p][B]||D[p].fxSpeed||D.defaults[B]||D.defaults.fxSpeed||o[B]||o[J].duration||o.fxSpeed||o.fxSettings.duration||j.fxSpeed||j.fxSettings.duration||E.duration||G.duration||"normal"})})},Ba=function(){q.each(H.allPanes.split(","),function(){var h=Y(this),j=K[h],k=R[h],p=H[h].dir,r=j.size=="auto"||isNaN(j.size)?0:j.size,A=j.minSize||1,G=j.maxSize||9999,B=j.spacing_open||0,J=j.paneSelector,E={},I;Ja[h]=false;if(J.substr(0,1)==="#")I=X[h]=oa.find(J+":first");
182
- else{I=X[h]=oa.children(J+":first");I.length||(I=X[h]=oa.children("form:first").children(J+":first"))}if(!I.length){X[h]=false;return true}I.attr("pane",h).addClass(j.paneClass+" "+j.paneClass+"-"+h);if(h!="center"){k.isClosed=false;k.isSliding=false;k.isResizing=false;k.isHidden=false;k.noRoom=false;H[h].pins=[]}E=q.extend({visibility:"visible",display:"block"},H.defaults.cssReq,H[h].cssReq);j.applyDefaultStyles&&q.extend(E,H.defaults.cssDef,H[h].cssDef);I.css(E);E={};switch(h){case "north":E.top=
183
- T.top;E.left=T.left;E.right=T.right;break;case "south":E.bottom=T.bottom;E.left=T.left;E.right=T.right;break;case "west":E.left=T.left;break;case "east":E.right=T.right}if(p=="horz"){if(r===0||r=="auto"){I.css({height:"auto"});r=I.outerHeight()}r=d(r,A);r=Math.min(r,G);r=Math.min(r,T.innerHeight-B);E.height=d(1,ma(h,r));k.size=r;k.maxSize=G;k.minSize=d(A,r-E.height+1);I.css(E)}else if(p=="vert"){if(r===0||r=="auto"){I.css({width:"auto","float":"left"});r=I.outerWidth();I.css({"float":"none"})}r=d(r,
184
- A);r=Math.min(r,G);r=Math.min(r,T.innerWidth-B);E.width=d(1,pa(h,r));k.size=r;k.maxSize=G;k.minSize=d(A,r-E.width+1);I.css(E);Da(h,null,true)}else if(h=="center"){I.css(E);Da("center",null,true)}if(j.initClosed&&j.closable){I.hide().addClass("closed");k.isClosed=true}else if(j.initHidden||j.initClosed){Va(h,true);k.isHidden=true}else I.addClass("open");j.showOverflowOnHover&&I.hover(P,L);if(j.contentSelector){k=Ja[h]=I.children(j.contentSelector+":first");if(!k.length){Ja[h]=false;return true}k.css(H.content.cssReq);
185
- j.applyDefaultStyles&&k.css(H.content.cssDef);I.css({overflow:"hidden"})}})},ab=function(){q.each(H.borderPanes.split(","),function(){var h=Y(this),j=K[h],k=R[h],p=j.resizerClass,r=j.togglerClass,A=X[h];qa[h]=false;Ka[h]=false;if(!(!A||!j.closable&&!j.resizable)){var G=H[h].edge;A=A.is(":visible");var B="-"+h,J=A?"-open":"-closed",E;E=qa[h]=q("<span></span>");A&&j.resizable||!A&&j.slidable&&E.attr("title",j.sliderTip).css("cursor",j.sliderCursor);E.attr("id",j.paneSelector.substr(0,1)=="#"?j.paneSelector.substr(1)+
186
- "-resizer":"").attr("resizer",h).css(H.resizers.cssReq).css(G,T[G]+sa(h)).addClass(p+" "+p+B+" "+p+J+" "+p+B+J).appendTo(oa);j.applyDefaultStyles&&E.css(H.resizers.cssDef);if(j.closable){p=Ka[h]=q("<div></div>");p.attr("id",j.paneSelector.substr(0,1)=="#"?j.paneSelector.substr(1)+"-toggler":"").css(H.togglers.cssReq).attr("title",A?j.togglerTip_open:j.togglerTip_closed).click(function(I){Qa(h);I.stopPropagation()}).mouseover(function(I){I.stopPropagation()}).addClass(r+" "+r+B+" "+r+J+" "+r+B+J).appendTo(E);
187
- if(j.togglerContent_open)q("<span>"+j.togglerContent_open+"</span>").addClass("content content-open").css("display",k.isClosed?"none":"block").appendTo(p);if(j.togglerContent_closed)q("<span>"+j.togglerContent_closed+"</span>").addClass("content content-closed").css("display",k.isClosed?"block":"none").appendTo(p);j.applyDefaultStyles&&p.css(H.togglers.cssDef);A||Wa(h,true)}}});Ia("all",true)},ya=function(){var h=typeof q.fn.draggable=="function",j;q.each(H.borderPanes.split(","),function(){var k=
188
- Y(this),p=K[k],r=R[k];if(!h||!X[k]||!p.resizable){p.resizable=false;return true}var A=p.resizerClass,G=A+"-drag",B=A+"-"+k+"-drag",J=A+"-dragging",E=A+"-"+k+"-dragging",I=false,$=qa[k];r.isClosed||$.attr("title",p.resizerTip).css("cursor",p.resizerCursor);$.draggable({containment:oa[0],axis:H[k].dir=="horz"?"y":"x",delay:200,distance:1,helper:"clone",opacity:p.resizerDragOpacity,zIndex:H.zIndex.resizing,start:function(){if(false===W(k,p.onresize_start))return false;r.isResizing=true;na(k,"closeSlider");
189
- $.addClass(G+" "+B);I=false;var aa=k=="east"||k=="south"?p.spacing_open:0;Ea(k);r.minPosition-=aa;r.maxPosition-=aa;j=H[k].dir=="horz"?"top":"left";q(p.maskIframesOnResize===true?"iframe":p.maskIframesOnResize).each(function(){q('<div class="ui-layout-mask"/>').css({background:"#fff",opacity:"0.001",zIndex:9,position:"absolute",width:this.offsetWidth+"px",height:this.offsetHeight+"px"}).css(q(this).offset()).appendTo(this.parentNode)})},drag:function(aa,ja){if(!I){q(".ui-draggable-dragging").addClass(J+
190
- " "+E).children().css("visibility","hidden");I=true;r.isSliding&&X[k].css("zIndex",H.zIndex.sliding)}if(ja.position[j]<r.minPosition)ja.position[j]=r.minPosition;else if(ja.position[j]>r.maxPosition)ja.position[j]=r.maxPosition},stop:function(aa,ja){var ra=ja.position,wa;$.removeClass(G+" "+B);switch(k){case "north":wa=ra.top;break;case "west":wa=ra.left;break;case "south":wa=T.outerHeight-ra.top-$.outerHeight();break;case "east":wa=T.outerWidth-ra.left-$.outerWidth()}za(k,wa-T[H[k].edge]);q("div.ui-layout-mask").remove();
191
- r.isResizing=false}})})},Va=function(h,j){var k=K[h],p=R[h],r=X[h],A=qa[h];if(!(!r||p.isHidden))if(false!==W(h,k.onhide_start)){p.isSliding=false;A&&A.hide();if(j||p.isClosed){p.isClosed=true;p.isHidden=true;r.hide();Da(H[h].dir=="horz"?"all":"center");W(h,k.onhide_end||k.onhide)}else{p.isHiding=true;va(h,false)}}},Pa=function(h,j){var k=K[h],p=R[h],r=qa[h];if(X[h]&&p.isHidden)if(false!==W(h,k.onshow_start)){p.isSliding=false;p.isShowing=true;r&&k.spacing_open>0&&r.show();j===false?va(h,true):Ca(h)}},
192
- Qa=function(h){var j=R[h];if(j.isHidden)Pa(h);else j.isClosed?Ca(h):va(h)},va=function(h,j,k){function p(){Wa(h,true);ja||W(h,B.onclose_end||B.onclose);if(ja)W(h,B.onshow_end||B.onshow);if(ra)W(h,B.onhide_end||B.onhide);C(h)}var r=X[h],A=qa[h],G=Ka[h],B=K[h],J=R[h];k=!k&&!J.isClosed&&B.fxName_close!="none";var E=H[h].edge,I=B.resizerClass,$=B.togglerClass,aa="-"+h,ja=J.isShowing,ra=J.isHiding;delete J.isShowing;delete J.isHiding;if(!(!r||!B.resizable&&!B.closable))if(!(!j&&J.isClosed&&!ja))if(H.isLayoutBusy)xa("close",
193
- h,j);else if(!(!ja&&false===W(h,B.onclose_start))){H[h].isMoving=true;H.isLayoutBusy=true;J.isClosed=true;if(ra)J.isHidden=true;else if(ja)J.isHidden=false;O(h,false);J.isSliding||Da(H[h].dir=="horz"?"all":"center");if(A){A.css(E,T[E]).removeClass(I+"-open "+I+aa+"-open").removeClass(I+"-sliding "+I+aa+"-sliding").addClass(I+"-closed "+I+aa+"-closed");B.resizable&&A.draggable("disable").css("cursor","default").attr("title","");G&&G.removeClass($+"-open "+$+aa+"-open").addClass($+"-closed "+$+aa+"-closed").attr("title",
194
- B.togglerTip_closed);Ia()}if(k){Sa(h,true);r.hide(B.fxName_close,B.fxSettings_close,B.fxSpeed_close,function(){Sa(h,false);J.isClosed&&p()})}else{r.hide();p()}}},Ca=function(h,j,k){function p(){J.isSliding||Da(H[h].dir=="vert"?"center":"all");if(A){A.css(E,T[E]+sa(h)).removeClass(I+ra+" "+I+aa+ra).addClass(I+ja+" "+I+aa+ja).addClass(!J.isSliding?"":I+wa+" "+I+aa+wa);B.resizable?A.draggable("enable").css("cursor",B.resizerCursor).attr("title",B.resizerTip):A.css("cursor","default");G&&G.removeClass($+
195
- ra+" "+$+aa+ra).addClass($+ja+" "+$+aa+ja).attr("title",B.togglerTip_open);Ia("all")}Ha(h);O(h,!J.isSliding);W(h,B.onopen_end||B.onopen);if(Ra)W(h,B.onshow_end||B.onshow);C(h)}var r=X[h],A=qa[h],G=Ka[h],B=K[h],J=R[h];k=!k&&J.isClosed&&B.fxName_open!="none";var E=H[h].edge,I=B.resizerClass,$=B.togglerClass,aa="-"+h,ja="-open",ra="-closed",wa="-sliding",Ra=J.isShowing;delete J.isShowing;if(!(!r||!B.resizable&&!B.closable))if(J.isClosed||J.isSliding)if(J.isHidden&&!Ra)Pa(h,true);else if(H.isLayoutBusy)xa("open",
196
- h,j);else if(false!==W(h,B.onopen_start)){H[h].isMoving=true;H.isLayoutBusy=true;J.isSliding&&!j&&Xa(h,false);J.isClosed=false;if(Ra)J.isHidden=false;Ea(h);J.size>J.maxSize&&r.css(H[h].sizeType,d(1,H[h].dir=="horz"?ma(h,J.maxSize):pa(h,J.maxSize)));Wa(h,false);if(k){Sa(h,true);r.show(B.fxName_open,B.fxSettings_open,B.fxSpeed_open,function(){Sa(h,false);J.isClosed||p()})}else{r.show();p()}}},Sa=function(h,j){var k=X[h];if(j){k.css({zIndex:H.zIndex.animation});if(h=="south")k.css({top:T.top+T.innerHeight-
197
- k.outerHeight()});else h=="east"&&k.css({left:T.left+T.innerWidth-k.outerWidth()})}else{R[h].isSliding||k.css({zIndex:H.zIndex.pane_normal});if(h=="south")k.css({top:"auto"});else h=="east"&&k.css({left:"auto"})}},Wa=function(h,j){var k=K[h],p=qa[h],r=k.slideTrigger_open;if(p&&k.slidable){if(r!="click"&&r!="dblclick"&&r!="mouseover")r="click";p[j?"bind":"unbind"](r,db).css("cursor",j?k.sliderCursor:"default").attr("title",j?k.sliderTip:"")}},Xa=function(h,j){function k(G){na(h,"closeSlider");G.stopPropagation()}
198
- var p=K[h].slideTrigger_close,r=X[h],A=qa[h];R[h].isSliding=j;na(h,"closeSlider");r.css({zIndex:j?H.zIndex.sliding:H.zIndex.pane_normal});A.css({zIndex:j?H.zIndex.sliding:H.zIndex.resizer_normal});if(p!="click"&&p!="mouseout")p="mouseout";if(j){r.bind(p,Ya);A.bind(p,Ya);p="mouseout";r.bind("mouseover",k);A.bind("mouseover",k)}else{r.unbind(p);A.unbind(p);p="mouseout";r.unbind("mouseover");A.unbind("mouseover");na(h,"closeSlider")}},db=function(){var h=q(this).attr("resizer");if(R[h].isClosed){Xa(h,
199
- true);Ca(h,true)}},Ya=function(){function h(){Xa(k,false);p.isClosed||va(k)}var j=q(this),k=j.attr("pane")||j.attr("resizer");j=K[k];var p=R[k];p.isClosed||p.isResizing||(j.slideTrigger_close=="click"?h():fa(k,"closeSlider",h,300))},za=function(h,j){var k=H[h].edge,p=H[h].dir,r=K[h],A=R[h],G=X[h],B=qa[h];Ea(h);A.minSize=d(A.minSize,r.minSize);if(r.maxSize>0)A.maxSize=Math.min(A.maxSize,r.maxSize);j=d(j,A.minSize);j=Math.min(j,A.maxSize);A.size=j;B.css(k,j+T[k]);G.css(H[h].sizeType,d(1,H[h].dir=="horz"?
200
- ma(h,j):pa(h,j)));A.isSliding||Da(p=="horz"?"all":"center");Ia();Ha(h);W(h,r.onresize_end||r.onresize)},Da=function(h,j,k){if(!h||h=="all")h="east,west,center";var p=ka();j&&q.extend(p,j);q.each(h.split(","),function(){if(X[this]){var r=Y(this),A=K[r],G=R[r],B=X[r],J=qa[r],E=true,I={};if(r=="center"){p=ka();I=q.extend({},p);I.width=d(1,pa(r,I.width));I.height=d(1,ma(r,I.height));E=I.width>1&&I.height>1;if(q.browser.msie&&(!q.boxModel||q.browser.version<7)){X.north&&X.north.css({width:pa(X.north,T.innerWidth)});
201
- X.south&&X.south.css({width:pa(X.south,T.innerWidth)})}}else{I.top=p.top;I.bottom=p.bottom;I.height=d(1,ma(r,p.height));E=I.height>1}if(E){B.css(I);if(G.noRoom){G.noRoom=false;if(G.isHidden)return;else Pa(r,!G.isClosed)}if(!k){Ha(r);W(r,A.onresize_end||A.onresize)}}else if(!G.noRoom){G.noRoom=true;if(!G.isHidden)if(k){B.hide();J&&J.hide()}else Va(r)}}})},Ha=function(h){if(!h||h=="all")h=H.allPanes;q.each(h.split(","),function(){if(Ja[this]){var j=Y(this),k=K[j].contentIgnoreSelector,p=X[j];j=Ja[j];
202
- var r=j[0],A=ma(p);p.children().each(function(){if(this!=r){var G=q(this);if(!k||!G.is(k))A-=G.outerHeight()}});if(A>0)A=ma(j,A);A<1?j.hide():j.css({height:A}).show()}})},Ia=function(h,j){if(!h||h=="all")h=H.borderPanes;q.each(h.split(","),function(){var k=Y(this),p=K[k],r=R[k],A=X[k],G=qa[k],B=Ka[k];if(!(!A||!G||!p.resizable&&!p.closable)){var J=H[k].dir,E=r.isClosed?"_closed":"_open";k=p["spacing"+E];var I=p["togglerAlign"+E];E=p["togglerLength"+E];var $;if(k==0)G.hide();else{!r.noRoom&&!r.isHidden&&
203
- G.show();if(J=="horz"){$=A.outerWidth();G.css({width:d(1,pa(G,$)),height:d(1,ma(G,k)),left:ha(A,"left")})}else{$=A.outerHeight();G.css({height:d(1,ma(G,$)),width:d(1,pa(G,k)),top:T.top+sa("north",true)})}if(B){if(E==0||r.isSliding&&p.hideTogglerOnSlide){B.hide();return}else B.show();if(!(E>0)||E=="100%"||E>$){E=$;A=0}else if(typeof I=="string")switch(I){case "top":case "left":A=0;break;case "bottom":case "right":A=$-E;break;default:A=Math.floor(($-E)/2)}else{A=parseInt(I);A=I>=0?A:$-E+A}$=p.togglerContent_open?
204
- B.children(".content-open"):false;var aa=p.togglerContent_closed?B.children(".content-closed"):false;I=r.isClosed?aa:$;if($)$.css("display",r.isClosed?"none":"block");if(aa)aa.css("display",r.isClosed?"block":"none");if(J=="horz"){r=pa(B,E);B.css({width:d(0,r),height:d(1,ma(B,k)),left:A});I&&I.css("marginLeft",Math.floor((r-I.outerWidth())/2))}else{r=ma(B,E);B.css({height:d(0,r),width:d(1,pa(B,k)),top:A});I&&I.css("marginTop",Math.floor((r-I.outerHeight())/2))}}if(j&&p.initHidden){G.hide();B&&B.hide()}}}})},
205
- Za=function(){var h=T.innerWidth,j=T.innerHeight;T=R.container=ia(oa);var k=T.innerHeight<j,p=T.innerWidth<h,r,A;if(k||p)q.each(["south","north","east","west"],function(G,B){r=R[B];A=H[B].dir;if(!r.isClosed&&(k&&A=="horz"||p&&A=="vert")){Ea(B);r.size>r.maxSize&&za(B,r.maxSize)}});Da("all");Ia("all")},oa=q(this).css({overflow:"hidden"}),X={},Ja={},qa={},Ka={},H={allPanes:"north,south,east,west,center",borderPanes:"north,south,east,west",zIndex:{resizer_normal:1,pane_normal:2,mask:4,sliding:100,resizing:1E4,
206
- animation:1E4},resizers:{cssReq:{position:"absolute",padding:0,margin:0,fontSize:"1px",textAlign:"left",overflow:"hidden",zIndex:1},cssDef:{background:"#DDD",border:"none"}},togglers:{cssReq:{position:"absolute",display:"block",padding:0,margin:0,overflow:"hidden",textAlign:"center",fontSize:"1px",cursor:"pointer",zIndex:1},cssDef:{background:"#AAA"}},content:{cssReq:{overflow:"auto"},cssDef:{}},defaults:{cssReq:{position:"absolute",margin:0,zIndex:2},cssDef:{padding:"10px",background:"#FFF",border:"1px solid #BBB",
207
- overflow:"auto"}},north:{edge:"top",sizeType:"height",dir:"horz",cssReq:{top:0,bottom:"auto",left:0,right:0,width:"auto"}},south:{edge:"bottom",sizeType:"height",dir:"horz",cssReq:{top:"auto",bottom:0,left:0,right:0,width:"auto"}},east:{edge:"right",sizeType:"width",dir:"vert",cssReq:{left:"auto",right:0,top:"auto",bottom:"auto",height:"auto"}},west:{edge:"left",sizeType:"width",dir:"vert",cssReq:{left:0,right:"auto",top:"auto",bottom:"auto",height:"auto"}},center:{dir:"center",cssReq:{left:"auto",
208
- right:"auto",top:"auto",bottom:"auto",height:"auto",width:"auto"}}},T=R.container;(function(){Oa();Fa();Ba();ab();ya();Ha("all");if(K.scrollToBookmarkOnLoad)with(self.location)hash&&replace(hash);Ga();q(window).resize(function(){var h="timerLayout_"+R.id;window[h]&&clearTimeout(window[h]);window[h]=null;window[h]=setTimeout(Za,100)})})();return{options:K,state:R,panes:X,toggle:Qa,open:Ca,close:va,hide:Va,show:Pa,resizeContent:Ha,sizePane:za,resizeAll:Za,addToggleBtn:function(h,j){var k=M(h,j,"toggle");
209
- if(k)k.attr("title",R[j].isClosed?"Open":"Close").click(function(p){Qa(j);p.stopPropagation()})},addOpenBtn:function(h,j){var k=M(h,j,"open");k&&k.attr("title","Open").click(function(p){Ca(j);p.stopPropagation()})},addCloseBtn:function(h,j){var k=M(h,j,"close");k&&k.attr("title","Close").click(function(p){va(j);p.stopPropagation()})},addPinBtn:function(h,j){var k=M(h,j,"pin");if(k){var p=R[j];k.click(function(r){ea(q(this),j,p.isSliding||p.isClosed);p.isSliding||p.isClosed?Ca(j):va(j);r.stopPropagation()});
210
- ea(k,j,!p.isClosed&&!p.isSliding);H[j].pins.push(h)}},allowOverflow:P,resetOverflow:L,cssWidth:pa,cssHeight:ma}}})(jQuery);
@@ -1,823 +0,0 @@
1
- (function(a,d){function f(e){return!a(e).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};if(!a.ui.version){a.extend(a.ui,{version:"1.8.5",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,
2
- PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});a.fn.extend({_focus:a.fn.focus,focus:function(e,h){return typeof e==="number"?this.each(function(){var b=this;setTimeout(function(){a(b).focus();h&&h.call(b)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;e=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,
3
- "position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!e.length?a(document):e},zIndex:function(e){if(e!==d)return this.css("zIndex",e);if(this.length){e=a(this[0]);for(var h;e.length&&e[0]!==document;){h=e.css("position");
4
- if(h==="absolute"||h==="relative"||h==="fixed"){h=parseInt(e.css("zIndex"));if(!isNaN(h)&&h!=0)return h}e=e.parent()}}return 0},disableSelection:function(){return this.bind("mousedown.ui-disableSelection selectstart.ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.each(["Width","Height"],function(e,h){function b(m,l,j,n){a.each(g,function(){l-=parseFloat(a.curCSS(m,"padding"+this,true))||0;if(j)l-=parseFloat(a.curCSS(m,
5
- "border"+this+"Width",true))||0;if(n)l-=parseFloat(a.curCSS(m,"margin"+this,true))||0});return l}var g=h==="Width"?["Left","Right"]:["Top","Bottom"],i=h.toLowerCase(),k={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+h]=function(m){if(m===d)return k["inner"+h].call(this);return this.each(function(){a.style(this,i,b(this,m)+"px")})};a.fn["outer"+h]=function(m,l){if(typeof m!=="number")return k["outer"+h].call(this,m);return this.each(function(){a.style(this,
6
- i,b(this,m,true,l)+"px")})}});a.extend(a.expr[":"],{data:function(e,h,b){return!!a.data(e,b[3])},focusable:function(e){var h=e.nodeName.toLowerCase(),b=a.attr(e,"tabindex");if("area"===h){h=e.parentNode;b=h.name;if(!e.href||!b||h.nodeName.toLowerCase()!=="map")return false;e=a("img[usemap=#"+b+"]")[0];return!!e&&f(e)}return(/input|select|textarea|button|object/.test(h)?!e.disabled:"a"==h?e.href||!isNaN(b):!isNaN(b))&&f(e)},tabbable:function(e){var h=a.attr(e,"tabindex");return(isNaN(h)||h>=0)&&a(e).is(":focusable")}});
7
- a(function(){var e=document.createElement("div"),h=document.body;a.extend(e.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=h.appendChild(e).offsetHeight===100;h.removeChild(e).style.display="none"});a.extend(a.ui,{plugin:{add:function(e,h,b){e=a.ui[e].prototype;for(var g in b){e.plugins[g]=e.plugins[g]||[];e.plugins[g].push([h,b[g]])}},call:function(e,h,b){if((h=e.plugins[h])&&e.element[0].parentNode)for(var g=0;g<h.length;g++)e.options[h[g][0]]&&h[g][1].apply(e.element,
8
- b)}},contains:function(e,h){return document.compareDocumentPosition?e.compareDocumentPosition(h)&16:e!==h&&e.contains(h)},hasScroll:function(e,h){if(a(e).css("overflow")==="hidden")return false;var b=h&&h==="left"?"scrollLeft":"scrollTop",g=false;if(e[b]>0)return true;e[b]=1;g=e[b]>0;e[b]=0;return g},isOverAxis:function(e,h,b){return e>h&&e<h+b},isOver:function(e,h,b,g,i,k){return a.ui.isOverAxis(e,b,i)&&a.ui.isOverAxis(h,g,k)}})}})(jQuery);
9
- (function(a,d){if(a.cleanData){var f=a.cleanData;a.cleanData=function(h){for(var b=0,g;(g=h[b])!=null;b++)a(g).triggerHandler("remove");f(h)}}else{var e=a.fn.remove;a.fn.remove=function(h,b){return this.each(function(){if(!b)if(!h||a.filter(h,[this]).length)a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")});return e.call(a(this),h,b)})}}a.widget=function(h,b,g){var i=h.split(".")[0],k;h=h.split(".")[1];k=i+"-"+h;if(!g){g=b;b=a.Widget}a.expr[":"][k]=function(m){return!!a.data(m,
10
- h)};a[i]=a[i]||{};a[i][h]=function(m,l){arguments.length&&this._createWidget(m,l)};b=new b;b.options=a.extend(true,{},b.options);a[i][h].prototype=a.extend(true,b,{namespace:i,widgetName:h,widgetEventPrefix:a[i][h].prototype.widgetEventPrefix||h,widgetBaseClass:k},g);a.widget.bridge(h,a[i][h])};a.widget.bridge=function(h,b){a.fn[h]=function(g){var i=typeof g==="string",k=Array.prototype.slice.call(arguments,1),m=this;g=!i&&k.length?a.extend.apply(null,[true,g].concat(k)):g;if(i&&g.substring(0,1)===
11
- "_")return m;i?this.each(function(){var l=a.data(this,h);if(!l)throw"cannot call methods on "+h+" prior to initialization; attempted to call method '"+g+"'";if(!a.isFunction(l[g]))throw"no such method '"+g+"' for "+h+" widget instance";var j=l[g].apply(l,k);if(j!==l&&j!==d){m=j;return false}}):this.each(function(){var l=a.data(this,h);l?l.option(g||{})._init():a.data(this,h,new b(g,this))});return m}};a.Widget=function(h,b){arguments.length&&this._createWidget(h,b)};a.Widget.prototype={widgetName:"widget",
12
- widgetEventPrefix:"",options:{disabled:false},_createWidget:function(h,b){a.data(b,this.widgetName,this);this.element=a(b);this.options=a.extend(true,{},this.options,a.metadata&&a.metadata.get(b)[this.widgetName],h);var g=this;this.element.bind("remove."+this.widgetName,function(){g.destroy()});this._create();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+
13
- "-disabled ui-state-disabled")},widget:function(){return this.element},option:function(h,b){var g=h,i=this;if(arguments.length===0)return a.extend({},i.options);if(typeof h==="string"){if(b===d)return this.options[h];g={};g[h]=b}a.each(g,function(k,m){i._setOption(k,m)});return i},_setOption:function(h,b){this.options[h]=b;if(h==="disabled")this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",b);return this},enable:function(){return this._setOption("disabled",
14
- false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(h,b,g){var i=this.options[h];b=a.Event(b);b.type=(h===this.widgetEventPrefix?h:this.widgetEventPrefix+h).toLowerCase();g=g||{};if(b.originalEvent){h=a.event.props.length;for(var k;h;){k=a.event.props[--h];b[k]=b.originalEvent[k]}}this.element.trigger(b,g);return!(a.isFunction(i)&&i.call(this.element[0],b,g)===false||b.isDefaultPrevented())}}})(jQuery);
15
- (function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var d=this;this.element.bind("mousedown."+this.widgetName,function(f){return d._mouseDown(f)}).bind("click."+this.widgetName,function(f){if(d._preventClickEvent){d._preventClickEvent=false;f.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(d){d.originalEvent=d.originalEvent||{};if(!d.originalEvent.mouseHandled){this._mouseStarted&&
16
- this._mouseUp(d);this._mouseDownEvent=d;var f=this,e=d.which==1,h=typeof this.options.cancel=="string"?a(d.target).parents().add(d.target).filter(this.options.cancel).length:false;if(!e||h||!this._mouseCapture(d))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){f.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=this._mouseStart(d)!==false;if(!this._mouseStarted){d.preventDefault();
17
- return true}}this._mouseMoveDelegate=function(b){return f._mouseMove(b)};this._mouseUpDelegate=function(b){return f._mouseUp(b)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.browser.safari||d.preventDefault();return d.originalEvent.mouseHandled=true}},_mouseMove:function(d){if(a.browser.msie&&!d.button)return this._mouseUp(d);if(this._mouseStarted){this._mouseDrag(d);return d.preventDefault()}if(this._mouseDistanceMet(d)&&
18
- this._mouseDelayMet(d))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,d)!==false)?this._mouseDrag(d):this._mouseUp(d);return!this._mouseStarted},_mouseUp:function(d){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=d.target==this._mouseDownEvent.target;this._mouseStop(d)}return false},_mouseDistanceMet:function(d){return Math.max(Math.abs(this._mouseDownEvent.pageX-
19
- d.pageX),Math.abs(this._mouseDownEvent.pageY-d.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
20
- (function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
21
- "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(d){var f=
22
- this.options;if(this.helper||f.disabled||a(d.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(d);if(!this.handle)return false;return true},_mouseStart:function(d){var f=this.options;this.helper=this._createHelper(d);this._cacheHelperProportions();if(a.ui.ddmanager)a.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-
23
- this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt);f.containment&&this._setContainment();if(this._trigger("start",d)===false){this._clear();return false}this._cacheHelperProportions();
24
- a.ui.ddmanager&&!f.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,d);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(d,true);return true},_mouseDrag:function(d,f){this.position=this._generatePosition(d);this.positionAbs=this._convertPositionTo("absolute");if(!f){var e=this._uiHash();if(this._trigger("drag",d,e)===false){this._mouseUp({});return false}this.position=e.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||
25
- this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,d);return false},_mouseStop:function(d){var f=false;if(a.ui.ddmanager&&!this.options.dropBehaviour)f=a.ui.ddmanager.drop(this,d);if(this.dropped){f=this.dropped;this.dropped=false}if(!this.element[0]||!this.element[0].parentNode)return false;if(this.options.revert=="invalid"&&!f||this.options.revert=="valid"&&f||this.options.revert===true||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,
26
- f)){var e=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){e._trigger("stop",d)!==false&&e._clear()})}else this._trigger("stop",d)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(d){var f=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
27
- d.target)f=true});return f},_createHelper:function(d){var f=this.options;d=a.isFunction(f.helper)?a(f.helper.apply(this.element[0],[d])):f.helper=="clone"?this.element.clone():this.element;d.parents("body").length||d.appendTo(f.appendTo=="parent"?this.element[0].parentNode:f.appendTo);d[0]!=this.element[0]&&!/(fixed|absolute)/.test(d.css("position"))&&d.css("position","absolute");return d},_adjustOffsetFromHelper:function(d){if(typeof d=="string")d=d.split(" ");if(a.isArray(d))d={left:+d[0],top:+d[1]||
28
- 0};if("left"in d)this.offset.click.left=d.left+this.margins.left;if("right"in d)this.offset.click.left=this.helperProportions.width-d.right+this.margins.left;if("top"in d)this.offset.click.top=d.top+this.margins.top;if("bottom"in d)this.offset.click.top=this.helperProportions.height-d.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var d=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],
29
- this.offsetParent[0])){d.left+=this.scrollParent.scrollLeft();d.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)d={top:0,left:0};return{top:d.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:d.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var d=this.element.position();return{top:d.top-
30
- (parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:d.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var d=this.options;if(d.containment==
31
- "parent")d.containment=this.helper[0].parentNode;if(d.containment=="document"||d.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(d.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(d.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(d.containment)&&
32
- d.containment.constructor!=Array){var f=a(d.containment)[0];if(f){d=a(d.containment).offset();var e=a(f).css("overflow")!="hidden";this.containment=[d.left+(parseInt(a(f).css("borderLeftWidth"),10)||0)+(parseInt(a(f).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(f).css("borderTopWidth"),10)||0)+(parseInt(a(f).css("paddingTop"),10)||0)-this.margins.top,d.left+(e?Math.max(f.scrollWidth,f.offsetWidth):f.offsetWidth)-(parseInt(a(f).css("borderLeftWidth"),10)||0)-(parseInt(a(f).css("paddingRight"),
33
- 10)||0)-this.helperProportions.width-this.margins.left,d.top+(e?Math.max(f.scrollHeight,f.offsetHeight):f.offsetHeight)-(parseInt(a(f).css("borderTopWidth"),10)||0)-(parseInt(a(f).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(d.containment.constructor==Array)this.containment=d.containment},_convertPositionTo:function(d,f){if(!f)f=this.position;var e=d=="absolute"?1:-1,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],
34
- this.offsetParent[0]))?this.offsetParent:this.scrollParent,b=/(html|body)/i.test(h[0].tagName);return{top:f.top+this.offset.relative.top*e+this.offset.parent.top*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():b?0:h.scrollTop())*e),left:f.left+this.offset.relative.left*e+this.offset.parent.left*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
35
- b?0:h.scrollLeft())*e)}},_generatePosition:function(d){var f=this.options,e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(html|body)/i.test(e[0].tagName),b=d.pageX,g=d.pageY;if(this.originalPosition){if(this.containment){if(d.pageX-this.offset.click.left<this.containment[0])b=this.containment[0]+this.offset.click.left;if(d.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+
36
- this.offset.click.top;if(d.pageX-this.offset.click.left>this.containment[2])b=this.containment[2]+this.offset.click.left;if(d.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(f.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/f.grid[1])*f.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-f.grid[1]:g+f.grid[1]:g;b=this.originalPageX+
37
- Math.round((b-this.originalPageX)/f.grid[0])*f.grid[0];b=this.containment?!(b-this.offset.click.left<this.containment[0]||b-this.offset.click.left>this.containment[2])?b:!(b-this.offset.click.left<this.containment[0])?b-f.grid[0]:b+f.grid[0]:b}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():h?0:e.scrollTop()),left:b-this.offset.click.left-
38
- this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?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(d,f,e){e=e||this._uiHash();a.ui.plugin.call(this,d,[f,e]);if(d=="drag")this.positionAbs=
39
- this._convertPositionTo("absolute");return a.Widget.prototype._trigger.call(this,d,f,e)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.5"});a.ui.plugin.add("draggable","connectToSortable",{start:function(d,f){var e=a(this).data("draggable"),h=e.options,b=a.extend({},f,{item:e.element});e.sortables=[];a(h.connectToSortable).each(function(){var g=a.data(this,"sortable");
40
- if(g&&!g.options.disabled){e.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",d,b)}})},stop:function(d,f){var e=a(this).data("draggable"),h=a.extend({},f,{item:e.element});a.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(d);this.instance.options.helper=this.instance.options._helper;
41
- e.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",d,h)}})},drag:function(d,f){var e=a(this).data("draggable"),h=this;a.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=
42
- 1;this.instance.currentItem=a(h).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return f.helper[0]};d.target=this.instance.currentItem[0];this.instance._mouseCapture(d,true);this.instance._mouseStart(d,true,true);this.instance.offset.click.top=e.offset.click.top;this.instance.offset.click.left=e.offset.click.left;this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left;
43
- this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top;e._trigger("toSortable",d);e.dropped=this.instance.element;e.currentItem=e.element;this.instance.fromOutside=e}this.instance.currentItem&&this.instance._mouseDrag(d)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",d,this.instance._uiHash(this.instance));this.instance._mouseStop(d,true);this.instance.options.helper=
44
- this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();e._trigger("fromSortable",d);e.dropped=false}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var d=a("body"),f=a(this).data("draggable").options;if(d.css("cursor"))f._cursor=d.css("cursor");d.css("cursor",f.cursor)},stop:function(){var d=a(this).data("draggable").options;d._cursor&&a("body").css("cursor",d._cursor)}});a.ui.plugin.add("draggable","iframeFix",{start:function(){var d=
45
- a(this).data("draggable").options;a(d.iframeFix===true?"iframe":d.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(a(this).offset()).appendTo("body")})},stop:function(){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(d,f){var e=a(f.helper),
46
- h=a(this).data("draggable").options;if(e.css("opacity"))h._opacity=e.css("opacity");e.css("opacity",h.opacity)},stop:function(d,f){var e=a(this).data("draggable").options;e._opacity&&a(f.helper).css("opacity",e._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var d=a(this).data("draggable");if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML")d.overflowOffset=d.scrollParent.offset()},drag:function(d){var f=a(this).data("draggable"),e=f.options,h=false;if(f.scrollParent[0]!=
47
- document&&f.scrollParent[0].tagName!="HTML"){if(!e.axis||e.axis!="x")if(f.overflowOffset.top+f.scrollParent[0].offsetHeight-d.pageY<e.scrollSensitivity)f.scrollParent[0].scrollTop=h=f.scrollParent[0].scrollTop+e.scrollSpeed;else if(d.pageY-f.overflowOffset.top<e.scrollSensitivity)f.scrollParent[0].scrollTop=h=f.scrollParent[0].scrollTop-e.scrollSpeed;if(!e.axis||e.axis!="y")if(f.overflowOffset.left+f.scrollParent[0].offsetWidth-d.pageX<e.scrollSensitivity)f.scrollParent[0].scrollLeft=h=f.scrollParent[0].scrollLeft+
48
- e.scrollSpeed;else if(d.pageX-f.overflowOffset.left<e.scrollSensitivity)f.scrollParent[0].scrollLeft=h=f.scrollParent[0].scrollLeft-e.scrollSpeed}else{if(!e.axis||e.axis!="x")if(d.pageY-a(document).scrollTop()<e.scrollSensitivity)h=a(document).scrollTop(a(document).scrollTop()-e.scrollSpeed);else if(a(window).height()-(d.pageY-a(document).scrollTop())<e.scrollSensitivity)h=a(document).scrollTop(a(document).scrollTop()+e.scrollSpeed);if(!e.axis||e.axis!="y")if(d.pageX-a(document).scrollLeft()<e.scrollSensitivity)h=
49
- a(document).scrollLeft(a(document).scrollLeft()-e.scrollSpeed);else if(a(window).width()-(d.pageX-a(document).scrollLeft())<e.scrollSensitivity)h=a(document).scrollLeft(a(document).scrollLeft()+e.scrollSpeed)}h!==false&&a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(f,d)}});a.ui.plugin.add("draggable","snap",{start:function(){var d=a(this).data("draggable"),f=d.options;d.snapElements=[];a(f.snap.constructor!=String?f.snap.items||":data(draggable)":f.snap).each(function(){var e=a(this),
50
- h=e.offset();this!=d.element[0]&&d.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:h.top,left:h.left})})},drag:function(d,f){for(var e=a(this).data("draggable"),h=e.options,b=h.snapTolerance,g=f.offset.left,i=g+e.helperProportions.width,k=f.offset.top,m=k+e.helperProportions.height,l=e.snapElements.length-1;l>=0;l--){var j=e.snapElements[l].left,n=j+e.snapElements[l].width,o=e.snapElements[l].top,p=o+e.snapElements[l].height;if(j-b<g&&g<n+b&&o-b<k&&k<p+b||j-b<g&&g<n+b&&
51
- o-b<m&&m<p+b||j-b<i&&i<n+b&&o-b<k&&k<p+b||j-b<i&&i<n+b&&o-b<m&&m<p+b){if(h.snapMode!="inner"){var q=Math.abs(o-m)<=b,r=Math.abs(p-k)<=b,u=Math.abs(j-i)<=b,s=Math.abs(n-g)<=b;if(q)f.position.top=e._convertPositionTo("relative",{top:o-e.helperProportions.height,left:0}).top-e.margins.top;if(r)f.position.top=e._convertPositionTo("relative",{top:p,left:0}).top-e.margins.top;if(u)f.position.left=e._convertPositionTo("relative",{top:0,left:j-e.helperProportions.width}).left-e.margins.left;if(s)f.position.left=
52
- e._convertPositionTo("relative",{top:0,left:n}).left-e.margins.left}var v=q||r||u||s;if(h.snapMode!="outer"){q=Math.abs(o-k)<=b;r=Math.abs(p-m)<=b;u=Math.abs(j-g)<=b;s=Math.abs(n-i)<=b;if(q)f.position.top=e._convertPositionTo("relative",{top:o,left:0}).top-e.margins.top;if(r)f.position.top=e._convertPositionTo("relative",{top:p-e.helperProportions.height,left:0}).top-e.margins.top;if(u)f.position.left=e._convertPositionTo("relative",{top:0,left:j}).left-e.margins.left;if(s)f.position.left=e._convertPositionTo("relative",
53
- {top:0,left:n-e.helperProportions.width}).left-e.margins.left}if(!e.snapElements[l].snapping&&(q||r||u||s||v))e.options.snap.snap&&e.options.snap.snap.call(e.element,d,a.extend(e._uiHash(),{snapItem:e.snapElements[l].item}));e.snapElements[l].snapping=q||r||u||s||v}else{e.snapElements[l].snapping&&e.options.snap.release&&e.options.snap.release.call(e.element,d,a.extend(e._uiHash(),{snapItem:e.snapElements[l].item}));e.snapElements[l].snapping=false}}}});a.ui.plugin.add("draggable","stack",{start:function(){var d=
54
- a(this).data("draggable").options;d=a.makeArray(a(d.stack)).sort(function(e,h){return(parseInt(a(e).css("zIndex"),10)||0)-(parseInt(a(h).css("zIndex"),10)||0)});if(d.length){var f=parseInt(d[0].style.zIndex)||0;a(d).each(function(e){this.style.zIndex=f+e});this[0].style.zIndex=f+d.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(d,f){var e=a(f.helper),h=a(this).data("draggable").options;if(e.css("zIndex"))h._zIndex=e.css("zIndex");e.css("zIndex",h.zIndex)},stop:function(d,f){var e=
55
- a(this).data("draggable").options;e._zIndex&&a(f.helper).css("zIndex",e._zIndex)}})})(jQuery);
56
- (function(a){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var d=this.options,f=d.accept;this.isover=0;this.isout=1;this.accept=a.isFunction(f)?f:function(e){return e.is(f)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[d.scope]=a.ui.ddmanager.droppables[d.scope]||[];a.ui.ddmanager.droppables[d.scope].push(this);
57
- d.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var d=a.ui.ddmanager.droppables[this.options.scope],f=0;f<d.length;f++)d[f]==this&&d.splice(f,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(d,f){if(d=="accept")this.accept=a.isFunction(f)?f:function(e){return e.is(f)};a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(d){var f=a.ui.ddmanager.current;this.options.activeClass&&
58
- this.element.addClass(this.options.activeClass);f&&this._trigger("activate",d,this.ui(f))},_deactivate:function(d){var f=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);f&&this._trigger("deactivate",d,this.ui(f))},_over:function(d){var f=a.ui.ddmanager.current;if(!(!f||(f.currentItem||f.element)[0]==this.element[0]))if(this.accept.call(this.element[0],f.currentItem||f.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
59
- this._trigger("over",d,this.ui(f))}},_out:function(d){var f=a.ui.ddmanager.current;if(!(!f||(f.currentItem||f.element)[0]==this.element[0]))if(this.accept.call(this.element[0],f.currentItem||f.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",d,this.ui(f))}},_drop:function(d,f){var e=f||a.ui.ddmanager.current;if(!e||(e.currentItem||e.element)[0]==this.element[0])return false;var h=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var b=
60
- a.data(this,"droppable");if(b.options.greedy&&!b.options.disabled&&b.options.scope==e.options.scope&&b.accept.call(b.element[0],e.currentItem||e.element)&&a.ui.intersect(e,a.extend(b,{offset:b.element.offset()}),b.options.tolerance)){h=true;return false}});if(h)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",
61
- d,this.ui(e));return this.element}return false},ui:function(d){return{draggable:d.currentItem||d.element,helper:d.helper,position:d.position,offset:d.positionAbs}}});a.extend(a.ui.droppable,{version:"1.8.5"});a.ui.intersect=function(d,f,e){if(!f.offset)return false;var h=(d.positionAbs||d.position.absolute).left,b=h+d.helperProportions.width,g=(d.positionAbs||d.position.absolute).top,i=g+d.helperProportions.height,k=f.offset.left,m=k+f.proportions.width,l=f.offset.top,j=l+f.proportions.height;switch(e){case "fit":return k<=
62
- h&&b<=m&&l<=g&&i<=j;case "intersect":return k<h+d.helperProportions.width/2&&b-d.helperProportions.width/2<m&&l<g+d.helperProportions.height/2&&i-d.helperProportions.height/2<j;case "pointer":return a.ui.isOver((d.positionAbs||d.position.absolute).top+(d.clickOffset||d.offset.click).top,(d.positionAbs||d.position.absolute).left+(d.clickOffset||d.offset.click).left,l,k,f.proportions.height,f.proportions.width);case "touch":return(g>=l&&g<=j||i>=l&&i<=j||g<l&&i>j)&&(h>=k&&h<=m||b>=k&&b<=m||h<k&&b>m);
63
- default:return false}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(d,f){var e=a.ui.ddmanager.droppables[d.options.scope]||[],h=f?f.type:null,b=(d.currentItem||d.element).find(":data(droppable)").andSelf(),g=0;a:for(;g<e.length;g++)if(!(e[g].options.disabled||d&&!e[g].accept.call(e[g].element[0],d.currentItem||d.element))){for(var i=0;i<b.length;i++)if(b[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=
64
- e[g].element.offset();e[g].proportions={width:e[g].element[0].offsetWidth,height:e[g].element[0].offsetHeight};h=="mousedown"&&e[g]._activate.call(e[g],f)}}},drop:function(d,f){var e=false;a.each(a.ui.ddmanager.droppables[d.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&a.ui.intersect(d,this,this.options.tolerance))e=e||this._drop.call(this,f);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],d.currentItem||d.element)){this.isout=1;
65
- this.isover=0;this._deactivate.call(this,f)}}});return e},drag:function(d,f){d.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(d,f);a.each(a.ui.ddmanager.droppables[d.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var e=a.ui.intersect(d,this,this.options.tolerance);if(e=!e&&this.isover==1?"isout":e&&this.isover==0?"isover":null){var h;if(this.options.greedy){var b=this.element.parents(":data(droppable):eq(0)");if(b.length){h=a.data(b[0],"droppable");
66
- h.greedyChild=e=="isover"?1:0}}if(h&&e=="isover"){h.isover=0;h.isout=1;h._out.call(h,f)}this[e]=1;this[e=="isout"?"isover":"isout"]=0;this[e=="isover"?"_over":"_out"].call(this,f);if(h&&e=="isout"){h.isout=0;h.isover=1;h._over.call(h,f)}}}})}}})(jQuery);
67
- (function(a){a.widget("ui.resizable",a.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var e=this,h=this.options;this.element.addClass("ui-resizable");a.extend(this,{_aspectRatio:!!h.aspectRatio,aspectRatio:h.aspectRatio,originalElement:this.element,
68
- _proportionallyResizeElements:[],_helper:h.helper||h.ghost||h.animate?h.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&a.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(a('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
69
- 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=
70
- this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=h.handles||(!a(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",
71
- nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var b=this.handles.split(",");this.handles={};for(var g=0;g<b.length;g++){var i=a.trim(b[g]),k=a('<div class="ui-resizable-handle '+("ui-resizable-"+i)+'"></div>');/sw|se|ne|nw/.test(i)&&k.css({zIndex:++h.zIndex});"se"==i&&k.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[i]=".ui-resizable-"+i;this.element.append(k)}}this._renderAxis=function(m){m=m||this.element;for(var l in this.handles){if(this.handles[l].constructor==
72
- String)this.handles[l]=a(this.handles[l],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var j=a(this.handles[l],this.element),n=0;n=/sw|ne|nw|se|n|s/.test(l)?j.outerHeight():j.outerWidth();j=["padding",/ne|nw|n/.test(l)?"Top":/se|sw|s/.test(l)?"Bottom":/^e$/.test(l)?"Right":"Left"].join("");m.css(j,n);this._proportionallyResize()}a(this.handles[l])}};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection();
73
- this._handles.mouseover(function(){if(!e.resizing){if(this.className)var m=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);e.axis=m&&m[1]?m[1]:"se"}});if(h.autoHide){this._handles.hide();a(this.element).addClass("ui-resizable-autohide").hover(function(){a(this).removeClass("ui-resizable-autohide");e._handles.show()},function(){if(!e.resizing){a(this).addClass("ui-resizable-autohide");e._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var e=function(b){a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
74
- if(this.elementIsWrapper){e(this.element);var h=this.element;h.after(this.originalElement.css({position:h.css("position"),width:h.outerWidth(),height:h.outerHeight(),top:h.css("top"),left:h.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);e(this.originalElement);return this},_mouseCapture:function(e){var h=false,b;for(b in this.handles)if(a(this.handles[b])[0]==e.target)h=true;return!this.options.disabled&&h},_mouseStart:function(e){var h=this.options,b=this.element.position(),
75
- g=this.element;this.resizing=true;this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()};if(g.is(".ui-draggable")||/absolute/.test(g.css("position")))g.css({position:"absolute",top:b.top,left:b.left});a.browser.opera&&/relative/.test(g.css("position"))&&g.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();b=d(this.helper.css("left"));var i=d(this.helper.css("top"));if(h.containment){b+=a(h.containment).scrollLeft()||0;i+=a(h.containment).scrollTop()||0}this.offset=
76
- this.helper.offset();this.position={left:b,top:i};this.size=this._helper?{width:g.outerWidth(),height:g.outerHeight()}:{width:g.width(),height:g.height()};this.originalSize=this._helper?{width:g.outerWidth(),height:g.outerHeight()}:{width:g.width(),height:g.height()};this.originalPosition={left:b,top:i};this.sizeDiff={width:g.outerWidth()-g.width(),height:g.outerHeight()-g.height()};this.originalMousePosition={left:e.pageX,top:e.pageY};this.aspectRatio=typeof h.aspectRatio=="number"?h.aspectRatio:
77
- this.originalSize.width/this.originalSize.height||1;h=a(".ui-resizable-"+this.axis).css("cursor");a("body").css("cursor",h=="auto"?this.axis+"-resize":h);g.addClass("ui-resizable-resizing");this._propagate("start",e);return true},_mouseDrag:function(e){var h=this.helper,b=this.originalMousePosition,g=this._change[this.axis];if(!g)return false;b=g.apply(this,[e,e.pageX-b.left||0,e.pageY-b.top||0]);if(this._aspectRatio||e.shiftKey)b=this._updateRatio(b,e);b=this._respectSize(b,e);this._propagate("resize",
78
- e);h.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(b);this._trigger("resize",e,this.ui());return false},_mouseStop:function(e){this.resizing=false;var h=this.options;if(this._helper){var b=this._proportionallyResizeElements,g=b.length&&/textarea/i.test(b[0].nodeName);b=g&&a.ui.hasScroll(b[0],"left")?0:this.sizeDiff.height;
79
- g={width:this.size.width-(g?0:this.sizeDiff.width),height:this.size.height-b};b=parseInt(this.element.css("left"),10)+(this.position.left-this.originalPosition.left)||null;var i=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null;h.animate||this.element.css(a.extend(g,{top:i,left:b}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!h.animate&&this._proportionallyResize()}a("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");
80
- this._propagate("stop",e);this._helper&&this.helper.remove();return false},_updateCache:function(e){this.offset=this.helper.offset();if(f(e.left))this.position.left=e.left;if(f(e.top))this.position.top=e.top;if(f(e.height))this.size.height=e.height;if(f(e.width))this.size.width=e.width},_updateRatio:function(e){var h=this.position,b=this.size,g=this.axis;if(e.height)e.width=b.height*this.aspectRatio;else if(e.width)e.height=b.width/this.aspectRatio;if(g=="sw"){e.left=h.left+(b.width-e.width);e.top=
81
- null}if(g=="nw"){e.top=h.top+(b.height-e.height);e.left=h.left+(b.width-e.width)}return e},_respectSize:function(e){var h=this.options,b=this.axis,g=f(e.width)&&h.maxWidth&&h.maxWidth<e.width,i=f(e.height)&&h.maxHeight&&h.maxHeight<e.height,k=f(e.width)&&h.minWidth&&h.minWidth>e.width,m=f(e.height)&&h.minHeight&&h.minHeight>e.height;if(k)e.width=h.minWidth;if(m)e.height=h.minHeight;if(g)e.width=h.maxWidth;if(i)e.height=h.maxHeight;var l=this.originalPosition.left+this.originalSize.width,j=this.position.top+
82
- this.size.height,n=/sw|nw|w/.test(b);b=/nw|ne|n/.test(b);if(k&&n)e.left=l-h.minWidth;if(g&&n)e.left=l-h.maxWidth;if(m&&b)e.top=j-h.minHeight;if(i&&b)e.top=j-h.maxHeight;if((h=!e.width&&!e.height)&&!e.left&&e.top)e.top=null;else if(h&&!e.top&&e.left)e.left=null;return e},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e=this.helper||this.element,h=0;h<this._proportionallyResizeElements.length;h++){var b=this._proportionallyResizeElements[h];if(!this.borderDif){var g=
83
- [b.css("borderTopWidth"),b.css("borderRightWidth"),b.css("borderBottomWidth"),b.css("borderLeftWidth")],i=[b.css("paddingTop"),b.css("paddingRight"),b.css("paddingBottom"),b.css("paddingLeft")];this.borderDif=a.map(g,function(k,m){var l=parseInt(k,10)||0,j=parseInt(i[m],10)||0;return l+j})}a.browser.msie&&(a(e).is(":hidden")||a(e).parents(":hidden").length)||b.css({height:e.height()-this.borderDif[0]-this.borderDif[2]||0,width:e.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var e=
84
- this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||a('<div style="overflow:hidden;"></div>');var h=a.browser.msie&&a.browser.version<7,b=h?1:0;h=h?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+h,height:this.element.outerHeight()+h,position:"absolute",left:this.elementOffset.left-b+"px",top:this.elementOffset.top-b+"px",zIndex:++e.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(e,
85
- h){return{width:this.originalSize.width+h}},w:function(e,h){return{left:this.originalPosition.left+h,width:this.originalSize.width-h}},n:function(e,h,b){return{top:this.originalPosition.top+b,height:this.originalSize.height-b}},s:function(e,h,b){return{height:this.originalSize.height+b}},se:function(e,h,b){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,h,b]))},sw:function(e,h,b){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,h,
86
- b]))},ne:function(e,h,b){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,h,b]))},nw:function(e,h,b){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,h,b]))}},_propagate:function(e,h){a.ui.plugin.call(this,e,[h,this.ui()]);e!="resize"&&this._trigger(e,h,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,
87
- originalPosition:this.originalPosition}}});a.extend(a.ui.resizable,{version:"1.8.5"});a.ui.plugin.add("resizable","alsoResize",{start:function(){var e=a(this).data("resizable").options,h=function(b){a(b).each(function(){var g=a(this);g.data("resizable-alsoresize",{width:parseInt(g.width(),10),height:parseInt(g.height(),10),left:parseInt(g.css("left"),10),top:parseInt(g.css("top"),10),position:g.css("position")})})};if(typeof e.alsoResize=="object"&&!e.alsoResize.parentNode)if(e.alsoResize.length){e.alsoResize=
88
- e.alsoResize[0];h(e.alsoResize)}else a.each(e.alsoResize,function(b){h(b)});else h(e.alsoResize)},resize:function(e,h){var b=a(this).data("resizable"),g=b.options,i=b.originalSize,k=b.originalPosition,m={height:b.size.height-i.height||0,width:b.size.width-i.width||0,top:b.position.top-k.top||0,left:b.position.left-k.left||0},l=function(j,n){a(j).each(function(){var o=a(this),p=a(this).data("resizable-alsoresize"),q={},r=n&&n.length?n:o.parents(h.originalElement[0]).length?["width","height"]:["width",
89
- "height","top","left"];a.each(r,function(u,s){var v=(p[s]||0)+(m[s]||0);if(v&&v>=0)q[s]=v||null});if(a.browser.opera&&/relative/.test(o.css("position"))){b._revertToRelativePosition=true;o.css({position:"absolute",top:"auto",left:"auto"})}o.css(q)})};typeof g.alsoResize=="object"&&!g.alsoResize.nodeType?a.each(g.alsoResize,function(j,n){l(j,n)}):l(g.alsoResize)},stop:function(){var e=a(this).data("resizable"),h=e.options,b=function(g){a(g).each(function(){var i=a(this);i.css({position:i.data("resizable-alsoresize").position})})};
90
- if(e._revertToRelativePosition){e._revertToRelativePosition=false;typeof h.alsoResize=="object"&&!h.alsoResize.nodeType?a.each(h.alsoResize,function(g){b(g)}):b(h.alsoResize)}a(this).removeData("resizable-alsoresize")}});a.ui.plugin.add("resizable","animate",{stop:function(e){var h=a(this).data("resizable"),b=h.options,g=h._proportionallyResizeElements,i=g.length&&/textarea/i.test(g[0].nodeName),k=i&&a.ui.hasScroll(g[0],"left")?0:h.sizeDiff.height;i={width:h.size.width-(i?0:h.sizeDiff.width),height:h.size.height-
91
- k};k=parseInt(h.element.css("left"),10)+(h.position.left-h.originalPosition.left)||null;var m=parseInt(h.element.css("top"),10)+(h.position.top-h.originalPosition.top)||null;h.element.animate(a.extend(i,m&&k?{top:m,left:k}:{}),{duration:b.animateDuration,easing:b.animateEasing,step:function(){var l={width:parseInt(h.element.css("width"),10),height:parseInt(h.element.css("height"),10),top:parseInt(h.element.css("top"),10),left:parseInt(h.element.css("left"),10)};g&&g.length&&a(g[0]).css({width:l.width,
92
- height:l.height});h._updateCache(l);h._propagate("resize",e)}})}});a.ui.plugin.add("resizable","containment",{start:function(){var e=a(this).data("resizable"),h=e.element,b=e.options.containment;if(h=b instanceof a?b.get(0):/parent/.test(b)?h.parent().get(0):b){e.containerElement=a(h);if(/document/.test(b)||b==document){e.containerOffset={left:0,top:0};e.containerPosition={left:0,top:0};e.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}}else{var g=
93
- a(h),i=[];a(["Top","Right","Left","Bottom"]).each(function(l,j){i[l]=d(g.css("padding"+j))});e.containerOffset=g.offset();e.containerPosition=g.position();e.containerSize={height:g.innerHeight()-i[3],width:g.innerWidth()-i[1]};b=e.containerOffset;var k=e.containerSize.height,m=e.containerSize.width;m=a.ui.hasScroll(h,"left")?h.scrollWidth:m;k=a.ui.hasScroll(h)?h.scrollHeight:k;e.parentData={element:h,left:b.left,top:b.top,width:m,height:k}}}},resize:function(e){var h=a(this).data("resizable"),b=h.options,
94
- g=h.containerOffset,i=h.position;e=h._aspectRatio||e.shiftKey;var k={top:0,left:0},m=h.containerElement;if(m[0]!=document&&/static/.test(m.css("position")))k=g;if(i.left<(h._helper?g.left:0)){h.size.width+=h._helper?h.position.left-g.left:h.position.left-k.left;if(e)h.size.height=h.size.width/b.aspectRatio;h.position.left=b.helper?g.left:0}if(i.top<(h._helper?g.top:0)){h.size.height+=h._helper?h.position.top-g.top:h.position.top;if(e)h.size.width=h.size.height*b.aspectRatio;h.position.top=h._helper?
95
- g.top:0}h.offset.left=h.parentData.left+h.position.left;h.offset.top=h.parentData.top+h.position.top;b=Math.abs((h._helper?h.offset.left-k.left:h.offset.left-k.left)+h.sizeDiff.width);g=Math.abs((h._helper?h.offset.top-k.top:h.offset.top-g.top)+h.sizeDiff.height);i=h.containerElement.get(0)==h.element.parent().get(0);k=/relative|absolute/.test(h.containerElement.css("position"));if(i&&k)b-=h.parentData.left;if(b+h.size.width>=h.parentData.width){h.size.width=h.parentData.width-b;if(e)h.size.height=
96
- h.size.width/h.aspectRatio}if(g+h.size.height>=h.parentData.height){h.size.height=h.parentData.height-g;if(e)h.size.width=h.size.height*h.aspectRatio}},stop:function(){var e=a(this).data("resizable"),h=e.options,b=e.containerOffset,g=e.containerPosition,i=e.containerElement,k=a(e.helper),m=k.offset(),l=k.outerWidth()-e.sizeDiff.width;k=k.outerHeight()-e.sizeDiff.height;e._helper&&!h.animate&&/relative/.test(i.css("position"))&&a(this).css({left:m.left-g.left-b.left,width:l,height:k});e._helper&&!h.animate&&
97
- /static/.test(i.css("position"))&&a(this).css({left:m.left-g.left-b.left,width:l,height:k})}});a.ui.plugin.add("resizable","ghost",{start:function(){var e=a(this).data("resizable"),h=e.options,b=e.size;e.ghost=e.originalElement.clone();e.ghost.css({opacity:0.25,display:"block",position:"relative",height:b.height,width:b.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof h.ghost=="string"?h.ghost:"");e.ghost.appendTo(e.helper)},resize:function(){var e=a(this).data("resizable");
98
- e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=a(this).data("resizable");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}});a.ui.plugin.add("resizable","grid",{resize:function(){var e=a(this).data("resizable"),h=e.options,b=e.size,g=e.originalSize,i=e.originalPosition,k=e.axis;h.grid=typeof h.grid=="number"?[h.grid,h.grid]:h.grid;var m=Math.round((b.width-g.width)/(h.grid[0]||1))*(h.grid[0]||1);h=Math.round((b.height-g.height)/
99
- (h.grid[1]||1))*(h.grid[1]||1);if(/^(se|s|e)$/.test(k)){e.size.width=g.width+m;e.size.height=g.height+h}else if(/^(ne)$/.test(k)){e.size.width=g.width+m;e.size.height=g.height+h;e.position.top=i.top-h}else{if(/^(sw)$/.test(k)){e.size.width=g.width+m;e.size.height=g.height+h}else{e.size.width=g.width+m;e.size.height=g.height+h;e.position.top=i.top-h}e.position.left=i.left-m}}});var d=function(e){return parseInt(e,10)||0},f=function(e){return!isNaN(parseInt(e,10))}})(jQuery);
100
- (function(a){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var d=this;this.element.addClass("ui-selectable");this.dragged=false;var f;this.refresh=function(){f=a(d.options.filter,d.element[0]);f.each(function(){var e=a(this),h=e.offset();a.data(this,"selectable-item",{element:this,$element:e,left:h.left,top:h.top,right:h.left+e.outerWidth(),bottom:h.top+e.outerHeight(),startselected:false,selected:e.hasClass("ui-selected"),
101
- selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})};this.refresh();this.selectees=f.addClass("ui-selectee");this._mouseInit();this.helper=a("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(d){var f=this;this.opos=[d.pageX,
102
- d.pageY];if(!this.options.disabled){var e=this.options;this.selectees=a(e.filter,this.element[0]);this._trigger("start",d);a(e.appendTo).append(this.helper);this.helper.css({left:d.clientX,top:d.clientY,width:0,height:0});e.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var h=a.data(this,"selectable-item");h.startselected=true;if(!d.metaKey){h.$element.removeClass("ui-selected");h.selected=false;h.$element.addClass("ui-unselecting");h.unselecting=true;f._trigger("unselecting",
103
- d,{unselecting:h.element})}});a(d.target).parents().andSelf().each(function(){var h=a.data(this,"selectable-item");if(h){var b=!d.metaKey||!h.$element.hasClass("ui-selected");h.$element.removeClass(b?"ui-unselecting":"ui-selected").addClass(b?"ui-selecting":"ui-unselecting");h.unselecting=!b;h.selecting=b;(h.selected=b)?f._trigger("selecting",d,{selecting:h.element}):f._trigger("unselecting",d,{unselecting:h.element});return false}})}},_mouseDrag:function(d){var f=this;this.dragged=true;if(!this.options.disabled){var e=
104
- this.options,h=this.opos[0],b=this.opos[1],g=d.pageX,i=d.pageY;if(h>g){var k=g;g=h;h=k}if(b>i){k=i;i=b;b=k}this.helper.css({left:h,top:b,width:g-h,height:i-b});this.selectees.each(function(){var m=a.data(this,"selectable-item");if(!(!m||m.element==f.element[0])){var l=false;if(e.tolerance=="touch")l=!(m.left>g||m.right<h||m.top>i||m.bottom<b);else if(e.tolerance=="fit")l=m.left>h&&m.right<g&&m.top>b&&m.bottom<i;if(l){if(m.selected){m.$element.removeClass("ui-selected");m.selected=false}if(m.unselecting){m.$element.removeClass("ui-unselecting");
105
- m.unselecting=false}if(!m.selecting){m.$element.addClass("ui-selecting");m.selecting=true;f._trigger("selecting",d,{selecting:m.element})}}else{if(m.selecting)if(d.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}f._trigger("unselecting",d,{unselecting:m.element})}if(m.selected)if(!d.metaKey&&
106
- !m.startselected){m.$element.removeClass("ui-selected");m.selected=false;m.$element.addClass("ui-unselecting");m.unselecting=true;f._trigger("unselecting",d,{unselecting:m.element})}}}});return false}},_mouseStop:function(d){var f=this;this.dragged=false;a(".ui-unselecting",this.element[0]).each(function(){var e=a.data(this,"selectable-item");e.$element.removeClass("ui-unselecting");e.unselecting=false;e.startselected=false;f._trigger("unselected",d,{unselected:e.element})});a(".ui-selecting",this.element[0]).each(function(){var e=
107
- a.data(this,"selectable-item");e.$element.removeClass("ui-selecting").addClass("ui-selected");e.selecting=false;e.selected=true;e.startselected=true;f._trigger("selected",d,{selected:e.element})});this._trigger("stop",d);this.helper.remove();return false}});a.extend(a.ui.selectable,{version:"1.8.5"})})(jQuery);
108
- (function(a){a.widget("ui.sortable",a.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");
109
- 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 d=this.items.length-1;d>=0;d--)this.items[d].item.removeData("sortable-item");return this},_setOption:function(d,f){if(d==="disabled"){this.options[d]=f;this.widget()[f?"addClass":"removeClass"]("ui-sortable-disabled")}else a.Widget.prototype._setOption.apply(this,
110
- arguments)},_mouseCapture:function(d,f){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(d);var e=null,h=this;a(d.target).parents().each(function(){if(a.data(this,"sortable-item")==h){e=a(this);return false}});if(a.data(d.target,"sortable-item")==h)e=a(d.target);if(!e)return false;if(this.options.handle&&!f){var b=false;a(this.options.handle,e).find("*").andSelf().each(function(){if(this==d.target)b=true});if(!b)return false}this.currentItem=
111
- e;this._removeCurrentsFromItems();return true},_mouseStart:function(d,f,e){f=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(d);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");a.extend(this.offset,
112
- {click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();f.containment&&this._setContainment();
113
- if(f.cursor){if(a("body").css("cursor"))this._storedCursor=a("body").css("cursor");a("body").css("cursor",f.cursor)}if(f.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",f.opacity)}if(f.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",f.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",
114
- d,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!e)for(e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("activate",d,this._uiHash(this));if(a.ui.ddmanager)a.ui.ddmanager.current=this;a.ui.ddmanager&&!f.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,d);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(d);return true},_mouseDrag:function(d){this.position=this._generatePosition(d);this.positionAbs=this._convertPositionTo("absolute");
115
- if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var f=this.options,e=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-d.pageY<f.scrollSensitivity)this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop+f.scrollSpeed;else if(d.pageY-this.overflowOffset.top<f.scrollSensitivity)this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop-f.scrollSpeed;if(this.overflowOffset.left+
116
- this.scrollParent[0].offsetWidth-d.pageX<f.scrollSensitivity)this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft+f.scrollSpeed;else if(d.pageX-this.overflowOffset.left<f.scrollSensitivity)this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft-f.scrollSpeed}else{if(d.pageY-a(document).scrollTop()<f.scrollSensitivity)e=a(document).scrollTop(a(document).scrollTop()-f.scrollSpeed);else if(a(window).height()-(d.pageY-a(document).scrollTop())<f.scrollSensitivity)e=a(document).scrollTop(a(document).scrollTop()+
117
- f.scrollSpeed);if(d.pageX-a(document).scrollLeft()<f.scrollSensitivity)e=a(document).scrollLeft(a(document).scrollLeft()-f.scrollSpeed);else if(a(window).width()-(d.pageX-a(document).scrollLeft())<f.scrollSensitivity)e=a(document).scrollLeft(a(document).scrollLeft()+f.scrollSpeed)}e!==false&&a.ui.ddmanager&&!f.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,d)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+
118
- "px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(f=this.items.length-1;f>=0;f--){e=this.items[f];var h=e.item[0],b=this._intersectsWithPointer(e);if(b)if(h!=this.currentItem[0]&&this.placeholder[b==1?"next":"prev"]()[0]!=h&&!a.ui.contains(this.placeholder[0],h)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],h):true)){this.direction=b==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(e))this._rearrange(d,
119
- e);else break;this._trigger("change",d,this._uiHash());break}}this._contactContainers(d);a.ui.ddmanager&&a.ui.ddmanager.drag(this,d);this._trigger("sort",d,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(d,f){if(d){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,d);if(this.options.revert){var e=this,h=e.placeholder.offset();e.reverting=true;a(this.helper).animate({left:h.left-this.offset.parent.left-e.margins.left+(this.offsetParent[0]==
120
- document.body?0:this.offsetParent[0].scrollLeft),top:h.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(d)})}else this._clear(d,f);return false}},cancel:function(){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",
121
- null,this._uiHash(this));if(this.containers[d].containerCache.over){this.containers[d]._trigger("out",null,this._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();a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):
122
- a(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(d){var f=this._getItemsAsjQuery(d&&d.connected),e=[];d=d||{};a(f).each(function(){var h=(a(d.item||this).attr(d.attribute||"id")||"").match(d.expression||/(.+)[-=_](.+)/);if(h)e.push((d.key||h[1]+"[]")+"="+(d.key&&d.expression?h[1]:h[2]))});!e.length&&d.key&&e.push(d.key+"=");return e.join("&")},toArray:function(d){var f=this._getItemsAsjQuery(d&&d.connected),e=[];d=d||{};f.each(function(){e.push(a(d.item||this).attr(d.attribute||
123
- "id")||"")});return e},_intersectsWith:function(d){var f=this.positionAbs.left,e=f+this.helperProportions.width,h=this.positionAbs.top,b=h+this.helperProportions.height,g=d.left,i=g+d.width,k=d.top,m=k+d.height,l=this.offset.click.top,j=this.offset.click.left;l=h+l>k&&h+l<m&&f+j>g&&f+j<i;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>d[this.floating?"width":"height"]?l:g<f+
124
- this.helperProportions.width/2&&e-this.helperProportions.width/2<i&&k<h+this.helperProportions.height/2&&b-this.helperProportions.height/2<m},_intersectsWithPointer:function(d){var f=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top,d.height);d=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left,d.width);f=f&&d;d=this._getDragVerticalDirection();var e=this._getDragHorizontalDirection();if(!f)return false;return this.floating?e&&e=="right"||d=="down"?2:1:d&&(d=="down"?
125
- 2:1)},_intersectsWithSides:function(d){var f=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top+d.height/2,d.height);d=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left+d.width/2,d.width);var e=this._getDragVerticalDirection(),h=this._getDragHorizontalDirection();return this.floating&&h?h=="right"&&d||h=="left"&&!d:e&&(e=="down"&&f||e=="up"&&!f)},_getDragVerticalDirection:function(){var d=this.positionAbs.top-this.lastPositionAbs.top;return d!=0&&(d>0?"down":"up")},
126
- _getDragHorizontalDirection:function(){var d=this.positionAbs.left-this.lastPositionAbs.left;return d!=0&&(d>0?"right":"left")},refresh:function(d){this._refreshItems(d);this.refreshPositions();return this},_connectWith:function(){var d=this.options;return d.connectWith.constructor==String?[d.connectWith]:d.connectWith},_getItemsAsjQuery:function(d){var f=[],e=[],h=this._connectWith();if(h&&d)for(d=h.length-1;d>=0;d--)for(var b=a(h[d]),g=b.length-1;g>=0;g--){var i=a.data(b[g],"sortable");if(i&&i!=
127
- this&&!i.options.disabled)e.push([a.isFunction(i.options.items)?i.options.items.call(i.element):a(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i])}e.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(d=e.length-1;d>=0;d--)e[d][0].each(function(){f.push(this)});return a(f)},_removeCurrentsFromItems:function(){for(var d=
128
- this.currentItem.find(":data(sortable-item)"),f=0;f<this.items.length;f++)for(var e=0;e<d.length;e++)d[e]==this.items[f].item[0]&&this.items.splice(f,1)},_refreshItems:function(d){this.items=[];this.containers=[this];var f=this.items,e=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],d,{item:this.currentItem}):a(this.options.items,this.element),this]],h=this._connectWith();if(h)for(var b=h.length-1;b>=0;b--)for(var g=a(h[b]),i=g.length-1;i>=0;i--){var k=a.data(g[i],"sortable");
129
- if(k&&k!=this&&!k.options.disabled){e.push([a.isFunction(k.options.items)?k.options.items.call(k.element[0],d,{item:this.currentItem}):a(k.options.items,k.element),k]);this.containers.push(k)}}for(b=e.length-1;b>=0;b--){d=e[b][1];h=e[b][0];i=0;for(g=h.length;i<g;i++){k=a(h[i]);k.data("sortable-item",d);f.push({item:k,instance:d,width:0,height:0,left:0,top:0})}}},refreshPositions:function(d){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var f=this.items.length-1;f>=
130
- 0;f--){var e=this.items[f],h=this.options.toleranceElement?a(this.options.toleranceElement,e.item):e.item;if(!d){e.width=h.outerWidth();e.height=h.outerHeight()}h=h.offset();e.left=h.left;e.top=h.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(f=this.containers.length-1;f>=0;f--){h=this.containers[f].element.offset();this.containers[f].containerCache.left=h.left;this.containers[f].containerCache.top=h.top;this.containers[f].containerCache.width=
131
- this.containers[f].element.outerWidth();this.containers[f].containerCache.height=this.containers[f].element.outerHeight()}return this},_createPlaceholder:function(d){var f=d||this,e=f.options;if(!e.placeholder||e.placeholder.constructor==String){var h=e.placeholder;e.placeholder={element:function(){var b=a(document.createElement(f.currentItem[0].nodeName)).addClass(h||f.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!h)b.style.visibility="hidden";return b},
132
- update:function(b,g){if(!(h&&!e.forcePlaceholderSize)){g.height()||g.height(f.currentItem.innerHeight()-parseInt(f.currentItem.css("paddingTop")||0,10)-parseInt(f.currentItem.css("paddingBottom")||0,10));g.width()||g.width(f.currentItem.innerWidth()-parseInt(f.currentItem.css("paddingLeft")||0,10)-parseInt(f.currentItem.css("paddingRight")||0,10))}}}}f.placeholder=a(e.placeholder.element.call(f.element,f.currentItem));f.currentItem.after(f.placeholder);e.placeholder.update(f,f.placeholder)},_contactContainers:function(d){for(var f=
133
- null,e=null,h=this.containers.length-1;h>=0;h--)if(!a.ui.contains(this.currentItem[0],this.containers[h].element[0]))if(this._intersectsWith(this.containers[h].containerCache)){if(!(f&&a.ui.contains(this.containers[h].element[0],f.element[0]))){f=this.containers[h];e=h}}else if(this.containers[h].containerCache.over){this.containers[h]._trigger("out",d,this._uiHash(this));this.containers[h].containerCache.over=0}if(f)if(this.containers.length===1){this.containers[e]._trigger("over",d,this._uiHash(this));
134
- this.containers[e].containerCache.over=1}else if(this.currentContainer!=this.containers[e]){f=1E4;h=null;for(var b=this.positionAbs[this.containers[e].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(a.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-b)<f){f=Math.abs(i-b);h=this.items[g]}}if(h||this.options.dropOnEmpty){this.currentContainer=this.containers[e];h?this._rearrange(d,h,null,true):this._rearrange(d,
135
- null,this.containers[e].element,true);this._trigger("change",d,this._uiHash());this.containers[e]._trigger("change",d,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[e]._trigger("over",d,this._uiHash(this));this.containers[e].containerCache.over=1}}},_createHelper:function(d){var f=this.options;d=a.isFunction(f.helper)?a(f.helper.apply(this.element[0],[d,this.currentItem])):f.helper=="clone"?this.currentItem.clone():this.currentItem;d.parents("body").length||
136
- a(f.appendTo!="parent"?f.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]);if(d[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(d[0].style.width==""||f.forceHelperSize)d.width(this.currentItem.width());if(d[0].style.height==""||f.forceHelperSize)d.height(this.currentItem.height());return d},_adjustOffsetFromHelper:function(d){if(typeof d==
137
- "string")d=d.split(" ");if(a.isArray(d))d={left:+d[0],top:+d[1]||0};if("left"in d)this.offset.click.left=d.left+this.margins.left;if("right"in d)this.offset.click.left=this.helperProportions.width-d.right+this.margins.left;if("top"in d)this.offset.click.top=d.top+this.margins.top;if("bottom"in d)this.offset.click.top=this.helperProportions.height-d.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var d=this.offsetParent.offset();if(this.cssPosition==
138
- "absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){d.left+=this.scrollParent.scrollLeft();d.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)d={top:0,left:0};return{top:d.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:d.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==
139
- "relative"){var d=this.currentItem.position();return{top:d.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:d.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()}},
140
- _setContainment:function(){var d=this.options;if(d.containment=="parent")d.containment=this.helper[0].parentNode;if(d.containment=="document"||d.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(d.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(d.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-
141
- this.margins.top];if(!/^(document|window|parent)$/.test(d.containment)){var f=a(d.containment)[0];d=a(d.containment).offset();var e=a(f).css("overflow")!="hidden";this.containment=[d.left+(parseInt(a(f).css("borderLeftWidth"),10)||0)+(parseInt(a(f).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(f).css("borderTopWidth"),10)||0)+(parseInt(a(f).css("paddingTop"),10)||0)-this.margins.top,d.left+(e?Math.max(f.scrollWidth,f.offsetWidth):f.offsetWidth)-(parseInt(a(f).css("borderLeftWidth"),
142
- 10)||0)-(parseInt(a(f).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(e?Math.max(f.scrollHeight,f.offsetHeight):f.offsetHeight)-(parseInt(a(f).css("borderTopWidth"),10)||0)-(parseInt(a(f).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(d,f){if(!f)f=this.position;var e=d=="absolute"?1:-1,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?
143
- this.offsetParent:this.scrollParent,b=/(html|body)/i.test(h[0].tagName);return{top:f.top+this.offset.relative.top*e+this.offset.parent.top*e-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():b?0:h.scrollTop())*e),left:f.left+this.offset.relative.left*e+this.offset.parent.left*e-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():b?0:h.scrollLeft())*e)}},_generatePosition:function(d){var f=
144
- this.options,e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(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 b=d.pageX,g=d.pageY;if(this.originalPosition){if(this.containment){if(d.pageX-this.offset.click.left<this.containment[0])b=this.containment[0]+
145
- this.offset.click.left;if(d.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(d.pageX-this.offset.click.left>this.containment[2])b=this.containment[2]+this.offset.click.left;if(d.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(f.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/f.grid[1])*f.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?
146
- g:!(g-this.offset.click.top<this.containment[1])?g-f.grid[1]:g+f.grid[1]:g;b=this.originalPageX+Math.round((b-this.originalPageX)/f.grid[0])*f.grid[0];b=this.containment?!(b-this.offset.click.left<this.containment[0]||b-this.offset.click.left>this.containment[2])?b:!(b-this.offset.click.left<this.containment[0])?b-f.grid[0]:b+f.grid[0]:b}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():
147
- h?0:e.scrollTop()),left:b-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:e.scrollLeft())}},_rearrange:function(d,f,e,h){e?e[0].appendChild(this.placeholder[0]):f.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?f.item[0]:f.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var b=this,g=this.counter;window.setTimeout(function(){g==
148
- b.counter&&b.refreshPositions(!h)},0)},_clear:function(d,f){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 h in this._storedCSS)if(this._storedCSS[h]=="auto"||this._storedCSS[h]=="static")this._storedCSS[h]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!f&&e.push(function(b){this._trigger("receive",
149
- b,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!f)e.push(function(b){this._trigger("update",b,this._uiHash())});if(!a.ui.contains(this.element[0],this.currentItem[0])){f||e.push(function(b){this._trigger("remove",b,this._uiHash())});for(h=this.containers.length-1;h>=0;h--)if(a.ui.contains(this.containers[h].element[0],this.currentItem[0])&&!f){e.push(function(b){return function(g){b._trigger("receive",
150
- g,this._uiHash(this))}}.call(this,this.containers[h]));e.push(function(b){return function(g){b._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[h]))}}for(h=this.containers.length-1;h>=0;h--){f||e.push(function(b){return function(g){b._trigger("deactivate",g,this._uiHash(this))}}.call(this,this.containers[h]));if(this.containers[h].containerCache.over){e.push(function(b){return function(g){b._trigger("out",g,this._uiHash(this))}}.call(this,this.containers[h]));this.containers[h].containerCache.over=
151
- 0}}this._storedCursor&&a("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!f){this._trigger("beforeStop",d,this._uiHash());for(h=0;h<e.length;h++)e[h].call(this,d);this._trigger("stop",d,this._uiHash())}return false}f||this._trigger("beforeStop",d,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
152
- this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!f){for(h=0;h<e.length;h++)e[h].call(this,d);this._trigger("stop",d,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(d){var f=d||this;return{helper:f.helper,placeholder:f.placeholder||a([]),position:f.position,originalPosition:f.originalPosition,offset:f.positionAbs,item:f.currentItem,sender:d?d.element:null}}});
153
- a.extend(a.ui.sortable,{version:"1.8.5"})})(jQuery);
154
- jQuery.effects||function(a,d){function f(l){var j;if(l&&l.constructor==Array&&l.length==3)return l;if(j=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(l))return[parseInt(j[1],10),parseInt(j[2],10),parseInt(j[3],10)];if(j=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(l))return[parseFloat(j[1])*2.55,parseFloat(j[2])*2.55,parseFloat(j[3])*2.55];if(j=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(l))return[parseInt(j[1],16),
155
- parseInt(j[2],16),parseInt(j[3],16)];if(j=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(l))return[parseInt(j[1]+j[1],16),parseInt(j[2]+j[2],16),parseInt(j[3]+j[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(l))return i.transparent;return i[a.trim(l).toLowerCase()]}function e(){var l=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,j={},n,o;if(l&&l.length&&l[0]&&l[l[0]])for(var p=l.length;p--;){n=l[p];if(typeof l[n]=="string"){o=n.replace(/\-(\w)/g,function(q,r){return r.toUpperCase()});
156
- j[o]=l[n]}}else for(n in l)if(typeof l[n]==="string")j[n]=l[n];return j}function h(l){var j,n;for(j in l){n=l[j];if(n==null||a.isFunction(n)||j in m||/scrollbar/.test(j)||!/color/i.test(j)&&isNaN(parseFloat(n)))delete l[j]}return l}function b(l,j){var n={_:0},o;for(o in j)if(l[o]!=j[o])n[o]=j[o];return n}function g(l,j,n,o){if(typeof l=="object"){o=j;n=null;j=l;l=j.effect}if(a.isFunction(j)){o=j;n=null;j={}}if(typeof j=="number"||a.fx.speeds[j]){o=n;n=j;j={}}if(a.isFunction(n)){o=n;n=null}j=j||{};
157
- n=n||j.duration;n=a.fx.off?0:typeof n=="number"?n:a.fx.speeds[n]||a.fx.speeds._default;o=o||j.complete;return[l,j,n,o]}a.effects={};a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(l,j){a.fx.step[j]=function(n){if(!n.colorInit){var o;o=n.elem;var p=j,q;do{q=a.curCSS(o,p);if(q!=""&&q!="transparent"||a.nodeName(o,"body"))break;p="backgroundColor"}while(o=o.parentNode);o=f(q);n.start=o;n.end=f(n.end);n.colorInit=true}n.elem.style[j]=
158
- "rgb("+Math.max(Math.min(parseInt(n.pos*(n.end[0]-n.start[0])+n.start[0],10),255),0)+","+Math.max(Math.min(parseInt(n.pos*(n.end[1]-n.start[1])+n.start[1],10),255),0)+","+Math.max(Math.min(parseInt(n.pos*(n.end[2]-n.start[2])+n.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,183,107],darkmagenta:[139,
159
- 0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,
160
- 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]},k=["add","remove","toggle"],m={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.effects.animateClass=function(l,j,n,o){if(a.isFunction(n)){o=n;n=null}return this.each(function(){var p=a(this),q=p.attr("style")||" ",r=h(e.call(this)),u,s=p.attr("className");a.each(k,function(v,w){l[w]&&p[w+"Class"](l[w])});
161
- u=h(e.call(this));p.attr("className",s);p.animate(b(r,u),j,n,function(){a.each(k,function(v,w){l[w]&&p[w+"Class"](l[w])});if(typeof p.attr("style")=="object"){p.attr("style").cssText="";p.attr("style").cssText=q}else p.attr("style",q);o&&o.apply(this,arguments)})})};a.fn.extend({_addClass:a.fn.addClass,addClass:function(l,j,n,o){return j?a.effects.animateClass.apply(this,[{add:l},j,n,o]):this._addClass(l)},_removeClass:a.fn.removeClass,removeClass:function(l,j,n,o){return j?a.effects.animateClass.apply(this,
162
- [{remove:l},j,n,o]):this._removeClass(l)},_toggleClass:a.fn.toggleClass,toggleClass:function(l,j,n,o,p){return typeof j=="boolean"||j===d?n?a.effects.animateClass.apply(this,[j?{add:l}:{remove:l},n,o,p]):this._toggleClass(l,j):a.effects.animateClass.apply(this,[{toggle:l},j,n,o])},switchClass:function(l,j,n,o,p){return a.effects.animateClass.apply(this,[{add:j,remove:l},n,o,p])}});a.extend(a.effects,{version:"1.8.5",save:function(l,j){for(var n=0;n<j.length;n++)j[n]!==null&&l.data("ec.storage."+j[n],
163
- l[0].style[j[n]])},restore:function(l,j){for(var n=0;n<j.length;n++)j[n]!==null&&l.css(j[n],l.data("ec.storage."+j[n]))},setMode:function(l,j){if(j=="toggle")j=l.is(":hidden")?"show":"hide";return j},getBaseline:function(l,j){var n,o;switch(l[0]){case "top":n=0;break;case "middle":n=0.5;break;case "bottom":n=1;break;default:n=l[0]/j.height}switch(l[1]){case "left":o=0;break;case "center":o=0.5;break;case "right":o=1;break;default:o=l[1]/j.width}return{x:o,y:n}},createWrapper:function(l){if(l.parent().is(".ui-effects-wrapper"))return l.parent();
164
- var j={width:l.outerWidth(true),height:l.outerHeight(true),"float":l.css("float")},n=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});l.wrap(n);n=l.parent();if(l.css("position")=="static"){n.css({position:"relative"});l.css({position:"relative"})}else{a.extend(j,{position:l.css("position"),zIndex:l.css("z-index")});a.each(["top","left","bottom","right"],function(o,p){j[p]=l.css(p);if(isNaN(parseInt(j[p],10)))j[p]="auto"});
165
- l.css({position:"relative",top:0,left:0})}return n.css(j).show()},removeWrapper:function(l){if(l.parent().is(".ui-effects-wrapper"))return l.parent().replaceWith(l);return l},setTransition:function(l,j,n,o){o=o||{};a.each(j,function(p,q){unit=l.cssUnit(q);if(unit[0]>0)o[q]=unit[0]*n+unit[1]});return o}});a.fn.extend({effect:function(l){var j=g.apply(this,arguments);j={options:j[1],duration:j[2],callback:j[3]};var n=a.effects[l];return n&&!a.fx.off?n.call(this,j):this},_show:a.fn.show,show:function(l){if(!l||
166
- typeof l=="number"||a.fx.speeds[l]||!a.effects[l])return this._show.apply(this,arguments);else{var j=g.apply(this,arguments);j[1].mode="show";return this.effect.apply(this,j)}},_hide:a.fn.hide,hide:function(l){if(!l||typeof l=="number"||a.fx.speeds[l]||!a.effects[l])return this._hide.apply(this,arguments);else{var j=g.apply(this,arguments);j[1].mode="hide";return this.effect.apply(this,j)}},__toggle:a.fn.toggle,toggle:function(l){if(!l||typeof l=="number"||a.fx.speeds[l]||!a.effects[l]||typeof l==
167
- "boolean"||a.isFunction(l))return this.__toggle.apply(this,arguments);else{var j=g.apply(this,arguments);j[1].mode="toggle";return this.effect.apply(this,j)}},cssUnit:function(l){var j=this.css(l),n=[];a.each(["em","px","%","pt"],function(o,p){if(j.indexOf(p)>0)n=[parseFloat(j),p]});return n}});a.easing.jswing=a.easing.swing;a.extend(a.easing,{def:"easeOutQuad",swing:function(l,j,n,o,p){return a.easing[a.easing.def](l,j,n,o,p)},easeInQuad:function(l,j,n,o,p){return o*(j/=p)*j+n},easeOutQuad:function(l,
168
- j,n,o,p){return-o*(j/=p)*(j-2)+n},easeInOutQuad:function(l,j,n,o,p){if((j/=p/2)<1)return o/2*j*j+n;return-o/2*(--j*(j-2)-1)+n},easeInCubic:function(l,j,n,o,p){return o*(j/=p)*j*j+n},easeOutCubic:function(l,j,n,o,p){return o*((j=j/p-1)*j*j+1)+n},easeInOutCubic:function(l,j,n,o,p){if((j/=p/2)<1)return o/2*j*j*j+n;return o/2*((j-=2)*j*j+2)+n},easeInQuart:function(l,j,n,o,p){return o*(j/=p)*j*j*j+n},easeOutQuart:function(l,j,n,o,p){return-o*((j=j/p-1)*j*j*j-1)+n},easeInOutQuart:function(l,j,n,o,p){if((j/=
169
- p/2)<1)return o/2*j*j*j*j+n;return-o/2*((j-=2)*j*j*j-2)+n},easeInQuint:function(l,j,n,o,p){return o*(j/=p)*j*j*j*j+n},easeOutQuint:function(l,j,n,o,p){return o*((j=j/p-1)*j*j*j*j+1)+n},easeInOutQuint:function(l,j,n,o,p){if((j/=p/2)<1)return o/2*j*j*j*j*j+n;return o/2*((j-=2)*j*j*j*j+2)+n},easeInSine:function(l,j,n,o,p){return-o*Math.cos(j/p*(Math.PI/2))+o+n},easeOutSine:function(l,j,n,o,p){return o*Math.sin(j/p*(Math.PI/2))+n},easeInOutSine:function(l,j,n,o,p){return-o/2*(Math.cos(Math.PI*j/p)-1)+
170
- n},easeInExpo:function(l,j,n,o,p){return j==0?n:o*Math.pow(2,10*(j/p-1))+n},easeOutExpo:function(l,j,n,o,p){return j==p?n+o:o*(-Math.pow(2,-10*j/p)+1)+n},easeInOutExpo:function(l,j,n,o,p){if(j==0)return n;if(j==p)return n+o;if((j/=p/2)<1)return o/2*Math.pow(2,10*(j-1))+n;return o/2*(-Math.pow(2,-10*--j)+2)+n},easeInCirc:function(l,j,n,o,p){return-o*(Math.sqrt(1-(j/=p)*j)-1)+n},easeOutCirc:function(l,j,n,o,p){return o*Math.sqrt(1-(j=j/p-1)*j)+n},easeInOutCirc:function(l,j,n,o,p){if((j/=p/2)<1)return-o/
171
- 2*(Math.sqrt(1-j*j)-1)+n;return o/2*(Math.sqrt(1-(j-=2)*j)+1)+n},easeInElastic:function(l,j,n,o,p){l=1.70158;var q=0,r=o;if(j==0)return n;if((j/=p)==1)return n+o;q||(q=p*0.3);if(r<Math.abs(o)){r=o;l=q/4}else l=q/(2*Math.PI)*Math.asin(o/r);return-(r*Math.pow(2,10*(j-=1))*Math.sin((j*p-l)*2*Math.PI/q))+n},easeOutElastic:function(l,j,n,o,p){l=1.70158;var q=0,r=o;if(j==0)return n;if((j/=p)==1)return n+o;q||(q=p*0.3);if(r<Math.abs(o)){r=o;l=q/4}else l=q/(2*Math.PI)*Math.asin(o/r);return r*Math.pow(2,-10*
172
- j)*Math.sin((j*p-l)*2*Math.PI/q)+o+n},easeInOutElastic:function(l,j,n,o,p){l=1.70158;var q=0,r=o;if(j==0)return n;if((j/=p/2)==2)return n+o;q||(q=p*0.3*1.5);if(r<Math.abs(o)){r=o;l=q/4}else l=q/(2*Math.PI)*Math.asin(o/r);if(j<1)return-0.5*r*Math.pow(2,10*(j-=1))*Math.sin((j*p-l)*2*Math.PI/q)+n;return r*Math.pow(2,-10*(j-=1))*Math.sin((j*p-l)*2*Math.PI/q)*0.5+o+n},easeInBack:function(l,j,n,o,p,q){if(q==d)q=1.70158;return o*(j/=p)*j*((q+1)*j-q)+n},easeOutBack:function(l,j,n,o,p,q){if(q==d)q=1.70158;
173
- return o*((j=j/p-1)*j*((q+1)*j+q)+1)+n},easeInOutBack:function(l,j,n,o,p,q){if(q==d)q=1.70158;if((j/=p/2)<1)return o/2*j*j*(((q*=1.525)+1)*j-q)+n;return o/2*((j-=2)*j*(((q*=1.525)+1)*j+q)+2)+n},easeInBounce:function(l,j,n,o,p){return o-a.easing.easeOutBounce(l,p-j,0,o,p)+n},easeOutBounce:function(l,j,n,o,p){return(j/=p)<1/2.75?o*7.5625*j*j+n:j<2/2.75?o*(7.5625*(j-=1.5/2.75)*j+0.75)+n:j<2.5/2.75?o*(7.5625*(j-=2.25/2.75)*j+0.9375)+n:o*(7.5625*(j-=2.625/2.75)*j+0.984375)+n},easeInOutBounce:function(l,
174
- j,n,o,p){if(j<p/2)return a.easing.easeInBounce(l,j*2,0,o,p)*0.5+n;return a.easing.easeOutBounce(l,j*2-p,0,o,p)*0.5+o*0.5+n}})}(jQuery);
175
- (function(a){a.effects.blind=function(d){return this.queue(function(){var f=a(this),e=["position","top","left"],h=a.effects.setMode(f,d.options.mode||"hide"),b=d.options.direction||"vertical";a.effects.save(f,e);f.show();var g=a.effects.createWrapper(f).css({overflow:"hidden"}),i=b=="vertical"?"height":"width";b=b=="vertical"?g.height():g.width();h=="show"&&g.css(i,0);var k={};k[i]=h=="show"?b:0;g.animate(k,d.duration,d.options.easing,function(){h=="hide"&&f.hide();a.effects.restore(f,e);a.effects.removeWrapper(f);
176
- d.callback&&d.callback.apply(f[0],arguments);f.dequeue()})})}})(jQuery);
177
- (function(a){a.effects.bounce=function(d){return this.queue(function(){var f=a(this),e=["position","top","left"],h=a.effects.setMode(f,d.options.mode||"effect"),b=d.options.direction||"up",g=d.options.distance||20,i=d.options.times||5,k=d.duration||250;/show|hide/.test(h)&&e.push("opacity");a.effects.save(f,e);f.show();a.effects.createWrapper(f);var m=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";g=d.options.distance||(m=="top"?f.outerHeight({margin:true})/3:f.outerWidth({margin:true})/
178
- 3);if(h=="show")f.css("opacity",0).css(m,b=="pos"?-g:g);if(h=="hide")g/=i*2;h!="hide"&&i--;if(h=="show"){var l={opacity:1};l[m]=(b=="pos"?"+=":"-=")+g;f.animate(l,k/2,d.options.easing);g/=2;i--}for(l=0;l<i;l++){var j={},n={};j[m]=(b=="pos"?"-=":"+=")+g;n[m]=(b=="pos"?"+=":"-=")+g;f.animate(j,k/2,d.options.easing).animate(n,k/2,d.options.easing);g=h=="hide"?g*2:g/2}if(h=="hide"){l={opacity:0};l[m]=(b=="pos"?"-=":"+=")+g;f.animate(l,k/2,d.options.easing,function(){f.hide();a.effects.restore(f,e);a.effects.removeWrapper(f);
179
- d.callback&&d.callback.apply(this,arguments)})}else{j={};n={};j[m]=(b=="pos"?"-=":"+=")+g;n[m]=(b=="pos"?"+=":"-=")+g;f.animate(j,k/2,d.options.easing).animate(n,k/2,d.options.easing,function(){a.effects.restore(f,e);a.effects.removeWrapper(f);d.callback&&d.callback.apply(this,arguments)})}f.queue("fx",function(){f.dequeue()});f.dequeue()})}})(jQuery);
180
- (function(a){a.effects.clip=function(d){return this.queue(function(){var f=a(this),e=["position","top","left","height","width"],h=a.effects.setMode(f,d.options.mode||"hide"),b=d.options.direction||"vertical";a.effects.save(f,e);f.show();var g=a.effects.createWrapper(f).css({overflow:"hidden"});g=f[0].tagName=="IMG"?g:f;var i={size:b=="vertical"?"height":"width",position:b=="vertical"?"top":"left"};b=b=="vertical"?g.height():g.width();if(h=="show"){g.css(i.size,0);g.css(i.position,b/2)}var k={};k[i.size]=
181
- h=="show"?b:0;k[i.position]=h=="show"?0:b/2;g.animate(k,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){h=="hide"&&f.hide();a.effects.restore(f,e);a.effects.removeWrapper(f);d.callback&&d.callback.apply(f[0],arguments);f.dequeue()}})})}})(jQuery);
182
- (function(a){a.effects.drop=function(d){return this.queue(function(){var f=a(this),e=["position","top","left","opacity"],h=a.effects.setMode(f,d.options.mode||"hide"),b=d.options.direction||"left";a.effects.save(f,e);f.show();a.effects.createWrapper(f);var g=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var i=d.options.distance||(g=="top"?f.outerHeight({margin:true})/2:f.outerWidth({margin:true})/2);if(h=="show")f.css("opacity",0).css(g,b=="pos"?-i:i);var k={opacity:h=="show"?1:
183
- 0};k[g]=(h=="show"?b=="pos"?"+=":"-=":b=="pos"?"-=":"+=")+i;f.animate(k,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){h=="hide"&&f.hide();a.effects.restore(f,e);a.effects.removeWrapper(f);d.callback&&d.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
184
- (function(a){a.effects.explode=function(d){return this.queue(function(){var f=d.options.pieces?Math.round(Math.sqrt(d.options.pieces)):3,e=d.options.pieces?Math.round(Math.sqrt(d.options.pieces)):3;d.options.mode=d.options.mode=="toggle"?a(this).is(":visible")?"hide":"show":d.options.mode;var h=a(this).show().css("visibility","hidden"),b=h.offset();b.top-=parseInt(h.css("marginTop"),10)||0;b.left-=parseInt(h.css("marginLeft"),10)||0;for(var g=h.outerWidth(true),i=h.outerHeight(true),k=0;k<f;k++)for(var m=
185
- 0;m<e;m++)h.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-m*(g/e),top:-k*(i/f)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g/e,height:i/f,left:b.left+m*(g/e)+(d.options.mode=="show"?(m-Math.floor(e/2))*(g/e):0),top:b.top+k*(i/f)+(d.options.mode=="show"?(k-Math.floor(f/2))*(i/f):0),opacity:d.options.mode=="show"?0:1}).animate({left:b.left+m*(g/e)+(d.options.mode=="show"?0:(m-Math.floor(e/2))*(g/e)),top:b.top+
186
- k*(i/f)+(d.options.mode=="show"?0:(k-Math.floor(f/2))*(i/f)),opacity:d.options.mode=="show"?1:0},d.duration||500);setTimeout(function(){d.options.mode=="show"?h.css({visibility:"visible"}):h.css({visibility:"visible"}).hide();d.callback&&d.callback.apply(h[0]);h.dequeue();a("div.ui-effects-explode").remove()},d.duration||500)})}})(jQuery);
187
- (function(a){a.effects.fade=function(d){return this.queue(function(){var f=a(this),e=a.effects.setMode(f,d.options.mode||"hide");f.animate({opacity:e},{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){d.callback&&d.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
188
- (function(a){a.effects.fold=function(d){return this.queue(function(){var f=a(this),e=["position","top","left"],h=a.effects.setMode(f,d.options.mode||"hide"),b=d.options.size||15,g=!!d.options.horizFirst,i=d.duration?d.duration/2:a.fx.speeds._default/2;a.effects.save(f,e);f.show();var k=a.effects.createWrapper(f).css({overflow:"hidden"}),m=h=="show"!=g,l=m?["width","height"]:["height","width"];m=m?[k.width(),k.height()]:[k.height(),k.width()];var j=/([0-9]+)%/.exec(b);if(j)b=parseInt(j[1],10)/100*
189
- m[h=="hide"?0:1];if(h=="show")k.css(g?{height:0,width:b}:{height:b,width:0});g={};j={};g[l[0]]=h=="show"?m[0]:b;j[l[1]]=h=="show"?m[1]:0;k.animate(g,i,d.options.easing).animate(j,i,d.options.easing,function(){h=="hide"&&f.hide();a.effects.restore(f,e);a.effects.removeWrapper(f);d.callback&&d.callback.apply(f[0],arguments);f.dequeue()})})}})(jQuery);
190
- (function(a){a.effects.highlight=function(d){return this.queue(function(){var f=a(this),e=["backgroundImage","backgroundColor","opacity"],h=a.effects.setMode(f,d.options.mode||"show"),b={backgroundColor:f.css("backgroundColor")};if(h=="hide")b.opacity=0;a.effects.save(f,e);f.show().css({backgroundImage:"none",backgroundColor:d.options.color||"#ffff99"}).animate(b,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){h=="hide"&&f.hide();a.effects.restore(f,e);h=="show"&&!a.support.opacity&&
191
- this.style.removeAttribute("filter");d.callback&&d.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
192
- (function(a){a.effects.pulsate=function(d){return this.queue(function(){var f=a(this),e=a.effects.setMode(f,d.options.mode||"show");times=(d.options.times||5)*2-1;duration=d.duration?d.duration/2:a.fx.speeds._default/2;isVisible=f.is(":visible");animateTo=0;if(!isVisible){f.css("opacity",0).show();animateTo=1}if(e=="hide"&&isVisible||e=="show"&&!isVisible)times--;for(e=0;e<times;e++){f.animate({opacity:animateTo},duration,d.options.easing);animateTo=(animateTo+1)%2}f.animate({opacity:animateTo},duration,
193
- d.options.easing,function(){animateTo==0&&f.hide();d.callback&&d.callback.apply(this,arguments)});f.queue("fx",function(){f.dequeue()}).dequeue()})}})(jQuery);
194
- (function(a){a.effects.puff=function(d){return this.queue(function(){var f=a(this),e=a.effects.setMode(f,d.options.mode||"hide"),h=parseInt(d.options.percent,10)||150,b=h/100,g={height:f.height(),width:f.width()};a.extend(d.options,{fade:true,mode:e,percent:e=="hide"?h:100,from:e=="hide"?g:{height:g.height*b,width:g.width*b}});f.effect("scale",d.options,d.duration,d.callback);f.dequeue()})};a.effects.scale=function(d){return this.queue(function(){var f=a(this),e=a.extend(true,{},d.options),h=a.effects.setMode(f,
195
- d.options.mode||"effect"),b=parseInt(d.options.percent,10)||(parseInt(d.options.percent,10)==0?0:h=="hide"?0:100),g=d.options.direction||"both",i=d.options.origin;if(h!="effect"){e.origin=i||["middle","center"];e.restore=true}i={height:f.height(),width:f.width()};f.from=d.options.from||(h=="show"?{height:0,width:0}:i);b={y:g!="horizontal"?b/100:1,x:g!="vertical"?b/100:1};f.to={height:i.height*b.y,width:i.width*b.x};if(d.options.fade){if(h=="show"){f.from.opacity=0;f.to.opacity=1}if(h=="hide"){f.from.opacity=
196
- 1;f.to.opacity=0}}e.from=f.from;e.to=f.to;e.mode=h;f.effect("size",e,d.duration,d.callback);f.dequeue()})};a.effects.size=function(d){return this.queue(function(){var f=a(this),e=["position","top","left","width","height","overflow","opacity"],h=["position","top","left","overflow","opacity"],b=["width","height","overflow"],g=["fontSize"],i=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],k=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],m=a.effects.setMode(f,
197
- d.options.mode||"effect"),l=d.options.restore||false,j=d.options.scale||"both",n=d.options.origin,o={height:f.height(),width:f.width()};f.from=d.options.from||o;f.to=d.options.to||o;if(n){n=a.effects.getBaseline(n,o);f.from.top=(o.height-f.from.height)*n.y;f.from.left=(o.width-f.from.width)*n.x;f.to.top=(o.height-f.to.height)*n.y;f.to.left=(o.width-f.to.width)*n.x}var p={from:{y:f.from.height/o.height,x:f.from.width/o.width},to:{y:f.to.height/o.height,x:f.to.width/o.width}};if(j=="box"||j=="both"){if(p.from.y!=
198
- p.to.y){e=e.concat(i);f.from=a.effects.setTransition(f,i,p.from.y,f.from);f.to=a.effects.setTransition(f,i,p.to.y,f.to)}if(p.from.x!=p.to.x){e=e.concat(k);f.from=a.effects.setTransition(f,k,p.from.x,f.from);f.to=a.effects.setTransition(f,k,p.to.x,f.to)}}if(j=="content"||j=="both")if(p.from.y!=p.to.y){e=e.concat(g);f.from=a.effects.setTransition(f,g,p.from.y,f.from);f.to=a.effects.setTransition(f,g,p.to.y,f.to)}a.effects.save(f,l?e:h);f.show();a.effects.createWrapper(f);f.css("overflow","hidden").css(f.from);
199
- if(j=="content"||j=="both"){i=i.concat(["marginTop","marginBottom"]).concat(g);k=k.concat(["marginLeft","marginRight"]);b=e.concat(i).concat(k);f.find("*[width]").each(function(){child=a(this);l&&a.effects.save(child,b);var q={height:child.height(),width:child.width()};child.from={height:q.height*p.from.y,width:q.width*p.from.x};child.to={height:q.height*p.to.y,width:q.width*p.to.x};if(p.from.y!=p.to.y){child.from=a.effects.setTransition(child,i,p.from.y,child.from);child.to=a.effects.setTransition(child,
200
- i,p.to.y,child.to)}if(p.from.x!=p.to.x){child.from=a.effects.setTransition(child,k,p.from.x,child.from);child.to=a.effects.setTransition(child,k,p.to.x,child.to)}child.css(child.from);child.animate(child.to,d.duration,d.options.easing,function(){l&&a.effects.restore(child,b)})})}f.animate(f.to,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){f.to.opacity===0&&f.css("opacity",f.from.opacity);m=="hide"&&f.hide();a.effects.restore(f,l?e:h);a.effects.removeWrapper(f);d.callback&&
201
- d.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
202
- (function(a){a.effects.shake=function(d){return this.queue(function(){var f=a(this),e=["position","top","left"];a.effects.setMode(f,d.options.mode||"effect");var h=d.options.direction||"left",b=d.options.distance||20,g=d.options.times||3,i=d.duration||d.options.duration||140;a.effects.save(f,e);f.show();a.effects.createWrapper(f);var k=h=="up"||h=="down"?"top":"left",m=h=="up"||h=="left"?"pos":"neg";h={};var l={},j={};h[k]=(m=="pos"?"-=":"+=")+b;l[k]=(m=="pos"?"+=":"-=")+b*2;j[k]=(m=="pos"?"-=":"+=")+
203
- b*2;f.animate(h,i,d.options.easing);for(b=1;b<g;b++)f.animate(l,i,d.options.easing).animate(j,i,d.options.easing);f.animate(l,i,d.options.easing).animate(h,i/2,d.options.easing,function(){a.effects.restore(f,e);a.effects.removeWrapper(f);d.callback&&d.callback.apply(this,arguments)});f.queue("fx",function(){f.dequeue()});f.dequeue()})}})(jQuery);
204
- (function(a){a.effects.slide=function(d){return this.queue(function(){var f=a(this),e=["position","top","left"],h=a.effects.setMode(f,d.options.mode||"show"),b=d.options.direction||"left";a.effects.save(f,e);f.show();a.effects.createWrapper(f).css({overflow:"hidden"});var g=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var i=d.options.distance||(g=="top"?f.outerHeight({margin:true}):f.outerWidth({margin:true}));if(h=="show")f.css(g,b=="pos"?-i:i);var k={};k[g]=(h=="show"?b=="pos"?
205
- "+=":"-=":b=="pos"?"-=":"+=")+i;f.animate(k,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){h=="hide"&&f.hide();a.effects.restore(f,e);a.effects.removeWrapper(f);d.callback&&d.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
206
- (function(a){a.effects.transfer=function(d){return this.queue(function(){var f=a(this),e=a(d.options.to),h=e.offset();e={top:h.top,left:h.left,height:e.innerHeight(),width:e.innerWidth()};h=f.offset();var b=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(d.options.className).css({top:h.top,left:h.left,height:f.innerHeight(),width:f.innerWidth(),position:"absolute"}).animate(e,d.duration,d.options.easing,function(){b.remove();d.callback&&d.callback.apply(f[0],arguments);
207
- f.dequeue()})})}})(jQuery);
208
- (function(a){a.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var d=this,f=d.options;d.running=0;d.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");d.headers=
209
- d.element.find(f.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){f.disabled||a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){f.disabled||a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){f.disabled||a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){f.disabled||a(this).removeClass("ui-state-focus")});d.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
210
- if(f.navigation){var e=d.element.find("a").filter(f.navigationFilter).eq(0);if(e.length){var h=e.closest(".ui-accordion-header");d.active=h.length?h:e.closest(".ui-accordion-content").prev()}}d.active=d._findActive(d.active||f.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all ui-corner-top");d.active.next().addClass("ui-accordion-content-active");d._createIcons();d.resize();d.element.attr("role","tablist");d.headers.attr("role","tab").bind("keydown.accordion",function(b){return d._keydown(b)}).next().attr("role",
211
- "tabpanel");d.headers.not(d.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();d.active.length?d.active.attr({"aria-expanded":"true",tabIndex:0}):d.headers.eq(0).attr("tabIndex",0);a.browser.safari||d.headers.find("a").attr("tabIndex",-1);f.event&&d.headers.bind(f.event.split(" ").join(".accordion ")+".accordion",function(b){d._clickHandler.call(d,b,this);b.preventDefault()})},_createIcons:function(){var d=this.options;if(d.icons){a("<span></span>").addClass("ui-icon "+d.icons.header).prependTo(this.headers);
212
- this.active.children(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var d=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");
213
- this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var f=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(d.autoHeight||d.fillHeight)f.css("height","");return a.Widget.prototype.destroy.call(this)},_setOption:function(d,f){a.Widget.prototype._setOption.apply(this,arguments);d=="active"&&this.activate(f);if(d=="icons"){this._destroyIcons();
214
- f&&this._createIcons()}if(d=="disabled")this.headers.add(this.headers.next())[f?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(d){if(!(this.options.disabled||d.altKey||d.ctrlKey)){var f=a.ui.keyCode,e=this.headers.length,h=this.headers.index(d.target),b=false;switch(d.keyCode){case f.RIGHT:case f.DOWN:b=this.headers[(h+1)%e];break;case f.LEFT:case f.UP:b=this.headers[(h-1+e)%e];break;case f.SPACE:case f.ENTER:this._clickHandler({target:d.target},d.target);
215
- d.preventDefault()}if(b){a(d.target).attr("tabIndex",-1);a(b).attr("tabIndex",0);b.focus();return false}return true}},resize:function(){var d=this.options,f;if(d.fillSpace){if(a.browser.msie){var e=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}f=this.element.parent().height();a.browser.msie&&this.element.parent().css("overflow",e);this.headers.each(function(){f-=a(this).outerHeight(true)});this.headers.next().each(function(){a(this).height(Math.max(0,f-a(this).innerHeight()+
216
- a(this).height()))}).css("overflow","auto")}else if(d.autoHeight){f=0;this.headers.next().each(function(){f=Math.max(f,a(this).height("").height())}).height(f)}return this},activate:function(d){this.options.active=d;d=this._findActive(d)[0];this._clickHandler({target:d},d);return this},_findActive:function(d){return d?typeof d==="number"?this.headers.filter(":eq("+d+")"):this.headers.not(this.headers.not(d)):d===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(d,f){var e=this.options;
217
- if(!e.disabled)if(d.target){var h=a(d.currentTarget||f),b=h[0]===this.active[0];e.active=e.collapsible&&b?false:this.headers.index(h);if(!(this.running||!e.collapsible&&b)){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(e.icons.headerSelected).addClass(e.icons.header);if(!b){h.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(e.icons.header).addClass(e.icons.headerSelected);
218
- h.next().addClass("ui-accordion-content-active")}k=h.next();g=this.active.next();i={options:e,newHeader:b&&e.collapsible?a([]):h,oldHeader:this.active,newContent:b&&e.collapsible?a([]):k,oldContent:g};e=this.headers.index(this.active[0])>this.headers.index(h[0]);this.active=b?a([]):h;this._toggle(k,g,i,b,e)}}else if(e.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(e.icons.headerSelected).addClass(e.icons.header);
219
- this.active.next().addClass("ui-accordion-content-active");var g=this.active.next(),i={options:e,newHeader:a([]),oldHeader:e.active,newContent:a([]),oldContent:g},k=this.active=a([]);this._toggle(k,g,i)}},_toggle:function(d,f,e,h,b){var g=this,i=g.options;g.toShow=d;g.toHide=f;g.data=e;var k=function(){if(g)return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data);g.running=f.size()===0?d.size():f.size();if(i.animated){e={};e=i.collapsible&&h?{toShow:a([]),toHide:f,complete:k,
220
- down:b,autoHeight:i.autoHeight||i.fillSpace}:{toShow:d,toHide:f,complete:k,down:b,autoHeight:i.autoHeight||i.fillSpace};if(!i.proxied)i.proxied=i.animated;if(!i.proxiedDuration)i.proxiedDuration=i.duration;i.animated=a.isFunction(i.proxied)?i.proxied(e):i.proxied;i.duration=a.isFunction(i.proxiedDuration)?i.proxiedDuration(e):i.proxiedDuration;h=a.ui.accordion.animations;var m=i.duration,l=i.animated;if(l&&!h[l]&&!a.easing[l])l="slide";h[l]||(h[l]=function(j){this.slide(j,{easing:l,duration:m||700})});
221
- h[l](e)}else{if(i.collapsible&&h)d.toggle();else{f.hide();d.show()}k(true)}f.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();d.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(d){this.running=d?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");this._trigger("change",null,this.data)}}});a.extend(a.ui.accordion,{version:"1.8.5",animations:{slide:function(d,
222
- f){d=a.extend({easing:"swing",duration:300},d,f);if(d.toHide.size())if(d.toShow.size()){var e=d.toShow.css("overflow"),h=0,b={},g={},i,k=d.toShow;i=k[0].style.width;k.width(parseInt(k.parent().width(),10)-parseInt(k.css("paddingLeft"),10)-parseInt(k.css("paddingRight"),10)-(parseInt(k.css("borderLeftWidth"),10)||0)-(parseInt(k.css("borderRightWidth"),10)||0));a.each(["height","paddingTop","paddingBottom"],function(m,l){g[l]="hide";var j=(""+a.css(d.toShow[0],l)).match(/^([\d+-.]+)(.*)$/);b[l]={value:j[1],
223
- unit:j[2]||"px"}});d.toShow.css({height:0,overflow:"hidden"}).show();d.toHide.filter(":hidden").each(d.complete).end().filter(":visible").animate(g,{step:function(m,l){if(l.prop=="height")h=l.end-l.start===0?0:(l.now-l.start)/(l.end-l.start);d.toShow[0].style[l.prop]=h*b[l.prop].value+b[l.prop].unit},duration:d.duration,easing:d.easing,complete:function(){d.autoHeight||d.toShow.css("height","");d.toShow.css({width:i,overflow:e});d.complete()}})}else d.toHide.animate({height:"hide",paddingTop:"hide",
224
- paddingBottom:"hide"},d);else d.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},d)},bounceslide:function(d){this.slide(d,{easing:d.down?"easeOutBounce":"swing",duration:d.down?1E3:200})}}})})(jQuery);
225
- (function(a){a.widget("ui.autocomplete",{options:{appendTo:"body",delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},_create:function(){var d=this,f=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){if(!d.options.disabled){var h=a.ui.keyCode;switch(e.keyCode){case h.PAGE_UP:d._move("previousPage",
226
- e);break;case h.PAGE_DOWN:d._move("nextPage",e);break;case h.UP:d._move("previous",e);e.preventDefault();break;case h.DOWN:d._move("next",e);e.preventDefault();break;case h.ENTER:case h.NUMPAD_ENTER:d.menu.element.is(":visible")&&e.preventDefault();case h.TAB:if(!d.menu.active)break;d.menu.select(e);break;case h.ESCAPE:d.element.val(d.term);d.close(e);break;default:clearTimeout(d.searching);d.searching=setTimeout(function(){if(d.term!=d.element.val()){d.selectedItem=null;d.search(null,e)}},d.options.delay)}}}).bind("focus.autocomplete",
227
- function(){if(!d.options.disabled){d.selectedItem=null;d.previous=d.element.val()}}).bind("blur.autocomplete",function(e){if(!d.options.disabled){clearTimeout(d.searching);d.closing=setTimeout(function(){d.close(e);d._change(e)},150)}});this._initSource();this.response=function(){return d._response.apply(d,arguments)};this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||"body",f)[0]).mousedown(function(e){var h=d.menu.element[0];e.target===h&&setTimeout(function(){a(document).one("mousedown",
228
- function(b){b.target!==d.element[0]&&b.target!==h&&!a.ui.contains(h,b.target)&&d.close()})},1);setTimeout(function(){clearTimeout(d.closing)},13)}).menu({focus:function(e,h){var b=h.item.data("item.autocomplete");false!==d._trigger("focus",null,{item:b})&&/^key/.test(e.originalEvent.type)&&d.element.val(b.value)},selected:function(e,h){var b=h.item.data("item.autocomplete"),g=d.previous;if(d.element[0]!==f.activeElement){d.element.focus();d.previous=g}if(false!==d._trigger("select",e,{item:b})){d.term=
229
- b.value;d.element.val(b.value)}d.close(e);d.selectedItem=b},blur:function(){d.menu.element.is(":visible")&&d.element.val()!==d.term&&d.element.val(d.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");a.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();a.Widget.prototype.destroy.call(this)},
230
- _setOption:function(d,f){a.Widget.prototype._setOption.apply(this,arguments);d==="source"&&this._initSource();if(d==="appendTo")this.menu.element.appendTo(a(f||"body",this.element[0].ownerDocument)[0])},_initSource:function(){var d=this,f,e;if(a.isArray(this.options.source)){f=this.options.source;this.source=function(h,b){b(a.ui.autocomplete.filter(f,h.term))}}else if(typeof this.options.source==="string"){e=this.options.source;this.source=function(h,b){d.xhr&&d.xhr.abort();d.xhr=a.getJSON(e,h,function(g,
231
- i,k){k===d.xhr&&b(g);d.xhr=null})}}else this.source=this.options.source},search:function(d,f){d=d!=null?d:this.element.val();this.term=this.element.val();if(d.length<this.options.minLength)return this.close(f);clearTimeout(this.closing);if(this._trigger("search")!==false)return this._search(d)},_search:function(d){this.element.addClass("ui-autocomplete-loading");this.source({term:d},this.response)},_response:function(d){if(d.length){d=this._normalize(d);this._suggest(d);this._trigger("open")}else this.close();
232
- this.element.removeClass("ui-autocomplete-loading")},close:function(d){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this._trigger("close",d);this.menu.element.hide();this.menu.deactivate()}},_change:function(d){this.previous!==this.element.val()&&this._trigger("change",d,{item:this.selectedItem})},_normalize:function(d){if(d.length&&d[0].label&&d[0].value)return d;return a.map(d,function(f){if(typeof f==="string")return{label:f,value:f};return a.extend({label:f.label||f.value,value:f.value||
233
- f.label},f)})},_suggest:function(d){var f=this.menu.element.empty().zIndex(this.element.zIndex()+1),e;this._renderMenu(f,d);this.menu.deactivate();this.menu.refresh();this.menu.element.show().position(a.extend({of:this.element},this.options.position));d=f.width("").outerWidth();e=this.element.outerWidth();f.outerWidth(Math.max(d,e))},_renderMenu:function(d,f){var e=this;a.each(f,function(h,b){e._renderItem(d,b)})},_renderItem:function(d,f){return a("<li></li>").data("item.autocomplete",f).append(a("<a></a>").text(f.label)).appendTo(d)},
234
- _move:function(d,f){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(d)||this.menu.last()&&/^next/.test(d)){this.element.val(this.term);this.menu.deactivate()}else this.menu[d](f);else this.search(null,f)},widget:function(){return this.menu.element}});a.extend(a.ui.autocomplete,{escapeRegex:function(d){return d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(d,f){var e=RegExp(a.ui.autocomplete.escapeRegex(f),"i");return a.grep(d,function(h){return e.test(h.label||
235
- h.value||h)})}})})(jQuery);
236
- (function(a){a.widget("ui.menu",{_create:function(){var d=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(f){if(a(f.target).closest(".ui-menu-item a").length){f.preventDefault();d.select(f)}});this.refresh()},refresh:function(){var d=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(f){d.activate(f,
237
- a(this).parent())}).mouseleave(function(){d.deactivate()})},activate:function(d,f){this.deactivate();if(this.hasScroll()){var e=f.offset().top-this.element.offset().top,h=this.element.attr("scrollTop"),b=this.element.height();if(e<0)this.element.attr("scrollTop",h+e);else e>=b&&this.element.attr("scrollTop",h+e-b+f.height())}this.active=f.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",d,{item:f})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
238
- this._trigger("blur");this.active=null}},next:function(d){this.move("next",".ui-menu-item:first",d)},previous:function(d){this.move("prev",".ui-menu-item:last",d)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(d,f,e){if(this.active){d=this.active[d+"All"](".ui-menu-item").eq(0);d.length?this.activate(e,d):this.activate(e,this.element.children(f))}else this.activate(e,
239
- this.element.children(f))},nextPage:function(d){if(this.hasScroll())if(!this.active||this.last())this.activate(d,this.element.children(":first"));else{var f=this.active.offset().top,e=this.element.height(),h=this.element.children("li").filter(function(){var b=a(this).offset().top-f-e+a(this).height();return b<10&&b>-10});h.length||(h=this.element.children(":last"));this.activate(d,h)}else this.activate(d,this.element.children(!this.active||this.last()?":first":":last"))},previousPage:function(d){if(this.hasScroll())if(!this.active||
240
- this.first())this.activate(d,this.element.children(":last"));else{var f=this.active.offset().top,e=this.element.height();result=this.element.children("li").filter(function(){var h=a(this).offset().top-f+e-a(this).height();return h<10&&h>-10});result.length||(result=this.element.children(":first"));this.activate(d,result)}else this.activate(d,this.element.children(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(d){this._trigger("selected",
241
- d,{item:this.active})}})})(jQuery);
242
- (function(a){var d,f=function(h){a(":ui-button",h.target.form).each(function(){var b=a(this).data("button");setTimeout(function(){b.refresh()},1)})},e=function(h){var b=h.name,g=h.form,i=a([]);if(b)i=g?a(g).find("[name='"+b+"']"):a("[name='"+b+"']",h.ownerDocument).filter(function(){return!this.form});return i};a.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",f);
243
- if(typeof this.options.disabled!=="boolean")this.options.disabled=this.element.attr("disabled");this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var h=this,b=this.options,g=this.type==="checkbox"||this.type==="radio",i="ui-state-hover"+(!g?" ui-state-active":"");if(b.label===null)b.label=this.buttonElement.html();if(this.element.is(":disabled"))b.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",
244
- function(){if(!b.disabled){a(this).addClass("ui-state-hover");this===d&&a(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){b.disabled||a(this).removeClass(i)}).bind("focus.button",function(){a(this).addClass("ui-state-focus")}).bind("blur.button",function(){a(this).removeClass("ui-state-focus")});g&&this.element.bind("change.button",function(){h.refresh()});if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(b.disabled)return false;a(this).toggleClass("ui-state-active");
245
- h.buttonElement.attr("aria-pressed",h.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",function(){if(b.disabled)return false;a(this).addClass("ui-state-active");h.buttonElement.attr("aria-pressed",true);var k=h.element[0];e(k).not(k).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)});else{this.buttonElement.bind("mousedown.button",function(){if(b.disabled)return false;a(this).addClass("ui-state-active");
246
- d=this;a(document).one("mouseup",function(){d=null})}).bind("mouseup.button",function(){if(b.disabled)return false;a(this).removeClass("ui-state-active")}).bind("keydown.button",function(k){if(b.disabled)return false;if(k.keyCode==a.ui.keyCode.SPACE||k.keyCode==a.ui.keyCode.ENTER)a(this).addClass("ui-state-active")}).bind("keyup.button",function(){a(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(k){k.keyCode===a.ui.keyCode.SPACE&&a(this).click()})}this._setOption("disabled",
247
- b.disabled)},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type==="radio"){this.buttonElement=this.element.parents().last().find("label[for="+this.element.attr("id")+"]");this.element.addClass("ui-helper-hidden-accessible");var h=this.element.is(":checked");h&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",h)}else this.buttonElement=
248
- this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||
249
- this.buttonElement.removeAttr("title");a.Widget.prototype.destroy.call(this)},_setOption:function(h,b){a.Widget.prototype._setOption.apply(this,arguments);if(h==="disabled")b?this.element.attr("disabled",true):this.element.removeAttr("disabled");this._resetButton()},refresh:function(){var h=this.element.is(":disabled");h!==this.options.disabled&&this._setOption("disabled",h);if(this.type==="radio")e(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
250
- true):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",false)});else if(this.type==="checkbox")this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed",true):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed",false)},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var h=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),
251
- b=a("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(h.empty()).text(),g=this.options.icons,i=g.primary&&g.secondary;if(g.primary||g.secondary){h.addClass("ui-button-text-icon"+(i?"s":g.primary?"-primary":"-secondary"));g.primary&&h.prepend("<span class='ui-button-icon-primary ui-icon "+g.primary+"'></span>");g.secondary&&h.append("<span class='ui-button-icon-secondary ui-icon "+g.secondary+"'></span>");if(!this.options.text){h.addClass(i?"ui-button-icons-only":"ui-button-icon-only").removeClass("ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary");
252
- this.hasTitle||h.attr("title",b)}}else h.addClass("ui-button-text-only")}}});a.widget("ui.buttonset",{_create:function(){this.element.addClass("ui-buttonset");this._init()},_init:function(){this.refresh()},_setOption:function(h,b){h==="disabled"&&this.buttons.button("option",h,b);a.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 a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":visible").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end().end()},
253
- destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");a.Widget.prototype.destroy.call(this)}})})(jQuery);
254
- (function(a,d){function f(){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=
255
- "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",
256
- "Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
257
- minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};a.extend(this._defaults,this.regional[""]);this.dpDiv=a('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}function e(b,g){a.extend(b,
258
- g);for(var i in g)if(g[i]==null||g[i]==d)b[i]=g[i];return b}a.extend(a.ui,{datepicker:{version:"1.8.5"}});var h=(new Date).getTime();a.extend(f.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(b){e(this._defaults,b||{});return this},_attachDatepicker:function(b,g){var i=null,k;for(k in this._defaults){var m=b.getAttribute("date:"+k);if(m){i=i||{};try{i[k]=eval(m)}catch(l){i[k]=
259
- m}}}k=b.nodeName.toLowerCase();m=k=="div"||k=="span";if(!b.id){this.uuid+=1;b.id="dp"+this.uuid}var j=this._newInst(a(b),m);j.settings=a.extend({},g||{},i||{});if(k=="input")this._connectDatepicker(b,j);else m&&this._inlineDatepicker(b,j)},_newInst:function(b,g){return{id:b[0].id.replace(/([^A-Za-z0-9_])/g,"\\\\$1"),input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:g,dpDiv:!g?this.dpDiv:a('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},
260
- _connectDatepicker:function(b,g){var i=a(b);g.append=a([]);g.trigger=a([]);if(!i.hasClass(this.markerClassName)){this._attachments(i,g);i.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(k,m,l){g.settings[m]=l}).bind("getData.datepicker",function(k,m){return this._get(g,m)});this._autoSize(g);a.data(b,"datepicker",g)}},_attachments:function(b,g){var i=this._get(g,"appendText"),k=this._get(g,"isRTL");g.append&&
261
- g.append.remove();if(i){g.append=a('<span class="'+this._appendClass+'">'+i+"</span>");b[k?"before":"after"](g.append)}b.unbind("focus",this._showDatepicker);g.trigger&&g.trigger.remove();i=this._get(g,"showOn");if(i=="focus"||i=="both")b.focus(this._showDatepicker);if(i=="button"||i=="both"){i=this._get(g,"buttonText");var m=this._get(g,"buttonImage");g.trigger=a(this._get(g,"buttonImageOnly")?a("<img/>").addClass(this._triggerClass).attr({src:m,alt:i,title:i}):a('<button type="button"></button>').addClass(this._triggerClass).html(m==
262
- ""?i:a("<img/>").attr({src:m,alt:i,title:i})));b[k?"before":"after"](g.trigger);g.trigger.click(function(){a.datepicker._datepickerShowing&&a.datepicker._lastInput==b[0]?a.datepicker._hideDatepicker():a.datepicker._showDatepicker(b[0]);return false})}},_autoSize:function(b){if(this._get(b,"autoSize")&&!b.inline){var g=new Date(2009,11,20),i=this._get(b,"dateFormat");if(i.match(/[DM]/)){var k=function(m){for(var l=0,j=0,n=0;n<m.length;n++)if(m[n].length>l){l=m[n].length;j=n}return j};g.setMonth(k(this._get(b,
263
- i.match(/MM/)?"monthNames":"monthNamesShort")));g.setDate(k(this._get(b,i.match(/DD/)?"dayNames":"dayNamesShort"))+20-g.getDay())}b.input.attr("size",this._formatDate(b,g).length)}},_inlineDatepicker:function(b,g){var i=a(b);if(!i.hasClass(this.markerClassName)){i.addClass(this.markerClassName).append(g.dpDiv).bind("setData.datepicker",function(k,m,l){g.settings[m]=l}).bind("getData.datepicker",function(k,m){return this._get(g,m)});a.data(b,"datepicker",g);this._setDate(g,this._getDefaultDate(g),
264
- true);this._updateDatepicker(g);this._updateAlternate(g)}},_dialogDatepicker:function(b,g,i,k,m){b=this._dialogInst;if(!b){this.uuid+=1;this._dialogInput=a('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);a("body").append(this._dialogInput);b=this._dialogInst=this._newInst(this._dialogInput,false);b.settings={};a.data(this._dialogInput[0],"datepicker",b)}e(b.settings,k||{});g=g&&g.constructor==
265
- Date?this._formatDate(b,g):g;this._dialogInput.val(g);this._pos=m?m.length?m:[m.pageX,m.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");b.settings.onSelect=i;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);
266
- a.blockUI&&a.blockUI(this.dpDiv);a.data(this._dialogInput[0],"datepicker",b);return this},_destroyDatepicker:function(b){var g=a(b),i=a.data(b,"datepicker");if(g.hasClass(this.markerClassName)){var k=b.nodeName.toLowerCase();a.removeData(b,"datepicker");if(k=="input"){i.append.remove();i.trigger.remove();g.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(k=="div"||k=="span")g.removeClass(this.markerClassName).empty()}},
267
- _enableDatepicker:function(b){var g=a(b),i=a.data(b,"datepicker");if(g.hasClass(this.markerClassName)){var k=b.nodeName.toLowerCase();if(k=="input"){b.disabled=false;i.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(k=="div"||k=="span")g.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=a.map(this._disabledInputs,function(m){return m==b?null:m})}},_disableDatepicker:function(b){var g=
268
- a(b),i=a.data(b,"datepicker");if(g.hasClass(this.markerClassName)){var k=b.nodeName.toLowerCase();if(k=="input"){b.disabled=true;i.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(k=="div"||k=="span")g.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=a.map(this._disabledInputs,function(m){return m==b?null:m});this._disabledInputs[this._disabledInputs.length]=b}},_isDisabledDatepicker:function(b){if(!b)return false;
269
- for(var g=0;g<this._disabledInputs.length;g++)if(this._disabledInputs[g]==b)return true;return false},_getInst:function(b){try{return a.data(b,"datepicker")}catch(g){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(b,g,i){var k=this._getInst(b);if(arguments.length==2&&typeof g=="string")return g=="defaults"?a.extend({},a.datepicker._defaults):k?g=="all"?a.extend({},k.settings):this._get(k,g):null;var m=g||{};if(typeof g=="string"){m={};m[g]=i}if(k){this._curInst==k&&
270
- this._hideDatepicker();var l=this._getDateDatepicker(b,true);e(k.settings,m);this._attachments(a(b),k);this._autoSize(k);this._setDateDatepicker(b,l);this._updateDatepicker(k)}},_changeDatepicker:function(b,g,i){this._optionDatepicker(b,g,i)},_refreshDatepicker:function(b){(b=this._getInst(b))&&this._updateDatepicker(b)},_setDateDatepicker:function(b,g){var i=this._getInst(b);if(i){this._setDate(i,g);this._updateDatepicker(i);this._updateAlternate(i)}},_getDateDatepicker:function(b,g){var i=this._getInst(b);
271
- i&&!i.inline&&this._setDateFromField(i,g);return i?this._getDate(i):null},_doKeyDown:function(b){var g=a.datepicker._getInst(b.target),i=true,k=g.dpDiv.is(".ui-datepicker-rtl");g._keyEvent=true;if(a.datepicker._datepickerShowing)switch(b.keyCode){case 9:a.datepicker._hideDatepicker();i=false;break;case 13:i=a("td."+a.datepicker._dayOverClass,g.dpDiv).add(a("td."+a.datepicker._currentClass,g.dpDiv));i[0]?a.datepicker._selectDay(b.target,g.selectedMonth,g.selectedYear,i[0]):a.datepicker._hideDatepicker();
272
- return false;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(g,"stepBigMonths"):-a.datepicker._get(g,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(g,"stepBigMonths"):+a.datepicker._get(g,"stepMonths"),"M");break;case 35:if(b.ctrlKey||b.metaKey)a.datepicker._clearDate(b.target);i=b.ctrlKey||b.metaKey;break;case 36:if(b.ctrlKey||b.metaKey)a.datepicker._gotoToday(b.target);i=b.ctrlKey||
273
- b.metaKey;break;case 37:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,k?+1:-1,"D");i=b.ctrlKey||b.metaKey;if(b.originalEvent.altKey)a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(g,"stepBigMonths"):-a.datepicker._get(g,"stepMonths"),"M");break;case 38:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,-7,"D");i=b.ctrlKey||b.metaKey;break;case 39:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,k?-1:+1,"D");i=b.ctrlKey||b.metaKey;if(b.originalEvent.altKey)a.datepicker._adjustDate(b.target,
274
- b.ctrlKey?+a.datepicker._get(g,"stepBigMonths"):+a.datepicker._get(g,"stepMonths"),"M");break;case 40:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,+7,"D");i=b.ctrlKey||b.metaKey;break;default:i=false}else if(b.keyCode==36&&b.ctrlKey)a.datepicker._showDatepicker(this);else i=false;if(i){b.preventDefault();b.stopPropagation()}},_doKeyPress:function(b){var g=a.datepicker._getInst(b.target);if(a.datepicker._get(g,"constrainInput")){g=a.datepicker._possibleChars(a.datepicker._get(g,"dateFormat"));
275
- var i=String.fromCharCode(b.charCode==d?b.keyCode:b.charCode);return b.ctrlKey||i<" "||!g||g.indexOf(i)>-1}},_doKeyUp:function(b){b=a.datepicker._getInst(b.target);if(b.input.val()!=b.lastVal)try{if(a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),b.input?b.input.val():null,a.datepicker._getFormatConfig(b))){a.datepicker._setDateFromField(b);a.datepicker._updateAlternate(b);a.datepicker._updateDatepicker(b)}}catch(g){a.datepicker.log(g)}return true},_showDatepicker:function(b){b=b.target||
276
- b;if(b.nodeName.toLowerCase()!="input")b=a("input",b.parentNode)[0];if(!(a.datepicker._isDisabledDatepicker(b)||a.datepicker._lastInput==b)){var g=a.datepicker._getInst(b);a.datepicker._curInst&&a.datepicker._curInst!=g&&a.datepicker._curInst.dpDiv.stop(true,true);var i=a.datepicker._get(g,"beforeShow");e(g.settings,i?i.apply(b,[b,g]):{});g.lastVal=null;a.datepicker._lastInput=b;a.datepicker._setDateFromField(g);if(a.datepicker._inDialog)b.value="";if(!a.datepicker._pos){a.datepicker._pos=a.datepicker._findPos(b);
277
- a.datepicker._pos[1]+=b.offsetHeight}var k=false;a(b).parents().each(function(){k|=a(this).css("position")=="fixed";return!k});if(k&&a.browser.opera){a.datepicker._pos[0]-=document.documentElement.scrollLeft;a.datepicker._pos[1]-=document.documentElement.scrollTop}i={left:a.datepicker._pos[0],top:a.datepicker._pos[1]};a.datepicker._pos=null;g.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});a.datepicker._updateDatepicker(g);i=a.datepicker._checkOffset(g,i,k);g.dpDiv.css({position:a.datepicker._inDialog&&
278
- a.blockUI?"static":k?"fixed":"absolute",display:"none",left:i.left+"px",top:i.top+"px"});if(!g.inline){i=a.datepicker._get(g,"showAnim");var m=a.datepicker._get(g,"duration"),l=function(){a.datepicker._datepickerShowing=true;var j=a.datepicker._getBorders(g.dpDiv);g.dpDiv.find("iframe.ui-datepicker-cover").css({left:-j[0],top:-j[1],width:g.dpDiv.outerWidth(),height:g.dpDiv.outerHeight()})};g.dpDiv.zIndex(a(b).zIndex()+1);a.effects&&a.effects[i]?g.dpDiv.show(i,a.datepicker._get(g,"showOptions"),m,
279
- l):g.dpDiv[i||"show"](i?m:null,l);if(!i||!m)l();g.input.is(":visible")&&!g.input.is(":disabled")&&g.input.focus();a.datepicker._curInst=g}}},_updateDatepicker:function(b){var g=this,i=a.datepicker._getBorders(b.dpDiv);b.dpDiv.empty().append(this._generateHTML(b)).find("iframe.ui-datepicker-cover").css({left:-i[0],top:-i[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){a(this).removeClass("ui-state-hover");
280
- this.className.indexOf("ui-datepicker-prev")!=-1&&a(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&a(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!g._isDisabledDatepicker(b.inline?b.dpDiv.parent()[0]:b.input[0])){a(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");a(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&a(this).addClass("ui-datepicker-prev-hover");
281
- this.className.indexOf("ui-datepicker-next")!=-1&&a(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();i=this._getNumberOfMonths(b);var k=i[1];k>1?b.dpDiv.addClass("ui-datepicker-multi-"+k).css("width",17*k+"em"):b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");b.dpDiv[(i[0]!=1||i[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");
282
- b==a.datepicker._curInst&&a.datepicker._datepickerShowing&&b.input&&b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus()},_getBorders:function(b){var g=function(i){return{thin:1,medium:2,thick:3}[i]||i};return[parseFloat(g(b.css("border-left-width"))),parseFloat(g(b.css("border-top-width")))]},_checkOffset:function(b,g,i){var k=b.dpDiv.outerWidth(),m=b.dpDiv.outerHeight(),l=b.input?b.input.outerWidth():0,j=b.input?b.input.outerHeight():0,n=document.documentElement.clientWidth+a(document).scrollLeft(),
283
- o=document.documentElement.clientHeight+a(document).scrollTop();g.left-=this._get(b,"isRTL")?k-l:0;g.left-=i&&g.left==b.input.offset().left?a(document).scrollLeft():0;g.top-=i&&g.top==b.input.offset().top+j?a(document).scrollTop():0;g.left-=Math.min(g.left,g.left+k>n&&n>k?Math.abs(g.left+k-n):0);g.top-=Math.min(g.top,g.top+m>o&&o>m?Math.abs(m+j):0);return g},_findPos:function(b){for(var g=this._get(this._getInst(b),"isRTL");b&&(b.type=="hidden"||b.nodeType!=1);)b=b[g?"previousSibling":"nextSibling"];
284
- b=a(b).offset();return[b.left,b.top]},_hideDatepicker:function(b){var g=this._curInst;if(!(!g||b&&g!=a.data(b,"datepicker")))if(this._datepickerShowing){b=this._get(g,"showAnim");var i=this._get(g,"duration"),k=function(){a.datepicker._tidyDialog(g);this._curInst=null};a.effects&&a.effects[b]?g.dpDiv.hide(b,a.datepicker._get(g,"showOptions"),i,k):g.dpDiv[b=="slideDown"?"slideUp":b=="fadeIn"?"fadeOut":"hide"](b?i:null,k);b||k();if(b=this._get(g,"onClose"))b.apply(g.input?g.input[0]:null,[g.input?g.input.val():
285
- "",g]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(a.blockUI){a.unblockUI();a("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(b){b.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(b){if(a.datepicker._curInst){b=a(b.target);b[0].id!=a.datepicker._mainDivId&&b.parents("#"+a.datepicker._mainDivId).length==0&&!b.hasClass(a.datepicker.markerClassName)&&
286
- !b.hasClass(a.datepicker._triggerClass)&&a.datepicker._datepickerShowing&&!(a.datepicker._inDialog&&a.blockUI)&&a.datepicker._hideDatepicker()}},_adjustDate:function(b,g,i){b=a(b);var k=this._getInst(b[0]);if(!this._isDisabledDatepicker(b[0])){this._adjustInstDate(k,g+(i=="M"?this._get(k,"showCurrentAtPos"):0),i);this._updateDatepicker(k)}},_gotoToday:function(b){b=a(b);var g=this._getInst(b[0]);if(this._get(g,"gotoCurrent")&&g.currentDay){g.selectedDay=g.currentDay;g.drawMonth=g.selectedMonth=g.currentMonth;
287
- g.drawYear=g.selectedYear=g.currentYear}else{var i=new Date;g.selectedDay=i.getDate();g.drawMonth=g.selectedMonth=i.getMonth();g.drawYear=g.selectedYear=i.getFullYear()}this._notifyChange(g);this._adjustDate(b)},_selectMonthYear:function(b,g,i){b=a(b);var k=this._getInst(b[0]);k._selectingMonthYear=false;k["selected"+(i=="M"?"Month":"Year")]=k["draw"+(i=="M"?"Month":"Year")]=parseInt(g.options[g.selectedIndex].value,10);this._notifyChange(k);this._adjustDate(b)},_clickMonthYear:function(b){var g=
288
- this._getInst(a(b)[0]);g.input&&g._selectingMonthYear&&setTimeout(function(){g.input.focus()},0);g._selectingMonthYear=!g._selectingMonthYear},_selectDay:function(b,g,i,k){var m=a(b);if(!(a(k).hasClass(this._unselectableClass)||this._isDisabledDatepicker(m[0]))){m=this._getInst(m[0]);m.selectedDay=m.currentDay=a("a",k).html();m.selectedMonth=m.currentMonth=g;m.selectedYear=m.currentYear=i;this._selectDate(b,this._formatDate(m,m.currentDay,m.currentMonth,m.currentYear))}},_clearDate:function(b){b=
289
- a(b);this._getInst(b[0]);this._selectDate(b,"")},_selectDate:function(b,g){var i=this._getInst(a(b)[0]);g=g!=null?g:this._formatDate(i);i.input&&i.input.val(g);this._updateAlternate(i);var k=this._get(i,"onSelect");if(k)k.apply(i.input?i.input[0]:null,[g,i]);else i.input&&i.input.trigger("change");if(i.inline)this._updateDatepicker(i);else{this._hideDatepicker();this._lastInput=i.input[0];typeof i.input[0]!="object"&&i.input.focus();this._lastInput=null}},_updateAlternate:function(b){var g=this._get(b,
290
- "altField");if(g){var i=this._get(b,"altFormat")||this._get(b,"dateFormat"),k=this._getDate(b),m=this.formatDate(i,k,this._getFormatConfig(b));a(g).each(function(){a(this).val(m)})}},noWeekends:function(b){b=b.getDay();return[b>0&&b<6,""]},iso8601Week:function(b){b=new Date(b.getTime());b.setDate(b.getDate()+4-(b.getDay()||7));var g=b.getTime();b.setMonth(0);b.setDate(1);return Math.floor(Math.round((g-b)/864E5)/7)+1},parseDate:function(b,g,i){if(b==null||g==null)throw"Invalid arguments";g=typeof g==
291
- "object"?g.toString():g+"";if(g=="")return null;for(var k=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff,m=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,l=(i?i.dayNames:null)||this._defaults.dayNames,j=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,n=(i?i.monthNames:null)||this._defaults.monthNames,o=i=-1,p=-1,q=-1,r=false,u=function(x){(x=C+1<b.length&&b.charAt(C+1)==x)&&C++;return x},s=function(x){u(x);x=RegExp("^\\d{1,"+(x=="@"?14:x=="!"?20:x=="y"?4:x=="o"?3:2)+
292
- "}");x=g.substring(y).match(x);if(!x)throw"Missing number at position "+y;y+=x[0].length;return parseInt(x[0],10)},v=function(x,D,K){x=u(x)?K:D;for(D=0;D<x.length;D++)if(g.substr(y,x[D].length).toLowerCase()==x[D].toLowerCase()){y+=x[D].length;return D+1}throw"Unknown name at position "+y;},w=function(){if(g.charAt(y)!=b.charAt(C))throw"Unexpected literal at position "+y;y++},y=0,C=0;C<b.length;C++)if(r)if(b.charAt(C)=="'"&&!u("'"))r=false;else w();else switch(b.charAt(C)){case "d":p=s("d");break;
293
- case "D":v("D",m,l);break;case "o":q=s("o");break;case "m":o=s("m");break;case "M":o=v("M",j,n);break;case "y":i=s("y");break;case "@":var B=new Date(s("@"));i=B.getFullYear();o=B.getMonth()+1;p=B.getDate();break;case "!":B=new Date((s("!")-this._ticksTo1970)/1E4);i=B.getFullYear();o=B.getMonth()+1;p=B.getDate();break;case "'":if(u("'"))w();else r=true;break;default:w()}if(i==-1)i=(new Date).getFullYear();else if(i<100)i+=(new Date).getFullYear()-(new Date).getFullYear()%100+(i<=k?0:-100);if(q>-1){o=
294
- 1;p=q;do{k=this._getDaysInMonth(i,o-1);if(p<=k)break;o++;p-=k}while(1)}B=this._daylightSavingAdjust(new Date(i,o-1,p));if(B.getFullYear()!=i||B.getMonth()+1!=o||B.getDate()!=p)throw"Invalid date";return B},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*
295
- 1E7,formatDate:function(b,g,i){if(!g)return"";var k=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,m=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort;i=(i?i.monthNames:null)||this._defaults.monthNames;var j=function(u){(u=r+1<b.length&&b.charAt(r+1)==u)&&r++;return u},n=function(u,s,v){s=""+s;if(j(u))for(;s.length<v;)s="0"+s;return s},o=function(u,s,v,w){return j(u)?w[s]:v[s]},p="",q=false;if(g)for(var r=0;r<b.length;r++)if(q)if(b.charAt(r)==
296
- "'"&&!j("'"))q=false;else p+=b.charAt(r);else switch(b.charAt(r)){case "d":p+=n("d",g.getDate(),2);break;case "D":p+=o("D",g.getDay(),k,m);break;case "o":p+=n("o",(g.getTime()-(new Date(g.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":p+=n("m",g.getMonth()+1,2);break;case "M":p+=o("M",g.getMonth(),l,i);break;case "y":p+=j("y")?g.getFullYear():(g.getYear()%100<10?"0":"")+g.getYear()%100;break;case "@":p+=g.getTime();break;case "!":p+=g.getTime()*1E4+this._ticksTo1970;break;case "'":if(j("'"))p+=
297
- "'";else q=true;break;default:p+=b.charAt(r)}return p},_possibleChars:function(b){for(var g="",i=false,k=function(l){(l=m+1<b.length&&b.charAt(m+1)==l)&&m++;return l},m=0;m<b.length;m++)if(i)if(b.charAt(m)=="'"&&!k("'"))i=false;else g+=b.charAt(m);else switch(b.charAt(m)){case "d":case "m":case "y":case "@":g+="0123456789";break;case "D":case "M":return null;case "'":if(k("'"))g+="'";else i=true;break;default:g+=b.charAt(m)}return g},_get:function(b,g){return b.settings[g]!==d?b.settings[g]:this._defaults[g]},
298
- _setDateFromField:function(b,g){if(b.input.val()!=b.lastVal){var i=this._get(b,"dateFormat"),k=b.lastVal=b.input?b.input.val():null,m,l;m=l=this._getDefaultDate(b);var j=this._getFormatConfig(b);try{m=this.parseDate(i,k,j)||l}catch(n){this.log(n);k=g?"":k}b.selectedDay=m.getDate();b.drawMonth=b.selectedMonth=m.getMonth();b.drawYear=b.selectedYear=m.getFullYear();b.currentDay=k?m.getDate():0;b.currentMonth=k?m.getMonth():0;b.currentYear=k?m.getFullYear():0;this._adjustInstDate(b)}},_getDefaultDate:function(b){return this._restrictMinMax(b,
299
- this._determineDate(b,this._get(b,"defaultDate"),new Date))},_determineDate:function(b,g,i){var k=function(l){var j=new Date;j.setDate(j.getDate()+l);return j},m=function(l){try{return a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),l,a.datepicker._getFormatConfig(b))}catch(j){}var n=(l.toLowerCase().match(/^c/)?a.datepicker._getDate(b):null)||new Date,o=n.getFullYear(),p=n.getMonth();n=n.getDate();for(var q=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,r=q.exec(l);r;){switch(r[2]||"d"){case "d":case "D":n+=
300
- parseInt(r[1],10);break;case "w":case "W":n+=parseInt(r[1],10)*7;break;case "m":case "M":p+=parseInt(r[1],10);n=Math.min(n,a.datepicker._getDaysInMonth(o,p));break;case "y":case "Y":o+=parseInt(r[1],10);n=Math.min(n,a.datepicker._getDaysInMonth(o,p))}r=q.exec(l)}return new Date(o,p,n)};if(g=(g=g==null?i:typeof g=="string"?m(g):typeof g=="number"?isNaN(g)?i:k(g):g)&&g.toString()=="Invalid Date"?i:g){g.setHours(0);g.setMinutes(0);g.setSeconds(0);g.setMilliseconds(0)}return this._daylightSavingAdjust(g)},
301
- _daylightSavingAdjust:function(b){if(!b)return null;b.setHours(b.getHours()>12?b.getHours()+2:0);return b},_setDate:function(b,g,i){var k=!g,m=b.selectedMonth,l=b.selectedYear;g=this._restrictMinMax(b,this._determineDate(b,g,new Date));b.selectedDay=b.currentDay=g.getDate();b.drawMonth=b.selectedMonth=b.currentMonth=g.getMonth();b.drawYear=b.selectedYear=b.currentYear=g.getFullYear();if((m!=b.selectedMonth||l!=b.selectedYear)&&!i)this._notifyChange(b);this._adjustInstDate(b);if(b.input)b.input.val(k?
302
- "":this._formatDate(b))},_getDate:function(b){return!b.currentYear||b.input&&b.input.val()==""?null:this._daylightSavingAdjust(new Date(b.currentYear,b.currentMonth,b.currentDay))},_generateHTML:function(b){var g=new Date;g=this._daylightSavingAdjust(new Date(g.getFullYear(),g.getMonth(),g.getDate()));var i=this._get(b,"isRTL"),k=this._get(b,"showButtonPanel"),m=this._get(b,"hideIfNoPrevNext"),l=this._get(b,"navigationAsDateFormat"),j=this._getNumberOfMonths(b),n=this._get(b,"showCurrentAtPos"),o=
303
- this._get(b,"stepMonths"),p=j[0]!=1||j[1]!=1,q=this._daylightSavingAdjust(!b.currentDay?new Date(9999,9,9):new Date(b.currentYear,b.currentMonth,b.currentDay)),r=this._getMinMaxDate(b,"min"),u=this._getMinMaxDate(b,"max");n=b.drawMonth-n;var s=b.drawYear;if(n<0){n+=12;s--}if(u){var v=this._daylightSavingAdjust(new Date(u.getFullYear(),u.getMonth()-j[0]*j[1]+1,u.getDate()));for(v=r&&v<r?r:v;this._daylightSavingAdjust(new Date(s,n,1))>v;){n--;if(n<0){n=11;s--}}}b.drawMonth=n;b.drawYear=s;v=this._get(b,
304
- "prevText");v=!l?v:this.formatDate(v,this._daylightSavingAdjust(new Date(s,n-o,1)),this._getFormatConfig(b));v=this._canAdjustMonth(b,-1,s,n)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+h+".datepicker._adjustDate('#"+b.id+"', -"+o+", 'M');\" title=\""+v+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+v+"</span></a>":m?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+v+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+
305
- v+"</span></a>";var w=this._get(b,"nextText");w=!l?w:this.formatDate(w,this._daylightSavingAdjust(new Date(s,n+o,1)),this._getFormatConfig(b));m=this._canAdjustMonth(b,+1,s,n)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+h+".datepicker._adjustDate('#"+b.id+"', +"+o+", 'M');\" title=\""+w+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+w+"</span></a>":m?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+w+'"><span class="ui-icon ui-icon-circle-triangle-'+
306
- (i?"w":"e")+'">'+w+"</span></a>";o=this._get(b,"currentText");w=this._get(b,"gotoCurrent")&&b.currentDay?q:g;o=!l?o:this.formatDate(o,w,this._getFormatConfig(b));l=!b.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+h+'.datepicker._hideDatepicker();">'+this._get(b,"closeText")+"</button>":"";k=k?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(i?l:"")+(this._isInRange(b,w)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+
307
- h+".datepicker._gotoToday('#"+b.id+"');\">"+o+"</button>":"")+(i?"":l)+"</div>":"";l=parseInt(this._get(b,"firstDay"),10);l=isNaN(l)?0:l;o=this._get(b,"showWeek");w=this._get(b,"dayNames");this._get(b,"dayNamesShort");var y=this._get(b,"dayNamesMin"),C=this._get(b,"monthNames"),B=this._get(b,"monthNamesShort"),x=this._get(b,"beforeShowDay"),D=this._get(b,"showOtherMonths"),K=this._get(b,"selectOtherMonths");this._get(b,"calculateWeek");for(var O=this._getDefaultDate(b),L="",H=0;H<j[0];H++){for(var P=
308
- "",I=0;I<j[1];I++){var M=this._daylightSavingAdjust(new Date(s,n,b.selectedDay)),A=" ui-corner-all",E="";if(p){E+='<div class="ui-datepicker-group';if(j[1]>1)switch(I){case 0:E+=" ui-datepicker-group-first";A=" ui-corner-"+(i?"right":"left");break;case j[1]-1:E+=" ui-datepicker-group-last";A=" ui-corner-"+(i?"left":"right");break;default:E+=" ui-datepicker-group-middle";A=""}E+='">'}E+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+A+'">'+(/all|left/.test(A)&&H==0?i?m:v:"")+
309
- (/all|right/.test(A)&&H==0?i?v:m:"")+this._generateMonthYearHeader(b,n,s,r,u,H>0||I>0,C,B)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var F=o?'<th class="ui-datepicker-week-col">'+this._get(b,"weekHeader")+"</th>":"";for(A=0;A<7;A++){var z=(A+l)%7;F+="<th"+((A+l+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+w[z]+'">'+y[z]+"</span></th>"}E+=F+"</tr></thead><tbody>";F=this._getDaysInMonth(s,n);if(s==b.selectedYear&&n==b.selectedMonth)b.selectedDay=Math.min(b.selectedDay,
310
- F);A=(this._getFirstDayOfMonth(s,n)-l+7)%7;F=p?6:Math.ceil((A+F)/7);z=this._daylightSavingAdjust(new Date(s,n,1-A));for(var Q=0;Q<F;Q++){E+="<tr>";var R=!o?"":'<td class="ui-datepicker-week-col">'+this._get(b,"calculateWeek")(z)+"</td>";for(A=0;A<7;A++){var J=x?x.apply(b.input?b.input[0]:null,[z]):[true,""],G=z.getMonth()!=n,N=G&&!K||!J[0]||r&&z<r||u&&z>u;R+='<td class="'+((A+l+6)%7>=5?" ui-datepicker-week-end":"")+(G?" ui-datepicker-other-month":"")+(z.getTime()==M.getTime()&&n==b.selectedMonth&&
311
- b._keyEvent||O.getTime()==z.getTime()&&O.getTime()==M.getTime()?" "+this._dayOverClass:"")+(N?" "+this._unselectableClass+" ui-state-disabled":"")+(G&&!D?"":" "+J[1]+(z.getTime()==q.getTime()?" "+this._currentClass:"")+(z.getTime()==g.getTime()?" ui-datepicker-today":""))+'"'+((!G||D)&&J[2]?' title="'+J[2]+'"':"")+(N?"":' onclick="DP_jQuery_'+h+".datepicker._selectDay('#"+b.id+"',"+z.getMonth()+","+z.getFullYear()+', this);return false;"')+">"+(G&&!D?"&#xa0;":N?'<span class="ui-state-default">'+z.getDate()+
312
- "</span>":'<a class="ui-state-default'+(z.getTime()==g.getTime()?" ui-state-highlight":"")+(z.getTime()==M.getTime()?" ui-state-active":"")+(G?" ui-priority-secondary":"")+'" href="#">'+z.getDate()+"</a>")+"</td>";z.setDate(z.getDate()+1);z=this._daylightSavingAdjust(z)}E+=R+"</tr>"}n++;if(n>11){n=0;s++}E+="</tbody></table>"+(p?"</div>"+(j[0]>0&&I==j[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");P+=E}L+=P}L+=k+(a.browser.msie&&parseInt(a.browser.version,10)<7&&!b.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':
313
- "");b._keyEvent=false;return L},_generateMonthYearHeader:function(b,g,i,k,m,l,j,n){var o=this._get(b,"changeMonth"),p=this._get(b,"changeYear"),q=this._get(b,"showMonthAfterYear"),r='<div class="ui-datepicker-title">',u="";if(l||!o)u+='<span class="ui-datepicker-month">'+j[g]+"</span>";else{j=k&&k.getFullYear()==i;var s=m&&m.getFullYear()==i;u+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+h+".datepicker._selectMonthYear('#"+b.id+"', this, 'M');\" onclick=\"DP_jQuery_"+h+".datepicker._clickMonthYear('#"+
314
- b.id+"');\">";for(var v=0;v<12;v++)if((!j||v>=k.getMonth())&&(!s||v<=m.getMonth()))u+='<option value="'+v+'"'+(v==g?' selected="selected"':"")+">"+n[v]+"</option>";u+="</select>"}q||(r+=u+(l||!(o&&p)?"&#xa0;":""));if(l||!p)r+='<span class="ui-datepicker-year">'+i+"</span>";else{n=this._get(b,"yearRange").split(":");var w=(new Date).getFullYear();j=function(y){y=y.match(/c[+-].*/)?i+parseInt(y.substring(1),10):y.match(/[+-].*/)?w+parseInt(y,10):parseInt(y,10);return isNaN(y)?w:y};g=j(n[0]);n=Math.max(g,
315
- j(n[1]||""));g=k?Math.max(g,k.getFullYear()):g;n=m?Math.min(n,m.getFullYear()):n;for(r+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+h+".datepicker._selectMonthYear('#"+b.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+h+".datepicker._clickMonthYear('#"+b.id+"');\">";g<=n;g++)r+='<option value="'+g+'"'+(g==i?' selected="selected"':"")+">"+g+"</option>";r+="</select>"}r+=this._get(b,"yearSuffix");if(q)r+=(l||!(o&&p)?"&#xa0;":"")+u;r+="</div>";return r},_adjustInstDate:function(b,g,i){var k=
316
- b.drawYear+(i=="Y"?g:0),m=b.drawMonth+(i=="M"?g:0);g=Math.min(b.selectedDay,this._getDaysInMonth(k,m))+(i=="D"?g:0);k=this._restrictMinMax(b,this._daylightSavingAdjust(new Date(k,m,g)));b.selectedDay=k.getDate();b.drawMonth=b.selectedMonth=k.getMonth();b.drawYear=b.selectedYear=k.getFullYear();if(i=="M"||i=="Y")this._notifyChange(b)},_restrictMinMax:function(b,g){var i=this._getMinMaxDate(b,"min"),k=this._getMinMaxDate(b,"max");g=i&&g<i?i:g;return g=k&&g>k?k:g},_notifyChange:function(b){var g=this._get(b,
317
- "onChangeMonthYear");if(g)g.apply(b.input?b.input[0]:null,[b.selectedYear,b.selectedMonth+1,b])},_getNumberOfMonths:function(b){b=this._get(b,"numberOfMonths");return b==null?[1,1]:typeof b=="number"?[1,b]:b},_getMinMaxDate:function(b,g){return this._determineDate(b,this._get(b,g+"Date"),null)},_getDaysInMonth:function(b,g){return 32-(new Date(b,g,32)).getDate()},_getFirstDayOfMonth:function(b,g){return(new Date(b,g,1)).getDay()},_canAdjustMonth:function(b,g,i,k){var m=this._getNumberOfMonths(b);
318
- i=this._daylightSavingAdjust(new Date(i,k+(g<0?g:m[0]*m[1]),1));g<0&&i.setDate(this._getDaysInMonth(i.getFullYear(),i.getMonth()));return this._isInRange(b,i)},_isInRange:function(b,g){var i=this._getMinMaxDate(b,"min"),k=this._getMinMaxDate(b,"max");return(!i||g.getTime()>=i.getTime())&&(!k||g.getTime()<=k.getTime())},_getFormatConfig:function(b){var g=this._get(b,"shortYearCutoff");g=typeof g!="string"?g:(new Date).getFullYear()%100+parseInt(g,10);return{shortYearCutoff:g,dayNamesShort:this._get(b,
319
- "dayNamesShort"),dayNames:this._get(b,"dayNames"),monthNamesShort:this._get(b,"monthNamesShort"),monthNames:this._get(b,"monthNames")}},_formatDate:function(b,g,i,k){if(!g){b.currentDay=b.selectedDay;b.currentMonth=b.selectedMonth;b.currentYear=b.selectedYear}g=g?typeof g=="object"?g:this._daylightSavingAdjust(new Date(k,i,g)):this._daylightSavingAdjust(new Date(b.currentYear,b.currentMonth,b.currentDay));return this.formatDate(this._get(b,"dateFormat"),g,this._getFormatConfig(b))}});a.fn.datepicker=
320
- function(b){if(!a.datepicker.initialized){a(document).mousedown(a.datepicker._checkExternalClick).find("body").append(a.datepicker.dpDiv);a.datepicker.initialized=true}var g=Array.prototype.slice.call(arguments,1);if(typeof b=="string"&&(b=="isDisabled"||b=="getDate"||b=="widget"))return a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(g));if(b=="option"&&arguments.length==2&&typeof arguments[1]=="string")return a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(g));
321
- return this.each(function(){typeof b=="string"?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(g)):a.datepicker._attachDatepicker(this,b)})};a.datepicker=new f;a.datepicker.initialized=false;a.datepicker.uuid=(new Date).getTime();a.datepicker.version="1.8.5";window["DP_jQuery_"+h]=a})(jQuery);
322
- (function(a,d){a.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",of:window,collision:"fit",using:function(f){var e=a(this).css(f).offset().top;e<0&&a(this).css("top",f.top-e)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");
323
- if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var f=this,e=f.options,h=e.title||"&#160;",b=a.ui.dialog.getTitleId(f.element),g=(f.uiDialog=a("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+e.dialogClass).css({zIndex:e.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(m){if(e.closeOnEscape&&m.keyCode&&m.keyCode===a.ui.keyCode.ESCAPE){f.close(m);m.preventDefault()}}).attr({role:"dialog",
324
- "aria-labelledby":b}).mousedown(function(m){f.moveToTop(false,m)});f.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var i=(f.uiDialogTitlebar=a("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g),k=a('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){k.addClass("ui-state-hover")},function(){k.removeClass("ui-state-hover")}).focus(function(){k.addClass("ui-state-focus")}).blur(function(){k.removeClass("ui-state-focus")}).click(function(m){f.close(m);
325
- return false}).appendTo(i);(f.uiDialogTitlebarCloseText=a("<span></span>")).addClass("ui-icon ui-icon-closethick").text(e.closeText).appendTo(k);a("<span></span>").addClass("ui-dialog-title").attr("id",b).html(h).prependTo(i);if(a.isFunction(e.beforeclose)&&!a.isFunction(e.beforeClose))e.beforeClose=e.beforeclose;i.find("*").add(i).disableSelection();e.draggable&&a.fn.draggable&&f._makeDraggable();e.resizable&&a.fn.resizable&&f._makeResizable();f._createButtons(e.buttons);f._isOpen=false;a.fn.bgiframe&&
326
- g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){this.overlay&&this.overlay.destroy();this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);return this},widget:function(){return this.uiDialog},close:function(f){var e=this,h;if(false!==e._trigger("beforeClose",f)){e.overlay&&e.overlay.destroy();
327
- e.uiDialog.unbind("keypress.ui-dialog");e._isOpen=false;if(e.options.hide)e.uiDialog.hide(e.options.hide,function(){e._trigger("close",f)});else{e.uiDialog.hide();e._trigger("close",f)}a.ui.dialog.overlay.resize();if(e.options.modal){h=0;a(".ui-dialog").each(function(){if(this!==e.uiDialog[0])h=Math.max(h,a(this).css("z-index"))});a.ui.dialog.maxZ=h}return e}},isOpen:function(){return this._isOpen},moveToTop:function(f,e){var h=this.options;if(h.modal&&!f||!h.stack&&!h.modal)return this._trigger("focus",
328
- e);if(h.zIndex>a.ui.dialog.maxZ)a.ui.dialog.maxZ=h.zIndex;if(this.overlay){a.ui.dialog.maxZ+=1;this.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ)}h={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};a.ui.dialog.maxZ+=1;this.uiDialog.css("z-index",a.ui.dialog.maxZ);this.element.attr(h);this._trigger("focus",e);return this},open:function(){if(!this._isOpen){var f=this.options,e=this.uiDialog;this.overlay=f.modal?new a.ui.dialog.overlay(this):
329
- null;e.next().length&&e.appendTo("body");this._size();this._position(f.position);e.show(f.show);this.moveToTop(true);f.modal&&e.bind("keypress.ui-dialog",function(h){if(h.keyCode===a.ui.keyCode.TAB){var b=a(":tabbable",this),g=b.filter(":first");b=b.filter(":last");if(h.target===b[0]&&!h.shiftKey){g.focus(1);return false}else if(h.target===g[0]&&h.shiftKey){b.focus(1);return false}}});a(this.element.find(":tabbable").get().concat(e.find(".ui-dialog-buttonpane :tabbable").get().concat(e.get()))).eq(0).focus();
330
- this._isOpen=true;this._trigger("open");return this}},_createButtons:function(f){var e=this,h=false,b=a("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=a("<div></div>").addClass("ui-dialog-buttonset").appendTo(b);e.uiDialog.find(".ui-dialog-buttonpane").remove();typeof f==="object"&&f!==null&&a.each(f,function(){return!(h=true)});if(h){a.each(f,function(i,k){k=a.isFunction(k)?{click:k,text:i}:k;var m=a("<button></button>",k).unbind("click").click(function(){k.click.apply(e.element[0],
331
- arguments)}).appendTo(g);a.fn.button&&m.button()});b.appendTo(e.uiDialog)}},_makeDraggable:function(){function f(i){return{position:i.position,offset:i.offset}}var e=this,h=e.options,b=a(document),g;e.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(i,k){g=h.height==="auto"?"auto":a(this).height();a(this).height(a(this).height()).addClass("ui-dialog-dragging");e._trigger("dragStart",i,f(k))},drag:function(i,
332
- k){e._trigger("drag",i,f(k))},stop:function(i,k){h.position=[k.position.left-b.scrollLeft(),k.position.top-b.scrollTop()];a(this).removeClass("ui-dialog-dragging").height(g);e._trigger("dragStop",i,f(k));a.ui.dialog.overlay.resize()}})},_makeResizable:function(f){function e(i){return{originalPosition:i.originalPosition,originalSize:i.originalSize,position:i.position,size:i.size}}f=f===d?this.options.resizable:f;var h=this,b=h.options,g=h.uiDialog.css("position");f=typeof f==="string"?f:"n,e,s,w,se,sw,ne,nw";
333
- h.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:h.element,maxWidth:b.maxWidth,maxHeight:b.maxHeight,minWidth:b.minWidth,minHeight:h._minHeight(),handles:f,start:function(i,k){a(this).addClass("ui-dialog-resizing");h._trigger("resizeStart",i,e(k))},resize:function(i,k){h._trigger("resize",i,e(k))},stop:function(i,k){a(this).removeClass("ui-dialog-resizing");b.height=a(this).height();b.width=a(this).width();h._trigger("resizeStop",i,e(k));a.ui.dialog.overlay.resize()}}).css("position",
334
- g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var f=this.options;return f.height==="auto"?f.minHeight:Math.min(f.minHeight,f.height)},_position:function(f){var e=[],h=[0,0],b;if(f){if(typeof f==="string"||typeof f==="object"&&"0"in f){e=f.split?f.split(" "):[f[0],f[1]];if(e.length===1)e[1]=e[0];a.each(["left","top"],function(g,i){if(+e[g]===e[g]){h[g]=e[g];e[g]=i}});f={my:e.join(" "),at:e.join(" "),offset:h.join(" ")}}f=a.extend({},a.ui.dialog.prototype.options.position,
335
- f)}else f=a.ui.dialog.prototype.options.position;(b=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(f);b||this.uiDialog.hide()},_setOption:function(f,e){var h=this.uiDialog,b=h.is(":data(resizable)"),g=false;switch(f){case "beforeclose":f="beforeClose";break;case "buttons":this._createButtons(e);g=true;break;case "closeText":this.uiDialogTitlebarCloseText.text(""+e);break;case "dialogClass":h.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
336
- e);break;case "disabled":e?h.addClass("ui-dialog-disabled"):h.removeClass("ui-dialog-disabled");break;case "draggable":e?this._makeDraggable():h.draggable("destroy");break;case "height":g=true;break;case "maxHeight":b&&h.resizable("option","maxHeight",e);g=true;break;case "maxWidth":b&&h.resizable("option","maxWidth",e);g=true;break;case "minHeight":b&&h.resizable("option","minHeight",e);g=true;break;case "minWidth":b&&h.resizable("option","minWidth",e);g=true;break;case "position":this._position(e);
337
- break;case "resizable":b&&!e&&h.resizable("destroy");b&&typeof e==="string"&&h.resizable("option","handles",e);!b&&e!==false&&this._makeResizable(e);break;case "title":a(".ui-dialog-title",this.uiDialogTitlebar).html(""+(e||"&#160;"));break;case "width":g=true}a.Widget.prototype._setOption.apply(this,arguments);g&&this._size()},_size:function(){var f=this.options,e;this.element.css({width:"auto",minHeight:0,height:0});if(f.minWidth>f.width)f.width=f.minWidth;e=this.uiDialog.css({height:"auto",width:f.width}).height();
338
- this.element.css(f.height==="auto"?{minHeight:Math.max(f.minHeight-e,0),height:a.support.minHeight?"auto":Math.max(f.minHeight-e,0)}:{minHeight:0,height:Math.max(f.height-e,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});a.extend(a.ui.dialog,{version:"1.8.5",uuid:0,maxZ:0,getTitleId:function(f){f=f.attr("id");if(!f){this.uuid+=1;f=this.uuid}return"ui-dialog-title-"+f},overlay:function(f){this.$el=a.ui.dialog.overlay.create(f)}});
339
- a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(f){return f+".dialog-overlay"}).join(" "),create:function(f){if(this.instances.length===0){setTimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(h){if(a(h.target).zIndex()<a.ui.dialog.overlay.maxZ)return false})},1);a(document).bind("keydown.dialog-overlay",function(h){if(f.options.closeOnEscape&&
340
- h.keyCode&&h.keyCode===a.ui.keyCode.ESCAPE){f.close(h);h.preventDefault()}});a(window).bind("resize.dialog-overlay",a.ui.dialog.overlay.resize)}var e=(this.oldInstances.pop()||a("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});a.fn.bgiframe&&e.bgiframe();this.instances.push(e);return e},destroy:function(f){this.oldInstances.push(this.instances.splice(a.inArray(f,this.instances),1)[0]);this.instances.length===0&&a([document,window]).unbind(".dialog-overlay");
341
- f.remove();var e=0;a.each(this.instances,function(){e=Math.max(e,this.css("z-index"))});this.maxZ=e},height:function(){var f,e;if(a.browser.msie&&a.browser.version<7){f=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);e=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return f<e?a(window).height()+"px":f+"px"}else return a(document).height()+"px"},width:function(){var f,e;if(a.browser.msie&&a.browser.version<7){f=Math.max(document.documentElement.scrollWidth,
342
- document.body.scrollWidth);e=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return f<e?a(window).width()+"px":f+"px"}else return a(document).width()+"px"},resize:function(){var f=a([]);a.each(a.ui.dialog.overlay.instances,function(){f=f.add(this)});f.css({width:0,height:0}).css({width:a.ui.dialog.overlay.width(),height:a.ui.dialog.overlay.height()})}});a.extend(a.ui.dialog.overlay.prototype,{destroy:function(){a.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
343
- (function(a){a.ui=a.ui||{};var d=/left|center|right/,f=/top|center|bottom/,e=a.fn.position,h=a.fn.offset;a.fn.position=function(b){if(!b||!b.of)return e.apply(this,arguments);b=a.extend({},b);var g=a(b.of),i=g[0],k=(b.collision||"flip").split(" "),m=b.offset?b.offset.split(" "):[0,0],l,j,n;if(i.nodeType===9){l=g.width();j=g.height();n={top:0,left:0}}else if(i.scrollTo&&i.document){l=g.width();j=g.height();n={top:g.scrollTop(),left:g.scrollLeft()}}else if(i.preventDefault){b.at="left top";l=j=0;n=
344
- {top:b.of.pageY,left:b.of.pageX}}else{l=g.outerWidth();j=g.outerHeight();n=g.offset()}a.each(["my","at"],function(){var o=(b[this]||"").split(" ");if(o.length===1)o=d.test(o[0])?o.concat(["center"]):f.test(o[0])?["center"].concat(o):["center","center"];o[0]=d.test(o[0])?o[0]:"center";o[1]=f.test(o[1])?o[1]:"center";b[this]=o});if(k.length===1)k[1]=k[0];m[0]=parseInt(m[0],10)||0;if(m.length===1)m[1]=m[0];m[1]=parseInt(m[1],10)||0;if(b.at[0]==="right")n.left+=l;else if(b.at[0]==="center")n.left+=l/
345
- 2;if(b.at[1]==="bottom")n.top+=j;else if(b.at[1]==="center")n.top+=j/2;n.left+=m[0];n.top+=m[1];return this.each(function(){var o=a(this),p=o.outerWidth(),q=o.outerHeight(),r=parseInt(a.curCSS(this,"marginLeft",true))||0,u=parseInt(a.curCSS(this,"marginTop",true))||0,s=p+r+parseInt(a.curCSS(this,"marginRight",true))||0,v=q+u+parseInt(a.curCSS(this,"marginBottom",true))||0,w=a.extend({},n),y;if(b.my[0]==="right")w.left-=p;else if(b.my[0]==="center")w.left-=p/2;if(b.my[1]==="bottom")w.top-=q;else if(b.my[1]===
346
- "center")w.top-=q/2;w.left=parseInt(w.left);w.top=parseInt(w.top);y={left:w.left-r,top:w.top-u};a.each(["left","top"],function(C,B){a.ui.position[k[C]]&&a.ui.position[k[C]][B](w,{targetWidth:l,targetHeight:j,elemWidth:p,elemHeight:q,collisionPosition:y,collisionWidth:s,collisionHeight:v,offset:m,my:b.my,at:b.at})});a.fn.bgiframe&&o.bgiframe();o.offset(a.extend(w,{using:b.using}))})};a.ui.position={fit:{left:function(b,g){var i=a(window);i=g.collisionPosition.left+g.collisionWidth-i.width()-i.scrollLeft();
347
- b.left=i>0?b.left-i:Math.max(b.left-g.collisionPosition.left,b.left)},top:function(b,g){var i=a(window);i=g.collisionPosition.top+g.collisionHeight-i.height()-i.scrollTop();b.top=i>0?b.top-i:Math.max(b.top-g.collisionPosition.top,b.top)}},flip:{left:function(b,g){if(g.at[0]!=="center"){var i=a(window);i=g.collisionPosition.left+g.collisionWidth-i.width()-i.scrollLeft();var k=g.my[0]==="left"?-g.elemWidth:g.my[0]==="right"?g.elemWidth:0,m=g.at[0]==="left"?g.targetWidth:-g.targetWidth,l=-2*g.offset[0];
348
- b.left+=g.collisionPosition.left<0?k+m+l:i>0?k+m+l:0}},top:function(b,g){if(g.at[1]!=="center"){var i=a(window);i=g.collisionPosition.top+g.collisionHeight-i.height()-i.scrollTop();var k=g.my[1]==="top"?-g.elemHeight:g.my[1]==="bottom"?g.elemHeight:0,m=g.at[1]==="top"?g.targetHeight:-g.targetHeight,l=-2*g.offset[1];b.top+=g.collisionPosition.top<0?k+m+l:i>0?k+m+l:0}}}};if(!a.offset.setOffset){a.offset.setOffset=function(b,g){if(/static/.test(a.curCSS(b,"position")))b.style.position="relative";var i=
349
- a(b),k=i.offset(),m=parseInt(a.curCSS(b,"top",true),10)||0,l=parseInt(a.curCSS(b,"left",true),10)||0;k={top:g.top-k.top+m,left:g.left-k.left+l};"using"in g?g.using.call(b,k):i.css(k)};a.fn.offset=function(b){var g=this[0];if(!g||!g.ownerDocument)return null;if(b)return this.each(function(){a.offset.setOffset(this,b)});return h.call(this)}}})(jQuery);
350
- (function(a,d){a.widget("ui.progressbar",{options:{value:0},min:0,max:100,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this._value()});this.valueDiv=a("<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");
351
- this.valueDiv.remove();a.Widget.prototype.destroy.apply(this,arguments)},value:function(f){if(f===d)return this._value();this._setOption("value",f);return this},_setOption:function(f,e){if(f==="value"){this.options.value=e;this._refreshValue();this._trigger("change")}a.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var f=this.options.value;if(typeof f!=="number")f=0;return Math.min(this.max,Math.max(this.min,f))},_refreshValue:function(){var f=this.value();this.valueDiv.toggleClass("ui-corner-right",
352
- f===this.max).width(f+"%");this.element.attr("aria-valuenow",f)}});a.extend(a.ui.progressbar,{version:"1.8.5"})})(jQuery);
353
- (function(a){a.widget("ui.slider",a.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var d=this,f=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");f.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");
354
- this.range=a([]);if(f.range){if(f.range===true){this.range=a("<div></div>");if(!f.values)f.values=[this._valueMin(),this._valueMin()];if(f.values.length&&f.values.length!==2)f.values=[f.values[0],f.values[0]]}else this.range=a("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(f.range==="min"||f.range==="max")this.range.addClass("ui-slider-range-"+f.range);this.range.addClass("ui-widget-header")}a(".ui-slider-handle",this.element).length===0&&a("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");
355
- if(f.values&&f.values.length)for(;a(".ui-slider-handle",this.element).length<f.values.length;)a("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");this.handles=a(".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(){f.disabled||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){if(f.disabled)a(this).blur();
356
- else{a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");a(this).addClass("ui-state-focus")}}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(e){a(this).data("index.ui-slider-handle",e)});this.handles.keydown(function(e){var h=true,b=a(this).data("index.ui-slider-handle"),g,i,k;if(!d.options.disabled){switch(e.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:h=
357
- false;if(!d._keySliding){d._keySliding=true;a(this).addClass("ui-state-active");g=d._start(e,b);if(g===false)return}}k=d.options.step;g=d.options.values&&d.options.values.length?i=d.values(b):i=d.value();switch(e.keyCode){case a.ui.keyCode.HOME:i=d._valueMin();break;case a.ui.keyCode.END:i=d._valueMax();break;case a.ui.keyCode.PAGE_UP:i=d._trimAlignValue(g+(d._valueMax()-d._valueMin())/5);break;case a.ui.keyCode.PAGE_DOWN:i=d._trimAlignValue(g-(d._valueMax()-d._valueMin())/5);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(g===
358
- d._valueMax())return;i=d._trimAlignValue(g+k);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(g===d._valueMin())return;i=d._trimAlignValue(g-k)}d._slide(e,b,i);return h}}).keyup(function(e){var h=a(this).data("index.ui-slider-handle");if(d._keySliding){d._keySliding=false;d._stop(e,h);d._change(e,h);a(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
359
- this._mouseDestroy();return this},_mouseCapture:function(d){var f=this.options,e,h,b,g,i;if(f.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();e=this._normValueFromMouse({x:d.pageX,y:d.pageY});h=this._valueMax()-this._valueMin()+1;g=this;this.handles.each(function(k){var m=Math.abs(e-g.values(k));if(h>m){h=m;b=a(this);i=k}});if(f.range===true&&this.values(1)===f.min){i+=1;b=a(this.handles[i])}if(this._start(d,
360
- i)===false)return false;this._mouseSliding=true;g._handleIndex=i;b.addClass("ui-state-active").focus();f=b.offset();this._clickOffset=!a(d.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:d.pageX-f.left-b.width()/2,top:d.pageY-f.top-b.height()/2-(parseInt(b.css("borderTopWidth"),10)||0)-(parseInt(b.css("borderBottomWidth"),10)||0)+(parseInt(b.css("marginTop"),10)||0)};this._slide(d,i,e);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(d){var f=
361
- this._normValueFromMouse({x:d.pageX,y:d.pageY});this._slide(d,this._handleIndex,f);return false},_mouseStop:function(d){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(d,this._handleIndex);this._change(d,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(d){var f;if(this.orientation==="horizontal"){f=
362
- this.elementSize.width;d=d.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{f=this.elementSize.height;d=d.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}f=d/f;if(f>1)f=1;if(f<0)f=0;if(this.orientation==="vertical")f=1-f;d=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+f*d)},_start:function(d,f){var e={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){e.value=this.values(f);
363
- e.values=this.values()}return this._trigger("start",d,e)},_slide:function(d,f,e){var h;if(this.options.values&&this.options.values.length){h=this.values(f?0:1);if(this.options.values.length===2&&this.options.range===true&&(f===0&&e>h||f===1&&e<h))e=h;if(e!==this.values(f)){h=this.values();h[f]=e;d=this._trigger("slide",d,{handle:this.handles[f],value:e,values:h});this.values(f?0:1);d!==false&&this.values(f,e,true)}}else if(e!==this.value()){d=this._trigger("slide",d,{handle:this.handles[f],value:e});
364
- d!==false&&this.value(e)}},_stop:function(d,f){var e={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){e.value=this.values(f);e.values=this.values()}this._trigger("stop",d,e)},_change:function(d,f){if(!this._keySliding&&!this._mouseSliding){var e={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){e.value=this.values(f);e.values=this.values()}this._trigger("change",d,e)}},value:function(d){if(arguments.length){this.options.value=
365
- this._trimAlignValue(d);this._refreshValue();this._change(null,0)}return this._value()},values:function(d,f){var e,h,b;if(arguments.length>1){this.options.values[d]=this._trimAlignValue(f);this._refreshValue();this._change(null,d)}if(arguments.length)if(a.isArray(arguments[0])){e=this.options.values;h=arguments[0];for(b=0;b<e.length;b+=1){e[b]=this._trimAlignValue(h[b]);this._change(null,b)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(d):this.value();
366
- else return this._values()},_setOption:function(d,f){var e,h=0;if(a.isArray(this.options.values))h=this.options.values.length;a.Widget.prototype._setOption.apply(this,arguments);switch(d){case "disabled":if(f){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();
367
- 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<h;e+=1)this._change(null,e);this._animateOff=false}},_value:function(){var d=this.options.value;return d=this._trimAlignValue(d)},_values:function(d){var f,e;if(arguments.length){f=this.options.values[d];
368
- return f=this._trimAlignValue(f)}else{f=this.options.values.slice();for(e=0;e<f.length;e+=1)f[e]=this._trimAlignValue(f[e]);return f}},_trimAlignValue:function(d){if(d<this._valueMin())return this._valueMin();if(d>this._valueMax())return this._valueMax();var f=this.options.step>0?this.options.step:1,e=d%f;d=d-e;if(Math.abs(e)*2>=f)d+=e>0?f:-f;return parseFloat(d.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var d=
369
- this.options.range,f=this.options,e=this,h=!this._animateOff?f.animate:false,b,g={},i,k,m,l;if(this.options.values&&this.options.values.length)this.handles.each(function(j){b=(e.values(j)-e._valueMin())/(e._valueMax()-e._valueMin())*100;g[e.orientation==="horizontal"?"left":"bottom"]=b+"%";a(this).stop(1,1)[h?"animate":"css"](g,f.animate);if(e.options.range===true)if(e.orientation==="horizontal"){if(j===0)e.range.stop(1,1)[h?"animate":"css"]({left:b+"%"},f.animate);if(j===1)e.range[h?"animate":"css"]({width:b-
370
- i+"%"},{queue:false,duration:f.animate})}else{if(j===0)e.range.stop(1,1)[h?"animate":"css"]({bottom:b+"%"},f.animate);if(j===1)e.range[h?"animate":"css"]({height:b-i+"%"},{queue:false,duration:f.animate})}i=b});else{k=this.value();m=this._valueMin();l=this._valueMax();b=l!==m?(k-m)/(l-m)*100:0;g[e.orientation==="horizontal"?"left":"bottom"]=b+"%";this.handle.stop(1,1)[h?"animate":"css"](g,f.animate);if(d==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[h?"animate":"css"]({width:b+"%"},
371
- f.animate);if(d==="max"&&this.orientation==="horizontal")this.range[h?"animate":"css"]({width:100-b+"%"},{queue:false,duration:f.animate});if(d==="min"&&this.orientation==="vertical")this.range.stop(1,1)[h?"animate":"css"]({height:b+"%"},f.animate);if(d==="max"&&this.orientation==="vertical")this.range[h?"animate":"css"]({height:100-b+"%"},{queue:false,duration:f.animate})}}});a.extend(a.ui.slider,{version:"1.8.5"})})(jQuery);
372
- (function(a,d){var f=0,e=0;a.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(h,b){if(h=="selected")this.options.collapsible&&b==this.options.selected||
373
- this.select(b);else{this.options[h]=b;this._tabify()}},_tabId:function(h){return h.title&&h.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+ ++f},_sanitizeSelector:function(h){return h.replace(/:/g,"\\:")},_cookie:function(){var h=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++e);return a.cookie.apply(null,[h].concat(a.makeArray(arguments)))},_ui:function(h,b){return{tab:h,panel:b,index:this.anchors.index(h)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var h=
374
- a(this);h.html(h.data("label.tabs")).removeData("label.tabs")})},_tabify:function(h){function b(q,r){q.css("display","");!a.support.opacity&&r.opacity&&q[0].style.removeAttribute("filter")}var g=this,i=this.options,k=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=a(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return a("a",this)[0]});this.panels=a([]);this.anchors.each(function(q,r){var u=a(r).attr("href"),s=u.split("#")[0],v;if(s&&(s===location.toString().split("#")[0]||
375
- (v=a("base")[0])&&s===v.href)){u=r.hash;r.href=u}if(k.test(u))g.panels=g.panels.add(g._sanitizeSelector(u));else if(u&&u!=="#"){a.data(r,"href.tabs",u);a.data(r,"load.tabs",u.replace(/#.*$/,""));u=g._tabId(r);r.href="#"+u;s=a("#"+u);if(!s.length){s=a(i.panelTemplate).attr("id",u).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(g.panels[q-1]||g.list);s.data("destroy.tabs",true)}g.panels=g.panels.add(s)}else i.disabled.push(q)});if(h){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");
376
- 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(i.selected===d){location.hash&&this.anchors.each(function(q,r){if(r.hash==location.hash){i.selected=q;return false}});if(typeof i.selected!=="number"&&i.cookie)i.selected=parseInt(g._cookie(),10);if(typeof i.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)i.selected=
377
- this.lis.index(this.lis.filter(".ui-tabs-selected"));i.selected=i.selected||(this.lis.length?0:-1)}else if(i.selected===null)i.selected=-1;i.selected=i.selected>=0&&this.anchors[i.selected]||i.selected<0?i.selected:0;i.disabled=a.unique(i.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(q){return g.lis.index(q)}))).sort();a.inArray(i.selected,i.disabled)!=-1&&i.disabled.splice(a.inArray(i.selected,i.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
378
- if(i.selected>=0&&this.anchors.length){this.panels.eq(i.selected).removeClass("ui-tabs-hide");this.lis.eq(i.selected).addClass("ui-tabs-selected ui-state-active");g.element.queue("tabs",function(){g._trigger("show",null,g._ui(g.anchors[i.selected],g.panels[i.selected]))});this.load(i.selected)}a(window).bind("unload",function(){g.lis.add(g.anchors).unbind(".tabs");g.lis=g.anchors=g.panels=null})}else i.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));this.element[i.collapsible?"addClass":
379
- "removeClass"]("ui-tabs-collapsible");i.cookie&&this._cookie(i.selected,i.cookie);h=0;for(var m;m=this.lis[h];h++)a(m)[a.inArray(h,i.disabled)!=-1&&!a(m).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");i.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(i.event!=="mouseover"){var l=function(q,r){r.is(":not(.ui-state-disabled)")&&r.addClass("ui-state-"+q)};this.lis.bind("mouseover.tabs",function(){l("hover",a(this))});this.lis.bind("mouseout.tabs",
380
- function(){a(this).removeClass("ui-state-hover")});this.anchors.bind("focus.tabs",function(){l("focus",a(this).closest("li"))});this.anchors.bind("blur.tabs",function(){a(this).closest("li").removeClass("ui-state-focus")})}var j,n;if(i.fx)if(a.isArray(i.fx)){j=i.fx[0];n=i.fx[1]}else j=n=i.fx;var o=n?function(q,r){a(q).closest("li").addClass("ui-tabs-selected ui-state-active");r.hide().removeClass("ui-tabs-hide").animate(n,n.duration||"normal",function(){b(r,n);g._trigger("show",null,g._ui(q,r[0]))})}:
381
- function(q,r){a(q).closest("li").addClass("ui-tabs-selected ui-state-active");r.removeClass("ui-tabs-hide");g._trigger("show",null,g._ui(q,r[0]))},p=j?function(q,r){r.animate(j,j.duration||"normal",function(){g.lis.removeClass("ui-tabs-selected ui-state-active");r.addClass("ui-tabs-hide");b(r,j);g.element.dequeue("tabs")})}:function(q,r){g.lis.removeClass("ui-tabs-selected ui-state-active");r.addClass("ui-tabs-hide");g.element.dequeue("tabs")};this.anchors.bind(i.event+".tabs",function(){var q=this,
382
- r=a(q).closest("li"),u=g.panels.filter(":not(.ui-tabs-hide)"),s=a(g._sanitizeSelector(q.hash));if(r.hasClass("ui-tabs-selected")&&!i.collapsible||r.hasClass("ui-state-disabled")||r.hasClass("ui-state-processing")||g.panels.filter(":animated").length||g._trigger("select",null,g._ui(this,s[0]))===false){this.blur();return false}i.selected=g.anchors.index(this);g.abort();if(i.collapsible)if(r.hasClass("ui-tabs-selected")){i.selected=-1;i.cookie&&g._cookie(i.selected,i.cookie);g.element.queue("tabs",
383
- function(){p(q,u)}).dequeue("tabs");this.blur();return false}else if(!u.length){i.cookie&&g._cookie(i.selected,i.cookie);g.element.queue("tabs",function(){o(q,s)});g.load(g.anchors.index(this));this.blur();return false}i.cookie&&g._cookie(i.selected,i.cookie);if(s.length){u.length&&g.element.queue("tabs",function(){p(q,u)});g.element.queue("tabs",function(){o(q,s)});g.load(g.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";a.browser.msie&&this.blur()});this.anchors.bind("click.tabs",
384
- function(){return false})},_getIndex:function(h){if(typeof h=="string")h=this.anchors.index(this.anchors.filter("[href$="+h+"]"));return h},destroy:function(){var h=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 b=a.data(this,"href.tabs");if(b)this.href=
385
- b;var g=a(this).unbind(".tabs");a.each(["href","load","cache"],function(i,k){g.removeData(k+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){a.data(this,"destroy.tabs")?a(this).remove():a(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});h.cookie&&this._cookie(null,h.cookie);return this},add:function(h,b,g){if(g===d)g=this.anchors.length;
386
- var i=this,k=this.options;b=a(k.tabTemplate.replace(/#\{href\}/g,h).replace(/#\{label\}/g,b));h=!h.indexOf("#")?h.replace("#",""):this._tabId(a("a",b)[0]);b.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var m=a("#"+h);m.length||(m=a(k.panelTemplate).attr("id",h).data("destroy.tabs",true));m.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(g>=this.lis.length){b.appendTo(this.list);m.appendTo(this.list[0].parentNode)}else{b.insertBefore(this.lis[g]);
387
- m.insertBefore(this.panels[g])}k.disabled=a.map(k.disabled,function(l){return l>=g?++l:l});this._tabify();if(this.anchors.length==1){k.selected=0;b.addClass("ui-tabs-selected ui-state-active");m.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){i._trigger("show",null,i._ui(i.anchors[0],i.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[g],this.panels[g]));return this},remove:function(h){h=this._getIndex(h);var b=this.options,g=this.lis.eq(h).remove(),i=this.panels.eq(h).remove();
388
- if(g.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(h+(h+1<this.anchors.length?1:-1));b.disabled=a.map(a.grep(b.disabled,function(k){return k!=h}),function(k){return k>=h?--k:k});this._tabify();this._trigger("remove",null,this._ui(g.find("a")[0],i[0]));return this},enable:function(h){h=this._getIndex(h);var b=this.options;if(a.inArray(h,b.disabled)!=-1){this.lis.eq(h).removeClass("ui-state-disabled");b.disabled=a.grep(b.disabled,function(g){return g!=h});this._trigger("enable",null,
389
- this._ui(this.anchors[h],this.panels[h]));return this}},disable:function(h){h=this._getIndex(h);var b=this.options;if(h!=b.selected){this.lis.eq(h).addClass("ui-state-disabled");b.disabled.push(h);b.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[h],this.panels[h]))}return this},select:function(h){h=this._getIndex(h);if(h==-1)if(this.options.collapsible&&this.options.selected!=-1)h=this.options.selected;else return this;this.anchors.eq(h).trigger(this.options.event+".tabs");return this},
390
- load:function(h){h=this._getIndex(h);var b=this,g=this.options,i=this.anchors.eq(h)[0],k=a.data(i,"load.tabs");this.abort();if(!k||this.element.queue("tabs").length!==0&&a.data(i,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(h).addClass("ui-state-processing");if(g.spinner){var m=a("span",i);m.data("label.tabs",m.html()).html(g.spinner)}this.xhr=a.ajax(a.extend({},g.ajaxOptions,{url:k,success:function(l,j){a(b._sanitizeSelector(i.hash)).html(l);b._cleanup();g.cache&&a.data(i,"cache.tabs",
391
- true);b._trigger("load",null,b._ui(b.anchors[h],b.panels[h]));try{g.ajaxOptions.success(l,j)}catch(n){}},error:function(l,j){b._cleanup();b._trigger("load",null,b._ui(b.anchors[h],b.panels[h]));try{g.ajaxOptions.error(l,j,h,i)}catch(n){}}}));b.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(h,
392
- b){this.anchors.eq(h).removeData("cache.tabs").data("load.tabs",b);return this},length:function(){return this.anchors.length}});a.extend(a.ui.tabs,{version:"1.8.5"});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(h,b){var g=this,i=this.options,k=g._rotate||(g._rotate=function(l){clearTimeout(g.rotation);g.rotation=setTimeout(function(){var j=i.selected;g.select(++j<g.anchors.length?j:0)},h);l&&l.stopPropagation()}),m=g._unrotate||(g._unrotate=!b?function(l){l.clientX&&g.rotate(null)}:
393
- function(){t=i.selected;k()});if(h){this.element.bind("tabsshow",k);this.anchors.bind(i.event+".tabs",m);k()}else{clearTimeout(g.rotation);this.element.unbind("tabsshow",k);this.anchors.unbind(i.event+".tabs",m);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
394
- (function(a){a.effects.blind=function(d){return this.queue(function(){var f=a(this),e=["position","top","left"],h=a.effects.setMode(f,d.options.mode||"hide"),b=d.options.direction||"vertical";a.effects.save(f,e);f.show();var g=a.effects.createWrapper(f).css({overflow:"hidden"}),i=b=="vertical"?"height":"width";b=b=="vertical"?g.height():g.width();h=="show"&&g.css(i,0);var k={};k[i]=h=="show"?b:0;g.animate(k,d.duration,d.options.easing,function(){h=="hide"&&f.hide();a.effects.restore(f,e);a.effects.removeWrapper(f);
395
- d.callback&&d.callback.apply(f[0],arguments);f.dequeue()})})}})(jQuery);
396
- (function(a){a.effects.bounce=function(d){return this.queue(function(){var f=a(this),e=["position","top","left"],h=a.effects.setMode(f,d.options.mode||"effect"),b=d.options.direction||"up",g=d.options.distance||20,i=d.options.times||5,k=d.duration||250;/show|hide/.test(h)&&e.push("opacity");a.effects.save(f,e);f.show();a.effects.createWrapper(f);var m=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";g=d.options.distance||(m=="top"?f.outerHeight({margin:true})/3:f.outerWidth({margin:true})/
397
- 3);if(h=="show")f.css("opacity",0).css(m,b=="pos"?-g:g);if(h=="hide")g/=i*2;h!="hide"&&i--;if(h=="show"){var l={opacity:1};l[m]=(b=="pos"?"+=":"-=")+g;f.animate(l,k/2,d.options.easing);g/=2;i--}for(l=0;l<i;l++){var j={},n={};j[m]=(b=="pos"?"-=":"+=")+g;n[m]=(b=="pos"?"+=":"-=")+g;f.animate(j,k/2,d.options.easing).animate(n,k/2,d.options.easing);g=h=="hide"?g*2:g/2}if(h=="hide"){l={opacity:0};l[m]=(b=="pos"?"-=":"+=")+g;f.animate(l,k/2,d.options.easing,function(){f.hide();a.effects.restore(f,e);a.effects.removeWrapper(f);
398
- d.callback&&d.callback.apply(this,arguments)})}else{j={};n={};j[m]=(b=="pos"?"-=":"+=")+g;n[m]=(b=="pos"?"+=":"-=")+g;f.animate(j,k/2,d.options.easing).animate(n,k/2,d.options.easing,function(){a.effects.restore(f,e);a.effects.removeWrapper(f);d.callback&&d.callback.apply(this,arguments)})}f.queue("fx",function(){f.dequeue()});f.dequeue()})}})(jQuery);
399
- (function(a){a.effects.clip=function(d){return this.queue(function(){var f=a(this),e=["position","top","left","height","width"],h=a.effects.setMode(f,d.options.mode||"hide"),b=d.options.direction||"vertical";a.effects.save(f,e);f.show();var g=a.effects.createWrapper(f).css({overflow:"hidden"});g=f[0].tagName=="IMG"?g:f;var i={size:b=="vertical"?"height":"width",position:b=="vertical"?"top":"left"};b=b=="vertical"?g.height():g.width();if(h=="show"){g.css(i.size,0);g.css(i.position,b/2)}var k={};k[i.size]=
400
- h=="show"?b:0;k[i.position]=h=="show"?0:b/2;g.animate(k,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){h=="hide"&&f.hide();a.effects.restore(f,e);a.effects.removeWrapper(f);d.callback&&d.callback.apply(f[0],arguments);f.dequeue()}})})}})(jQuery);
401
- jQuery.effects||function(a,d){function f(l){var j;if(l&&l.constructor==Array&&l.length==3)return l;if(j=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(l))return[parseInt(j[1],10),parseInt(j[2],10),parseInt(j[3],10)];if(j=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(l))return[parseFloat(j[1])*2.55,parseFloat(j[2])*2.55,parseFloat(j[3])*2.55];if(j=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(l))return[parseInt(j[1],
402
- 16),parseInt(j[2],16),parseInt(j[3],16)];if(j=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(l))return[parseInt(j[1]+j[1],16),parseInt(j[2]+j[2],16),parseInt(j[3]+j[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(l))return i.transparent;return i[a.trim(l).toLowerCase()]}function e(){var l=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,j={},n,o;if(l&&l.length&&l[0]&&l[l[0]])for(var p=l.length;p--;){n=l[p];if(typeof l[n]=="string"){o=n.replace(/\-(\w)/g,function(q,r){return r.toUpperCase()});
403
- j[o]=l[n]}}else for(n in l)if(typeof l[n]==="string")j[n]=l[n];return j}function h(l){var j,n;for(j in l){n=l[j];if(n==null||a.isFunction(n)||j in m||/scrollbar/.test(j)||!/color/i.test(j)&&isNaN(parseFloat(n)))delete l[j]}return l}function b(l,j){var n={_:0},o;for(o in j)if(l[o]!=j[o])n[o]=j[o];return n}function g(l,j,n,o){if(typeof l=="object"){o=j;n=null;j=l;l=j.effect}if(a.isFunction(j)){o=j;n=null;j={}}if(typeof j=="number"||a.fx.speeds[j]){o=n;n=j;j={}}if(a.isFunction(n)){o=n;n=null}j=j||{};
404
- n=n||j.duration;n=a.fx.off?0:typeof n=="number"?n:a.fx.speeds[n]||a.fx.speeds._default;o=o||j.complete;return[l,j,n,o]}a.effects={};a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(l,j){a.fx.step[j]=function(n){if(!n.colorInit){var o;o=n.elem;var p=j,q;do{q=a.curCSS(o,p);if(q!=""&&q!="transparent"||a.nodeName(o,"body"))break;p="backgroundColor"}while(o=o.parentNode);o=f(q);n.start=o;n.end=f(n.end);n.colorInit=true}n.elem.style[j]=
405
- "rgb("+Math.max(Math.min(parseInt(n.pos*(n.end[0]-n.start[0])+n.start[0],10),255),0)+","+Math.max(Math.min(parseInt(n.pos*(n.end[1]-n.start[1])+n.start[1],10),255),0)+","+Math.max(Math.min(parseInt(n.pos*(n.end[2]-n.start[2])+n.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,183,107],darkmagenta:[139,
406
- 0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,
407
- 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]},k=["add","remove","toggle"],m={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.effects.animateClass=function(l,j,n,o){if(a.isFunction(n)){o=n;n=null}return this.each(function(){var p=a(this),q=p.attr("style")||" ",r=h(e.call(this)),u,s=p.attr("className");a.each(k,function(v,w){l[w]&&p[w+"Class"](l[w])});
408
- u=h(e.call(this));p.attr("className",s);p.animate(b(r,u),j,n,function(){a.each(k,function(v,w){l[w]&&p[w+"Class"](l[w])});if(typeof p.attr("style")=="object"){p.attr("style").cssText="";p.attr("style").cssText=q}else p.attr("style",q);o&&o.apply(this,arguments)})})};a.fn.extend({_addClass:a.fn.addClass,addClass:function(l,j,n,o){return j?a.effects.animateClass.apply(this,[{add:l},j,n,o]):this._addClass(l)},_removeClass:a.fn.removeClass,removeClass:function(l,j,n,o){return j?a.effects.animateClass.apply(this,
409
- [{remove:l},j,n,o]):this._removeClass(l)},_toggleClass:a.fn.toggleClass,toggleClass:function(l,j,n,o,p){return typeof j=="boolean"||j===d?n?a.effects.animateClass.apply(this,[j?{add:l}:{remove:l},n,o,p]):this._toggleClass(l,j):a.effects.animateClass.apply(this,[{toggle:l},j,n,o])},switchClass:function(l,j,n,o,p){return a.effects.animateClass.apply(this,[{add:j,remove:l},n,o,p])}});a.extend(a.effects,{version:"1.8.5",save:function(l,j){for(var n=0;n<j.length;n++)j[n]!==null&&l.data("ec.storage."+j[n],
410
- l[0].style[j[n]])},restore:function(l,j){for(var n=0;n<j.length;n++)j[n]!==null&&l.css(j[n],l.data("ec.storage."+j[n]))},setMode:function(l,j){if(j=="toggle")j=l.is(":hidden")?"show":"hide";return j},getBaseline:function(l,j){var n,o;switch(l[0]){case "top":n=0;break;case "middle":n=0.5;break;case "bottom":n=1;break;default:n=l[0]/j.height}switch(l[1]){case "left":o=0;break;case "center":o=0.5;break;case "right":o=1;break;default:o=l[1]/j.width}return{x:o,y:n}},createWrapper:function(l){if(l.parent().is(".ui-effects-wrapper"))return l.parent();
411
- var j={width:l.outerWidth(true),height:l.outerHeight(true),"float":l.css("float")},n=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});l.wrap(n);n=l.parent();if(l.css("position")=="static"){n.css({position:"relative"});l.css({position:"relative"})}else{a.extend(j,{position:l.css("position"),zIndex:l.css("z-index")});a.each(["top","left","bottom","right"],function(o,p){j[p]=l.css(p);if(isNaN(parseInt(j[p],10)))j[p]="auto"});
412
- l.css({position:"relative",top:0,left:0})}return n.css(j).show()},removeWrapper:function(l){if(l.parent().is(".ui-effects-wrapper"))return l.parent().replaceWith(l);return l},setTransition:function(l,j,n,o){o=o||{};a.each(j,function(p,q){unit=l.cssUnit(q);if(unit[0]>0)o[q]=unit[0]*n+unit[1]});return o}});a.fn.extend({effect:function(l){var j=g.apply(this,arguments);j={options:j[1],duration:j[2],callback:j[3]};var n=a.effects[l];return n&&!a.fx.off?n.call(this,j):this},_show:a.fn.show,show:function(l){if(!l||
413
- typeof l=="number"||a.fx.speeds[l]||!a.effects[l])return this._show.apply(this,arguments);else{var j=g.apply(this,arguments);j[1].mode="show";return this.effect.apply(this,j)}},_hide:a.fn.hide,hide:function(l){if(!l||typeof l=="number"||a.fx.speeds[l]||!a.effects[l])return this._hide.apply(this,arguments);else{var j=g.apply(this,arguments);j[1].mode="hide";return this.effect.apply(this,j)}},__toggle:a.fn.toggle,toggle:function(l){if(!l||typeof l=="number"||a.fx.speeds[l]||!a.effects[l]||typeof l==
414
- "boolean"||a.isFunction(l))return this.__toggle.apply(this,arguments);else{var j=g.apply(this,arguments);j[1].mode="toggle";return this.effect.apply(this,j)}},cssUnit:function(l){var j=this.css(l),n=[];a.each(["em","px","%","pt"],function(o,p){if(j.indexOf(p)>0)n=[parseFloat(j),p]});return n}});a.easing.jswing=a.easing.swing;a.extend(a.easing,{def:"easeOutQuad",swing:function(l,j,n,o,p){return a.easing[a.easing.def](l,j,n,o,p)},easeInQuad:function(l,j,n,o,p){return o*(j/=p)*j+n},easeOutQuad:function(l,
415
- j,n,o,p){return-o*(j/=p)*(j-2)+n},easeInOutQuad:function(l,j,n,o,p){if((j/=p/2)<1)return o/2*j*j+n;return-o/2*(--j*(j-2)-1)+n},easeInCubic:function(l,j,n,o,p){return o*(j/=p)*j*j+n},easeOutCubic:function(l,j,n,o,p){return o*((j=j/p-1)*j*j+1)+n},easeInOutCubic:function(l,j,n,o,p){if((j/=p/2)<1)return o/2*j*j*j+n;return o/2*((j-=2)*j*j+2)+n},easeInQuart:function(l,j,n,o,p){return o*(j/=p)*j*j*j+n},easeOutQuart:function(l,j,n,o,p){return-o*((j=j/p-1)*j*j*j-1)+n},easeInOutQuart:function(l,j,n,o,p){if((j/=
416
- p/2)<1)return o/2*j*j*j*j+n;return-o/2*((j-=2)*j*j*j-2)+n},easeInQuint:function(l,j,n,o,p){return o*(j/=p)*j*j*j*j+n},easeOutQuint:function(l,j,n,o,p){return o*((j=j/p-1)*j*j*j*j+1)+n},easeInOutQuint:function(l,j,n,o,p){if((j/=p/2)<1)return o/2*j*j*j*j*j+n;return o/2*((j-=2)*j*j*j*j+2)+n},easeInSine:function(l,j,n,o,p){return-o*Math.cos(j/p*(Math.PI/2))+o+n},easeOutSine:function(l,j,n,o,p){return o*Math.sin(j/p*(Math.PI/2))+n},easeInOutSine:function(l,j,n,o,p){return-o/2*(Math.cos(Math.PI*j/p)-1)+
417
- n},easeInExpo:function(l,j,n,o,p){return j==0?n:o*Math.pow(2,10*(j/p-1))+n},easeOutExpo:function(l,j,n,o,p){return j==p?n+o:o*(-Math.pow(2,-10*j/p)+1)+n},easeInOutExpo:function(l,j,n,o,p){if(j==0)return n;if(j==p)return n+o;if((j/=p/2)<1)return o/2*Math.pow(2,10*(j-1))+n;return o/2*(-Math.pow(2,-10*--j)+2)+n},easeInCirc:function(l,j,n,o,p){return-o*(Math.sqrt(1-(j/=p)*j)-1)+n},easeOutCirc:function(l,j,n,o,p){return o*Math.sqrt(1-(j=j/p-1)*j)+n},easeInOutCirc:function(l,j,n,o,p){if((j/=p/2)<1)return-o/
418
- 2*(Math.sqrt(1-j*j)-1)+n;return o/2*(Math.sqrt(1-(j-=2)*j)+1)+n},easeInElastic:function(l,j,n,o,p){l=1.70158;var q=0,r=o;if(j==0)return n;if((j/=p)==1)return n+o;q||(q=p*0.3);if(r<Math.abs(o)){r=o;l=q/4}else l=q/(2*Math.PI)*Math.asin(o/r);return-(r*Math.pow(2,10*(j-=1))*Math.sin((j*p-l)*2*Math.PI/q))+n},easeOutElastic:function(l,j,n,o,p){l=1.70158;var q=0,r=o;if(j==0)return n;if((j/=p)==1)return n+o;q||(q=p*0.3);if(r<Math.abs(o)){r=o;l=q/4}else l=q/(2*Math.PI)*Math.asin(o/r);return r*Math.pow(2,-10*
419
- j)*Math.sin((j*p-l)*2*Math.PI/q)+o+n},easeInOutElastic:function(l,j,n,o,p){l=1.70158;var q=0,r=o;if(j==0)return n;if((j/=p/2)==2)return n+o;q||(q=p*0.3*1.5);if(r<Math.abs(o)){r=o;l=q/4}else l=q/(2*Math.PI)*Math.asin(o/r);if(j<1)return-0.5*r*Math.pow(2,10*(j-=1))*Math.sin((j*p-l)*2*Math.PI/q)+n;return r*Math.pow(2,-10*(j-=1))*Math.sin((j*p-l)*2*Math.PI/q)*0.5+o+n},easeInBack:function(l,j,n,o,p,q){if(q==d)q=1.70158;return o*(j/=p)*j*((q+1)*j-q)+n},easeOutBack:function(l,j,n,o,p,q){if(q==d)q=1.70158;
420
- return o*((j=j/p-1)*j*((q+1)*j+q)+1)+n},easeInOutBack:function(l,j,n,o,p,q){if(q==d)q=1.70158;if((j/=p/2)<1)return o/2*j*j*(((q*=1.525)+1)*j-q)+n;return o/2*((j-=2)*j*(((q*=1.525)+1)*j+q)+2)+n},easeInBounce:function(l,j,n,o,p){return o-a.easing.easeOutBounce(l,p-j,0,o,p)+n},easeOutBounce:function(l,j,n,o,p){return(j/=p)<1/2.75?o*7.5625*j*j+n:j<2/2.75?o*(7.5625*(j-=1.5/2.75)*j+0.75)+n:j<2.5/2.75?o*(7.5625*(j-=2.25/2.75)*j+0.9375)+n:o*(7.5625*(j-=2.625/2.75)*j+0.984375)+n},easeInOutBounce:function(l,
421
- j,n,o,p){if(j<p/2)return a.easing.easeInBounce(l,j*2,0,o,p)*0.5+n;return a.easing.easeOutBounce(l,j*2-p,0,o,p)*0.5+o*0.5+n}})}(jQuery);
422
- (function(a){a.effects.drop=function(d){return this.queue(function(){var f=a(this),e=["position","top","left","opacity"],h=a.effects.setMode(f,d.options.mode||"hide"),b=d.options.direction||"left";a.effects.save(f,e);f.show();a.effects.createWrapper(f);var g=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var i=d.options.distance||(g=="top"?f.outerHeight({margin:true})/2:f.outerWidth({margin:true})/2);if(h=="show")f.css("opacity",0).css(g,b=="pos"?-i:i);var k={opacity:h=="show"?1:
423
- 0};k[g]=(h=="show"?b=="pos"?"+=":"-=":b=="pos"?"-=":"+=")+i;f.animate(k,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){h=="hide"&&f.hide();a.effects.restore(f,e);a.effects.removeWrapper(f);d.callback&&d.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
424
- (function(a){a.effects.explode=function(d){return this.queue(function(){var f=d.options.pieces?Math.round(Math.sqrt(d.options.pieces)):3,e=d.options.pieces?Math.round(Math.sqrt(d.options.pieces)):3;d.options.mode=d.options.mode=="toggle"?a(this).is(":visible")?"hide":"show":d.options.mode;var h=a(this).show().css("visibility","hidden"),b=h.offset();b.top-=parseInt(h.css("marginTop"),10)||0;b.left-=parseInt(h.css("marginLeft"),10)||0;for(var g=h.outerWidth(true),i=h.outerHeight(true),k=0;k<f;k++)for(var m=
425
- 0;m<e;m++)h.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-m*(g/e),top:-k*(i/f)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g/e,height:i/f,left:b.left+m*(g/e)+(d.options.mode=="show"?(m-Math.floor(e/2))*(g/e):0),top:b.top+k*(i/f)+(d.options.mode=="show"?(k-Math.floor(f/2))*(i/f):0),opacity:d.options.mode=="show"?0:1}).animate({left:b.left+m*(g/e)+(d.options.mode=="show"?0:(m-Math.floor(e/2))*(g/e)),top:b.top+
426
- k*(i/f)+(d.options.mode=="show"?0:(k-Math.floor(f/2))*(i/f)),opacity:d.options.mode=="show"?1:0},d.duration||500);setTimeout(function(){d.options.mode=="show"?h.css({visibility:"visible"}):h.css({visibility:"visible"}).hide();d.callback&&d.callback.apply(h[0]);h.dequeue();a("div.ui-effects-explode").remove()},d.duration||500)})}})(jQuery);
427
- (function(a){a.effects.fade=function(d){return this.queue(function(){var f=a(this),e=a.effects.setMode(f,d.options.mode||"hide");f.animate({opacity:e},{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){d.callback&&d.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
428
- (function(a){a.effects.fold=function(d){return this.queue(function(){var f=a(this),e=["position","top","left"],h=a.effects.setMode(f,d.options.mode||"hide"),b=d.options.size||15,g=!!d.options.horizFirst,i=d.duration?d.duration/2:a.fx.speeds._default/2;a.effects.save(f,e);f.show();var k=a.effects.createWrapper(f).css({overflow:"hidden"}),m=h=="show"!=g,l=m?["width","height"]:["height","width"];m=m?[k.width(),k.height()]:[k.height(),k.width()];var j=/([0-9]+)%/.exec(b);if(j)b=parseInt(j[1],10)/100*
429
- m[h=="hide"?0:1];if(h=="show")k.css(g?{height:0,width:b}:{height:b,width:0});g={};j={};g[l[0]]=h=="show"?m[0]:b;j[l[1]]=h=="show"?m[1]:0;k.animate(g,i,d.options.easing).animate(j,i,d.options.easing,function(){h=="hide"&&f.hide();a.effects.restore(f,e);a.effects.removeWrapper(f);d.callback&&d.callback.apply(f[0],arguments);f.dequeue()})})}})(jQuery);
430
- (function(a){a.effects.highlight=function(d){return this.queue(function(){var f=a(this),e=["backgroundImage","backgroundColor","opacity"],h=a.effects.setMode(f,d.options.mode||"show"),b={backgroundColor:f.css("backgroundColor")};if(h=="hide")b.opacity=0;a.effects.save(f,e);f.show().css({backgroundImage:"none",backgroundColor:d.options.color||"#ffff99"}).animate(b,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){h=="hide"&&f.hide();a.effects.restore(f,e);h=="show"&&!a.support.opacity&&
431
- this.style.removeAttribute("filter");d.callback&&d.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
432
- (function(a){a.effects.pulsate=function(d){return this.queue(function(){var f=a(this),e=a.effects.setMode(f,d.options.mode||"show");times=(d.options.times||5)*2-1;duration=d.duration?d.duration/2:a.fx.speeds._default/2;isVisible=f.is(":visible");animateTo=0;if(!isVisible){f.css("opacity",0).show();animateTo=1}if(e=="hide"&&isVisible||e=="show"&&!isVisible)times--;for(e=0;e<times;e++){f.animate({opacity:animateTo},duration,d.options.easing);animateTo=(animateTo+1)%2}f.animate({opacity:animateTo},duration,
433
- d.options.easing,function(){animateTo==0&&f.hide();d.callback&&d.callback.apply(this,arguments)});f.queue("fx",function(){f.dequeue()}).dequeue()})}})(jQuery);
434
- (function(a){a.effects.puff=function(d){return this.queue(function(){var f=a(this),e=a.effects.setMode(f,d.options.mode||"hide"),h=parseInt(d.options.percent,10)||150,b=h/100,g={height:f.height(),width:f.width()};a.extend(d.options,{fade:true,mode:e,percent:e=="hide"?h:100,from:e=="hide"?g:{height:g.height*b,width:g.width*b}});f.effect("scale",d.options,d.duration,d.callback);f.dequeue()})};a.effects.scale=function(d){return this.queue(function(){var f=a(this),e=a.extend(true,{},d.options),h=a.effects.setMode(f,
435
- d.options.mode||"effect"),b=parseInt(d.options.percent,10)||(parseInt(d.options.percent,10)==0?0:h=="hide"?0:100),g=d.options.direction||"both",i=d.options.origin;if(h!="effect"){e.origin=i||["middle","center"];e.restore=true}i={height:f.height(),width:f.width()};f.from=d.options.from||(h=="show"?{height:0,width:0}:i);b={y:g!="horizontal"?b/100:1,x:g!="vertical"?b/100:1};f.to={height:i.height*b.y,width:i.width*b.x};if(d.options.fade){if(h=="show"){f.from.opacity=0;f.to.opacity=1}if(h=="hide"){f.from.opacity=
436
- 1;f.to.opacity=0}}e.from=f.from;e.to=f.to;e.mode=h;f.effect("size",e,d.duration,d.callback);f.dequeue()})};a.effects.size=function(d){return this.queue(function(){var f=a(this),e=["position","top","left","width","height","overflow","opacity"],h=["position","top","left","overflow","opacity"],b=["width","height","overflow"],g=["fontSize"],i=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],k=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],m=a.effects.setMode(f,
437
- d.options.mode||"effect"),l=d.options.restore||false,j=d.options.scale||"both",n=d.options.origin,o={height:f.height(),width:f.width()};f.from=d.options.from||o;f.to=d.options.to||o;if(n){n=a.effects.getBaseline(n,o);f.from.top=(o.height-f.from.height)*n.y;f.from.left=(o.width-f.from.width)*n.x;f.to.top=(o.height-f.to.height)*n.y;f.to.left=(o.width-f.to.width)*n.x}var p={from:{y:f.from.height/o.height,x:f.from.width/o.width},to:{y:f.to.height/o.height,x:f.to.width/o.width}};if(j=="box"||j=="both"){if(p.from.y!=
438
- p.to.y){e=e.concat(i);f.from=a.effects.setTransition(f,i,p.from.y,f.from);f.to=a.effects.setTransition(f,i,p.to.y,f.to)}if(p.from.x!=p.to.x){e=e.concat(k);f.from=a.effects.setTransition(f,k,p.from.x,f.from);f.to=a.effects.setTransition(f,k,p.to.x,f.to)}}if(j=="content"||j=="both")if(p.from.y!=p.to.y){e=e.concat(g);f.from=a.effects.setTransition(f,g,p.from.y,f.from);f.to=a.effects.setTransition(f,g,p.to.y,f.to)}a.effects.save(f,l?e:h);f.show();a.effects.createWrapper(f);f.css("overflow","hidden").css(f.from);
439
- if(j=="content"||j=="both"){i=i.concat(["marginTop","marginBottom"]).concat(g);k=k.concat(["marginLeft","marginRight"]);b=e.concat(i).concat(k);f.find("*[width]").each(function(){child=a(this);l&&a.effects.save(child,b);var q={height:child.height(),width:child.width()};child.from={height:q.height*p.from.y,width:q.width*p.from.x};child.to={height:q.height*p.to.y,width:q.width*p.to.x};if(p.from.y!=p.to.y){child.from=a.effects.setTransition(child,i,p.from.y,child.from);child.to=a.effects.setTransition(child,
440
- i,p.to.y,child.to)}if(p.from.x!=p.to.x){child.from=a.effects.setTransition(child,k,p.from.x,child.from);child.to=a.effects.setTransition(child,k,p.to.x,child.to)}child.css(child.from);child.animate(child.to,d.duration,d.options.easing,function(){l&&a.effects.restore(child,b)})})}f.animate(f.to,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){f.to.opacity===0&&f.css("opacity",f.from.opacity);m=="hide"&&f.hide();a.effects.restore(f,l?e:h);a.effects.removeWrapper(f);d.callback&&
441
- d.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
442
- (function(a){a.effects.shake=function(d){return this.queue(function(){var f=a(this),e=["position","top","left"];a.effects.setMode(f,d.options.mode||"effect");var h=d.options.direction||"left",b=d.options.distance||20,g=d.options.times||3,i=d.duration||d.options.duration||140;a.effects.save(f,e);f.show();a.effects.createWrapper(f);var k=h=="up"||h=="down"?"top":"left",m=h=="up"||h=="left"?"pos":"neg";h={};var l={},j={};h[k]=(m=="pos"?"-=":"+=")+b;l[k]=(m=="pos"?"+=":"-=")+b*2;j[k]=(m=="pos"?"-=":"+=")+
443
- b*2;f.animate(h,i,d.options.easing);for(b=1;b<g;b++)f.animate(l,i,d.options.easing).animate(j,i,d.options.easing);f.animate(l,i,d.options.easing).animate(h,i/2,d.options.easing,function(){a.effects.restore(f,e);a.effects.removeWrapper(f);d.callback&&d.callback.apply(this,arguments)});f.queue("fx",function(){f.dequeue()});f.dequeue()})}})(jQuery);
444
- (function(a){a.effects.slide=function(d){return this.queue(function(){var f=a(this),e=["position","top","left"],h=a.effects.setMode(f,d.options.mode||"show"),b=d.options.direction||"left";a.effects.save(f,e);f.show();a.effects.createWrapper(f).css({overflow:"hidden"});var g=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var i=d.options.distance||(g=="top"?f.outerHeight({margin:true}):f.outerWidth({margin:true}));if(h=="show")f.css(g,b=="pos"?-i:i);var k={};k[g]=(h=="show"?b=="pos"?
445
- "+=":"-=":b=="pos"?"-=":"+=")+i;f.animate(k,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){h=="hide"&&f.hide();a.effects.restore(f,e);a.effects.removeWrapper(f);d.callback&&d.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
446
- (function(a){a.effects.transfer=function(d){return this.queue(function(){var f=a(this),e=a(d.options.to),h=e.offset();e={top:h.top,left:h.left,height:e.innerHeight(),width:e.innerWidth()};h=f.offset();var b=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(d.options.className).css({top:h.top,left:h.left,height:f.innerHeight(),width:f.innerWidth(),position:"absolute"}).animate(e,d.duration,d.options.easing,function(){b.remove();d.callback&&d.callback.apply(f[0],arguments);
447
- f.dequeue()})})}})(jQuery);
448
- (function(a){a.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var d=this,f=d.options;d.running=0;d.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");d.headers=
449
- d.element.find(f.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){f.disabled||a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){f.disabled||a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){f.disabled||a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){f.disabled||a(this).removeClass("ui-state-focus")});d.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
450
- if(f.navigation){var e=d.element.find("a").filter(f.navigationFilter).eq(0);if(e.length){var h=e.closest(".ui-accordion-header");d.active=h.length?h:e.closest(".ui-accordion-content").prev()}}d.active=d._findActive(d.active||f.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all ui-corner-top");d.active.next().addClass("ui-accordion-content-active");d._createIcons();d.resize();d.element.attr("role","tablist");d.headers.attr("role","tab").bind("keydown.accordion",function(b){return d._keydown(b)}).next().attr("role",
451
- "tabpanel");d.headers.not(d.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();d.active.length?d.active.attr({"aria-expanded":"true",tabIndex:0}):d.headers.eq(0).attr("tabIndex",0);a.browser.safari||d.headers.find("a").attr("tabIndex",-1);f.event&&d.headers.bind(f.event.split(" ").join(".accordion ")+".accordion",function(b){d._clickHandler.call(d,b,this);b.preventDefault()})},_createIcons:function(){var d=this.options;if(d.icons){a("<span></span>").addClass("ui-icon "+d.icons.header).prependTo(this.headers);
452
- this.active.children(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var d=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");
453
- this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var f=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(d.autoHeight||d.fillHeight)f.css("height","");return a.Widget.prototype.destroy.call(this)},_setOption:function(d,f){a.Widget.prototype._setOption.apply(this,arguments);d=="active"&&this.activate(f);if(d=="icons"){this._destroyIcons();
454
- f&&this._createIcons()}if(d=="disabled")this.headers.add(this.headers.next())[f?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(d){if(!(this.options.disabled||d.altKey||d.ctrlKey)){var f=a.ui.keyCode,e=this.headers.length,h=this.headers.index(d.target),b=false;switch(d.keyCode){case f.RIGHT:case f.DOWN:b=this.headers[(h+1)%e];break;case f.LEFT:case f.UP:b=this.headers[(h-1+e)%e];break;case f.SPACE:case f.ENTER:this._clickHandler({target:d.target},d.target);
455
- d.preventDefault()}if(b){a(d.target).attr("tabIndex",-1);a(b).attr("tabIndex",0);b.focus();return false}return true}},resize:function(){var d=this.options,f;if(d.fillSpace){if(a.browser.msie){var e=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}f=this.element.parent().height();a.browser.msie&&this.element.parent().css("overflow",e);this.headers.each(function(){f-=a(this).outerHeight(true)});this.headers.next().each(function(){a(this).height(Math.max(0,f-a(this).innerHeight()+
456
- a(this).height()))}).css("overflow","auto")}else if(d.autoHeight){f=0;this.headers.next().each(function(){f=Math.max(f,a(this).height("").height())}).height(f)}return this},activate:function(d){this.options.active=d;d=this._findActive(d)[0];this._clickHandler({target:d},d);return this},_findActive:function(d){return d?typeof d==="number"?this.headers.filter(":eq("+d+")"):this.headers.not(this.headers.not(d)):d===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(d,f){var e=this.options;
457
- if(!e.disabled)if(d.target){var h=a(d.currentTarget||f),b=h[0]===this.active[0];e.active=e.collapsible&&b?false:this.headers.index(h);if(!(this.running||!e.collapsible&&b)){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(e.icons.headerSelected).addClass(e.icons.header);if(!b){h.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(e.icons.header).addClass(e.icons.headerSelected);
458
- h.next().addClass("ui-accordion-content-active")}k=h.next();g=this.active.next();i={options:e,newHeader:b&&e.collapsible?a([]):h,oldHeader:this.active,newContent:b&&e.collapsible?a([]):k,oldContent:g};e=this.headers.index(this.active[0])>this.headers.index(h[0]);this.active=b?a([]):h;this._toggle(k,g,i,b,e)}}else if(e.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(e.icons.headerSelected).addClass(e.icons.header);
459
- this.active.next().addClass("ui-accordion-content-active");var g=this.active.next(),i={options:e,newHeader:a([]),oldHeader:e.active,newContent:a([]),oldContent:g},k=this.active=a([]);this._toggle(k,g,i)}},_toggle:function(d,f,e,h,b){var g=this,i=g.options;g.toShow=d;g.toHide=f;g.data=e;var k=function(){if(g)return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data);g.running=f.size()===0?d.size():f.size();if(i.animated){e={};e=i.collapsible&&h?{toShow:a([]),toHide:f,complete:k,
460
- down:b,autoHeight:i.autoHeight||i.fillSpace}:{toShow:d,toHide:f,complete:k,down:b,autoHeight:i.autoHeight||i.fillSpace};if(!i.proxied)i.proxied=i.animated;if(!i.proxiedDuration)i.proxiedDuration=i.duration;i.animated=a.isFunction(i.proxied)?i.proxied(e):i.proxied;i.duration=a.isFunction(i.proxiedDuration)?i.proxiedDuration(e):i.proxiedDuration;h=a.ui.accordion.animations;var m=i.duration,l=i.animated;if(l&&!h[l]&&!a.easing[l])l="slide";h[l]||(h[l]=function(j){this.slide(j,{easing:l,duration:m||700})});
461
- h[l](e)}else{if(i.collapsible&&h)d.toggle();else{f.hide();d.show()}k(true)}f.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();d.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(d){this.running=d?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");this._trigger("change",null,this.data)}}});a.extend(a.ui.accordion,{version:"1.8.5",animations:{slide:function(d,
462
- f){d=a.extend({easing:"swing",duration:300},d,f);if(d.toHide.size())if(d.toShow.size()){var e=d.toShow.css("overflow"),h=0,b={},g={},i,k=d.toShow;i=k[0].style.width;k.width(parseInt(k.parent().width(),10)-parseInt(k.css("paddingLeft"),10)-parseInt(k.css("paddingRight"),10)-(parseInt(k.css("borderLeftWidth"),10)||0)-(parseInt(k.css("borderRightWidth"),10)||0));a.each(["height","paddingTop","paddingBottom"],function(m,l){g[l]="hide";var j=(""+a.css(d.toShow[0],l)).match(/^([\d+-.]+)(.*)$/);b[l]={value:j[1],
463
- unit:j[2]||"px"}});d.toShow.css({height:0,overflow:"hidden"}).show();d.toHide.filter(":hidden").each(d.complete).end().filter(":visible").animate(g,{step:function(m,l){if(l.prop=="height")h=l.end-l.start===0?0:(l.now-l.start)/(l.end-l.start);d.toShow[0].style[l.prop]=h*b[l.prop].value+b[l.prop].unit},duration:d.duration,easing:d.easing,complete:function(){d.autoHeight||d.toShow.css("height","");d.toShow.css({width:i,overflow:e});d.complete()}})}else d.toHide.animate({height:"hide",paddingTop:"hide",
464
- paddingBottom:"hide"},d);else d.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},d)},bounceslide:function(d){this.slide(d,{easing:d.down?"easeOutBounce":"swing",duration:d.down?1E3:200})}}})})(jQuery);
465
- (function(a){a.widget("ui.autocomplete",{options:{appendTo:"body",delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},_create:function(){var d=this,f=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){if(!d.options.disabled){var h=a.ui.keyCode;switch(e.keyCode){case h.PAGE_UP:d._move("previousPage",
466
- e);break;case h.PAGE_DOWN:d._move("nextPage",e);break;case h.UP:d._move("previous",e);e.preventDefault();break;case h.DOWN:d._move("next",e);e.preventDefault();break;case h.ENTER:case h.NUMPAD_ENTER:d.menu.element.is(":visible")&&e.preventDefault();case h.TAB:if(!d.menu.active)break;d.menu.select(e);break;case h.ESCAPE:d.element.val(d.term);d.close(e);break;default:clearTimeout(d.searching);d.searching=setTimeout(function(){if(d.term!=d.element.val()){d.selectedItem=null;d.search(null,e)}},d.options.delay)}}}).bind("focus.autocomplete",
467
- function(){if(!d.options.disabled){d.selectedItem=null;d.previous=d.element.val()}}).bind("blur.autocomplete",function(e){if(!d.options.disabled){clearTimeout(d.searching);d.closing=setTimeout(function(){d.close(e);d._change(e)},150)}});this._initSource();this.response=function(){return d._response.apply(d,arguments)};this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||"body",f)[0]).mousedown(function(e){var h=d.menu.element[0];e.target===h&&setTimeout(function(){a(document).one("mousedown",
468
- function(b){b.target!==d.element[0]&&b.target!==h&&!a.ui.contains(h,b.target)&&d.close()})},1);setTimeout(function(){clearTimeout(d.closing)},13)}).menu({focus:function(e,h){var b=h.item.data("item.autocomplete");false!==d._trigger("focus",null,{item:b})&&/^key/.test(e.originalEvent.type)&&d.element.val(b.value)},selected:function(e,h){var b=h.item.data("item.autocomplete"),g=d.previous;if(d.element[0]!==f.activeElement){d.element.focus();d.previous=g}if(false!==d._trigger("select",e,{item:b})){d.term=
469
- b.value;d.element.val(b.value)}d.close(e);d.selectedItem=b},blur:function(){d.menu.element.is(":visible")&&d.element.val()!==d.term&&d.element.val(d.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");a.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();a.Widget.prototype.destroy.call(this)},
470
- _setOption:function(d,f){a.Widget.prototype._setOption.apply(this,arguments);d==="source"&&this._initSource();if(d==="appendTo")this.menu.element.appendTo(a(f||"body",this.element[0].ownerDocument)[0])},_initSource:function(){var d=this,f,e;if(a.isArray(this.options.source)){f=this.options.source;this.source=function(h,b){b(a.ui.autocomplete.filter(f,h.term))}}else if(typeof this.options.source==="string"){e=this.options.source;this.source=function(h,b){d.xhr&&d.xhr.abort();d.xhr=a.getJSON(e,h,function(g,
471
- i,k){k===d.xhr&&b(g);d.xhr=null})}}else this.source=this.options.source},search:function(d,f){d=d!=null?d:this.element.val();this.term=this.element.val();if(d.length<this.options.minLength)return this.close(f);clearTimeout(this.closing);if(this._trigger("search")!==false)return this._search(d)},_search:function(d){this.element.addClass("ui-autocomplete-loading");this.source({term:d},this.response)},_response:function(d){if(d.length){d=this._normalize(d);this._suggest(d);this._trigger("open")}else this.close();
472
- this.element.removeClass("ui-autocomplete-loading")},close:function(d){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this._trigger("close",d);this.menu.element.hide();this.menu.deactivate()}},_change:function(d){this.previous!==this.element.val()&&this._trigger("change",d,{item:this.selectedItem})},_normalize:function(d){if(d.length&&d[0].label&&d[0].value)return d;return a.map(d,function(f){if(typeof f==="string")return{label:f,value:f};return a.extend({label:f.label||f.value,value:f.value||
473
- f.label},f)})},_suggest:function(d){var f=this.menu.element.empty().zIndex(this.element.zIndex()+1),e;this._renderMenu(f,d);this.menu.deactivate();this.menu.refresh();this.menu.element.show().position(a.extend({of:this.element},this.options.position));d=f.width("").outerWidth();e=this.element.outerWidth();f.outerWidth(Math.max(d,e))},_renderMenu:function(d,f){var e=this;a.each(f,function(h,b){e._renderItem(d,b)})},_renderItem:function(d,f){return a("<li></li>").data("item.autocomplete",f).append(a("<a></a>").text(f.label)).appendTo(d)},
474
- _move:function(d,f){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(d)||this.menu.last()&&/^next/.test(d)){this.element.val(this.term);this.menu.deactivate()}else this.menu[d](f);else this.search(null,f)},widget:function(){return this.menu.element}});a.extend(a.ui.autocomplete,{escapeRegex:function(d){return d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(d,f){var e=RegExp(a.ui.autocomplete.escapeRegex(f),"i");return a.grep(d,function(h){return e.test(h.label||
475
- h.value||h)})}})})(jQuery);
476
- (function(a){a.widget("ui.menu",{_create:function(){var d=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(f){if(a(f.target).closest(".ui-menu-item a").length){f.preventDefault();d.select(f)}});this.refresh()},refresh:function(){var d=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(f){d.activate(f,
477
- a(this).parent())}).mouseleave(function(){d.deactivate()})},activate:function(d,f){this.deactivate();if(this.hasScroll()){var e=f.offset().top-this.element.offset().top,h=this.element.attr("scrollTop"),b=this.element.height();if(e<0)this.element.attr("scrollTop",h+e);else e>=b&&this.element.attr("scrollTop",h+e-b+f.height())}this.active=f.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",d,{item:f})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
478
- this._trigger("blur");this.active=null}},next:function(d){this.move("next",".ui-menu-item:first",d)},previous:function(d){this.move("prev",".ui-menu-item:last",d)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(d,f,e){if(this.active){d=this.active[d+"All"](".ui-menu-item").eq(0);d.length?this.activate(e,d):this.activate(e,this.element.children(f))}else this.activate(e,
479
- this.element.children(f))},nextPage:function(d){if(this.hasScroll())if(!this.active||this.last())this.activate(d,this.element.children(":first"));else{var f=this.active.offset().top,e=this.element.height(),h=this.element.children("li").filter(function(){var b=a(this).offset().top-f-e+a(this).height();return b<10&&b>-10});h.length||(h=this.element.children(":last"));this.activate(d,h)}else this.activate(d,this.element.children(!this.active||this.last()?":first":":last"))},previousPage:function(d){if(this.hasScroll())if(!this.active||
480
- this.first())this.activate(d,this.element.children(":last"));else{var f=this.active.offset().top,e=this.element.height();result=this.element.children("li").filter(function(){var h=a(this).offset().top-f+e-a(this).height();return h<10&&h>-10});result.length||(result=this.element.children(":first"));this.activate(d,result)}else this.activate(d,this.element.children(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(d){this._trigger("selected",
481
- d,{item:this.active})}})})(jQuery);
482
- (function(a){var d,f=function(h){a(":ui-button",h.target.form).each(function(){var b=a(this).data("button");setTimeout(function(){b.refresh()},1)})},e=function(h){var b=h.name,g=h.form,i=a([]);if(b)i=g?a(g).find("[name='"+b+"']"):a("[name='"+b+"']",h.ownerDocument).filter(function(){return!this.form});return i};a.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",f);
483
- if(typeof this.options.disabled!=="boolean")this.options.disabled=this.element.attr("disabled");this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var h=this,b=this.options,g=this.type==="checkbox"||this.type==="radio",i="ui-state-hover"+(!g?" ui-state-active":"");if(b.label===null)b.label=this.buttonElement.html();if(this.element.is(":disabled"))b.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",
484
- function(){if(!b.disabled){a(this).addClass("ui-state-hover");this===d&&a(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){b.disabled||a(this).removeClass(i)}).bind("focus.button",function(){a(this).addClass("ui-state-focus")}).bind("blur.button",function(){a(this).removeClass("ui-state-focus")});g&&this.element.bind("change.button",function(){h.refresh()});if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(b.disabled)return false;a(this).toggleClass("ui-state-active");
485
- h.buttonElement.attr("aria-pressed",h.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",function(){if(b.disabled)return false;a(this).addClass("ui-state-active");h.buttonElement.attr("aria-pressed",true);var k=h.element[0];e(k).not(k).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)});else{this.buttonElement.bind("mousedown.button",function(){if(b.disabled)return false;a(this).addClass("ui-state-active");
486
- d=this;a(document).one("mouseup",function(){d=null})}).bind("mouseup.button",function(){if(b.disabled)return false;a(this).removeClass("ui-state-active")}).bind("keydown.button",function(k){if(b.disabled)return false;if(k.keyCode==a.ui.keyCode.SPACE||k.keyCode==a.ui.keyCode.ENTER)a(this).addClass("ui-state-active")}).bind("keyup.button",function(){a(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(k){k.keyCode===a.ui.keyCode.SPACE&&a(this).click()})}this._setOption("disabled",
487
- b.disabled)},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type==="radio"){this.buttonElement=this.element.parents().last().find("label[for="+this.element.attr("id")+"]");this.element.addClass("ui-helper-hidden-accessible");var h=this.element.is(":checked");h&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",h)}else this.buttonElement=
488
- this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||
489
- this.buttonElement.removeAttr("title");a.Widget.prototype.destroy.call(this)},_setOption:function(h,b){a.Widget.prototype._setOption.apply(this,arguments);if(h==="disabled")b?this.element.attr("disabled",true):this.element.removeAttr("disabled");this._resetButton()},refresh:function(){var h=this.element.is(":disabled");h!==this.options.disabled&&this._setOption("disabled",h);if(this.type==="radio")e(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
490
- true):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",false)});else if(this.type==="checkbox")this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed",true):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed",false)},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var h=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),
491
- b=a("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(h.empty()).text(),g=this.options.icons,i=g.primary&&g.secondary;if(g.primary||g.secondary){h.addClass("ui-button-text-icon"+(i?"s":g.primary?"-primary":"-secondary"));g.primary&&h.prepend("<span class='ui-button-icon-primary ui-icon "+g.primary+"'></span>");g.secondary&&h.append("<span class='ui-button-icon-secondary ui-icon "+g.secondary+"'></span>");if(!this.options.text){h.addClass(i?"ui-button-icons-only":"ui-button-icon-only").removeClass("ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary");
492
- this.hasTitle||h.attr("title",b)}}else h.addClass("ui-button-text-only")}}});a.widget("ui.buttonset",{_create:function(){this.element.addClass("ui-buttonset");this._init()},_init:function(){this.refresh()},_setOption:function(h,b){h==="disabled"&&this.buttons.button("option",h,b);a.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 a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":visible").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end().end()},
493
- destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");a.Widget.prototype.destroy.call(this)}})})(jQuery);
494
- (function(a,d){function f(e){return!a(e).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};if(!a.ui.version){a.extend(a.ui,{version:"1.8.5",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,
495
- PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});a.fn.extend({_focus:a.fn.focus,focus:function(e,h){return typeof e==="number"?this.each(function(){var b=this;setTimeout(function(){a(b).focus();h&&h.call(b)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;e=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,
496
- "position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!e.length?a(document):e},zIndex:function(e){if(e!==d)return this.css("zIndex",e);if(this.length){e=a(this[0]);for(var h;e.length&&e[0]!==document;){h=e.css("position");
497
- if(h==="absolute"||h==="relative"||h==="fixed"){h=parseInt(e.css("zIndex"));if(!isNaN(h)&&h!=0)return h}e=e.parent()}}return 0},disableSelection:function(){return this.bind("mousedown.ui-disableSelection selectstart.ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.each(["Width","Height"],function(e,h){function b(m,l,j,n){a.each(g,function(){l-=parseFloat(a.curCSS(m,"padding"+this,true))||0;if(j)l-=parseFloat(a.curCSS(m,
498
- "border"+this+"Width",true))||0;if(n)l-=parseFloat(a.curCSS(m,"margin"+this,true))||0});return l}var g=h==="Width"?["Left","Right"]:["Top","Bottom"],i=h.toLowerCase(),k={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+h]=function(m){if(m===d)return k["inner"+h].call(this);return this.each(function(){a.style(this,i,b(this,m)+"px")})};a.fn["outer"+h]=function(m,l){if(typeof m!=="number")return k["outer"+h].call(this,m);return this.each(function(){a.style(this,
499
- i,b(this,m,true,l)+"px")})}});a.extend(a.expr[":"],{data:function(e,h,b){return!!a.data(e,b[3])},focusable:function(e){var h=e.nodeName.toLowerCase(),b=a.attr(e,"tabindex");if("area"===h){h=e.parentNode;b=h.name;if(!e.href||!b||h.nodeName.toLowerCase()!=="map")return false;e=a("img[usemap=#"+b+"]")[0];return!!e&&f(e)}return(/input|select|textarea|button|object/.test(h)?!e.disabled:"a"==h?e.href||!isNaN(b):!isNaN(b))&&f(e)},tabbable:function(e){var h=a.attr(e,"tabindex");return(isNaN(h)||h>=0)&&a(e).is(":focusable")}});
500
- a(function(){var e=document.createElement("div"),h=document.body;a.extend(e.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=h.appendChild(e).offsetHeight===100;h.removeChild(e).style.display="none"});a.extend(a.ui,{plugin:{add:function(e,h,b){e=a.ui[e].prototype;for(var g in b){e.plugins[g]=e.plugins[g]||[];e.plugins[g].push([h,b[g]])}},call:function(e,h,b){if((h=e.plugins[h])&&e.element[0].parentNode)for(var g=0;g<h.length;g++)e.options[h[g][0]]&&h[g][1].apply(e.element,
501
- b)}},contains:function(e,h){return document.compareDocumentPosition?e.compareDocumentPosition(h)&16:e!==h&&e.contains(h)},hasScroll:function(e,h){if(a(e).css("overflow")==="hidden")return false;var b=h&&h==="left"?"scrollLeft":"scrollTop",g=false;if(e[b]>0)return true;e[b]=1;g=e[b]>0;e[b]=0;return g},isOverAxis:function(e,h,b){return e>h&&e<h+b},isOver:function(e,h,b,g,i,k){return a.ui.isOverAxis(e,b,i)&&a.ui.isOverAxis(h,g,k)}})}})(jQuery);
502
- (function(a,d){function f(){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=
503
- "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",
504
- "Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
505
- minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};a.extend(this._defaults,this.regional[""]);this.dpDiv=a('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}function e(b,g){a.extend(b,
506
- g);for(var i in g)if(g[i]==null||g[i]==d)b[i]=g[i];return b}a.extend(a.ui,{datepicker:{version:"1.8.5"}});var h=(new Date).getTime();a.extend(f.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(b){e(this._defaults,b||{});return this},_attachDatepicker:function(b,g){var i=null,k;for(k in this._defaults){var m=b.getAttribute("date:"+k);if(m){i=i||{};try{i[k]=eval(m)}catch(l){i[k]=
507
- m}}}k=b.nodeName.toLowerCase();m=k=="div"||k=="span";if(!b.id){this.uuid+=1;b.id="dp"+this.uuid}var j=this._newInst(a(b),m);j.settings=a.extend({},g||{},i||{});if(k=="input")this._connectDatepicker(b,j);else m&&this._inlineDatepicker(b,j)},_newInst:function(b,g){return{id:b[0].id.replace(/([^A-Za-z0-9_])/g,"\\\\$1"),input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:g,dpDiv:!g?this.dpDiv:a('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},
508
- _connectDatepicker:function(b,g){var i=a(b);g.append=a([]);g.trigger=a([]);if(!i.hasClass(this.markerClassName)){this._attachments(i,g);i.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(k,m,l){g.settings[m]=l}).bind("getData.datepicker",function(k,m){return this._get(g,m)});this._autoSize(g);a.data(b,"datepicker",g)}},_attachments:function(b,g){var i=this._get(g,"appendText"),k=this._get(g,"isRTL");g.append&&
509
- g.append.remove();if(i){g.append=a('<span class="'+this._appendClass+'">'+i+"</span>");b[k?"before":"after"](g.append)}b.unbind("focus",this._showDatepicker);g.trigger&&g.trigger.remove();i=this._get(g,"showOn");if(i=="focus"||i=="both")b.focus(this._showDatepicker);if(i=="button"||i=="both"){i=this._get(g,"buttonText");var m=this._get(g,"buttonImage");g.trigger=a(this._get(g,"buttonImageOnly")?a("<img/>").addClass(this._triggerClass).attr({src:m,alt:i,title:i}):a('<button type="button"></button>').addClass(this._triggerClass).html(m==
510
- ""?i:a("<img/>").attr({src:m,alt:i,title:i})));b[k?"before":"after"](g.trigger);g.trigger.click(function(){a.datepicker._datepickerShowing&&a.datepicker._lastInput==b[0]?a.datepicker._hideDatepicker():a.datepicker._showDatepicker(b[0]);return false})}},_autoSize:function(b){if(this._get(b,"autoSize")&&!b.inline){var g=new Date(2009,11,20),i=this._get(b,"dateFormat");if(i.match(/[DM]/)){var k=function(m){for(var l=0,j=0,n=0;n<m.length;n++)if(m[n].length>l){l=m[n].length;j=n}return j};g.setMonth(k(this._get(b,
511
- i.match(/MM/)?"monthNames":"monthNamesShort")));g.setDate(k(this._get(b,i.match(/DD/)?"dayNames":"dayNamesShort"))+20-g.getDay())}b.input.attr("size",this._formatDate(b,g).length)}},_inlineDatepicker:function(b,g){var i=a(b);if(!i.hasClass(this.markerClassName)){i.addClass(this.markerClassName).append(g.dpDiv).bind("setData.datepicker",function(k,m,l){g.settings[m]=l}).bind("getData.datepicker",function(k,m){return this._get(g,m)});a.data(b,"datepicker",g);this._setDate(g,this._getDefaultDate(g),
512
- true);this._updateDatepicker(g);this._updateAlternate(g)}},_dialogDatepicker:function(b,g,i,k,m){b=this._dialogInst;if(!b){this.uuid+=1;this._dialogInput=a('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);a("body").append(this._dialogInput);b=this._dialogInst=this._newInst(this._dialogInput,false);b.settings={};a.data(this._dialogInput[0],"datepicker",b)}e(b.settings,k||{});g=g&&g.constructor==
513
- Date?this._formatDate(b,g):g;this._dialogInput.val(g);this._pos=m?m.length?m:[m.pageX,m.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");b.settings.onSelect=i;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);
514
- a.blockUI&&a.blockUI(this.dpDiv);a.data(this._dialogInput[0],"datepicker",b);return this},_destroyDatepicker:function(b){var g=a(b),i=a.data(b,"datepicker");if(g.hasClass(this.markerClassName)){var k=b.nodeName.toLowerCase();a.removeData(b,"datepicker");if(k=="input"){i.append.remove();i.trigger.remove();g.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(k=="div"||k=="span")g.removeClass(this.markerClassName).empty()}},
515
- _enableDatepicker:function(b){var g=a(b),i=a.data(b,"datepicker");if(g.hasClass(this.markerClassName)){var k=b.nodeName.toLowerCase();if(k=="input"){b.disabled=false;i.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(k=="div"||k=="span")g.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=a.map(this._disabledInputs,function(m){return m==b?null:m})}},_disableDatepicker:function(b){var g=
516
- a(b),i=a.data(b,"datepicker");if(g.hasClass(this.markerClassName)){var k=b.nodeName.toLowerCase();if(k=="input"){b.disabled=true;i.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(k=="div"||k=="span")g.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=a.map(this._disabledInputs,function(m){return m==b?null:m});this._disabledInputs[this._disabledInputs.length]=b}},_isDisabledDatepicker:function(b){if(!b)return false;
517
- for(var g=0;g<this._disabledInputs.length;g++)if(this._disabledInputs[g]==b)return true;return false},_getInst:function(b){try{return a.data(b,"datepicker")}catch(g){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(b,g,i){var k=this._getInst(b);if(arguments.length==2&&typeof g=="string")return g=="defaults"?a.extend({},a.datepicker._defaults):k?g=="all"?a.extend({},k.settings):this._get(k,g):null;var m=g||{};if(typeof g=="string"){m={};m[g]=i}if(k){this._curInst==k&&
518
- this._hideDatepicker();var l=this._getDateDatepicker(b,true);e(k.settings,m);this._attachments(a(b),k);this._autoSize(k);this._setDateDatepicker(b,l);this._updateDatepicker(k)}},_changeDatepicker:function(b,g,i){this._optionDatepicker(b,g,i)},_refreshDatepicker:function(b){(b=this._getInst(b))&&this._updateDatepicker(b)},_setDateDatepicker:function(b,g){var i=this._getInst(b);if(i){this._setDate(i,g);this._updateDatepicker(i);this._updateAlternate(i)}},_getDateDatepicker:function(b,g){var i=this._getInst(b);
519
- i&&!i.inline&&this._setDateFromField(i,g);return i?this._getDate(i):null},_doKeyDown:function(b){var g=a.datepicker._getInst(b.target),i=true,k=g.dpDiv.is(".ui-datepicker-rtl");g._keyEvent=true;if(a.datepicker._datepickerShowing)switch(b.keyCode){case 9:a.datepicker._hideDatepicker();i=false;break;case 13:i=a("td."+a.datepicker._dayOverClass,g.dpDiv).add(a("td."+a.datepicker._currentClass,g.dpDiv));i[0]?a.datepicker._selectDay(b.target,g.selectedMonth,g.selectedYear,i[0]):a.datepicker._hideDatepicker();
520
- return false;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(g,"stepBigMonths"):-a.datepicker._get(g,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(g,"stepBigMonths"):+a.datepicker._get(g,"stepMonths"),"M");break;case 35:if(b.ctrlKey||b.metaKey)a.datepicker._clearDate(b.target);i=b.ctrlKey||b.metaKey;break;case 36:if(b.ctrlKey||b.metaKey)a.datepicker._gotoToday(b.target);i=b.ctrlKey||
521
- b.metaKey;break;case 37:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,k?+1:-1,"D");i=b.ctrlKey||b.metaKey;if(b.originalEvent.altKey)a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(g,"stepBigMonths"):-a.datepicker._get(g,"stepMonths"),"M");break;case 38:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,-7,"D");i=b.ctrlKey||b.metaKey;break;case 39:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,k?-1:+1,"D");i=b.ctrlKey||b.metaKey;if(b.originalEvent.altKey)a.datepicker._adjustDate(b.target,
522
- b.ctrlKey?+a.datepicker._get(g,"stepBigMonths"):+a.datepicker._get(g,"stepMonths"),"M");break;case 40:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,+7,"D");i=b.ctrlKey||b.metaKey;break;default:i=false}else if(b.keyCode==36&&b.ctrlKey)a.datepicker._showDatepicker(this);else i=false;if(i){b.preventDefault();b.stopPropagation()}},_doKeyPress:function(b){var g=a.datepicker._getInst(b.target);if(a.datepicker._get(g,"constrainInput")){g=a.datepicker._possibleChars(a.datepicker._get(g,"dateFormat"));
523
- var i=String.fromCharCode(b.charCode==d?b.keyCode:b.charCode);return b.ctrlKey||i<" "||!g||g.indexOf(i)>-1}},_doKeyUp:function(b){b=a.datepicker._getInst(b.target);if(b.input.val()!=b.lastVal)try{if(a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),b.input?b.input.val():null,a.datepicker._getFormatConfig(b))){a.datepicker._setDateFromField(b);a.datepicker._updateAlternate(b);a.datepicker._updateDatepicker(b)}}catch(g){a.datepicker.log(g)}return true},_showDatepicker:function(b){b=b.target||
524
- b;if(b.nodeName.toLowerCase()!="input")b=a("input",b.parentNode)[0];if(!(a.datepicker._isDisabledDatepicker(b)||a.datepicker._lastInput==b)){var g=a.datepicker._getInst(b);a.datepicker._curInst&&a.datepicker._curInst!=g&&a.datepicker._curInst.dpDiv.stop(true,true);var i=a.datepicker._get(g,"beforeShow");e(g.settings,i?i.apply(b,[b,g]):{});g.lastVal=null;a.datepicker._lastInput=b;a.datepicker._setDateFromField(g);if(a.datepicker._inDialog)b.value="";if(!a.datepicker._pos){a.datepicker._pos=a.datepicker._findPos(b);
525
- a.datepicker._pos[1]+=b.offsetHeight}var k=false;a(b).parents().each(function(){k|=a(this).css("position")=="fixed";return!k});if(k&&a.browser.opera){a.datepicker._pos[0]-=document.documentElement.scrollLeft;a.datepicker._pos[1]-=document.documentElement.scrollTop}i={left:a.datepicker._pos[0],top:a.datepicker._pos[1]};a.datepicker._pos=null;g.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});a.datepicker._updateDatepicker(g);i=a.datepicker._checkOffset(g,i,k);g.dpDiv.css({position:a.datepicker._inDialog&&
526
- a.blockUI?"static":k?"fixed":"absolute",display:"none",left:i.left+"px",top:i.top+"px"});if(!g.inline){i=a.datepicker._get(g,"showAnim");var m=a.datepicker._get(g,"duration"),l=function(){a.datepicker._datepickerShowing=true;var j=a.datepicker._getBorders(g.dpDiv);g.dpDiv.find("iframe.ui-datepicker-cover").css({left:-j[0],top:-j[1],width:g.dpDiv.outerWidth(),height:g.dpDiv.outerHeight()})};g.dpDiv.zIndex(a(b).zIndex()+1);a.effects&&a.effects[i]?g.dpDiv.show(i,a.datepicker._get(g,"showOptions"),m,
527
- l):g.dpDiv[i||"show"](i?m:null,l);if(!i||!m)l();g.input.is(":visible")&&!g.input.is(":disabled")&&g.input.focus();a.datepicker._curInst=g}}},_updateDatepicker:function(b){var g=this,i=a.datepicker._getBorders(b.dpDiv);b.dpDiv.empty().append(this._generateHTML(b)).find("iframe.ui-datepicker-cover").css({left:-i[0],top:-i[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){a(this).removeClass("ui-state-hover");
528
- this.className.indexOf("ui-datepicker-prev")!=-1&&a(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&a(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!g._isDisabledDatepicker(b.inline?b.dpDiv.parent()[0]:b.input[0])){a(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");a(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&a(this).addClass("ui-datepicker-prev-hover");
529
- this.className.indexOf("ui-datepicker-next")!=-1&&a(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();i=this._getNumberOfMonths(b);var k=i[1];k>1?b.dpDiv.addClass("ui-datepicker-multi-"+k).css("width",17*k+"em"):b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");b.dpDiv[(i[0]!=1||i[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");
530
- b==a.datepicker._curInst&&a.datepicker._datepickerShowing&&b.input&&b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus()},_getBorders:function(b){var g=function(i){return{thin:1,medium:2,thick:3}[i]||i};return[parseFloat(g(b.css("border-left-width"))),parseFloat(g(b.css("border-top-width")))]},_checkOffset:function(b,g,i){var k=b.dpDiv.outerWidth(),m=b.dpDiv.outerHeight(),l=b.input?b.input.outerWidth():0,j=b.input?b.input.outerHeight():0,n=document.documentElement.clientWidth+a(document).scrollLeft(),
531
- o=document.documentElement.clientHeight+a(document).scrollTop();g.left-=this._get(b,"isRTL")?k-l:0;g.left-=i&&g.left==b.input.offset().left?a(document).scrollLeft():0;g.top-=i&&g.top==b.input.offset().top+j?a(document).scrollTop():0;g.left-=Math.min(g.left,g.left+k>n&&n>k?Math.abs(g.left+k-n):0);g.top-=Math.min(g.top,g.top+m>o&&o>m?Math.abs(m+j):0);return g},_findPos:function(b){for(var g=this._get(this._getInst(b),"isRTL");b&&(b.type=="hidden"||b.nodeType!=1);)b=b[g?"previousSibling":"nextSibling"];
532
- b=a(b).offset();return[b.left,b.top]},_hideDatepicker:function(b){var g=this._curInst;if(!(!g||b&&g!=a.data(b,"datepicker")))if(this._datepickerShowing){b=this._get(g,"showAnim");var i=this._get(g,"duration"),k=function(){a.datepicker._tidyDialog(g);this._curInst=null};a.effects&&a.effects[b]?g.dpDiv.hide(b,a.datepicker._get(g,"showOptions"),i,k):g.dpDiv[b=="slideDown"?"slideUp":b=="fadeIn"?"fadeOut":"hide"](b?i:null,k);b||k();if(b=this._get(g,"onClose"))b.apply(g.input?g.input[0]:null,[g.input?g.input.val():
533
- "",g]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(a.blockUI){a.unblockUI();a("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(b){b.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(b){if(a.datepicker._curInst){b=a(b.target);b[0].id!=a.datepicker._mainDivId&&b.parents("#"+a.datepicker._mainDivId).length==0&&!b.hasClass(a.datepicker.markerClassName)&&
534
- !b.hasClass(a.datepicker._triggerClass)&&a.datepicker._datepickerShowing&&!(a.datepicker._inDialog&&a.blockUI)&&a.datepicker._hideDatepicker()}},_adjustDate:function(b,g,i){b=a(b);var k=this._getInst(b[0]);if(!this._isDisabledDatepicker(b[0])){this._adjustInstDate(k,g+(i=="M"?this._get(k,"showCurrentAtPos"):0),i);this._updateDatepicker(k)}},_gotoToday:function(b){b=a(b);var g=this._getInst(b[0]);if(this._get(g,"gotoCurrent")&&g.currentDay){g.selectedDay=g.currentDay;g.drawMonth=g.selectedMonth=g.currentMonth;
535
- g.drawYear=g.selectedYear=g.currentYear}else{var i=new Date;g.selectedDay=i.getDate();g.drawMonth=g.selectedMonth=i.getMonth();g.drawYear=g.selectedYear=i.getFullYear()}this._notifyChange(g);this._adjustDate(b)},_selectMonthYear:function(b,g,i){b=a(b);var k=this._getInst(b[0]);k._selectingMonthYear=false;k["selected"+(i=="M"?"Month":"Year")]=k["draw"+(i=="M"?"Month":"Year")]=parseInt(g.options[g.selectedIndex].value,10);this._notifyChange(k);this._adjustDate(b)},_clickMonthYear:function(b){var g=
536
- this._getInst(a(b)[0]);g.input&&g._selectingMonthYear&&setTimeout(function(){g.input.focus()},0);g._selectingMonthYear=!g._selectingMonthYear},_selectDay:function(b,g,i,k){var m=a(b);if(!(a(k).hasClass(this._unselectableClass)||this._isDisabledDatepicker(m[0]))){m=this._getInst(m[0]);m.selectedDay=m.currentDay=a("a",k).html();m.selectedMonth=m.currentMonth=g;m.selectedYear=m.currentYear=i;this._selectDate(b,this._formatDate(m,m.currentDay,m.currentMonth,m.currentYear))}},_clearDate:function(b){b=
537
- a(b);this._getInst(b[0]);this._selectDate(b,"")},_selectDate:function(b,g){var i=this._getInst(a(b)[0]);g=g!=null?g:this._formatDate(i);i.input&&i.input.val(g);this._updateAlternate(i);var k=this._get(i,"onSelect");if(k)k.apply(i.input?i.input[0]:null,[g,i]);else i.input&&i.input.trigger("change");if(i.inline)this._updateDatepicker(i);else{this._hideDatepicker();this._lastInput=i.input[0];typeof i.input[0]!="object"&&i.input.focus();this._lastInput=null}},_updateAlternate:function(b){var g=this._get(b,
538
- "altField");if(g){var i=this._get(b,"altFormat")||this._get(b,"dateFormat"),k=this._getDate(b),m=this.formatDate(i,k,this._getFormatConfig(b));a(g).each(function(){a(this).val(m)})}},noWeekends:function(b){b=b.getDay();return[b>0&&b<6,""]},iso8601Week:function(b){b=new Date(b.getTime());b.setDate(b.getDate()+4-(b.getDay()||7));var g=b.getTime();b.setMonth(0);b.setDate(1);return Math.floor(Math.round((g-b)/864E5)/7)+1},parseDate:function(b,g,i){if(b==null||g==null)throw"Invalid arguments";g=typeof g==
539
- "object"?g.toString():g+"";if(g=="")return null;for(var k=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff,m=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,l=(i?i.dayNames:null)||this._defaults.dayNames,j=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,n=(i?i.monthNames:null)||this._defaults.monthNames,o=i=-1,p=-1,q=-1,r=false,u=function(x){(x=C+1<b.length&&b.charAt(C+1)==x)&&C++;return x},s=function(x){u(x);x=RegExp("^\\d{1,"+(x=="@"?14:x=="!"?20:x=="y"?4:x=="o"?3:2)+
540
- "}");x=g.substring(y).match(x);if(!x)throw"Missing number at position "+y;y+=x[0].length;return parseInt(x[0],10)},v=function(x,D,K){x=u(x)?K:D;for(D=0;D<x.length;D++)if(g.substr(y,x[D].length).toLowerCase()==x[D].toLowerCase()){y+=x[D].length;return D+1}throw"Unknown name at position "+y;},w=function(){if(g.charAt(y)!=b.charAt(C))throw"Unexpected literal at position "+y;y++},y=0,C=0;C<b.length;C++)if(r)if(b.charAt(C)=="'"&&!u("'"))r=false;else w();else switch(b.charAt(C)){case "d":p=s("d");break;
541
- case "D":v("D",m,l);break;case "o":q=s("o");break;case "m":o=s("m");break;case "M":o=v("M",j,n);break;case "y":i=s("y");break;case "@":var B=new Date(s("@"));i=B.getFullYear();o=B.getMonth()+1;p=B.getDate();break;case "!":B=new Date((s("!")-this._ticksTo1970)/1E4);i=B.getFullYear();o=B.getMonth()+1;p=B.getDate();break;case "'":if(u("'"))w();else r=true;break;default:w()}if(i==-1)i=(new Date).getFullYear();else if(i<100)i+=(new Date).getFullYear()-(new Date).getFullYear()%100+(i<=k?0:-100);if(q>-1){o=
542
- 1;p=q;do{k=this._getDaysInMonth(i,o-1);if(p<=k)break;o++;p-=k}while(1)}B=this._daylightSavingAdjust(new Date(i,o-1,p));if(B.getFullYear()!=i||B.getMonth()+1!=o||B.getDate()!=p)throw"Invalid date";return B},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*
543
- 1E7,formatDate:function(b,g,i){if(!g)return"";var k=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,m=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort;i=(i?i.monthNames:null)||this._defaults.monthNames;var j=function(u){(u=r+1<b.length&&b.charAt(r+1)==u)&&r++;return u},n=function(u,s,v){s=""+s;if(j(u))for(;s.length<v;)s="0"+s;return s},o=function(u,s,v,w){return j(u)?w[s]:v[s]},p="",q=false;if(g)for(var r=0;r<b.length;r++)if(q)if(b.charAt(r)==
544
- "'"&&!j("'"))q=false;else p+=b.charAt(r);else switch(b.charAt(r)){case "d":p+=n("d",g.getDate(),2);break;case "D":p+=o("D",g.getDay(),k,m);break;case "o":p+=n("o",(g.getTime()-(new Date(g.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":p+=n("m",g.getMonth()+1,2);break;case "M":p+=o("M",g.getMonth(),l,i);break;case "y":p+=j("y")?g.getFullYear():(g.getYear()%100<10?"0":"")+g.getYear()%100;break;case "@":p+=g.getTime();break;case "!":p+=g.getTime()*1E4+this._ticksTo1970;break;case "'":if(j("'"))p+=
545
- "'";else q=true;break;default:p+=b.charAt(r)}return p},_possibleChars:function(b){for(var g="",i=false,k=function(l){(l=m+1<b.length&&b.charAt(m+1)==l)&&m++;return l},m=0;m<b.length;m++)if(i)if(b.charAt(m)=="'"&&!k("'"))i=false;else g+=b.charAt(m);else switch(b.charAt(m)){case "d":case "m":case "y":case "@":g+="0123456789";break;case "D":case "M":return null;case "'":if(k("'"))g+="'";else i=true;break;default:g+=b.charAt(m)}return g},_get:function(b,g){return b.settings[g]!==d?b.settings[g]:this._defaults[g]},
546
- _setDateFromField:function(b,g){if(b.input.val()!=b.lastVal){var i=this._get(b,"dateFormat"),k=b.lastVal=b.input?b.input.val():null,m,l;m=l=this._getDefaultDate(b);var j=this._getFormatConfig(b);try{m=this.parseDate(i,k,j)||l}catch(n){this.log(n);k=g?"":k}b.selectedDay=m.getDate();b.drawMonth=b.selectedMonth=m.getMonth();b.drawYear=b.selectedYear=m.getFullYear();b.currentDay=k?m.getDate():0;b.currentMonth=k?m.getMonth():0;b.currentYear=k?m.getFullYear():0;this._adjustInstDate(b)}},_getDefaultDate:function(b){return this._restrictMinMax(b,
547
- this._determineDate(b,this._get(b,"defaultDate"),new Date))},_determineDate:function(b,g,i){var k=function(l){var j=new Date;j.setDate(j.getDate()+l);return j},m=function(l){try{return a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),l,a.datepicker._getFormatConfig(b))}catch(j){}var n=(l.toLowerCase().match(/^c/)?a.datepicker._getDate(b):null)||new Date,o=n.getFullYear(),p=n.getMonth();n=n.getDate();for(var q=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,r=q.exec(l);r;){switch(r[2]||"d"){case "d":case "D":n+=
548
- parseInt(r[1],10);break;case "w":case "W":n+=parseInt(r[1],10)*7;break;case "m":case "M":p+=parseInt(r[1],10);n=Math.min(n,a.datepicker._getDaysInMonth(o,p));break;case "y":case "Y":o+=parseInt(r[1],10);n=Math.min(n,a.datepicker._getDaysInMonth(o,p))}r=q.exec(l)}return new Date(o,p,n)};if(g=(g=g==null?i:typeof g=="string"?m(g):typeof g=="number"?isNaN(g)?i:k(g):g)&&g.toString()=="Invalid Date"?i:g){g.setHours(0);g.setMinutes(0);g.setSeconds(0);g.setMilliseconds(0)}return this._daylightSavingAdjust(g)},
549
- _daylightSavingAdjust:function(b){if(!b)return null;b.setHours(b.getHours()>12?b.getHours()+2:0);return b},_setDate:function(b,g,i){var k=!g,m=b.selectedMonth,l=b.selectedYear;g=this._restrictMinMax(b,this._determineDate(b,g,new Date));b.selectedDay=b.currentDay=g.getDate();b.drawMonth=b.selectedMonth=b.currentMonth=g.getMonth();b.drawYear=b.selectedYear=b.currentYear=g.getFullYear();if((m!=b.selectedMonth||l!=b.selectedYear)&&!i)this._notifyChange(b);this._adjustInstDate(b);if(b.input)b.input.val(k?
550
- "":this._formatDate(b))},_getDate:function(b){return!b.currentYear||b.input&&b.input.val()==""?null:this._daylightSavingAdjust(new Date(b.currentYear,b.currentMonth,b.currentDay))},_generateHTML:function(b){var g=new Date;g=this._daylightSavingAdjust(new Date(g.getFullYear(),g.getMonth(),g.getDate()));var i=this._get(b,"isRTL"),k=this._get(b,"showButtonPanel"),m=this._get(b,"hideIfNoPrevNext"),l=this._get(b,"navigationAsDateFormat"),j=this._getNumberOfMonths(b),n=this._get(b,"showCurrentAtPos"),o=
551
- this._get(b,"stepMonths"),p=j[0]!=1||j[1]!=1,q=this._daylightSavingAdjust(!b.currentDay?new Date(9999,9,9):new Date(b.currentYear,b.currentMonth,b.currentDay)),r=this._getMinMaxDate(b,"min"),u=this._getMinMaxDate(b,"max");n=b.drawMonth-n;var s=b.drawYear;if(n<0){n+=12;s--}if(u){var v=this._daylightSavingAdjust(new Date(u.getFullYear(),u.getMonth()-j[0]*j[1]+1,u.getDate()));for(v=r&&v<r?r:v;this._daylightSavingAdjust(new Date(s,n,1))>v;){n--;if(n<0){n=11;s--}}}b.drawMonth=n;b.drawYear=s;v=this._get(b,
552
- "prevText");v=!l?v:this.formatDate(v,this._daylightSavingAdjust(new Date(s,n-o,1)),this._getFormatConfig(b));v=this._canAdjustMonth(b,-1,s,n)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+h+".datepicker._adjustDate('#"+b.id+"', -"+o+", 'M');\" title=\""+v+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+v+"</span></a>":m?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+v+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+
553
- v+"</span></a>";var w=this._get(b,"nextText");w=!l?w:this.formatDate(w,this._daylightSavingAdjust(new Date(s,n+o,1)),this._getFormatConfig(b));m=this._canAdjustMonth(b,+1,s,n)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+h+".datepicker._adjustDate('#"+b.id+"', +"+o+", 'M');\" title=\""+w+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+w+"</span></a>":m?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+w+'"><span class="ui-icon ui-icon-circle-triangle-'+
554
- (i?"w":"e")+'">'+w+"</span></a>";o=this._get(b,"currentText");w=this._get(b,"gotoCurrent")&&b.currentDay?q:g;o=!l?o:this.formatDate(o,w,this._getFormatConfig(b));l=!b.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+h+'.datepicker._hideDatepicker();">'+this._get(b,"closeText")+"</button>":"";k=k?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(i?l:"")+(this._isInRange(b,w)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+
555
- h+".datepicker._gotoToday('#"+b.id+"');\">"+o+"</button>":"")+(i?"":l)+"</div>":"";l=parseInt(this._get(b,"firstDay"),10);l=isNaN(l)?0:l;o=this._get(b,"showWeek");w=this._get(b,"dayNames");this._get(b,"dayNamesShort");var y=this._get(b,"dayNamesMin"),C=this._get(b,"monthNames"),B=this._get(b,"monthNamesShort"),x=this._get(b,"beforeShowDay"),D=this._get(b,"showOtherMonths"),K=this._get(b,"selectOtherMonths");this._get(b,"calculateWeek");for(var O=this._getDefaultDate(b),L="",H=0;H<j[0];H++){for(var P=
556
- "",I=0;I<j[1];I++){var M=this._daylightSavingAdjust(new Date(s,n,b.selectedDay)),A=" ui-corner-all",E="";if(p){E+='<div class="ui-datepicker-group';if(j[1]>1)switch(I){case 0:E+=" ui-datepicker-group-first";A=" ui-corner-"+(i?"right":"left");break;case j[1]-1:E+=" ui-datepicker-group-last";A=" ui-corner-"+(i?"left":"right");break;default:E+=" ui-datepicker-group-middle";A=""}E+='">'}E+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+A+'">'+(/all|left/.test(A)&&H==0?i?m:v:"")+
557
- (/all|right/.test(A)&&H==0?i?v:m:"")+this._generateMonthYearHeader(b,n,s,r,u,H>0||I>0,C,B)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var F=o?'<th class="ui-datepicker-week-col">'+this._get(b,"weekHeader")+"</th>":"";for(A=0;A<7;A++){var z=(A+l)%7;F+="<th"+((A+l+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+w[z]+'">'+y[z]+"</span></th>"}E+=F+"</tr></thead><tbody>";F=this._getDaysInMonth(s,n);if(s==b.selectedYear&&n==b.selectedMonth)b.selectedDay=Math.min(b.selectedDay,
558
- F);A=(this._getFirstDayOfMonth(s,n)-l+7)%7;F=p?6:Math.ceil((A+F)/7);z=this._daylightSavingAdjust(new Date(s,n,1-A));for(var Q=0;Q<F;Q++){E+="<tr>";var R=!o?"":'<td class="ui-datepicker-week-col">'+this._get(b,"calculateWeek")(z)+"</td>";for(A=0;A<7;A++){var J=x?x.apply(b.input?b.input[0]:null,[z]):[true,""],G=z.getMonth()!=n,N=G&&!K||!J[0]||r&&z<r||u&&z>u;R+='<td class="'+((A+l+6)%7>=5?" ui-datepicker-week-end":"")+(G?" ui-datepicker-other-month":"")+(z.getTime()==M.getTime()&&n==b.selectedMonth&&
559
- b._keyEvent||O.getTime()==z.getTime()&&O.getTime()==M.getTime()?" "+this._dayOverClass:"")+(N?" "+this._unselectableClass+" ui-state-disabled":"")+(G&&!D?"":" "+J[1]+(z.getTime()==q.getTime()?" "+this._currentClass:"")+(z.getTime()==g.getTime()?" ui-datepicker-today":""))+'"'+((!G||D)&&J[2]?' title="'+J[2]+'"':"")+(N?"":' onclick="DP_jQuery_'+h+".datepicker._selectDay('#"+b.id+"',"+z.getMonth()+","+z.getFullYear()+', this);return false;"')+">"+(G&&!D?"&#xa0;":N?'<span class="ui-state-default">'+z.getDate()+
560
- "</span>":'<a class="ui-state-default'+(z.getTime()==g.getTime()?" ui-state-highlight":"")+(z.getTime()==M.getTime()?" ui-state-active":"")+(G?" ui-priority-secondary":"")+'" href="#">'+z.getDate()+"</a>")+"</td>";z.setDate(z.getDate()+1);z=this._daylightSavingAdjust(z)}E+=R+"</tr>"}n++;if(n>11){n=0;s++}E+="</tbody></table>"+(p?"</div>"+(j[0]>0&&I==j[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");P+=E}L+=P}L+=k+(a.browser.msie&&parseInt(a.browser.version,10)<7&&!b.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':
561
- "");b._keyEvent=false;return L},_generateMonthYearHeader:function(b,g,i,k,m,l,j,n){var o=this._get(b,"changeMonth"),p=this._get(b,"changeYear"),q=this._get(b,"showMonthAfterYear"),r='<div class="ui-datepicker-title">',u="";if(l||!o)u+='<span class="ui-datepicker-month">'+j[g]+"</span>";else{j=k&&k.getFullYear()==i;var s=m&&m.getFullYear()==i;u+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+h+".datepicker._selectMonthYear('#"+b.id+"', this, 'M');\" onclick=\"DP_jQuery_"+h+".datepicker._clickMonthYear('#"+
562
- b.id+"');\">";for(var v=0;v<12;v++)if((!j||v>=k.getMonth())&&(!s||v<=m.getMonth()))u+='<option value="'+v+'"'+(v==g?' selected="selected"':"")+">"+n[v]+"</option>";u+="</select>"}q||(r+=u+(l||!(o&&p)?"&#xa0;":""));if(l||!p)r+='<span class="ui-datepicker-year">'+i+"</span>";else{n=this._get(b,"yearRange").split(":");var w=(new Date).getFullYear();j=function(y){y=y.match(/c[+-].*/)?i+parseInt(y.substring(1),10):y.match(/[+-].*/)?w+parseInt(y,10):parseInt(y,10);return isNaN(y)?w:y};g=j(n[0]);n=Math.max(g,
563
- j(n[1]||""));g=k?Math.max(g,k.getFullYear()):g;n=m?Math.min(n,m.getFullYear()):n;for(r+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+h+".datepicker._selectMonthYear('#"+b.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+h+".datepicker._clickMonthYear('#"+b.id+"');\">";g<=n;g++)r+='<option value="'+g+'"'+(g==i?' selected="selected"':"")+">"+g+"</option>";r+="</select>"}r+=this._get(b,"yearSuffix");if(q)r+=(l||!(o&&p)?"&#xa0;":"")+u;r+="</div>";return r},_adjustInstDate:function(b,g,i){var k=
564
- b.drawYear+(i=="Y"?g:0),m=b.drawMonth+(i=="M"?g:0);g=Math.min(b.selectedDay,this._getDaysInMonth(k,m))+(i=="D"?g:0);k=this._restrictMinMax(b,this._daylightSavingAdjust(new Date(k,m,g)));b.selectedDay=k.getDate();b.drawMonth=b.selectedMonth=k.getMonth();b.drawYear=b.selectedYear=k.getFullYear();if(i=="M"||i=="Y")this._notifyChange(b)},_restrictMinMax:function(b,g){var i=this._getMinMaxDate(b,"min"),k=this._getMinMaxDate(b,"max");g=i&&g<i?i:g;return g=k&&g>k?k:g},_notifyChange:function(b){var g=this._get(b,
565
- "onChangeMonthYear");if(g)g.apply(b.input?b.input[0]:null,[b.selectedYear,b.selectedMonth+1,b])},_getNumberOfMonths:function(b){b=this._get(b,"numberOfMonths");return b==null?[1,1]:typeof b=="number"?[1,b]:b},_getMinMaxDate:function(b,g){return this._determineDate(b,this._get(b,g+"Date"),null)},_getDaysInMonth:function(b,g){return 32-(new Date(b,g,32)).getDate()},_getFirstDayOfMonth:function(b,g){return(new Date(b,g,1)).getDay()},_canAdjustMonth:function(b,g,i,k){var m=this._getNumberOfMonths(b);
566
- i=this._daylightSavingAdjust(new Date(i,k+(g<0?g:m[0]*m[1]),1));g<0&&i.setDate(this._getDaysInMonth(i.getFullYear(),i.getMonth()));return this._isInRange(b,i)},_isInRange:function(b,g){var i=this._getMinMaxDate(b,"min"),k=this._getMinMaxDate(b,"max");return(!i||g.getTime()>=i.getTime())&&(!k||g.getTime()<=k.getTime())},_getFormatConfig:function(b){var g=this._get(b,"shortYearCutoff");g=typeof g!="string"?g:(new Date).getFullYear()%100+parseInt(g,10);return{shortYearCutoff:g,dayNamesShort:this._get(b,
567
- "dayNamesShort"),dayNames:this._get(b,"dayNames"),monthNamesShort:this._get(b,"monthNamesShort"),monthNames:this._get(b,"monthNames")}},_formatDate:function(b,g,i,k){if(!g){b.currentDay=b.selectedDay;b.currentMonth=b.selectedMonth;b.currentYear=b.selectedYear}g=g?typeof g=="object"?g:this._daylightSavingAdjust(new Date(k,i,g)):this._daylightSavingAdjust(new Date(b.currentYear,b.currentMonth,b.currentDay));return this.formatDate(this._get(b,"dateFormat"),g,this._getFormatConfig(b))}});a.fn.datepicker=
568
- function(b){if(!a.datepicker.initialized){a(document).mousedown(a.datepicker._checkExternalClick).find("body").append(a.datepicker.dpDiv);a.datepicker.initialized=true}var g=Array.prototype.slice.call(arguments,1);if(typeof b=="string"&&(b=="isDisabled"||b=="getDate"||b=="widget"))return a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(g));if(b=="option"&&arguments.length==2&&typeof arguments[1]=="string")return a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(g));
569
- return this.each(function(){typeof b=="string"?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(g)):a.datepicker._attachDatepicker(this,b)})};a.datepicker=new f;a.datepicker.initialized=false;a.datepicker.uuid=(new Date).getTime();a.datepicker.version="1.8.5";window["DP_jQuery_"+h]=a})(jQuery);
570
- (function(a,d){a.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",of:window,collision:"fit",using:function(f){var e=a(this).css(f).offset().top;e<0&&a(this).css("top",f.top-e)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");
571
- if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var f=this,e=f.options,h=e.title||"&#160;",b=a.ui.dialog.getTitleId(f.element),g=(f.uiDialog=a("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+e.dialogClass).css({zIndex:e.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(m){if(e.closeOnEscape&&m.keyCode&&m.keyCode===a.ui.keyCode.ESCAPE){f.close(m);m.preventDefault()}}).attr({role:"dialog",
572
- "aria-labelledby":b}).mousedown(function(m){f.moveToTop(false,m)});f.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var i=(f.uiDialogTitlebar=a("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g),k=a('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){k.addClass("ui-state-hover")},function(){k.removeClass("ui-state-hover")}).focus(function(){k.addClass("ui-state-focus")}).blur(function(){k.removeClass("ui-state-focus")}).click(function(m){f.close(m);
573
- return false}).appendTo(i);(f.uiDialogTitlebarCloseText=a("<span></span>")).addClass("ui-icon ui-icon-closethick").text(e.closeText).appendTo(k);a("<span></span>").addClass("ui-dialog-title").attr("id",b).html(h).prependTo(i);if(a.isFunction(e.beforeclose)&&!a.isFunction(e.beforeClose))e.beforeClose=e.beforeclose;i.find("*").add(i).disableSelection();e.draggable&&a.fn.draggable&&f._makeDraggable();e.resizable&&a.fn.resizable&&f._makeResizable();f._createButtons(e.buttons);f._isOpen=false;a.fn.bgiframe&&
574
- g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){this.overlay&&this.overlay.destroy();this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);return this},widget:function(){return this.uiDialog},close:function(f){var e=this,h;if(false!==e._trigger("beforeClose",f)){e.overlay&&e.overlay.destroy();
575
- e.uiDialog.unbind("keypress.ui-dialog");e._isOpen=false;if(e.options.hide)e.uiDialog.hide(e.options.hide,function(){e._trigger("close",f)});else{e.uiDialog.hide();e._trigger("close",f)}a.ui.dialog.overlay.resize();if(e.options.modal){h=0;a(".ui-dialog").each(function(){if(this!==e.uiDialog[0])h=Math.max(h,a(this).css("z-index"))});a.ui.dialog.maxZ=h}return e}},isOpen:function(){return this._isOpen},moveToTop:function(f,e){var h=this.options;if(h.modal&&!f||!h.stack&&!h.modal)return this._trigger("focus",
576
- e);if(h.zIndex>a.ui.dialog.maxZ)a.ui.dialog.maxZ=h.zIndex;if(this.overlay){a.ui.dialog.maxZ+=1;this.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ)}h={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};a.ui.dialog.maxZ+=1;this.uiDialog.css("z-index",a.ui.dialog.maxZ);this.element.attr(h);this._trigger("focus",e);return this},open:function(){if(!this._isOpen){var f=this.options,e=this.uiDialog;this.overlay=f.modal?new a.ui.dialog.overlay(this):
577
- null;e.next().length&&e.appendTo("body");this._size();this._position(f.position);e.show(f.show);this.moveToTop(true);f.modal&&e.bind("keypress.ui-dialog",function(h){if(h.keyCode===a.ui.keyCode.TAB){var b=a(":tabbable",this),g=b.filter(":first");b=b.filter(":last");if(h.target===b[0]&&!h.shiftKey){g.focus(1);return false}else if(h.target===g[0]&&h.shiftKey){b.focus(1);return false}}});a(this.element.find(":tabbable").get().concat(e.find(".ui-dialog-buttonpane :tabbable").get().concat(e.get()))).eq(0).focus();
578
- this._isOpen=true;this._trigger("open");return this}},_createButtons:function(f){var e=this,h=false,b=a("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=a("<div></div>").addClass("ui-dialog-buttonset").appendTo(b);e.uiDialog.find(".ui-dialog-buttonpane").remove();typeof f==="object"&&f!==null&&a.each(f,function(){return!(h=true)});if(h){a.each(f,function(i,k){k=a.isFunction(k)?{click:k,text:i}:k;var m=a("<button></button>",k).unbind("click").click(function(){k.click.apply(e.element[0],
579
- arguments)}).appendTo(g);a.fn.button&&m.button()});b.appendTo(e.uiDialog)}},_makeDraggable:function(){function f(i){return{position:i.position,offset:i.offset}}var e=this,h=e.options,b=a(document),g;e.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(i,k){g=h.height==="auto"?"auto":a(this).height();a(this).height(a(this).height()).addClass("ui-dialog-dragging");e._trigger("dragStart",i,f(k))},drag:function(i,
580
- k){e._trigger("drag",i,f(k))},stop:function(i,k){h.position=[k.position.left-b.scrollLeft(),k.position.top-b.scrollTop()];a(this).removeClass("ui-dialog-dragging").height(g);e._trigger("dragStop",i,f(k));a.ui.dialog.overlay.resize()}})},_makeResizable:function(f){function e(i){return{originalPosition:i.originalPosition,originalSize:i.originalSize,position:i.position,size:i.size}}f=f===d?this.options.resizable:f;var h=this,b=h.options,g=h.uiDialog.css("position");f=typeof f==="string"?f:"n,e,s,w,se,sw,ne,nw";
581
- h.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:h.element,maxWidth:b.maxWidth,maxHeight:b.maxHeight,minWidth:b.minWidth,minHeight:h._minHeight(),handles:f,start:function(i,k){a(this).addClass("ui-dialog-resizing");h._trigger("resizeStart",i,e(k))},resize:function(i,k){h._trigger("resize",i,e(k))},stop:function(i,k){a(this).removeClass("ui-dialog-resizing");b.height=a(this).height();b.width=a(this).width();h._trigger("resizeStop",i,e(k));a.ui.dialog.overlay.resize()}}).css("position",
582
- g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var f=this.options;return f.height==="auto"?f.minHeight:Math.min(f.minHeight,f.height)},_position:function(f){var e=[],h=[0,0],b;if(f){if(typeof f==="string"||typeof f==="object"&&"0"in f){e=f.split?f.split(" "):[f[0],f[1]];if(e.length===1)e[1]=e[0];a.each(["left","top"],function(g,i){if(+e[g]===e[g]){h[g]=e[g];e[g]=i}});f={my:e.join(" "),at:e.join(" "),offset:h.join(" ")}}f=a.extend({},a.ui.dialog.prototype.options.position,
583
- f)}else f=a.ui.dialog.prototype.options.position;(b=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(f);b||this.uiDialog.hide()},_setOption:function(f,e){var h=this.uiDialog,b=h.is(":data(resizable)"),g=false;switch(f){case "beforeclose":f="beforeClose";break;case "buttons":this._createButtons(e);g=true;break;case "closeText":this.uiDialogTitlebarCloseText.text(""+e);break;case "dialogClass":h.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
584
- e);break;case "disabled":e?h.addClass("ui-dialog-disabled"):h.removeClass("ui-dialog-disabled");break;case "draggable":e?this._makeDraggable():h.draggable("destroy");break;case "height":g=true;break;case "maxHeight":b&&h.resizable("option","maxHeight",e);g=true;break;case "maxWidth":b&&h.resizable("option","maxWidth",e);g=true;break;case "minHeight":b&&h.resizable("option","minHeight",e);g=true;break;case "minWidth":b&&h.resizable("option","minWidth",e);g=true;break;case "position":this._position(e);
585
- break;case "resizable":b&&!e&&h.resizable("destroy");b&&typeof e==="string"&&h.resizable("option","handles",e);!b&&e!==false&&this._makeResizable(e);break;case "title":a(".ui-dialog-title",this.uiDialogTitlebar).html(""+(e||"&#160;"));break;case "width":g=true}a.Widget.prototype._setOption.apply(this,arguments);g&&this._size()},_size:function(){var f=this.options,e;this.element.css({width:"auto",minHeight:0,height:0});if(f.minWidth>f.width)f.width=f.minWidth;e=this.uiDialog.css({height:"auto",width:f.width}).height();
586
- this.element.css(f.height==="auto"?{minHeight:Math.max(f.minHeight-e,0),height:a.support.minHeight?"auto":Math.max(f.minHeight-e,0)}:{minHeight:0,height:Math.max(f.height-e,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});a.extend(a.ui.dialog,{version:"1.8.5",uuid:0,maxZ:0,getTitleId:function(f){f=f.attr("id");if(!f){this.uuid+=1;f=this.uuid}return"ui-dialog-title-"+f},overlay:function(f){this.$el=a.ui.dialog.overlay.create(f)}});
587
- a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(f){return f+".dialog-overlay"}).join(" "),create:function(f){if(this.instances.length===0){setTimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(h){if(a(h.target).zIndex()<a.ui.dialog.overlay.maxZ)return false})},1);a(document).bind("keydown.dialog-overlay",function(h){if(f.options.closeOnEscape&&
588
- h.keyCode&&h.keyCode===a.ui.keyCode.ESCAPE){f.close(h);h.preventDefault()}});a(window).bind("resize.dialog-overlay",a.ui.dialog.overlay.resize)}var e=(this.oldInstances.pop()||a("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});a.fn.bgiframe&&e.bgiframe();this.instances.push(e);return e},destroy:function(f){this.oldInstances.push(this.instances.splice(a.inArray(f,this.instances),1)[0]);this.instances.length===0&&a([document,window]).unbind(".dialog-overlay");
589
- f.remove();var e=0;a.each(this.instances,function(){e=Math.max(e,this.css("z-index"))});this.maxZ=e},height:function(){var f,e;if(a.browser.msie&&a.browser.version<7){f=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);e=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return f<e?a(window).height()+"px":f+"px"}else return a(document).height()+"px"},width:function(){var f,e;if(a.browser.msie&&a.browser.version<7){f=Math.max(document.documentElement.scrollWidth,
590
- document.body.scrollWidth);e=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return f<e?a(window).width()+"px":f+"px"}else return a(document).width()+"px"},resize:function(){var f=a([]);a.each(a.ui.dialog.overlay.instances,function(){f=f.add(this)});f.css({width:0,height:0}).css({width:a.ui.dialog.overlay.width(),height:a.ui.dialog.overlay.height()})}});a.extend(a.ui.dialog.overlay.prototype,{destroy:function(){a.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
591
- (function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
592
- "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(d){var f=
593
- this.options;if(this.helper||f.disabled||a(d.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(d);if(!this.handle)return false;return true},_mouseStart:function(d){var f=this.options;this.helper=this._createHelper(d);this._cacheHelperProportions();if(a.ui.ddmanager)a.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-
594
- this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt);f.containment&&this._setContainment();if(this._trigger("start",d)===false){this._clear();return false}this._cacheHelperProportions();
595
- a.ui.ddmanager&&!f.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,d);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(d,true);return true},_mouseDrag:function(d,f){this.position=this._generatePosition(d);this.positionAbs=this._convertPositionTo("absolute");if(!f){var e=this._uiHash();if(this._trigger("drag",d,e)===false){this._mouseUp({});return false}this.position=e.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||
596
- this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,d);return false},_mouseStop:function(d){var f=false;if(a.ui.ddmanager&&!this.options.dropBehaviour)f=a.ui.ddmanager.drop(this,d);if(this.dropped){f=this.dropped;this.dropped=false}if(!this.element[0]||!this.element[0].parentNode)return false;if(this.options.revert=="invalid"&&!f||this.options.revert=="valid"&&f||this.options.revert===true||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,
597
- f)){var e=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){e._trigger("stop",d)!==false&&e._clear()})}else this._trigger("stop",d)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(d){var f=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
598
- d.target)f=true});return f},_createHelper:function(d){var f=this.options;d=a.isFunction(f.helper)?a(f.helper.apply(this.element[0],[d])):f.helper=="clone"?this.element.clone():this.element;d.parents("body").length||d.appendTo(f.appendTo=="parent"?this.element[0].parentNode:f.appendTo);d[0]!=this.element[0]&&!/(fixed|absolute)/.test(d.css("position"))&&d.css("position","absolute");return d},_adjustOffsetFromHelper:function(d){if(typeof d=="string")d=d.split(" ");if(a.isArray(d))d={left:+d[0],top:+d[1]||
599
- 0};if("left"in d)this.offset.click.left=d.left+this.margins.left;if("right"in d)this.offset.click.left=this.helperProportions.width-d.right+this.margins.left;if("top"in d)this.offset.click.top=d.top+this.margins.top;if("bottom"in d)this.offset.click.top=this.helperProportions.height-d.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var d=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],
600
- this.offsetParent[0])){d.left+=this.scrollParent.scrollLeft();d.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)d={top:0,left:0};return{top:d.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:d.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var d=this.element.position();return{top:d.top-
601
- (parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:d.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var d=this.options;if(d.containment==
602
- "parent")d.containment=this.helper[0].parentNode;if(d.containment=="document"||d.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(d.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(d.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(d.containment)&&
603
- d.containment.constructor!=Array){var f=a(d.containment)[0];if(f){d=a(d.containment).offset();var e=a(f).css("overflow")!="hidden";this.containment=[d.left+(parseInt(a(f).css("borderLeftWidth"),10)||0)+(parseInt(a(f).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(f).css("borderTopWidth"),10)||0)+(parseInt(a(f).css("paddingTop"),10)||0)-this.margins.top,d.left+(e?Math.max(f.scrollWidth,f.offsetWidth):f.offsetWidth)-(parseInt(a(f).css("borderLeftWidth"),10)||0)-(parseInt(a(f).css("paddingRight"),
604
- 10)||0)-this.helperProportions.width-this.margins.left,d.top+(e?Math.max(f.scrollHeight,f.offsetHeight):f.offsetHeight)-(parseInt(a(f).css("borderTopWidth"),10)||0)-(parseInt(a(f).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(d.containment.constructor==Array)this.containment=d.containment},_convertPositionTo:function(d,f){if(!f)f=this.position;var e=d=="absolute"?1:-1,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],
605
- this.offsetParent[0]))?this.offsetParent:this.scrollParent,b=/(html|body)/i.test(h[0].tagName);return{top:f.top+this.offset.relative.top*e+this.offset.parent.top*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():b?0:h.scrollTop())*e),left:f.left+this.offset.relative.left*e+this.offset.parent.left*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
606
- b?0:h.scrollLeft())*e)}},_generatePosition:function(d){var f=this.options,e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(html|body)/i.test(e[0].tagName),b=d.pageX,g=d.pageY;if(this.originalPosition){if(this.containment){if(d.pageX-this.offset.click.left<this.containment[0])b=this.containment[0]+this.offset.click.left;if(d.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+
607
- this.offset.click.top;if(d.pageX-this.offset.click.left>this.containment[2])b=this.containment[2]+this.offset.click.left;if(d.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(f.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/f.grid[1])*f.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-f.grid[1]:g+f.grid[1]:g;b=this.originalPageX+
608
- Math.round((b-this.originalPageX)/f.grid[0])*f.grid[0];b=this.containment?!(b-this.offset.click.left<this.containment[0]||b-this.offset.click.left>this.containment[2])?b:!(b-this.offset.click.left<this.containment[0])?b-f.grid[0]:b+f.grid[0]:b}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():h?0:e.scrollTop()),left:b-this.offset.click.left-
609
- this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?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(d,f,e){e=e||this._uiHash();a.ui.plugin.call(this,d,[f,e]);if(d=="drag")this.positionAbs=
610
- this._convertPositionTo("absolute");return a.Widget.prototype._trigger.call(this,d,f,e)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.5"});a.ui.plugin.add("draggable","connectToSortable",{start:function(d,f){var e=a(this).data("draggable"),h=e.options,b=a.extend({},f,{item:e.element});e.sortables=[];a(h.connectToSortable).each(function(){var g=a.data(this,"sortable");
611
- if(g&&!g.options.disabled){e.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",d,b)}})},stop:function(d,f){var e=a(this).data("draggable"),h=a.extend({},f,{item:e.element});a.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(d);this.instance.options.helper=this.instance.options._helper;
612
- e.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",d,h)}})},drag:function(d,f){var e=a(this).data("draggable"),h=this;a.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=
613
- 1;this.instance.currentItem=a(h).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return f.helper[0]};d.target=this.instance.currentItem[0];this.instance._mouseCapture(d,true);this.instance._mouseStart(d,true,true);this.instance.offset.click.top=e.offset.click.top;this.instance.offset.click.left=e.offset.click.left;this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left;
614
- this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top;e._trigger("toSortable",d);e.dropped=this.instance.element;e.currentItem=e.element;this.instance.fromOutside=e}this.instance.currentItem&&this.instance._mouseDrag(d)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",d,this.instance._uiHash(this.instance));this.instance._mouseStop(d,true);this.instance.options.helper=
615
- this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();e._trigger("fromSortable",d);e.dropped=false}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var d=a("body"),f=a(this).data("draggable").options;if(d.css("cursor"))f._cursor=d.css("cursor");d.css("cursor",f.cursor)},stop:function(){var d=a(this).data("draggable").options;d._cursor&&a("body").css("cursor",d._cursor)}});a.ui.plugin.add("draggable","iframeFix",{start:function(){var d=
616
- a(this).data("draggable").options;a(d.iframeFix===true?"iframe":d.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(a(this).offset()).appendTo("body")})},stop:function(){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(d,f){var e=a(f.helper),
617
- h=a(this).data("draggable").options;if(e.css("opacity"))h._opacity=e.css("opacity");e.css("opacity",h.opacity)},stop:function(d,f){var e=a(this).data("draggable").options;e._opacity&&a(f.helper).css("opacity",e._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var d=a(this).data("draggable");if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML")d.overflowOffset=d.scrollParent.offset()},drag:function(d){var f=a(this).data("draggable"),e=f.options,h=false;if(f.scrollParent[0]!=
618
- document&&f.scrollParent[0].tagName!="HTML"){if(!e.axis||e.axis!="x")if(f.overflowOffset.top+f.scrollParent[0].offsetHeight-d.pageY<e.scrollSensitivity)f.scrollParent[0].scrollTop=h=f.scrollParent[0].scrollTop+e.scrollSpeed;else if(d.pageY-f.overflowOffset.top<e.scrollSensitivity)f.scrollParent[0].scrollTop=h=f.scrollParent[0].scrollTop-e.scrollSpeed;if(!e.axis||e.axis!="y")if(f.overflowOffset.left+f.scrollParent[0].offsetWidth-d.pageX<e.scrollSensitivity)f.scrollParent[0].scrollLeft=h=f.scrollParent[0].scrollLeft+
619
- e.scrollSpeed;else if(d.pageX-f.overflowOffset.left<e.scrollSensitivity)f.scrollParent[0].scrollLeft=h=f.scrollParent[0].scrollLeft-e.scrollSpeed}else{if(!e.axis||e.axis!="x")if(d.pageY-a(document).scrollTop()<e.scrollSensitivity)h=a(document).scrollTop(a(document).scrollTop()-e.scrollSpeed);else if(a(window).height()-(d.pageY-a(document).scrollTop())<e.scrollSensitivity)h=a(document).scrollTop(a(document).scrollTop()+e.scrollSpeed);if(!e.axis||e.axis!="y")if(d.pageX-a(document).scrollLeft()<e.scrollSensitivity)h=
620
- a(document).scrollLeft(a(document).scrollLeft()-e.scrollSpeed);else if(a(window).width()-(d.pageX-a(document).scrollLeft())<e.scrollSensitivity)h=a(document).scrollLeft(a(document).scrollLeft()+e.scrollSpeed)}h!==false&&a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(f,d)}});a.ui.plugin.add("draggable","snap",{start:function(){var d=a(this).data("draggable"),f=d.options;d.snapElements=[];a(f.snap.constructor!=String?f.snap.items||":data(draggable)":f.snap).each(function(){var e=a(this),
621
- h=e.offset();this!=d.element[0]&&d.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:h.top,left:h.left})})},drag:function(d,f){for(var e=a(this).data("draggable"),h=e.options,b=h.snapTolerance,g=f.offset.left,i=g+e.helperProportions.width,k=f.offset.top,m=k+e.helperProportions.height,l=e.snapElements.length-1;l>=0;l--){var j=e.snapElements[l].left,n=j+e.snapElements[l].width,o=e.snapElements[l].top,p=o+e.snapElements[l].height;if(j-b<g&&g<n+b&&o-b<k&&k<p+b||j-b<g&&g<n+b&&
622
- o-b<m&&m<p+b||j-b<i&&i<n+b&&o-b<k&&k<p+b||j-b<i&&i<n+b&&o-b<m&&m<p+b){if(h.snapMode!="inner"){var q=Math.abs(o-m)<=b,r=Math.abs(p-k)<=b,u=Math.abs(j-i)<=b,s=Math.abs(n-g)<=b;if(q)f.position.top=e._convertPositionTo("relative",{top:o-e.helperProportions.height,left:0}).top-e.margins.top;if(r)f.position.top=e._convertPositionTo("relative",{top:p,left:0}).top-e.margins.top;if(u)f.position.left=e._convertPositionTo("relative",{top:0,left:j-e.helperProportions.width}).left-e.margins.left;if(s)f.position.left=
623
- e._convertPositionTo("relative",{top:0,left:n}).left-e.margins.left}var v=q||r||u||s;if(h.snapMode!="outer"){q=Math.abs(o-k)<=b;r=Math.abs(p-m)<=b;u=Math.abs(j-g)<=b;s=Math.abs(n-i)<=b;if(q)f.position.top=e._convertPositionTo("relative",{top:o,left:0}).top-e.margins.top;if(r)f.position.top=e._convertPositionTo("relative",{top:p-e.helperProportions.height,left:0}).top-e.margins.top;if(u)f.position.left=e._convertPositionTo("relative",{top:0,left:j}).left-e.margins.left;if(s)f.position.left=e._convertPositionTo("relative",
624
- {top:0,left:n-e.helperProportions.width}).left-e.margins.left}if(!e.snapElements[l].snapping&&(q||r||u||s||v))e.options.snap.snap&&e.options.snap.snap.call(e.element,d,a.extend(e._uiHash(),{snapItem:e.snapElements[l].item}));e.snapElements[l].snapping=q||r||u||s||v}else{e.snapElements[l].snapping&&e.options.snap.release&&e.options.snap.release.call(e.element,d,a.extend(e._uiHash(),{snapItem:e.snapElements[l].item}));e.snapElements[l].snapping=false}}}});a.ui.plugin.add("draggable","stack",{start:function(){var d=
625
- a(this).data("draggable").options;d=a.makeArray(a(d.stack)).sort(function(e,h){return(parseInt(a(e).css("zIndex"),10)||0)-(parseInt(a(h).css("zIndex"),10)||0)});if(d.length){var f=parseInt(d[0].style.zIndex)||0;a(d).each(function(e){this.style.zIndex=f+e});this[0].style.zIndex=f+d.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(d,f){var e=a(f.helper),h=a(this).data("draggable").options;if(e.css("zIndex"))h._zIndex=e.css("zIndex");e.css("zIndex",h.zIndex)},stop:function(d,f){var e=
626
- a(this).data("draggable").options;e._zIndex&&a(f.helper).css("zIndex",e._zIndex)}})})(jQuery);
627
- (function(a){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var d=this.options,f=d.accept;this.isover=0;this.isout=1;this.accept=a.isFunction(f)?f:function(e){return e.is(f)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[d.scope]=a.ui.ddmanager.droppables[d.scope]||[];a.ui.ddmanager.droppables[d.scope].push(this);
628
- d.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var d=a.ui.ddmanager.droppables[this.options.scope],f=0;f<d.length;f++)d[f]==this&&d.splice(f,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(d,f){if(d=="accept")this.accept=a.isFunction(f)?f:function(e){return e.is(f)};a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(d){var f=a.ui.ddmanager.current;this.options.activeClass&&
629
- this.element.addClass(this.options.activeClass);f&&this._trigger("activate",d,this.ui(f))},_deactivate:function(d){var f=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);f&&this._trigger("deactivate",d,this.ui(f))},_over:function(d){var f=a.ui.ddmanager.current;if(!(!f||(f.currentItem||f.element)[0]==this.element[0]))if(this.accept.call(this.element[0],f.currentItem||f.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
630
- this._trigger("over",d,this.ui(f))}},_out:function(d){var f=a.ui.ddmanager.current;if(!(!f||(f.currentItem||f.element)[0]==this.element[0]))if(this.accept.call(this.element[0],f.currentItem||f.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",d,this.ui(f))}},_drop:function(d,f){var e=f||a.ui.ddmanager.current;if(!e||(e.currentItem||e.element)[0]==this.element[0])return false;var h=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var b=
631
- a.data(this,"droppable");if(b.options.greedy&&!b.options.disabled&&b.options.scope==e.options.scope&&b.accept.call(b.element[0],e.currentItem||e.element)&&a.ui.intersect(e,a.extend(b,{offset:b.element.offset()}),b.options.tolerance)){h=true;return false}});if(h)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",
632
- d,this.ui(e));return this.element}return false},ui:function(d){return{draggable:d.currentItem||d.element,helper:d.helper,position:d.position,offset:d.positionAbs}}});a.extend(a.ui.droppable,{version:"1.8.5"});a.ui.intersect=function(d,f,e){if(!f.offset)return false;var h=(d.positionAbs||d.position.absolute).left,b=h+d.helperProportions.width,g=(d.positionAbs||d.position.absolute).top,i=g+d.helperProportions.height,k=f.offset.left,m=k+f.proportions.width,l=f.offset.top,j=l+f.proportions.height;switch(e){case "fit":return k<=
633
- h&&b<=m&&l<=g&&i<=j;case "intersect":return k<h+d.helperProportions.width/2&&b-d.helperProportions.width/2<m&&l<g+d.helperProportions.height/2&&i-d.helperProportions.height/2<j;case "pointer":return a.ui.isOver((d.positionAbs||d.position.absolute).top+(d.clickOffset||d.offset.click).top,(d.positionAbs||d.position.absolute).left+(d.clickOffset||d.offset.click).left,l,k,f.proportions.height,f.proportions.width);case "touch":return(g>=l&&g<=j||i>=l&&i<=j||g<l&&i>j)&&(h>=k&&h<=m||b>=k&&b<=m||h<k&&b>m);
634
- default:return false}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(d,f){var e=a.ui.ddmanager.droppables[d.options.scope]||[],h=f?f.type:null,b=(d.currentItem||d.element).find(":data(droppable)").andSelf(),g=0;a:for(;g<e.length;g++)if(!(e[g].options.disabled||d&&!e[g].accept.call(e[g].element[0],d.currentItem||d.element))){for(var i=0;i<b.length;i++)if(b[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=
635
- e[g].element.offset();e[g].proportions={width:e[g].element[0].offsetWidth,height:e[g].element[0].offsetHeight};h=="mousedown"&&e[g]._activate.call(e[g],f)}}},drop:function(d,f){var e=false;a.each(a.ui.ddmanager.droppables[d.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&a.ui.intersect(d,this,this.options.tolerance))e=e||this._drop.call(this,f);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],d.currentItem||d.element)){this.isout=1;
636
- this.isover=0;this._deactivate.call(this,f)}}});return e},drag:function(d,f){d.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(d,f);a.each(a.ui.ddmanager.droppables[d.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var e=a.ui.intersect(d,this,this.options.tolerance);if(e=!e&&this.isover==1?"isout":e&&this.isover==0?"isover":null){var h;if(this.options.greedy){var b=this.element.parents(":data(droppable):eq(0)");if(b.length){h=a.data(b[0],"droppable");
637
- h.greedyChild=e=="isover"?1:0}}if(h&&e=="isover"){h.isover=0;h.isout=1;h._out.call(h,f)}this[e]=1;this[e=="isout"?"isover":"isout"]=0;this[e=="isover"?"_over":"_out"].call(this,f);if(h&&e=="isout"){h.isout=0;h.isover=1;h._over.call(h,f)}}}})}}})(jQuery);
638
- (function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var d=this;this.element.bind("mousedown."+this.widgetName,function(f){return d._mouseDown(f)}).bind("click."+this.widgetName,function(f){if(d._preventClickEvent){d._preventClickEvent=false;f.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(d){d.originalEvent=d.originalEvent||{};if(!d.originalEvent.mouseHandled){this._mouseStarted&&
639
- this._mouseUp(d);this._mouseDownEvent=d;var f=this,e=d.which==1,h=typeof this.options.cancel=="string"?a(d.target).parents().add(d.target).filter(this.options.cancel).length:false;if(!e||h||!this._mouseCapture(d))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){f.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=this._mouseStart(d)!==false;if(!this._mouseStarted){d.preventDefault();
640
- return true}}this._mouseMoveDelegate=function(b){return f._mouseMove(b)};this._mouseUpDelegate=function(b){return f._mouseUp(b)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.browser.safari||d.preventDefault();return d.originalEvent.mouseHandled=true}},_mouseMove:function(d){if(a.browser.msie&&!d.button)return this._mouseUp(d);if(this._mouseStarted){this._mouseDrag(d);return d.preventDefault()}if(this._mouseDistanceMet(d)&&
641
- this._mouseDelayMet(d))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,d)!==false)?this._mouseDrag(d):this._mouseUp(d);return!this._mouseStarted},_mouseUp:function(d){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=d.target==this._mouseDownEvent.target;this._mouseStop(d)}return false},_mouseDistanceMet:function(d){return Math.max(Math.abs(this._mouseDownEvent.pageX-
642
- d.pageX),Math.abs(this._mouseDownEvent.pageY-d.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
643
- (function(a){a.widget("ui.panel",{options:{event:"click",collapsible:true,collapseType:"default",collapsed:false,accordion:false,collapseSpeed:"fast",draggable:false,trueVerticalText:true,vHeight:"220px",stackable:true,width:"auto",controls:false,cookie:null,widgetClass:"ui-helper-reset ui-widget ui-panel",headerClass:"ui-helper-reset ui-widget-header ui-panel-header ui-corner-top",contentClass:"ui-helper-reset ui-widget-content ui-panel-content ui-corner-bottom",contentTextClass:"ui-panel-content-text",
644
- rightboxClass:"ui-panel-rightbox",controlsClass:"ui-panel-controls",titleClass:"ui-panel-title",titleTextClass:"ui-panel-title-text",iconClass:"ui-icon",hoverClass:"ui-state-hover",collapsePnlClass:"ui-panel-clps-pnl",headerIconClpsd:"ui-icon-triangle-1-e",headerIcon:"ui-icon-triangle-1-s",slideRIconClpsd:"ui-icon-arrowthickstop-1-w",slideRIcon:"ui-icon-arrowthickstop-1-e",slideLIconClpsd:"ui-icon-arrowthickstop-1-e",slideLIcon:"ui-icon-arrowthickstop-1-w"},_init:function(){this._panelize()},_panelize:function(){if(this.element.is("div")){var d=
645
- this,f=this.options;this.panelBox=this.element;if(f.width=="auto")f.width=this.panelBox.css("width");else this.panelBox.css("width",f.width);this.panelBox.attr("role","panel");f.id=this.panelBox.attr("id");this.headerBox=this.element.children(":first");this.contentBox=this.element.children().eq(1);f.content=this.contentBox.html();this.contentBox.wrapInner("<div/>");this.contentTextBox=this.contentBox.children(":first").addClass(f.contentTextClass);this.headerBox.wrapInner("<div><span/></div>");this.titleBox=
646
- this.headerBox.children(":first");this.titleTextBox=this.titleBox.children(":first");this.titleText=this.titleTextBox.html();this.headerBox.prepend("<span/>");this.rightBox=this.headerBox.children(":first").addClass(f.rightboxClass);if(f.controls!=false){this.rightBox.append("<span/>");this.controlsBox=this.rightBox.children(":first").addClass(f.controlsClass).html(f.controls)}else this.controlsBox=null;this.panelBox.addClass(f.widgetClass);this.headerBox.addClass(f.headerClass);this.titleBox.addClass(f.titleClass);
647
- this.titleTextBox.addClass(f.titleTextClass);this.contentBox.addClass(f.contentClass);if(f.collapsible){switch(f.collapseType){case "slide-right":var e=0;if(f.controls)e=1;this.rightBox.append("<span><span/></span>");this.collapsePanel=this.rightBox.children().eq(e).addClass(f.collapsePnlClass);this.collapseButton=this.collapsePanel.children(":first").addClass(f.slideRIcon);this.iconBtnClpsd=f.slideRIconClpsd;this.iconBtn=f.slideRIcon;this.ctrlBox=this.controlsBox;break;case "slide-left":this.headerBox.prepend("<span><span/></span>");
648
- this.collapsePanel=this.headerBox.children(":first").addClass(f.collapsePnlClass);this.collapseButton=this.collapsePanel.children(":first").addClass(f.slideLIcon);this.iconBtnClpsd=f.slideLIconClpsd;this.iconBtn=f.slideLIcon;this.ctrlBox=this.rightBox;break;default:this.headerBox.prepend("<span><span/></span>");this.collapseButton=this.headerBox.children(":first").addClass(f.headerIcon);this.iconBtnClpsd=f.headerIconClpsd;this.iconBtn=f.headerIcon;this.ctrlBox=this.controlsBox}this._buttonHover(this.collapseButton);
649
- this.collapseButton.addClass(f.iconClass);if(f.event){this.collapseButton.bind(f.event+".panel",function(h){return d._clickHandler.call(d,h,this)});this.titleTextBox.bind(f.event+".panel",function(h){return d._clickHandler.call(d,h,this)})}if(f.accordion){f.collapsed=true;f.trueVerticalText=false}if(f.cookie)f.collapsed=d._cookie()==0?false:true;this.panelBox.data("collapsed",f.collapsed);if(f.stackable&&a.inArray(f.collapseType,["slide-right","slide-left"])>-1){this.panelDock=this.panelBox.siblings("div[role=panelDock]:first");
650
- this.panelFrame=this.panelBox.siblings("div[role=panelFrame]:first");if(this.panelDock.length==0){this.panelDock=this.panelBox.parent(0).prepend("<div>").children(":first");this.panelFrame=this.panelDock.after("<div>").next(":first");this.panelDock.attr("role","panelDock").css("float",f.collapseType=="slide-left"?"left":"right");this.panelFrame.attr("role","panelFrame").css({"float":f.collapseType=="slide-left"?"left":"right",overflow:"hidden"})}f.collapsed?this.panelDock.append(this.panelBox):this.panelFrame.append(this.panelBox)}f.collapsed&&
651
- d.toggle(0,true)}else this.titleTextBox.css("cursor","default");!f.accordion&&f.draggable&&a.fn.draggable&&this._makeDraggable();this.panelBox.show()}},_cookie:function(){var d=this.cookie||(this.cookie=this.options.cookie.name||"ui-panel-"+this.options.id);return a.cookie.apply(null,[d].concat(a.makeArray(arguments)))},_makeDraggable:function(){this.panelBox.draggable({containment:"document",handle:".ui-panel-header",cancel:".ui-panel-content",cursor:"move"});this.contentBox.css("position","absolute")},
652
- _clickHandler:function(){var d=this.options;if(d.disabled)return false;this.toggle(d.collapseSpeed);return false},toggle:function(d,f){var e=this.options,h=this.panelBox,b=this.contentBox,g=this.headerBox,i=this.titleTextBox,k=this.titleText,m=this.ctrlBox,l=this.panelDock,j="";jQuery.support.leadingWhitespace||(j="-ie");b.css("display")=="none"?this._trigger("unfold"):this._trigger("fold");m&&m.toggle(0);if(e.collapseType=="default")if(d==0){m&&m.hide();b.hide()}else b.slideToggle(d);else{if(d==
653
- 0){e.collapsed=false;m&&m.hide();b.hide()}else b.toggle();if(e.collapsed==false){if(e.trueVerticalText){g.toggleClass("ui-panel-vtitle").css("height",e.vHeight);if(j==""){b="height:"+(parseInt(e.vHeight)-50)+"px;width:100%;position:absolute;bottom:0;left:0;";i.empty().append('<div style="'+b+'z-index:3;"></div><object style="'+b+'z-index:2;" type="image/svg+xml" data="data:image/svg+xml;charset=utf-8,<svg xmlns=\'http://www.w3.org/2000/svg\'><text x=\'-'+(parseInt(e.vHeight)-60)+"px' y='16px' style='font-weight:"+
654
- i.css("font-weight")+";font-family:"+i.css("font-family").replace(/"/g,"")+";font-size:"+i.css("font-size")+";fill:"+i.css("color")+";' transform='rotate(-90)' text-rendering='optimizeSpeed'>"+k+'</text></svg>"></object>').css("height",e.vHeight)}i.toggleClass("ui-panel-vtext"+j)}else{g.attr("align","center");i.html(i.text().replace(/(.)/g,"$1<BR>"))}h.animate({width:"2.4em"},d);if(e.stackable)f?l.append(h):l.prepend(h)}else{e.stackable&&this.panelFrame.append(h);if(e.trueVerticalText){g.toggleClass("ui-panel-vtitle").css("height",
655
- "auto");i.empty().append(k);i.toggleClass("ui-panel-vtext"+j)}else{g.attr("align","left");i.html(i.text().replace(/<BR>/g," "))}h.animate({width:e.width},d)}}if((d!=0||e.trueVerticalText)&&e.cookie==null||!f&&e.cookie!=null)e.collapsed=!e.collapsed;this.panelBox.data("collapsed",e.collapsed);if(!f){e.cookie&&this._cookie(Number(e.collapsed),e.cookie);e.accordion&&a("."+e.accordion+"[role='panel'][id!='"+e.id+"']:not(:data(collapsed))").panel("toggle",d,true)}this.collapseButton.toggleClass(this.iconBtnClpsd).toggleClass(this.iconBtn);
656
- g.toggleClass("ui-corner-all")},content:function(d){this.contentTextBox.html(d)},destroy:function(){var d=this.options;this.headerBox.html(this.titleText).removeAttr("align").removeAttr("style").removeClass("ui-panel-vtitle ui-corner-all "+d.headerClass);this.contentBox.removeClass(d.contentClass).removeAttr("style").html(d.content);this.panelBox.removeAttr("role").removeAttr("style").removeData("collapsed").unbind(".panel").removeClass(d.widgetClass);if(d.stackable&&a.inArray(d.collapseType,["slide-right",
657
- "slide-left"])>-1){this.panelDock.before(this.panelBox);if(this.panelDock.children("div[role=panel]").length==0&&this.panelFrame.children("div[role=panel]").length==0){this.panelDock.remove();this.panelFrame.remove()}}d.cookie&&this._cookie(null,d.cookie);return this},_buttonHover:function(d){var f=this.options;d.bind({mouseover:function(){a(this).addClass(f.hoverClass)},mouseout:function(){a(this).removeClass(f.hoverClass)}})}});a.extend(a.ui.panel,{version:"0.6"})})(jQuery);
658
- (function(a){a.ui=a.ui||{};var d=/left|center|right/,f=/top|center|bottom/,e=a.fn.position,h=a.fn.offset;a.fn.position=function(b){if(!b||!b.of)return e.apply(this,arguments);b=a.extend({},b);var g=a(b.of),i=g[0],k=(b.collision||"flip").split(" "),m=b.offset?b.offset.split(" "):[0,0],l,j,n;if(i.nodeType===9){l=g.width();j=g.height();n={top:0,left:0}}else if(i.scrollTo&&i.document){l=g.width();j=g.height();n={top:g.scrollTop(),left:g.scrollLeft()}}else if(i.preventDefault){b.at="left top";l=j=0;n=
659
- {top:b.of.pageY,left:b.of.pageX}}else{l=g.outerWidth();j=g.outerHeight();n=g.offset()}a.each(["my","at"],function(){var o=(b[this]||"").split(" ");if(o.length===1)o=d.test(o[0])?o.concat(["center"]):f.test(o[0])?["center"].concat(o):["center","center"];o[0]=d.test(o[0])?o[0]:"center";o[1]=f.test(o[1])?o[1]:"center";b[this]=o});if(k.length===1)k[1]=k[0];m[0]=parseInt(m[0],10)||0;if(m.length===1)m[1]=m[0];m[1]=parseInt(m[1],10)||0;if(b.at[0]==="right")n.left+=l;else if(b.at[0]==="center")n.left+=l/
660
- 2;if(b.at[1]==="bottom")n.top+=j;else if(b.at[1]==="center")n.top+=j/2;n.left+=m[0];n.top+=m[1];return this.each(function(){var o=a(this),p=o.outerWidth(),q=o.outerHeight(),r=parseInt(a.curCSS(this,"marginLeft",true))||0,u=parseInt(a.curCSS(this,"marginTop",true))||0,s=p+r+parseInt(a.curCSS(this,"marginRight",true))||0,v=q+u+parseInt(a.curCSS(this,"marginBottom",true))||0,w=a.extend({},n),y;if(b.my[0]==="right")w.left-=p;else if(b.my[0]==="center")w.left-=p/2;if(b.my[1]==="bottom")w.top-=q;else if(b.my[1]===
661
- "center")w.top-=q/2;w.left=parseInt(w.left);w.top=parseInt(w.top);y={left:w.left-r,top:w.top-u};a.each(["left","top"],function(C,B){a.ui.position[k[C]]&&a.ui.position[k[C]][B](w,{targetWidth:l,targetHeight:j,elemWidth:p,elemHeight:q,collisionPosition:y,collisionWidth:s,collisionHeight:v,offset:m,my:b.my,at:b.at})});a.fn.bgiframe&&o.bgiframe();o.offset(a.extend(w,{using:b.using}))})};a.ui.position={fit:{left:function(b,g){var i=a(window);i=g.collisionPosition.left+g.collisionWidth-i.width()-i.scrollLeft();
662
- b.left=i>0?b.left-i:Math.max(b.left-g.collisionPosition.left,b.left)},top:function(b,g){var i=a(window);i=g.collisionPosition.top+g.collisionHeight-i.height()-i.scrollTop();b.top=i>0?b.top-i:Math.max(b.top-g.collisionPosition.top,b.top)}},flip:{left:function(b,g){if(g.at[0]!=="center"){var i=a(window);i=g.collisionPosition.left+g.collisionWidth-i.width()-i.scrollLeft();var k=g.my[0]==="left"?-g.elemWidth:g.my[0]==="right"?g.elemWidth:0,m=g.at[0]==="left"?g.targetWidth:-g.targetWidth,l=-2*g.offset[0];
663
- b.left+=g.collisionPosition.left<0?k+m+l:i>0?k+m+l:0}},top:function(b,g){if(g.at[1]!=="center"){var i=a(window);i=g.collisionPosition.top+g.collisionHeight-i.height()-i.scrollTop();var k=g.my[1]==="top"?-g.elemHeight:g.my[1]==="bottom"?g.elemHeight:0,m=g.at[1]==="top"?g.targetHeight:-g.targetHeight,l=-2*g.offset[1];b.top+=g.collisionPosition.top<0?k+m+l:i>0?k+m+l:0}}}};if(!a.offset.setOffset){a.offset.setOffset=function(b,g){if(/static/.test(a.curCSS(b,"position")))b.style.position="relative";var i=
664
- a(b),k=i.offset(),m=parseInt(a.curCSS(b,"top",true),10)||0,l=parseInt(a.curCSS(b,"left",true),10)||0;k={top:g.top-k.top+m,left:g.left-k.left+l};"using"in g?g.using.call(b,k):i.css(k)};a.fn.offset=function(b){var g=this[0];if(!g||!g.ownerDocument)return null;if(b)return this.each(function(){a.offset.setOffset(this,b)});return h.call(this)}}})(jQuery);
665
- (function(a,d){a.widget("ui.progressbar",{options:{value:0},min:0,max:100,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this._value()});this.valueDiv=a("<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");
666
- this.valueDiv.remove();a.Widget.prototype.destroy.apply(this,arguments)},value:function(f){if(f===d)return this._value();this._setOption("value",f);return this},_setOption:function(f,e){if(f==="value"){this.options.value=e;this._refreshValue();this._trigger("change")}a.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var f=this.options.value;if(typeof f!=="number")f=0;return Math.min(this.max,Math.max(this.min,f))},_refreshValue:function(){var f=this.value();this.valueDiv.toggleClass("ui-corner-right",
667
- f===this.max).width(f+"%");this.element.attr("aria-valuenow",f)}});a.extend(a.ui.progressbar,{version:"1.8.5"})})(jQuery);
668
- (function(a){a.widget("ui.resizable",a.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var e=this,h=this.options;this.element.addClass("ui-resizable");a.extend(this,{_aspectRatio:!!h.aspectRatio,aspectRatio:h.aspectRatio,originalElement:this.element,
669
- _proportionallyResizeElements:[],_helper:h.helper||h.ghost||h.animate?h.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&a.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(a('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
670
- 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=
671
- this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=h.handles||(!a(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",
672
- nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var b=this.handles.split(",");this.handles={};for(var g=0;g<b.length;g++){var i=a.trim(b[g]),k=a('<div class="ui-resizable-handle '+("ui-resizable-"+i)+'"></div>');/sw|se|ne|nw/.test(i)&&k.css({zIndex:++h.zIndex});"se"==i&&k.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[i]=".ui-resizable-"+i;this.element.append(k)}}this._renderAxis=function(m){m=m||this.element;for(var l in this.handles){if(this.handles[l].constructor==
673
- String)this.handles[l]=a(this.handles[l],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var j=a(this.handles[l],this.element),n=0;n=/sw|ne|nw|se|n|s/.test(l)?j.outerHeight():j.outerWidth();j=["padding",/ne|nw|n/.test(l)?"Top":/se|sw|s/.test(l)?"Bottom":/^e$/.test(l)?"Right":"Left"].join("");m.css(j,n);this._proportionallyResize()}a(this.handles[l])}};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection();
674
- this._handles.mouseover(function(){if(!e.resizing){if(this.className)var m=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);e.axis=m&&m[1]?m[1]:"se"}});if(h.autoHide){this._handles.hide();a(this.element).addClass("ui-resizable-autohide").hover(function(){a(this).removeClass("ui-resizable-autohide");e._handles.show()},function(){if(!e.resizing){a(this).addClass("ui-resizable-autohide");e._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var e=function(b){a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
675
- if(this.elementIsWrapper){e(this.element);var h=this.element;h.after(this.originalElement.css({position:h.css("position"),width:h.outerWidth(),height:h.outerHeight(),top:h.css("top"),left:h.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);e(this.originalElement);return this},_mouseCapture:function(e){var h=false,b;for(b in this.handles)if(a(this.handles[b])[0]==e.target)h=true;return!this.options.disabled&&h},_mouseStart:function(e){var h=this.options,b=this.element.position(),
676
- g=this.element;this.resizing=true;this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()};if(g.is(".ui-draggable")||/absolute/.test(g.css("position")))g.css({position:"absolute",top:b.top,left:b.left});a.browser.opera&&/relative/.test(g.css("position"))&&g.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();b=d(this.helper.css("left"));var i=d(this.helper.css("top"));if(h.containment){b+=a(h.containment).scrollLeft()||0;i+=a(h.containment).scrollTop()||0}this.offset=
677
- this.helper.offset();this.position={left:b,top:i};this.size=this._helper?{width:g.outerWidth(),height:g.outerHeight()}:{width:g.width(),height:g.height()};this.originalSize=this._helper?{width:g.outerWidth(),height:g.outerHeight()}:{width:g.width(),height:g.height()};this.originalPosition={left:b,top:i};this.sizeDiff={width:g.outerWidth()-g.width(),height:g.outerHeight()-g.height()};this.originalMousePosition={left:e.pageX,top:e.pageY};this.aspectRatio=typeof h.aspectRatio=="number"?h.aspectRatio:
678
- this.originalSize.width/this.originalSize.height||1;h=a(".ui-resizable-"+this.axis).css("cursor");a("body").css("cursor",h=="auto"?this.axis+"-resize":h);g.addClass("ui-resizable-resizing");this._propagate("start",e);return true},_mouseDrag:function(e){var h=this.helper,b=this.originalMousePosition,g=this._change[this.axis];if(!g)return false;b=g.apply(this,[e,e.pageX-b.left||0,e.pageY-b.top||0]);if(this._aspectRatio||e.shiftKey)b=this._updateRatio(b,e);b=this._respectSize(b,e);this._propagate("resize",
679
- e);h.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(b);this._trigger("resize",e,this.ui());return false},_mouseStop:function(e){this.resizing=false;var h=this.options;if(this._helper){var b=this._proportionallyResizeElements,g=b.length&&/textarea/i.test(b[0].nodeName);b=g&&a.ui.hasScroll(b[0],"left")?0:this.sizeDiff.height;
680
- g={width:this.size.width-(g?0:this.sizeDiff.width),height:this.size.height-b};b=parseInt(this.element.css("left"),10)+(this.position.left-this.originalPosition.left)||null;var i=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null;h.animate||this.element.css(a.extend(g,{top:i,left:b}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!h.animate&&this._proportionallyResize()}a("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");
681
- this._propagate("stop",e);this._helper&&this.helper.remove();return false},_updateCache:function(e){this.offset=this.helper.offset();if(f(e.left))this.position.left=e.left;if(f(e.top))this.position.top=e.top;if(f(e.height))this.size.height=e.height;if(f(e.width))this.size.width=e.width},_updateRatio:function(e){var h=this.position,b=this.size,g=this.axis;if(e.height)e.width=b.height*this.aspectRatio;else if(e.width)e.height=b.width/this.aspectRatio;if(g=="sw"){e.left=h.left+(b.width-e.width);e.top=
682
- null}if(g=="nw"){e.top=h.top+(b.height-e.height);e.left=h.left+(b.width-e.width)}return e},_respectSize:function(e){var h=this.options,b=this.axis,g=f(e.width)&&h.maxWidth&&h.maxWidth<e.width,i=f(e.height)&&h.maxHeight&&h.maxHeight<e.height,k=f(e.width)&&h.minWidth&&h.minWidth>e.width,m=f(e.height)&&h.minHeight&&h.minHeight>e.height;if(k)e.width=h.minWidth;if(m)e.height=h.minHeight;if(g)e.width=h.maxWidth;if(i)e.height=h.maxHeight;var l=this.originalPosition.left+this.originalSize.width,j=this.position.top+
683
- this.size.height,n=/sw|nw|w/.test(b);b=/nw|ne|n/.test(b);if(k&&n)e.left=l-h.minWidth;if(g&&n)e.left=l-h.maxWidth;if(m&&b)e.top=j-h.minHeight;if(i&&b)e.top=j-h.maxHeight;if((h=!e.width&&!e.height)&&!e.left&&e.top)e.top=null;else if(h&&!e.top&&e.left)e.left=null;return e},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e=this.helper||this.element,h=0;h<this._proportionallyResizeElements.length;h++){var b=this._proportionallyResizeElements[h];if(!this.borderDif){var g=
684
- [b.css("borderTopWidth"),b.css("borderRightWidth"),b.css("borderBottomWidth"),b.css("borderLeftWidth")],i=[b.css("paddingTop"),b.css("paddingRight"),b.css("paddingBottom"),b.css("paddingLeft")];this.borderDif=a.map(g,function(k,m){var l=parseInt(k,10)||0,j=parseInt(i[m],10)||0;return l+j})}a.browser.msie&&(a(e).is(":hidden")||a(e).parents(":hidden").length)||b.css({height:e.height()-this.borderDif[0]-this.borderDif[2]||0,width:e.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var e=
685
- this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||a('<div style="overflow:hidden;"></div>');var h=a.browser.msie&&a.browser.version<7,b=h?1:0;h=h?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+h,height:this.element.outerHeight()+h,position:"absolute",left:this.elementOffset.left-b+"px",top:this.elementOffset.top-b+"px",zIndex:++e.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(e,
686
- h){return{width:this.originalSize.width+h}},w:function(e,h){return{left:this.originalPosition.left+h,width:this.originalSize.width-h}},n:function(e,h,b){return{top:this.originalPosition.top+b,height:this.originalSize.height-b}},s:function(e,h,b){return{height:this.originalSize.height+b}},se:function(e,h,b){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,h,b]))},sw:function(e,h,b){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,h,
687
- b]))},ne:function(e,h,b){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,h,b]))},nw:function(e,h,b){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,h,b]))}},_propagate:function(e,h){a.ui.plugin.call(this,e,[h,this.ui()]);e!="resize"&&this._trigger(e,h,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,
688
- originalPosition:this.originalPosition}}});a.extend(a.ui.resizable,{version:"1.8.5"});a.ui.plugin.add("resizable","alsoResize",{start:function(){var e=a(this).data("resizable").options,h=function(b){a(b).each(function(){var g=a(this);g.data("resizable-alsoresize",{width:parseInt(g.width(),10),height:parseInt(g.height(),10),left:parseInt(g.css("left"),10),top:parseInt(g.css("top"),10),position:g.css("position")})})};if(typeof e.alsoResize=="object"&&!e.alsoResize.parentNode)if(e.alsoResize.length){e.alsoResize=
689
- e.alsoResize[0];h(e.alsoResize)}else a.each(e.alsoResize,function(b){h(b)});else h(e.alsoResize)},resize:function(e,h){var b=a(this).data("resizable"),g=b.options,i=b.originalSize,k=b.originalPosition,m={height:b.size.height-i.height||0,width:b.size.width-i.width||0,top:b.position.top-k.top||0,left:b.position.left-k.left||0},l=function(j,n){a(j).each(function(){var o=a(this),p=a(this).data("resizable-alsoresize"),q={},r=n&&n.length?n:o.parents(h.originalElement[0]).length?["width","height"]:["width",
690
- "height","top","left"];a.each(r,function(u,s){var v=(p[s]||0)+(m[s]||0);if(v&&v>=0)q[s]=v||null});if(a.browser.opera&&/relative/.test(o.css("position"))){b._revertToRelativePosition=true;o.css({position:"absolute",top:"auto",left:"auto"})}o.css(q)})};typeof g.alsoResize=="object"&&!g.alsoResize.nodeType?a.each(g.alsoResize,function(j,n){l(j,n)}):l(g.alsoResize)},stop:function(){var e=a(this).data("resizable"),h=e.options,b=function(g){a(g).each(function(){var i=a(this);i.css({position:i.data("resizable-alsoresize").position})})};
691
- if(e._revertToRelativePosition){e._revertToRelativePosition=false;typeof h.alsoResize=="object"&&!h.alsoResize.nodeType?a.each(h.alsoResize,function(g){b(g)}):b(h.alsoResize)}a(this).removeData("resizable-alsoresize")}});a.ui.plugin.add("resizable","animate",{stop:function(e){var h=a(this).data("resizable"),b=h.options,g=h._proportionallyResizeElements,i=g.length&&/textarea/i.test(g[0].nodeName),k=i&&a.ui.hasScroll(g[0],"left")?0:h.sizeDiff.height;i={width:h.size.width-(i?0:h.sizeDiff.width),height:h.size.height-
692
- k};k=parseInt(h.element.css("left"),10)+(h.position.left-h.originalPosition.left)||null;var m=parseInt(h.element.css("top"),10)+(h.position.top-h.originalPosition.top)||null;h.element.animate(a.extend(i,m&&k?{top:m,left:k}:{}),{duration:b.animateDuration,easing:b.animateEasing,step:function(){var l={width:parseInt(h.element.css("width"),10),height:parseInt(h.element.css("height"),10),top:parseInt(h.element.css("top"),10),left:parseInt(h.element.css("left"),10)};g&&g.length&&a(g[0]).css({width:l.width,
693
- height:l.height});h._updateCache(l);h._propagate("resize",e)}})}});a.ui.plugin.add("resizable","containment",{start:function(){var e=a(this).data("resizable"),h=e.element,b=e.options.containment;if(h=b instanceof a?b.get(0):/parent/.test(b)?h.parent().get(0):b){e.containerElement=a(h);if(/document/.test(b)||b==document){e.containerOffset={left:0,top:0};e.containerPosition={left:0,top:0};e.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}}else{var g=
694
- a(h),i=[];a(["Top","Right","Left","Bottom"]).each(function(l,j){i[l]=d(g.css("padding"+j))});e.containerOffset=g.offset();e.containerPosition=g.position();e.containerSize={height:g.innerHeight()-i[3],width:g.innerWidth()-i[1]};b=e.containerOffset;var k=e.containerSize.height,m=e.containerSize.width;m=a.ui.hasScroll(h,"left")?h.scrollWidth:m;k=a.ui.hasScroll(h)?h.scrollHeight:k;e.parentData={element:h,left:b.left,top:b.top,width:m,height:k}}}},resize:function(e){var h=a(this).data("resizable"),b=h.options,
695
- g=h.containerOffset,i=h.position;e=h._aspectRatio||e.shiftKey;var k={top:0,left:0},m=h.containerElement;if(m[0]!=document&&/static/.test(m.css("position")))k=g;if(i.left<(h._helper?g.left:0)){h.size.width+=h._helper?h.position.left-g.left:h.position.left-k.left;if(e)h.size.height=h.size.width/b.aspectRatio;h.position.left=b.helper?g.left:0}if(i.top<(h._helper?g.top:0)){h.size.height+=h._helper?h.position.top-g.top:h.position.top;if(e)h.size.width=h.size.height*b.aspectRatio;h.position.top=h._helper?
696
- g.top:0}h.offset.left=h.parentData.left+h.position.left;h.offset.top=h.parentData.top+h.position.top;b=Math.abs((h._helper?h.offset.left-k.left:h.offset.left-k.left)+h.sizeDiff.width);g=Math.abs((h._helper?h.offset.top-k.top:h.offset.top-g.top)+h.sizeDiff.height);i=h.containerElement.get(0)==h.element.parent().get(0);k=/relative|absolute/.test(h.containerElement.css("position"));if(i&&k)b-=h.parentData.left;if(b+h.size.width>=h.parentData.width){h.size.width=h.parentData.width-b;if(e)h.size.height=
697
- h.size.width/h.aspectRatio}if(g+h.size.height>=h.parentData.height){h.size.height=h.parentData.height-g;if(e)h.size.width=h.size.height*h.aspectRatio}},stop:function(){var e=a(this).data("resizable"),h=e.options,b=e.containerOffset,g=e.containerPosition,i=e.containerElement,k=a(e.helper),m=k.offset(),l=k.outerWidth()-e.sizeDiff.width;k=k.outerHeight()-e.sizeDiff.height;e._helper&&!h.animate&&/relative/.test(i.css("position"))&&a(this).css({left:m.left-g.left-b.left,width:l,height:k});e._helper&&!h.animate&&
698
- /static/.test(i.css("position"))&&a(this).css({left:m.left-g.left-b.left,width:l,height:k})}});a.ui.plugin.add("resizable","ghost",{start:function(){var e=a(this).data("resizable"),h=e.options,b=e.size;e.ghost=e.originalElement.clone();e.ghost.css({opacity:0.25,display:"block",position:"relative",height:b.height,width:b.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof h.ghost=="string"?h.ghost:"");e.ghost.appendTo(e.helper)},resize:function(){var e=a(this).data("resizable");
699
- e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=a(this).data("resizable");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}});a.ui.plugin.add("resizable","grid",{resize:function(){var e=a(this).data("resizable"),h=e.options,b=e.size,g=e.originalSize,i=e.originalPosition,k=e.axis;h.grid=typeof h.grid=="number"?[h.grid,h.grid]:h.grid;var m=Math.round((b.width-g.width)/(h.grid[0]||1))*(h.grid[0]||1);h=Math.round((b.height-g.height)/
700
- (h.grid[1]||1))*(h.grid[1]||1);if(/^(se|s|e)$/.test(k)){e.size.width=g.width+m;e.size.height=g.height+h}else if(/^(ne)$/.test(k)){e.size.width=g.width+m;e.size.height=g.height+h;e.position.top=i.top-h}else{if(/^(sw)$/.test(k)){e.size.width=g.width+m;e.size.height=g.height+h}else{e.size.width=g.width+m;e.size.height=g.height+h;e.position.top=i.top-h}e.position.left=i.left-m}}});var d=function(e){return parseInt(e,10)||0},f=function(e){return!isNaN(parseInt(e,10))}})(jQuery);
701
- (function(a){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var d=this;this.element.addClass("ui-selectable");this.dragged=false;var f;this.refresh=function(){f=a(d.options.filter,d.element[0]);f.each(function(){var e=a(this),h=e.offset();a.data(this,"selectable-item",{element:this,$element:e,left:h.left,top:h.top,right:h.left+e.outerWidth(),bottom:h.top+e.outerHeight(),startselected:false,selected:e.hasClass("ui-selected"),
702
- selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})};this.refresh();this.selectees=f.addClass("ui-selectee");this._mouseInit();this.helper=a("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(d){var f=this;this.opos=[d.pageX,
703
- d.pageY];if(!this.options.disabled){var e=this.options;this.selectees=a(e.filter,this.element[0]);this._trigger("start",d);a(e.appendTo).append(this.helper);this.helper.css({left:d.clientX,top:d.clientY,width:0,height:0});e.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var h=a.data(this,"selectable-item");h.startselected=true;if(!d.metaKey){h.$element.removeClass("ui-selected");h.selected=false;h.$element.addClass("ui-unselecting");h.unselecting=true;f._trigger("unselecting",
704
- d,{unselecting:h.element})}});a(d.target).parents().andSelf().each(function(){var h=a.data(this,"selectable-item");if(h){var b=!d.metaKey||!h.$element.hasClass("ui-selected");h.$element.removeClass(b?"ui-unselecting":"ui-selected").addClass(b?"ui-selecting":"ui-unselecting");h.unselecting=!b;h.selecting=b;(h.selected=b)?f._trigger("selecting",d,{selecting:h.element}):f._trigger("unselecting",d,{unselecting:h.element});return false}})}},_mouseDrag:function(d){var f=this;this.dragged=true;if(!this.options.disabled){var e=
705
- this.options,h=this.opos[0],b=this.opos[1],g=d.pageX,i=d.pageY;if(h>g){var k=g;g=h;h=k}if(b>i){k=i;i=b;b=k}this.helper.css({left:h,top:b,width:g-h,height:i-b});this.selectees.each(function(){var m=a.data(this,"selectable-item");if(!(!m||m.element==f.element[0])){var l=false;if(e.tolerance=="touch")l=!(m.left>g||m.right<h||m.top>i||m.bottom<b);else if(e.tolerance=="fit")l=m.left>h&&m.right<g&&m.top>b&&m.bottom<i;if(l){if(m.selected){m.$element.removeClass("ui-selected");m.selected=false}if(m.unselecting){m.$element.removeClass("ui-unselecting");
706
- m.unselecting=false}if(!m.selecting){m.$element.addClass("ui-selecting");m.selecting=true;f._trigger("selecting",d,{selecting:m.element})}}else{if(m.selecting)if(d.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}f._trigger("unselecting",d,{unselecting:m.element})}if(m.selected)if(!d.metaKey&&
707
- !m.startselected){m.$element.removeClass("ui-selected");m.selected=false;m.$element.addClass("ui-unselecting");m.unselecting=true;f._trigger("unselecting",d,{unselecting:m.element})}}}});return false}},_mouseStop:function(d){var f=this;this.dragged=false;a(".ui-unselecting",this.element[0]).each(function(){var e=a.data(this,"selectable-item");e.$element.removeClass("ui-unselecting");e.unselecting=false;e.startselected=false;f._trigger("unselected",d,{unselected:e.element})});a(".ui-selecting",this.element[0]).each(function(){var e=
708
- a.data(this,"selectable-item");e.$element.removeClass("ui-selecting").addClass("ui-selected");e.selecting=false;e.selected=true;e.startselected=true;f._trigger("selected",d,{selected:e.element})});this._trigger("stop",d);this.helper.remove();return false}});a.extend(a.ui.selectable,{version:"1.8.5"})})(jQuery);
709
- (function(a){a.widget("ui.selectmenu",{getter:"value",version:"1.8",eventPrefix:"selectmenu",options:{transferClasses:true,style:"popup",width:null,menuWidth:null,handleWidth:26,maxHeight:null,icons:null,format:null},_create:function(){var d=this,f=this.options,e=this.element.attr("id")||"ui-selectmenu-"+Math.random().toString(16).slice(2,10);this.ids=[e+"-button",e+"-menu"];this._safemouseup=true;this.newelement=a('<a class="'+this.widgetBaseClass+' ui-widget ui-state-default ui-corner-all" id="'+
710
- this.ids[0]+'" role="button" href="#" aria-haspopup="true" aria-owns="'+this.ids[1]+'"></a>').insertAfter(this.element);(e=this.element.attr("tabindex"))&&this.newelement.attr("tabindex",e);this.newelement.data("selectelement",this.element);this.selectmenuIcon=a('<span class="'+this.widgetBaseClass+'-icon ui-icon"></span>').prependTo(this.newelement).addClass(f.style=="popup"?"ui-icon-triangle-2-n-s":"ui-icon-triangle-1-s");a("label[for="+this.element.attr("id")+"]").attr("for",this.ids[0]).bind("click",
711
- function(){d.newelement[0].focus();return false});this.newelement.bind("mousedown",function(m){d._toggle(m);if(f.style=="popup"){d._safemouseup=false;setTimeout(function(){d._safemouseup=true},300)}return false}).bind("click",function(){return false}).keydown(function(m){var l=true;switch(m.keyCode){case a.ui.keyCode.ENTER:l=true;break;case a.ui.keyCode.SPACE:l=false;d._toggle(m);break;case a.ui.keyCode.UP:case a.ui.keyCode.LEFT:l=false;d._moveSelection(-1);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.RIGHT:l=
712
- false;d._moveSelection(1);break;case a.ui.keyCode.TAB:l=true;break;default:l=false;d._typeAhead(m.keyCode,"mouseup")}return l}).bind("mouseover focus",function(){a(this).addClass(d.widgetBaseClass+"-focus ui-state-hover")}).bind("mouseout blur",function(){a(this).removeClass(d.widgetBaseClass+"-focus ui-state-hover")});a(document).mousedown(function(m){d.close(m)});this.element.click(function(){this._refreshValue()}).focus(function(){this.newelement&&this.newelement[0].focus()});this.list=a('<ul class="'+
713
- d.widgetBaseClass+"-menu ui-widget ui-widget-content"+(f.style=="dropdown"?" ui-corner-bottom":" ui-corner-all")+'" aria-hidden="true" role="listbox" aria-labelledby="'+this.ids[0]+'" id="'+this.ids[1]+'"></ul>').appendTo("body");var h=[];this.element.find("option").each(function(){h.push({value:a(this).attr("value"),text:d._formatText(jQuery(this).text()),selected:a(this).attr("selected"),classes:a(this).attr("class"),parentOptGroup:a(this).parent("optgroup").attr("label")})});var b=d.options.style==
714
- "popup"?" ui-state-active":"";for(e=0;e<h.length;e++){var g=a('<li role="presentation"><a href="#" tabindex="-1" role="option" aria-selected="false">'+h[e].text+"</a></li>").data("index",e).addClass(h[e].classes).data("optionClasses",h[e].classes||"").mouseup(function(m){if(d._safemouseup){var l=a(this).data("index")!=d._selectedIndex();d.value(a(this).data("index"));d.select(m);l&&d.change(m);d.close(m,true)}return false}).click(function(){return false}).bind("mouseover focus",function(){d._selectedOptionLi().addClass(b);
715
- d._focusedOptionLi().removeClass(d.widgetBaseClass+"-item-focus ui-state-hover");a(this).removeClass("ui-state-active").addClass(d.widgetBaseClass+"-item-focus ui-state-hover")}).bind("mouseout blur",function(){a(this).is(d._selectedOptionLi())&&a(this).addClass(b);a(this).removeClass(d.widgetBaseClass+"-item-focus ui-state-hover")});if(h[e].parentOptGroup){var i=d.widgetBaseClass+"-group-"+h[e].parentOptGroup.replace(/[^a-zA-Z0-9]/g,"");this.list.find("li."+i).size()?this.list.find("li."+i+":last ul").append(g):
716
- a('<li role="presentation" class="'+d.widgetBaseClass+"-group "+i+'"><span class="'+d.widgetBaseClass+'-group-label">'+h[e].parentOptGroup+"</span><ul></ul></li>").appendTo(this.list).find("ul").append(g)}else g.appendTo(this.list);this.list.bind("mousedown mouseup",function(){return false});if(f.icons)for(var k in f.icons)if(g.is(f.icons[k].find)){g.data("optionClasses",h[e].classes+" "+d.widgetBaseClass+"-hasIcon").addClass(d.widgetBaseClass+"-hasIcon");i=f.icons[k].icon||"";g.find("a:eq(0)").prepend('<span class="'+
717
- d.widgetBaseClass+"-item-icon ui-icon "+i+'"></span>')}}this.list.find("li:last").addClass("ui-corner-bottom");f.style=="popup"&&this.list.find("li:first").addClass("ui-corner-top");if(f.transferClasses){k=this.element.attr("class")||"";this.newelement.add(this.list).addClass(k)}k=this.element.width();this.newelement.width(f.width?f.width:k);f.style=="dropdown"?this.list.width(f.menuWidth?f.menuWidth:f.width?f.width:k):this.list.width(f.menuWidth?f.menuWidth:f.width?f.width-f.handleWidth:k-f.handleWidth);
718
- f.maxHeight&&f.maxHeight<this.list.height()&&this.list.height(f.maxHeight);this._optionLis=this.list.find("li:not(."+d.widgetBaseClass+"-group)");this.list.keydown(function(m){var l=true;switch(m.keyCode){case a.ui.keyCode.HOME:l=false;d._moveFocus(":first");break;case a.ui.keyCode.PAGE_UP:l=false;d._scrollPage("up");break;case a.ui.keyCode.PAGE_DOWN:l=false;d._scrollPage("down");break;case a.ui.keyCode.END:l=false;d._moveFocus(":last");break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:l=false;
719
- d.close(m,true);a(m.target).parents("li:eq(0)").trigger("mouseup");break;case a.ui.keyCode.TAB:l=true;d.close(m,true);break;case a.ui.keyCode.ESCAPE:l=false;d.close(m,true);break;default:l=false;d._typeAhead(m.keyCode,"focus")}return l});if(f.style=="dropdown"){this.newelement.addClass(d.widgetBaseClass+"-dropdown");this.list.addClass(d.widgetBaseClass+"-menu-dropdown")}else{this.newelement.addClass(d.widgetBaseClass+"-popup");this.list.addClass(d.widgetBaseClass+"-menu-popup")}this.newelement.prepend('<span class="'+
720
- d.widgetBaseClass+'-status">'+h[this._selectedIndex()].text+"</span>");this.element.hide();this.element.attr("disabled")==true&&this.disable();this.value(this._selectedIndex());a(window).resize(function(){d._refreshPosition()})},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled").unbind("click");a("label[for="+this.newelement.attr("id")+"]").attr("for",this.element.attr("id")).unbind("click");
721
- this.newelement.remove();this.list.remove();this.element.show();a.Widget.prototype.destroy.apply(this,arguments)},_typeAhead:function(d,f){var e=this;if(!e._prevChar)e._prevChar=["",0];var h=String.fromCharCode(d);c=h.toLowerCase();var b=false;this.list.find("li a").each(function(g){if(!b){var i=a(this).text();if(i.indexOf(h)==0||i.indexOf(c)==0)if(e._prevChar[0]==h){if(e._prevChar[1]<g){b=true;a(this).trigger(f);e._prevChar[1]=g}}else{b=true;a(this).trigger(f);e._prevChar[1]=g}}});this._prevChar[0]=
722
- h},_uiHash:function(){var d=this.value();return{index:d,option:a("option",this.element).get(d),value:this.element[0].value}},open:function(d){if(this.newelement.attr("aria-disabled")!="true"){this._refreshPosition();this._closeOthers(d);this.newelement.addClass("ui-state-active");this.list.appendTo("body").addClass(this.widgetBaseClass+"-open").attr("aria-hidden",false).find("li:not(."+this.widgetBaseClass+"-group):eq("+this._selectedIndex()+") a")[0].focus();this.options.style=="dropdown"&&this.newelement.removeClass("ui-corner-all").addClass("ui-corner-top");
723
- this._refreshPosition();this._trigger("open",d,this._uiHash())}},close:function(d,f){if(this.newelement.is(".ui-state-active")){this.newelement.removeClass("ui-state-active");this.list.attr("aria-hidden",true).removeClass(this.widgetBaseClass+"-open");this.options.style=="dropdown"&&this.newelement.removeClass("ui-corner-top").addClass("ui-corner-all");f&&this.newelement[0].focus();this._trigger("close",d,this._uiHash())}},change:function(d){this.element.trigger("change");this._trigger("change",d,
724
- this._uiHash())},select:function(d){this._trigger("select",d,this._uiHash())},_closeOthers:function(d){a("."+this.widgetBaseClass+".ui-state-active").not(this.newelement).each(function(){a(this).data("selectelement").selectmenu("close",d)});a("."+this.widgetBaseClass+".ui-state-hover").trigger("mouseout")},_toggle:function(d,f){this.list.is("."+this.widgetBaseClass+"-open")?this.close(d,f):this.open(d)},_formatText:function(d){return this.options.format?this.options.format(d):d},_selectedIndex:function(){return this.element[0].selectedIndex},
725
- _selectedOptionLi:function(){return this._optionLis.eq(this._selectedIndex())},_focusedOptionLi:function(){return this.list.find("."+this.widgetBaseClass+"-item-focus")},_moveSelection:function(d){return this._optionLis.eq(parseInt(this._selectedOptionLi().data("index"),10)+d).trigger("mouseup")},_moveFocus:function(d){d=isNaN(d)?parseInt(this._optionLis.filter(d).data("index"),10):parseInt(this._focusedOptionLi().data("index"),10)+d;if(d<0)d=0;if(d>this._optionLis.size()-1)d=this._optionLis.size()-
726
- 1;var f=this.widgetBaseClass+"-item-"+Math.round(Math.random()*1E3);this._focusedOptionLi().find("a:eq(0)").attr("id","");this._optionLis.eq(d).find("a:eq(0)").attr("id",f)[0].focus();this.list.attr("aria-activedescendant",f)},_scrollPage:function(d){var f=Math.floor(this.list.outerHeight()/this.list.find("li:first").outerHeight());f=d=="up"?-f:f;this._moveFocus(f)},_setOption:function(d,f){this.options[d]=f;if(d=="disabled"){this.close();this.element.add(this.newelement).add(this.list)[f?"addClass":
727
- "removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",f)}},value:function(d){if(arguments.length){this.element[0].selectedIndex=d;this._refreshValue();this._refreshPosition()}return this.element[0].selectedIndex},_refreshValue:function(){var d=this.options.style=="popup"?" ui-state-active":"",f=this.widgetBaseClass+"-item-"+Math.round(Math.random()*1E3);this.list.find("."+this.widgetBaseClass+"-item-selected").removeClass(this.widgetBaseClass+"-item-selected"+
728
- d).find("a").attr("aria-selected","false").attr("id","");this._selectedOptionLi().addClass(this.widgetBaseClass+"-item-selected"+d).find("a").attr("aria-selected","true").attr("id",f);d=this.newelement.data("optionClasses")?this.newelement.data("optionClasses"):"";var e=this._selectedOptionLi().data("optionClasses")?this._selectedOptionLi().data("optionClasses"):"";this.newelement.removeClass(d).data("optionClasses",e).addClass(e).find("."+this.widgetBaseClass+"-status").html(this._selectedOptionLi().find("a:eq(0)").html());
729
- this.list.attr("aria-activedescendant",f)},_refreshPosition:function(){var d=this._pageScroll(),f=this.newelement.offset().top,e=a(window).height(),h=a(this.list[0]).outerHeight();if(f+h>e+d)f-=h;else if(this.newelement.is("."+this.widgetBaseClass+"-popup")){var b=this.list[0].scrollTop;this.list.find("li:lt("+this._selectedIndex()+")").each(function(){b-=a(this).outerHeight()});f+=b}else f+=this.newelement.height();this.list.css({top:f,left:this.newelement.offset().left})},_pageScroll:function(){var d;
730
- if(self.pageYOffset)d=self.pageYOffset;else if(document.documentElement&&document.documentElement.scrollTop)d=document.documentElement.scrollTop;else if(document.body)d=document.body.scrollTop;return d}})})(jQuery);
731
- (function(a){a.widget("ui.slider",a.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var d=this,f=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");f.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");
732
- this.range=a([]);if(f.range){if(f.range===true){this.range=a("<div></div>");if(!f.values)f.values=[this._valueMin(),this._valueMin()];if(f.values.length&&f.values.length!==2)f.values=[f.values[0],f.values[0]]}else this.range=a("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(f.range==="min"||f.range==="max")this.range.addClass("ui-slider-range-"+f.range);this.range.addClass("ui-widget-header")}a(".ui-slider-handle",this.element).length===0&&a("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");
733
- if(f.values&&f.values.length)for(;a(".ui-slider-handle",this.element).length<f.values.length;)a("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");this.handles=a(".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(){f.disabled||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){if(f.disabled)a(this).blur();
734
- else{a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");a(this).addClass("ui-state-focus")}}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(e){a(this).data("index.ui-slider-handle",e)});this.handles.keydown(function(e){var h=true,b=a(this).data("index.ui-slider-handle"),g,i,k;if(!d.options.disabled){switch(e.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:h=
735
- false;if(!d._keySliding){d._keySliding=true;a(this).addClass("ui-state-active");g=d._start(e,b);if(g===false)return}}k=d.options.step;g=d.options.values&&d.options.values.length?i=d.values(b):i=d.value();switch(e.keyCode){case a.ui.keyCode.HOME:i=d._valueMin();break;case a.ui.keyCode.END:i=d._valueMax();break;case a.ui.keyCode.PAGE_UP:i=d._trimAlignValue(g+(d._valueMax()-d._valueMin())/5);break;case a.ui.keyCode.PAGE_DOWN:i=d._trimAlignValue(g-(d._valueMax()-d._valueMin())/5);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(g===
736
- d._valueMax())return;i=d._trimAlignValue(g+k);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(g===d._valueMin())return;i=d._trimAlignValue(g-k)}d._slide(e,b,i);return h}}).keyup(function(e){var h=a(this).data("index.ui-slider-handle");if(d._keySliding){d._keySliding=false;d._stop(e,h);d._change(e,h);a(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
737
- this._mouseDestroy();return this},_mouseCapture:function(d){var f=this.options,e,h,b,g,i;if(f.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();e=this._normValueFromMouse({x:d.pageX,y:d.pageY});h=this._valueMax()-this._valueMin()+1;g=this;this.handles.each(function(k){var m=Math.abs(e-g.values(k));if(h>m){h=m;b=a(this);i=k}});if(f.range===true&&this.values(1)===f.min){i+=1;b=a(this.handles[i])}if(this._start(d,
738
- i)===false)return false;this._mouseSliding=true;g._handleIndex=i;b.addClass("ui-state-active").focus();f=b.offset();this._clickOffset=!a(d.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:d.pageX-f.left-b.width()/2,top:d.pageY-f.top-b.height()/2-(parseInt(b.css("borderTopWidth"),10)||0)-(parseInt(b.css("borderBottomWidth"),10)||0)+(parseInt(b.css("marginTop"),10)||0)};this._slide(d,i,e);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(d){var f=
739
- this._normValueFromMouse({x:d.pageX,y:d.pageY});this._slide(d,this._handleIndex,f);return false},_mouseStop:function(d){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(d,this._handleIndex);this._change(d,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(d){var f;if(this.orientation==="horizontal"){f=
740
- this.elementSize.width;d=d.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{f=this.elementSize.height;d=d.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}f=d/f;if(f>1)f=1;if(f<0)f=0;if(this.orientation==="vertical")f=1-f;d=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+f*d)},_start:function(d,f){var e={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){e.value=this.values(f);
741
- e.values=this.values()}return this._trigger("start",d,e)},_slide:function(d,f,e){var h;if(this.options.values&&this.options.values.length){h=this.values(f?0:1);if(this.options.values.length===2&&this.options.range===true&&(f===0&&e>h||f===1&&e<h))e=h;if(e!==this.values(f)){h=this.values();h[f]=e;d=this._trigger("slide",d,{handle:this.handles[f],value:e,values:h});this.values(f?0:1);d!==false&&this.values(f,e,true)}}else if(e!==this.value()){d=this._trigger("slide",d,{handle:this.handles[f],value:e});
742
- d!==false&&this.value(e)}},_stop:function(d,f){var e={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){e.value=this.values(f);e.values=this.values()}this._trigger("stop",d,e)},_change:function(d,f){if(!this._keySliding&&!this._mouseSliding){var e={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){e.value=this.values(f);e.values=this.values()}this._trigger("change",d,e)}},value:function(d){if(arguments.length){this.options.value=
743
- this._trimAlignValue(d);this._refreshValue();this._change(null,0)}return this._value()},values:function(d,f){var e,h,b;if(arguments.length>1){this.options.values[d]=this._trimAlignValue(f);this._refreshValue();this._change(null,d)}if(arguments.length)if(a.isArray(arguments[0])){e=this.options.values;h=arguments[0];for(b=0;b<e.length;b+=1){e[b]=this._trimAlignValue(h[b]);this._change(null,b)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(d):this.value();
744
- else return this._values()},_setOption:function(d,f){var e,h=0;if(a.isArray(this.options.values))h=this.options.values.length;a.Widget.prototype._setOption.apply(this,arguments);switch(d){case "disabled":if(f){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();
745
- 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<h;e+=1)this._change(null,e);this._animateOff=false}},_value:function(){var d=this.options.value;return d=this._trimAlignValue(d)},_values:function(d){var f,e;if(arguments.length){f=this.options.values[d];
746
- return f=this._trimAlignValue(f)}else{f=this.options.values.slice();for(e=0;e<f.length;e+=1)f[e]=this._trimAlignValue(f[e]);return f}},_trimAlignValue:function(d){if(d<this._valueMin())return this._valueMin();if(d>this._valueMax())return this._valueMax();var f=this.options.step>0?this.options.step:1,e=d%f;d=d-e;if(Math.abs(e)*2>=f)d+=e>0?f:-f;return parseFloat(d.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var d=
747
- this.options.range,f=this.options,e=this,h=!this._animateOff?f.animate:false,b,g={},i,k,m,l;if(this.options.values&&this.options.values.length)this.handles.each(function(j){b=(e.values(j)-e._valueMin())/(e._valueMax()-e._valueMin())*100;g[e.orientation==="horizontal"?"left":"bottom"]=b+"%";a(this).stop(1,1)[h?"animate":"css"](g,f.animate);if(e.options.range===true)if(e.orientation==="horizontal"){if(j===0)e.range.stop(1,1)[h?"animate":"css"]({left:b+"%"},f.animate);if(j===1)e.range[h?"animate":"css"]({width:b-
748
- i+"%"},{queue:false,duration:f.animate})}else{if(j===0)e.range.stop(1,1)[h?"animate":"css"]({bottom:b+"%"},f.animate);if(j===1)e.range[h?"animate":"css"]({height:b-i+"%"},{queue:false,duration:f.animate})}i=b});else{k=this.value();m=this._valueMin();l=this._valueMax();b=l!==m?(k-m)/(l-m)*100:0;g[e.orientation==="horizontal"?"left":"bottom"]=b+"%";this.handle.stop(1,1)[h?"animate":"css"](g,f.animate);if(d==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[h?"animate":"css"]({width:b+"%"},
749
- f.animate);if(d==="max"&&this.orientation==="horizontal")this.range[h?"animate":"css"]({width:100-b+"%"},{queue:false,duration:f.animate});if(d==="min"&&this.orientation==="vertical")this.range.stop(1,1)[h?"animate":"css"]({height:b+"%"},f.animate);if(d==="max"&&this.orientation==="vertical")this.range[h?"animate":"css"]({height:100-b+"%"},{queue:false,duration:f.animate})}}});a.extend(a.ui.slider,{version:"1.8.5"})})(jQuery);
750
- (function(a){a.widget("ui.sortable",a.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");
751
- 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 d=this.items.length-1;d>=0;d--)this.items[d].item.removeData("sortable-item");return this},_setOption:function(d,f){if(d==="disabled"){this.options[d]=f;this.widget()[f?"addClass":"removeClass"]("ui-sortable-disabled")}else a.Widget.prototype._setOption.apply(this,
752
- arguments)},_mouseCapture:function(d,f){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(d);var e=null,h=this;a(d.target).parents().each(function(){if(a.data(this,"sortable-item")==h){e=a(this);return false}});if(a.data(d.target,"sortable-item")==h)e=a(d.target);if(!e)return false;if(this.options.handle&&!f){var b=false;a(this.options.handle,e).find("*").andSelf().each(function(){if(this==d.target)b=true});if(!b)return false}this.currentItem=
753
- e;this._removeCurrentsFromItems();return true},_mouseStart:function(d,f,e){f=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(d);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");a.extend(this.offset,
754
- {click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();f.containment&&this._setContainment();
755
- if(f.cursor){if(a("body").css("cursor"))this._storedCursor=a("body").css("cursor");a("body").css("cursor",f.cursor)}if(f.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",f.opacity)}if(f.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",f.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",
756
- d,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!e)for(e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("activate",d,this._uiHash(this));if(a.ui.ddmanager)a.ui.ddmanager.current=this;a.ui.ddmanager&&!f.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,d);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(d);return true},_mouseDrag:function(d){this.position=this._generatePosition(d);this.positionAbs=this._convertPositionTo("absolute");
757
- if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var f=this.options,e=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-d.pageY<f.scrollSensitivity)this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop+f.scrollSpeed;else if(d.pageY-this.overflowOffset.top<f.scrollSensitivity)this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop-f.scrollSpeed;if(this.overflowOffset.left+
758
- this.scrollParent[0].offsetWidth-d.pageX<f.scrollSensitivity)this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft+f.scrollSpeed;else if(d.pageX-this.overflowOffset.left<f.scrollSensitivity)this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft-f.scrollSpeed}else{if(d.pageY-a(document).scrollTop()<f.scrollSensitivity)e=a(document).scrollTop(a(document).scrollTop()-f.scrollSpeed);else if(a(window).height()-(d.pageY-a(document).scrollTop())<f.scrollSensitivity)e=a(document).scrollTop(a(document).scrollTop()+
759
- f.scrollSpeed);if(d.pageX-a(document).scrollLeft()<f.scrollSensitivity)e=a(document).scrollLeft(a(document).scrollLeft()-f.scrollSpeed);else if(a(window).width()-(d.pageX-a(document).scrollLeft())<f.scrollSensitivity)e=a(document).scrollLeft(a(document).scrollLeft()+f.scrollSpeed)}e!==false&&a.ui.ddmanager&&!f.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,d)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+
760
- "px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(f=this.items.length-1;f>=0;f--){e=this.items[f];var h=e.item[0],b=this._intersectsWithPointer(e);if(b)if(h!=this.currentItem[0]&&this.placeholder[b==1?"next":"prev"]()[0]!=h&&!a.ui.contains(this.placeholder[0],h)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],h):true)){this.direction=b==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(e))this._rearrange(d,
761
- e);else break;this._trigger("change",d,this._uiHash());break}}this._contactContainers(d);a.ui.ddmanager&&a.ui.ddmanager.drag(this,d);this._trigger("sort",d,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(d,f){if(d){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,d);if(this.options.revert){var e=this,h=e.placeholder.offset();e.reverting=true;a(this.helper).animate({left:h.left-this.offset.parent.left-e.margins.left+(this.offsetParent[0]==
762
- document.body?0:this.offsetParent[0].scrollLeft),top:h.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(d)})}else this._clear(d,f);return false}},cancel:function(){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",
763
- null,this._uiHash(this));if(this.containers[d].containerCache.over){this.containers[d]._trigger("out",null,this._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();a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):
764
- a(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(d){var f=this._getItemsAsjQuery(d&&d.connected),e=[];d=d||{};a(f).each(function(){var h=(a(d.item||this).attr(d.attribute||"id")||"").match(d.expression||/(.+)[-=_](.+)/);if(h)e.push((d.key||h[1]+"[]")+"="+(d.key&&d.expression?h[1]:h[2]))});!e.length&&d.key&&e.push(d.key+"=");return e.join("&")},toArray:function(d){var f=this._getItemsAsjQuery(d&&d.connected),e=[];d=d||{};f.each(function(){e.push(a(d.item||this).attr(d.attribute||
765
- "id")||"")});return e},_intersectsWith:function(d){var f=this.positionAbs.left,e=f+this.helperProportions.width,h=this.positionAbs.top,b=h+this.helperProportions.height,g=d.left,i=g+d.width,k=d.top,m=k+d.height,l=this.offset.click.top,j=this.offset.click.left;l=h+l>k&&h+l<m&&f+j>g&&f+j<i;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>d[this.floating?"width":"height"]?l:g<f+
766
- this.helperProportions.width/2&&e-this.helperProportions.width/2<i&&k<h+this.helperProportions.height/2&&b-this.helperProportions.height/2<m},_intersectsWithPointer:function(d){var f=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top,d.height);d=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left,d.width);f=f&&d;d=this._getDragVerticalDirection();var e=this._getDragHorizontalDirection();if(!f)return false;return this.floating?e&&e=="right"||d=="down"?2:1:d&&(d=="down"?
767
- 2:1)},_intersectsWithSides:function(d){var f=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top+d.height/2,d.height);d=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left+d.width/2,d.width);var e=this._getDragVerticalDirection(),h=this._getDragHorizontalDirection();return this.floating&&h?h=="right"&&d||h=="left"&&!d:e&&(e=="down"&&f||e=="up"&&!f)},_getDragVerticalDirection:function(){var d=this.positionAbs.top-this.lastPositionAbs.top;return d!=0&&(d>0?"down":"up")},
768
- _getDragHorizontalDirection:function(){var d=this.positionAbs.left-this.lastPositionAbs.left;return d!=0&&(d>0?"right":"left")},refresh:function(d){this._refreshItems(d);this.refreshPositions();return this},_connectWith:function(){var d=this.options;return d.connectWith.constructor==String?[d.connectWith]:d.connectWith},_getItemsAsjQuery:function(d){var f=[],e=[],h=this._connectWith();if(h&&d)for(d=h.length-1;d>=0;d--)for(var b=a(h[d]),g=b.length-1;g>=0;g--){var i=a.data(b[g],"sortable");if(i&&i!=
769
- this&&!i.options.disabled)e.push([a.isFunction(i.options.items)?i.options.items.call(i.element):a(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i])}e.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(d=e.length-1;d>=0;d--)e[d][0].each(function(){f.push(this)});return a(f)},_removeCurrentsFromItems:function(){for(var d=
770
- this.currentItem.find(":data(sortable-item)"),f=0;f<this.items.length;f++)for(var e=0;e<d.length;e++)d[e]==this.items[f].item[0]&&this.items.splice(f,1)},_refreshItems:function(d){this.items=[];this.containers=[this];var f=this.items,e=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],d,{item:this.currentItem}):a(this.options.items,this.element),this]],h=this._connectWith();if(h)for(var b=h.length-1;b>=0;b--)for(var g=a(h[b]),i=g.length-1;i>=0;i--){var k=a.data(g[i],"sortable");
771
- if(k&&k!=this&&!k.options.disabled){e.push([a.isFunction(k.options.items)?k.options.items.call(k.element[0],d,{item:this.currentItem}):a(k.options.items,k.element),k]);this.containers.push(k)}}for(b=e.length-1;b>=0;b--){d=e[b][1];h=e[b][0];i=0;for(g=h.length;i<g;i++){k=a(h[i]);k.data("sortable-item",d);f.push({item:k,instance:d,width:0,height:0,left:0,top:0})}}},refreshPositions:function(d){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var f=this.items.length-1;f>=
772
- 0;f--){var e=this.items[f],h=this.options.toleranceElement?a(this.options.toleranceElement,e.item):e.item;if(!d){e.width=h.outerWidth();e.height=h.outerHeight()}h=h.offset();e.left=h.left;e.top=h.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(f=this.containers.length-1;f>=0;f--){h=this.containers[f].element.offset();this.containers[f].containerCache.left=h.left;this.containers[f].containerCache.top=h.top;this.containers[f].containerCache.width=
773
- this.containers[f].element.outerWidth();this.containers[f].containerCache.height=this.containers[f].element.outerHeight()}return this},_createPlaceholder:function(d){var f=d||this,e=f.options;if(!e.placeholder||e.placeholder.constructor==String){var h=e.placeholder;e.placeholder={element:function(){var b=a(document.createElement(f.currentItem[0].nodeName)).addClass(h||f.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!h)b.style.visibility="hidden";return b},
774
- update:function(b,g){if(!(h&&!e.forcePlaceholderSize)){g.height()||g.height(f.currentItem.innerHeight()-parseInt(f.currentItem.css("paddingTop")||0,10)-parseInt(f.currentItem.css("paddingBottom")||0,10));g.width()||g.width(f.currentItem.innerWidth()-parseInt(f.currentItem.css("paddingLeft")||0,10)-parseInt(f.currentItem.css("paddingRight")||0,10))}}}}f.placeholder=a(e.placeholder.element.call(f.element,f.currentItem));f.currentItem.after(f.placeholder);e.placeholder.update(f,f.placeholder)},_contactContainers:function(d){for(var f=
775
- null,e=null,h=this.containers.length-1;h>=0;h--)if(!a.ui.contains(this.currentItem[0],this.containers[h].element[0]))if(this._intersectsWith(this.containers[h].containerCache)){if(!(f&&a.ui.contains(this.containers[h].element[0],f.element[0]))){f=this.containers[h];e=h}}else if(this.containers[h].containerCache.over){this.containers[h]._trigger("out",d,this._uiHash(this));this.containers[h].containerCache.over=0}if(f)if(this.containers.length===1){this.containers[e]._trigger("over",d,this._uiHash(this));
776
- this.containers[e].containerCache.over=1}else if(this.currentContainer!=this.containers[e]){f=1E4;h=null;for(var b=this.positionAbs[this.containers[e].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(a.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-b)<f){f=Math.abs(i-b);h=this.items[g]}}if(h||this.options.dropOnEmpty){this.currentContainer=this.containers[e];h?this._rearrange(d,h,null,true):this._rearrange(d,
777
- null,this.containers[e].element,true);this._trigger("change",d,this._uiHash());this.containers[e]._trigger("change",d,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[e]._trigger("over",d,this._uiHash(this));this.containers[e].containerCache.over=1}}},_createHelper:function(d){var f=this.options;d=a.isFunction(f.helper)?a(f.helper.apply(this.element[0],[d,this.currentItem])):f.helper=="clone"?this.currentItem.clone():this.currentItem;d.parents("body").length||
778
- a(f.appendTo!="parent"?f.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]);if(d[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(d[0].style.width==""||f.forceHelperSize)d.width(this.currentItem.width());if(d[0].style.height==""||f.forceHelperSize)d.height(this.currentItem.height());return d},_adjustOffsetFromHelper:function(d){if(typeof d==
779
- "string")d=d.split(" ");if(a.isArray(d))d={left:+d[0],top:+d[1]||0};if("left"in d)this.offset.click.left=d.left+this.margins.left;if("right"in d)this.offset.click.left=this.helperProportions.width-d.right+this.margins.left;if("top"in d)this.offset.click.top=d.top+this.margins.top;if("bottom"in d)this.offset.click.top=this.helperProportions.height-d.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var d=this.offsetParent.offset();if(this.cssPosition==
780
- "absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){d.left+=this.scrollParent.scrollLeft();d.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)d={top:0,left:0};return{top:d.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:d.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==
781
- "relative"){var d=this.currentItem.position();return{top:d.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:d.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()}},
782
- _setContainment:function(){var d=this.options;if(d.containment=="parent")d.containment=this.helper[0].parentNode;if(d.containment=="document"||d.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(d.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(d.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-
783
- this.margins.top];if(!/^(document|window|parent)$/.test(d.containment)){var f=a(d.containment)[0];d=a(d.containment).offset();var e=a(f).css("overflow")!="hidden";this.containment=[d.left+(parseInt(a(f).css("borderLeftWidth"),10)||0)+(parseInt(a(f).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(f).css("borderTopWidth"),10)||0)+(parseInt(a(f).css("paddingTop"),10)||0)-this.margins.top,d.left+(e?Math.max(f.scrollWidth,f.offsetWidth):f.offsetWidth)-(parseInt(a(f).css("borderLeftWidth"),
784
- 10)||0)-(parseInt(a(f).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(e?Math.max(f.scrollHeight,f.offsetHeight):f.offsetHeight)-(parseInt(a(f).css("borderTopWidth"),10)||0)-(parseInt(a(f).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(d,f){if(!f)f=this.position;var e=d=="absolute"?1:-1,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?
785
- this.offsetParent:this.scrollParent,b=/(html|body)/i.test(h[0].tagName);return{top:f.top+this.offset.relative.top*e+this.offset.parent.top*e-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():b?0:h.scrollTop())*e),left:f.left+this.offset.relative.left*e+this.offset.parent.left*e-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():b?0:h.scrollLeft())*e)}},_generatePosition:function(d){var f=
786
- this.options,e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(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 b=d.pageX,g=d.pageY;if(this.originalPosition){if(this.containment){if(d.pageX-this.offset.click.left<this.containment[0])b=this.containment[0]+
787
- this.offset.click.left;if(d.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(d.pageX-this.offset.click.left>this.containment[2])b=this.containment[2]+this.offset.click.left;if(d.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(f.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/f.grid[1])*f.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?
788
- g:!(g-this.offset.click.top<this.containment[1])?g-f.grid[1]:g+f.grid[1]:g;b=this.originalPageX+Math.round((b-this.originalPageX)/f.grid[0])*f.grid[0];b=this.containment?!(b-this.offset.click.left<this.containment[0]||b-this.offset.click.left>this.containment[2])?b:!(b-this.offset.click.left<this.containment[0])?b-f.grid[0]:b+f.grid[0]:b}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():
789
- h?0:e.scrollTop()),left:b-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:e.scrollLeft())}},_rearrange:function(d,f,e,h){e?e[0].appendChild(this.placeholder[0]):f.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?f.item[0]:f.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var b=this,g=this.counter;window.setTimeout(function(){g==
790
- b.counter&&b.refreshPositions(!h)},0)},_clear:function(d,f){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 h in this._storedCSS)if(this._storedCSS[h]=="auto"||this._storedCSS[h]=="static")this._storedCSS[h]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!f&&e.push(function(b){this._trigger("receive",
791
- b,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!f)e.push(function(b){this._trigger("update",b,this._uiHash())});if(!a.ui.contains(this.element[0],this.currentItem[0])){f||e.push(function(b){this._trigger("remove",b,this._uiHash())});for(h=this.containers.length-1;h>=0;h--)if(a.ui.contains(this.containers[h].element[0],this.currentItem[0])&&!f){e.push(function(b){return function(g){b._trigger("receive",
792
- g,this._uiHash(this))}}.call(this,this.containers[h]));e.push(function(b){return function(g){b._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[h]))}}for(h=this.containers.length-1;h>=0;h--){f||e.push(function(b){return function(g){b._trigger("deactivate",g,this._uiHash(this))}}.call(this,this.containers[h]));if(this.containers[h].containerCache.over){e.push(function(b){return function(g){b._trigger("out",g,this._uiHash(this))}}.call(this,this.containers[h]));this.containers[h].containerCache.over=
793
- 0}}this._storedCursor&&a("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!f){this._trigger("beforeStop",d,this._uiHash());for(h=0;h<e.length;h++)e[h].call(this,d);this._trigger("stop",d,this._uiHash())}return false}f||this._trigger("beforeStop",d,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
794
- this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!f){for(h=0;h<e.length;h++)e[h].call(this,d);this._trigger("stop",d,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(d){var f=d||this;return{helper:f.helper,placeholder:f.placeholder||a([]),position:f.position,originalPosition:f.originalPosition,offset:f.positionAbs,item:f.currentItem,sender:d?d.element:null}}});
795
- a.extend(a.ui.sortable,{version:"1.8.5"})})(jQuery);
796
- (function(a,d){var f=0,e=0;a.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(h,b){if(h=="selected")this.options.collapsible&&b==this.options.selected||
797
- this.select(b);else{this.options[h]=b;this._tabify()}},_tabId:function(h){return h.title&&h.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+ ++f},_sanitizeSelector:function(h){return h.replace(/:/g,"\\:")},_cookie:function(){var h=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++e);return a.cookie.apply(null,[h].concat(a.makeArray(arguments)))},_ui:function(h,b){return{tab:h,panel:b,index:this.anchors.index(h)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var h=
798
- a(this);h.html(h.data("label.tabs")).removeData("label.tabs")})},_tabify:function(h){function b(q,r){q.css("display","");!a.support.opacity&&r.opacity&&q[0].style.removeAttribute("filter")}var g=this,i=this.options,k=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=a(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return a("a",this)[0]});this.panels=a([]);this.anchors.each(function(q,r){var u=a(r).attr("href"),s=u.split("#")[0],v;if(s&&(s===location.toString().split("#")[0]||
799
- (v=a("base")[0])&&s===v.href)){u=r.hash;r.href=u}if(k.test(u))g.panels=g.panels.add(g._sanitizeSelector(u));else if(u&&u!=="#"){a.data(r,"href.tabs",u);a.data(r,"load.tabs",u.replace(/#.*$/,""));u=g._tabId(r);r.href="#"+u;s=a("#"+u);if(!s.length){s=a(i.panelTemplate).attr("id",u).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(g.panels[q-1]||g.list);s.data("destroy.tabs",true)}g.panels=g.panels.add(s)}else i.disabled.push(q)});if(h){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");
800
- 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(i.selected===d){location.hash&&this.anchors.each(function(q,r){if(r.hash==location.hash){i.selected=q;return false}});if(typeof i.selected!=="number"&&i.cookie)i.selected=parseInt(g._cookie(),10);if(typeof i.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)i.selected=
801
- this.lis.index(this.lis.filter(".ui-tabs-selected"));i.selected=i.selected||(this.lis.length?0:-1)}else if(i.selected===null)i.selected=-1;i.selected=i.selected>=0&&this.anchors[i.selected]||i.selected<0?i.selected:0;i.disabled=a.unique(i.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(q){return g.lis.index(q)}))).sort();a.inArray(i.selected,i.disabled)!=-1&&i.disabled.splice(a.inArray(i.selected,i.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
802
- if(i.selected>=0&&this.anchors.length){this.panels.eq(i.selected).removeClass("ui-tabs-hide");this.lis.eq(i.selected).addClass("ui-tabs-selected ui-state-active");g.element.queue("tabs",function(){g._trigger("show",null,g._ui(g.anchors[i.selected],g.panels[i.selected]))});this.load(i.selected)}a(window).bind("unload",function(){g.lis.add(g.anchors).unbind(".tabs");g.lis=g.anchors=g.panels=null})}else i.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));this.element[i.collapsible?"addClass":
803
- "removeClass"]("ui-tabs-collapsible");i.cookie&&this._cookie(i.selected,i.cookie);h=0;for(var m;m=this.lis[h];h++)a(m)[a.inArray(h,i.disabled)!=-1&&!a(m).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");i.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(i.event!=="mouseover"){var l=function(q,r){r.is(":not(.ui-state-disabled)")&&r.addClass("ui-state-"+q)};this.lis.bind("mouseover.tabs",function(){l("hover",a(this))});this.lis.bind("mouseout.tabs",
804
- function(){a(this).removeClass("ui-state-hover")});this.anchors.bind("focus.tabs",function(){l("focus",a(this).closest("li"))});this.anchors.bind("blur.tabs",function(){a(this).closest("li").removeClass("ui-state-focus")})}var j,n;if(i.fx)if(a.isArray(i.fx)){j=i.fx[0];n=i.fx[1]}else j=n=i.fx;var o=n?function(q,r){a(q).closest("li").addClass("ui-tabs-selected ui-state-active");r.hide().removeClass("ui-tabs-hide").animate(n,n.duration||"normal",function(){b(r,n);g._trigger("show",null,g._ui(q,r[0]))})}:
805
- function(q,r){a(q).closest("li").addClass("ui-tabs-selected ui-state-active");r.removeClass("ui-tabs-hide");g._trigger("show",null,g._ui(q,r[0]))},p=j?function(q,r){r.animate(j,j.duration||"normal",function(){g.lis.removeClass("ui-tabs-selected ui-state-active");r.addClass("ui-tabs-hide");b(r,j);g.element.dequeue("tabs")})}:function(q,r){g.lis.removeClass("ui-tabs-selected ui-state-active");r.addClass("ui-tabs-hide");g.element.dequeue("tabs")};this.anchors.bind(i.event+".tabs",function(){var q=this,
806
- r=a(q).closest("li"),u=g.panels.filter(":not(.ui-tabs-hide)"),s=a(g._sanitizeSelector(q.hash));if(r.hasClass("ui-tabs-selected")&&!i.collapsible||r.hasClass("ui-state-disabled")||r.hasClass("ui-state-processing")||g.panels.filter(":animated").length||g._trigger("select",null,g._ui(this,s[0]))===false){this.blur();return false}i.selected=g.anchors.index(this);g.abort();if(i.collapsible)if(r.hasClass("ui-tabs-selected")){i.selected=-1;i.cookie&&g._cookie(i.selected,i.cookie);g.element.queue("tabs",
807
- function(){p(q,u)}).dequeue("tabs");this.blur();return false}else if(!u.length){i.cookie&&g._cookie(i.selected,i.cookie);g.element.queue("tabs",function(){o(q,s)});g.load(g.anchors.index(this));this.blur();return false}i.cookie&&g._cookie(i.selected,i.cookie);if(s.length){u.length&&g.element.queue("tabs",function(){p(q,u)});g.element.queue("tabs",function(){o(q,s)});g.load(g.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";a.browser.msie&&this.blur()});this.anchors.bind("click.tabs",
808
- function(){return false})},_getIndex:function(h){if(typeof h=="string")h=this.anchors.index(this.anchors.filter("[href$="+h+"]"));return h},destroy:function(){var h=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 b=a.data(this,"href.tabs");if(b)this.href=
809
- b;var g=a(this).unbind(".tabs");a.each(["href","load","cache"],function(i,k){g.removeData(k+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){a.data(this,"destroy.tabs")?a(this).remove():a(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});h.cookie&&this._cookie(null,h.cookie);return this},add:function(h,b,g){if(g===d)g=this.anchors.length;
810
- var i=this,k=this.options;b=a(k.tabTemplate.replace(/#\{href\}/g,h).replace(/#\{label\}/g,b));h=!h.indexOf("#")?h.replace("#",""):this._tabId(a("a",b)[0]);b.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var m=a("#"+h);m.length||(m=a(k.panelTemplate).attr("id",h).data("destroy.tabs",true));m.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(g>=this.lis.length){b.appendTo(this.list);m.appendTo(this.list[0].parentNode)}else{b.insertBefore(this.lis[g]);
811
- m.insertBefore(this.panels[g])}k.disabled=a.map(k.disabled,function(l){return l>=g?++l:l});this._tabify();if(this.anchors.length==1){k.selected=0;b.addClass("ui-tabs-selected ui-state-active");m.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){i._trigger("show",null,i._ui(i.anchors[0],i.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[g],this.panels[g]));return this},remove:function(h){h=this._getIndex(h);var b=this.options,g=this.lis.eq(h).remove(),i=this.panels.eq(h).remove();
812
- if(g.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(h+(h+1<this.anchors.length?1:-1));b.disabled=a.map(a.grep(b.disabled,function(k){return k!=h}),function(k){return k>=h?--k:k});this._tabify();this._trigger("remove",null,this._ui(g.find("a")[0],i[0]));return this},enable:function(h){h=this._getIndex(h);var b=this.options;if(a.inArray(h,b.disabled)!=-1){this.lis.eq(h).removeClass("ui-state-disabled");b.disabled=a.grep(b.disabled,function(g){return g!=h});this._trigger("enable",null,
813
- this._ui(this.anchors[h],this.panels[h]));return this}},disable:function(h){h=this._getIndex(h);var b=this.options;if(h!=b.selected){this.lis.eq(h).addClass("ui-state-disabled");b.disabled.push(h);b.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[h],this.panels[h]))}return this},select:function(h){h=this._getIndex(h);if(h==-1)if(this.options.collapsible&&this.options.selected!=-1)h=this.options.selected;else return this;this.anchors.eq(h).trigger(this.options.event+".tabs");return this},
814
- load:function(h){h=this._getIndex(h);var b=this,g=this.options,i=this.anchors.eq(h)[0],k=a.data(i,"load.tabs");this.abort();if(!k||this.element.queue("tabs").length!==0&&a.data(i,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(h).addClass("ui-state-processing");if(g.spinner){var m=a("span",i);m.data("label.tabs",m.html()).html(g.spinner)}this.xhr=a.ajax(a.extend({},g.ajaxOptions,{url:k,success:function(l,j){a(b._sanitizeSelector(i.hash)).html(l);b._cleanup();g.cache&&a.data(i,"cache.tabs",
815
- true);b._trigger("load",null,b._ui(b.anchors[h],b.panels[h]));try{g.ajaxOptions.success(l,j)}catch(n){}},error:function(l,j){b._cleanup();b._trigger("load",null,b._ui(b.anchors[h],b.panels[h]));try{g.ajaxOptions.error(l,j,h,i)}catch(n){}}}));b.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(h,
816
- b){this.anchors.eq(h).removeData("cache.tabs").data("load.tabs",b);return this},length:function(){return this.anchors.length}});a.extend(a.ui.tabs,{version:"1.8.5"});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(h,b){var g=this,i=this.options,k=g._rotate||(g._rotate=function(l){clearTimeout(g.rotation);g.rotation=setTimeout(function(){var j=i.selected;g.select(++j<g.anchors.length?j:0)},h);l&&l.stopPropagation()}),m=g._unrotate||(g._unrotate=!b?function(l){l.clientX&&g.rotate(null)}:
817
- function(){t=i.selected;k()});if(h){this.element.bind("tabsshow",k);this.anchors.bind(i.event+".tabs",m);k()}else{clearTimeout(g.rotation);this.element.unbind("tabsshow",k);this.anchors.unbind(i.event+".tabs",m);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
818
- (function(a,d){if(a.cleanData){var f=a.cleanData;a.cleanData=function(h){for(var b=0,g;(g=h[b])!=null;b++)a(g).triggerHandler("remove");f(h)}}else{var e=a.fn.remove;a.fn.remove=function(h,b){return this.each(function(){if(!b)if(!h||a.filter(h,[this]).length)a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")});return e.call(a(this),h,b)})}}a.widget=function(h,b,g){var i=h.split(".")[0],k;h=h.split(".")[1];k=i+"-"+h;if(!g){g=b;b=a.Widget}a.expr[":"][k]=function(m){return!!a.data(m,
819
- h)};a[i]=a[i]||{};a[i][h]=function(m,l){arguments.length&&this._createWidget(m,l)};b=new b;b.options=a.extend(true,{},b.options);a[i][h].prototype=a.extend(true,b,{namespace:i,widgetName:h,widgetEventPrefix:a[i][h].prototype.widgetEventPrefix||h,widgetBaseClass:k},g);a.widget.bridge(h,a[i][h])};a.widget.bridge=function(h,b){a.fn[h]=function(g){var i=typeof g==="string",k=Array.prototype.slice.call(arguments,1),m=this;g=!i&&k.length?a.extend.apply(null,[true,g].concat(k)):g;if(i&&g.substring(0,1)===
820
- "_")return m;i?this.each(function(){var l=a.data(this,h);if(!l)throw"cannot call methods on "+h+" prior to initialization; attempted to call method '"+g+"'";if(!a.isFunction(l[g]))throw"no such method '"+g+"' for "+h+" widget instance";var j=l[g].apply(l,k);if(j!==l&&j!==d){m=j;return false}}):this.each(function(){var l=a.data(this,h);l?l.option(g||{})._init():a.data(this,h,new b(g,this))});return m}};a.Widget=function(h,b){arguments.length&&this._createWidget(h,b)};a.Widget.prototype={widgetName:"widget",
821
- widgetEventPrefix:"",options:{disabled:false},_createWidget:function(h,b){a.data(b,this.widgetName,this);this.element=a(b);this.options=a.extend(true,{},this.options,a.metadata&&a.metadata.get(b)[this.widgetName],h);var g=this;this.element.bind("remove."+this.widgetName,function(){g.destroy()});this._create();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+
822
- "-disabled ui-state-disabled")},widget:function(){return this.element},option:function(h,b){var g=h,i=this;if(arguments.length===0)return a.extend({},i.options);if(typeof h==="string"){if(b===d)return this.options[h];g={};g[h]=b}a.each(g,function(k,m){i._setOption(k,m)});return i},_setOption:function(h,b){this.options[h]=b;if(h==="disabled")this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",b);return this},enable:function(){return this._setOption("disabled",
823
- false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(h,b,g){var i=this.options[h];b=a.Event(b);b.type=(h===this.widgetEventPrefix?h:this.widgetEventPrefix+h).toLowerCase();g=g||{};if(b.originalEvent){h=a.event.props.length;for(var k;h;){k=a.event.props[--h];b[k]=b.originalEvent[k]}}this.element.trigger(b,g);return!(a.isFunction(i)&&i.call(this.element[0],b,g)===false||b.isDefaultPrevented())}}})(jQuery);