noodall-ui 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (542) hide show
  1. data/.document +5 -0
  2. data/.gitignore +29 -0
  3. data/Gemfile +29 -0
  4. data/Gemfile.lock +205 -0
  5. data/LICENSE +20 -0
  6. data/README.rdoc +17 -0
  7. data/Rakefile +17 -0
  8. data/app/controllers/noodall/admin/assets_controller.rb +241 -0
  9. data/app/controllers/noodall/admin/base_controller.rb +8 -0
  10. data/app/controllers/noodall/admin/components_controller.rb +22 -0
  11. data/app/controllers/noodall/admin/groups_controller.rb +11 -0
  12. data/app/controllers/noodall/admin/nodes_controller.rb +159 -0
  13. data/app/controllers/noodall/nodes_controller.rb +41 -0
  14. data/app/helpers/noodall/admin/assets_helper.rb +15 -0
  15. data/app/helpers/noodall/admin/base_helper.rb +14 -0
  16. data/app/helpers/noodall/admin/nodes_helper.rb +37 -0
  17. data/app/helpers/noodall/components_helper.rb +38 -0
  18. data/app/helpers/noodall/layout_helper.rb +25 -0
  19. data/app/helpers/noodall/nodes_helper.rb +72 -0
  20. data/app/models/asset.rb +103 -0
  21. data/app/views/layouts/noodall_admin.html.erb +66 -0
  22. data/app/views/noodall/admin/assets/_browser.html.erb +28 -0
  23. data/app/views/noodall/admin/assets/_form.html.erb +54 -0
  24. data/app/views/noodall/admin/assets/_menu.html.erb +8 -0
  25. data/app/views/noodall/admin/assets/_show.html.erb +48 -0
  26. data/app/views/noodall/admin/assets/_tags.html.erb +13 -0
  27. data/app/views/noodall/admin/assets/add.html.erb +10 -0
  28. data/app/views/noodall/admin/assets/form.html.erb +12 -0
  29. data/app/views/noodall/admin/assets/form.js.erb +2 -0
  30. data/app/views/noodall/admin/assets/index.html.erb +65 -0
  31. data/app/views/noodall/admin/assets/index.js.erb +1 -0
  32. data/app/views/noodall/admin/assets/show.html.erb +3 -0
  33. data/app/views/noodall/admin/assets/show.js.erb +1 -0
  34. data/app/views/noodall/admin/assets/tags.html.erb +3 -0
  35. data/app/views/noodall/admin/assets/tags.js.erb +1 -0
  36. data/app/views/noodall/admin/components/_component.erb +0 -0
  37. data/app/views/noodall/admin/nodes/_body.html.erb +5 -0
  38. data/app/views/noodall/admin/nodes/_branch.html.erb +10 -0
  39. data/app/views/noodall/admin/nodes/_home.html.erb +27 -0
  40. data/app/views/noodall/admin/nodes/_slot_form.html.erb +16 -0
  41. data/app/views/noodall/admin/nodes/change_template.html.erb +38 -0
  42. data/app/views/noodall/admin/nodes/index.html.erb +69 -0
  43. data/app/views/noodall/admin/nodes/new.html.erb +30 -0
  44. data/app/views/noodall/admin/nodes/show.html.erb +144 -0
  45. data/app/views/noodall/admin/nodes/tree.html.erb +3 -0
  46. data/app/views/noodall/admin/nodes/tree.js.erb +2 -0
  47. data/app/views/noodall/components/_component.erb +0 -0
  48. data/app/views/noodall/nodes/search.html.erb +14 -0
  49. data/app/views/noodall/nodes/sitemap.html.erb +3 -0
  50. data/app/views/noodall/nodes/sitemap.xml.rxml +22 -0
  51. data/config/application.rb +29 -0
  52. data/config/boot.rb +13 -0
  53. data/config/cucumber.yml +8 -0
  54. data/config/database.yml +14 -0
  55. data/config/environment.rb +5 -0
  56. data/config/environments/development.rb +30 -0
  57. data/config/environments/production.rb +50 -0
  58. data/config/environments/test.rb +35 -0
  59. data/config/locales/en.yml +5 -0
  60. data/config.ru +4 -0
  61. data/demo/controllers/application_controller.rb +22 -0
  62. data/demo/initializers/dragonfly.rb +1 -0
  63. data/demo/initializers/mongo_mapper.rb +13 -0
  64. data/demo/initializers/noodall.rb +2 -0
  65. data/demo/initializers/secret_token.rb +7 -0
  66. data/demo/initializers/session_store.rb +8 -0
  67. data/demo/models/gallery.rb +17 -0
  68. data/demo/models/page_a.rb +9 -0
  69. data/demo/models/page_b.rb +4 -0
  70. data/demo/models/page_c.rb +7 -0
  71. data/demo/models/promo.rb +22 -0
  72. data/demo/models/user.rb +12 -0
  73. data/demo/routes.rb +3 -0
  74. data/demo/seeds.rb +8 -0
  75. data/demo/views/admin/components/_gallery.html.erb +49 -0
  76. data/demo/views/admin/components/_promo.html.erb +34 -0
  77. data/demo/views/admin/nodes/_page_a.html.erb +47 -0
  78. data/demo/views/admin/nodes/_page_b.html.erb +35 -0
  79. data/demo/views/admin/nodes/_page_c.html.erb +35 -0
  80. data/demo/views/components/_gallery.html.erb +23 -0
  81. data/demo/views/components/_promo.html.erb +5 -0
  82. data/demo/views/layouts/application.html.erb +121 -0
  83. data/demo/views/nodes/page_a.html.erb +14 -0
  84. data/demo/views/nodes/page_b.html.erb +9 -0
  85. data/demo/views/nodes/page_c.html.erb +12 -0
  86. data/features/change_templates.feature +25 -0
  87. data/features/content_templates.feature +18 -0
  88. data/features/gallery_component.feature +22 -0
  89. data/features/manage_assets.feature +28 -0
  90. data/features/manage_content_tree.feature +42 -0
  91. data/features/preview.feature +8 -0
  92. data/features/promo_component.feature +18 -0
  93. data/features/publish_content.feature +28 -0
  94. data/features/search.feature +12 -0
  95. data/features/sitemap.feature +9 -0
  96. data/features/step_definitions/asset_steps.rb +66 -0
  97. data/features/step_definitions/cms_node_steps.rb +126 -0
  98. data/features/step_definitions/component_steps.rb +137 -0
  99. data/features/step_definitions/content_steps.rb +187 -0
  100. data/features/step_definitions/date_select_steps.rb +39 -0
  101. data/features/step_definitions/groups_access_steps.rb +92 -0
  102. data/features/step_definitions/node_steps.rb +25 -0
  103. data/features/step_definitions/preview_steps.rb +7 -0
  104. data/features/step_definitions/pubish_content_steps.rb +45 -0
  105. data/features/step_definitions/search_steps.rb +21 -0
  106. data/features/step_definitions/sign_in_steps.rb +3 -0
  107. data/features/step_definitions/web_steps.rb +219 -0
  108. data/features/support/env.rb +52 -0
  109. data/features/support/logo.png +0 -0
  110. data/features/support/paths.rb +56 -0
  111. data/generators/component/USAGE +8 -0
  112. data/generators/component/component_generator.rb +35 -0
  113. data/generators/component/lib/insert_commands.rb +61 -0
  114. data/generators/component/templates/admin_template.html.erb +50 -0
  115. data/generators/component/templates/factory.rb +5 -0
  116. data/generators/component/templates/model.rb +8 -0
  117. data/generators/component/templates/template.html.erb +41 -0
  118. data/generators/node/USAGE +8 -0
  119. data/generators/node/lib/insert_commands.rb +47 -0
  120. data/generators/node/node_generator.rb +35 -0
  121. data/generators/node/templates/admin_template.html.erb +49 -0
  122. data/generators/node/templates/factory.rb +5 -0
  123. data/generators/node/templates/model.rb +11 -0
  124. data/generators/node/templates/template.html.erb +41 -0
  125. data/generators/node_features/USAGE +8 -0
  126. data/generators/node_features/node_features_generator.rb +16 -0
  127. data/lib/generators/noodall/node/USAGE +8 -0
  128. data/lib/generators/noodall/node/node_generator.rb +21 -0
  129. data/lib/generators/noodall/node/templates/admin_template.html.erb +52 -0
  130. data/lib/generators/noodall/node/templates/factory.rb +8 -0
  131. data/lib/generators/noodall/node/templates/model.rb +13 -0
  132. data/lib/generators/noodall/node/templates/template.html.erb +12 -0
  133. data/lib/noodall/canable.rb +1 -0
  134. data/lib/noodall/dragonfly.rb +23 -0
  135. data/lib/noodall/engine.rb +13 -0
  136. data/lib/noodall/permalinks.rb +12 -0
  137. data/lib/noodall/routes.rb +45 -0
  138. data/lib/noodall/ui/version.rb +5 -0
  139. data/lib/noodall/ui.rb +17 -0
  140. data/lib/noodall/video_thumbnail_encoder.rb +31 -0
  141. data/lib/noodall-ui.rb +6 -0
  142. data/lib/tasks/cucumber.rake +53 -0
  143. data/log/.gitignore +0 -0
  144. data/noodall-ui.gemspec +28 -0
  145. data/public/favicon.ico +0 -0
  146. data/public/images/admin/add-small.png +0 -0
  147. data/public/images/admin/add.png +0 -0
  148. data/public/images/admin/add_file.gif +0 -0
  149. data/public/images/admin/advanced.gif +0 -0
  150. data/public/images/admin/back.png +0 -0
  151. data/public/images/admin/cancel-small.gif +0 -0
  152. data/public/images/admin/cancel.gif +0 -0
  153. data/public/images/admin/change-bg.gif +0 -0
  154. data/public/images/admin/change.gif +0 -0
  155. data/public/images/admin/check.png +0 -0
  156. data/public/images/admin/clear.gif +0 -0
  157. data/public/images/admin/close.png +0 -0
  158. data/public/images/admin/create.gif +0 -0
  159. data/public/images/admin/delete.gif +0 -0
  160. data/public/images/admin/delete.png +0 -0
  161. data/public/images/admin/doc-icon.png +0 -0
  162. data/public/images/admin/document.png +0 -0
  163. data/public/images/admin/down.png +0 -0
  164. data/public/images/admin/download.png +0 -0
  165. data/public/images/admin/draft.gif +0 -0
  166. data/public/images/admin/draft.png +0 -0
  167. data/public/images/admin/edit.gif +0 -0
  168. data/public/images/admin/edit.png +0 -0
  169. data/public/images/admin/image.png +0 -0
  170. data/public/images/admin/image_small.png +0 -0
  171. data/public/images/admin/info-white.png +0 -0
  172. data/public/images/admin/info.png +0 -0
  173. data/public/images/admin/media.gif +0 -0
  174. data/public/images/admin/nav-2.gif +0 -0
  175. data/public/images/admin/nav.gif +0 -0
  176. data/public/images/admin/next.png +0 -0
  177. data/public/images/admin/no-type-icon.png +0 -0
  178. data/public/images/admin/pagination.gif +0 -0
  179. data/public/images/admin/pdf-icon.png +0 -0
  180. data/public/images/admin/prev.png +0 -0
  181. data/public/images/admin/preview.gif +0 -0
  182. data/public/images/admin/publish.gif +0 -0
  183. data/public/images/admin/remove.gif +0 -0
  184. data/public/images/admin/reset.gif +0 -0
  185. data/public/images/admin/select_image.gif +0 -0
  186. data/public/images/admin/select_images.gif +0 -0
  187. data/public/images/admin/set.gif +0 -0
  188. data/public/images/admin/sort.png +0 -0
  189. data/public/images/admin/tag.png +0 -0
  190. data/public/images/admin/templates/article-page.gif +0 -0
  191. data/public/images/admin/templates/articles-list.gif +0 -0
  192. data/public/images/admin/templates/course-page.gif +0 -0
  193. data/public/images/admin/templates/event-page.gif +0 -0
  194. data/public/images/admin/templates/events-list.gif +0 -0
  195. data/public/images/admin/templates/home.gif +0 -0
  196. data/public/images/admin/templates/landing-page.gif +0 -0
  197. data/public/images/admin/templates/page-a.gif +0 -0
  198. data/public/images/admin/templates/page-b.gif +0 -0
  199. data/public/images/admin/templates/school-landing-page.gif +0 -0
  200. data/public/images/admin/templates/study-landing-page.gif +0 -0
  201. data/public/images/admin/top-level.png +0 -0
  202. data/public/images/admin/top-level_small.png +0 -0
  203. data/public/images/admin/txt-icon.png +0 -0
  204. data/public/images/admin/uncheck.png +0 -0
  205. data/public/images/admin/up.png +0 -0
  206. data/public/images/admin/update.gif +0 -0
  207. data/public/images/admin/upload.png +0 -0
  208. data/public/images/admin/video.png +0 -0
  209. data/public/images/admin/view.png +0 -0
  210. data/public/images/admin/xls-icon.png +0 -0
  211. data/public/images/fancybox/blank.gif +0 -0
  212. data/public/images/fancybox/fancy_close.png +0 -0
  213. data/public/images/fancybox/fancy_loading.png +0 -0
  214. data/public/images/fancybox/fancy_nav_left.png +0 -0
  215. data/public/images/fancybox/fancy_nav_right.png +0 -0
  216. data/public/images/fancybox/fancy_shadow_e.png +0 -0
  217. data/public/images/fancybox/fancy_shadow_n.png +0 -0
  218. data/public/images/fancybox/fancy_shadow_ne.png +0 -0
  219. data/public/images/fancybox/fancy_shadow_nw.png +0 -0
  220. data/public/images/fancybox/fancy_shadow_s.png +0 -0
  221. data/public/images/fancybox/fancy_shadow_se.png +0 -0
  222. data/public/images/fancybox/fancy_shadow_sw.png +0 -0
  223. data/public/images/fancybox/fancy_shadow_w.png +0 -0
  224. data/public/images/fancybox/fancy_title_left.png +0 -0
  225. data/public/images/fancybox/fancy_title_main.png +0 -0
  226. data/public/images/fancybox/fancy_title_over.png +0 -0
  227. data/public/images/fancybox/fancy_title_right.png +0 -0
  228. data/public/images/fancybox/fancybox-x.png +0 -0
  229. data/public/images/fancybox/fancybox-y.png +0 -0
  230. data/public/images/fancybox/fancybox.png +0 -0
  231. data/public/images/plupload/backgrounds.gif +0 -0
  232. data/public/images/plupload/buttons-disabled.png +0 -0
  233. data/public/images/plupload/buttons.png +0 -0
  234. data/public/images/plupload/delete.gif +0 -0
  235. data/public/images/plupload/done.gif +0 -0
  236. data/public/images/plupload/error.gif +0 -0
  237. data/public/images/plupload/throbber.gif +0 -0
  238. data/public/images/plupload/transp50.png +0 -0
  239. data/public/javascripts/admin/application.js +586 -0
  240. data/public/javascripts/admin/asset_edit.js +30 -0
  241. data/public/javascripts/admin/assets.js +98 -0
  242. data/public/javascripts/admin/gotham.font.js +20 -0
  243. data/public/javascripts/admin/jquery.jqtransform.js +366 -0
  244. data/public/javascripts/admin/nodes.js +30 -0
  245. data/public/javascripts/admin/tiny_mce_config.js +118 -0
  246. data/public/javascripts/ajaxify.js +20 -0
  247. data/public/javascripts/application.js +37 -0
  248. data/public/javascripts/carousel.lite.js +1 -0
  249. data/public/javascripts/cufon-yui.js +8 -0
  250. data/public/javascripts/fancybox.js +1078 -0
  251. data/public/javascripts/plupload/gears_init.js +86 -0
  252. data/public/javascripts/plupload/jquery.plupload.queue.min.js +1 -0
  253. data/public/javascripts/plupload/plupload.flash.swf +0 -0
  254. data/public/javascripts/plupload/plupload.full.min.js +1 -0
  255. data/public/javascripts/plupload/plupload.silverlight.xap +0 -0
  256. data/public/javascripts/rails.js +132 -0
  257. data/public/javascripts/tiny_mce/jquery.tinymce.js +1 -0
  258. data/public/javascripts/tiny_mce/langs/en.js +169 -0
  259. data/public/javascripts/tiny_mce/license.txt +504 -0
  260. data/public/javascripts/tiny_mce/plugins/advhr/css/advhr.css +5 -0
  261. data/public/javascripts/tiny_mce/plugins/advhr/editor_plugin.js +1 -0
  262. data/public/javascripts/tiny_mce/plugins/advhr/editor_plugin_src.js +57 -0
  263. data/public/javascripts/tiny_mce/plugins/advhr/js/rule.js +43 -0
  264. data/public/javascripts/tiny_mce/plugins/advhr/langs/en_dlg.js +5 -0
  265. data/public/javascripts/tiny_mce/plugins/advhr/rule.htm +57 -0
  266. data/public/javascripts/tiny_mce/plugins/advimage/css/advimage.css +13 -0
  267. data/public/javascripts/tiny_mce/plugins/advimage/editor_plugin.js +1 -0
  268. data/public/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js +50 -0
  269. data/public/javascripts/tiny_mce/plugins/advimage/image.htm +232 -0
  270. data/public/javascripts/tiny_mce/plugins/advimage/img/sample.gif +0 -0
  271. data/public/javascripts/tiny_mce/plugins/advimage/js/image.js +443 -0
  272. data/public/javascripts/tiny_mce/plugins/advimage/langs/en_dlg.js +43 -0
  273. data/public/javascripts/tiny_mce/plugins/advlink/css/advlink.css +8 -0
  274. data/public/javascripts/tiny_mce/plugins/advlink/editor_plugin.js +1 -0
  275. data/public/javascripts/tiny_mce/plugins/advlink/editor_plugin_src.js +61 -0
  276. data/public/javascripts/tiny_mce/plugins/advlink/js/advlink.js +528 -0
  277. data/public/javascripts/tiny_mce/plugins/advlink/langs/en_dlg.js +52 -0
  278. data/public/javascripts/tiny_mce/plugins/advlink/link.htm +333 -0
  279. data/public/javascripts/tiny_mce/plugins/advlist/editor_plugin.js +1 -0
  280. data/public/javascripts/tiny_mce/plugins/advlist/editor_plugin_src.js +154 -0
  281. data/public/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js +1 -0
  282. data/public/javascripts/tiny_mce/plugins/autoresize/editor_plugin_src.js +117 -0
  283. data/public/javascripts/tiny_mce/plugins/autosave/editor_plugin.js +1 -0
  284. data/public/javascripts/tiny_mce/plugins/autosave/editor_plugin_src.js +422 -0
  285. data/public/javascripts/tiny_mce/plugins/autosave/langs/en.js +4 -0
  286. data/public/javascripts/tiny_mce/plugins/bbcode/editor_plugin.js +1 -0
  287. data/public/javascripts/tiny_mce/plugins/bbcode/editor_plugin_src.js +120 -0
  288. data/public/javascripts/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -0
  289. data/public/javascripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js +127 -0
  290. data/public/javascripts/tiny_mce/plugins/directionality/editor_plugin.js +1 -0
  291. data/public/javascripts/tiny_mce/plugins/directionality/editor_plugin_src.js +82 -0
  292. data/public/javascripts/tiny_mce/plugins/emotions/editor_plugin.js +1 -0
  293. data/public/javascripts/tiny_mce/plugins/emotions/editor_plugin_src.js +43 -0
  294. data/public/javascripts/tiny_mce/plugins/emotions/emotions.htm +40 -0
  295. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
  296. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
  297. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
  298. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
  299. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
  300. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
  301. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
  302. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
  303. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
  304. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
  305. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
  306. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
  307. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
  308. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
  309. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
  310. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
  311. data/public/javascripts/tiny_mce/plugins/emotions/js/emotions.js +22 -0
  312. data/public/javascripts/tiny_mce/plugins/emotions/langs/en_dlg.js +20 -0
  313. data/public/javascripts/tiny_mce/plugins/example/dialog.htm +22 -0
  314. data/public/javascripts/tiny_mce/plugins/example/editor_plugin.js +1 -0
  315. data/public/javascripts/tiny_mce/plugins/example/editor_plugin_src.js +84 -0
  316. data/public/javascripts/tiny_mce/plugins/example/img/example.gif +0 -0
  317. data/public/javascripts/tiny_mce/plugins/example/js/dialog.js +19 -0
  318. data/public/javascripts/tiny_mce/plugins/example/langs/en.js +3 -0
  319. data/public/javascripts/tiny_mce/plugins/example/langs/en_dlg.js +3 -0
  320. data/public/javascripts/tiny_mce/plugins/fullpage/css/fullpage.css +182 -0
  321. data/public/javascripts/tiny_mce/plugins/fullpage/editor_plugin.js +1 -0
  322. data/public/javascripts/tiny_mce/plugins/fullpage/editor_plugin_src.js +149 -0
  323. data/public/javascripts/tiny_mce/plugins/fullpage/fullpage.htm +571 -0
  324. data/public/javascripts/tiny_mce/plugins/fullpage/js/fullpage.js +471 -0
  325. data/public/javascripts/tiny_mce/plugins/fullpage/langs/en_dlg.js +85 -0
  326. data/public/javascripts/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -0
  327. data/public/javascripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js +148 -0
  328. data/public/javascripts/tiny_mce/plugins/fullscreen/fullscreen.htm +109 -0
  329. data/public/javascripts/tiny_mce/plugins/iespell/editor_plugin.js +1 -0
  330. data/public/javascripts/tiny_mce/plugins/iespell/editor_plugin_src.js +54 -0
  331. data/public/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -0
  332. data/public/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +635 -0
  333. data/public/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
  334. data/public/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  335. data/public/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  336. data/public/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
  337. data/public/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  338. data/public/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  339. data/public/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  340. data/public/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
  341. data/public/javascripts/tiny_mce/plugins/inlinepopups/template.htm +387 -0
  342. data/public/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -0
  343. data/public/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +83 -0
  344. data/public/javascripts/tiny_mce/plugins/layer/editor_plugin.js +1 -0
  345. data/public/javascripts/tiny_mce/plugins/layer/editor_plugin_src.js +212 -0
  346. data/public/javascripts/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -0
  347. data/public/javascripts/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +136 -0
  348. data/public/javascripts/tiny_mce/plugins/media/css/content.css +6 -0
  349. data/public/javascripts/tiny_mce/plugins/media/css/media.css +16 -0
  350. data/public/javascripts/tiny_mce/plugins/media/editor_plugin.js +1 -0
  351. data/public/javascripts/tiny_mce/plugins/media/editor_plugin_src.js +414 -0
  352. data/public/javascripts/tiny_mce/plugins/media/img/flash.gif +0 -0
  353. data/public/javascripts/tiny_mce/plugins/media/img/flv_player.swf +0 -0
  354. data/public/javascripts/tiny_mce/plugins/media/img/quicktime.gif +0 -0
  355. data/public/javascripts/tiny_mce/plugins/media/img/realmedia.gif +0 -0
  356. data/public/javascripts/tiny_mce/plugins/media/img/shockwave.gif +0 -0
  357. data/public/javascripts/tiny_mce/plugins/media/img/trans.gif +0 -0
  358. data/public/javascripts/tiny_mce/plugins/media/img/windowsmedia.gif +0 -0
  359. data/public/javascripts/tiny_mce/plugins/media/js/embed.js +73 -0
  360. data/public/javascripts/tiny_mce/plugins/media/js/media.js +630 -0
  361. data/public/javascripts/tiny_mce/plugins/media/langs/en_dlg.js +103 -0
  362. data/public/javascripts/tiny_mce/plugins/media/media.htm +817 -0
  363. data/public/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -0
  364. data/public/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +53 -0
  365. data/public/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js +1 -0
  366. data/public/javascripts/tiny_mce/plugins/noneditable/editor_plugin_src.js +90 -0
  367. data/public/javascripts/tiny_mce/plugins/pagebreak/css/content.css +1 -0
  368. data/public/javascripts/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -0
  369. data/public/javascripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js +77 -0
  370. data/public/javascripts/tiny_mce/plugins/pagebreak/img/pagebreak.gif +0 -0
  371. data/public/javascripts/tiny_mce/plugins/pagebreak/img/trans.gif +0 -0
  372. data/public/javascripts/tiny_mce/plugins/paste/editor_plugin.js +1 -0
  373. data/public/javascripts/tiny_mce/plugins/paste/editor_plugin_src.js +929 -0
  374. data/public/javascripts/tiny_mce/plugins/paste/js/pastetext.js +36 -0
  375. data/public/javascripts/tiny_mce/plugins/paste/js/pasteword.js +51 -0
  376. data/public/javascripts/tiny_mce/plugins/paste/langs/en_dlg.js +5 -0
  377. data/public/javascripts/tiny_mce/plugins/paste/pastetext.htm +27 -0
  378. data/public/javascripts/tiny_mce/plugins/paste/pasteword.htm +21 -0
  379. data/public/javascripts/tiny_mce/plugins/preview/editor_plugin.js +1 -0
  380. data/public/javascripts/tiny_mce/plugins/preview/editor_plugin_src.js +53 -0
  381. data/public/javascripts/tiny_mce/plugins/preview/example.html +28 -0
  382. data/public/javascripts/tiny_mce/plugins/preview/jscripts/embed.js +73 -0
  383. data/public/javascripts/tiny_mce/plugins/preview/preview.html +17 -0
  384. data/public/javascripts/tiny_mce/plugins/print/editor_plugin.js +1 -0
  385. data/public/javascripts/tiny_mce/plugins/print/editor_plugin_src.js +34 -0
  386. data/public/javascripts/tiny_mce/plugins/save/editor_plugin.js +1 -0
  387. data/public/javascripts/tiny_mce/plugins/save/editor_plugin_src.js +101 -0
  388. data/public/javascripts/tiny_mce/plugins/searchreplace/css/searchreplace.css +6 -0
  389. data/public/javascripts/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -0
  390. data/public/javascripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js +57 -0
  391. data/public/javascripts/tiny_mce/plugins/searchreplace/js/searchreplace.js +130 -0
  392. data/public/javascripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js +16 -0
  393. data/public/javascripts/tiny_mce/plugins/searchreplace/searchreplace.htm +99 -0
  394. data/public/javascripts/tiny_mce/plugins/spellchecker/css/content.css +1 -0
  395. data/public/javascripts/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -0
  396. data/public/javascripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js +341 -0
  397. data/public/javascripts/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
  398. data/public/javascripts/tiny_mce/plugins/style/css/props.css +13 -0
  399. data/public/javascripts/tiny_mce/plugins/style/editor_plugin.js +1 -0
  400. data/public/javascripts/tiny_mce/plugins/style/editor_plugin_src.js +55 -0
  401. data/public/javascripts/tiny_mce/plugins/style/js/props.js +641 -0
  402. data/public/javascripts/tiny_mce/plugins/style/langs/en_dlg.js +63 -0
  403. data/public/javascripts/tiny_mce/plugins/style/props.htm +726 -0
  404. data/public/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -0
  405. data/public/javascripts/tiny_mce/plugins/tabfocus/editor_plugin_src.js +112 -0
  406. data/public/javascripts/tiny_mce/plugins/table/cell.htm +178 -0
  407. data/public/javascripts/tiny_mce/plugins/table/css/cell.css +17 -0
  408. data/public/javascripts/tiny_mce/plugins/table/css/row.css +25 -0
  409. data/public/javascripts/tiny_mce/plugins/table/css/table.css +13 -0
  410. data/public/javascripts/tiny_mce/plugins/table/editor_plugin.js +1 -0
  411. data/public/javascripts/tiny_mce/plugins/table/editor_plugin_src.js +1118 -0
  412. data/public/javascripts/tiny_mce/plugins/table/js/cell.js +286 -0
  413. data/public/javascripts/tiny_mce/plugins/table/js/merge_cells.js +27 -0
  414. data/public/javascripts/tiny_mce/plugins/table/js/row.js +237 -0
  415. data/public/javascripts/tiny_mce/plugins/table/js/table.js +449 -0
  416. data/public/javascripts/tiny_mce/plugins/table/langs/en_dlg.js +74 -0
  417. data/public/javascripts/tiny_mce/plugins/table/merge_cells.htm +32 -0
  418. data/public/javascripts/tiny_mce/plugins/table/row.htm +155 -0
  419. data/public/javascripts/tiny_mce/plugins/table/table.htm +187 -0
  420. data/public/javascripts/tiny_mce/plugins/template/blank.htm +12 -0
  421. data/public/javascripts/tiny_mce/plugins/template/css/template.css +23 -0
  422. data/public/javascripts/tiny_mce/plugins/template/editor_plugin.js +1 -0
  423. data/public/javascripts/tiny_mce/plugins/template/editor_plugin_src.js +159 -0
  424. data/public/javascripts/tiny_mce/plugins/template/js/template.js +106 -0
  425. data/public/javascripts/tiny_mce/plugins/template/langs/en_dlg.js +15 -0
  426. data/public/javascripts/tiny_mce/plugins/template/template.htm +32 -0
  427. data/public/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js +1 -0
  428. data/public/javascripts/tiny_mce/plugins/visualchars/editor_plugin_src.js +76 -0
  429. data/public/javascripts/tiny_mce/plugins/wordcount/editor_plugin.js +1 -0
  430. data/public/javascripts/tiny_mce/plugins/wordcount/editor_plugin_src.js +98 -0
  431. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/abbr.htm +141 -0
  432. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/acronym.htm +141 -0
  433. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/attributes.htm +148 -0
  434. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/cite.htm +141 -0
  435. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css +11 -0
  436. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/css/popup.css +9 -0
  437. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/del.htm +161 -0
  438. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -0
  439. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +144 -0
  440. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/ins.htm +161 -0
  441. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js +28 -0
  442. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js +28 -0
  443. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js +126 -0
  444. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/cite.js +28 -0
  445. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/del.js +63 -0
  446. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js +231 -0
  447. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/ins.js +62 -0
  448. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +32 -0
  449. data/public/javascripts/tiny_mce/themes/advanced/about.htm +54 -0
  450. data/public/javascripts/tiny_mce/themes/advanced/anchor.htm +26 -0
  451. data/public/javascripts/tiny_mce/themes/advanced/charmap.htm +53 -0
  452. data/public/javascripts/tiny_mce/themes/advanced/color_picker.htm +73 -0
  453. data/public/javascripts/tiny_mce/themes/advanced/editor_template.js +1 -0
  454. data/public/javascripts/tiny_mce/themes/advanced/editor_template_src.js +1167 -0
  455. data/public/javascripts/tiny_mce/themes/advanced/image.htm +80 -0
  456. data/public/javascripts/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
  457. data/public/javascripts/tiny_mce/themes/advanced/img/icons.gif +0 -0
  458. data/public/javascripts/tiny_mce/themes/advanced/js/about.js +72 -0
  459. data/public/javascripts/tiny_mce/themes/advanced/js/anchor.js +37 -0
  460. data/public/javascripts/tiny_mce/themes/advanced/js/charmap.js +335 -0
  461. data/public/javascripts/tiny_mce/themes/advanced/js/color_picker.js +253 -0
  462. data/public/javascripts/tiny_mce/themes/advanced/js/image.js +245 -0
  463. data/public/javascripts/tiny_mce/themes/advanced/js/link.js +156 -0
  464. data/public/javascripts/tiny_mce/themes/advanced/js/source_editor.js +62 -0
  465. data/public/javascripts/tiny_mce/themes/advanced/langs/en.js +62 -0
  466. data/public/javascripts/tiny_mce/themes/advanced/langs/en_dlg.js +51 -0
  467. data/public/javascripts/tiny_mce/themes/advanced/link.htm +58 -0
  468. data/public/javascripts/tiny_mce/themes/advanced/skins/default/content.css +35 -0
  469. data/public/javascripts/tiny_mce/themes/advanced/skins/default/dialog.css +117 -0
  470. data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
  471. data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
  472. data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
  473. data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
  474. data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
  475. data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
  476. data/public/javascripts/tiny_mce/themes/advanced/skins/default/ui.css +213 -0
  477. data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/content.css +35 -0
  478. data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +116 -0
  479. data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
  480. data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
  481. data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
  482. data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +215 -0
  483. data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +8 -0
  484. data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
  485. data/public/javascripts/tiny_mce/themes/advanced/source_editor.htm +26 -0
  486. data/public/javascripts/tiny_mce/themes/simple/editor_template.js +1 -0
  487. data/public/javascripts/tiny_mce/themes/simple/editor_template_src.js +85 -0
  488. data/public/javascripts/tiny_mce/themes/simple/img/icons.gif +0 -0
  489. data/public/javascripts/tiny_mce/themes/simple/langs/en.js +11 -0
  490. data/public/javascripts/tiny_mce/themes/simple/skins/default/content.css +25 -0
  491. data/public/javascripts/tiny_mce/themes/simple/skins/default/ui.css +32 -0
  492. data/public/javascripts/tiny_mce/themes/simple/skins/o2k7/content.css +17 -0
  493. data/public/javascripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
  494. data/public/javascripts/tiny_mce/themes/simple/skins/o2k7/ui.css +35 -0
  495. data/public/javascripts/tiny_mce/tiny_mce.js +1 -0
  496. data/public/javascripts/tiny_mce/tiny_mce_popup.js +5 -0
  497. data/public/javascripts/tiny_mce/tiny_mce_src.js +13134 -0
  498. data/public/javascripts/tiny_mce/utils/editable_selects.js +70 -0
  499. data/public/javascripts/tiny_mce/utils/form_utils.js +200 -0
  500. data/public/javascripts/tiny_mce/utils/mctabs.js +77 -0
  501. data/public/javascripts/tiny_mce/utils/validate.js +220 -0
  502. data/public/stylesheets/admin/fancybox.css +341 -0
  503. data/public/stylesheets/admin/forms.css +520 -0
  504. data/public/stylesheets/admin/handheld.css +6 -0
  505. data/public/stylesheets/admin/ie.css +118 -0
  506. data/public/stylesheets/admin/ie6.css +23 -0
  507. data/public/stylesheets/admin/ie8.css +16 -0
  508. data/public/stylesheets/admin/layout.css +723 -0
  509. data/public/stylesheets/admin/print.css +27 -0
  510. data/public/stylesheets/admin/reset.css +81 -0
  511. data/public/stylesheets/admin/skin.css +698 -0
  512. data/public/stylesheets/admin/tinymce.css +2 -0
  513. data/public/stylesheets/admin/typography.css +207 -0
  514. data/public/stylesheets/ellipsis.xml +15 -0
  515. data/public/stylesheets/fancybox.css +313 -0
  516. data/public/stylesheets/forms.css +7 -0
  517. data/public/stylesheets/ie.css +12 -0
  518. data/public/stylesheets/ie8.css +8 -0
  519. data/public/stylesheets/layout.css +31 -0
  520. data/public/stylesheets/plupload.queue.css +181 -0
  521. data/public/stylesheets/reset.css +84 -0
  522. data/public/stylesheets/sass/forms.scss +7 -0
  523. data/public/stylesheets/sass/ie.scss +12 -0
  524. data/public/stylesheets/sass/ie8.scss +8 -0
  525. data/public/stylesheets/sass/layout.scss +45 -0
  526. data/public/stylesheets/sass/skin.scss +35 -0
  527. data/public/stylesheets/sass/typography.scss +162 -0
  528. data/public/stylesheets/skin.css +22 -0
  529. data/public/stylesheets/typography.css +162 -0
  530. data/script/cucumber +10 -0
  531. data/script/rails +6 -0
  532. data/spec/factories/asset.rb +16 -0
  533. data/spec/factories/component.rb +9 -0
  534. data/spec/factories/node.rb +15 -0
  535. data/spec/factories/user.rb +5 -0
  536. data/spec/files/beef.png +0 -0
  537. data/spec/files/get_video.flv +0 -0
  538. data/spec/files/test.pdf +0 -0
  539. data/spec/noodall-ui_spec.rb +9 -0
  540. data/spec/spec_helper.rb +4 -0
  541. data/tmp/.gitignore +0 -0
  542. metadata +685 -0
@@ -0,0 +1,98 @@
1
+ function setUpAssets() {
2
+ document.write('<link rel="stylesheet" href="/stylesheets/plupload.queue.css" type="text/css" media="screen" charset="utf-8">');
3
+ document.write('<script type="text/javascript" src="/javascripts/plupload/gears_init.js"></script>');
4
+ document.write('<script type="text/javascript" src="http://bp.yahooapis.com/2.4.21/browserplus-min.js"></script>');
5
+ document.write('<script type="text/javascript" src="/javascripts/plupload/plupload.full.min.js"></script>');
6
+ document.write('<script type="text/javascript" src="/javascripts/plupload/jquery.plupload.queue.min.js"></script>');
7
+
8
+ $('#asset-browser ul.choices a, #asset-browser #tags a, #asset-browser .tags a, #asset-browser a.show, #asset-browser .pagination a').live('click', function() {
9
+ $.get(
10
+ $(this).attr('href'),
11
+ { allowed_types: Browser.allowed_types, mode: Browser.mode },
12
+ Browser.after_ajax,
13
+ 'script' );
14
+ return false;
15
+ });
16
+ ajaxifyForms('form.edit_asset');
17
+ }
18
+
19
+ function setUpPlupload() {
20
+
21
+ $("#uploader").pluploadQueue({
22
+
23
+ // General settings
24
+ runtimes : 'html5,flash,gears,silverlight,browserplus,',
25
+ url : '/admin/assets/plupload',
26
+ // max_file_size : '10mb',
27
+ chunk_size : '1mb',
28
+ unique_names : false,
29
+
30
+ // Use multipart
31
+ // multipart: true,
32
+ // multipart_params: { 'var1': 'val1', 'var2': 'val2' },
33
+
34
+ // Resize images on clientside if we can
35
+ // resize : {width : 320, height : 240, quality : 90},
36
+
37
+ // Specify what files to browse for
38
+ filters : [
39
+ {title : "Image files", extensions : "jpg,gif,png"},
40
+ {title : "Zip files", extensions : "zip"},
41
+ {title : "Flash files", extensions : "swf"},
42
+ {title : "Document files", extensions : "doc,pdf,xls,txt,docx,ppt"},
43
+ {title : "Video files", extensions : "flv,f4v"}
44
+ ],
45
+ // Flash settings
46
+ flash_swf_url : '/javascripts/plupload/plupload.flash.swf',
47
+
48
+ // Silverlight settings
49
+ silverlight_xap_url : '/javascripts/plupload/plupload.silverlight.xap'
50
+
51
+ });
52
+ var uploader = $('#uploader').pluploadQueue();
53
+
54
+
55
+ uploader.bind('FileUploaded', function(up, file, res) {
56
+ if(this.total.queued == 0) {
57
+ message = $('<div id="flash"><div class="flash notice">Assets were successfully uploaded. <strong>Please enter full information for each asset</strong></div></div>');
58
+ message.bind('click', function() {
59
+ window.location.href = "/admin/assets/pending";
60
+ });
61
+ message.css( 'cursor', 'pointer' );
62
+ if ($('form#uploader').closest('#asset-browser').val() == undefined){
63
+ $("#content").before(message);
64
+ setTimeout('window.location.href = "/admin/assets/pending";', 5000);
65
+ }
66
+ }
67
+ });
68
+
69
+ var error_translations = [];
70
+ error_translations[700] = 'File type is not allowed.';
71
+ error_translations[600] = 'File is too large, '+ plupload.formatSize(uploader.settings.max_file_size) +' maximum.';
72
+
73
+ uploader.bind('Error', function(up, err){
74
+ uploader_dom = $('#uploader');
75
+
76
+ if(uploader_dom.find('.plupload_droptext').length >0)
77
+ uploader_dom.find('.plupload_droptext').remove();
78
+
79
+ // get a nicer error message
80
+ // or fail to pluploads errors
81
+ error_message = err.message;
82
+ err_code = Math.abs(err.code);
83
+ if(error_translations[err_code])
84
+ error_message = error_translations[err_code];
85
+
86
+ error_item = $('<li></li>');
87
+ error_item.addClass('plupload_error');
88
+ error_item.text(error_message + (err.file ? " (" + err.file.name + ")" : ""));
89
+
90
+ $('#uploader_filelist').append(error_item);
91
+
92
+ error_item.delay(8000).fadeOut(2000, function(){ $(this).remove(); if($('#uploader_filelist li').length == 0) $('#uploader_filelist').append('<li class="plupload_droptext">Drag files here.</li>'); });
93
+
94
+ up.refresh(); // Reposition Flash/Silverlight
95
+ });
96
+ }
97
+
98
+ setUpAssets();
@@ -0,0 +1,20 @@
1
+ /*!
2
+ * The following copyright notice may not be removed under any circumstances.
3
+ *
4
+ * Copyright:
5
+ * HTF Gotham Copr. 2000 The Hoefler Type Foundry, Inc. Info: www.typography.com
6
+ *
7
+ * Manufacturer:
8
+ * HTF Gotham Copr. The Hoefler Type Foundry, Inc
9
+ */
10
+ Cufon.registerFont({"w":230,"face":{"font-family":"Gotham Book","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"2 0 6 3 4 0 0 2 0 4","ascent":"288","descent":"-72","x-height":"4","bbox":"-8 -287 383 58.6664","underline-thickness":"7.2","underline-position":"-40.68","unicode-range":"U+0020-U+00A3"},"glyphs":{" ":{"w":108},"!":{"d":"32,-38r34,0r0,38r-34,0r0,-38xm41,-71r-8,-181r32,0r-8,181r-16,0","w":97},"\"":{"d":"34,-252v10,2,27,-3,34,2r-29,96r-16,0xm105,-252v10,2,27,-3,33,2r-29,96r-15,0","w":158},"#":{"d":"154,-89r13,-76r-69,0r-13,76r69,0xm55,-64r-39,0r0,-25r44,0r13,-76r-43,0r0,-25r47,0r11,-62r25,0r-10,62r68,0r11,-62r25,0r-10,62r38,0r0,25r-43,0r-13,76r42,0r0,25r-46,0r-11,64r-25,0r10,-64r-68,0r-11,64r-25,0","w":252},"$":{"d":"127,-24v46,5,71,-61,25,-78v-6,-3,-15,-6,-25,-8r0,86xm106,-228v-47,-6,-68,60,-24,77v6,3,14,6,24,8r0,-85xm205,-68v0,45,-33,65,-77,68r0,35r-23,0r0,-36v-37,-3,-62,-17,-85,-37r16,-21v21,17,39,31,70,34r0,-90v-45,-12,-76,-24,-76,-71v0,-44,33,-62,75,-66r0,-21r23,0r0,22v31,2,49,14,69,29r-16,21v-16,-13,-32,-21,-54,-26r0,89v45,11,78,25,78,70","w":228},"%":{"d":"224,-106v-45,0,-41,91,1,89v22,-1,32,-20,32,-45v0,-25,-11,-44,-33,-44xm76,-235v-45,1,-42,89,0,89v45,-1,43,-87,0,-89xm281,-62v0,38,-19,65,-57,65v-37,0,-57,-29,-57,-65v0,-36,20,-64,58,-64v37,0,56,28,56,64xm230,-252r25,0r-184,252r-26,0xm133,-191v0,38,-20,65,-57,65v-38,0,-57,-27,-57,-64v0,-37,20,-65,57,-65v36,0,57,28,57,64","w":300},"&":{"d":"45,-69v-3,44,50,59,86,40v10,-6,21,-14,30,-24r-68,-70v-27,11,-46,25,-48,54xm117,-233v-49,0,-43,65,-13,84v26,-10,48,-19,49,-49v1,-20,-16,-36,-36,-35xm231,-120v-11,23,-21,45,-36,63r44,45r-22,17r-39,-41v-22,21,-44,40,-83,40v-47,0,-79,-25,-79,-72v0,-40,29,-59,61,-72v-42,-35,-28,-120,41,-116v38,2,62,21,62,57v0,37,-30,55,-60,66r58,58v12,-17,21,-35,30,-56","w":250},"'":{"d":"34,-252v10,2,27,-3,34,2r-29,96r-16,0","w":88},"(":{"d":"53,-103v0,68,35,104,83,135r-12,19v-81,-35,-133,-152,-74,-243v17,-26,42,-47,74,-65r12,18v-48,31,-83,67,-83,136","w":156},")":{"d":"32,-257v82,34,133,152,74,242v-17,26,-42,48,-74,66r-12,-19v48,-31,84,-66,84,-135v0,-69,-36,-105,-84,-136","w":156},"*":{"d":"72,-188r-37,26r-10,-17r42,-19r-42,-19r10,-17r37,26r-4,-45r19,0r-4,45r37,-26r10,17r-42,19r42,19r-10,17r-37,-26r4,45r-19,0","w":154},"+":{"d":"102,-114r-75,0r0,-26r75,0r0,-74r27,0r0,74r74,0r0,26r-74,0r0,74r-27,0r0,-74"},",":{"d":"17,31v15,-6,25,-13,24,-31r-13,0r0,-38r33,0v2,43,-1,77,-40,82","w":88},"-":{"d":"23,-123r100,0r0,29r-100,0r0,-29","w":146},"\u00ad":{"d":"23,-123r100,0r0,29r-100,0r0,-29","w":146},".":{"d":"28,-38r33,0r0,38r-33,0r0,-38","w":88},"\/":{"d":"159,-287r26,0r-167,333r-26,0","w":182},"0":{"d":"129,-230v-103,1,-103,207,0,208v103,-2,102,-206,0,-208xm235,-127v0,74,-35,131,-106,131v-73,0,-107,-57,-107,-130v0,-72,35,-130,107,-130v71,0,106,56,106,129","w":257},"1":{"d":"64,-224r-47,14r-7,-23v28,-7,47,-23,83,-21r0,254r-29,0r0,-224","w":128},"2":{"d":"113,-256v81,0,95,97,43,144r-96,86r133,0r0,26r-176,0r0,-22v46,-48,113,-79,141,-142v15,-34,-11,-66,-47,-66v-35,1,-50,19,-68,43r-21,-15v20,-29,42,-54,91,-54","w":215},"3":{"d":"196,-72v4,94,-143,93,-178,31r21,-18v18,22,37,37,73,37v33,-1,55,-17,55,-49v0,-42,-40,-50,-86,-49r-6,-17r79,-89r-123,0r0,-26r161,0r0,21r-79,88v46,4,81,23,83,71","w":220},"4":{"d":"156,-84r0,-129r-106,129r106,0xm156,-60r-133,0r-8,-20r143,-174r25,0r0,170r39,0r0,24r-39,0r0,60r-27,0r0,-60","w":241},"5":{"d":"170,-77v2,-59,-78,-64,-115,-40r-19,-12r7,-123r145,0r0,26r-120,0r-6,81v57,-26,137,-3,137,67v0,70,-78,100,-140,71v-15,-7,-28,-17,-40,-29r19,-20v29,42,130,52,132,-21","w":220},"6":{"d":"57,-78v0,38,26,57,63,57v37,0,61,-21,61,-58v0,-36,-25,-54,-61,-54v-37,0,-63,20,-63,55xm210,-80v-3,53,-36,84,-90,84v-70,0,-98,-49,-98,-124v0,-89,54,-159,145,-129v12,4,23,12,34,21r-16,22v-26,-31,-94,-32,-114,7v-11,21,-19,49,-20,80v31,-61,164,-46,159,39","w":232},"7":{"d":"163,-226r-139,0r0,-26r171,0r0,21r-114,231r-32,0","w":214},"8":{"d":"48,-69v0,35,30,48,65,48v35,0,66,-13,66,-48v0,-64,-131,-64,-131,0xm56,-187v0,62,117,61,115,0v-1,-30,-26,-44,-58,-44v-31,0,-57,13,-57,44xm208,-69v0,94,-189,99,-189,1v-1,-35,25,-52,52,-62v-23,-11,-44,-26,-44,-59v0,-45,39,-67,86,-67v47,0,84,22,86,68v1,33,-21,47,-43,58v26,10,52,27,52,61","w":226},"9":{"d":"52,-172v0,37,26,56,62,56v37,0,62,-21,62,-58v0,-37,-27,-57,-64,-57v-36,0,-60,22,-60,59xm211,-133v2,91,-57,161,-148,129v-13,-4,-24,-14,-35,-23r17,-22v26,34,94,35,117,-4v12,-20,19,-47,20,-79v-29,62,-165,49,-159,-39v4,-53,35,-85,90,-85v70,0,97,48,98,123","w":232},":":{"d":"30,-38r33,0r0,38r-33,0r0,-38xm30,-186r33,0r0,38r-33,0r0,-38","w":91},";":{"d":"18,31v15,-5,26,-12,24,-31r-12,0r0,-38r33,0v2,43,-1,77,-40,82xm30,-186r33,0r0,38r-33,0r0,-38","w":91},"\u037e":{"d":"18,31v15,-5,26,-12,24,-31r-12,0r0,-38r33,0v2,43,-1,77,-40,82xm30,-186r33,0r0,38r-33,0r0,-38","w":91},"<":{"d":"26,-115r0,-24r169,-83r0,27r-139,68r139,68r0,28"},"=":{"d":"32,-98r166,0r0,27r-166,0r0,-27xm32,-182r166,0r0,26r-166,0r0,-26"},">":{"d":"36,-59r138,-67r-138,-68r0,-28r168,83r0,24r-168,84r0,-28"},"?":{"d":"72,-38r33,0r0,38r-33,0r0,-38xm74,-130v39,-3,73,-15,73,-53v-1,-31,-22,-47,-52,-47v-30,0,-50,15,-66,34r-18,-17v19,-23,42,-42,84,-42v86,0,109,112,35,137v-9,3,-19,7,-29,8r-3,39r-19,0","w":193},"@":{"d":"177,-158v-62,-6,-85,109,-15,110v61,4,86,-108,15,-110xm275,31v-27,15,-54,28,-95,27v-97,-4,-156,-61,-161,-157v-8,-139,174,-204,269,-114v25,23,46,55,46,99v0,50,-21,85,-68,88v-25,1,-44,-13,-50,-30v-27,47,-124,37,-124,-35v0,-75,98,-122,136,-60r5,-25r24,4r-17,103v0,18,10,30,30,29v38,-2,51,-34,51,-74v0,-80,-61,-130,-144,-130v-89,0,-145,58,-145,145v0,89,57,145,148,145v39,0,63,-9,89,-24","w":352},"A":{"d":"199,-92r-57,-129r-58,129r115,0xm129,-254r27,0r114,254r-30,0r-30,-67r-137,0r-30,67r-29,0","w":284},"B":{"d":"210,-71v-1,-57,-87,-41,-146,-43r0,88v60,-3,147,16,146,-45xm196,-185v0,-54,-78,-39,-132,-41r0,86v57,-1,132,12,132,-45xm239,-69v-2,88,-116,66,-203,69r0,-252v80,2,188,-17,189,63v0,32,-18,49,-40,59v29,9,54,24,54,61","w":259},"C":{"d":"252,-40v-25,24,-52,44,-101,44v-79,0,-122,-52,-127,-130v-8,-119,150,-170,226,-90r-19,21v-21,-19,-42,-35,-79,-35v-61,0,-94,42,-98,104v-6,101,125,134,179,68","w":265},"D":{"d":"228,-125v0,-84,-69,-109,-164,-101r0,200v94,7,164,-16,164,-99xm257,-127v0,112,-97,136,-221,127r0,-252v122,-9,221,14,221,125","w":281},"E":{"d":"36,-252r182,0r0,26r-154,0r0,86r138,0r0,26r-138,0r0,88r156,0r0,26r-184,0r0,-252","w":241},"F":{"d":"36,-252r181,0r0,26r-153,0r0,90r137,0r0,26r-137,0r0,110r-28,0r0,-252","w":236},"G":{"d":"254,-34v-23,20,-58,39,-101,38v-81,-2,-125,-50,-129,-130v-6,-114,138,-169,221,-97r-19,22v-19,-17,-40,-30,-76,-29v-61,2,-92,43,-96,104v-7,96,108,132,172,80r0,-63r-76,0r0,-26r104,0r0,101","w":282},"H":{"d":"36,-252r28,0r0,112r146,0r0,-112r28,0r0,252r-28,0r0,-113r-146,0r0,113r-28,0r0,-252","w":273},"I":{"d":"38,-252r29,0r0,252r-29,0r0,-252","w":104},"J":{"d":"167,-252v-6,104,32,257,-78,256v-40,0,-62,-20,-78,-45r21,-18v14,21,26,36,57,36v32,0,51,-24,50,-60r0,-169r28,0","w":199},"K":{"d":"36,-252r28,0r0,150r145,-150r37,0r-108,110r112,142r-35,0r-97,-122r-54,54r0,68r-28,0r0,-252","w":258},"L":{"d":"36,-252r28,0r0,226r142,0r0,26r-170,0r0,-252","w":222},"M":{"d":"36,-252r28,0r92,138r92,-138r29,0r0,252r-29,0r0,-204r-91,135r-2,0r-92,-135r0,204r-27,0r0,-252","w":312},"N":{"d":"36,-252r26,0r159,202r0,-202r28,0r0,252r-23,0r-163,-207r0,207r-27,0r0,-252","w":284},"O":{"d":"54,-127v0,63,38,105,99,105v62,0,99,-41,99,-104v0,-62,-38,-104,-99,-104v-61,0,-99,41,-99,103xm282,-127v0,78,-49,131,-129,131v-81,0,-129,-53,-129,-130v0,-77,49,-130,129,-130v80,0,129,53,129,129","w":306},"P":{"d":"195,-170v0,-62,-68,-57,-131,-56r0,111v62,1,131,6,131,-55xm224,-172v-1,79,-75,87,-160,83r0,89r-28,0r0,-252v90,-1,190,-10,188,80","w":240},"Q":{"d":"54,-127v-4,84,90,133,157,86r-46,-40r19,-21r46,42v48,-62,10,-175,-77,-170v-61,3,-96,41,-99,103xm153,-256v114,-6,164,138,98,215r34,27r-20,22r-33,-31v-21,15,-44,28,-79,27v-81,-2,-129,-53,-129,-130v0,-77,49,-126,129,-130","w":306},"R":{"d":"206,-175v1,-63,-80,-50,-142,-51r0,103v64,-1,140,11,142,-52xm235,-177v-1,46,-29,66,-68,74r77,103r-35,0r-74,-98r-71,0r0,98r-28,0r0,-252v90,1,199,-16,199,75","w":260},"S":{"d":"208,-68v0,95,-146,84,-189,31r18,-21v25,21,45,32,86,36v55,5,78,-66,23,-82v-49,-14,-118,-17,-117,-83v1,-83,126,-83,172,-38r-17,22v-31,-37,-142,-41,-124,30v31,49,148,21,148,105"},"T":{"d":"102,-226r-84,0r0,-26r198,0r0,26r-85,0r0,226r-29,0r0,-226","w":233},"U":{"d":"242,-108v-1,70,-36,112,-106,112v-68,0,-103,-39,-104,-109r0,-147r28,0r0,145v-1,52,27,86,77,85v48,0,76,-30,76,-83r0,-147r29,0r0,144","w":273},"V":{"d":"14,-252r32,0r89,217r90,-217r31,0r-108,254r-26,0","w":270},"W":{"d":"16,-252r31,0r72,210r69,-211r24,0r69,211r72,-210r30,0r-90,254r-24,0r-70,-205r-69,205r-24,0","w":398},"X":{"d":"113,-129r-93,-123r34,0r77,103r77,-103r33,0r-93,123r96,129r-33,0r-81,-108r-81,108r-32,0","w":261},"Y":{"d":"114,-100r-104,-152r34,0r85,126r86,-126r33,0r-105,152r0,100r-29,0r0,-100","w":257},"Z":{"d":"24,-19r163,-207r-157,0r0,-26r196,0r0,19r-163,207r163,0r0,26r-202,0r0,-19","w":249},"[":{"d":"34,-252r103,0r0,22r-77,0r0,255r77,0r0,22r-103,0r0,-299","w":158},"\\":{"d":"-2,-287r25,0r167,333r-25,0","w":182},"]":{"d":"21,25r77,0r0,-255r-77,0r0,-22r103,0r0,299r-103,0r0,-22","w":158},"^":{"d":"79,-253r22,0r56,76r-25,0r-42,-56r-43,56r-24,0","w":180},"_":{"d":"-1,35r218,0r0,23r-218,0r0,-23","w":216},"`":{"d":"52,-253r29,-13r34,52r-22,0","w":180},"a":{"d":"45,-56v0,26,22,38,47,38v41,0,66,-21,62,-68v-37,-11,-109,-16,-109,30xm153,-28v-26,45,-136,44,-136,-27v0,-64,81,-69,136,-53v9,-63,-72,-65,-111,-42r-9,-23v53,-30,148,-20,148,59r0,114r-28,0r0,-28","w":208},"b":{"d":"58,-94v0,45,25,73,67,73v42,0,65,-28,65,-72v0,-43,-23,-72,-65,-72v-41,0,-67,28,-67,71xm219,-94v0,58,-34,95,-89,98v-37,2,-56,-19,-71,-40r0,36r-28,0r0,-263r28,0r0,114v15,-23,34,-41,71,-41v56,0,89,40,89,96","w":239},"c":{"d":"48,-94v-5,71,91,95,125,46r18,16v-18,20,-39,36,-76,36v-60,-2,-92,-40,-96,-97v-5,-88,116,-129,170,-64r-18,19v-14,-14,-30,-28,-57,-28v-41,0,-63,30,-66,72","w":205},"d":{"d":"49,-94v0,44,23,73,65,73v42,0,67,-29,67,-73v0,-43,-26,-71,-67,-71v-41,0,-65,28,-65,71xm180,-37v-16,22,-34,43,-71,41v-55,-2,-89,-39,-89,-97v0,-57,34,-97,89,-97v36,0,56,18,71,40r0,-113r28,0r0,263r-28,0r0,-37","w":239},"e":{"d":"167,-104v4,-66,-92,-85,-113,-25v-3,8,-5,16,-6,25r119,0xm48,-82v-2,65,91,79,124,36r17,15v-18,21,-39,36,-77,35v-58,-1,-93,-40,-93,-97v0,-56,32,-97,90,-97v60,0,88,43,86,108r-147,0","w":213},"f":{"d":"128,-235v-34,-15,-67,2,-59,50r59,0r0,23r-59,0r0,162r-28,0r0,-162r-25,0r0,-24r25,0v-8,-59,32,-90,87,-74r0,25","w":132},"g":{"d":"49,-103v0,40,26,64,64,64v40,0,68,-23,68,-64v0,-41,-29,-63,-68,-63v-38,0,-64,23,-64,63xm208,-32v9,95,-118,111,-179,64r12,-21v43,36,146,35,140,-43r0,-22v-16,20,-38,42,-73,40v-52,-2,-85,-35,-88,-88v-6,-89,122,-114,160,-51r0,-33r28,0r0,154","w":239},"h":{"d":"114,-165v-73,0,-52,95,-55,165r-28,0r0,-263r28,0r0,109v12,-19,31,-36,63,-36v90,0,71,105,72,190r-28,0v-4,-68,22,-165,-52,-165","w":221},"i":{"d":"33,-186r28,0r0,186r-28,0r0,-186xm32,-257r31,0r0,30r-31,0r0,-30","w":94},"j":{"d":"61,11v1,38,-26,53,-62,46r0,-23v20,3,34,-2,34,-24r0,-196r28,0r0,197xm32,-257r31,0r0,30r-31,0r0,-30","w":94},"k":{"d":"31,-263r28,0r0,182r100,-105r35,0r-78,80r80,106r-33,0r-67,-87r-37,38r0,49r-28,0r0,-263","w":204},"l":{"d":"33,-263r28,0r0,263r-28,0r0,-263","w":94},"m":{"d":"111,-165v-71,1,-49,96,-52,165r-28,0r0,-186r28,0r0,31v18,-44,105,-45,120,2v13,-20,32,-36,65,-37v88,-2,67,106,69,190r-28,0v-5,-66,21,-166,-48,-165v-71,1,-47,97,-51,165r-28,0v-5,-66,21,-165,-47,-165","w":342},"n":{"d":"114,-165v-73,0,-52,95,-55,165r-28,0r0,-186r28,0r0,32v12,-19,31,-36,63,-36v90,0,71,105,72,190r-28,0v-4,-68,22,-165,-52,-165","w":221},"o":{"d":"48,-94v0,43,25,73,69,73v43,0,68,-29,68,-72v0,-43,-27,-73,-69,-73v-42,0,-68,29,-68,72xm213,-94v0,60,-37,98,-97,98v-60,0,-97,-40,-97,-97v0,-58,39,-97,98,-97v57,0,96,38,96,96","w":232},"p":{"d":"58,-94v0,45,25,73,67,73v42,0,65,-28,65,-72v0,-43,-23,-72,-65,-72v-41,0,-67,28,-67,71xm130,4v-37,2,-56,-19,-71,-40r0,94r-28,0r0,-244r28,0r0,37v15,-23,34,-41,71,-41v56,0,89,40,89,97v0,57,-34,94,-89,97","w":239},"q":{"d":"49,-94v0,44,23,73,65,73v42,0,67,-29,67,-73v0,-43,-26,-71,-67,-71v-41,0,-65,28,-65,71xm109,-190v36,0,56,18,71,40r0,-36r28,0r0,244r-28,0r0,-95v-16,22,-34,43,-71,41v-55,-2,-89,-39,-89,-97v0,-57,34,-97,89,-97","w":239},"r":{"d":"135,-159v-80,-3,-80,78,-76,159r-28,0r0,-186r28,0r0,48v13,-29,35,-51,76,-51r0,30","w":145},"s":{"d":"140,-89v42,32,7,98,-47,93v-29,-3,-59,-14,-78,-28r15,-20v17,14,37,21,64,24v32,3,53,-36,24,-51v-34,-19,-92,-14,-94,-65v-2,-64,92,-63,131,-33r-13,21v-24,-24,-106,-27,-87,21v20,21,61,21,85,38","w":179},"t":{"d":"68,-53v-3,33,37,36,59,25r0,23v-36,19,-86,4,-86,-44r0,-113r-26,0r0,-24r26,0r0,-56r27,0r0,56r59,0r0,24r-59,0r0,109","w":145},"u":{"d":"163,-32v-12,20,-32,36,-64,36v-90,0,-69,-105,-71,-190r28,0v5,67,-22,165,51,165v74,0,53,-94,56,-165r27,0r0,186r-27,0r0,-32","w":221},"v":{"d":"13,-186r30,0r63,154r63,-154r30,0r-81,187r-25,0","w":211},"w":{"d":"15,-186r30,0r49,149r50,-150r23,0r50,150r49,-149r29,0r-66,187r-24,0r-50,-146r-50,146r-25,0","w":309},"x":{"d":"87,-95r-70,-91r32,0r55,72r55,-72r31,0r-71,91r74,95r-32,0r-58,-76r-58,76r-31,0","w":206},"y":{"d":"30,27v28,17,61,2,67,-28r-85,-185r31,0r68,155r59,-155r30,0r-78,192v-13,45,-55,66,-102,43","w":212},"z":{"d":"20,-18r124,-145r-120,0r0,-23r157,0r0,18r-123,145r123,0r0,23r-161,0r0,-18","w":200},"{":{"d":"98,-53v-4,56,11,79,56,85r-4,19v-56,-7,-83,-31,-78,-100v2,-33,-16,-46,-52,-44r0,-21v89,17,17,-109,90,-132v10,-4,24,-8,40,-11r4,18v-44,7,-60,28,-56,85v2,30,-14,43,-37,51v22,7,39,20,37,50","w":173},"|":{"d":"43,-287r23,0r0,333r-23,0r0,-333","w":109},"}":{"d":"153,-93v-87,-15,-16,108,-89,133v-10,4,-24,8,-40,11r-5,-19v45,-7,61,-28,57,-85v-2,-30,14,-43,37,-50v-33,-8,-39,-34,-37,-78v2,-42,-22,-49,-57,-58r5,-18v56,7,83,31,78,100v-2,33,15,45,51,43r0,21","w":173},"~":{"d":"110,-89v-25,0,-58,-31,-67,4r-17,-5v8,-22,11,-38,34,-38v26,0,58,33,67,-3r17,4v-7,23,-10,38,-34,38","w":170},"\u00a3":{"d":"134,-229v-48,0,-55,46,-51,98r100,0r0,25r-100,0r0,81r128,0r0,25r-187,0r0,-17r30,-7r0,-82r-30,0r0,-25r30,0v-5,-73,14,-125,80,-125v38,0,60,18,77,39r-22,18v-14,-16,-26,-30,-55,-30","w":231},"\u00a0":{"w":108}}});
11
+ /*!
12
+ * The following copyright notice may not be removed under any circumstances.
13
+ *
14
+ * Copyright:
15
+ * HTF Gotham Copr. 2000 The Hoefler Type Foundry, Inc. Info: www.typography.com
16
+ *
17
+ * Manufacturer:
18
+ * HTF Gotham Copr. The Hoefler Type Foundry, Inc
19
+ */
20
+ Cufon.registerFont({"w":230,"face":{"font-family":"Gotham Bold","font-weight":700,"font-stretch":"normal","units-per-em":"360","panose-1":"2 0 8 3 3 0 0 2 0 4","ascent":"288","descent":"-72","x-height":"4","bbox":"-10 -287 393 58.8846","underline-thickness":"7.2","underline-position":"-40.68","unicode-range":"U+0020-U+00A3"},"glyphs":{" ":{"w":108},"!":{"d":"29,-58r58,0r0,58r-58,0r0,-58xm43,-86r-17,-166r64,0r-17,166r-30,0","w":116},"\"":{"d":"27,-252v19,2,45,-4,60,2r-39,113r-27,0xm112,-252v19,2,45,-4,60,2r-39,113r-28,0","w":187},"#":{"d":"148,-100r9,-53r-53,0r-9,53r53,0xm40,-54r-27,0r0,-46r35,0r9,-53r-32,0r0,-46r40,0r9,-53r47,0r-9,53r53,0r9,-53r47,0r-9,53r27,0r0,46r-35,0r-9,53r32,0r0,46r-40,0r-9,54r-48,0r10,-54r-53,0r-9,54r-47,0","w":252},"$":{"d":"136,-45v24,-2,33,-22,21,-39v-3,-5,-11,-8,-21,-12r0,51xm103,-207v-21,0,-32,21,-20,37v3,4,10,8,20,12r0,-49xm215,-72v0,46,-34,66,-77,72r0,35r-37,0r0,-36v-33,-4,-63,-18,-85,-34r28,-41v19,13,34,24,59,29r0,-57v-41,-13,-78,-25,-78,-77v0,-45,33,-66,76,-71r0,-21r37,0r0,22v27,4,48,12,67,26r-24,42v-14,-8,-28,-16,-45,-21r0,55v46,13,79,28,79,77","w":232},"%":{"d":"209,-62v-1,16,8,32,24,32v16,0,23,-16,23,-32v0,-15,-9,-31,-24,-31v-16,-1,-23,16,-23,31xm54,-191v-1,17,8,32,24,32v16,1,23,-16,23,-31v0,-15,-8,-32,-24,-32v-16,0,-23,16,-23,31xm293,-62v0,39,-23,65,-61,65v-39,0,-61,-25,-61,-65v0,-38,23,-64,62,-64v38,0,60,25,60,64xm225,-252r43,0r-184,252r-43,0xm139,-191v0,39,-23,65,-62,65v-39,0,-61,-26,-61,-64v0,-38,23,-65,62,-65v39,0,61,26,61,64","w":309},"&":{"d":"68,-72v-1,36,52,36,72,16r-49,-49v-13,6,-23,17,-23,33xm119,-213v-31,-1,-30,42,-10,57v18,-7,33,-13,34,-34v0,-14,-10,-23,-24,-23xm237,-114v-10,18,-22,38,-34,54r37,37r-40,28r-29,-29v-44,45,-162,36,-159,-46v1,-37,21,-56,49,-69v-36,-46,-10,-123,59,-117v42,3,71,22,71,64v0,38,-25,54,-53,66r33,33v9,-14,17,-28,25,-43","w":250},"'":{"d":"27,-252v19,2,46,-4,61,2r-39,113r-28,0","w":102},"(":{"d":"76,-103v0,62,32,91,69,117r-24,37v-58,-33,-100,-73,-100,-154v0,-81,42,-122,100,-154r24,36v-37,27,-69,56,-69,118","w":160},")":{"d":"39,-257v58,32,100,73,100,154v0,81,-43,121,-100,154r-24,-37v38,-26,69,-55,70,-117v0,-62,-33,-91,-70,-118","w":160},"*":{"d":"68,-177r-35,27r-15,-26r41,-17r-41,-17r15,-26r35,26r-5,-43r29,0r-6,43r35,-26r15,26r-40,17r40,17r-15,26r-35,-27r6,43r-29,0","w":154},"+":{"d":"90,-102r-66,0r0,-50r66,0r0,-64r51,0r0,64r65,0r0,50r-65,0r0,65r-51,0r0,-65"},",":{"d":"9,36v25,-3,38,-15,36,-36r-23,0r0,-58r59,0v4,64,-2,119,-67,116","w":102},"-":{"d":"18,-138r111,0r0,53r-111,0r0,-53","w":146},"\u00ad":{"d":"18,-138r111,0r0,53r-111,0r0,-53","w":146},".":{"d":"22,-58r59,0r0,58r-59,0r0,-58","w":102},"\/":{"d":"149,-287r47,0r-160,333r-46,0","w":190},"0":{"d":"131,-206v-76,1,-74,159,1,160v75,-1,73,-159,-1,-160xm243,-127v0,75,-38,131,-112,131v-74,0,-112,-55,-112,-130v0,-74,38,-130,113,-130v73,0,111,55,111,129","w":262},"1":{"d":"64,-198r-44,11r-11,-45v35,-9,62,-26,110,-22r0,254r-55,0r0,-198","w":151},"2":{"d":"115,-256v89,-6,110,105,50,152r-71,56r110,0r0,48r-186,0r0,-44v41,-39,95,-66,125,-115v8,-25,-6,-49,-32,-47v-26,2,-36,16,-51,34r-39,-31v21,-30,45,-50,94,-53","w":224},"3":{"d":"203,-79v4,99,-147,103,-189,40r38,-37v17,18,30,30,61,31v20,0,36,-13,35,-32v-1,-30,-37,-34,-72,-32r-9,-35r60,-60r-99,0r0,-48r171,0r0,42r-64,61v40,5,66,25,68,70","w":223},"4":{"d":"143,-99r0,-79r-67,79r67,0xm143,-54r-123,0r-9,-40r138,-160r47,0r0,155r34,0r0,45r-34,0r0,54r-53,0r0,-54","w":248},"5":{"d":"206,-84v0,100,-139,109,-191,51r34,-40v17,15,33,26,60,27v24,0,42,-12,42,-36v0,-40,-58,-39,-87,-25r-32,-21r8,-124r154,0r0,49r-107,0r-3,43v61,-14,122,10,122,76","w":226},"6":{"d":"76,-81v0,23,19,38,44,38v25,0,44,-14,43,-38v0,-23,-19,-37,-44,-37v-25,-1,-43,13,-43,37xm218,-84v-3,57,-39,88,-96,88v-75,0,-97,-46,-103,-123v-8,-113,103,-176,190,-110r-29,43v-25,-27,-91,-26,-98,15v-2,7,-4,15,-5,23v51,-35,145,-10,141,64","w":238},"7":{"d":"143,-204r-119,0r0,-48r182,0r0,42r-113,210r-63,0","w":222},"8":{"d":"70,-74v0,22,19,32,43,32v24,0,44,-11,44,-32v0,-22,-21,-31,-44,-31v-23,0,-43,9,-43,31xm77,-181v0,20,15,32,36,32v21,1,36,-12,36,-31v0,-18,-15,-30,-36,-30v-21,0,-36,12,-36,29xm211,-71v0,53,-43,75,-98,75v-53,0,-95,-22,-97,-74v-1,-34,17,-49,41,-61v-19,-11,-33,-25,-32,-55v3,-48,40,-70,88,-70v49,0,89,21,89,70v0,29,-13,44,-32,55v23,13,41,26,41,60","w":226},"9":{"d":"75,-171v0,24,19,39,44,39v25,0,43,-14,43,-38v1,-24,-18,-40,-44,-39v-26,0,-42,14,-43,38xm219,-134v10,117,-110,177,-193,108r29,-42v20,22,70,33,91,6v8,-11,13,-24,15,-41v-50,37,-147,10,-141,-65v5,-56,38,-88,96,-88v75,0,97,48,103,122","w":238},":":{"d":"24,-58r58,0r0,58r-58,0r0,-58xm24,-193r58,0r0,58r-58,0r0,-58","w":106},";":{"d":"11,36v25,-3,37,-15,35,-36r-22,0r0,-58r58,0v-1,38,4,84,-17,100v-12,9,-28,16,-49,16xm24,-193r58,0r0,58r-58,0r0,-58","w":106},"\u037e":{"d":"11,36v25,-3,37,-15,35,-36r-22,0r0,-58r58,0v-1,38,4,84,-17,100v-12,9,-28,16,-49,16xm24,-193r58,0r0,58r-58,0r0,-58","w":106},"<":{"d":"24,-102r0,-50r175,-76r0,51r-122,50r122,50r0,51"},"=":{"d":"30,-105r171,0r0,50r-171,0r0,-50xm30,-198r171,0r0,49r-171,0r0,-49"},">":{"d":"32,-76r121,-50r-121,-50r0,-52r174,76r0,50r-174,76r0,-50"},"?":{"d":"59,-58r58,0r0,58r-58,0r0,-58xm7,-216v37,-55,179,-57,176,36v-2,47,-32,63,-71,72r-4,22r-37,0r-8,-58v30,-7,64,-5,64,-35v0,-43,-73,-24,-87,-1","w":195},"@":{"d":"176,-146v-47,-4,-63,85,-10,86v46,3,62,-86,10,-86xm88,-93v-8,-74,88,-119,130,-66r4,-19r43,7r-18,108v-1,14,12,23,26,23v35,0,46,-36,46,-74v0,-79,-61,-128,-142,-128v-87,0,-143,57,-143,143v0,88,57,143,146,143v39,0,62,-9,88,-24r7,11v-27,15,-54,28,-95,27v-97,-4,-161,-61,-161,-157v0,-95,63,-157,158,-157v90,0,157,55,157,142v0,53,-22,88,-72,91v-27,1,-44,-11,-55,-22v-37,40,-126,20,-119,-48","w":352},"A":{"d":"175,-105r-34,-82r-33,82r67,0xm117,-254r51,0r108,254r-58,0r-23,-57r-107,0r-23,57r-56,0","w":284},"B":{"d":"189,-76v0,-42,-65,-25,-105,-28r0,55v40,-4,104,14,105,-27xm175,-177v0,-37,-55,-23,-91,-26r0,53v37,-2,91,11,91,-27xm244,-70v0,94,-124,65,-214,70r0,-252v85,3,200,-20,200,66v0,29,-14,44,-33,54v28,12,47,24,47,62","w":259},"C":{"d":"252,-41v-24,26,-54,47,-104,45v-79,-2,-124,-52,-129,-130v-7,-120,153,-170,231,-91r-35,40v-42,-49,-138,-28,-138,51v0,80,99,101,139,50","w":265},"D":{"d":"204,-125v0,-64,-48,-83,-118,-77r0,152v69,6,118,-12,118,-75xm262,-127v0,82,-53,127,-133,127r-99,0r0,-252r99,0v79,4,133,45,133,125","w":281},"E":{"d":"30,-252r190,0r0,49r-135,0r0,51r119,0r0,50r-119,0r0,53r137,0r0,49r-192,0r0,-252","w":241},"F":{"d":"30,-252r192,0r0,50r-136,0r0,54r120,0r0,50r-120,0r0,98r-56,0r0,-252","w":236},"G":{"d":"259,-36v-25,21,-60,41,-107,40v-83,-2,-129,-49,-133,-130v-6,-118,148,-168,231,-96r-35,42v-17,-14,-36,-25,-66,-25v-45,0,-70,33,-72,79v-4,69,76,100,129,65r0,-36r-56,0r0,-48r109,0r0,109","w":282},"H":{"d":"30,-252r56,0r0,100r102,0r0,-100r55,0r0,252r-55,0r0,-101r-102,0r0,101r-56,0r0,-252","w":273},"I":{"d":"33,-252r55,0r0,252r-55,0r0,-252","w":120},"J":{"d":"177,-87v11,99,-126,115,-172,53r35,-39v18,30,80,39,80,-17r0,-162r57,0r0,165","w":203},"K":{"d":"30,-252r56,0r0,110r102,-110r67,0r-103,107r108,145r-67,0r-78,-107r-29,30r0,77r-56,0r0,-252","w":262},"L":{"d":"30,-252r56,0r0,202r125,0r0,50r-181,0r0,-252","w":222},"M":{"d":"30,-252r60,0r66,107r66,-107r60,0r0,252r-55,0r0,-165r-72,108r-70,-106r0,163r-55,0r0,-252","w":312},"N":{"d":"30,-252r51,0r118,155r0,-155r55,0r0,252r-47,0r-122,-160r0,160r-55,0r0,-252","w":284},"O":{"d":"77,-127v0,48,28,80,76,80v48,0,76,-32,76,-79v0,-47,-29,-79,-76,-79v-48,0,-76,32,-76,78xm287,-127v0,81,-53,131,-134,131v-81,0,-134,-50,-134,-130v0,-80,54,-130,134,-130v81,0,134,50,134,129","w":306},"P":{"d":"174,-163v0,-42,-45,-40,-88,-39r0,77v43,2,88,2,88,-38xm230,-165v0,76,-62,94,-144,89r0,76r-56,0r0,-252r103,0v60,0,97,30,97,87","w":240},"Q":{"d":"77,-127v-2,59,52,95,109,73r-41,-35r36,-39r41,37v21,-55,-11,-115,-69,-114v-48,2,-74,32,-76,78xm153,-256v108,-5,167,115,112,202r26,22r-36,40r-27,-25v-21,13,-43,22,-75,21v-81,-3,-134,-50,-134,-130v0,-80,54,-126,134,-130","w":306},"R":{"d":"184,-165v0,-46,-54,-36,-98,-37r0,72v43,-1,98,9,98,-35xm240,-169v0,43,-23,68,-54,79r62,90r-65,0r-54,-81r-43,0r0,81r-56,0r0,-252v96,0,210,-16,210,83","w":260},"S":{"d":"166,-140v81,31,43,154,-46,144v-45,-5,-81,-17,-107,-41r33,-39v21,15,42,28,75,31v39,3,48,-39,11,-49v-50,-13,-109,-20,-109,-86v0,-90,131,-91,182,-44r-29,42v-19,-13,-39,-22,-65,-25v-29,-3,-45,28,-22,42v19,11,55,17,77,25"},"T":{"d":"89,-201r-77,0r0,-51r209,0r0,51r-77,0r0,201r-55,0r0,-201","w":233},"U":{"d":"246,-110v-1,74,-38,113,-111,114v-70,0,-110,-40,-109,-112r0,-144r56,0v8,78,-29,205,54,205v85,1,46,-128,54,-205r56,0r0,142","w":272},"V":{"d":"9,-252r61,0r66,177r66,-177r59,0r-102,254r-48,0","w":270},"W":{"d":"11,-252r59,0r52,171r57,-172r47,0r57,172r52,-171r58,0r-86,254r-48,0r-57,-165r-57,165r-48,0","w":403},"X":{"d":"99,-128r-84,-124r65,0r52,82r54,-82r63,0r-84,123r87,129r-64,0r-57,-86r-57,86r-63,0","w":263},"Y":{"d":"101,-99r-97,-153r65,0r60,101r61,-101r63,0r-96,152r0,100r-56,0r0,-99","w":257},"Z":{"d":"23,-42r138,-161r-134,0r0,-49r206,0r0,42r-139,161r139,0r0,49r-210,0r0,-42","w":254},"[":{"d":"30,-252r116,0r0,43r-64,0r0,213r64,0r0,43r-116,0r0,-299","w":167},"\\":{"d":"-5,-287r46,0r160,333r-47,0","w":190},"]":{"d":"21,4r64,0r0,-213r-64,0r0,-43r117,0r0,299r-117,0r0,-43","w":167},"^":{"d":"71,-252r38,0r53,75r-40,0r-32,-43r-33,43r-39,0","w":180},"_":{"d":"-1,16r218,0r0,42r-218,0r0,-42","w":216},"`":{"d":"40,-257r47,-21r40,64r-41,0","w":180},"a":{"d":"66,-58v0,16,14,25,30,24v26,-1,47,-14,43,-44v-23,-11,-73,-12,-73,20xm138,-110v4,-49,-65,-41,-95,-28r-13,-42v22,-9,42,-15,74,-15v58,0,86,27,86,83r0,112r-52,0r0,-21v-31,39,-125,32,-125,-35v0,-62,74,-72,125,-54","w":213},"b":{"d":"78,-97v0,32,17,54,47,54v29,0,47,-21,47,-54v0,-32,-18,-53,-47,-53v-30,0,-47,22,-47,53xm227,-97v0,61,-32,98,-88,101v-30,2,-46,-14,-60,-29r0,25r-55,0r0,-263r55,0r0,98v14,-17,30,-34,60,-32v55,3,88,40,88,100","w":243},"c":{"d":"69,-97v0,55,67,69,93,34r32,32v-19,19,-40,36,-78,35v-61,-3,-97,-39,-101,-100v-6,-93,122,-134,178,-68r-33,36v-23,-36,-91,-22,-91,31","w":205},"d":{"d":"71,-97v0,33,18,54,47,54v30,0,47,-23,47,-54v0,-31,-17,-53,-47,-53v-29,0,-47,21,-47,53xm164,-28v-14,17,-30,34,-60,32v-56,-3,-88,-40,-88,-101v0,-60,32,-97,88,-100v30,-2,46,14,60,29r0,-95r55,0r0,263r-55,0r0,-28","w":243},"e":{"d":"151,-112v0,-34,-44,-55,-68,-29v-7,7,-12,17,-14,29r82,0xm195,-32v-17,22,-41,36,-79,36v-62,-2,-101,-38,-101,-100v0,-60,36,-101,96,-101v67,0,96,48,93,120r-135,0v5,42,70,47,94,18","w":220},"f":{"d":"132,-215v-19,-7,-50,-7,-44,24r44,0r0,45r-43,0r0,146r-55,0r0,-146r-23,0r0,-45r23,0v-10,-64,44,-86,98,-69r0,45","w":137},"g":{"d":"71,-107v-1,27,20,47,46,46v30,-1,48,-18,48,-46v0,-27,-19,-44,-48,-44v-28,0,-45,16,-46,44xm16,-106v-6,-85,104,-118,148,-62r0,-25r55,0r0,149v11,107,-115,121,-193,82r18,-41v40,27,132,29,121,-44v-15,18,-31,31,-63,31v-54,-2,-82,-35,-86,-90","w":243},"h":{"d":"113,-147v-57,0,-27,94,-34,147r-55,0r0,-263r55,0r0,97v13,-16,29,-30,57,-31v88,-1,61,114,65,197r-54,0v-7,-53,23,-147,-34,-147","w":224},"i":{"d":"27,-193r55,0r0,193r-55,0r0,-193xm26,-263r57,0r0,49r-57,0r0,-49","w":108},"j":{"d":"82,-3v2,51,-35,68,-86,60r0,-43v19,4,31,-2,31,-22r0,-185r55,0r0,190xm26,-263r57,0r0,49r-57,0r0,-49","w":108},"k":{"d":"24,-263r55,0r0,140r64,-70r66,0r-74,76r76,117r-62,0r-51,-79r-19,20r0,59r-55,0r0,-263","w":213},"l":{"d":"27,-263r55,0r0,263r-55,0r0,-263","w":108},"m":{"d":"112,-147v-55,0,-26,95,-33,147r-55,0r0,-193r55,0r0,27v18,-36,96,-43,111,0v32,-49,129,-40,129,40r0,126r-55,0v-7,-53,22,-147,-32,-147v-55,0,-26,95,-33,147r-55,0v-7,-53,22,-147,-32,-147","w":342},"n":{"d":"113,-147v-57,0,-27,94,-34,147r-55,0r0,-193r55,0r0,27v13,-16,29,-30,57,-31v88,-1,61,114,65,197r-54,0v-7,-53,23,-147,-34,-147","w":224},"o":{"d":"69,-97v0,32,18,54,51,54v33,0,50,-22,50,-53v0,-31,-19,-53,-51,-53v-33,0,-50,21,-50,52xm224,-97v0,63,-42,101,-105,101v-63,0,-104,-38,-104,-100v0,-62,42,-101,105,-101v62,0,104,38,104,100","w":239},"p":{"d":"78,-97v0,32,17,54,47,54v29,0,47,-21,47,-54v0,-32,-18,-53,-47,-53v-30,0,-47,22,-47,53xm139,4v-30,2,-46,-14,-60,-29r0,83r-55,0r0,-251r55,0r0,28v14,-17,30,-34,60,-32v56,3,88,40,88,101v0,60,-32,97,-88,100","w":243},"q":{"d":"71,-97v0,33,18,54,47,54v30,0,47,-23,47,-54v0,-31,-17,-53,-47,-53v-29,0,-47,21,-47,53xm104,-197v30,-2,46,14,60,29r0,-25r55,0r0,251r-55,0r0,-86v-14,17,-30,34,-60,32v-56,-3,-88,-40,-88,-101v0,-60,32,-97,88,-100","w":243},"r":{"d":"141,-139v-70,-5,-63,71,-62,139r-55,0r0,-193r55,0r0,39v11,-24,28,-45,62,-43r0,58","w":150},"s":{"d":"128,-109v65,22,36,121,-36,113v-34,-4,-61,-13,-83,-30r24,-36v18,13,35,23,61,23v24,0,30,-21,11,-28v-37,-14,-86,-17,-86,-68v-1,-71,98,-73,143,-39r-21,38v-16,-9,-33,-16,-52,-18v-22,-3,-28,20,-9,27","w":180},"t":{"d":"133,-8v-40,23,-100,11,-100,-47r0,-91r-23,0r0,-47r23,0r0,-49r55,0r0,49r46,0r0,47r-46,0r0,82v-2,24,30,22,45,12r0,44","w":149},"u":{"d":"145,-27v-13,15,-29,30,-56,31v-89,3,-62,-114,-66,-197r55,0v7,53,-23,147,33,147v57,0,27,-94,34,-147r55,0r0,193r-55,0r0,-27","w":224},"v":{"d":"7,-193r58,0r43,129r44,-129r57,0r-76,194r-50,0","w":216},"w":{"d":"9,-193r55,0r31,117r36,-118r48,0r36,118r32,-117r54,0r-60,194r-49,0r-37,-118r-38,118r-49,0","w":309},"x":{"d":"76,-98r-65,-95r58,0r36,56r37,-56r57,0r-65,94r68,99r-59,0r-39,-60r-38,60r-58,0","w":210},"y":{"d":"40,6v12,7,38,13,43,-5r-76,-194r58,0r44,131r42,-131r57,0r-74,198v-9,47,-67,70,-112,40","w":216},"z":{"d":"18,-39r100,-110r-97,0r0,-44r165,0r0,39r-100,110r100,0r0,44r-168,0r0,-39","w":202},"{":{"d":"117,-55v0,43,7,64,42,69r-9,37v-54,-8,-90,-29,-83,-96v3,-32,-16,-38,-49,-37r0,-42v85,15,13,-103,91,-123v11,-3,24,-7,41,-10r9,36v-34,6,-50,25,-42,69v-1,29,-15,40,-38,49v23,8,38,19,38,48","w":176},"|":{"d":"41,-287r44,0r0,333r-44,0r0,-333","w":126},"}":{"d":"159,-82v-86,-17,-13,101,-91,122v-11,3,-24,8,-41,11r-10,-37v35,-7,43,-24,43,-69v0,-29,14,-40,37,-48v-31,-8,-36,-34,-36,-75v0,-30,-19,-36,-44,-43r10,-36v56,7,89,29,83,96v-3,32,16,38,49,37r0,42","w":176},"~":{"d":"121,-84v-28,0,-62,-32,-74,3r-29,-9v8,-23,14,-49,44,-49v30,0,63,31,75,-4r29,9v-7,26,-17,49,-45,50","w":183},"\u00a3":{"d":"173,-180v-13,-29,-69,-34,-68,10r0,28r82,0r0,46r-82,0r0,48r110,0r0,48r-193,0r0,-36r27,-9r0,-51r-27,0r0,-46r27,0v-25,-113,111,-149,166,-72","w":231},"\u00a0":{"w":108}}});
@@ -0,0 +1,366 @@
1
+ /*
2
+ *
3
+ * jqTransform
4
+ * by mathieu vilaplana mvilaplana@dfc-e.com
5
+ * Designer ghyslain armand garmand@dfc-e.com
6
+ *
7
+ *
8
+ * Version 1.0 25.09.08
9
+ * Version 1.1 06.08.09
10
+ * Add event click on Checkbox and Radio
11
+ * Auto calculate the size of a select element
12
+ * Can now, disabled the elements
13
+ * Correct bug in ff if click on select (overflow=hidden)
14
+ * No need any more preloading !!
15
+ *
16
+ ******************************************** */
17
+
18
+ (function($){
19
+ var defaultOptions = {preloadImg:true};
20
+ var jqTransformImgPreloaded = false;
21
+
22
+ var jqTransformPreloadHoverFocusImg = function(strImgUrl) {
23
+ //guillemets to remove for ie
24
+ strImgUrl = strImgUrl.replace(/^url\((.*)\)/,'$1').replace(/^\"(.*)\"$/,'$1');
25
+ var imgHover = new Image();
26
+ imgHover.src = strImgUrl.replace(/\.([a-zA-Z]*)$/,'-hover.$1');
27
+ var imgFocus = new Image();
28
+ imgFocus.src = strImgUrl.replace(/\.([a-zA-Z]*)$/,'-focus.$1');
29
+ };
30
+
31
+
32
+ /***************************
33
+ Labels
34
+ ***************************/
35
+ var jqTransformGetLabel = function(objfield){
36
+ var selfForm = $(objfield.get(0).form);
37
+ var oLabel = objfield.next();
38
+ if(!oLabel.is('label')) {
39
+ oLabel = objfield.prev();
40
+ if(oLabel.is('label')){
41
+ var inputname = objfield.attr('id');
42
+ if(inputname){
43
+ oLabel = selfForm.find('label[for="'+inputname+'"]');
44
+ }
45
+ }
46
+ }
47
+ if(oLabel.is('label')){return oLabel.css('cursor','pointer');}
48
+ return false;
49
+ };
50
+
51
+ /* Hide all open selects */
52
+ var jqTransformHideSelect = function(oTarget){
53
+ var ulVisible = $('.jqTransformSelectWrapper ul:visible');
54
+ ulVisible.each(function(){
55
+ var oSelect = $(this).parents(".jqTransformSelectWrapper:first").find("select").get(0);
56
+ //do not hide if click on the label object associated to the select
57
+ if( !(oTarget && oSelect.oLabel && oSelect.oLabel.get(0) == oTarget.get(0)) ){$(this).hide();}
58
+ });
59
+ };
60
+ /* Check for an external click */
61
+ var jqTransformCheckExternalClick = function(event) {
62
+ if ($(event.target).parents('.jqTransformSelectWrapper').length === 0) { jqTransformHideSelect($(event.target)); }
63
+ };
64
+
65
+ /* Apply document listener */
66
+ var jqTransformAddDocumentListener = function (){
67
+ $(document).mousedown(jqTransformCheckExternalClick);
68
+ };
69
+
70
+ /* Add a new handler for the reset action */
71
+ var jqTransformReset = function(f){
72
+ var sel;
73
+ $('.jqTransformSelectWrapper select', f).each(function(){sel = (this.selectedIndex<0) ? 0 : this.selectedIndex; $('ul', $(this).parent()).each(function(){$('a:eq('+ sel +')', this).click();});});
74
+ $('a.jqTransformCheckbox, a.jqTransformRadio', f).removeClass('jqTransformChecked');
75
+ $('input:checkbox, input:radio', f).each(function(){if(this.checked){$('a', $(this).parent()).addClass('jqTransformChecked');}});
76
+ };
77
+
78
+ /***************************
79
+ Buttons
80
+ ***************************/
81
+ $.fn.jqTransInputButton = function(){
82
+ return this.each(function(){
83
+ var newBtn = $('<button id="'+ this.id +'" name="'+ this.name +'" type="'+ this.type +'" class="'+ this.className +' jqTransformButton"><span><span>'+ $(this).attr('value') +'</span></span>')
84
+ .hover(function(){newBtn.addClass('jqTransformButton_hover');},function(){newBtn.removeClass('jqTransformButton_hover')})
85
+ .mousedown(function(){newBtn.addClass('jqTransformButton_click')})
86
+ .mouseup(function(){newBtn.removeClass('jqTransformButton_click')})
87
+ ;
88
+ $(this).replaceWith(newBtn);
89
+ });
90
+ };
91
+
92
+ /***************************
93
+ Text Fields
94
+ ***************************/
95
+ $.fn.jqTransInputText = function(){
96
+ return this.each(function(){
97
+ var $input = $(this);
98
+
99
+ if($input.hasClass('jqtranformdone') || !$input.is('input')) {return;}
100
+ $input.addClass('jqtranformdone');
101
+
102
+ var oLabel = jqTransformGetLabel($(this));
103
+ oLabel && oLabel.bind('click',function(){$input.focus();});
104
+
105
+ var inputSize=$input.width();
106
+ if($input.attr('size')){
107
+ inputSize = $input.attr('size')*10;
108
+ $input.css('width',inputSize);
109
+ }
110
+
111
+ $input.addClass("jqTransformInput").wrap('<div class="jqTransformInputWrapper"><div class="jqTransformInputInner"><div></div></div></div>');
112
+ var $wrapper = $input.parent().parent().parent();
113
+ $wrapper.css("width", inputSize+10);
114
+ $input
115
+ .focus(function(){$wrapper.addClass("jqTransformInputWrapper_focus");})
116
+ .blur(function(){$wrapper.removeClass("jqTransformInputWrapper_focus");})
117
+ .hover(function(){$wrapper.addClass("jqTransformInputWrapper_hover");},function(){$wrapper.removeClass("jqTransformInputWrapper_hover");})
118
+ ;
119
+
120
+ /* If this is safari we need to add an extra class */
121
+ $.browser.safari && $wrapper.addClass('jqTransformSafari');
122
+ $.browser.safari && $input.css('width',$wrapper.width()+16);
123
+ this.wrapper = $wrapper;
124
+
125
+ });
126
+ };
127
+
128
+ /***************************
129
+ Check Boxes
130
+ ***************************/
131
+ $.fn.jqTransCheckBox = function(){
132
+ return this.each(function(){
133
+ if($(this).hasClass('jqTransformHidden')) {return;}
134
+
135
+ var $input = $(this);
136
+ var inputSelf = this;
137
+
138
+ //set the click on the label
139
+ var oLabel=jqTransformGetLabel($input);
140
+ oLabel && oLabel.click(function(){aLink.trigger('click');});
141
+
142
+ var aLink = $('<a href="#" class="jqTransformCheckbox"></a>');
143
+ //wrap and add the link
144
+ $input.addClass('jqTransformHidden').wrap('<span class="jqTransformCheckboxWrapper"></span>').parent().prepend(aLink);
145
+ //on change, change the class of the link
146
+ $input.change(function(){
147
+ this.checked && aLink.addClass('jqTransformChecked') || aLink.removeClass('jqTransformChecked');
148
+ return true;
149
+ });
150
+ // Click Handler, trigger the click and change event on the input
151
+ aLink.click(function(){
152
+ //do nothing if the original input is disabled
153
+ if($input.attr('disabled')){return false;}
154
+ //trigger the envents on the input object
155
+ $input.trigger('click').trigger("change");
156
+ return false;
157
+ });
158
+
159
+ // set the default state
160
+ this.checked && aLink.addClass('jqTransformChecked');
161
+ });
162
+ };
163
+ /***************************
164
+ Radio Buttons
165
+ ***************************/
166
+ $.fn.jqTransRadio = function(){
167
+ return this.each(function(){
168
+ if($(this).hasClass('jqTransformHidden')) {return;}
169
+
170
+ var $input = $(this);
171
+ var inputSelf = this;
172
+
173
+ oLabel = jqTransformGetLabel($input);
174
+ oLabel && oLabel.click(function(){aLink.trigger('click');});
175
+
176
+ var aLink = $('<a href="#" class="jqTransformRadio" rel="'+ this.name +'"></a>');
177
+ $input.addClass('jqTransformHidden').wrap('<span class="jqTransformRadioWrapper"></span>').parent().prepend(aLink);
178
+
179
+ $input.change(function(){
180
+ inputSelf.checked && aLink.addClass('jqTransformChecked') || aLink.removeClass('jqTransformChecked');
181
+ return true;
182
+ });
183
+ // Click Handler
184
+ aLink.click(function(){
185
+ if($input.attr('disabled')){return false;}
186
+ $input.trigger('click').trigger('change');
187
+
188
+ // uncheck all others of same name input radio elements
189
+ $('input[name="'+$input.attr('name')+'"]',inputSelf.form).not($input).each(function(){
190
+ $(this).attr('type')=='radio' && $(this).trigger('change');
191
+ });
192
+
193
+ return false;
194
+ });
195
+ // set the default state
196
+ inputSelf.checked && aLink.addClass('jqTransformChecked');
197
+ });
198
+ };
199
+
200
+ /***************************
201
+ TextArea
202
+ ***************************/
203
+ $.fn.jqTransTextarea = function(){
204
+ return this.each(function(){
205
+ var textarea = $(this);
206
+
207
+ if(textarea.hasClass('jqtransformdone')) {return;}
208
+ textarea.addClass('jqtransformdone');
209
+
210
+ oLabel = jqTransformGetLabel(textarea);
211
+ oLabel && oLabel.click(function(){textarea.focus();});
212
+
213
+ var strTable = '<table cellspacing="0" cellpadding="0" border="0" class="jqTransformTextarea">';
214
+ strTable +='<tr><td id="jqTransformTextarea-tl"></td><td id="jqTransformTextarea-tm"></td><td id="jqTransformTextarea-tr"></td></tr>';
215
+ strTable +='<tr><td id="jqTransformTextarea-ml">&nbsp;</td><td id="jqTransformTextarea-mm"><div></div></td><td id="jqTransformTextarea-mr">&nbsp;</td></tr>';
216
+ strTable +='<tr><td id="jqTransformTextarea-bl"></td><td id="jqTransformTextarea-bm"></td><td id="jqTransformTextarea-br"></td></tr>';
217
+ strTable +='</table>';
218
+ var oTable = $(strTable)
219
+ .insertAfter(textarea)
220
+ .hover(function(){
221
+ !oTable.hasClass('jqTransformTextarea-focus') && oTable.addClass('jqTransformTextarea-hover');
222
+ },function(){
223
+ oTable.removeClass('jqTransformTextarea-hover');
224
+ })
225
+ ;
226
+
227
+ textarea
228
+ .focus(function(){oTable.removeClass('jqTransformTextarea-hover').addClass('jqTransformTextarea-focus');})
229
+ .blur(function(){oTable.removeClass('jqTransformTextarea-focus');})
230
+ .appendTo($('#jqTransformTextarea-mm div',oTable))
231
+ ;
232
+ this.oTable = oTable;
233
+ if($.browser.safari){
234
+ $('#jqTransformTextarea-mm',oTable)
235
+ .addClass('jqTransformSafariTextarea')
236
+ .find('div')
237
+ .css('height',textarea.height())
238
+ .css('width',textarea.width())
239
+ ;
240
+ }
241
+ });
242
+ };
243
+
244
+ /***************************
245
+ Select
246
+ ***************************/
247
+ $.fn.jqTransSelect = function(){
248
+ return this.each(function(index){
249
+ var $select = $(this);
250
+
251
+ if($select.hasClass('jqTransformHidden')) {return;}
252
+ if($select.attr('multiple')) {return;}
253
+
254
+ var oLabel = jqTransformGetLabel($select);
255
+ /* First thing we do is Wrap it */
256
+ var $wrapper = $select
257
+ .addClass('jqTransformHidden')
258
+ .wrap('<div class="jqTransformSelectWrapper"></div>')
259
+ .parent()
260
+ .css({zIndex: 10-index})
261
+ ;
262
+
263
+ /* Now add the html for the select */
264
+ $wrapper.prepend('<div><span></span><a href="#" class="jqTransformSelectOpen"></a></div><ul></ul>');
265
+ var $ul = $('ul', $wrapper).css('width',$select.width()).hide();
266
+ /* Now we add the options */
267
+ $('option', this).each(function(i){
268
+ var oLi = $('<li><a href="#" index="'+ i +'">'+ $(this).html() +'</a></li>');
269
+ $ul.append(oLi);
270
+ });
271
+
272
+ /* Add click handler to the a */
273
+ $ul.find('a').click(function(){
274
+ $('a.selected', $wrapper).removeClass('selected');
275
+ $(this).addClass('selected');
276
+ /* Fire the onchange event */
277
+ if ($select[0].selectedIndex != $(this).attr('index')) {
278
+ $select[0].selectedIndex = $(this).attr('index');
279
+ $($select[0]).trigger('change');
280
+ }
281
+ $select[0].selectedIndex = $(this).attr('index');
282
+ $('span:eq(0)', $wrapper).html($(this).html());
283
+ $ul.hide();
284
+ return false;
285
+ });
286
+ /* Set the default */
287
+ $('a:eq('+ this.selectedIndex +')', $ul).click();
288
+ $('span:first', $wrapper).click(function(){$("a.jqTransformSelectOpen",$wrapper).trigger('click');});
289
+ oLabel && oLabel.click(function(){$("a.jqTransformSelectOpen",$wrapper).trigger('click');});
290
+ this.oLabel = oLabel;
291
+
292
+ /* Apply the click handler to the Open */
293
+ var oLinkOpen = $('a.jqTransformSelectOpen', $wrapper)
294
+ .click(function(){
295
+ //Check if box is already open to still allow toggle, but close all other selects
296
+ if( $ul.css('display') == 'none' ) {jqTransformHideSelect();}
297
+ if($select.attr('disabled')){return false;}
298
+
299
+ $ul.slideToggle('fast', function(){
300
+ var offSet = ($('a.selected', $ul).offset().top - $ul.offset().top);
301
+ $ul.animate({scrollTop: offSet});
302
+ });
303
+ return false;
304
+ })
305
+ ;
306
+
307
+ // Set the new width
308
+ var iSelectWidth = $select.outerWidth();
309
+ var oSpan = $('span:first',$wrapper);
310
+ var newWidth = (iSelectWidth > oSpan.innerWidth())?iSelectWidth+oLinkOpen.outerWidth():$wrapper.width();
311
+ $wrapper.css('width',newWidth);
312
+ $ul.css('width',newWidth-2);
313
+ oSpan.css({width:iSelectWidth});
314
+
315
+ // Calculate the height if necessary, less elements that the default height
316
+ //show the ul to calculate the block, if ul is not displayed li height value is 0
317
+ $ul.css({display:'block',visibility:'hidden'});
318
+ var iSelectHeight = ($('li',$ul).length)*($('li:first',$ul).height());//+1 else bug ff
319
+ (iSelectHeight < $ul.height()) && $ul.css({height:iSelectHeight,'overflow':'scroll'});//hidden else bug with ff
320
+ $ul.css({display:'none',visibility:'visible'});
321
+
322
+ });
323
+ };
324
+ $.fn.jqTransform = function(options){
325
+ var opt = $.extend({},defaultOptions,options);
326
+
327
+ /* each form */
328
+ return this.each(function(){
329
+ var selfForm = $(this);
330
+ if(selfForm.hasClass('jqtransformdone')) {return;}
331
+ selfForm.addClass('jqtransformdone');
332
+
333
+ $('input:checkbox', this).jqTransCheckBox();
334
+ $('input:radio', this).jqTransRadio();
335
+
336
+ if( $('select', this).jqTransSelect().length > 0 ){jqTransformAddDocumentListener();}
337
+ selfForm.bind('reset',function(){var action = function(){jqTransformReset(this);}; window.setTimeout(action, 10);});
338
+
339
+ //preloading dont needed anymore since normal, focus and hover image are the same one
340
+ /*if(opt.preloadImg && !jqTransformImgPreloaded){
341
+ jqTransformImgPreloaded = true;
342
+ var oInputText = $('input:text:first', selfForm);
343
+ if(oInputText.length > 0){
344
+ //pour ie on eleve les ""
345
+ var strWrapperImgUrl = oInputText.get(0).wrapper.css('background-image');
346
+ jqTransformPreloadHoverFocusImg(strWrapperImgUrl);
347
+ var strInnerImgUrl = $('div.jqTransformInputInner',$(oInputText.get(0).wrapper)).css('background-image');
348
+ jqTransformPreloadHoverFocusImg(strInnerImgUrl);
349
+ }
350
+
351
+ var oTextarea = $('textarea',selfForm);
352
+ if(oTextarea.length > 0){
353
+ var oTable = oTextarea.get(0).oTable;
354
+ $('td',oTable).each(function(){
355
+ var strImgBack = $(this).css('background-image');
356
+ jqTransformPreloadHoverFocusImg(strImgBack);
357
+ });
358
+ }
359
+ }*/
360
+
361
+
362
+ }); /* End Form each */
363
+
364
+ };/* End the Plugin */
365
+
366
+ })(jQuery);
@@ -0,0 +1,30 @@
1
+ function groupsAutocomplete() {
2
+ $.get('/admin/groups.json', function(data) {
3
+ $("input.groups-completer").autocomplete({
4
+ minLength: 0,
5
+ source: function(request, response) {
6
+ // delegate back to autocomplete, but extract the last term
7
+ response($.ui.autocomplete.filter(data, request.term.split(/,\s*/).pop()));
8
+ },
9
+ focus: function() {
10
+ // prevent value inserted on focus
11
+ return false;
12
+ },
13
+ select: function(event, ui) {
14
+ var terms = this.value.split(/,\s*/);
15
+ // remove the current input
16
+ terms.pop();
17
+ // add the selected item
18
+ terms.push( ui.item.value );
19
+ // add placeholder to get the comma-and-space at the end
20
+ terms.push("");
21
+ this.value = terms.join(", ");
22
+ return false;
23
+ }
24
+ });
25
+ });
26
+ }
27
+
28
+ $(function() {
29
+ groupsAutocomplete();
30
+ });