compass-jquery-plugin 0.3.2.8 → 0.3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +24 -6
- data/VERSION.yml +3 -3
- data/lib/jquery/gridify/grid_column.rb +6 -6
- data/lib/jquery/gridify/grid_options.rb +4 -4
- data/lib/jquery/mark_it_up.rb +2 -0
- data/lib/jquery/mobile.rb +0 -1
- data/templates/dynatree/jquery.dynatree.js +2896 -2880
- data/templates/dynatree/jquery.dynatree.min.js +55 -54
- data/templates/dynatree/jquery/dynatree/aero.scss +4 -2
- data/templates/dynatree/jquery/dynatree/aqua.scss +4 -2
- data/templates/dynatree/jquery/dynatree/crystal.scss +4 -2
- data/templates/dynatree/jquery/dynatree/xp.scss +5 -3
- data/templates/emulators/emulators/bb.playbook.landscape.png +0 -0
- data/templates/emulators/emulators/bb.playbook.landscape.scss +18 -0
- data/templates/emulators/emulators/bb.playbook.portrait.png +0 -0
- data/templates/emulators/emulators/bb.playbook.portrait.scss +18 -0
- data/templates/emulators/emulators/{blackberry.torch.landscape.png → bb.torch.landscape.png} +0 -0
- data/templates/emulators/emulators/{blackberry.torch.landscape.scss → bb.torch.landscape.scss} +1 -3
- data/templates/emulators/emulators/{blackberry.torch.portrait.png → bb.torch.portrait.png} +0 -0
- data/templates/emulators/emulators/{blackberry.torch.portrait.scss → bb.torch.portrait.scss} +1 -3
- data/templates/emulators/emulators/galaxy.ace.landscape.png +0 -0
- data/templates/emulators/emulators/galaxy.ace.landscape.scss +18 -0
- data/templates/emulators/emulators/galaxy.ace.portrait.png +0 -0
- data/templates/emulators/emulators/galaxy.ace.portrait.scss +18 -0
- data/templates/emulators/emulators/galaxy.s.landscape.scss +0 -2
- data/templates/emulators/emulators/galaxy.s.portrait.scss +0 -2
- data/templates/emulators/emulators/galaxy.s2.landscape.scss +0 -2
- data/templates/emulators/emulators/galaxy.s2.portrait.scss +0 -2
- data/templates/emulators/emulators/galaxy.tab.10.1.landscape.scss +0 -2
- data/templates/emulators/emulators/galaxy.tab.10.1.portrait.scss +0 -2
- data/templates/emulators/emulators/galaxy.tab.7.landscape.scss +0 -2
- data/templates/emulators/emulators/galaxy.tab.7.portrait.scss +0 -2
- data/templates/emulators/emulators/galaxy.tab.8.9.landscape.scss +0 -2
- data/templates/emulators/emulators/galaxy.tab.8.9.portrait.scss +0 -2
- data/templates/emulators/emulators/htc.sensation.landscape.png +0 -0
- data/templates/emulators/emulators/htc.sensation.landscape.scss +18 -0
- data/templates/emulators/emulators/htc.sensation.portrait.png +0 -0
- data/templates/emulators/emulators/htc.sensation.portrait.scss +18 -0
- data/templates/emulators/emulators/ipad.landscape.scss +0 -2
- data/templates/emulators/emulators/ipad.portrait.scss +0 -2
- data/templates/emulators/emulators/iphone.3.landscape.scss +0 -2
- data/templates/emulators/emulators/iphone.3.portrait.scss +0 -2
- data/templates/emulators/emulators/{iphone.4.landscape .scss → iphone.4.landscape.scss} +0 -2
- data/templates/emulators/emulators/iphone.4.portrait.scss +0 -2
- data/templates/emulators/emulators/palm.pre.2.landscape.scss +0 -2
- data/templates/emulators/emulators/palm.pre.2.portrait.scss +0 -2
- data/templates/emulators/manifest.rb +17 -5
- data/templates/graphics/highcharts/dark-blue.js +159 -159
- data/templates/graphics/highcharts/dark-green.js +159 -159
- data/templates/graphics/highcharts/gray.js +154 -154
- data/templates/graphics/highcharts/grid.js +84 -84
- data/templates/graphics/highcharts/highslide-config.js +2 -2
- data/templates/graphics/highcharts/highslide-full.js +3310 -3310
- data/templates/graphics/highcharts/skies.js +72 -72
- data/templates/graphics/jquery.ganttView.js +1550 -1550
- data/templates/graphics/jquery.highcharts.js +11277 -11285
- data/templates/graphics/jquery.sparkline.js +1072 -1072
- data/templates/ical/jquery.ical.js +7637 -7637
- data/templates/ical/jquery/ical.print.scss +3 -3
- data/templates/jqgrid/i18n/jqgrid/locale-ar.js +127 -127
- data/templates/jqgrid/i18n/jqgrid/locale-bg.js +131 -131
- data/templates/jqgrid/i18n/jqgrid/locale-bg1251.js +131 -131
- data/templates/jqgrid/i18n/jqgrid/locale-cat.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-cn.js +132 -132
- data/templates/jqgrid/i18n/jqgrid/locale-cs.js +129 -129
- data/templates/jqgrid/i18n/jqgrid/locale-da.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-de.js +134 -134
- data/templates/jqgrid/i18n/jqgrid/locale-el.js +127 -127
- data/templates/jqgrid/i18n/jqgrid/locale-en.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-es.js +129 -129
- data/templates/jqgrid/i18n/jqgrid/locale-fa.js +141 -141
- data/templates/jqgrid/i18n/jqgrid/locale-fi.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-fr.js +127 -127
- data/templates/jqgrid/i18n/jqgrid/locale-gl.js +127 -127
- data/templates/jqgrid/i18n/jqgrid/locale-he.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-hu.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-is.js +127 -127
- data/templates/jqgrid/i18n/jqgrid/locale-it.js +6 -6
- data/templates/jqgrid/i18n/jqgrid/locale-ja.js +153 -153
- data/templates/jqgrid/i18n/jqgrid/locale-lt.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-mne.js +134 -0
- data/templates/jqgrid/i18n/jqgrid/locale-mne.min.js +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-nl.js +145 -145
- data/templates/jqgrid/i18n/jqgrid/locale-no.js +12 -12
- data/templates/jqgrid/i18n/jqgrid/locale-pl.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-pt-br.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-pt.js +126 -126
- data/templates/jqgrid/i18n/jqgrid/locale-ro.js +140 -140
- data/templates/jqgrid/i18n/jqgrid/locale-ru.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-sk.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-sr.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-sv.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-tr.js +127 -127
- data/templates/jqgrid/i18n/jqgrid/locale-ua.js +128 -128
- data/templates/jqgrid/jquery.jqGrid.js +13477 -13443
- data/templates/jqgrid/jquery.jqGrid.min.js +292 -287
- data/templates/jqgrid/jquery/jqGrid.scss +13 -12
- data/templates/jqgrid/manifest.rb +2 -0
- data/templates/jqtouch/jquery.jqtouch.js +9601 -9556
- data/templates/jqtouch/jquery.jqtouch.min.js +3 -3
- data/templates/jqtouch/jquery/touch/default.scss +2 -2
- data/templates/jqtouch/jquery/touch/jqt.scss +2 -2
- data/templates/jqtouch/jquery/touch/jqtouch.scss +26 -5
- data/templates/jquery/amplify.store.js +211 -211
- data/templates/jquery/config/initializers/jquery.rb +2 -0
- data/templates/jquery/history.adapter.jquery.js +42 -36
- data/templates/jquery/history.html4.js +563 -563
- data/templates/jquery/history.html4.min.js +5 -5
- data/templates/jquery/history.js +1721 -1694
- data/templates/jquery/history.min.js +28 -27
- data/templates/jquery/i18n/jquery.ui/datepicker-af.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ar-DZ.js +18 -18
- data/templates/jquery/i18n/jquery.ui/datepicker-ar.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-az.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-bg.js +21 -21
- data/templates/jquery/i18n/jquery.ui/datepicker-bs.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ca.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-cs.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-da.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-de.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-el.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-en-AU.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-en-GB.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-en-NZ.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-eo.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-es.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-et.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-eu.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-fa.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-fi.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-fo.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-fr-CH.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-fr.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-gl.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-he.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-hr.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-hu.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-hy.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-id.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-is.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-it.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-ja.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ko.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-kz.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-lt.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-lv.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-ml.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ms.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-nl.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-nl.min.js +1 -1
- data/templates/jquery/i18n/jquery.ui/datepicker-no.js +18 -18
- data/templates/jquery/i18n/jquery.ui/datepicker-pl.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-pt-BR.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-pt.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-rm.js +17 -17
- data/templates/jquery/i18n/jquery.ui/datepicker-ro.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ru.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-sk.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-sk.min.js +1 -1
- data/templates/jquery/i18n/jquery.ui/datepicker-sl.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-sq.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sr-SR.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sr.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sv.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ta.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-th.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-tj.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-tr.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-uk.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-vi.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-zh-CN.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-zh-HK.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-zh-TW.js +20 -20
- data/templates/jquery/jquery-ui.js +11913 -11882
- data/templates/jquery/jquery-ui.min.js +340 -339
- data/templates/jquery/jquery.bgiframe.js +27 -27
- data/templates/jquery/jquery.contextMenu.js +202 -202
- data/templates/jquery/jquery.cookie.js +26 -26
- data/templates/jquery/jquery.dotimeout.js +227 -227
- data/templates/jquery/jquery.dst.js +89 -89
- data/templates/jquery/jquery.easing.js +226 -0
- data/templates/jquery/jquery.easing.min.js +8 -0
- data/templates/jquery/jquery.farbtastic.js +294 -294
- data/templates/jquery/jquery.flashMessages.js +14 -14
- data/templates/jquery/jquery.form.js +761 -761
- data/templates/jquery/jquery.haml.js +247 -247
- data/templates/jquery/jquery.hotkeys.js +79 -79
- data/templates/jquery/jquery.js +1490 -928
- data/templates/jquery/jquery.layout.js +2454 -2454
- data/templates/jquery/jquery.mediahelpers.js +216 -0
- data/templates/jquery/jquery.mediahelpers.min.js +3 -0
- data/templates/jquery/jquery.min.js +177 -166
- data/templates/jquery/jquery.mousewheel.js +57 -57
- data/templates/jquery/jquery.offline.js +171 -171
- data/templates/jquery/jquery.pngFix.js +72 -72
- data/templates/jquery/jquery.rails.js +145 -145
- data/templates/jquery/jquery.replacetext.js +80 -80
- data/templates/jquery/jquery.themeswitchertool.js +195 -195
- data/templates/jquery/jquery.tmpl.js +460 -460
- data/templates/jquery/jquery.tmplPlus.js +78 -78
- data/templates/jquery/jquery.tokeninput.js +480 -475
- data/templates/jquery/jquery/ui/_theme.scss +14 -14
- data/templates/jquery/jquery/ui/black-tie/ui-icons_4ca300_256x240.png +0 -0
- data/templates/jquery/jquery/ui/black-tie/ui-icons_bbbbbb_256x240.png +0 -0
- data/templates/jquery/jquery/ui/black-tie/ui-icons_ededed_256x240.png +0 -0
- data/templates/jquery/jquery/ui/black-tie/ui-icons_ffcf29_256x240.png +0 -0
- data/templates/jquery/jquery/ui/vader/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/templates/jquery/jquery/ui/vader/ui-icons_bbbbbb_256x240.png +0 -0
- data/templates/jquery/jquery/ui/vader/ui-icons_c98000_256x240.png +0 -0
- data/templates/jquery/jquery/ui/vader/ui-icons_f29a00_256x240.png +0 -0
- data/templates/jquery/json.js +66 -66
- data/templates/jquery/json2.js +177 -177
- data/templates/jquery/manifest.rb +4 -0
- data/templates/jstree/jquery.jstree.js +5918 -5918
- data/templates/markitup/app/views/shared/_mark_it_up.parsed.preview.blue.html.haml +9 -0
- data/templates/markitup/app/views/shared/_mark_it_up.parsed.preview.html.haml +9 -0
- data/templates/markitup/app/views/shared/_mark_it_up.preview.blue.html.haml +8 -0
- data/templates/markitup/app/views/shared/_mark_it_up.preview.html.haml +8 -0
- data/templates/markitup/config/initializers/mark_it_up.rb +40 -0
- data/templates/markitup/jquery.markitup.js +586 -0
- data/templates/markitup/jquery.markitup.min.js +1 -0
- data/templates/markitup/jquery/markitup/preview/body.blue.png +0 -0
- data/templates/markitup/jquery/markitup/preview/bullet.blue.png +0 -0
- data/templates/markitup/jquery/markitup/preview/preview.blue.scss +58 -0
- data/templates/markitup/jquery/markitup/preview/preview.scss +7 -0
- data/templates/markitup/jquery/markitup/sets/bbcode.scss +34 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/clean.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/fonts.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/list-item.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/underline.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css.scss +54 -0
- data/templates/markitup/jquery/markitup/sets/css/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/css.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/tag.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_align_center.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_align_justify.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_align_left.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_align_right.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_indent.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_letterspacing.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_linespacing.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_lowercase.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_padding_bottom.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_padding_left.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_padding_right.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_padding_top.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_uppercase.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default.scss +22 -0
- data/templates/markitup/jquery/markitup/sets/default/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/clean.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/image.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear.scss +38 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/url.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html.scss +42 -0
- data/templates/markitup/jquery/markitup/sets/html/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/clean.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/image.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/list-item.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/paragraph.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown.scss +38 -0
- data/templates/markitup/jquery/markitup/sets/markdown/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin.scss +38 -0
- data/templates/markitup/jquery/markitup/sets/markmin/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest.scss +38 -0
- data/templates/markitup/jquery/markitup/sets/rest/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile.scss +44 -0
- data/templates/markitup/jquery/markitup/sets/textile/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/paragraph.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/table.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy.scss +40 -0
- data/templates/markitup/jquery/markitup/sets/texy/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/disconnect.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/page_white_code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags.scss +44 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/disconnect.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/underline.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki.scss +42 -0
- data/templates/markitup/jquery/markitup/sets/wiki/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/table.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/url.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode.scss +42 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/clean.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/image.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/list-item.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/paragraph.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua.scss +136 -0
- data/templates/markitup/jquery/markitup/skins/aqua/bg-container-white.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/bg-container.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/bg-footer-white.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/bg-footer.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/bg-header-white.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/bg-header.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/handle.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/menu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/spacer.gif +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/submenu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor.scss +141 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-container.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-bbcode.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-dotclear.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-html.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-markdown.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-textile.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-wiki.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/handle.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/menu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/submenu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live.scss +135 -0
- data/templates/markitup/jquery/markitup/skins/live/bg-container.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live/bg-footer.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live/bg-header.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live/editor.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live/handle.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live/menu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live/submenu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup.scss +150 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-container.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-bbcode.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-dotclear.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-html.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-json.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-markdown.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-textile.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-wiki.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-xml.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/handle.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/menu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/submenu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/simple.scss +117 -0
- data/templates/markitup/jquery/markitup/skins/simple/handle.png +0 -0
- data/templates/markitup/jquery/markitup/skins/simple/menu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/simple/submenu.png +0 -0
- data/templates/markitup/manifest.rb +311 -0
- data/templates/markitup/markitup/jquery.markitup.set.bbcode.js +40 -0
- data/templates/markitup/markitup/jquery.markitup.set.bbcode.min.js +3 -0
- data/templates/markitup/markitup/jquery.markitup.set.css.js +53 -0
- data/templates/markitup/markitup/jquery.markitup.set.css.min.js +5 -0
- data/templates/markitup/markitup/jquery.markitup.set.default.js +30 -0
- data/templates/markitup/markitup/jquery.markitup.set.default.min.js +2 -0
- data/templates/markitup/markitup/jquery.markitup.set.dotclear.js +38 -0
- data/templates/markitup/markitup/jquery.markitup.set.dotclear.min.js +3 -0
- data/templates/markitup/markitup/jquery.markitup.set.html.js +40 -0
- data/templates/markitup/markitup/jquery.markitup.set.html.min.js +4 -0
- data/templates/markitup/markitup/jquery.markitup.set.markdown.js +53 -0
- data/templates/markitup/markitup/jquery.markitup.set.markdown.min.js +3 -0
- data/templates/markitup/markitup/jquery.markitup.set.markmin.js +50 -0
- data/templates/markitup/markitup/jquery.markitup.set.markmin.min.js +3 -0
- data/templates/markitup/markitup/jquery.markitup.set.rest.js +52 -0
- data/templates/markitup/markitup/jquery.markitup.set.rest.min.js +3 -0
- data/templates/markitup/markitup/jquery.markitup.set.textile.js +58 -0
- data/templates/markitup/markitup/jquery.markitup.set.textile.min.js +4 -0
- data/templates/markitup/markitup/jquery.markitup.set.texy.js +52 -0
- data/templates/markitup/markitup/jquery.markitup.set.texy.min.js +4 -0
- data/templates/markitup/markitup/jquery.markitup.set.txt2tags.js +42 -0
- data/templates/markitup/markitup/jquery.markitup.set.txt2tags.min.js +3 -0
- data/templates/markitup/markitup/jquery.markitup.set.wiki.js +61 -0
- data/templates/markitup/markitup/jquery.markitup.set.wiki.min.js +4 -0
- data/templates/markitup/markitup/jquery.markitup.set.xbbcode.js +36 -0
- data/templates/markitup/markitup/jquery.markitup.set.xbbcode.min.js +4 -0
- data/templates/mobile/config/initializers/mobile.rb +2 -0
- data/templates/mobile/jquery.mobile.js +4545 -4454
- data/templates/mobile/jquery.mobile.min.js +16 -7
- data/templates/mobile/jquery/mobile/960.fluid.scss +191 -0
- data/templates/mobile/jquery/mobile/960.scss +213 -0
- data/templates/mobile/jquery/mobile/_base.scss +37 -20
- data/templates/mobile/jquery/mobile/default.scss +48 -56
- data/templates/mobile/jquery/mobile/valencia.scss +43 -44
- data/templates/mobile/manifest.rb +2 -0
- data/templates/ribbon/jquery.ribbon.js +195 -195
- data/templates/ribbon/jquery.ribbon.min.js +1 -1
- data/templates/ribbon/jquery/ribbon/office.scss +12 -12
- data/templates/ribbon/jquery/ribbon/windows7.scss +12 -12
- data/templates/secret_sauce/secret_sauce.js +8 -8
- data/templates/tools/flowplayer.js +897 -897
- data/templates/tools/jquery.tools.js +3647 -3647
- data/templates/tools/jquery.tools.min.js +47 -47
- data/templates/tools/swfobject.js +760 -760
- metadata +350 -22
|
@@ -1,114 +1,114 @@
|
|
|
1
1
|
/*
|
|
2
2
|
|
|
3
|
-
jQuery Tools
|
|
3
|
+
jQuery Tools 1.2.5 Dateinput - <input type="date" /> for humans
|
|
4
4
|
|
|
5
5
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
|
6
6
|
|
|
7
7
|
http://flowplayer.org/tools/form/dateinput/
|
|
8
8
|
|
|
9
9
|
Since: Mar 2010
|
|
10
|
-
Date:
|
|
10
|
+
Date: Mon May 23 18:31:51 +0200 2011
|
|
11
11
|
|
|
12
|
-
jQuery Tools
|
|
12
|
+
jQuery Tools 1.2.5 Overlay - Overlay base. Extend it.
|
|
13
13
|
|
|
14
14
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
|
15
15
|
|
|
16
16
|
http://flowplayer.org/tools/overlay/
|
|
17
17
|
|
|
18
18
|
Since: March 2008
|
|
19
|
-
Date:
|
|
19
|
+
Date: Mon May 23 18:31:51 +0200 2011
|
|
20
20
|
|
|
21
|
-
jQuery Tools
|
|
21
|
+
jQuery Tools 1.2.5 / Overlay Apple effect.
|
|
22
22
|
|
|
23
23
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
|
24
24
|
|
|
25
25
|
http://flowplayer.org/tools/overlay/apple.html
|
|
26
26
|
|
|
27
27
|
Since: July 2009
|
|
28
|
-
Date:
|
|
28
|
+
Date: Mon May 23 18:31:51 +0200 2011
|
|
29
29
|
|
|
30
|
-
jQuery Tools
|
|
30
|
+
jQuery Tools 1.2.5 Rangeinput - HTML5 <input type="range" /> for humans
|
|
31
31
|
|
|
32
32
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
|
33
33
|
|
|
34
34
|
http://flowplayer.org/tools/rangeinput/
|
|
35
35
|
|
|
36
36
|
Since: Mar 2010
|
|
37
|
-
Date:
|
|
37
|
+
Date: Mon May 23 18:31:51 +0200 2011
|
|
38
38
|
|
|
39
|
-
jQuery Tools
|
|
39
|
+
jQuery Tools 1.2.5 Scrollable - New wave UI design
|
|
40
40
|
|
|
41
41
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
|
42
42
|
|
|
43
43
|
http://flowplayer.org/tools/scrollable.html
|
|
44
44
|
|
|
45
45
|
Since: March 2008
|
|
46
|
-
Date:
|
|
46
|
+
Date: Mon May 23 18:31:51 +0200 2011
|
|
47
47
|
|
|
48
|
-
jQuery Tools
|
|
48
|
+
jQuery Tools 1.2.5 / Scrollable Autoscroll
|
|
49
49
|
|
|
50
50
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
|
51
51
|
|
|
52
52
|
http://flowplayer.org/tools/scrollable/autoscroll.html
|
|
53
53
|
|
|
54
54
|
Since: September 2009
|
|
55
|
-
Date:
|
|
55
|
+
Date: Mon May 23 18:31:51 +0200 2011
|
|
56
56
|
|
|
57
|
-
jQuery Tools
|
|
57
|
+
jQuery Tools 1.2.5 / Scrollable Navigator
|
|
58
58
|
|
|
59
59
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
|
60
60
|
|
|
61
61
|
http://flowplayer.org/tools/scrollable/navigator.html
|
|
62
62
|
|
|
63
63
|
Since: September 2009
|
|
64
|
-
Date:
|
|
64
|
+
Date: Mon May 23 18:31:51 +0200 2011
|
|
65
65
|
|
|
66
|
-
jQuery Tools
|
|
66
|
+
jQuery Tools 1.2.5 Tabs- The basics of UI design.
|
|
67
67
|
|
|
68
68
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
|
69
69
|
|
|
70
70
|
http://flowplayer.org/tools/tabs/
|
|
71
71
|
|
|
72
72
|
Since: November 2008
|
|
73
|
-
Date:
|
|
73
|
+
Date: Mon May 23 18:31:51 +0200 2011
|
|
74
74
|
|
|
75
|
-
jQuery Tools
|
|
75
|
+
jQuery Tools 1.2.5 Slideshow - Extend it.
|
|
76
76
|
|
|
77
77
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
|
78
78
|
|
|
79
79
|
http://flowplayer.org/tools/tabs/slideshow.html
|
|
80
80
|
|
|
81
81
|
Since: September 2009
|
|
82
|
-
Date:
|
|
82
|
+
Date: Mon May 23 18:31:51 +0200 2011
|
|
83
83
|
|
|
84
|
-
jQuery Tools
|
|
84
|
+
jQuery Tools 1.2.5 / Expose - Dim the lights
|
|
85
85
|
|
|
86
86
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
|
87
87
|
|
|
88
88
|
http://flowplayer.org/tools/toolbox/expose.html
|
|
89
89
|
|
|
90
90
|
Since: Mar 2010
|
|
91
|
-
Date:
|
|
91
|
+
Date: Mon May 23 18:31:51 +0200 2011
|
|
92
92
|
|
|
93
|
-
jQuery Tools
|
|
93
|
+
jQuery Tools 1.2.5 / Flashembed - New wave Flash embedding
|
|
94
94
|
|
|
95
95
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
|
96
96
|
|
|
97
97
|
http://flowplayer.org/tools/toolbox/flashembed.html
|
|
98
98
|
|
|
99
99
|
Since : March 2008
|
|
100
|
-
Date :
|
|
100
|
+
Date : Mon May 23 18:31:51 +0200 2011
|
|
101
101
|
|
|
102
|
-
jQuery Tools
|
|
102
|
+
jQuery Tools 1.2.5 History "Back button for AJAX apps"
|
|
103
103
|
|
|
104
104
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
|
105
105
|
|
|
106
106
|
http://flowplayer.org/tools/toolbox/history.html
|
|
107
107
|
|
|
108
108
|
Since: Mar 2010
|
|
109
|
-
Date:
|
|
109
|
+
Date: Mon May 23 18:31:51 +0200 2011
|
|
110
110
|
|
|
111
|
-
jQuery Tools
|
|
111
|
+
jQuery Tools 1.2.5 Mousewheel
|
|
112
112
|
|
|
113
113
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
|
114
114
|
|
|
@@ -119,43 +119,43 @@
|
|
|
119
119
|
http://threedubmedia.com
|
|
120
120
|
|
|
121
121
|
Since: Mar 2010
|
|
122
|
-
Date:
|
|
122
|
+
Date: Mon May 23 18:31:51 +0200 2011
|
|
123
123
|
|
|
124
|
-
jQuery Tools
|
|
124
|
+
jQuery Tools 1.2.5 Tooltip - UI essentials
|
|
125
125
|
|
|
126
126
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
|
127
127
|
|
|
128
128
|
http://flowplayer.org/tools/tooltip/
|
|
129
129
|
|
|
130
130
|
Since: November 2008
|
|
131
|
-
Date:
|
|
131
|
+
Date: Mon May 23 18:31:51 +0200 2011
|
|
132
132
|
|
|
133
|
-
jQuery Tools
|
|
133
|
+
jQuery Tools 1.2.5 / Tooltip Dynamic Positioning
|
|
134
134
|
|
|
135
135
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
|
136
136
|
|
|
137
137
|
http://flowplayer.org/tools/tooltip/dynamic.html
|
|
138
138
|
|
|
139
139
|
Since: July 2009
|
|
140
|
-
Date:
|
|
140
|
+
Date: Mon May 23 18:31:51 +0200 2011
|
|
141
141
|
|
|
142
|
-
jQuery Tools
|
|
142
|
+
jQuery Tools 1.2.5 / Tooltip Slide Effect
|
|
143
143
|
|
|
144
144
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
|
145
145
|
|
|
146
146
|
http://flowplayer.org/tools/tooltip/slide.html
|
|
147
147
|
|
|
148
148
|
Since: September 2009
|
|
149
|
-
Date:
|
|
149
|
+
Date: Mon May 23 18:31:51 +0200 2011
|
|
150
150
|
|
|
151
|
-
jQuery Tools Validator
|
|
151
|
+
jQuery Tools Validator 1.2.5 - HTML5 is here. Now use it.
|
|
152
152
|
|
|
153
153
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
|
154
154
|
|
|
155
155
|
http://flowplayer.org/tools/form/validator/
|
|
156
156
|
|
|
157
157
|
Since: Mar 2010
|
|
158
|
-
Date:
|
|
158
|
+
Date: Mon May 23 18:31:51 +0200 2011
|
|
159
159
|
*/
|
|
160
160
|
(function(b){function p(b,c){b=""+b;for(c=c||2;b.length<c;)b="0"+b;return b}function k(b,c,a){var d=b.getDate(),r=b.getDay(),i=b.getMonth(),b=b.getFullYear(),g={d:d,dd:p(d),ddd:e[a].shortDays[r],dddd:e[a].days[r],m:i+1,mm:p(i+1),mmm:e[a].shortMonths[i],mmmm:e[a].months[i],yy:String(b).slice(2),yyyy:b},c=c.replace(f,function(b){return b in g?g[b]:b.slice(1,b.length-1)});return m.html(c).html()}function h(b,c){return b.getFullYear()===c.getFullYear()&&b.getMonth()==c.getMonth()&&b.getDate()==c.getDate()}
|
|
161
161
|
function a(b){if(b){if(b.constructor==Date)return b;if(typeof b=="string"){var c=b.split("-");if(c.length==3)return new Date(parseInt(c[0],10),parseInt(c[1],10)-1,parseInt(c[2],10));if(!/^-?\d+$/.test(b))return;b=parseInt(b,10)}c=new Date;c.setDate(c.getDate()+b);return c}}function d(d,j){function f(c,a,j){u=c;G=c.getFullYear();x=c.getMonth();B=c.getDate();j=j||b.Event("api");j.type="change";H.trigger(j,[c]);j.isDefaultPrevented()||(d.val(k(c,a.format,a.lang)),d.data("date",c),r.hide(j))}function g(c){c.type=
|
|
@@ -169,14 +169,14 @@ E.val())});y=o.find("#"+l.prev).unbind("click").click(function(){y.hasClass(l.di
|
|
|
169
169
|
s=e+j.yearRange[0];s<e+j.yearRange[1];s++)v<=new Date(s+1,-1,1)&&w>new Date(s,0,0)&&F.append(b("<option/>").text(s));E.val(a);F.val(c)}else p.html(t.months[a]+" "+c);I.empty();y.add(A).removeClass(l.disabled);for(var s=!d?-7:0,o,k;s<(!d?35:42);s++)o=b("<a/>"),s%7===0&&(g=b("<div/>").addClass(l.week),I.append(g)),s<d?(o.addClass(l.off),k=i-d+s+1,e=new Date(c,a-1,k)):s>=d+n?(o.addClass(l.off),k=s-n-d+1,e=new Date(c,a+1,k)):(k=s-d+1,e=new Date(c,a,k),h(u,e)?o.attr("id",l.current).addClass(l.focus):h(m,
|
|
170
170
|
e)&&o.attr("id",l.today)),v&&e<v&&o.add(y).addClass(l.disabled),w&&e>w&&o.add(A).addClass(l.disabled),o.attr("href","#"+k).text(k).data("date",e),g.append(o);I.find("a").click(function(c){var a=b(this);a.hasClass(l.disabled)||(b("#"+l.current).removeAttr("id"),a.attr("id",l.current),f(a.data("date"),j,c));return!1});l.sunday&&I.find(l.week).each(function(){var c=j.firstDay?7-j.firstDay:0;b(this).children().slice(c,c+1).addClass(l.sunday)});return r},setMin:function(b,c){v=a(b);c&&u<v&&r.setValue(v);
|
|
171
171
|
return r},setMax:function(b,c){w=a(b);c&&u>w&&r.setValue(w);return r},today:function(){return r.setValue(m)},addDay:function(b){return this.setValue(G,x,B+(b||1))},addMonth:function(b){return this.setValue(G,x+(b||1),B)},addYear:function(b){return this.setValue(G+(b||1),x,B)},hide:function(c){if(C){c=b.Event();c.type="onHide";H.trigger(c);b(document).unbind("click.d").unbind("keydown.d");if(c.isDefaultPrevented())return;o.hide();C=!1}return r},getConf:function(){return j},getInput:function(){return d},
|
|
172
|
-
getCalendar:function(){return o},getValue:function(b){return b?k(u,b,j.lang):u},isOpen:function(){return C}});b.each(["onBeforeShow","onShow","change","onHide"],function(c,a){b.isFunction(j[a])&&b(r).bind(a,j[a]);r[a]=function(c){c&&b(r).bind(a,c);return r}});d.bind("focus click",r.show).keydown(function(c){var a=c.keyCode;if(!C&&b(i).index(a)>=0)return r.show(c),c.preventDefault();return c.shiftKey||c.ctrlKey||c.altKey||a==9?!0:c.preventDefault()});a(d.val())&&f(u,j)}b.tools=b.tools||{version:"
|
|
172
|
+
getCalendar:function(){return o},getValue:function(b){return b?k(u,b,j.lang):u},isOpen:function(){return C}});b.each(["onBeforeShow","onShow","change","onHide"],function(c,a){b.isFunction(j[a])&&b(r).bind(a,j[a]);r[a]=function(c){c&&b(r).bind(a,c);return r}});d.bind("focus click",r.show).keydown(function(c){var a=c.keyCode;if(!C&&b(i).index(a)>=0)return r.show(c),c.preventDefault();return c.shiftKey||c.ctrlKey||c.altKey||a==9?!0:c.preventDefault()});a(d.val())&&f(u,j)}b.tools=b.tools||{version:"1.2.5"};
|
|
173
173
|
var c=[],g,i=[75,76,38,39,74,72,40,37],e={};g=b.tools.dateinput={conf:{format:"mm/dd/yy",selectors:!1,yearRange:[-5,5],lang:"en",offset:[0,0],speed:0,firstDay:0,min:void 0,max:void 0,trigger:!1,css:{prefix:"cal",input:"date",root:0,head:0,title:0,prev:0,next:0,month:0,year:0,days:0,body:0,weeks:0,today:0,current:0,week:0,off:0,sunday:0,focus:0,disabled:0,trigger:0}},localize:function(c,a){b.each(a,function(b,c){a[b]=c.split(",")});e[c]=a}};g.localize("en",{months:"January,February,March,April,May,June,July,August,September,October,November,December",
|
|
174
174
|
shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",days:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",shortDays:"Sun,Mon,Tue,Wed,Thu,Fri,Sat"});var f=/d{1,4}|m{1,4}|yy(?:yy)?|"[^"]*"|'[^']*'/g,m=b("<a/>");b.expr[":"].date=function(c){var a=c.getAttribute("type");return a&&a=="date"||!!b(c).data("dateinput")};b.fn.dateinput=function(a){if(this.data("dateinput"))return this;a=b.extend(!0,{},g.conf,a);b.each(a.css,function(b,c){!c&&b!="prefix"&&(a.css[b]=(a.css.prefix||"")+(c||
|
|
175
175
|
b))});var e;this.each(function(){var f=new d(b(this),a);c.push(f);f=f.getInput().data("dateinput",f);e=e?e.add(f):f});return e?e:this}})(jQuery);
|
|
176
176
|
(function(b){function p(a,d){var c=this,g=a.add(c),i=b(window),e,f,m,n=b.tools.expose&&(d.mask||d.expose),j=Math.random().toString().slice(10);if(n)typeof n=="string"&&(n={color:n}),n.closeOnClick=n.closeOnEsc=!1;var q=d.target||a.attr("rel");f=q?b(q):a;if(!f.length)throw"Could not find Overlay: "+q;a&&a.index(f)==-1&&a.click(function(b){c.load(b);return b.preventDefault()});b.extend(c,{load:function(a){if(c.isOpened())return c;var e=h[d.effect];if(!e)throw'Overlay: cannot find effect : "'+d.effect+
|
|
177
177
|
'"';d.oneInstance&&b.each(k,function(){this.close(a)});a=a||b.Event();a.type="onBeforeLoad";g.trigger(a);if(a.isDefaultPrevented())return c;m=!0;n&&b(f).expose(n);var q=d.top,l=d.left,t=f.outerWidth({margin:!0}),o=f.outerHeight({margin:!0});typeof q=="string"&&(q=q=="center"?Math.max((i.height()-o)/2,0):parseInt(q,10)/100*i.height());l=="center"&&(l=Math.max((i.width()-t)/2,0));e[0].call(c,{top:q,left:l},function(){if(m)a.type="onLoad",g.trigger(a)});if(n&&d.closeOnClick)b.mask.getMask().one("click",
|
|
178
178
|
c.close);d.closeOnClick&&b(document).bind("click."+j,function(a){b(a.target).parents(f).length||c.close(a)});d.closeOnEsc&&b(document).bind("keydown."+j,function(b){b.keyCode==27&&c.close(b)});return c},close:function(a){if(!c.isOpened())return c;a=a||b.Event();a.type="onBeforeClose";g.trigger(a);if(!a.isDefaultPrevented())return m=!1,h[d.effect][1].call(c,function(){a.type="onClose";g.trigger(a)}),b(document).unbind("click."+j).unbind("keydown."+j),n&&b.mask.close(),c},getOverlay:function(){return f},
|
|
179
|
-
getTrigger:function(){return a},getClosers:function(){return e},isOpened:function(){return m},getConf:function(){return d}});b.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(a,e){b.isFunction(d[e])&&b(c).bind(e,d[e]);c[e]=function(a){a&&b(c).bind(e,a);return c}});e=f.find(d.close||".close");!e.length&&!d.close&&(e=b('<a class="close"></a>'),f.prepend(e));e.click(function(b){c.close(b)});d.load&&c.load()}b.tools=b.tools||{version:"
|
|
179
|
+
getTrigger:function(){return a},getClosers:function(){return e},isOpened:function(){return m},getConf:function(){return d}});b.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(a,e){b.isFunction(d[e])&&b(c).bind(e,d[e]);c[e]=function(a){a&&b(c).bind(e,a);return c}});e=f.find(d.close||".close");!e.length&&!d.close&&(e=b('<a class="close"></a>'),f.prepend(e));e.click(function(b){c.close(b)});d.load&&c.load()}b.tools=b.tools||{version:"1.2.5"};b.tools.overlay={addEffect:function(b,
|
|
180
180
|
d,c){h[b]=[d,c]},conf:{close:null,closeOnClick:!0,closeOnEsc:!0,closeSpeed:"fast",effect:"default",fixed:!b.browser.msie||b.browser.version>6,left:"center",load:!1,mask:null,oneInstance:!0,speed:"normal",target:null,top:"10%"}};var k=[],h={};b.tools.overlay.addEffect("default",function(a,d){var c=this.getConf(),g=b(window);c.fixed||(a.top+=g.scrollTop(),a.left+=g.scrollLeft());a.position=c.fixed?"fixed":"absolute";this.getOverlay().css(a).fadeIn(c.speed,d)},function(b){this.getOverlay().fadeOut(this.getConf().closeSpeed,
|
|
181
181
|
b)});b.fn.overlay=function(a){var d=this.data("overlay");if(d)return d;b.isFunction(a)&&(a={onBeforeLoad:a});a=b.extend(!0,{},b.tools.overlay.conf,a);this.each(function(){d=new p(b(this),a);k.push(d);b(this).data("overlay",d)});return a.api?d:this}})(jQuery);
|
|
182
182
|
(function(b){function p(b){var d=b.offset();return{top:d.top+b.height()/2,left:d.left+b.width()/2}}var k=b.tools.overlay,h=b(window);b.extend(k.conf,{start:{top:null,left:null},fadeInSpeed:"fast",zIndex:9999});k.addEffect("apple",function(a,d){var c=this.getOverlay(),g=this.getConf(),i=this.getTrigger(),e=this,f=c.outerWidth({margin:!0}),m=c.data("img"),n=g.fixed?"fixed":"absolute";if(!m){m=c.css("backgroundImage");if(!m)throw"background-image CSS property not set for overlay";m=m.slice(m.indexOf("(")+
|
|
@@ -187,8 +187,8 @@ void 0&&!g&&(b.type="onSlide",B.trigger(b,[n,f]),b.isDefaultPrevented()))return
|
|
|
187
187
|
void 0?a.value:a.min)}var j=this,q=a.css,s=b("<div><div/><a href='#'/></div>").data("rangeinput",j),r,z,l,t;c.before(s);var o=s.addClass(q.slider).find("a").addClass(q.handle),J=s.find("div").addClass(q.progress);b.each("min,max,step,value".split(","),function(b,d){var f=c.attr(d);parseFloat(f)&&(a[d]=parseFloat(f,10))});var D=a.max-a.min,y=a.step=="any"?0:a.step,A=a.precision;if(A===void 0)try{A=y.toString().split(".")[1].length}catch(G){A=0}if(c.attr("type")=="range"){var x=b("<input/>");b.each("class,disabled,id,maxlength,name,readonly,required,size,style,tabindex,title,value".split(","),
|
|
188
188
|
function(b,a){x.attr(a,c.attr(a))});x.val(a.value);c.replaceWith(x);c=x}c.addClass(q.input);var B=b(j).add(c),u=!0;b.extend(j,{getValue:function(){return z},setValue:function(c,a){g();return d(a||b.Event("api"),void 0,c,!0)},getConf:function(){return a},getProgress:function(){return J},getHandle:function(){return o},getInput:function(){return c},step:function(c,d){d=d||b.Event();j.setValue(z+(a.step=="any"?1:a.step)*(c||1),d)},stepUp:function(b){return j.step(b||1)},stepDown:function(b){return j.step(-b||
|
|
189
189
|
-1)}});b.each("onSlide,change".split(","),function(c,d){b.isFunction(a[d])&&b(j).bind(d,a[d]);j[d]=function(c){c&&b(j).bind(d,c);return j}});o.drag({drag:!1}).bind("dragStart",function(){g();u=h(b(j))||h(c)}).bind("drag",function(b,a,e){if(c.is(":disabled"))return!1;d(b,r?a:e)}).bind("dragEnd",function(b){if(!b.isDefaultPrevented())b.type="change",B.trigger(b,[z])}).click(function(b){return b.preventDefault()});s.click(function(b){if(c.is(":disabled")||b.target==o[0])return b.preventDefault();g();
|
|
190
|
-
var a=o.width()/2;d(b,r?t-l-a+b.pageY:b.pageX-l-a)});a.keyboard&&c.keydown(function(a){if(!c.attr("readonly")){var d=a.keyCode,e=b([75,76,38,33,39]).index(d)!=-1,f=b([74,72,40,34,37]).index(d)!=-1;if((e||f)&&!a.shiftKey&&!a.altKey&&!a.ctrlKey)return e?j.step(d==33?10:1,a):f&&j.step(d==34?-10:-1,a),a.preventDefault()}});c.blur(function(a){var c=b(this).val();c!==z&&j.setValue(c,a)});b.extend(c[0],{stepUp:j.stepUp,stepDown:j.stepDown});n();t||b(window).load(n)}b.tools=b.tools||{version:"
|
|
191
|
-
|
|
190
|
+
var a=o.width()/2;d(b,r?t-l-a+b.pageY:b.pageX-l-a)});a.keyboard&&c.keydown(function(a){if(!c.attr("readonly")){var d=a.keyCode,e=b([75,76,38,33,39]).index(d)!=-1,f=b([74,72,40,34,37]).index(d)!=-1;if((e||f)&&!a.shiftKey&&!a.altKey&&!a.ctrlKey)return e?j.step(d==33?10:1,a):f&&j.step(d==34?-10:-1,a),a.preventDefault()}});c.blur(function(a){var c=b(this).val();c!==z&&j.setValue(c,a)});b.extend(c[0],{stepUp:j.stepUp,stepDown:j.stepDown});n();t||b(window).load(n)}b.tools=b.tools||{version:"1.2.5"};var d;
|
|
191
|
+
d=b.tools.rangeinput={conf:{min:0,max:100,step:"any",steps:0,value:0,precision:void 0,vertical:0,keyboard:!0,progress:!1,speed:100,css:{input:"range",slider:"slider",progress:"progress",handle:"handle"}}};var c,g;b.fn.drag=function(a){document.ondragstart=function(){return!1};a=b.extend({x:!0,y:!0,drag:!0},a);c=c||b(document).bind("mousedown mouseup",function(d){var f=b(d.target);if(d.type=="mousedown"&&f.data("drag")){var m=f.position(),n=d.pageX-m.left,j=d.pageY-m.top,q=!0;c.bind("mousemove.drag",
|
|
192
192
|
function(b){var c=b.pageX-n,b=b.pageY-j,d={};if(a.x)d.left=c;if(a.y)d.top=b;q&&(f.trigger("dragStart"),q=!1);a.drag&&f.css(d);f.trigger("drag",[b,c]);g=f});d.preventDefault()}else try{g&&g.trigger("dragEnd")}finally{c.unbind("mousemove.drag"),g=null}});return this.data("drag",!0)};b.expr[":"].range=function(a){var c=a.getAttribute("type");return c&&c=="range"||!!b(a).filter("input").data("rangeinput")};b.fn.rangeinput=function(c){if(this.data("rangeinput"))return this;var c=b.extend(!0,{},d.conf,
|
|
193
193
|
c),e;this.each(function(){var d=new a(b(this),b.extend(!0,{},c)),d=d.getInput().data("rangeinput",d);e=e?e.add(d):d});return e?e:this}})(jQuery);
|
|
194
194
|
(function(b){function p(a,d){var c=b(d);return c.length<2?c:a.parent().find(d)}function k(a,d){var c=this,g=a.add(c),i=a.children(),e=0,f=d.vertical;h||(h=c);i.length>1&&(i=b(d.items,a));b.extend(c,{getConf:function(){return d},getIndex:function(){return e},getSize:function(){return c.getItems().size()},getNaviButtons:function(){return j.add(q)},getRoot:function(){return a},getItemWrap:function(){return i},getItems:function(){return i.children(d.item).not("."+d.clonedClass)},move:function(b,a){return c.seekTo(e+
|
|
@@ -196,7 +196,7 @@ b,a)},next:function(b){return c.move(1,b)},prev:function(b){return c.move(-1,b)}
|
|
|
196
196
|
if(!d.circular&&a<0||a>c.getSize()||a<-1)return c;var q=a;a.jquery?a=c.getItems().index(a):q=c.getItems().eq(a);var m=b.Event("onBeforeSeek");if(!n&&(g.trigger(m,[a,j]),m.isDefaultPrevented()||!q.length))return c;q=f?{top:-q.position().top}:{left:-q.position().left};e=a;h=c;if(j===void 0)j=d.speed;i.animate(q,j,d.easing,n||function(){g.trigger("onSeek",[a])});return c}});b.each(["onBeforeSeek","onSeek","onAddItem"],function(a,f){b.isFunction(d[f])&&b(c).bind(f,d[f]);c[f]=function(a){a&&b(c).bind(f,
|
|
197
197
|
a);return c}});if(d.circular){var m=c.getItems().slice(-1).clone().prependTo(i),n=c.getItems().eq(1).clone().appendTo(i);m.add(n).addClass(d.clonedClass);c.onBeforeSeek(function(b,a,d){if(!b.isDefaultPrevented())if(a==-1)return c.seekTo(m,d,function(){c.end(0)}),b.preventDefault();else a==c.getSize()&&c.seekTo(n,d,function(){c.begin(0)})});c.seekTo(0,0,function(){})}var j=p(a,d.prev).click(function(){c.prev()}),q=p(a,d.next).click(function(){c.next()});!d.circular&&c.getSize()>1&&(c.onBeforeSeek(function(b,
|
|
198
198
|
a){setTimeout(function(){b.isDefaultPrevented()||(j.toggleClass(d.disabledClass,a<=0),q.toggleClass(d.disabledClass,a>=c.getSize()-1))},1)}),d.initialIndex||j.addClass(d.disabledClass));d.mousewheel&&b.fn.mousewheel&&a.mousewheel(function(b,a){if(d.mousewheel)return c.move(a<0?1:-1,d.wheelSpeed||50),!1});if(d.touch){var s={};i[0].ontouchstart=function(b){b=b.touches[0];s.x=b.clientX;s.y=b.clientY};i[0].ontouchmove=function(b){if(b.touches.length==1&&!i.is(":animated")){var a=b.touches[0],d=s.x-a.clientX,
|
|
199
|
-
a=s.y-a.clientY;c[f&&a>0||!f&&d>0?"next":"prev"]();b.preventDefault()}}}d.keyboard&&b(document).bind("keydown.scrollable",function(a){if(d.keyboard&&!a.altKey&&!a.ctrlKey&&!b(a.target).is(":input")&&!(d.keyboard!="static"&&h!=c)){var e=a.keyCode;if(f&&(e==38||e==40))return c.move(e==38?-1:1),a.preventDefault();if(!f&&(e==37||e==39))return c.move(e==37?-1:1),a.preventDefault()}});d.initialIndex&&c.seekTo(d.initialIndex,0,function(){})}b.tools=b.tools||{version:"
|
|
199
|
+
a=s.y-a.clientY;c[f&&a>0||!f&&d>0?"next":"prev"]();b.preventDefault()}}}d.keyboard&&b(document).bind("keydown.scrollable",function(a){if(d.keyboard&&!a.altKey&&!a.ctrlKey&&!b(a.target).is(":input")&&!(d.keyboard!="static"&&h!=c)){var e=a.keyCode;if(f&&(e==38||e==40))return c.move(e==38?-1:1),a.preventDefault();if(!f&&(e==37||e==39))return c.move(e==37?-1:1),a.preventDefault()}});d.initialIndex&&c.seekTo(d.initialIndex,0,function(){})}b.tools=b.tools||{version:"1.2.5"};b.tools.scrollable={conf:{activeClass:"active",
|
|
200
200
|
circular:!1,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:null,items:".items",keyboard:!0,mousewheel:!1,next:".next",prev:".prev",speed:400,vertical:!1,touch:!0,wheelSpeed:0}};var h;b.fn.scrollable=function(a){var d=this.data("scrollable");if(d)return d;a=b.extend({},b.tools.scrollable.conf,a);this.each(function(){d=new k(b(this),a);b(this).data("scrollable",d)});return a.api?d:this}})(jQuery);
|
|
201
201
|
(function(b){var p=b.tools.scrollable;p.autoscroll={conf:{autoplay:!0,interval:3E3,autopause:!0}};b.fn.autoscroll=function(k){typeof k=="number"&&(k={interval:k});var h=b.extend({},p.autoscroll.conf,k),a;this.each(function(){var d=b(this).data("scrollable");d&&(a=d);var c;d.play=function(){c||(c=setInterval(function(){d.next()},h.interval))};d.pause=function(){c=clearInterval(c)};d.stop=function(){d.pause()};h.autopause&&d.getRoot().add(d.getNaviButtons()).hover(d.pause,d.play);h.autoplay&&d.play()});
|
|
202
202
|
return h.api?a:this}})(jQuery);
|
|
@@ -206,15 +206,15 @@ c().length?c().each(function(a){b(this).click(function(c){d(b(this),a,c)})}):b.e
|
|
|
206
206
|
(function(b){function p(a,d,c){var g=this,i=a.add(this),e=a.find(c.tabs),f=d.jquery?d:a.children(d),m;e.length||(e=a.children());f.length||(f=a.parent().find(d));f.length||(f=b(d));b.extend(this,{click:function(a,d){var f=e.eq(a);typeof a=="string"&&a.replace("#","")&&(f=e.filter("[href*="+a.replace("#","")+"]"),a=Math.max(e.index(f),0));if(c.rotate){var h=e.length-1;if(a<0)return g.click(h,d);if(a>h)return g.click(0,d)}if(!f.length){if(m>=0)return g;a=c.initialIndex;f=e.eq(a)}if(a===m)return g;d=
|
|
207
207
|
d||b.Event();d.type="onBeforeClick";i.trigger(d,[a]);if(!d.isDefaultPrevented())return k[c.effect].call(g,a,function(){d.type="onClick";i.trigger(d,[a])}),m=a,e.removeClass(c.current),f.addClass(c.current),g},getConf:function(){return c},getTabs:function(){return e},getPanes:function(){return f},getCurrentPane:function(){return f.eq(m)},getCurrentTab:function(){return e.eq(m)},getIndex:function(){return m},next:function(){return g.click(m+1)},prev:function(){return g.click(m-1)},destroy:function(){e.unbind(c.event).removeClass(c.current);
|
|
208
208
|
f.find("a[href^=#]").unbind("click.T");return g}});b.each("onBeforeClick,onClick".split(","),function(a,d){b.isFunction(c[d])&&b(g).bind(d,c[d]);g[d]=function(a){a&&b(g).bind(d,a);return g}});if(c.history&&b.fn.history)b.tools.history.init(e),c.event="history";e.each(function(a){b(this).bind(c.event,function(b){g.click(a,b);return b.preventDefault()})});f.find("a[href^=#]").bind("click.T",function(a){g.click(b(this).attr("href"),a)});location.hash&&c.tabs=="a"&&a.find("[href="+location.hash+"]").length?
|
|
209
|
-
g.click(location.hash):(c.initialIndex===0||c.initialIndex>0)&&g.click(c.initialIndex)}b.tools=b.tools||{version:"
|
|
209
|
+
g.click(location.hash):(c.initialIndex===0||c.initialIndex>0)&&g.click(c.initialIndex)}b.tools=b.tools||{version:"1.2.5"};b.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:!1,history:!1},addEffect:function(b,d){k[b]=d}};var k={"default":function(b,d){this.getPanes().hide().eq(b).show();d.call()},fade:function(b,d){var c=this.getConf(),g=c.fadeOutSpeed,i=this.getPanes();g?i.fadeOut(g):i.hide();i.eq(b).fadeIn(c.fadeInSpeed,
|
|
210
210
|
d)},slide:function(b,d){this.getPanes().slideUp(200);this.getPanes().eq(b).slideDown(400,d)},ajax:function(b,d){this.getPanes().eq(0).load(this.getTabs().eq(b).attr("href"),d)}},h;b.tools.tabs.addEffect("horizontal",function(a,d){h||(h=this.getPanes().eq(0).width());this.getCurrentPane().animate({width:0},function(){b(this).hide()});this.getPanes().eq(a).animate({width:h},function(){b(this).show();d.call()})});b.fn.tabs=function(a,d){var c=this.data("tabs");c&&(c.destroy(),this.removeData("tabs"));
|
|
211
211
|
b.isFunction(d)&&(d={onBeforeClick:d});d=b.extend({},b.tools.tabs.conf,d);this.each(function(){c=new p(b(this),a,d);b(this).data("tabs",c)});return d.api?c:this}})(jQuery);
|
|
212
212
|
(function(b){function p(h,a){function d(a){var c=b(a);return c.length<2?c:h.parent().find(a)}var c=this,g=h.add(this),i=h.data("tabs"),e,f=!0,m=d(a.next).click(function(){i.next()}),n=d(a.prev).click(function(){i.prev()});b.extend(c,{getTabs:function(){return i},getConf:function(){return a},play:function(){if(e)return c;var d=b.Event("onBeforePlay");g.trigger(d);if(d.isDefaultPrevented())return c;e=setInterval(i.next,a.interval);f=!1;g.trigger("onPlay");return c},pause:function(){if(!e)return c;var a=
|
|
213
213
|
b.Event("onBeforePause");g.trigger(a);if(a.isDefaultPrevented())return c;e=clearInterval(e);g.trigger("onPause");return c},stop:function(){c.pause();f=!0}});b.each("onBeforePlay,onPlay,onBeforePause,onPause".split(","),function(d,f){b.isFunction(a[f])&&b(c).bind(f,a[f]);c[f]=function(a){return b(c).bind(f,a)}});a.autopause&&i.getTabs().add(m).add(n).add(i.getPanes()).hover(c.pause,function(){f||c.play()});a.autoplay&&c.play();a.clickable&&i.getPanes().click(function(){i.next()});if(!i.getConf().rotate){var j=
|
|
214
214
|
a.disabledClass;i.getIndex()||n.addClass(j);i.onBeforeClick(function(b,a){n.toggleClass(j,!a);m.toggleClass(j,a==i.getTabs().length-1)})}}var k;k=b.tools.tabs.slideshow={conf:{next:".forward",prev:".backward",disabledClass:"disabled",autoplay:!1,autopause:!0,interval:3E3,clickable:!0,api:!1}};b.fn.slideshow=function(h){var a=this.data("slideshow");if(a)return a;h=b.extend({},k.conf,h);this.each(function(){a=new p(b(this),h);b(this).data("slideshow",a)});return h.api?a:this}})(jQuery);
|
|
215
|
-
(function(b){function p(){if(b.browser.msie){var a=b(document).height(),c=b(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a-c<20?c:a]}return[b(document).width(),b(document).height()]}function k(a){if(a)return a.call(b.mask)}b.tools=b.tools||{version:"
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
(function(b){function p(){if(b.browser.msie){var a=b(document).height(),c=b(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a-c<20?c:a]}return[b(document).width(),b(document).height()]}function k(a){if(a)return a.call(b.mask)}b.tools=b.tools||{version:"1.2.5"};var h;h=b.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:!0,closeOnEsc:!0,zIndex:9998,opacity:0.8,startOpacity:0,color:"#fff",onLoad:null,onClose:null}};
|
|
216
|
+
var a,d,c,g,i;b.mask={load:function(e,f){if(c)return this;typeof e=="string"&&(e={color:e});e=e||g;g=e=b.extend(b.extend({},h.conf),e);a=b("#"+e.maskId);a.length||(a=b("<div/>").attr("id",e.maskId),b("body").append(a));var m=p();a.css({position:"absolute",top:0,left:0,width:m[0],height:m[1],display:"none",opacity:e.startOpacity,zIndex:e.zIndex});e.color&&a.css("backgroundColor",e.color);if(k(e.onBeforeLoad)===!1)return this;e.closeOnEsc&&b(document).bind("keydown.mask",function(a){a.keyCode==27&&
|
|
217
|
+
b.mask.close(a)});e.closeOnClick&&a.bind("click.mask",function(a){b.mask.close(a)});b(window).bind("resize.mask",function(){b.mask.fit()});f&&f.length&&(i=f.eq(0).css("zIndex"),b.each(f,function(){var a=b(this);/relative|absolute|fixed/i.test(a.css("position"))||a.css("position","relative")}),d=f.css({zIndex:Math.max(e.zIndex+1,i=="auto"?0:i)}));a.css({display:"block"}).fadeTo(e.loadSpeed,e.opacity,function(){b.mask.fit();k(e.onLoad);c="full"});c=!0;return this},close:function(){if(c){if(k(g.onBeforeClose)===
|
|
218
218
|
!1)return this;a.fadeOut(g.closeSpeed,function(){k(g.onClose);d&&d.css({zIndex:i});c=!1});b(document).unbind("keydown.mask");a.unbind("click.mask");b(window).unbind("resize.mask")}return this},fit:function(){if(c){var b=p();a.css({width:b[0],height:b[1]})}},getMask:function(){return a},isLoaded:function(b){return b?c=="full":c},getConf:function(){return g},getExposed:function(){return d}};b.fn.mask=function(a){b.mask.load(a);return this};b.fn.expose=function(a){b.mask.load(a,this);return this}})(jQuery);
|
|
219
219
|
(function(){function b(b,a){if(a)for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b}function p(b,a){var c=[],d;for(d in b)b.hasOwnProperty(d)&&(c[d]=a(b[d]));return c}function k(c,d,n){if(i.isSupported(d.version))c.innerHTML=i.getHTML(d,n);else if(d.expressInstall&&i.isSupported([6,65]))c.innerHTML=i.getHTML(b(d,{src:d.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title});else{if(!c.innerHTML.replace(/\s/g,"")&&(c.innerHTML="<h2>Flash version "+d.version+
|
|
220
220
|
" or greater is required</h2><h3>"+(e[0]>0?"Your version is "+e:"You have no flash plugin installed")+"</h3>"+(c.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+a+"'>here</a></p>"),c.tagName=="A"))c.onclick=function(){location.href=a};if(d.onFail){var j=d.onFail.call(this);if(typeof j=="string")c.innerHTML=j}}h&&(window[d.id]=document.getElementById(d.id));b(this,{getRoot:function(){return c},getOptions:function(){return d},getConf:function(){return n},
|
|
@@ -222,9 +222,9 @@ getApi:function(){return c.firstChild}})}var h=document.all,a="http://www.adobe.
|
|
|
222
222
|
window.flashembed=function(a,c,d){typeof a=="string"&&(a=document.getElementById(a.replace("#","")));if(a)return typeof c=="string"&&(c={src:c}),new k(a,b(b({},g),c),d)};var i=b(window.flashembed,{conf:g,getVersion:function(){var b,a;try{a=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(d){try{a=(b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"))&&b.GetVariable("$version")}catch(e){try{a=(b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"))&&b.GetVariable("$version")}catch(g){}}}return(a=
|
|
223
223
|
c.exec(a))?[a[1],a[3]]:[0,0]},asString:function(b){if(b===null||b===void 0)return null;var a=typeof b;a=="object"&&b.push&&(a="array");switch(a){case "string":return b=b.replace(RegExp('(["\\\\])',"g"),"\\$1"),b=b.replace(/^\s?(\d+\.?\d+)%/,"$1pct"),'"'+b+'"';case "array":return"["+p(b,function(b){return i.asString(b)}).join(",")+"]";case "function":return'"function()"';case "object":var a=[],c;for(c in b)b.hasOwnProperty(c)&&a.push('"'+c+'":'+i.asString(b[c]));return"{"+a.join(",")+"}"}return String(b).replace(/\s/g,
|
|
224
224
|
" ").replace(/\'/g,'"')},getHTML:function(a,c){var a=b({},a),d='<object width="'+a.width+'" height="'+a.height+'" id="'+a.id+'" name="'+a.id+'"';a.cachebusting&&(a.src+=(a.src.indexOf("?")!=-1?"&":"?")+Math.random());d+=a.w3c||!h?' data="'+a.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';d+=">";if(a.w3c||h)d+='<param name="movie" value="'+a.src+'" />';a.width=a.height=a.id=a.w3c=a.src=null;a.onFail=a.version=a.expressInstall=null;for(var e in a)a[e]&&
|
|
225
|
-
(d+='<param name="'+e+'" value="'+a[e]+'" />');e="";if(c){for(var g in c)if(c[g]){var k=c[g];e+=g+"="+(/function|object/.test(typeof k)?i.asString(k):k)+"&"}e=e.slice(0,-1);d+='<param name="flashvars" value=\''+e+"' />"}d+="</object>";return d},isSupported:function(b){return e[0]>b[0]||e[0]==b[0]&&e[1]>=b[1]}}),e=i.getVersion();if(d)jQuery.tools=jQuery.tools||{version:"
|
|
225
|
+
(d+='<param name="'+e+'" value="'+a[e]+'" />');e="";if(c){for(var g in c)if(c[g]){var k=c[g];e+=g+"="+(/function|object/.test(typeof k)?i.asString(k):k)+"&"}e=e.slice(0,-1);d+='<param name="flashvars" value=\''+e+"' />"}d+="</object>";return d},isSupported:function(b){return e[0]>b[0]||e[0]==b[0]&&e[1]>=b[1]}}),e=i.getVersion();if(d)jQuery.tools=jQuery.tools||{version:"1.2.5"},jQuery.tools.flashembed={conf:g},jQuery.fn.flashembed=function(b,a){return this.each(function(){$(this).data("flashembed",
|
|
226
226
|
flashembed(this,b,a))})}})();
|
|
227
|
-
(function(b){function p(b){if(b){var a=h.contentWindow.document;a.open().close();a.location.hash=b}}var k,h,a,d;b.tools=b.tools||{version:"
|
|
227
|
+
(function(b){function p(b){if(b){var a=h.contentWindow.document;a.open().close();a.location.hash=b}}var k,h,a,d;b.tools=b.tools||{version:"1.2.5"};b.tools.history={init:function(c){d||(b.browser.msie&&b.browser.version<"8"?h||(h=b("<iframe/>").attr("src","javascript:false;").hide().get(0),b("body").append(h),setInterval(function(){var a=h.contentWindow.document.location.hash;k!==a&&b.event.trigger("hash",a)},100),p(location.hash||"#")):setInterval(function(){var a=location.hash;a!==k&&b.event.trigger("hash",
|
|
228
228
|
a)},100),a=!a?c:a.add(c),c.click(function(a){var c=b(this).attr("href");h&&p(c);if(c.slice(0,1)!="#")return location.href="#"+c,a.preventDefault()}),d=!0)}};b(window).bind("hash",function(c,d){d?a.filter(function(){var a=b(this).attr("href");return a==d||a==d.replace("#","")}).trigger("history",[d]):a.eq(0).trigger("history",[d]);k=d});b.fn.history=function(a){b.tools.history.init(this);return this.bind("history",a)}})(jQuery);
|
|
229
229
|
(function(b){function p(h){switch(h.type){case "mousemove":return b.extend(h.data,{clientX:h.clientX,clientY:h.clientY,pageX:h.pageX,pageY:h.pageY});case "DOMMouseScroll":b.extend(h,h.data);h.delta=-h.detail/3;break;case "mousewheel":h.delta=h.wheelDelta/120}h.type="wheel";return b.event.handle.call(this,h,h.delta)}b.fn.mousewheel=function(b){return this[b?"bind":"trigger"]("wheel",b)};b.event.special.wheel={setup:function(){b.event.add(this,k,p,{})},teardown:function(){b.event.remove(this,k,p)}};
|
|
230
230
|
var k=!b.browser.mozilla?"mousewheel":"DOMMouseScroll"+(b.browser.version<"1.9"?" mousemove":"")})(jQuery);
|
|
@@ -232,7 +232,7 @@ var k=!b.browser.mozilla?"mousewheel":"DOMMouseScroll"+(b.browser.version<"1.9"?
|
|
|
232
232
|
0,k=a.attr("title"),n=a.attr("data-tooltip"),j=h[d.effect],q,s=a.is(":input"),r=s&&a.is(":checkbox, :radio, select, :button, :submit"),z=a.attr("type"),l=d.events[z]||d.events[s?r?"widget":"input":"def"];if(!j)throw'Nonexistent effect "'+d.effect+'"';l=l.split(/,\s*/);if(l.length!=2)throw"Tooltip: bad events configuration for "+z;a.bind(l[0],function(b){clearTimeout(e);d.predelay?f=setTimeout(function(){c.show(b)},d.predelay):c.show(b)}).bind(l[1],function(b){clearTimeout(f);d.delay?e=setTimeout(function(){c.hide(b)},
|
|
233
233
|
d.delay):c.hide(b)});k&&d.cancelDefault&&(a.removeAttr("title"),a.data("title",k));b.extend(c,{show:function(h){if(!i&&(n?i=b(n):d.tip?i=b(d.tip).eq(0):k?i=b(d.layout).addClass(d.tipClass).appendTo(document.body).hide().append(k):(i=a.next(),i.length||(i=a.parent().next())),!i.length))throw"Cannot find tooltip for "+a;if(c.isShown())return c;i.stop(!0,!0);var o=p(a,i,d);d.tip&&i.html(a.data("title"));h=h||b.Event();h.type="onBeforeShow";g.trigger(h,[o]);if(h.isDefaultPrevented())return c;o=p(a,i,
|
|
234
234
|
d);i.css({position:"absolute",top:o.top,left:o.left});q=!0;j[0].call(c,function(){h.type="onShow";q="full";g.trigger(h)});o=d.events.tooltip.split(/,\s*/);i.data("__set")||(i.bind(o[0],function(){clearTimeout(e);clearTimeout(f)}),o[1]&&!a.is("input:not(:checkbox, :radio), textarea")&&i.bind(o[1],function(b){b.relatedTarget!=a[0]&&a.trigger(l[1].split(" ")[0])}),i.data("__set",!0));return c},hide:function(a){if(!i||!c.isShown())return c;a=a||b.Event();a.type="onBeforeHide";g.trigger(a);if(!a.isDefaultPrevented())return q=
|
|
235
|
-
!1,h[d.effect][1].call(c,function(){a.type="onHide";g.trigger(a)}),c},isShown:function(b){return b?q=="full":q},getConf:function(){return d},getTip:function(){return i},getTrigger:function(){return a}});b.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(a,e){b.isFunction(d[e])&&b(c).bind(e,d[e]);c[e]=function(a){a&&b(c).bind(e,a);return c}})}b.tools=b.tools||{version:"
|
|
235
|
+
!1,h[d.effect][1].call(c,function(){a.type="onHide";g.trigger(a)}),c},isShown:function(b){return b?q=="full":q},getConf:function(){return d},getTip:function(){return i},getTrigger:function(){return a}});b.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(a,e){b.isFunction(d[e])&&b(c).bind(e,d[e]);c[e]=function(a){a&&b(c).bind(e,a);return c}})}b.tools=b.tools||{version:"1.2.5"};b.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,position:["top",
|
|
236
236
|
"center"],offset:[0,0],relative:!1,cancelDefault:!0,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(a,b,c){h[a]=[b,c]}};var h={toggle:[function(b){var d=this.getConf(),c=this.getTip(),d=d.opacity;d<1&&c.css({opacity:d});c.show();b.call()},function(b){this.getTip().hide();b.call()}],fade:[function(b){var d=this.getConf();this.getTip().fadeTo(d.fadeInSpeed,d.opacity,
|
|
237
237
|
b)},function(b){this.getTip().fadeOut(this.getConf().fadeOutSpeed,b)}]};b.fn.tooltip=function(a){var d=this.data("tooltip");if(d)return d;a=b.extend(!0,{},b.tools.tooltip.conf,a);if(typeof a.position=="string")a.position=a.position.split(/,?\s/);this.each(function(){d=new k(b(this),a);b(this).data("tooltip",d)});return a.api?d:this}})(jQuery);
|
|
238
238
|
(function(b){var p=b.tools.tooltip;p.dynamic={conf:{classNames:"top right bottom left"}};b.fn.dynamic=function(k){typeof k=="number"&&(k={speed:k});var k=b.extend({},p.dynamic.conf,k),h=k.classNames.split(/\s/),a;this.each(function(){var d=b(this).tooltip().onBeforeShow(function(c,d){var i=this.getTip(),e=this.getConf();a||(a=[e.position[0],e.position[1],e.offset[0],e.offset[1],b.extend({},e)]);b.extend(e,a[4]);e.position=[a[0],a[1]];e.offset=[a[2],a[3]];i.css({visibility:"hidden",position:"absolute",
|
|
@@ -246,7 +246,7 @@ c,g),c.css({top:a.top,left:a.left}))});return h},invalidate:function(c,d){if(!d)
|
|
|
246
246
|
destroy:function(){d.unbind(g.formEvent+".V").unbind("reset.V");a.unbind(g.inputEvent+".V").unbind("change.V");return h.reset()},checkValidity:function(d,e){d=d||a;d=d.not(":disabled");if(!d.length)return!0;e=e||b.Event();e.type="onBeforeValidate";k.trigger(e,[d]);if(e.isDefaultPrevented())return e.result;var j=[];d.not(":radio:not(:checked)").each(function(){var a=[],d=b(this).data("messages",a),n=c&&d.is(":date")?"onHide.v":g.errorInputEvent+".v";d.unbind(n);b.each(f,function(){var b=this[0];if(d.filter(b).length){var c=
|
|
247
247
|
this[1].call(h,d,d.val());if(c!==!0){e.type="onBeforeFail";k.trigger(e,[d,b]);if(e.isDefaultPrevented())return!1;var f=d.attr(g.messageAttr);if(f)return a=[f],!1;else i(a,b,c)}}});a.length&&(j.push({input:d,messages:a}),d.trigger("OI",[a]),g.errorInputEvent&&d.bind(n,function(a){h.checkValidity(d,a)}));if(g.singleError&&j.length)return!1});var l=m[g.effect];if(!l)throw'Validator: cannot find effect "'+g.effect+'"';if(j.length)return h.invalidate(j,e),!1;else l[1].call(h,d,e),e.type="onSuccess",k.trigger(e,
|
|
248
248
|
[d]),d.unbind(g.errorInputEvent+".v");return!0}});b.each("onBeforeValidate,onBeforeFail,onFail,onSuccess".split(","),function(a,c){b.isFunction(g[c])&&b(h).bind(c,g[c]);h[c]=function(a){a&&b(h).bind(c,a);return h}});g.formEvent&&d.bind(g.formEvent+".V",function(a){if(!h.checkValidity(null,a))return a.preventDefault()});d.bind("reset.V",function(){h.reset()});a[0]&&a[0].validity&&a.each(function(){this.oninvalid=function(){return!1}});if(d[0])d[0].checkValidity=h.checkValidity;g.inputEvent&&a.bind(g.inputEvent+
|
|
249
|
-
".V",function(a){h.checkValidity(b(this),a)});a.filter(":checkbox, select").filter("[required]").bind("change.V",function(a){var c=b(this);(this.checked||c.is("select")&&b(this).val())&&m[g.effect][1].call(h,c,a)});var l=a.filter(":radio").change(function(a){h.checkValidity(l,a)});b(window).resize(function(){h.reflow()})}b.tools=b.tools||{version:"
|
|
249
|
+
".V",function(a){h.checkValidity(b(this),a)});a.filter(":checkbox, select").filter("[required]").bind("change.V",function(a){var c=b(this);(this.checked||c.is("select")&&b(this).val())&&m[g.effect][1].call(h,c,a)});var l=a.filter(":radio").change(function(a){h.checkValidity(l,a)});b(window).resize(function(){h.reflow()})}b.tools=b.tools||{version:"1.2.5"};var a=/\[type=([a-z]+)\]/,d=/^-?[0-9]*(\.[0-9]+)?$/,c=b.tools.dateinput,g=/^([a-z0-9_\.\-\+]+)@([\da-z\.\-]+)\.([a-z\.]{2,6})$/i,i=/^(https?:\/\/)?[\da-z\.\-]+\.[a-z\.]{2,6}[#&+_\?\/\w \.\-=]*$/i,
|
|
250
250
|
e;e=b.tools.validator={conf:{grouped:!1,effect:"default",errorClass:"invalid",inputEvent:null,errorInputEvent:"keyup",formEvent:"submit",lang:"en",message:"<div/>",messageAttr:"data-message",messageClass:"error",offset:[0,0],position:"center right",singleError:!1,speed:"normal"},messages:{"*":{en:"Please correct this value"}},localize:function(a,c){b.each(c,function(b,c){e.messages[b]=e.messages[b]||{};e.messages[b][a]=c})},localizeFn:function(a,c){e.messages[a]=e.messages[a]||{};b.extend(e.messages[a],
|
|
251
251
|
c)},fn:function(c,d,e){b.isFunction(d)?e=d:(typeof d=="string"&&(d={en:d}),this.messages[c.key||c]=d);(d=a.exec(c))&&(c=k(d[1]));f.push([c,e])},addEffect:function(a,b,c){m[a]=[b,c]}};var f=[],m={"default":[function(a){var c=this.getConf();b.each(a,function(a,d){var e=d.input;e.addClass(c.errorClass);var f=e.data("msg.el");f||(f=b(c.message).addClass(c.messageClass).appendTo(document.body),e.data("msg.el",f));f.css({visibility:"hidden"}).find("p").remove();b.each(d.messages,function(a,c){b("<p/>").html(c).appendTo(f)});
|
|
252
252
|
f.outerWidth()==f.parent().width()&&f.add(f.find("p")).css({display:"inline"});e=p(e,f,c);f.css({visibility:"visible",position:"absolute",top:e.top,left:e.left}).fadeIn(c.speed)})},function(a){var c=this.getConf();a.removeClass(c.errorClass).each(function(){var a=b(this).data("msg.el");a&&a.css({visibility:"hidden"})})}]};b.each("email,url,number".split(","),function(a,c){b.expr[":"][c]=function(a){return a.getAttribute("type")===c}});b.fn.oninvalid=function(a){return this[a?"bind":"trigger"]("OI",
|
|
@@ -4,814 +4,814 @@
|
|
|
4
4
|
|
|
5
5
|
var swfobject = function() {
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
7
|
+
var UNDEF = "undefined",
|
|
8
|
+
OBJECT = "object",
|
|
9
|
+
SHOCKWAVE_FLASH = "Shockwave Flash",
|
|
10
|
+
SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlash",
|
|
11
|
+
FLASH_MIME_TYPE = "application/x-shockwave-flash",
|
|
12
|
+
EXPRESS_INSTALL_ID = "SWFObjectExprInst",
|
|
13
|
+
ON_READY_STATE_CHANGE = "onreadystatechange",
|
|
14
|
+
|
|
15
|
+
win = window,
|
|
16
|
+
doc = document,
|
|
17
|
+
nav = navigator,
|
|
18
|
+
|
|
19
|
+
plugin = false,
|
|
20
|
+
domLoadFnArr = [main],
|
|
21
|
+
regObjArr = [],
|
|
22
|
+
objIdArr = [],
|
|
23
|
+
listenersArr = [],
|
|
24
|
+
storedAltContent,
|
|
25
|
+
storedAltContentId,
|
|
26
|
+
storedCallbackFn,
|
|
27
|
+
storedCallbackObj,
|
|
28
|
+
isDomLoaded = false,
|
|
29
|
+
isExpressInstallActive = false,
|
|
30
|
+
dynamicStylesheet,
|
|
31
|
+
dynamicStylesheetMedia,
|
|
32
|
+
autoHideShow = true,
|
|
33
|
+
|
|
34
|
+
/* Centralized function for browser feature detection
|
|
35
|
+
- User agent string detection is only used when no good alternative is possible
|
|
36
|
+
- Is executed directly for optimal performance
|
|
37
|
+
*/
|
|
38
|
+
ua = function() {
|
|
39
|
+
var w3cdom = typeof doc.getElementById != UNDEF && typeof doc.getElementsByTagName != UNDEF && typeof doc.createElement != UNDEF,
|
|
40
|
+
u = nav.userAgent.toLowerCase(),
|
|
41
|
+
p = nav.platform.toLowerCase(),
|
|
42
|
+
windows = p ? /win/.test(p) : /win/.test(u),
|
|
43
|
+
mac = p ? /mac/.test(p) : /mac/.test(u),
|
|
44
|
+
webkit = /webkit/.test(u) ? parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, // returns either the webkit version or false if not webkit
|
|
45
|
+
ie = !+"\v1", // feature detection based on Andrea Giammarchi's solution: http://webreflection.blogspot.com/2009/01/32-bytes-to-know-if-your-browser-is-ie.html
|
|
46
|
+
playerVersion = [0,0,0],
|
|
47
|
+
d = null;
|
|
48
|
+
if (typeof nav.plugins != UNDEF && typeof nav.plugins[SHOCKWAVE_FLASH] == OBJECT) {
|
|
49
|
+
d = nav.plugins[SHOCKWAVE_FLASH].description;
|
|
50
|
+
if (d && !(typeof nav.mimeTypes != UNDEF && nav.mimeTypes[FLASH_MIME_TYPE] && !nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)) { // navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin indicates whether plug-ins are enabled or disabled in Safari 3+
|
|
51
|
+
plugin = true;
|
|
52
|
+
ie = false; // cascaded feature detection for Internet Explorer
|
|
53
|
+
d = d.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
|
|
54
|
+
playerVersion[0] = parseInt(d.replace(/^(.*)\..*$/, "$1"), 10);
|
|
55
|
+
playerVersion[1] = parseInt(d.replace(/^.*\.(.*)\s.*$/, "$1"), 10);
|
|
56
|
+
playerVersion[2] = /[a-zA-Z]/.test(d) ? parseInt(d.replace(/^.*[a-zA-Z]+(.*)$/, "$1"), 10) : 0;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
else if (typeof win.ActiveXObject != UNDEF) {
|
|
60
|
+
try {
|
|
61
|
+
var a = new ActiveXObject(SHOCKWAVE_FLASH_AX);
|
|
62
|
+
if (a) { // a will return null when ActiveX is disabled
|
|
63
|
+
d = a.GetVariable("$version");
|
|
64
|
+
if (d) {
|
|
65
|
+
ie = true; // cascaded feature detection for Internet Explorer
|
|
66
|
+
d = d.split(" ")[1].split(",");
|
|
67
|
+
playerVersion = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];
|
|
68
|
+
}
|
|
58
69
|
}
|
|
59
|
-
|
|
70
|
+
}
|
|
71
|
+
catch(e) {
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return { w3:w3cdom, pv:playerVersion, wk:webkit, ie:ie, win:windows, mac:mac };
|
|
75
|
+
}(),
|
|
76
|
+
|
|
77
|
+
/* Cross-browser onDomLoad
|
|
78
|
+
- Will fire an event as soon as the DOM of a web page is loaded
|
|
79
|
+
- Internet Explorer workaround based on Diego Perini's solution: http://javascript.nwbox.com/IEContentLoaded/
|
|
80
|
+
- Regular onload serves as fallback
|
|
81
|
+
*/
|
|
82
|
+
onDomLoad = function() {
|
|
83
|
+
if (!ua.w3) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
if ((typeof doc.readyState != UNDEF && doc.readyState == "complete") || (typeof doc.readyState == UNDEF && (doc.getElementsByTagName("body")[0] || doc.body))) { // function is fired after onload, e.g. when script is inserted dynamically
|
|
87
|
+
callDomLoadFunctions();
|
|
88
|
+
}
|
|
89
|
+
if (!isDomLoaded) {
|
|
90
|
+
if (typeof doc.addEventListener != UNDEF) {
|
|
91
|
+
doc.addEventListener("DOMContentLoaded", callDomLoadFunctions, false);
|
|
92
|
+
}
|
|
93
|
+
if (ua.ie && ua.win) {
|
|
94
|
+
doc.attachEvent(ON_READY_STATE_CHANGE, function() {
|
|
95
|
+
if (doc.readyState == "complete") {
|
|
96
|
+
doc.detachEvent(ON_READY_STATE_CHANGE, arguments.callee);
|
|
97
|
+
callDomLoadFunctions();
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
if (win == top) { // if not inside an iframe
|
|
101
|
+
(function() {
|
|
102
|
+
if (isDomLoaded) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
60
105
|
try {
|
|
61
|
-
|
|
62
|
-
if (a) { // a will return null when ActiveX is disabled
|
|
63
|
-
d = a.GetVariable("$version");
|
|
64
|
-
if (d) {
|
|
65
|
-
ie = true; // cascaded feature detection for Internet Explorer
|
|
66
|
-
d = d.split(" ")[1].split(",");
|
|
67
|
-
playerVersion = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];
|
|
68
|
-
}
|
|
69
|
-
}
|
|
106
|
+
doc.documentElement.doScroll("left");
|
|
70
107
|
}
|
|
71
108
|
catch(e) {
|
|
109
|
+
setTimeout(arguments.callee, 0);
|
|
110
|
+
return;
|
|
72
111
|
}
|
|
73
|
-
}
|
|
74
|
-
return { w3:w3cdom, pv:playerVersion, wk:webkit, ie:ie, win:windows, mac:mac };
|
|
75
|
-
}(),
|
|
76
|
-
|
|
77
|
-
/* Cross-browser onDomLoad
|
|
78
|
-
- Will fire an event as soon as the DOM of a web page is loaded
|
|
79
|
-
- Internet Explorer workaround based on Diego Perini's solution: http://javascript.nwbox.com/IEContentLoaded/
|
|
80
|
-
- Regular onload serves as fallback
|
|
81
|
-
*/
|
|
82
|
-
onDomLoad = function() {
|
|
83
|
-
if (!ua.w3) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
if ((typeof doc.readyState != UNDEF && doc.readyState == "complete") || (typeof doc.readyState == UNDEF && (doc.getElementsByTagName("body")[0] || doc.body))) { // function is fired after onload, e.g. when script is inserted dynamically
|
|
87
112
|
callDomLoadFunctions();
|
|
113
|
+
})();
|
|
88
114
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
try {
|
|
106
|
-
doc.documentElement.doScroll("left");
|
|
107
|
-
}
|
|
108
|
-
catch(e) {
|
|
109
|
-
setTimeout(arguments.callee, 0);
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
callDomLoadFunctions();
|
|
113
|
-
})();
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
if (ua.wk) {
|
|
117
|
-
(function() {
|
|
118
|
-
if (isDomLoaded) {
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
if (!/loaded|complete/.test(doc.readyState)) {
|
|
122
|
-
setTimeout(arguments.callee, 0);
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
callDomLoadFunctions();
|
|
126
|
-
})();
|
|
127
|
-
}
|
|
128
|
-
addLoadEvent(callDomLoadFunctions);
|
|
129
|
-
}
|
|
130
|
-
}();
|
|
115
|
+
}
|
|
116
|
+
if (ua.wk) {
|
|
117
|
+
(function() {
|
|
118
|
+
if (isDomLoaded) {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
if (!/loaded|complete/.test(doc.readyState)) {
|
|
122
|
+
setTimeout(arguments.callee, 0);
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
callDomLoadFunctions();
|
|
126
|
+
})();
|
|
127
|
+
}
|
|
128
|
+
addLoadEvent(callDomLoadFunctions);
|
|
129
|
+
}
|
|
130
|
+
}();
|
|
131
131
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
try { // test if we can really add/remove elements to/from the DOM; we don't want to fire it too early
|
|
137
|
-
var t = doc.getElementsByTagName("body")[0].appendChild(createElement("span"));
|
|
138
|
-
t.parentNode.removeChild(t);
|
|
139
|
-
}
|
|
140
|
-
catch (e) {
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
isDomLoaded = true;
|
|
144
|
-
var dl = domLoadFnArr.length;
|
|
145
|
-
for (var i = 0; i < dl; i++) {
|
|
146
|
-
domLoadFnArr[i]();
|
|
147
|
-
}
|
|
132
|
+
function callDomLoadFunctions() {
|
|
133
|
+
if (isDomLoaded) {
|
|
134
|
+
return;
|
|
148
135
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
fn();
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
domLoadFnArr[domLoadFnArr.length] = fn; // Array.push() is only available in IE5.5+
|
|
156
|
-
}
|
|
136
|
+
try { // test if we can really add/remove elements to/from the DOM; we don't want to fire it too early
|
|
137
|
+
var t = doc.getElementsByTagName("body")[0].appendChild(createElement("span"));
|
|
138
|
+
t.parentNode.removeChild(t);
|
|
157
139
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
- Based on James Edwards' solution: http://brothercake.com/site/resources/scripts/onload/
|
|
161
|
-
- Will fire an event as soon as a web page including all of its assets are loaded
|
|
162
|
-
*/
|
|
163
|
-
function addLoadEvent(fn) {
|
|
164
|
-
if (typeof win.addEventListener != UNDEF) {
|
|
165
|
-
win.addEventListener("load", fn, false);
|
|
166
|
-
}
|
|
167
|
-
else if (typeof doc.addEventListener != UNDEF) {
|
|
168
|
-
doc.addEventListener("load", fn, false);
|
|
169
|
-
}
|
|
170
|
-
else if (typeof win.attachEvent != UNDEF) {
|
|
171
|
-
addListener(win, "onload", fn);
|
|
172
|
-
}
|
|
173
|
-
else if (typeof win.onload == "function") {
|
|
174
|
-
var fnOld = win.onload;
|
|
175
|
-
win.onload = function() {
|
|
176
|
-
fnOld();
|
|
177
|
-
fn();
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
else {
|
|
181
|
-
win.onload = fn;
|
|
182
|
-
}
|
|
140
|
+
catch (e) {
|
|
141
|
+
return;
|
|
183
142
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
function main() {
|
|
189
|
-
if (plugin) {
|
|
190
|
-
testPlayerVersion();
|
|
191
|
-
}
|
|
192
|
-
else {
|
|
193
|
-
matchVersions();
|
|
194
|
-
}
|
|
143
|
+
isDomLoaded = true;
|
|
144
|
+
var dl = domLoadFnArr.length;
|
|
145
|
+
for (var i = 0; i < dl; i++) {
|
|
146
|
+
domLoadFnArr[i]();
|
|
195
147
|
}
|
|
148
|
+
}
|
|
196
149
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
b. Avoid wrong descriptions by corrupt installers provided by Adobe
|
|
201
|
-
c. Avoid wrong descriptions by multiple Flash Player entries in the plugin Array, caused by incorrect browser imports
|
|
202
|
-
- Disadvantage of this method is that it depends on the availability of the DOM, while the plugins collection is immediately available
|
|
203
|
-
*/
|
|
204
|
-
function testPlayerVersion() {
|
|
205
|
-
var b = doc.getElementsByTagName("body")[0];
|
|
206
|
-
var o = createElement(OBJECT);
|
|
207
|
-
o.setAttribute("type", FLASH_MIME_TYPE);
|
|
208
|
-
var t = b.appendChild(o);
|
|
209
|
-
if (t) {
|
|
210
|
-
var counter = 0;
|
|
211
|
-
(function() {
|
|
212
|
-
if (typeof t.GetVariable != UNDEF) {
|
|
213
|
-
var d = t.GetVariable("$version");
|
|
214
|
-
if (d) {
|
|
215
|
-
d = d.split(" ")[1].split(",");
|
|
216
|
-
ua.pv = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
else if (counter < 10) {
|
|
220
|
-
counter++;
|
|
221
|
-
setTimeout(arguments.callee, 10);
|
|
222
|
-
return;
|
|
223
|
-
}
|
|
224
|
-
b.removeChild(o);
|
|
225
|
-
t = null;
|
|
226
|
-
matchVersions();
|
|
227
|
-
})();
|
|
228
|
-
}
|
|
229
|
-
else {
|
|
230
|
-
matchVersions();
|
|
231
|
-
}
|
|
150
|
+
function addDomLoadEvent(fn) {
|
|
151
|
+
if (isDomLoaded) {
|
|
152
|
+
fn();
|
|
232
153
|
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
*/
|
|
236
|
-
function matchVersions() {
|
|
237
|
-
var rl = regObjArr.length;
|
|
238
|
-
if (rl > 0) {
|
|
239
|
-
for (var i = 0; i < rl; i++) { // for each registered object element
|
|
240
|
-
var id = regObjArr[i].id;
|
|
241
|
-
var cb = regObjArr[i].callbackFn;
|
|
242
|
-
var cbObj = {success:false, id:id};
|
|
243
|
-
if (ua.pv[0] > 0) {
|
|
244
|
-
var obj = getElementById(id);
|
|
245
|
-
if (obj) {
|
|
246
|
-
if (hasPlayerVersion(regObjArr[i].swfVersion) && !(ua.wk && ua.wk < 312)) { // Flash Player version >= published SWF version: Houston, we have a match!
|
|
247
|
-
setVisibility(id, true);
|
|
248
|
-
if (cb) {
|
|
249
|
-
cbObj.success = true;
|
|
250
|
-
cbObj.ref = getObjectById(id);
|
|
251
|
-
cb(cbObj);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
else if (regObjArr[i].expressInstall && canExpressInstall()) { // show the Adobe Express Install dialog if set by the web page author and if supported
|
|
255
|
-
var att = {};
|
|
256
|
-
att.data = regObjArr[i].expressInstall;
|
|
257
|
-
att.width = obj.getAttribute("width") || "0";
|
|
258
|
-
att.height = obj.getAttribute("height") || "0";
|
|
259
|
-
if (obj.getAttribute("class")) {
|
|
260
|
-
att.styleclass = obj.getAttribute("class");
|
|
261
|
-
}
|
|
262
|
-
if (obj.getAttribute("align")) {
|
|
263
|
-
att.align = obj.getAttribute("align");
|
|
264
|
-
}
|
|
265
|
-
// parse HTML object param element's name-value pairs
|
|
266
|
-
var par = {};
|
|
267
|
-
var p = obj.getElementsByTagName("param");
|
|
268
|
-
var pl = p.length;
|
|
269
|
-
for (var j = 0; j < pl; j++) {
|
|
270
|
-
if (p[j].getAttribute("name").toLowerCase() != "movie") {
|
|
271
|
-
par[p[j].getAttribute("name")] = p[j].getAttribute("value");
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
showExpressInstall(att, par, id, cb);
|
|
275
|
-
}
|
|
276
|
-
else { // Flash Player and SWF version mismatch or an older Webkit engine that ignores the HTML object element's nested param elements: display alternative content instead of SWF
|
|
277
|
-
displayAltContent(obj);
|
|
278
|
-
if (cb) {
|
|
279
|
-
cb(cbObj);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
else { // if no Flash Player is installed or the fp version cannot be detected we let the HTML object element do its job (either show a SWF or alternative content)
|
|
285
|
-
setVisibility(id, true);
|
|
286
|
-
if (cb) {
|
|
287
|
-
var o = getObjectById(id); // test whether there is an HTML object element or not
|
|
288
|
-
if (o && typeof o.SetVariable != UNDEF) {
|
|
289
|
-
cbObj.success = true;
|
|
290
|
-
cbObj.ref = o;
|
|
291
|
-
}
|
|
292
|
-
cb(cbObj);
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
}
|
|
154
|
+
else {
|
|
155
|
+
domLoadFnArr[domLoadFnArr.length] = fn; // Array.push() is only available in IE5.5+
|
|
297
156
|
}
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
var n = o.getElementsByTagName(OBJECT)[0];
|
|
308
|
-
if (n) {
|
|
309
|
-
r = n;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
return r;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Cross-browser onload
|
|
160
|
+
- Based on James Edwards' solution: http://brothercake.com/site/resources/scripts/onload/
|
|
161
|
+
- Will fire an event as soon as a web page including all of its assets are loaded
|
|
162
|
+
*/
|
|
163
|
+
function addLoadEvent(fn) {
|
|
164
|
+
if (typeof win.addEventListener != UNDEF) {
|
|
165
|
+
win.addEventListener("load", fn, false);
|
|
314
166
|
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
- only one instance can be active at a time
|
|
318
|
-
- fp 6.0.65 or higher
|
|
319
|
-
- Win/Mac OS only
|
|
320
|
-
- no Webkit engines older than version 312
|
|
321
|
-
*/
|
|
322
|
-
function canExpressInstall() {
|
|
323
|
-
return !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac) && !(ua.wk && ua.wk < 312);
|
|
167
|
+
else if (typeof doc.addEventListener != UNDEF) {
|
|
168
|
+
doc.addEventListener("load", fn, false);
|
|
324
169
|
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
- Reference: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6a253b75
|
|
328
|
-
*/
|
|
329
|
-
function showExpressInstall(att, par, replaceElemIdStr, callbackFn) {
|
|
330
|
-
isExpressInstallActive = true;
|
|
331
|
-
storedCallbackFn = callbackFn || null;
|
|
332
|
-
storedCallbackObj = {success:false, id:replaceElemIdStr};
|
|
333
|
-
var obj = getElementById(replaceElemIdStr);
|
|
334
|
-
if (obj) {
|
|
335
|
-
if (obj.nodeName == "OBJECT") { // static publishing
|
|
336
|
-
storedAltContent = abstractAltContent(obj);
|
|
337
|
-
storedAltContentId = null;
|
|
338
|
-
}
|
|
339
|
-
else { // dynamic publishing
|
|
340
|
-
storedAltContent = obj;
|
|
341
|
-
storedAltContentId = replaceElemIdStr;
|
|
342
|
-
}
|
|
343
|
-
att.id = EXPRESS_INSTALL_ID;
|
|
344
|
-
if (typeof att.width == UNDEF || (!/%$/.test(att.width) && parseInt(att.width, 10) < 310)) {
|
|
345
|
-
att.width = "310";
|
|
346
|
-
}
|
|
347
|
-
if (typeof att.height == UNDEF || (!/%$/.test(att.height) && parseInt(att.height, 10) < 137)) {
|
|
348
|
-
att.height = "137";
|
|
349
|
-
}
|
|
350
|
-
doc.title = doc.title.slice(0, 47) + " - Flash Player Installation";
|
|
351
|
-
var pt = ua.ie && ua.win ? "ActiveX" : "PlugIn",
|
|
352
|
-
fv = "MMredirectURL=" + win.location.toString().replace(/&/g, "%26") + "&MMplayerType=" + pt + "&MMdoctitle=" + doc.title;
|
|
353
|
-
if (typeof par.flashvars != UNDEF) {
|
|
354
|
-
par.flashvars += "&" + fv;
|
|
355
|
-
}
|
|
356
|
-
else {
|
|
357
|
-
par.flashvars = fv;
|
|
358
|
-
}
|
|
359
|
-
// IE only: when a SWF is loading (AND: not available in cache) wait for the readyState of the object element to become 4 before removing it,
|
|
360
|
-
// because you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
|
|
361
|
-
if (ua.ie && ua.win && obj.readyState != 4) {
|
|
362
|
-
var newObj = createElement("div");
|
|
363
|
-
replaceElemIdStr += "SWFObjectNew";
|
|
364
|
-
newObj.setAttribute("id", replaceElemIdStr);
|
|
365
|
-
obj.parentNode.insertBefore(newObj, obj); // insert placeholder div that will be replaced by the object element that loads expressinstall.swf
|
|
366
|
-
obj.style.display = "none";
|
|
367
|
-
(function() {
|
|
368
|
-
if (obj.readyState == 4) {
|
|
369
|
-
obj.parentNode.removeChild(obj);
|
|
370
|
-
}
|
|
371
|
-
else {
|
|
372
|
-
setTimeout(arguments.callee, 10);
|
|
373
|
-
}
|
|
374
|
-
})();
|
|
375
|
-
}
|
|
376
|
-
createSWF(att, par, replaceElemIdStr);
|
|
377
|
-
}
|
|
170
|
+
else if (typeof win.attachEvent != UNDEF) {
|
|
171
|
+
addListener(win, "onload", fn);
|
|
378
172
|
}
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
// because you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
|
|
386
|
-
var el = createElement("div");
|
|
387
|
-
obj.parentNode.insertBefore(el, obj); // insert placeholder div that will be replaced by the alternative content
|
|
388
|
-
el.parentNode.replaceChild(abstractAltContent(obj), el);
|
|
389
|
-
obj.style.display = "none";
|
|
390
|
-
(function() {
|
|
391
|
-
if (obj.readyState == 4) {
|
|
392
|
-
obj.parentNode.removeChild(obj);
|
|
393
|
-
}
|
|
394
|
-
else {
|
|
395
|
-
setTimeout(arguments.callee, 10);
|
|
396
|
-
}
|
|
397
|
-
})();
|
|
398
|
-
}
|
|
399
|
-
else {
|
|
400
|
-
obj.parentNode.replaceChild(abstractAltContent(obj), obj);
|
|
401
|
-
}
|
|
173
|
+
else if (typeof win.onload == "function") {
|
|
174
|
+
var fnOld = win.onload;
|
|
175
|
+
win.onload = function() {
|
|
176
|
+
fnOld();
|
|
177
|
+
fn();
|
|
178
|
+
};
|
|
402
179
|
}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
var ac = createElement("div");
|
|
406
|
-
if (ua.win && ua.ie) {
|
|
407
|
-
ac.innerHTML = obj.innerHTML;
|
|
408
|
-
}
|
|
409
|
-
else {
|
|
410
|
-
var nestedObj = obj.getElementsByTagName(OBJECT)[0];
|
|
411
|
-
if (nestedObj) {
|
|
412
|
-
var c = nestedObj.childNodes;
|
|
413
|
-
if (c) {
|
|
414
|
-
var cl = c.length;
|
|
415
|
-
for (var i = 0; i < cl; i++) {
|
|
416
|
-
if (!(c[i].nodeType == 1 && c[i].nodeName == "PARAM") && !(c[i].nodeType == 8)) {
|
|
417
|
-
ac.appendChild(c[i].cloneNode(true));
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
return ac;
|
|
180
|
+
else {
|
|
181
|
+
win.onload = fn;
|
|
424
182
|
}
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/* Main function
|
|
186
|
+
- Will preferably execute onDomLoad, otherwise onload (as a fallback)
|
|
187
|
+
*/
|
|
188
|
+
function main() {
|
|
189
|
+
if (plugin) {
|
|
190
|
+
testPlayerVersion();
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
matchVersions();
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/* Detect the Flash Player version for non-Internet Explorer browsers
|
|
198
|
+
- Detecting the plug-in version via the object element is more precise than using the plugins collection item's description:
|
|
199
|
+
a. Both release and build numbers can be detected
|
|
200
|
+
b. Avoid wrong descriptions by corrupt installers provided by Adobe
|
|
201
|
+
c. Avoid wrong descriptions by multiple Flash Player entries in the plugin Array, caused by incorrect browser imports
|
|
202
|
+
- Disadvantage of this method is that it depends on the availability of the DOM, while the plugins collection is immediately available
|
|
203
|
+
*/
|
|
204
|
+
function testPlayerVersion() {
|
|
205
|
+
var b = doc.getElementsByTagName("body")[0];
|
|
206
|
+
var o = createElement(OBJECT);
|
|
207
|
+
o.setAttribute("type", FLASH_MIME_TYPE);
|
|
208
|
+
var t = b.appendChild(o);
|
|
209
|
+
if (t) {
|
|
210
|
+
var counter = 0;
|
|
211
|
+
(function() {
|
|
212
|
+
if (typeof t.GetVariable != UNDEF) {
|
|
213
|
+
var d = t.GetVariable("$version");
|
|
214
|
+
if (d) {
|
|
215
|
+
d = d.split(" ")[1].split(",");
|
|
216
|
+
ua.pv = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
else if (counter < 10) {
|
|
220
|
+
counter++;
|
|
221
|
+
setTimeout(arguments.callee, 10);
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
b.removeChild(o);
|
|
225
|
+
t = null;
|
|
226
|
+
matchVersions();
|
|
227
|
+
})();
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
matchVersions();
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* Perform Flash Player and SWF version matching; static publishing only
|
|
235
|
+
*/
|
|
236
|
+
function matchVersions() {
|
|
237
|
+
var rl = regObjArr.length;
|
|
238
|
+
if (rl > 0) {
|
|
239
|
+
for (var i = 0; i < rl; i++) { // for each registered object element
|
|
240
|
+
var id = regObjArr[i].id;
|
|
241
|
+
var cb = regObjArr[i].callbackFn;
|
|
242
|
+
var cbObj = {success:false, id:id};
|
|
243
|
+
if (ua.pv[0] > 0) {
|
|
244
|
+
var obj = getElementById(id);
|
|
245
|
+
if (obj) {
|
|
246
|
+
if (hasPlayerVersion(regObjArr[i].swfVersion) && !(ua.wk && ua.wk < 312)) { // Flash Player version >= published SWF version: Houston, we have a match!
|
|
247
|
+
setVisibility(id, true);
|
|
248
|
+
if (cb) {
|
|
249
|
+
cbObj.success = true;
|
|
250
|
+
cbObj.ref = getObjectById(id);
|
|
251
|
+
cb(cbObj);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
else if (regObjArr[i].expressInstall && canExpressInstall()) { // show the Adobe Express Install dialog if set by the web page author and if supported
|
|
255
|
+
var att = {};
|
|
256
|
+
att.data = regObjArr[i].expressInstall;
|
|
257
|
+
att.width = obj.getAttribute("width") || "0";
|
|
258
|
+
att.height = obj.getAttribute("height") || "0";
|
|
259
|
+
if (obj.getAttribute("class")) {
|
|
260
|
+
att.styleclass = obj.getAttribute("class");
|
|
261
|
+
}
|
|
262
|
+
if (obj.getAttribute("align")) {
|
|
263
|
+
att.align = obj.getAttribute("align");
|
|
264
|
+
}
|
|
265
|
+
// parse HTML object param element's name-value pairs
|
|
266
|
+
var par = {};
|
|
267
|
+
var p = obj.getElementsByTagName("param");
|
|
268
|
+
var pl = p.length;
|
|
269
|
+
for (var j = 0; j < pl; j++) {
|
|
270
|
+
if (p[j].getAttribute("name").toLowerCase() != "movie") {
|
|
271
|
+
par[p[j].getAttribute("name")] = p[j].getAttribute("value");
|
|
457
272
|
}
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
r = getElementById(attObj.id);
|
|
273
|
+
}
|
|
274
|
+
showExpressInstall(att, par, id, cb);
|
|
461
275
|
}
|
|
462
|
-
else { //
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
if (m.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
|
|
468
|
-
o.setAttribute("class", attObj[m]);
|
|
469
|
-
}
|
|
470
|
-
else if (m.toLowerCase() != "classid") { // filter out IE specific attribute
|
|
471
|
-
o.setAttribute(m, attObj[m]);
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
for (var n in parObj) {
|
|
476
|
-
if (parObj[n] != Object.prototype[n] && n.toLowerCase() != "movie") { // filter out prototype additions from other potential libraries and IE specific param element
|
|
477
|
-
createObjParam(o, n, parObj[n]);
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
el.parentNode.replaceChild(o, el);
|
|
481
|
-
r = o;
|
|
276
|
+
else { // Flash Player and SWF version mismatch or an older Webkit engine that ignores the HTML object element's nested param elements: display alternative content instead of SWF
|
|
277
|
+
displayAltContent(obj);
|
|
278
|
+
if (cb) {
|
|
279
|
+
cb(cbObj);
|
|
280
|
+
}
|
|
482
281
|
}
|
|
282
|
+
}
|
|
483
283
|
}
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
el.appendChild(p);
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
/* Cross-browser SWF removal
|
|
495
|
-
- Especially needed to safely and completely remove a SWF in Internet Explorer
|
|
496
|
-
*/
|
|
497
|
-
function removeSWF(id) {
|
|
498
|
-
var obj = getElementById(id);
|
|
499
|
-
if (obj && obj.nodeName == "OBJECT") {
|
|
500
|
-
if (ua.ie && ua.win) {
|
|
501
|
-
obj.style.display = "none";
|
|
502
|
-
(function() {
|
|
503
|
-
if (obj.readyState == 4) {
|
|
504
|
-
removeObjectInIE(id);
|
|
505
|
-
}
|
|
506
|
-
else {
|
|
507
|
-
setTimeout(arguments.callee, 10);
|
|
508
|
-
}
|
|
509
|
-
})();
|
|
510
|
-
}
|
|
511
|
-
else {
|
|
512
|
-
obj.parentNode.removeChild(obj);
|
|
284
|
+
else { // if no Flash Player is installed or the fp version cannot be detected we let the HTML object element do its job (either show a SWF or alternative content)
|
|
285
|
+
setVisibility(id, true);
|
|
286
|
+
if (cb) {
|
|
287
|
+
var o = getObjectById(id); // test whether there is an HTML object element or not
|
|
288
|
+
if (o && typeof o.SetVariable != UNDEF) {
|
|
289
|
+
cbObj.success = true;
|
|
290
|
+
cbObj.ref = o;
|
|
513
291
|
}
|
|
292
|
+
cb(cbObj);
|
|
293
|
+
}
|
|
514
294
|
}
|
|
295
|
+
}
|
|
515
296
|
}
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
function getObjectById(objectIdStr) {
|
|
300
|
+
var r = null;
|
|
301
|
+
var o = getElementById(objectIdStr);
|
|
302
|
+
if (o && o.nodeName == "OBJECT") {
|
|
303
|
+
if (typeof o.SetVariable != UNDEF) {
|
|
304
|
+
r = o;
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
var n = o.getElementsByTagName(OBJECT)[0];
|
|
308
|
+
if (n) {
|
|
309
|
+
r = n;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
return r;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/* Requirements for Adobe Express Install
|
|
317
|
+
- only one instance can be active at a time
|
|
318
|
+
- fp 6.0.65 or higher
|
|
319
|
+
- Win/Mac OS only
|
|
320
|
+
- no Webkit engines older than version 312
|
|
321
|
+
*/
|
|
322
|
+
function canExpressInstall() {
|
|
323
|
+
return !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac) && !(ua.wk && ua.wk < 312);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/* Show the Adobe Express Install dialog
|
|
327
|
+
- Reference: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6a253b75
|
|
328
|
+
*/
|
|
329
|
+
function showExpressInstall(att, par, replaceElemIdStr, callbackFn) {
|
|
330
|
+
isExpressInstallActive = true;
|
|
331
|
+
storedCallbackFn = callbackFn || null;
|
|
332
|
+
storedCallbackObj = {success:false, id:replaceElemIdStr};
|
|
333
|
+
var obj = getElementById(replaceElemIdStr);
|
|
334
|
+
if (obj) {
|
|
335
|
+
if (obj.nodeName == "OBJECT") { // static publishing
|
|
336
|
+
storedAltContent = abstractAltContent(obj);
|
|
337
|
+
storedAltContentId = null;
|
|
338
|
+
}
|
|
339
|
+
else { // dynamic publishing
|
|
340
|
+
storedAltContent = obj;
|
|
341
|
+
storedAltContentId = replaceElemIdStr;
|
|
342
|
+
}
|
|
343
|
+
att.id = EXPRESS_INSTALL_ID;
|
|
344
|
+
if (typeof att.width == UNDEF || (!/%$/.test(att.width) && parseInt(att.width, 10) < 310)) {
|
|
345
|
+
att.width = "310";
|
|
346
|
+
}
|
|
347
|
+
if (typeof att.height == UNDEF || (!/%$/.test(att.height) && parseInt(att.height, 10) < 137)) {
|
|
348
|
+
att.height = "137";
|
|
349
|
+
}
|
|
350
|
+
doc.title = doc.title.slice(0, 47) + " - Flash Player Installation";
|
|
351
|
+
var pt = ua.ie && ua.win ? "ActiveX" : "PlugIn",
|
|
352
|
+
fv = "MMredirectURL=" + win.location.toString().replace(/&/g, "%26") + "&MMplayerType=" + pt + "&MMdoctitle=" + doc.title;
|
|
353
|
+
if (typeof par.flashvars != UNDEF) {
|
|
354
|
+
par.flashvars += "&" + fv;
|
|
355
|
+
}
|
|
356
|
+
else {
|
|
357
|
+
par.flashvars = fv;
|
|
358
|
+
}
|
|
359
|
+
// IE only: when a SWF is loading (AND: not available in cache) wait for the readyState of the object element to become 4 before removing it,
|
|
360
|
+
// because you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
|
|
361
|
+
if (ua.ie && ua.win && obj.readyState != 4) {
|
|
362
|
+
var newObj = createElement("div");
|
|
363
|
+
replaceElemIdStr += "SWFObjectNew";
|
|
364
|
+
newObj.setAttribute("id", replaceElemIdStr);
|
|
365
|
+
obj.parentNode.insertBefore(newObj, obj); // insert placeholder div that will be replaced by the object element that loads expressinstall.swf
|
|
366
|
+
obj.style.display = "none";
|
|
367
|
+
(function() {
|
|
368
|
+
if (obj.readyState == 4) {
|
|
525
369
|
obj.parentNode.removeChild(obj);
|
|
526
|
-
|
|
370
|
+
}
|
|
371
|
+
else {
|
|
372
|
+
setTimeout(arguments.callee, 10);
|
|
373
|
+
}
|
|
374
|
+
})();
|
|
375
|
+
}
|
|
376
|
+
createSWF(att, par, replaceElemIdStr);
|
|
527
377
|
}
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/* Functions to abstract and display alternative content
|
|
381
|
+
*/
|
|
382
|
+
function displayAltContent(obj) {
|
|
383
|
+
if (ua.ie && ua.win && obj.readyState != 4) {
|
|
384
|
+
// IE only: when a SWF is loading (AND: not available in cache) wait for the readyState of the object element to become 4 before removing it,
|
|
385
|
+
// because you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
|
|
386
|
+
var el = createElement("div");
|
|
387
|
+
obj.parentNode.insertBefore(el, obj); // insert placeholder div that will be replaced by the alternative content
|
|
388
|
+
el.parentNode.replaceChild(abstractAltContent(obj), el);
|
|
389
|
+
obj.style.display = "none";
|
|
390
|
+
(function() {
|
|
391
|
+
if (obj.readyState == 4) {
|
|
392
|
+
obj.parentNode.removeChild(obj);
|
|
535
393
|
}
|
|
536
|
-
|
|
394
|
+
else {
|
|
395
|
+
setTimeout(arguments.callee, 10);
|
|
537
396
|
}
|
|
538
|
-
|
|
397
|
+
})();
|
|
539
398
|
}
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
return doc.createElement(el);
|
|
399
|
+
else {
|
|
400
|
+
obj.parentNode.replaceChild(abstractAltContent(obj), obj);
|
|
543
401
|
}
|
|
402
|
+
}
|
|
544
403
|
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
target.attachEvent(eventType, fn);
|
|
550
|
-
listenersArr[listenersArr.length] = [target, eventType, fn];
|
|
404
|
+
function abstractAltContent(obj) {
|
|
405
|
+
var ac = createElement("div");
|
|
406
|
+
if (ua.win && ua.ie) {
|
|
407
|
+
ac.innerHTML = obj.innerHTML;
|
|
551
408
|
}
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
409
|
+
else {
|
|
410
|
+
var nestedObj = obj.getElementsByTagName(OBJECT)[0];
|
|
411
|
+
if (nestedObj) {
|
|
412
|
+
var c = nestedObj.childNodes;
|
|
413
|
+
if (c) {
|
|
414
|
+
var cl = c.length;
|
|
415
|
+
for (var i = 0; i < cl; i++) {
|
|
416
|
+
if (!(c[i].nodeType == 1 && c[i].nodeName == "PARAM") && !(c[i].nodeType == 8)) {
|
|
417
|
+
ac.appendChild(c[i].cloneNode(true));
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
561
422
|
}
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
423
|
+
return ac;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/* Cross-browser dynamic SWF creation
|
|
427
|
+
*/
|
|
428
|
+
function createSWF(attObj, parObj, id) {
|
|
429
|
+
var r, el = getElementById(id);
|
|
430
|
+
if (ua.wk && ua.wk < 312) {
|
|
431
|
+
return r;
|
|
432
|
+
}
|
|
433
|
+
if (el) {
|
|
434
|
+
if (typeof attObj.id == UNDEF) { // if no 'id' is defined for the object element, it will inherit the 'id' from the alternative content
|
|
435
|
+
attObj.id = id;
|
|
436
|
+
}
|
|
437
|
+
if (ua.ie && ua.win) { // Internet Explorer + the HTML object element + W3C DOM methods do not combine: fall back to outerHTML
|
|
438
|
+
var att = "";
|
|
439
|
+
for (var i in attObj) {
|
|
440
|
+
if (attObj[i] != Object.prototype[i]) { // filter out prototype additions from other potential libraries
|
|
441
|
+
if (i.toLowerCase() == "data") {
|
|
442
|
+
parObj.movie = attObj[i];
|
|
443
|
+
}
|
|
444
|
+
else if (i.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
|
|
445
|
+
att += ' class="' + attObj[i] + '"';
|
|
446
|
+
}
|
|
447
|
+
else if (i.toLowerCase() != "classid") {
|
|
448
|
+
att += ' ' + i + '="' + attObj[i] + '"';
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
var par = "";
|
|
453
|
+
for (var j in parObj) {
|
|
454
|
+
if (parObj[j] != Object.prototype[j]) { // filter out prototype additions from other potential libraries
|
|
455
|
+
par += '<param name="' + j + '" value="' + parObj[j] + '" />';
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
el.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + att + '>' + par + '</object>';
|
|
459
|
+
objIdArr[objIdArr.length] = attObj.id; // stored to fix object 'leaks' on unload (dynamic publishing only)
|
|
460
|
+
r = getElementById(attObj.id);
|
|
461
|
+
}
|
|
462
|
+
else { // well-behaving browsers
|
|
463
|
+
var o = createElement(OBJECT);
|
|
464
|
+
o.setAttribute("type", FLASH_MIME_TYPE);
|
|
465
|
+
for (var m in attObj) {
|
|
466
|
+
if (attObj[m] != Object.prototype[m]) { // filter out prototype additions from other potential libraries
|
|
467
|
+
if (m.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
|
|
468
|
+
o.setAttribute("class", attObj[m]);
|
|
587
469
|
}
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
// add style rule
|
|
591
|
-
if (ua.ie && ua.win) {
|
|
592
|
-
if (dynamicStylesheet && typeof dynamicStylesheet.addRule == OBJECT) {
|
|
593
|
-
dynamicStylesheet.addRule(sel, decl);
|
|
470
|
+
else if (m.toLowerCase() != "classid") { // filter out IE specific attribute
|
|
471
|
+
o.setAttribute(m, attObj[m]);
|
|
594
472
|
}
|
|
473
|
+
}
|
|
595
474
|
}
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
475
|
+
for (var n in parObj) {
|
|
476
|
+
if (parObj[n] != Object.prototype[n] && n.toLowerCase() != "movie") { // filter out prototype additions from other potential libraries and IE specific param element
|
|
477
|
+
createObjParam(o, n, parObj[n]);
|
|
478
|
+
}
|
|
600
479
|
}
|
|
480
|
+
el.parentNode.replaceChild(o, el);
|
|
481
|
+
r = o;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
return r;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
function createObjParam(el, pName, pValue) {
|
|
488
|
+
var p = createElement("param");
|
|
489
|
+
p.setAttribute("name", pName);
|
|
490
|
+
p.setAttribute("value", pValue);
|
|
491
|
+
el.appendChild(p);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/* Cross-browser SWF removal
|
|
495
|
+
- Especially needed to safely and completely remove a SWF in Internet Explorer
|
|
496
|
+
*/
|
|
497
|
+
function removeSWF(id) {
|
|
498
|
+
var obj = getElementById(id);
|
|
499
|
+
if (obj && obj.nodeName == "OBJECT") {
|
|
500
|
+
if (ua.ie && ua.win) {
|
|
501
|
+
obj.style.display = "none";
|
|
502
|
+
(function() {
|
|
503
|
+
if (obj.readyState == 4) {
|
|
504
|
+
removeObjectInIE(id);
|
|
505
|
+
}
|
|
506
|
+
else {
|
|
507
|
+
setTimeout(arguments.callee, 10);
|
|
508
|
+
}
|
|
509
|
+
})();
|
|
510
|
+
}
|
|
511
|
+
else {
|
|
512
|
+
obj.parentNode.removeChild(obj);
|
|
513
|
+
}
|
|
601
514
|
}
|
|
515
|
+
}
|
|
602
516
|
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
getElementById(id).style.visibility = v;
|
|
610
|
-
}
|
|
611
|
-
else {
|
|
612
|
-
createCSS("#" + id, "visibility:" + v);
|
|
517
|
+
function removeObjectInIE(id) {
|
|
518
|
+
var obj = getElementById(id);
|
|
519
|
+
if (obj) {
|
|
520
|
+
for (var i in obj) {
|
|
521
|
+
if (typeof obj[i] == "function") {
|
|
522
|
+
obj[i] = null;
|
|
613
523
|
}
|
|
524
|
+
}
|
|
525
|
+
obj.parentNode.removeChild(obj);
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/* Functions to optimize JavaScript compression
|
|
530
|
+
*/
|
|
531
|
+
function getElementById(id) {
|
|
532
|
+
var el = null;
|
|
533
|
+
try {
|
|
534
|
+
el = doc.getElementById(id);
|
|
535
|
+
}
|
|
536
|
+
catch (e) {
|
|
537
|
+
}
|
|
538
|
+
return el;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
function createElement(el) {
|
|
542
|
+
return doc.createElement(el);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/* Updated attachEvent function for Internet Explorer
|
|
546
|
+
- Stores attachEvent information in an Array, so on unload the detachEvent functions can be called to avoid memory leaks
|
|
547
|
+
*/
|
|
548
|
+
function addListener(target, eventType, fn) {
|
|
549
|
+
target.attachEvent(eventType, fn);
|
|
550
|
+
listenersArr[listenersArr.length] = [target, eventType, fn];
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/* Flash Player and SWF content version matching
|
|
554
|
+
*/
|
|
555
|
+
function hasPlayerVersion(rv) {
|
|
556
|
+
var pv = ua.pv, v = rv.split(".");
|
|
557
|
+
v[0] = parseInt(v[0], 10);
|
|
558
|
+
v[1] = parseInt(v[1], 10) || 0; // supports short notation, e.g. "9" instead of "9.0.0"
|
|
559
|
+
v[2] = parseInt(v[2], 10) || 0;
|
|
560
|
+
return (pv[0] > v[0] || (pv[0] == v[0] && pv[1] > v[1]) || (pv[0] == v[0] && pv[1] == v[1] && pv[2] >= v[2])) ? true : false;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
/* Cross-browser dynamic CSS creation
|
|
564
|
+
- Based on Bobby van der Sluis' solution: http://www.bobbyvandersluis.com/articles/dynamicCSS.php
|
|
565
|
+
*/
|
|
566
|
+
function createCSS(sel, decl, media, newStyle) {
|
|
567
|
+
if (ua.ie && ua.mac) {
|
|
568
|
+
return;
|
|
569
|
+
}
|
|
570
|
+
var h = doc.getElementsByTagName("head")[0];
|
|
571
|
+
if (!h) {
|
|
572
|
+
return;
|
|
573
|
+
} // to also support badly authored HTML pages that lack a head element
|
|
574
|
+
var m = (media && typeof media == "string") ? media : "screen";
|
|
575
|
+
if (newStyle) {
|
|
576
|
+
dynamicStylesheet = null;
|
|
577
|
+
dynamicStylesheetMedia = null;
|
|
578
|
+
}
|
|
579
|
+
if (!dynamicStylesheet || dynamicStylesheetMedia != m) {
|
|
580
|
+
// create dynamic stylesheet + get a global reference to it
|
|
581
|
+
var s = createElement("style");
|
|
582
|
+
s.setAttribute("type", "text/css");
|
|
583
|
+
s.setAttribute("media", m);
|
|
584
|
+
dynamicStylesheet = h.appendChild(s);
|
|
585
|
+
if (ua.ie && ua.win && typeof doc.styleSheets != UNDEF && doc.styleSheets.length > 0) {
|
|
586
|
+
dynamicStylesheet = doc.styleSheets[doc.styleSheets.length - 1];
|
|
587
|
+
}
|
|
588
|
+
dynamicStylesheetMedia = m;
|
|
614
589
|
}
|
|
590
|
+
// add style rule
|
|
591
|
+
if (ua.ie && ua.win) {
|
|
592
|
+
if (dynamicStylesheet && typeof dynamicStylesheet.addRule == OBJECT) {
|
|
593
|
+
dynamicStylesheet.addRule(sel, decl);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
else {
|
|
597
|
+
if (dynamicStylesheet && typeof doc.createTextNode != UNDEF) {
|
|
598
|
+
dynamicStylesheet.appendChild(doc.createTextNode(sel + " {" + decl + "}"));
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
}
|
|
615
602
|
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
603
|
+
function setVisibility(id, isVisible) {
|
|
604
|
+
if (!autoHideShow) {
|
|
605
|
+
return;
|
|
606
|
+
}
|
|
607
|
+
var v = isVisible ? "visible" : "hidden";
|
|
608
|
+
if (isDomLoaded && getElementById(id)) {
|
|
609
|
+
getElementById(id).style.visibility = v;
|
|
622
610
|
}
|
|
611
|
+
else {
|
|
612
|
+
createCSS("#" + id, "visibility:" + v);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
/* Filter to avoid XSS attacks
|
|
617
|
+
*/
|
|
618
|
+
function urlEncodeIfNecessary(s) {
|
|
619
|
+
var regex = /[\\\"<>\.;]/;
|
|
620
|
+
var hasBadChars = regex.exec(s) != null;
|
|
621
|
+
return hasBadChars && typeof encodeURIComponent != UNDEF ? encodeURIComponent(s) : s;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/* Release memory to avoid memory leaks caused by closures, fix hanging audio/video threads and force open sockets/NetConnections to disconnect (Internet Explorer only)
|
|
625
|
+
*/
|
|
626
|
+
var cleanup = function() {
|
|
627
|
+
if (ua.ie && ua.win) {
|
|
628
|
+
window.attachEvent("onunload", function() {
|
|
629
|
+
// remove listeners to avoid memory leaks
|
|
630
|
+
var ll = listenersArr.length;
|
|
631
|
+
for (var i = 0; i < ll; i++) {
|
|
632
|
+
listenersArr[i][0].detachEvent(listenersArr[i][1], listenersArr[i][2]);
|
|
633
|
+
}
|
|
634
|
+
// cleanup dynamically embedded objects to fix audio/video threads and force open sockets and NetConnections to disconnect
|
|
635
|
+
var il = objIdArr.length;
|
|
636
|
+
for (var j = 0; j < il; j++) {
|
|
637
|
+
removeSWF(objIdArr[j]);
|
|
638
|
+
}
|
|
639
|
+
// cleanup library's main closures to avoid memory leaks
|
|
640
|
+
for (var k in ua) {
|
|
641
|
+
ua[k] = null;
|
|
642
|
+
}
|
|
643
|
+
ua = null;
|
|
644
|
+
for (var l in swfobject) {
|
|
645
|
+
swfobject[l] = null;
|
|
646
|
+
}
|
|
647
|
+
swfobject = null;
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
}();
|
|
623
651
|
|
|
624
|
-
|
|
652
|
+
return {
|
|
653
|
+
/* Public API
|
|
654
|
+
- Reference: http://code.google.com/p/swfobject/wiki/documentation
|
|
625
655
|
*/
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
getQueryParamValue: function(param) {
|
|
779
|
-
var q = doc.location.search || doc.location.hash;
|
|
780
|
-
if (q) {
|
|
781
|
-
if (/\?/.test(q)) {
|
|
782
|
-
q = q.split("?")[1];
|
|
783
|
-
} // strip question mark
|
|
784
|
-
if (param == null) {
|
|
785
|
-
return urlEncodeIfNecessary(q);
|
|
786
|
-
}
|
|
787
|
-
var pairs = q.split("&");
|
|
788
|
-
for (var i = 0; i < pairs.length; i++) {
|
|
789
|
-
if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
|
|
790
|
-
return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=") + 1)));
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
return "";
|
|
795
|
-
},
|
|
796
|
-
|
|
797
|
-
// For internal usage only
|
|
798
|
-
expressInstallCallback: function() {
|
|
799
|
-
if (isExpressInstallActive) {
|
|
800
|
-
var obj = getElementById(EXPRESS_INSTALL_ID);
|
|
801
|
-
if (obj && storedAltContent) {
|
|
802
|
-
obj.parentNode.replaceChild(storedAltContent, obj);
|
|
803
|
-
if (storedAltContentId) {
|
|
804
|
-
setVisibility(storedAltContentId, true);
|
|
805
|
-
if (ua.ie && ua.win) {
|
|
806
|
-
storedAltContent.style.display = "block";
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
if (storedCallbackFn) {
|
|
810
|
-
storedCallbackFn(storedCallbackObj);
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
isExpressInstallActive = false;
|
|
656
|
+
registerObject: function(objectIdStr, swfVersionStr, xiSwfUrlStr, callbackFn) {
|
|
657
|
+
if (ua.w3 && objectIdStr && swfVersionStr) {
|
|
658
|
+
var regObj = {};
|
|
659
|
+
regObj.id = objectIdStr;
|
|
660
|
+
regObj.swfVersion = swfVersionStr;
|
|
661
|
+
regObj.expressInstall = xiSwfUrlStr;
|
|
662
|
+
regObj.callbackFn = callbackFn;
|
|
663
|
+
regObjArr[regObjArr.length] = regObj;
|
|
664
|
+
setVisibility(objectIdStr, false);
|
|
665
|
+
}
|
|
666
|
+
else if (callbackFn) {
|
|
667
|
+
callbackFn({success:false, id:objectIdStr});
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
|
|
671
|
+
getObjectById: function(objectIdStr) {
|
|
672
|
+
if (ua.w3) {
|
|
673
|
+
return getObjectById(objectIdStr);
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
|
|
677
|
+
embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj, callbackFn) {
|
|
678
|
+
var callbackObj = {success:false, id:replaceElemIdStr};
|
|
679
|
+
if (ua.w3 && !(ua.wk && ua.wk < 312) && swfUrlStr && replaceElemIdStr && widthStr && heightStr && swfVersionStr) {
|
|
680
|
+
setVisibility(replaceElemIdStr, false);
|
|
681
|
+
addDomLoadEvent(function() {
|
|
682
|
+
widthStr += ""; // auto-convert to string
|
|
683
|
+
heightStr += "";
|
|
684
|
+
var att = {};
|
|
685
|
+
if (attObj && typeof attObj === OBJECT) {
|
|
686
|
+
for (var i in attObj) { // copy object to avoid the use of references, because web authors often reuse attObj for multiple SWFs
|
|
687
|
+
att[i] = attObj[i];
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
att.data = swfUrlStr;
|
|
691
|
+
att.width = widthStr;
|
|
692
|
+
att.height = heightStr;
|
|
693
|
+
var par = {};
|
|
694
|
+
if (parObj && typeof parObj === OBJECT) {
|
|
695
|
+
for (var j in parObj) { // copy object to avoid the use of references, because web authors often reuse parObj for multiple SWFs
|
|
696
|
+
par[j] = parObj[j];
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
if (flashvarsObj && typeof flashvarsObj === OBJECT) {
|
|
700
|
+
for (var k in flashvarsObj) { // copy object to avoid the use of references, because web authors often reuse flashvarsObj for multiple SWFs
|
|
701
|
+
if (typeof par.flashvars != UNDEF) {
|
|
702
|
+
par.flashvars += "&" + k + "=" + flashvarsObj[k];
|
|
703
|
+
}
|
|
704
|
+
else {
|
|
705
|
+
par.flashvars = k + "=" + flashvarsObj[k];
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
if (hasPlayerVersion(swfVersionStr)) { // create SWF
|
|
710
|
+
var obj = createSWF(att, par, replaceElemIdStr);
|
|
711
|
+
if (att.id == replaceElemIdStr) {
|
|
712
|
+
setVisibility(replaceElemIdStr, true);
|
|
713
|
+
}
|
|
714
|
+
callbackObj.success = true;
|
|
715
|
+
callbackObj.ref = obj;
|
|
716
|
+
}
|
|
717
|
+
else if (xiSwfUrlStr && canExpressInstall()) { // show Adobe Express Install
|
|
718
|
+
att.data = xiSwfUrlStr;
|
|
719
|
+
showExpressInstall(att, par, replaceElemIdStr, callbackFn);
|
|
720
|
+
return;
|
|
721
|
+
}
|
|
722
|
+
else { // show alternative content
|
|
723
|
+
setVisibility(replaceElemIdStr, true);
|
|
724
|
+
}
|
|
725
|
+
if (callbackFn) {
|
|
726
|
+
callbackFn(callbackObj);
|
|
727
|
+
}
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
else if (callbackFn) {
|
|
731
|
+
callbackFn(callbackObj);
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
|
|
735
|
+
switchOffAutoHideShow: function() {
|
|
736
|
+
autoHideShow = false;
|
|
737
|
+
},
|
|
738
|
+
|
|
739
|
+
ua: ua,
|
|
740
|
+
|
|
741
|
+
getFlashPlayerVersion: function() {
|
|
742
|
+
return { major:ua.pv[0], minor:ua.pv[1], release:ua.pv[2] };
|
|
743
|
+
},
|
|
744
|
+
|
|
745
|
+
hasFlashPlayerVersion: hasPlayerVersion,
|
|
746
|
+
|
|
747
|
+
createSWF: function(attObj, parObj, replaceElemIdStr) {
|
|
748
|
+
if (ua.w3) {
|
|
749
|
+
return createSWF(attObj, parObj, replaceElemIdStr);
|
|
750
|
+
}
|
|
751
|
+
else {
|
|
752
|
+
return undefined;
|
|
753
|
+
}
|
|
754
|
+
},
|
|
755
|
+
|
|
756
|
+
showExpressInstall: function(att, par, replaceElemIdStr, callbackFn) {
|
|
757
|
+
if (ua.w3 && canExpressInstall()) {
|
|
758
|
+
showExpressInstall(att, par, replaceElemIdStr, callbackFn);
|
|
759
|
+
}
|
|
760
|
+
},
|
|
761
|
+
|
|
762
|
+
removeSWF: function(objElemIdStr) {
|
|
763
|
+
if (ua.w3) {
|
|
764
|
+
removeSWF(objElemIdStr);
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
|
|
768
|
+
createCSS: function(selStr, declStr, mediaStr, newStyleBoolean) {
|
|
769
|
+
if (ua.w3) {
|
|
770
|
+
createCSS(selStr, declStr, mediaStr, newStyleBoolean);
|
|
771
|
+
}
|
|
772
|
+
},
|
|
773
|
+
|
|
774
|
+
addDomLoadEvent: addDomLoadEvent,
|
|
775
|
+
|
|
776
|
+
addLoadEvent: addLoadEvent,
|
|
777
|
+
|
|
778
|
+
getQueryParamValue: function(param) {
|
|
779
|
+
var q = doc.location.search || doc.location.hash;
|
|
780
|
+
if (q) {
|
|
781
|
+
if (/\?/.test(q)) {
|
|
782
|
+
q = q.split("?")[1];
|
|
783
|
+
} // strip question mark
|
|
784
|
+
if (param == null) {
|
|
785
|
+
return urlEncodeIfNecessary(q);
|
|
786
|
+
}
|
|
787
|
+
var pairs = q.split("&");
|
|
788
|
+
for (var i = 0; i < pairs.length; i++) {
|
|
789
|
+
if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
|
|
790
|
+
return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=") + 1)));
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
return "";
|
|
795
|
+
},
|
|
796
|
+
|
|
797
|
+
// For internal usage only
|
|
798
|
+
expressInstallCallback: function() {
|
|
799
|
+
if (isExpressInstallActive) {
|
|
800
|
+
var obj = getElementById(EXPRESS_INSTALL_ID);
|
|
801
|
+
if (obj && storedAltContent) {
|
|
802
|
+
obj.parentNode.replaceChild(storedAltContent, obj);
|
|
803
|
+
if (storedAltContentId) {
|
|
804
|
+
setVisibility(storedAltContentId, true);
|
|
805
|
+
if (ua.ie && ua.win) {
|
|
806
|
+
storedAltContent.style.display = "block";
|
|
814
807
|
}
|
|
808
|
+
}
|
|
809
|
+
if (storedCallbackFn) {
|
|
810
|
+
storedCallbackFn(storedCallbackObj);
|
|
811
|
+
}
|
|
815
812
|
}
|
|
816
|
-
|
|
813
|
+
isExpressInstallActive = false;
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
};
|
|
817
817
|
}();
|