alfa 0.0.1.pre → 0.0.2.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. data/assets/css/960gs/960.css +653 -0
  2. data/assets/css/960gs/960_12_col.css +357 -0
  3. data/assets/css/960gs/960_12_col_rtl.css +357 -0
  4. data/assets/css/960gs/960_16_col.css +446 -0
  5. data/assets/css/960gs/960_16_col_rtl.css +446 -0
  6. data/assets/css/960gs/960_24_col.css +621 -0
  7. data/assets/css/960gs/960_24_col_rtl.css +621 -0
  8. data/assets/css/960gs/960_rtl.css +653 -0
  9. data/assets/css/960gs/demo.css +55 -0
  10. data/assets/css/960gs/min/960.css +1 -0
  11. data/assets/css/960gs/min/960_12_col.css +1 -0
  12. data/assets/css/960gs/min/960_12_col_rtl.css +1 -0
  13. data/assets/css/960gs/min/960_16_col.css +1 -0
  14. data/assets/css/960gs/min/960_16_col_rtl.css +1 -0
  15. data/assets/css/960gs/min/960_24_col.css +1 -0
  16. data/assets/css/960gs/min/960_24_col_rtl.css +1 -0
  17. data/assets/css/960gs/min/960_rtl.css +1 -0
  18. data/assets/css/960gs/min/reset.css +1 -0
  19. data/assets/css/960gs/min/reset_rtl.css +1 -0
  20. data/assets/css/960gs/min/text.css +1 -0
  21. data/assets/css/960gs/min/text_rtl.css +1 -0
  22. data/assets/css/960gs/reset.css +211 -0
  23. data/assets/css/960gs/reset_rtl.css +211 -0
  24. data/assets/css/960gs/text.css +86 -0
  25. data/assets/css/960gs/text_rtl.css +86 -0
  26. data/assets/js/jquery/jquery-1.3.2.js +4376 -0
  27. data/assets/js/jquery/jquery-1.3.2.min.js +19 -0
  28. data/assets/js/jquery/jquery-1.4.2.js +6240 -0
  29. data/assets/js/jquery/jquery-1.4.2.min.js +154 -0
  30. data/assets/js/jquery/jquery-1.4.4.js +7179 -0
  31. data/assets/js/jquery/jquery-1.4.4.min.js +167 -0
  32. data/assets/js/jquery/jquery-1.8.2.js +9440 -0
  33. data/assets/js/jquery/jquery-1.8.2.min.js +2 -0
  34. data/assets/js/jquery/jquery-latest.js +2 -0
  35. data/assets/js/jquery/plugins/corner.js +178 -0
  36. data/assets/js/jquery/plugins/corner_12x.js +503 -0
  37. data/assets/js/jquery/plugins/datepick/calendar-green.gif +0 -0
  38. data/assets/js/jquery/plugins/datepick/calendar.gif +0 -0
  39. data/assets/js/jquery/plugins/datepick/datepickBasics.html +34 -0
  40. data/assets/js/jquery/plugins/datepick/flora.datepick.css +221 -0
  41. data/assets/js/jquery/plugins/datepick/humanity.datepick.css +192 -0
  42. data/assets/js/jquery/plugins/datepick/jquery.datepick-ar.js +27 -0
  43. data/assets/js/jquery/plugins/datepick/jquery.datepick-az.js +26 -0
  44. data/assets/js/jquery/plugins/datepick/jquery.datepick-bg.js +26 -0
  45. data/assets/js/jquery/plugins/datepick/jquery.datepick-ca.js +26 -0
  46. data/assets/js/jquery/plugins/datepick/jquery.datepick-cs.js +26 -0
  47. data/assets/js/jquery/plugins/datepick/jquery.datepick-da.js +26 -0
  48. data/assets/js/jquery/plugins/datepick/jquery.datepick-de.js +26 -0
  49. data/assets/js/jquery/plugins/datepick/jquery.datepick-el.js +26 -0
  50. data/assets/js/jquery/plugins/datepick/jquery.datepick-eo.js +26 -0
  51. data/assets/js/jquery/plugins/datepick/jquery.datepick-es.js +26 -0
  52. data/assets/js/jquery/plugins/datepick/jquery.datepick-et.js +26 -0
  53. data/assets/js/jquery/plugins/datepick/jquery.datepick-fa.js +26 -0
  54. data/assets/js/jquery/plugins/datepick/jquery.datepick-fi.js +26 -0
  55. data/assets/js/jquery/plugins/datepick/jquery.datepick-fr.js +26 -0
  56. data/assets/js/jquery/plugins/datepick/jquery.datepick-he.js +26 -0
  57. data/assets/js/jquery/plugins/datepick/jquery.datepick-hr.js +26 -0
  58. data/assets/js/jquery/plugins/datepick/jquery.datepick-hu.js +26 -0
  59. data/assets/js/jquery/plugins/datepick/jquery.datepick-hy.js +26 -0
  60. data/assets/js/jquery/plugins/datepick/jquery.datepick-id.js +26 -0
  61. data/assets/js/jquery/plugins/datepick/jquery.datepick-is.js +26 -0
  62. data/assets/js/jquery/plugins/datepick/jquery.datepick-it.js +26 -0
  63. data/assets/js/jquery/plugins/datepick/jquery.datepick-ja.js +26 -0
  64. data/assets/js/jquery/plugins/datepick/jquery.datepick-ko.js +26 -0
  65. data/assets/js/jquery/plugins/datepick/jquery.datepick-lt.js +26 -0
  66. data/assets/js/jquery/plugins/datepick/jquery.datepick-lv.js +26 -0
  67. data/assets/js/jquery/plugins/datepick/jquery.datepick-ms.js +26 -0
  68. data/assets/js/jquery/plugins/datepick/jquery.datepick-nl.js +26 -0
  69. data/assets/js/jquery/plugins/datepick/jquery.datepick-no.js +26 -0
  70. data/assets/js/jquery/plugins/datepick/jquery.datepick-pl.js +26 -0
  71. data/assets/js/jquery/plugins/datepick/jquery.datepick-pt-BR.js +26 -0
  72. data/assets/js/jquery/plugins/datepick/jquery.datepick-ro.js +26 -0
  73. data/assets/js/jquery/plugins/datepick/jquery.datepick-ru.js +26 -0
  74. data/assets/js/jquery/plugins/datepick/jquery.datepick-sk.js +26 -0
  75. data/assets/js/jquery/plugins/datepick/jquery.datepick-sl.js +27 -0
  76. data/assets/js/jquery/plugins/datepick/jquery.datepick-sq.js +26 -0
  77. data/assets/js/jquery/plugins/datepick/jquery.datepick-sr-SR.js +25 -0
  78. data/assets/js/jquery/plugins/datepick/jquery.datepick-sr.js +25 -0
  79. data/assets/js/jquery/plugins/datepick/jquery.datepick-sv.js +26 -0
  80. data/assets/js/jquery/plugins/datepick/jquery.datepick-th.js +26 -0
  81. data/assets/js/jquery/plugins/datepick/jquery.datepick-tr.js +26 -0
  82. data/assets/js/jquery/plugins/datepick/jquery.datepick-uk.js +26 -0
  83. data/assets/js/jquery/plugins/datepick/jquery.datepick-validation.js +141 -0
  84. data/assets/js/jquery/plugins/datepick/jquery.datepick-validation.min.js +8 -0
  85. data/assets/js/jquery/plugins/datepick/jquery.datepick-validation.pack.js +8 -0
  86. data/assets/js/jquery/plugins/datepick/jquery.datepick-zh-CN.js +26 -0
  87. data/assets/js/jquery/plugins/datepick/jquery.datepick-zh-TW.js +26 -0
  88. data/assets/js/jquery/plugins/datepick/jquery.datepick.css +216 -0
  89. data/assets/js/jquery/plugins/datepick/jquery.datepick.ent +76 -0
  90. data/assets/js/jquery/plugins/datepick/jquery.datepick.js +1974 -0
  91. data/assets/js/jquery/plugins/datepick/jquery.datepick.min.js +8 -0
  92. data/assets/js/jquery/plugins/datepick/jquery.datepick.pack.js +8 -0
  93. data/assets/js/jquery/plugins/datepick/redmond.datepick.css +204 -0
  94. data/assets/js/jquery/plugins/datepick/smoothness.datepick.css +205 -0
  95. data/assets/js/jquery/plugins/fancybox/blank.gif +0 -0
  96. data/assets/js/jquery/plugins/fancybox/fancy_close.png +0 -0
  97. data/assets/js/jquery/plugins/fancybox/fancy_loading.png +0 -0
  98. data/assets/js/jquery/plugins/fancybox/fancy_nav_left.png +0 -0
  99. data/assets/js/jquery/plugins/fancybox/fancy_nav_right.png +0 -0
  100. data/assets/js/jquery/plugins/fancybox/fancy_shadow_e.png +0 -0
  101. data/assets/js/jquery/plugins/fancybox/fancy_shadow_n.png +0 -0
  102. data/assets/js/jquery/plugins/fancybox/fancy_shadow_ne.png +0 -0
  103. data/assets/js/jquery/plugins/fancybox/fancy_shadow_nw.png +0 -0
  104. data/assets/js/jquery/plugins/fancybox/fancy_shadow_s.png +0 -0
  105. data/assets/js/jquery/plugins/fancybox/fancy_shadow_se.png +0 -0
  106. data/assets/js/jquery/plugins/fancybox/fancy_shadow_sw.png +0 -0
  107. data/assets/js/jquery/plugins/fancybox/fancy_shadow_w.png +0 -0
  108. data/assets/js/jquery/plugins/fancybox/fancy_title_left.png +0 -0
  109. data/assets/js/jquery/plugins/fancybox/fancy_title_main.png +0 -0
  110. data/assets/js/jquery/plugins/fancybox/fancy_title_over.png +0 -0
  111. data/assets/js/jquery/plugins/fancybox/fancy_title_right.png +0 -0
  112. data/assets/js/jquery/plugins/fancybox/fancybox-x.png +0 -0
  113. data/assets/js/jquery/plugins/fancybox/fancybox-y.png +0 -0
  114. data/assets/js/jquery/plugins/fancybox/fancybox.png +0 -0
  115. data/assets/js/jquery/plugins/fancybox/jquery.easing-1.3.pack.js +72 -0
  116. data/assets/js/jquery/plugins/fancybox/jquery.fancybox-1.3.2.css +359 -0
  117. data/assets/js/jquery/plugins/fancybox/jquery.fancybox-1.3.2.js +1136 -0
  118. data/assets/js/jquery/plugins/fancybox/jquery.fancybox-1.3.2.pack.js +46 -0
  119. data/assets/js/jquery/plugins/fancybox/jquery.fancybox-1.3.4.css +359 -0
  120. data/assets/js/jquery/plugins/fancybox/jquery.fancybox-1.3.4.js +1156 -0
  121. data/assets/js/jquery/plugins/fancybox/jquery.fancybox-1.3.4.pack.js +46 -0
  122. data/assets/js/jquery/plugins/fancybox/jquery.mousewheel-3.0.4.pack.js +14 -0
  123. data/assets/js/jquery/plugins/jquery.cookie.js +96 -0
  124. data/assets/js/jquery/plugins/jquery.easing.1.3.js +205 -0
  125. data/assets/js/jquery/plugins/jquery.flash.js +288 -0
  126. data/assets/js/jquery/plugins/jquery.flash.min.js +1 -0
  127. data/assets/js/jquery/plugins/jquery.ifixpng.js +137 -0
  128. data/assets/js/jquery/plugins/jquery.mousewheel.js +84 -0
  129. data/assets/js/jquery/plugins/jquery.mousewheel.min.js +12 -0
  130. data/assets/js/jquery/plugins/jquery.numberformatter-1.2.2.js +486 -0
  131. data/assets/js/jquery/plugins/jquery.sifr.js +224 -0
  132. data/assets/js/jquery/plugins/jquery.sifr.min.js +1 -0
  133. data/assets/js/jquery/plugins/jquery.swfobject.js +1 -0
  134. data/assets/js/jquery/plugins/jquery.timers-1.1.2.js +147 -0
  135. data/assets/js/jquery/plugins/simplegallery.js +167 -0
  136. data/assets/js/jquery/ui/external/jquery.bgiframe-2.1.2.js +39 -0
  137. data/assets/js/jquery/ui/external/jquery.cookie.js +89 -0
  138. data/assets/js/jquery/ui/external/jquery.metadata.js +122 -0
  139. data/assets/js/jquery/ui/external/qunit.css +153 -0
  140. data/assets/js/jquery/ui/external/qunit.js +1261 -0
  141. data/assets/js/jquery/ui/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  142. data/assets/js/jquery/ui/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  143. data/assets/js/jquery/ui/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  144. data/assets/js/jquery/ui/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  145. data/assets/js/jquery/ui/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  146. data/assets/js/jquery/ui/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  147. data/assets/js/jquery/ui/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  148. data/assets/js/jquery/ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  149. data/assets/js/jquery/ui/images/ui-icons_222222_256x240.png +0 -0
  150. data/assets/js/jquery/ui/images/ui-icons_2e83ff_256x240.png +0 -0
  151. data/assets/js/jquery/ui/images/ui-icons_454545_256x240.png +0 -0
  152. data/assets/js/jquery/ui/images/ui-icons_888888_256x240.png +0 -0
  153. data/assets/js/jquery/ui/images/ui-icons_cd0a0a_256x240.png +0 -0
  154. data/assets/js/jquery/ui/jquery-ui-latest.min.js +778 -0
  155. data/assets/js/jquery/ui/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  156. data/assets/js/jquery/ui/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  157. data/assets/js/jquery/ui/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  158. data/assets/js/jquery/ui/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  159. data/assets/js/jquery/ui/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  160. data/assets/js/jquery/ui/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  161. data/assets/js/jquery/ui/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  162. data/assets/js/jquery/ui/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  163. data/assets/js/jquery/ui/themes/base/images/ui-icons_222222_256x240.png +0 -0
  164. data/assets/js/jquery/ui/themes/base/images/ui-icons_2e83ff_256x240.png +0 -0
  165. data/assets/js/jquery/ui/themes/base/images/ui-icons_454545_256x240.png +0 -0
  166. data/assets/js/jquery/ui/themes/base/images/ui-icons_888888_256x240.png +0 -0
  167. data/assets/js/jquery/ui/themes/base/images/ui-icons_cd0a0a_256x240.png +0 -0
  168. data/assets/js/jquery/ui/themes/base/jquery.ui.accordion.css +19 -0
  169. data/assets/js/jquery/ui/themes/base/jquery.ui.all.css +11 -0
  170. data/assets/js/jquery/ui/themes/base/jquery.ui.autocomplete.css +53 -0
  171. data/assets/js/jquery/ui/themes/base/jquery.ui.base.css +11 -0
  172. data/assets/js/jquery/ui/themes/base/jquery.ui.button.css +38 -0
  173. data/assets/js/jquery/ui/themes/base/jquery.ui.core.css +41 -0
  174. data/assets/js/jquery/ui/themes/base/jquery.ui.datepicker.css +68 -0
  175. data/assets/js/jquery/ui/themes/base/jquery.ui.dialog.css +21 -0
  176. data/assets/js/jquery/ui/themes/base/jquery.ui.progressbar.css +11 -0
  177. data/assets/js/jquery/ui/themes/base/jquery.ui.resizable.css +20 -0
  178. data/assets/js/jquery/ui/themes/base/jquery.ui.selectable.css +10 -0
  179. data/assets/js/jquery/ui/themes/base/jquery.ui.slider.css +24 -0
  180. data/assets/js/jquery/ui/themes/base/jquery.ui.tabs.css +18 -0
  181. data/assets/js/jquery/ui/themes/base/jquery.ui.theme.css +252 -0
  182. data/assets/js/jquery/ui/themes/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  183. data/assets/js/jquery/ui/themes/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  184. data/assets/js/jquery/ui/themes/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  185. data/assets/js/jquery/ui/themes/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  186. data/assets/js/jquery/ui/themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  187. data/assets/js/jquery/ui/themes/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  188. data/assets/js/jquery/ui/themes/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  189. data/assets/js/jquery/ui/themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  190. data/assets/js/jquery/ui/themes/smoothness/images/ui-icons_222222_256x240.png +0 -0
  191. data/assets/js/jquery/ui/themes/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  192. data/assets/js/jquery/ui/themes/smoothness/images/ui-icons_454545_256x240.png +0 -0
  193. data/assets/js/jquery/ui/themes/smoothness/images/ui-icons_888888_256x240.png +0 -0
  194. data/assets/js/jquery/ui/themes/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  195. data/assets/js/jquery/ui/themes/smoothness/jquery-ui-1.8.6.custom.css +572 -0
  196. data/assets/js/jquery/ui/themes/smoothness/jquery.ui.accordion.css +19 -0
  197. data/assets/js/jquery/ui/themes/smoothness/jquery.ui.all.css +11 -0
  198. data/assets/js/jquery/ui/themes/smoothness/jquery.ui.autocomplete.css +53 -0
  199. data/assets/js/jquery/ui/themes/smoothness/jquery.ui.base.css +11 -0
  200. data/assets/js/jquery/ui/themes/smoothness/jquery.ui.button.css +38 -0
  201. data/assets/js/jquery/ui/themes/smoothness/jquery.ui.core.css +41 -0
  202. data/assets/js/jquery/ui/themes/smoothness/jquery.ui.datepicker.css +68 -0
  203. data/assets/js/jquery/ui/themes/smoothness/jquery.ui.dialog.css +21 -0
  204. data/assets/js/jquery/ui/themes/smoothness/jquery.ui.progressbar.css +11 -0
  205. data/assets/js/jquery/ui/themes/smoothness/jquery.ui.resizable.css +20 -0
  206. data/assets/js/jquery/ui/themes/smoothness/jquery.ui.selectable.css +10 -0
  207. data/assets/js/jquery/ui/themes/smoothness/jquery.ui.slider.css +24 -0
  208. data/assets/js/jquery/ui/themes/smoothness/jquery.ui.tabs.css +18 -0
  209. data/assets/js/jquery/ui/themes/smoothness/jquery.ui.theme.css +254 -0
  210. data/bin/alfa +15 -0
  211. data/lib/alfa/application.rb +36 -0
  212. data/lib/alfa/cli_application.rb +11 -3
  213. data/lib/alfa/commands/new.rb +4 -0
  214. data/lib/alfa/config.rb +11 -0
  215. data/lib/alfa/controller.rb +1 -1
  216. data/lib/alfa/database/mysql.rb +60 -8
  217. data/lib/alfa/database.rb +2 -1
  218. data/lib/alfa/logger.rb +38 -0
  219. data/lib/alfa/models/base.rb +1 -1
  220. data/lib/alfa/models/base_sql.rb +1 -1
  221. data/lib/alfa/models/dummy.rb +1 -1
  222. data/lib/alfa/models/mysql.rb +36 -26
  223. data/lib/alfa/models.rb +1 -1
  224. data/lib/alfa/query_logger.rb +29 -0
  225. data/lib/alfa/router.rb +155 -0
  226. data/lib/alfa/support.rb +58 -2
  227. data/lib/alfa/tfile.rb +97 -0
  228. data/lib/alfa/web_application.rb +106 -85
  229. data/lib/alfa.rb +1 -1
  230. data/lib/ruty/bugfix.rb +21 -0
  231. data/lib/ruty/tags/resources.rb +45 -2
  232. data/lib/ruty/upgrade.rb +61 -0
  233. data/test/data/test_router/config/routes.rb +4 -0
  234. data/test/test_alfa.rb +1 -52
  235. data/test/test_router.rb +132 -0
  236. data/test/test_support.rb +26 -0
  237. data/test/test_tfile.rb +186 -0
  238. metadata +259 -100
@@ -0,0 +1,288 @@
1
+ /**
2
+ * Flash (http://jquery.lukelutman.com/plugins/flash)
3
+ * A jQuery plugin for embedding Flash movies.
4
+ *
5
+ * Version 1.0
6
+ * November 9th, 2006
7
+ *
8
+ * Copyright (c) 2006 Luke Lutman (http://www.lukelutman.com)
9
+ * Dual licensed under the MIT and GPL licenses.
10
+ * http://www.opensource.org/licenses/mit-license.php
11
+ * http://www.opensource.org/licenses/gpl-license.php
12
+ *
13
+ * Inspired by:
14
+ * SWFObject (http://blog.deconcept.com/swfobject/)
15
+ * UFO (http://www.bobbyvandersluis.com/ufo/)
16
+ * sIFR (http://www.mikeindustries.com/sifr/)
17
+ *
18
+ * IMPORTANT:
19
+ * The packed version of jQuery breaks ActiveX control
20
+ * activation in Internet Explorer. Use JSMin to minifiy
21
+ * jQuery (see: http://jquery.lukelutman.com/plugins/flash#activex).
22
+ *
23
+ **/
24
+ (function(){
25
+
26
+ var $$;
27
+
28
+ /**
29
+ *
30
+ * @desc Replace matching elements with a flash movie.
31
+ * @author Luke Lutman
32
+ * @version 1.0.1
33
+ *
34
+ * @name flash
35
+ * @param Hash htmlOptions Options for the embed/object tag.
36
+ * @param Hash pluginOptions Options for detecting/updating the Flash plugin (optional).
37
+ * @param Function replace Custom block called for each matched element if flash is installed (optional).
38
+ * @param Function update Custom block called for each matched if flash isn't installed (optional).
39
+ * @type jQuery
40
+ *
41
+ * @cat plugins/flash
42
+ *
43
+ * @example $('#hello').flash({ src: 'hello.swf' });
44
+ * @desc Embed a Flash movie.
45
+ *
46
+ * @example $('#hello').flash({ src: 'hello.swf' }, { version: 8 });
47
+ * @desc Embed a Flash 8 movie.
48
+ *
49
+ * @example $('#hello').flash({ src: 'hello.swf' }, { expressInstall: true });
50
+ * @desc Embed a Flash movie using Express Install if flash isn't installed.
51
+ *
52
+ * @example $('#hello').flash({ src: 'hello.swf' }, { update: false });
53
+ * @desc Embed a Flash movie, don't show an update message if Flash isn't installed.
54
+ *
55
+ **/
56
+ $$ = jQuery.fn.flash = function(htmlOptions, pluginOptions, replace, update) {
57
+
58
+ // Set the default block.
59
+ var block = replace || $$.replace;
60
+
61
+ // Merge the default and passed plugin options.
62
+ pluginOptions = $$.copy($$.pluginOptions, pluginOptions);
63
+
64
+ // Detect Flash.
65
+ if(!$$.hasFlash(pluginOptions.version)) {
66
+ // Use Express Install (if specified and Flash plugin 6,0,65 or higher is installed).
67
+ if(pluginOptions.expressInstall && $$.hasFlash(6,0,65)) {
68
+ // Add the necessary flashvars (merged later).
69
+ var expressInstallOptions = {
70
+ flashvars: {
71
+ MMredirectURL: location,
72
+ MMplayerType: 'PlugIn',
73
+ MMdoctitle: jQuery('title').text()
74
+ }
75
+ };
76
+ // Ask the user to update (if specified).
77
+ } else if (pluginOptions.update) {
78
+ // Change the block to insert the update message instead of the flash movie.
79
+ block = update || $$.update;
80
+ // Fail
81
+ } else {
82
+ // The required version of flash isn't installed.
83
+ // Express Install is turned off, or flash 6,0,65 isn't installed.
84
+ // Update is turned off.
85
+ // Return without doing anything.
86
+ return this;
87
+ }
88
+ }
89
+
90
+ // Merge the default, express install and passed html options.
91
+ htmlOptions = $$.copy($$.htmlOptions, expressInstallOptions, htmlOptions);
92
+
93
+ // Invoke $block (with a copy of the merged html options) for each element.
94
+ return this.each(function(){
95
+ block.call(this, $$.copy(htmlOptions));
96
+ });
97
+
98
+ };
99
+ /**
100
+ *
101
+ * @name flash.copy
102
+ * @desc Copy an arbitrary number of objects into a new object.
103
+ * @type Object
104
+ *
105
+ * @example $$.copy({ foo: 1 }, { bar: 2 });
106
+ * @result { foo: 1, bar: 2 };
107
+ *
108
+ **/
109
+ $$.copy = function() {
110
+ var options = {}, flashvars = {};
111
+ for(var i = 0; i < arguments.length; i++) {
112
+ var arg = arguments[i];
113
+ if(arg == undefined) continue;
114
+ jQuery.extend(options, arg);
115
+ // don't clobber one flash vars object with another
116
+ // merge them instead
117
+ if(arg.flashvars == undefined) continue;
118
+ jQuery.extend(flashvars, arg.flashvars);
119
+ }
120
+ options.flashvars = flashvars;
121
+ return options;
122
+ };
123
+ /*
124
+ * @name flash.hasFlash
125
+ * @desc Check if a specific version of the Flash plugin is installed
126
+ * @type Boolean
127
+ *
128
+ **/
129
+ $$.hasFlash = function() {
130
+ // look for a flag in the query string to bypass flash detection
131
+ if(/hasFlash\=true/.test(location)) return true;
132
+ if(/hasFlash\=false/.test(location)) return false;
133
+ var pv = $$.hasFlash.playerVersion().match(/\d+/g);
134
+ var rv = String([arguments[0], arguments[1], arguments[2]]).match(/\d+/g) || String($$.pluginOptions.version).match(/\d+/g);
135
+ for(var i = 0; i < 3; i++) {
136
+ pv[i] = parseInt(pv[i] || 0);
137
+ rv[i] = parseInt(rv[i] || 0);
138
+ // player is less than required
139
+ if(pv[i] < rv[i]) return false;
140
+ // player is greater than required
141
+ if(pv[i] > rv[i]) return true;
142
+ }
143
+ // major version, minor version and revision match exactly
144
+ return true;
145
+ };
146
+ /**
147
+ *
148
+ * @name flash.hasFlash.playerVersion
149
+ * @desc Get the version of the installed Flash plugin.
150
+ * @type String
151
+ *
152
+ **/
153
+ $$.hasFlash.playerVersion = function() {
154
+ // ie
155
+ try {
156
+ try {
157
+ // avoid fp6 minor version lookup issues
158
+ // see: http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/
159
+ var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6');
160
+ try { axo.AllowScriptAccess = 'always'; }
161
+ catch(e) { return '6,0,0'; }
162
+ } catch(e) {}
163
+ return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1];
164
+ // other browsers
165
+ } catch(e) {
166
+ try {
167
+ if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
168
+ return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1];
169
+ }
170
+ } catch(e) {}
171
+ }
172
+ return '0,0,0';
173
+ };
174
+ /**
175
+ *
176
+ * @name flash.htmlOptions
177
+ * @desc The default set of options for the object or embed tag.
178
+ *
179
+ **/
180
+ $$.htmlOptions = {
181
+ height: 240,
182
+ flashvars: {},
183
+ pluginspage: 'http://www.adobe.com/go/getflashplayer',
184
+ src: '#',
185
+ type: 'application/x-shockwave-flash',
186
+ width: 320
187
+ };
188
+ /**
189
+ *
190
+ * @name flash.pluginOptions
191
+ * @desc The default set of options for checking/updating the flash Plugin.
192
+ *
193
+ **/
194
+ $$.pluginOptions = {
195
+ expressInstall: false,
196
+ update: true,
197
+ version: '6.0.65'
198
+ };
199
+ /**
200
+ *
201
+ * @name flash.replace
202
+ * @desc The default method for replacing an element with a Flash movie.
203
+ *
204
+ **/
205
+ $$.replace = function(htmlOptions) {
206
+ this.innerHTML = '<div class="alt">'+this.innerHTML+'</div>';
207
+ jQuery(this)
208
+ .addClass('flash-replaced')
209
+ .prepend($$.transform(htmlOptions));
210
+ };
211
+ /**
212
+ *
213
+ * @name flash.update
214
+ * @desc The default method for replacing an element with an update message.
215
+ *
216
+ **/
217
+ $$.update = function(htmlOptions) {
218
+ var url = String(location).split('?');
219
+ url.splice(1,0,'?hasFlash=true&');
220
+ url = url.join('');
221
+ var msg = '<p>This content requires the Flash Player. <a href="http://www.adobe.com/go/getflashplayer">Download Flash Player</a>. Already have Flash Player? <a href="'+url+'">Click here.</a></p>';
222
+ this.innerHTML = '<span class="alt">'+this.innerHTML+'</span>';
223
+ jQuery(this)
224
+ .addClass('flash-update')
225
+ .prepend(msg);
226
+ };
227
+ /**
228
+ *
229
+ * @desc Convert a hash of html options to a string of attributes, using Function.apply().
230
+ * @example toAttributeString.apply(htmlOptions)
231
+ * @result foo="bar" foo="bar"
232
+ *
233
+ **/
234
+ function toAttributeString() {
235
+ var s = '';
236
+ for(var key in this)
237
+ if(typeof this[key] != 'function')
238
+ s += key+'="'+this[key]+'" ';
239
+ return s;
240
+ };
241
+ /**
242
+ *
243
+ * @desc Convert a hash of flashvars to a url-encoded string, using Function.apply().
244
+ * @example toFlashvarsString.apply(flashvarsObject)
245
+ * @result foo=bar&foo=bar
246
+ *
247
+ **/
248
+ function toFlashvarsString() {
249
+ var s = '';
250
+ for(var key in this)
251
+ if(typeof this[key] != 'function')
252
+ s += key+'='+encodeURIComponent(this[key])+'&';
253
+ return s.replace(/&$/, '');
254
+ };
255
+ /**
256
+ *
257
+ * @name flash.transform
258
+ * @desc Transform a set of html options into an embed tag.
259
+ * @type String
260
+ *
261
+ * @example $$.transform(htmlOptions)
262
+ * @result <embed src="foo.swf" ... />
263
+ *
264
+ * Note: The embed tag is NOT standards-compliant, but it
265
+ * works in all current browsers. flash.transform can be
266
+ * overwritten with a custom function to generate more
267
+ * standards-compliant markup.
268
+ *
269
+ **/
270
+ $$.transform = function(htmlOptions) {
271
+ htmlOptions.toString = toAttributeString;
272
+ if(htmlOptions.flashvars) htmlOptions.flashvars.toString = toFlashvarsString;
273
+ return '<embed ' + String(htmlOptions) + '/>';
274
+ };
275
+
276
+ /**
277
+ *
278
+ * Flash Player 9 Fix (http://blog.deconcept.com/2006/07/28/swfobject-143-released/)
279
+ *
280
+ **/
281
+ if (window.attachEvent) {
282
+ window.attachEvent("onbeforeunload", function(){
283
+ __flash_unloadHandler = function() {};
284
+ __flash_savedUnloadHandler = function() {};
285
+ });
286
+ }
287
+
288
+ })();
@@ -0,0 +1 @@
1
+ (function(){var $$;$$=jQuery.fn.flash=function(htmlOptions,pluginOptions,replace,update){var block=replace||$$.replace;pluginOptions=$$.copy($$.pluginOptions,pluginOptions);if(!$$.hasFlash(pluginOptions.version)){if(pluginOptions.expressInstall&&$$.hasFlash(6,0,65)){var expressInstallOptions={flashvars:{MMredirectURL:location,MMplayerType:'PlugIn',MMdoctitle:jQuery('title').text()}};}else if(pluginOptions.update){block=update||$$.update;}else{return this;}}htmlOptions=$$.copy($$.htmlOptions,expressInstallOptions,htmlOptions);return this.each(function(){block.call(this,$$.copy(htmlOptions));});};$$.copy=function(){var options={},flashvars={};for(var i=0;i<arguments.length;i++){var arg=arguments[i];if(arg==undefined)continue;jQuery.extend(options,arg);if(arg.flashvars==undefined)continue;jQuery.extend(flashvars,arg.flashvars);}options.flashvars=flashvars;return options;};$$.hasFlash=function(){if(/hasFlash\=true/.test(location))return true;if(/hasFlash\=false/.test(location))return false;var pv=$$.hasFlash.playerVersion().match(/\d+/g);var rv=String([arguments[0],arguments[1],arguments[2]]).match(/\d+/g)||String($$.pluginOptions.version).match(/\d+/g);for(var i=0;i<3;i++){pv[i]=parseInt(pv[i]||0);rv[i]=parseInt(rv[i]||0);if(pv[i]<rv[i])return false;if(pv[i]>rv[i])return true;}return true;};$$.hasFlash.playerVersion=function(){try{try{var axo=new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6');try{axo.AllowScriptAccess='always';}catch(e){return'6,0,0';}}catch(e){}return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g,',').match(/^,?(.+),?$/)[1];}catch(e){try{if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){return(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1];}}catch(e){}}return'0,0,0';};$$.htmlOptions={height:240,flashvars:{},pluginspage:'http://www.adobe.com/go/getflashplayer',src:'#',type:'application/x-shockwave-flash',width:320};$$.pluginOptions={expressInstall:false,update:true,version:'6.0.65'};$$.replace=function(htmlOptions){this.innerHTML='<div class="alt">'+this.innerHTML+'</div>';jQuery(this).addClass('flash-replaced').prepend($$.transform(htmlOptions));};$$.update=function(htmlOptions){var url=String(location).split('?');url.splice(1,0,'?hasFlash=true&');url=url.join('');var msg='<p>This content requires the Flash Player. <a href="http://www.adobe.com/go/getflashplayer">Download Flash Player</a>. Already have Flash Player? <a href="'+url+'">Click here.</a></p>';this.innerHTML='<span class="alt">'+this.innerHTML+'</span>';jQuery(this).addClass('flash-update').prepend(msg);};function toAttributeString(){var s='';for(var key in this)if(typeof this[key]!='function')s+=key+'="'+this[key]+'" ';return s;};function toFlashvarsString(){var s='';for(var key in this)if(typeof this[key]!='function')s+=key+'='+encodeURIComponent(this[key])+'&';return s.replace(/&$/,'');};$$.transform=function(htmlOptions){htmlOptions.toString=toAttributeString;if(htmlOptions.flashvars)htmlOptions.flashvars.toString=toFlashvarsString;return'<embed '+String(htmlOptions)+'/>';};if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};});}})();
@@ -0,0 +1,137 @@
1
+ /*
2
+ * jQuery ifixpng plugin
3
+ * (previously known as pngfix)
4
+ * Version 2.1 (23/04/2008)
5
+ * @requires jQuery v1.1.3 or above
6
+ *
7
+ * Examples at: http://jquery.khurshid.com
8
+ * Copyright (c) 2007 Kush M.
9
+ * Dual licensed under the MIT and GPL licenses:
10
+ * http://www.opensource.org/licenses/mit-license.php
11
+ * http://www.gnu.org/licenses/gpl.html
12
+ */
13
+
14
+ /**
15
+ *
16
+ * @example
17
+ *
18
+ * optional if location of pixel.gif if different to default which is images/pixel.gif
19
+ * $.ifixpng('media/pixel.gif');
20
+ *
21
+ * $('img[@src$=.png], #panel').ifixpng();
22
+ *
23
+ * @apply hack to all png images and #panel which icluded png img in its css
24
+ *
25
+ * @name ifixpng
26
+ * @type jQuery
27
+ * @cat Plugins/Image
28
+ * @return jQuery
29
+ * @author jQuery Community
30
+ */
31
+
32
+ (function($) {
33
+
34
+ /**
35
+ * helper variables and function
36
+ */
37
+ $.ifixpng = function(customPixel) {
38
+ $.ifixpng.pixel = customPixel;
39
+ };
40
+
41
+ $.ifixpng.getPixel = function() {
42
+ return $.ifixpng.pixel || 'images/pixel.gif';
43
+ };
44
+
45
+ var hack = {
46
+ ltie7 : $.browser.msie && $.browser.version < 7,
47
+ filter : function(src) {
48
+ return "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=scale,src='"+src+"')";
49
+ }
50
+ };
51
+
52
+ /**
53
+ * Applies ie png hack to selected dom elements
54
+ *
55
+ * $('img[@src$=.png]').ifixpng();
56
+ * @desc apply hack to all images with png extensions
57
+ *
58
+ * $('#panel, img[@src$=.png]').ifixpng();
59
+ * @desc apply hack to element #panel and all images with png extensions
60
+ *
61
+ * @name ifixpng
62
+ */
63
+
64
+ $.fn.ifixpng = hack.ltie7 ? function() {
65
+ return this.each(function() {
66
+ var $$ = $(this);
67
+ // in case rewriting urls
68
+ var base = $('base').attr('href');
69
+ if (base) {
70
+ // remove anything after the last '/'
71
+ base = base.replace(/\/[^\/]+$/,'/');
72
+ }
73
+ if ($$.is('img') || $$.is('input')) { // hack image tags present in dom
74
+ if ($$.attr('src')) {
75
+ if ($$.attr('src').match(/.*\.png([?].*)?$/i)) { // make sure it is png image
76
+ // use source tag value if set
77
+ var source = (base && $$.attr('src').search(/^(\/|http:)/i)) ? base + $$.attr('src') : $$.attr('src');
78
+ // apply filter
79
+ $$.css({filter:hack.filter(source), width:$$.width(), height:$$.height()})
80
+ .attr({src:$.ifixpng.getPixel()})
81
+ .positionFix();
82
+ }
83
+ }
84
+ } else { // hack png css properties present inside css
85
+ var image = $$.css('backgroundImage');
86
+ if (image.match(/^url\(["']?(.*\.png([?].*)?)["']?\)$/i)) {
87
+ image = RegExp.$1;
88
+ image = (base && image.substring(0,1)!='/') ? base + image : image;
89
+ $$.css({backgroundImage:'none', filter:hack.filter(image)})
90
+ .children().children().positionFix();
91
+ }
92
+ }
93
+ });
94
+ } : function() { return this; };
95
+
96
+ /**
97
+ * Removes any png hack that may have been applied previously
98
+ *
99
+ * $('img[@src$=.png]').iunfixpng();
100
+ * @desc revert hack on all images with png extensions
101
+ *
102
+ * $('#panel, img[@src$=.png]').iunfixpng();
103
+ * @desc revert hack on element #panel and all images with png extensions
104
+ *
105
+ * @name iunfixpng
106
+ */
107
+
108
+ $.fn.iunfixpng = hack.ltie7 ? function() {
109
+ return this.each(function() {
110
+ var $$ = $(this);
111
+ var src = $$.css('filter');
112
+ if (src.match(/src=["']?(.*\.png([?].*)?)["']?/i)) { // get img source from filter
113
+ src = RegExp.$1;
114
+ if ($$.is('img') || $$.is('input')) {
115
+ $$.attr({src:src}).css({filter:''});
116
+ } else {
117
+ $$.css({filter:'', background:'url('+src+')'});
118
+ }
119
+ }
120
+ });
121
+ } : function() { return this; };
122
+
123
+ /**
124
+ * positions selected item relatively
125
+ */
126
+
127
+ $.fn.positionFix = function() {
128
+ return this.each(function() {
129
+ var $$ = $(this);
130
+ var position = $$.css('position');
131
+ if (position != 'absolute' && position != 'relative') {
132
+ $$.css({position:'relative'});
133
+ }
134
+ });
135
+ };
136
+
137
+ })(jQuery);
@@ -0,0 +1,84 @@
1
+ /*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
2
+ * Licensed under the MIT License (LICENSE.txt).
3
+ *
4
+ * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
5
+ * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
6
+ * Thanks to: Seamus Leahy for adding deltaX and deltaY
7
+ *
8
+ * Version: 3.0.6
9
+ *
10
+ * Requires: 1.2.2+
11
+ */
12
+
13
+ (function($) {
14
+
15
+ var types = ['DOMMouseScroll', 'mousewheel'];
16
+
17
+ if ($.event.fixHooks) {
18
+ for ( var i=types.length; i; ) {
19
+ $.event.fixHooks[ types[--i] ] = $.event.mouseHooks;
20
+ }
21
+ }
22
+
23
+ $.event.special.mousewheel = {
24
+ setup: function() {
25
+ if ( this.addEventListener ) {
26
+ for ( var i=types.length; i; ) {
27
+ this.addEventListener( types[--i], handler, false );
28
+ }
29
+ } else {
30
+ this.onmousewheel = handler;
31
+ }
32
+ },
33
+
34
+ teardown: function() {
35
+ if ( this.removeEventListener ) {
36
+ for ( var i=types.length; i; ) {
37
+ this.removeEventListener( types[--i], handler, false );
38
+ }
39
+ } else {
40
+ this.onmousewheel = null;
41
+ }
42
+ }
43
+ };
44
+
45
+ $.fn.extend({
46
+ mousewheel: function(fn) {
47
+ return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel");
48
+ },
49
+
50
+ unmousewheel: function(fn) {
51
+ return this.unbind("mousewheel", fn);
52
+ }
53
+ });
54
+
55
+
56
+ function handler(event) {
57
+ var orgEvent = event || window.event, args = [].slice.call( arguments, 1 ), delta = 0, returnValue = true, deltaX = 0, deltaY = 0;
58
+ event = $.event.fix(orgEvent);
59
+ event.type = "mousewheel";
60
+
61
+ // Old school scrollwheel delta
62
+ if ( orgEvent.wheelDelta ) { delta = orgEvent.wheelDelta/120; }
63
+ if ( orgEvent.detail ) { delta = -orgEvent.detail/3; }
64
+
65
+ // New school multidimensional scroll (touchpads) deltas
66
+ deltaY = delta;
67
+
68
+ // Gecko
69
+ if ( orgEvent.axis !== undefined && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {
70
+ deltaY = 0;
71
+ deltaX = -1*delta;
72
+ }
73
+
74
+ // Webkit
75
+ if ( orgEvent.wheelDeltaY !== undefined ) { deltaY = orgEvent.wheelDeltaY/120; }
76
+ if ( orgEvent.wheelDeltaX !== undefined ) { deltaX = -1*orgEvent.wheelDeltaX/120; }
77
+
78
+ // Add event and delta to the front of the arguments
79
+ args.unshift(event, delta, deltaX, deltaY);
80
+
81
+ return ($.event.dispatch || $.event.handle).apply(this, args);
82
+ }
83
+
84
+ })(jQuery);
@@ -0,0 +1,12 @@
1
+ /*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
2
+ * Licensed under the MIT License (LICENSE.txt).
3
+ *
4
+ * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
5
+ * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
6
+ * Thanks to: Seamus Leahy for adding deltaX and deltaY
7
+ *
8
+ * Version: 3.0.6
9
+ *
10
+ * Requires: 1.2.2+
11
+ */
12
+ (function(a){function d(b){var c=b||window.event,d=[].slice.call(arguments,1),e=0,f=!0,g=0,h=0;return b=a.event.fix(c),b.type="mousewheel",c.wheelDelta&&(e=c.wheelDelta/120),c.detail&&(e=-c.detail/3),h=e,c.axis!==undefined&&c.axis===c.HORIZONTAL_AXIS&&(h=0,g=-1*e),c.wheelDeltaY!==undefined&&(h=c.wheelDeltaY/120),c.wheelDeltaX!==undefined&&(g=-1*c.wheelDeltaX/120),d.unshift(b,e,g,h),(a.event.dispatch||a.event.handle).apply(this,d)}var b=["DOMMouseScroll","mousewheel"];if(a.event.fixHooks)for(var c=b.length;c;)a.event.fixHooks[b[--c]]=a.event.mouseHooks;a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=b.length;a;)this.addEventListener(b[--a],d,!1);else this.onmousewheel=d},teardown:function(){if(this.removeEventListener)for(var a=b.length;a;)this.removeEventListener(b[--a],d,!1);else this.onmousewheel=null}},a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery)