compass-jquery-plugin 0.3.2.3 → 0.3.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +54 -37
- data/VERSION.yml +1 -1
- data/lib/handle_attributes.rb +4 -4
- data/lib/handle_js_files.rb +5 -5
- data/lib/jqtouch_theme.rb +2 -2
- data/lib/jquery/dynatree.rb +2 -2
- data/lib/jquery/emulators.rb +1 -1
- data/lib/jquery/flash_messages.rb +6 -6
- data/lib/jquery/graphics.rb +5 -0
- data/lib/jquery/gridify/assertions.rb +1 -1
- data/lib/jquery/gridify/grid.rb +76 -59
- data/lib/jquery/gridify/grid_column.rb +73 -67
- data/lib/jquery/gridify/grid_finder.rb +79 -79
- data/lib/jquery/gridify/grid_options.rb +154 -149
- data/lib/jquery/gridify/grid_view.rb +143 -143
- data/lib/jquery/gridify.rb +25 -25
- data/lib/jquery/ical/calendar.rb +2 -2
- data/lib/jquery/ical/event.rb +48 -44
- data/lib/jquery/ical/helpers/ui_event_helper.rb +3 -3
- data/lib/jquery/jqgrid/jqgrid.rb +58 -58
- data/lib/jquery/jqgrid.rb +1 -1
- data/lib/jquery/jqtouch.rb +1 -1
- data/lib/jquery/jquery.rb +117 -117
- data/lib/jquery/jquery_auto_complete.rb +9 -9
- data/lib/jquery/jquery_json_response.rb +12 -12
- data/lib/jquery/jquery_selector_assertions.rb +55 -53
- data/lib/jquery/jstree.rb +2 -2
- data/lib/jquery/mobile.rb +1 -1
- data/lib/jquery/ribbon.rb +2 -2
- data/lib/jquery/secret_sauce/controller/ui_dialog_controls.rb +5 -5
- data/lib/jquery/secret_sauce/controller/ui_grid_controls.rb +5 -5
- data/lib/jquery/secret_sauce/helpers/ui_dialog_helper.rb +1 -1
- data/lib/jquery/secret_sauce/helpers/ui_form_helper.rb +39 -39
- data/lib/jquery/secret_sauce/helpers/ui_grid_helper.rb +74 -74
- data/lib/jquery/secret_sauce/model/find_for_grid.rb +21 -21
- data/lib/jquery/secret_sauce.rb +1 -1
- data/lib/jquery/tools.rb +1 -1
- data/lib/jquery_mobile_theme.rb +2 -2
- data/lib/jquery_ui_theme.rb +12 -12
- data/templates/dynatree/config/initializers/dynatree.rb +3 -3
- data/templates/dynatree/jquery/dynatree/aero.scss +16 -16
- data/templates/dynatree/jquery/dynatree/aqua.scss +16 -16
- data/templates/dynatree/jquery/dynatree/crystal.scss +16 -16
- data/templates/dynatree/jquery/dynatree/xp.scss +17 -17
- data/templates/dynatree/jquery.dynatree.js +2926 -2912
- data/templates/emulators/config/initializers/emulators.rb +6 -6
- data/templates/graphics/config/initializers/graphics.rb +5 -0
- data/templates/graphics/jquery/ganttView.scss +89 -0
- data/templates/graphics/jquery.ganttView.js +1669 -0
- data/templates/graphics/jquery.ganttView.min.js +70 -0
- data/templates/{jquery → graphics}/jquery.sparkline.js +466 -438
- data/templates/{jquery → graphics}/jquery.sparkline.min.js +0 -0
- data/templates/graphics/manifest.rb +9 -0
- data/templates/jqgrid/config/initializers/jqgrid.rb +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-ar.js +131 -125
- data/templates/jqgrid/i18n/jqgrid/locale-bg.js +135 -131
- data/templates/jqgrid/i18n/jqgrid/locale-bg1251.js +135 -131
- data/templates/jqgrid/i18n/jqgrid/locale-cat.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-cn.js +137 -131
- data/templates/jqgrid/i18n/jqgrid/locale-cs.js +133 -127
- data/templates/jqgrid/i18n/jqgrid/locale-da.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-de.js +138 -132
- data/templates/jqgrid/i18n/jqgrid/locale-el.js +131 -125
- data/templates/jqgrid/i18n/jqgrid/locale-en.js +133 -127
- data/templates/jqgrid/i18n/jqgrid/locale-es.js +133 -127
- data/templates/jqgrid/i18n/jqgrid/locale-fa.js +19 -16
- data/templates/jqgrid/i18n/jqgrid/locale-fi.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-fr.js +131 -125
- data/templates/jqgrid/i18n/jqgrid/locale-gl.js +131 -125
- data/templates/jqgrid/i18n/jqgrid/locale-he.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-hu.js +133 -127
- data/templates/jqgrid/i18n/jqgrid/locale-is.js +131 -125
- data/templates/jqgrid/i18n/jqgrid/locale-it.js +8 -1
- data/templates/jqgrid/i18n/jqgrid/locale-ja.js +139 -136
- data/templates/jqgrid/i18n/jqgrid/locale-nl.js +4 -1
- data/templates/jqgrid/i18n/jqgrid/locale-no.js +14 -1
- data/templates/jqgrid/i18n/jqgrid/locale-pl.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-pt-br.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-pt.js +130 -124
- data/templates/jqgrid/i18n/jqgrid/locale-ro.js +144 -138
- data/templates/jqgrid/i18n/jqgrid/locale-ru.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-sk.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-sr.js +133 -127
- data/templates/jqgrid/i18n/jqgrid/locale-sv.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-tr.js +131 -125
- data/templates/jqgrid/i18n/jqgrid/locale-ua.js +132 -126
- data/templates/jqgrid/jquery.jqGrid.js +12735 -10444
- data/templates/jqgrid/jquery.jqGrid.min.js +477 -469
- data/templates/jqgrid/public/stylesheets/ellipsis-xbl.xml +12 -10
- data/templates/jqtouch/config/initializers/jqtouch.rb +3 -3
- data/templates/jqtouch/jquery/touch/jqtouch.scss +1 -1
- data/templates/jqtouch/jquery.jqtouch.js +10025 -10043
- data/templates/jquery/config/initializers/jquery.rb +2 -4
- data/templates/jquery/history.adapter.jquery.js +71 -0
- data/templates/jquery/history.adapter.jquery.min.js +4 -0
- data/templates/jquery/history.html4.js +690 -0
- data/templates/jquery/history.html4.min.js +21 -0
- data/templates/jquery/history.js +1297 -0
- data/templates/jquery/history.min.js +29 -0
- data/templates/jquery/i18n/jquery.ui/datepicker-af.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ar-DZ.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-ar.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-az.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-bg.js +8 -8
- data/templates/jquery/i18n/jquery.ui/datepicker-bs.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ca.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-cs.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-da.js +14 -14
- 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 +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-en-GB.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-en-NZ.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-eo.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-es.js +20 -20
- 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 +18 -18
- data/templates/jquery/i18n/jquery.ui/datepicker-fi.js +15 -15
- 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 +22 -22
- data/templates/jquery/i18n/jquery.ui/datepicker-gl.js +20 -20
- 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 +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-hu.min.js +1 -1
- data/templates/jquery/i18n/jquery.ui/datepicker-hy.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-id.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-is.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-it.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ja.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ko.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-kz.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-lt.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-lv.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ml.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ms.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-nl.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-no.js +16 -16
- data/templates/jquery/i18n/jquery.ui/datepicker-no.min.js +2 -2
- data/templates/jquery/i18n/jquery.ui/datepicker-pl.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-pt-BR.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-pt.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-rm.js +18 -18
- data/templates/jquery/i18n/jquery.ui/datepicker-ro.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ru.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sk.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sl.js +20 -20
- 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 +14 -14
- 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-tr.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-uk.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-vi.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-zh-CN.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-zh-HK.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-zh-TW.js +20 -20
- data/templates/jquery/{partials → jquery/ui}/_flash_messages.scss +0 -0
- data/templates/jquery/jquery/ui/_theme.scss +14 -13
- data/templates/jquery/jquery/ui/contextMenu/configure.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/copy.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/cut.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/delete.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/edit.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/exit.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/new.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/paste.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/rename.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/show.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/trash.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu.scss +16 -10
- data/templates/jquery/jquery-ui.js +11839 -23066
- data/templates/jquery/jquery-ui.min.js +401 -795
- data/templates/jquery/jquery.bgiframe.js +27 -25
- data/templates/jquery/jquery.contextMenu.js +209 -196
- data/templates/jquery/jquery.cookie.js +3 -1
- data/templates/jquery/jquery.dotimeout.js +236 -228
- data/templates/jquery/jquery.dst.js +154 -151
- data/templates/jquery/jquery.farbtastic.js +293 -293
- data/templates/jquery/jquery.flashMessages.js +26 -0
- data/templates/jquery/jquery.flashMessages.min.js +1 -0
- data/templates/jquery/jquery.form.js +803 -786
- data/templates/jquery/jquery.haml.js +248 -247
- data/templates/jquery/jquery.hotkeys.js +89 -89
- data/templates/jquery/jquery.js +8141 -8106
- data/templates/jquery/jquery.layout.js +2451 -2415
- data/templates/jquery/jquery.min.js +167 -166
- data/templates/jquery/jquery.mousewheel.js +62 -54
- data/templates/jquery/jquery.offline.js +171 -171
- data/templates/jquery/jquery.pngFix.js +76 -76
- data/templates/jquery/jquery.replacetext.js +83 -83
- data/templates/jquery/jquery.themeswitchertool.js +202 -177
- data/templates/jquery/jquery.tmpl.js +478 -473
- data/templates/jquery/jquery.tmplPlus.js +82 -81
- data/templates/jquery/jrails.js +178 -175
- data/templates/jquery/json.js +77 -7
- data/templates/jquery/json2.js +480 -0
- data/templates/jquery/json2.min.js +7 -0
- data/templates/jquery/lib/tasks/haml.rake +2 -2
- data/templates/jquery/manifest.rb +21 -17
- data/templates/jstree/jquery.jstree.js +5967 -4536
- data/templates/mobile/config/initializers/mobile.rb +1 -1
- data/templates/mobile/jquery/mobile/_base.scss +944 -927
- data/templates/mobile/jquery/mobile/default.scss +61 -48
- data/templates/mobile/jquery/mobile/valencia.scss +56 -42
- data/templates/mobile/jquery.mobile.js +4461 -4347
- data/templates/mobile/jquery.mobile.min.js +11 -2
- data/templates/mobile/lib/tasks/jquery.mobile.rake +12 -12
- data/templates/ribbon/config/initializers/ribbon.rb +2 -2
- data/templates/ribbon/jquery.ribbon.js +50 -29
- data/templates/secret_sauce/secret_sauce.js +8 -8
- data/templates/tools/flowplayer.js +945 -1
- data/templates/tools/jquery.tools.js +4645 -4335
- data/templates/tools/jquery.tools.min.js +37 -37
- data/templates/tools/lib/tasks/jquery.tools.rake +4 -4
- data/templates/tools/swfobject.js +813 -773
- metadata +33 -21
- data/templates/jquery/haml.js +0 -506
- data/templates/jquery/haml.min.js +0 -5
- data/templates/jquery/jquery/ui/contextMenu/door.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/page_white_copy.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/page_white_delete.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/page_white_edit.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/page_white_new.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/page_white_paste.png +0 -0
- data/templates/jquery/jquery.compat-1.3.js +0 -291
- data/templates/jquery/jquery.compat-1.3.min.js +0 -6
- data/templates/jquery/jquery.flash_messages.js +0 -5
- data/templates/jquery/jquery.flash_messages.min.js +0 -1
- data/templates/jquery/jquery.history.js +0 -194
- data/templates/jquery/jquery.history.min.js +0 -5
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* jQuery UI Widget
|
2
|
+
* jQuery UI Widget @VERSION
|
3
3
|
*
|
4
4
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
5
5
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -25,4 +25,13 @@
|
|
25
25
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
26
26
|
* http://jquery.org/license
|
27
27
|
*/
|
28
|
-
(function(e,d,g){e.extend(e.mobile,{subPageUrlKey:"ui-page",nonHistorySelectors:"dialog",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",ajaxEnabled:true,hashListeningEnabled:true,ajaxLinksEnabled:true,ajaxFormsEnabled:true,defaultTransition:"slide",loadingMessage:"loading",metaViewportContent:"width=device-width, minimum-scale=1, maximum-scale=1",gradeA:function(){return e.support.mediaquery},autoInitialize:true,keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});e(d.document).trigger("mobileinit");if(!e.mobile.gradeA()){return}var f=e(d),b=e("html"),a=e("head"),c=e.mobile.loadingMessage?e("<div class='ui-loader ui-body-a ui-corner-all'><span class='ui-icon ui-icon-loading spin'></span><h1>"+e.mobile.loadingMessage+"</h1></div>"):g;b.addClass("ui-mobile ui-mobile-rendering");e.mobile.metaViewportContent?e("<meta>",{name:"viewport",content:e.mobile.metaViewportContent}).prependTo(a):g;e.extend(e.mobile,{pageLoading:function(h){if(h){b.removeClass("ui-loading")}else{if(e.mobile.loadingMessage){var i=e("."+e.mobile.activeBtnClass).first();c.appendTo(e.mobile.pageContainer).css({top:e.support.scrollTop&&e(d).scrollTop()+e(d).height()/2||i.length&&i.offset().top||100})}b.addClass("ui-loading")}},silentScroll:function(h){h=h||0;e.event.special.scrollstart.enabled=false;setTimeout(function(){d.scrollTo(0,h);e(document).trigger("silentscroll",{x:0,y:h})},20);setTimeout(function(){e.event.special.scrollstart.enabled=true},150)},initializePage:function(){var h=e("[data-role='page']");h.add("[data-role='dialog']").each(function(){e(this).attr("data-url",e(this).attr("id"))});e.mobile.firstPage=h.first();e.mobile.pageContainer=h.first().parent().addClass("ui-mobile-viewport");e.mobile.pageLoading();if(!e.mobile.hashListeningEnabled||!e.mobile.path.stripHash(location.hash)){e.mobile.changePage(e.mobile.firstPage,false,true,false,true)}else{f.trigger("hashchange",[true])}}});if(e.mobile.autoInitialize){e(e.mobile.initializePage)}f.load(e.mobile.silentScroll)})(jQuery,this);(function(c,e){var k=c(window),m=c("html"),i=c("head"),l={get:function(u){if(u==e){u=location.hash}return l.stripHash(u).replace(/[^\/]*\.[^\/*]+$/,"")},getFilePath:function(v){var u="&"+c.mobile.subPageUrlKey;return v&&v.split(u)[0].split(s)[0]},set:function(u){location.hash=u},origin:"",setOrigin:function(){l.origin=l.get(location.protocol+"//"+location.host+location.pathname)},makeAbsolute:function(u){return l.get()+u},clean:function(u){return u.replace(location.protocol+"//"+location.host,"")},stripHash:function(u){return u.replace(/^#/,"")},isExternal:function(u){return l.hasProtocol(l.clean(u))},hasProtocol:function(u){return/^(:?\w+:)/.test(u)},isRelative:function(u){return/^[^\/|#]/.test(u)&&!l.hasProtocol(u)},isEmbeddedPage:function(u){return/^#/.test(u)}},t=null,b={stack:[],activeIndex:0,getActive:function(){return b.stack[b.activeIndex]},getPrev:function(){return b.stack[b.activeIndex-1]},getNext:function(){return b.stack[b.activeIndex+1]},addNew:function(u,v){if(b.getNext()){b.clearForward()}b.stack.push({url:u,transition:v});b.activeIndex=b.stack.length-1},clearForward:function(){b.stack=b.stack.slice(0,b.activeIndex+1)},ignoreNextHashChange:true},n="[tabindex],a,button:visible,select:visible,input",a=null,j=[],p=false,s="&ui-state=dialog";var h=i.children("base"),r=location.protocol+"//"+location.host,g=l.get(r+location.pathname),d=g;if(h.length){var o=h.attr("href");if(o){if(o.search(/^[^:/]+:\/\/[^/]+\/?/)==-1){if(o.charAt(0)=="/"){d=r+o}else{d=g+o}}else{d=o}}d=d+(d.charAt(d.length-1)=="/"?" ":"/")}base=c.support.dynamicBaseTag?{element:(h.length?h:c("<base>",{href:d}).prependTo(i)),set:function(u){base.element.attr("href",d+l.get(u))},reset:function(){base.element.attr("href",d)}}:e;l.setOrigin();function f(v){var u=v.find(".ui-title:eq(0)");if(u.length){u.focus()}else{v.find(n).eq(0).focus()}}function q(u){if(!!t&&(!t.closest(".ui-page-active").length||u)){t.removeClass(c.mobile.activeBtnClass)}t=null}c.fn.animationComplete=function(u){if(c.support.cssTransitions){return c(this).one("webkitAnimationEnd",u)}else{setTimeout(u,0)}};c.mobile.updateHash=l.set;c.mobile.path=l;c.mobile.base=base;c.mobile.urlstack=b.stack;c.mobile.urlHistory=b;c.mobile.changePage=function(v,M,C,E,w){var y=c.type(v)==="array",L=c.type(v)==="object",J=y?v[0]:c.mobile.activePage,v=y?v[1]:v,z=fileUrl=c.type(v)==="string"?l.stripHash(v):"",O=e,x="get",F=false,B=null,H=b.getActive(),G=false,D=false;if(H&&b.stack.length>1&&H.url===z&&!y&&!L){return}else{if(p){j.unshift(arguments);return}}p=true;if(w){c.each(b.stack,function(P){if(this.url==z){urlIndex=P;G=P<b.activeIndex;D=!G;b.activeIndex=P}});if(G){C=true;M=M||H.transition}else{if(D){M=M||b.getActive().transition}}}if(L&&v.url){z=v.url,O=v.data,x=v.type,F=true;if(O&&x=="get"){if(c.type(O)=="object"){O=c.param(O)}z+="?"+O;O=e}}if(base){base.reset()}c(window.document.activeElement).add("input:focus, textarea:focus, select:focus").blur();function A(){if(M===e){M=c.mobile.defaultTransition}}function K(){c.mobile.silentScroll();var Q=k.scrollTop(),U=["flip"],R=[];if(z.indexOf("&"+c.mobile.subPageUrlKey)>-1){v=c("[data-url='"+z+"']")}if(J){J.data("lastScroll",Q);J.data("page")._trigger("beforehide",{nextPage:v})}v.data("page")._trigger("beforeshow",{prevPage:J||c("")});function P(){if(E!==false&&z){b.ignoreNextHashChange=false;l.set(z)}if(!G&&!D){b.addNew(z,M)}q();c.mobile.silentScroll(v.data("lastScroll"));f(v);if(J){J.data("page")._trigger("hide",null,{nextPage:v})}v.data("page")._trigger("show",null,{prevPage:J||c("")});c.mobile.activePage=v;if(B!=null){B.remove()}m.removeClass("ui-mobile-rendering");p=false;if(j.length>0){c.mobile.changePage.apply(c.mobile,j.pop())}}function T(V){c.mobile.pageContainer.addClass(V);R.push(V)}function S(){c.mobile.pageContainer.removeClass(R.join(" "));R=[]}if(M&&(M!=="none")){c.mobile.pageLoading(true);if(c.inArray(M,U)>=0){T("ui-mobile-viewport-perspective")}T("ui-mobile-viewport-transitioning");if(J){J.addClass(M+" out "+(C?"reverse":""))}v.addClass(c.mobile.activePageClass+" "+M+" in "+(C?"reverse":""));v.animationComplete(function(){J.add(v).removeClass("out in reverse "+M);if(J){J.removeClass(c.mobile.activePageClass)}P();S()})}else{c.mobile.pageLoading(true);if(J){J.removeClass(c.mobile.activePageClass)}v.addClass(c.mobile.activePageClass);P()}}function I(){if(a||v.data("role")=="dialog"){z=b.getActive().url+s;if(a){v.attr("data-role",a);a=null}}v.page()}if(z){v=c("[data-url='"+z+"']");fileUrl=l.getFilePath(z)}else{var u=v.attr("data-url"),N=l.getFilePath(u);if(u!=N){fileUrl=N}}A();if(v.length&&!F){if(fileUrl&&base){base.set(fileUrl)}I();K()}else{if(v.length){B=v}c.mobile.pageLoading();c.ajax({url:fileUrl,type:x,data:O,success:function(Q){var P=/ data-url="(.*)"/.test(Q)&&RegExp.$1;if(P){if(base){base.set(P)}z=fileUrl=l.getFilePath(P)}else{if(base){base.set(fileUrl)}}var R=c("<div></div>");R.get(0).innerHTML=Q;v=R.find('[data-role="page"], [data-role="dialog"]').first();if(!c.support.dynamicBaseTag){var S=l.get(fileUrl);v.find("[src],link[href]").each(function(){var U=c(this).is("[href]")?"href":"src",T=c(this).attr(U);T.replace(location.protocol+"//"+location.host+location.pathname,"");if(!/^(\w+:|#|\/)/.test(T)){c(this).attr(U,S+T)}})}v.attr("data-url",fileUrl).appendTo(c.mobile.pageContainer);I();setTimeout(function(){K()},0)},error:function(){c.mobile.pageLoading(true);q(true);if(base){base.set(l.get())}c("<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h1>Error Loading Page</h1></div>").css({display:"block",opacity:0.96,top:c(window).scrollTop()+100}).appendTo(c.mobile.pageContainer).delay(800).fadeOut(400,function(){c(this).remove()})}})}};c("form[data-ajax!='false']").live("submit",function(w){if(!c.mobile.ajaxEnabled||!c.mobile.ajaxFormsEnabled){return}var v=c(this).attr("method"),u=l.clean(c(this).attr("action"));if(l.isExternal(u)){return}if(l.isRelative(u)){u=l.makeAbsolute(u)}c.mobile.changePage({url:u,type:v,data:c(this).serialize()},e,e,true);w.preventDefault()});c("a").live("click",function(u){var D=c(this),x=D.attr("href")||"#",w=l.clean(x),y=D.is("[rel='external']"),E=l.isEmbeddedPage(w),v=l.isExternal(w)||y&&!E,C=D.is("[target]"),z=D.is("[data-ajax='false']");if(D.is("[data-rel='back']")){window.history.back();return false}if(w==="#"){return false}t=D.closest(".ui-btn").addClass(c.mobile.activeBtnClass);if(v||z||C||!c.mobile.ajaxEnabled||!c.mobile.ajaxLinksEnabled){q(true);if(C){window.open(w)}else{if(z){return}else{location.href=w}}}else{var B=D.data("transition"),F=D.data("direction"),A=F&&F=="reverse"||D.data("back");a=D.attr("data-rel");if(l.isRelative(w)){w=l.makeAbsolute(w)}w=l.stripHash(w);c.mobile.changePage(w,B,A)}u.preventDefault()});k.bind("hashchange",function(v,u){var x=l.stripHash(location.hash),w=c.mobile.urlHistory.stack.length===0?false:e;if(!c.mobile.hashListeningEnabled||!b.ignoreNextHashChange||b.stack.length>1&&x.indexOf(s)>-1&&!c.mobile.activePage.is(".ui-dialog")){if(!b.ignoreNextHashChange){b.ignoreNextHashChange=true}return}if(x){c.mobile.changePage(x,w,e,false,true)}else{c.mobile.changePage(c.mobile.firstPage,w,true,false,true)}})})(jQuery);(function(b,c){b.fn.buttonMarkup=function(d){return this.each(function(){var j=b(this),k=b.extend({},b.fn.buttonMarkup.defaults,j.data(),d),f,h="ui-btn-inner",e;if(a){a()}if(!k.theme){var g=j.closest("[class*='ui-bar-'],[class*='ui-body-']");k.theme=g.length?/ui-(bar|body)-([a-z])/.exec(g.attr("class"))[2]:"c"}f="ui-btn ui-btn-up-"+k.theme;if(k.inline){f+=" ui-btn-inline"}if(k.icon){k.icon="ui-icon-"+k.icon;k.iconpos=k.iconpos||"left";e="ui-icon "+k.icon;if(k.shadow){e+=" ui-icon-shadow"}}if(k.iconpos){f+=" ui-btn-icon-"+k.iconpos;if(k.iconpos=="notext"&&!j.attr("title")){j.attr("title",j.text())}}if(k.corners){f+=" ui-btn-corner-all";h+=" ui-btn-corner-all"}if(k.shadow){f+=" ui-shadow"}j.attr("data-theme",k.theme).addClass(f);var i=("<D class='"+h+"'><D class='ui-btn-text'></D>"+(k.icon?"<span class='"+e+"'></span>":"")+"</D>").replace(/D/g,k.wrapperEls);j.wrapInner(i)})};b.fn.buttonMarkup.defaults={corners:true,shadow:true,iconshadow:true,wrapperEls:"span"};var a=function(){b(".ui-btn:not(.ui-disabled)").live({"touchstart mousedown":function(){var d=b(this).attr("data-theme");b(this).removeClass("ui-btn-up-"+d).addClass("ui-btn-down-"+d)},"touchmove touchend mouseup":function(){var d=b(this).attr("data-theme");b(this).removeClass("ui-btn-down-"+d).addClass("ui-btn-up-"+d)},"mouseover focus":function(){var d=b(this).attr("data-theme");b(this).removeClass("ui-btn-up-"+d).addClass("ui-btn-hover-"+d)},"mouseout blur":function(){var d=b(this).attr("data-theme");b(this).removeClass("ui-btn-hover-"+d).addClass("ui-btn-up-"+d)}});a=null}})(jQuery);(function(a,b){a.widget("mobile.collapsible",a.mobile.widget,{options:{expandCueText:" click to expand contents",collapseCueText:" click to collapse contents",collapsed:false,heading:">:header,>legend",theme:null,iconTheme:"d"},_create:function(){var e=this.element,f=this.options,c=e.addClass("ui-collapsible-contain"),d=e.find(f.heading).eq(0),i=c.wrapInner('<div class="ui-collapsible-content"></div>').find(".ui-collapsible-content"),h=e.closest('[data-role="collapsible-set"]').addClass("ui-collapsible-set");if(d.is("legend")){d=a('<div role="heading">'+d.html()+"</div>").insertBefore(d);d.next().remove()}d.insertBefore(i);d.addClass("ui-collapsible-heading").append('<span class="ui-collapsible-heading-status"></span>').wrapInner('<a href="#" class="ui-collapsible-heading-toggle"></a>').find("a:eq(0)").buttonMarkup({shadow:!!!h.length,corners:false,iconPos:"left",icon:"plus",theme:f.theme}).find(".ui-icon").removeAttr("class").buttonMarkup({shadow:true,corners:true,iconPos:"notext",icon:"plus",theme:f.iconTheme});if(!h.length){d.find("a:eq(0)").addClass("ui-corner-all").find(".ui-btn-inner").addClass("ui-corner-all")}else{if(c.data("collapsible-last")){d.find("a:eq(0), .ui-btn-inner").addClass("ui-corner-bottom")}}c.bind("collapse",function(j){if(!j.isDefaultPrevented()){j.preventDefault();d.addClass("ui-collapsible-heading-collapsed").find(".ui-collapsible-heading-status").text(f.expandCueText);d.find(".ui-icon").removeClass("ui-icon-minus").addClass("ui-icon-plus");i.addClass("ui-collapsible-content-collapsed").attr("aria-hidden",true);if(c.data("collapsible-last")){d.find("a:eq(0), .ui-btn-inner").addClass("ui-corner-bottom")}}}).bind("expand",function(j){if(!j.isDefaultPrevented()){j.preventDefault();d.removeClass("ui-collapsible-heading-collapsed").find(".ui-collapsible-heading-status").text(f.collapseCueText);d.find(".ui-icon").removeClass("ui-icon-plus").addClass("ui-icon-minus");i.removeClass("ui-collapsible-content-collapsed").attr("aria-hidden",false);if(c.data("collapsible-last")){d.find("a:eq(0), .ui-btn-inner").removeClass("ui-corner-bottom")}}}).trigger(f.collapsed?"collapse":"expand");if(h.length&&!h.data("collapsiblebound")){h.data("collapsiblebound",true).bind("expand",function(j){a(this).find(".ui-collapsible-contain").not(a(j.target).closest(".ui-collapsible-contain")).not("> .ui-collapsible-contain .ui-collapsible-contain").trigger("collapse")});var g=h.find("[data-role=collapsible]");g.first().find("a:eq(0)").addClass("ui-corner-top").find(".ui-btn-inner").addClass("ui-corner-top");g.last().data("collapsible-last",true)}d.bind(a.support.touch?"touchstart":"click",function(){if(d.is(".ui-collapsible-heading-collapsed")){c.trigger("expand")}else{c.trigger("collapse")}return false})}})})(jQuery);(function(a,b){a.fn.controlgroup=function(c){return this.each(function(){var g=a.extend({direction:a(this).data("type")||"vertical",shadow:false},c);var h=a(this).find(">legend"),d=g.direction=="horizontal"?["ui-corner-left","ui-corner-right"]:["ui-corner-top","ui-corner-bottom"],e=a(this).find("input:eq(0)").attr("type");if(h.length){a(this).wrapInner('<div class="ui-controlgroup-controls"></div>');a('<div role="heading" class="ui-controlgroup-label">'+h.html()+"</div>").insertBefore(a(this).children(0));h.remove()}a(this).addClass("ui-corner-all ui-controlgroup ui-controlgroup-"+g.direction);function f(i){i.removeClass("ui-btn-corner-all ui-shadow").eq(0).addClass(d[0]).end().filter(":last").addClass(d[1]).addClass("ui-controlgroup-last")}f(a(this).find(".ui-btn"));f(a(this).find(".ui-btn-inner"));if(g.shadow){a(this).addClass("ui-shadow")}})}})(jQuery);(function(a,b){a.widget("mobile.dialog",a.mobile.widget,{options:{},_create:function(){var c=this,d=c.element;this.element.attr("role","dialog").addClass("ui-page ui-dialog ui-body-a").find("[data-role=header]").addClass("ui-corner-top ui-overlay-shadow").prepend('<a href="#" data-icon="delete" data-rel="back" data-iconpos="notext">Close</a>').end().find('.ui-content:not([class*="ui-body-"])').addClass("ui-body-c").end().find(".ui-content,[data-role=footer]").last().addClass("ui-corner-bottom ui-overlay-shadow");this.element.bind("click submit",function(g){var f;if(g.type=="click"){f=a(g.target).closest("a")}else{f=a(g.target).closest("form")}if(f.length&&!f.data("transition")){f.attr("data-transition",a.mobile.urlHistory.getActive().transition).attr("data-direction","reverse")}})},close:function(){window.history.back()}})})(jQuery);(function(a,b){a.fn.fieldcontain=function(c){return this.addClass("ui-field-contain ui-body ui-br")}})(jQuery);(function(a,b){a.fn.fixHeaderFooter=function(c){if(!a.support.scrollTop){return this}return this.each(function(){var d=a(this);if(d.data("fullscreen")){d.addClass("ui-page-fullscreen")}d.find('.ui-header[data-position="fixed"]').addClass("ui-header-fixed ui-fixed-inline fade");d.find('.ui-footer[data-position="fixed"]').addClass("ui-footer-fixed ui-fixed-inline fade")})};a.fixedToolbars=(function(){if(!a.support.scrollTop){return}var g="inline",o=false,d=100,e,n="a,input,textarea,select,button,label,.ui-header-fixed,.ui-footer-fixed",p=".ui-header-fixed:first, .ui-footer-fixed:not(.ui-footer-duplicate):last",m,i=a.support.touch,q=i?"touchstart":"mousedown",k=i?"touchend":"mouseup",h=null,j=false,c=true;function f(s){if(!o&&g=="overlay"){if(!e){a.fixedToolbars.hide(true)}a.fixedToolbars.startShowTimer()}}a(function(){a(document).bind(q,function(s){if(c){if(a(s.target).closest(n).length){return}h=g}}).bind(k,function(s){if(c){if(a(s.target).closest(n).length){return}if(!j){a.fixedToolbars.toggle(h);h=null}}}).bind("scrollstart",function(t){if(a(t.target).closest(n).length){return}j=true;if(h==null){h=g}var s=h=="overlay";o=s||!!e;if(o){a.fixedToolbars.clearShowTimer();if(s){a.fixedToolbars.hide(true)}}}).bind("scrollstop",function(s){if(a(s.target).closest(n).length){return}j=false;if(o){o=false;a.fixedToolbars.startShowTimer()}h=null}).bind("silentscroll",f);a(window).bind("resize",f)});a(".ui-page").live("pagebeforeshow",function(s,u){var t=a(s.target),w=t.find('[data-role="footer"]:not(.ui-sticky-footer)'),v=w.data("id");m=null;if(v){m=a('.ui-footer[data-id="'+v+'"].ui-sticky-footer');if(m.length==0){m=w;w=m.clone();m.addClass("ui-sticky-footer").before(w)}w.addClass("ui-footer-duplicate");m.appendTo(a.pageContainer).css("top",0);r(m)}});a(".ui-page").live("pageshow",function(s,t){if(m&&m.length){m.appendTo(s.target).css("top",0)}a.fixedToolbars.show(true,this)});function l(t){var u=0;if(t){var v=t.offsetParent,s=document.body;u=t.offsetTop;while(t&&t!=s){u+=t.scrollTop||0;if(t==v){u+=v.offsetTop;v=t.offsetParent}t=t.parentNode}}return u}function r(w){var s=a(window).scrollTop(),x=l(w[0]),v=w.css("top")=="auto"?0:parseFloat(w.css("top")),z=window.innerHeight,y=w.outerHeight(),u=w.parents(".ui-page:not(.ui-page-fullscreen)").length,t;if(w.is(".ui-header-fixed")){t=s-x+v;if(t<x){t=0}return w.css("top",(u)?t:s)}else{t=s+z-y-(x-v);return w.css("top",(u)?t:s+z-y)}}return{show:function(s,u){a.fixedToolbars.clearShowTimer();g="overlay";var t=u?a(u):(a.mobile.activePage?a.mobile.activePage:a(".ui-page-active"));return t.children(p).each(function(){var x=a(this),v=a(window).scrollTop(),y=l(x[0]),A=window.innerHeight,z=x.outerHeight(),w=(x.is(".ui-header-fixed")&&v<=y+z)||(x.is(".ui-footer-fixed")&&y<=v+A);x.addClass("ui-fixed-overlay").removeClass("ui-fixed-inline");if(!w&&!s){x.animationComplete(function(){x.removeClass("in")}).addClass("in")}r(x)})},hide:function(s){g="inline";var t=a.mobile.activePage?a.mobile.activePage:a(".ui-page-active");return t.children(p).each(function(){var w=a(this);var v=w.css("top");v=v=="auto"?0:parseFloat(v);w.addClass("ui-fixed-inline").removeClass("ui-fixed-overlay");if(v<0||(w.is(".ui-header-fixed")&&v!=0)){if(s){w.css("top",0)}else{if(w.css("top")!=="auto"&&parseFloat(w.css("top"))!==0){var u="out reverse";w.animationComplete(function(){w.removeClass(u);w.css("top",0)}).addClass(u)}}}})},startShowTimer:function(){a.fixedToolbars.clearShowTimer();var s=a.makeArray(arguments);e=setTimeout(function(){e=b;a.fixedToolbars.show.apply(null,s)},d)},clearShowTimer:function(){if(e){clearTimeout(e)}e=b},toggle:function(s){if(s){g=s}return(g=="overlay")?a.fixedToolbars.hide():a.fixedToolbars.show()},setTouchToggleEnabled:function(s){c=s}}})()})(jQuery);(function(a,b){a.widget("mobile.button",a.mobile.widget,{options:{theme:null,icon:null,iconpos:null,inline:null,corners:true,shadow:true,iconshadow:true},_create:function(){var c=this.element,d=this.options;this.button=a("<div></div>").text(c.text()||c.val()).buttonMarkup({theme:d.theme,icon:d.icon,iconpos:d.iconpos,inline:d.inline,corners:d.corners,shadow:d.shadow,iconshadow:d.iconshadow}).insertBefore(c).append(c.addClass("ui-btn-hidden"));if(c.attr("type")!=="reset"){c.click(function(){var e=a("<input>",{type:"hidden",name:c.attr("name"),value:c.attr("value")}).insertBefore(c);a(document).submit(function(){e.remove()})})}},enable:function(){this.element.attr("disabled",false);this.button.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",false)},disable:function(){this.element.attr("disabled",true);this.button.addClass("ui-disabled").attr("aria-disabled",true);return this._setOption("disabled",true)}})})(jQuery);(function(a,b){a.widget("mobile.checkboxradio",a.mobile.widget,{options:{theme:null},_create:function(){var d=this,c=this.element,f=c.closest("form,fieldset,[data-role='page']").find("label[for='"+c.attr("id")+"']"),h=c.attr("type"),g="ui-icon-"+h+"-on",e="ui-icon-"+h+"-off";if(h!="checkbox"&&h!="radio"){return}if(!this.options.theme){this.options.theme=this.element.data("theme")}f.buttonMarkup({theme:this.options.theme,icon:this.element.parents("[data-type='horizontal']").length?b:e,shadow:false});c.add(f).wrapAll("<div class='ui-"+h+"'></div>");f.bind({mouseover:function(){if(a(this).parent().is(".ui-disabled")){return false}},touchmove:function(i){var j=i.originalEvent.touches[0];if(f.data("movestart")){if(Math.abs(f.data("movestart")[0]-j.pageX)>10||Math.abs(abel.data("movestart")[1]-j.pageY)>10){f.data("moved",true)}}else{f.data("movestart",[parseFloat(j.pageX),parseFloat(j.pageY)])}},"touchend mouseup":function(i){f.removeData("movestart");if(f.data("etype")&&f.data("etype")!==i.type||f.data("moved")){f.removeData("etype").removeData("moved");if(f.data("moved")){f.removeData("moved")}return false}f.data("etype",i.type);d._cacheVals();c.attr("checked",h==="radio"&&true||!c.is(":checked"));d._updateAll();i.preventDefault()},click:false});c.bind({mousedown:function(){this._cacheVals()},click:function(){d._updateAll()},focus:function(){f.addClass("ui-focus")},blur:function(){f.removeClass("ui-focus")}});this.refresh()},_cacheVals:function(){this._getInputSet().each(function(){a(this).data("cacheVal",a(this).is(":checked"))})},_getInputSet:function(){return this.element.closest("form,fieldset,[data-role='page']").find("input[name='"+this.element.attr("name")+"'][type='"+this.element.attr("type")+"']")},_updateAll:function(){this._getInputSet().each(function(){var c=a(this).data("cacheVal");if(c&&c!==a(this).is(":checked")||a(this).is("[type='checkbox']")){a(this).trigger("change")}}).checkboxradio("refresh")},refresh:function(){var c=this.element,e=c.closest("form,fieldset,[data-role='page']").find("label[for='"+c.attr("id")+"']"),h=c.attr("type"),g=e.find(".ui-icon"),f="ui-icon-"+h+"-on",d="ui-icon-"+h+"-off";if(c[0].checked){e.addClass("ui-btn-active");g.addClass(f);g.removeClass(d)}else{e.removeClass("ui-btn-active");g.removeClass(f);g.addClass(d)}if(c.is(":disabled")){this.disable()}else{this.enable()}},disable:function(){this.element.attr("disabled",true).parent().addClass("ui-disabled")},enable:function(){this.element.attr("disabled",false).parent().removeClass("ui-disabled")}})})(jQuery);(function(a,b){a.widget("mobile.selectmenu",a.mobile.widget,{options:{theme:null,disabled:false,icon:"arrow-d",iconpos:"right",inline:null,corners:true,shadow:true,iconshadow:true,menuPageTheme:"b",overlayTheme:"a",hidePlaceholderMenuItems:true,closeText:"Close",nativeMenu:false},_create:function(){var q=this,t=this.options,s=this.element.wrap("<div class='ui-select'>"),w=s.attr("id"),m=a("label[for="+w+"]").addClass("ui-select"),d=(q.options.nativeMenu?a("<div/>"):a("<a>",{href:"#",role:"button",id:l,"aria-haspopup":"true","aria-owns":n})).text(a(s[0].options.item(s[0].selectedIndex)).text()).insertBefore(s).buttonMarkup({theme:t.theme,icon:t.icon,iconpos:t.iconpos,inline:t.inline,corners:t.corners,shadow:t.shadow,iconshadow:t.iconshadow}),j=q.isMultiple=s[0].multiple;if(t.nativeMenu&&window.opera&&window.opera.version){s.addClass("ui-select-nativeonly")}if(!t.nativeMenu){var h=s.find("option"),l=w+"-button",n=w+"-menu",c=s.closest(".ui-page"),y=/ui-btn-up-([a-z])/.exec(d.attr("class"))[1],r=a("<div data-role='dialog' data-theme='"+t.menuPageTheme+"'><div data-role='header'><div class='ui-title'>"+m.text()+"</div></div><div data-role='content'></div></div>").appendTo(a.mobile.pageContainer).page(),i=r.find(".ui-content"),g=r.find(".ui-header a"),f=a("<div>",{"class":"ui-selectmenu-screen ui-screen-hidden"}).appendTo(c),e=a("<div>",{"class":"ui-selectmenu ui-selectmenu-hidden ui-overlay-shadow ui-corner-all pop ui-body-"+t.overlayTheme}).insertAfter(f),x=a("<ul>",{"class":"ui-selectmenu-list",id:n,role:"listbox","aria-labelledby":l,"data-theme":y}).appendTo(e),v=a("<div>",{"class":"ui-header ui-bar-"+y}).prependTo(e),u=a("<h1>",{"class":"ui-title"}).appendTo(v),k=a("<a>",{"data-iconpos":"notext","data-icon":"delete",text:t.closeText,href:"#","class":"ui-btn-left"}).appendTo(v).buttonMarkup(),p}if(j){q.buttonCount=a("<span>").addClass("ui-li-count ui-btn-up-c ui-btn-corner-all").hide().appendTo(d)}if(t.disabled){this.disable()}s.change(function(){q.refresh()});a.extend(q,{select:s,optionElems:h,selectID:w,label:m,buttonId:l,menuId:n,thisPage:c,button:d,menuPage:r,menuPageContent:i,screen:f,listbox:e,list:x,menuType:p,header:v,headerClose:k,headerTitle:u,placeholder:""});if(t.nativeMenu){s.appendTo(d).bind("touchstart mousedown",function(o){d.addClass(a.mobile.activeBtnClass)}).bind("focus mouseover",function(){d.trigger("mouseover")}).bind("touchmove",function(){d.removeClass(a.mobile.activeBtnClass)}).bind("change blur mouseout",function(){d.trigger("mouseout").removeClass(a.mobile.activeBtnClass)});d.attr("tabindex","-1")}else{q.refresh();s.attr("tabindex","-1").focus(function(){a(this).blur();d.focus()});d.bind("touchstart",function(o){a(this).data("startTouches",a.extend({},o.originalEvent.touches[0]))}).bind(a.support.touch?"touchend":"mouseup",function(o){if(a(this).data("moved")){a(this).removeData("moved")}else{q.open()}o.preventDefault()}).bind("touchmove",function(A){var C=A.originalEvent.touches[0],B=a(this).data("startTouches"),z=Math.abs(C.pageX-B.pageX),o=Math.abs(C.pageY-B.pageY);if(z>10||o>10){a(this).data("moved",true)}});x.delegate("li:not(.ui-disabled, .ui-li-divider)","click",function(A){if(!a(A.target).is("a")){return}var o=x.find("li:not(.ui-li-divider)").index(this),z=q.optionElems.eq(o)[0];z.selected=j?!z.selected:true;if(j){a(this).find(".ui-icon").toggleClass("ui-icon-checkbox-on",z.selected).toggleClass("ui-icon-checkbox-off",!z.selected)}s.trigger("change");if(!j){q.close()}A.preventDefault()});f.add(k).add(g).bind("click",function(o){q.close();o.preventDefault();if(a.contains(g[0],o.target)){o.stopImmediatePropagation()}})}},_buildList:function(){var e=this,h=this.options,g=this.placeholder,c=[],f=[],d=e.isMultiple?"checkbox-off":"false";e.list.empty().filter(".ui-listview").listview("destroy");e.select.find("option").each(function(m){var p=a(this),o=p.parent(),q=p.text(),j="<a href='#'>"+q+"</a>",l=[],n=[];if(o.is("optgroup")){var k=o.attr("label");if(a.inArray(k,c)===-1){f.push("<li data-role='list-divider'>"+k+"</li>");c.push(k)}}if(!this.getAttribute("value")||q.length==0||p.data("placeholder")){if(h.hidePlaceholderMenuItems){l.push("ui-selectmenu-placeholder")}g=e.placeholder=q}if(this.disabled){l.push("ui-disabled");n.push("aria-disabled='true'")}f.push("<li data-icon='"+d+"' class='"+l.join(" ")+"' "+n.join(" ")+">"+j+"</li>")});e.list.html(f.join(" "));if(!this.isMultiple){this.headerClose.hide()}if(!this.isMultiple&&!g.length){this.header.hide()}else{this.headerTitle.text(this.placeholder)}e.list.listview()},refresh:function(g){var d=this,c=this.element,h=this.isMultiple,e=this.optionElems=c.find("option"),f=e.filter(":selected"),i=f.map(function(){return e.index(this)}).get();if(!d.options.nativeMenu&&(g||c[0].options.length>d.list.find("li").length)){d._buildList()}d.button.find(".ui-btn-text").text(function(){if(!h){return f.text()}return f.length?f.map(function(){return a(this).text()}).get().join(", "):d.placeholder});if(h){d.buttonCount[f.length>1?"show":"hide"]().text(f.length)}if(!d.options.nativeMenu){d.list.find("li:not(.ui-li-divider)").removeClass(a.mobile.activeBtnClass).attr("aria-selected",false).each(function(j){if(a.inArray(j,i)>-1){var k=a(this).addClass(a.mobile.activeBtnClass);k.find("a").attr("aria-selected",true);if(h){k.find(".ui-icon").removeClass("ui-icon-checkbox-off").addClass("ui-icon-checkbox-on")}}})}},open:function(){if(this.options.disabled||this.options.nativeMenu){return}var p=this,g=p.list.outerHeight(),l=p.list.outerWidth(),f=a(window).scrollTop(),o=p.button.offset().top,d=window.innerHeight,c=window.innerWidth,e=p.list.parents(".ui-dialog").length;p.button.addClass(a.mobile.activeBtnClass);function h(){p.list.find(".ui-btn-active").focus()}if(e||g>d-80||!a.support.scrollTop){if(f==0&&o>d){p.thisPage.one("pagehide",function(){a(this).data("lastScroll",o)})}p.menuPage.one("pageshow",function(){a(window).one("silentscroll",function(){h()})});p.menuType="page";p.menuPageContent.append(p.list);a.mobile.changePage(p.menuPage,"pop",false,true)}else{p.menuType="overlay";p.screen.height(a(document).height()).removeClass("ui-screen-hidden");var k=o-f,i=f+d-o,n=g/2,m,j;if(k>g/2&&i>g/2){m=o+(p.button.outerHeight()/2)-n}else{m=k>i?f+d-g-30:f+30}j=p.button.offset().left+p.button.outerWidth()/2-l/2;p.listbox.append(p.list).removeClass("ui-selectmenu-hidden").css({top:m,left:j}).addClass("in");h()}setTimeout(function(){p.isOpen=true},400)},close:function(){if(this.options.disabled||!this.isOpen||this.options.nativeMenu){return}var c=this;function d(){setTimeout(function(){c.button.focus();c.button.removeClass(a.mobile.activeBtnClass)},40);c.listbox.removeAttr("style").append(c.list)}if(c.menuType=="page"){a.mobile.changePage([c.menuPage,c.thisPage],"pop",true,false);c.menuPage.one("pagehide",d)}else{c.screen.addClass("ui-screen-hidden");c.listbox.addClass("ui-selectmenu-hidden").removeAttr("style").removeClass("in");d()}this.isOpen=false},disable:function(){this.element.attr("disabled",true);this.button.addClass("ui-disabled").attr("aria-disabled",true);return this._setOption("disabled",true)},enable:function(){this.element.attr("disabled",false);this.button.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",false)}})})(jQuery);(function(a,b){a.widget("mobile.slider",a.mobile.widget,{options:{theme:null,trackTheme:null,disabled:false},_create:function(){var r=this,j=this.element,f=j.parents("[class*=ui-bar-],[class*=ui-body-]").eq(0),f=f.length?f.attr("class").match(/ui-(bar|body)-([a-z])/)[2]:"c",k=this.options.theme?this.options.theme:f,g=this.options.trackTheme?this.options.trackTheme:f,l=j[0].nodeName.toLowerCase(),n=(l=="select")?"ui-slider-switch":"",h=j.attr("id"),m=h+"-label",q=a("[for="+h+"]").attr("id",m),e=function(){return(l=="input")?parseFloat(j.val()):j[0].selectedIndex},i=(l=="input")?parseFloat(j.attr("min")):0,p=(l=="input")?parseFloat(j.attr("max")):j.find("option").length-1,d=window.parseFloat(j.attr("step")||1),c=a('<div class="ui-slider '+n+" ui-btn-down-"+g+' ui-btn-corner-all" role="application"></div>'),o=a('<a href="#" class="ui-slider-handle"></a>').appendTo(c).buttonMarkup({corners:true,theme:k,shadow:true}).attr({role:"slider","aria-valuemin":i,"aria-valuemax":p,"aria-valuenow":e(),"aria-valuetext":e(),title:e(),"aria-labelledby":m});a.extend(this,{slider:c,handle:o,dragging:false,beforeStart:null});if(l=="select"){c.wrapInner('<div class="ui-slider-inneroffset"></div>');var s=j.find("option");j.find("option").each(function(v){var u=(v==0)?"b":"a",t=(v==0)?"right":"left",w=(v==0)?" ui-btn-down-"+g:" ui-btn-active";a('<div class="ui-slider-labelbg ui-slider-labelbg-'+u+w+" ui-btn-corner-"+t+'"></div>').prependTo(c);a('<span class="ui-slider-label ui-slider-label-'+u+w+" ui-btn-corner-"+t+'" role="img">'+a(this).text()+"</span>").prependTo(o)})}q.addClass("ui-slider");j.addClass((l=="input")?"ui-slider-input":"ui-slider-switch").change(function(){r.refresh(e(),true)}).keyup(function(){r.refresh(e(),true,true)}).blur(function(){r.refresh(e(),true)});a(document).bind("touchmove mousemove",function(t){if(r.dragging){r.refresh(t);return false}});c.bind("touchstart mousedown",function(t){r.dragging=true;if(l==="select"){r.beforeStart=j[0].selectedIndex}r.refresh(t);return false});c.add(document).bind("touchend mouseup",function(){if(r.dragging){r.dragging=false;if(l==="select"){if(r.beforeStart===j[0].selectedIndex){r.refresh(r.beforeStart===0?1:0)}var u=e();var t=Math.round(u/(p-i)*100);o.addClass("ui-slider-handle-snapping").css("left",t+"%").animationComplete(function(){o.removeClass("ui-slider-handle-snapping")})}return false}});c.insertAfter(j);this.handle.bind("touchstart mousedown",function(){a(this).focus()});this.handle.bind("keydown",function(u){var t=e();if(r.options.disabled){return}switch(u.keyCode){case a.mobile.keyCode.HOME:case a.mobile.keyCode.END:case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:u.preventDefault();if(!r._keySliding){r._keySliding=true;a(this).addClass("ui-state-active")}break}switch(u.keyCode){case a.mobile.keyCode.HOME:r.refresh(i);break;case a.mobile.keyCode.END:r.refresh(p);break;case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:r.refresh(t+d);break;case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:r.refresh(t-d);break}}).keyup(function(t){if(r._keySliding){r._keySliding=false;a(this).removeClass("ui-state-active")}});this.refresh()},refresh:function(e,c,m){if(this.options.disabled){return}var h=this.element,j,i=h[0].nodeName.toLowerCase(),f=(i==="input")?parseFloat(h.attr("min")):0,k=(i==="input")?parseFloat(h.attr("max")):h.find("option").length-1;if(typeof e==="object"){var g=e.originalEvent.touches?e.originalEvent.touches[0]:e,l=8;if(!this.dragging||g.pageX<this.slider.offset().left-l||g.pageX>this.slider.offset().left+this.slider.width()+l){return}j=Math.round(((g.pageX-this.slider.offset().left)/this.slider.width())*100)}else{if(e==null){e=(i==="input")?parseFloat(h.val()):h[0].selectedIndex}j=(parseFloat(e)-f)/(k-f)*100}if(isNaN(j)){return}if(j<0){j=0}if(j>100){j=100}var d=Math.round((j/100)*(k-f))+f;if(d<f){d=f}if(d>k){d=k}if(j>60&&i==="select"){}this.handle.css("left",j+"%");this.handle.attr({"aria-valuenow":(i==="input")?d:h.find("option").eq(d).attr("value"),"aria-valuetext":(i==="input")?d:h.find("option").eq(d).text(),title:d});if(i==="select"){if(d===0){this.slider.addClass("ui-slider-switch-a").removeClass("ui-slider-switch-b")}else{this.slider.addClass("ui-slider-switch-b").removeClass("ui-slider-switch-a")}}if(!m){if(i==="input"){h.val(d)}else{h[0].selectedIndex=d}if(!c){h.trigger("change")}}},enable:function(){this.element.attr("disabled",false);this.slider.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",false)},disable:function(){this.element.attr("disabled",true);this.slider.addClass("ui-disabled").attr("aria-disabled",true);return this._setOption("disabled",true)}})})(jQuery);(function(a,b){a.widget("mobile.textinput",a.mobile.widget,{options:{theme:null},_create:function(){var k=this.element,e=this.options,h=e.theme,n;if(!h){var f=this.element.closest("[class*='ui-bar-'],[class*='ui-body-']");h=f.length?/ui-(bar|body)-([a-z])/.exec(f.attr("class"))[2]:"c"}n=" ui-body-"+h;a("label[for="+k.attr("id")+"]").addClass("ui-input-text");k.addClass("ui-input-text ui-body-"+e.theme);var i=k;if(k.is('[type="search"],[data-type="search"]')){i=k.wrap('<div class="ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield'+n+'"></div>').parent();var l=a('<a href="#" class="ui-input-clear" title="clear text">clear text</a>').tap(function(o){k.val("").focus();k.trigger("change");l.addClass("ui-input-clear-hidden");o.preventDefault()}).appendTo(i).buttonMarkup({icon:"delete",iconpos:"notext",corners:true,shadow:true});function d(){if(k.val()==""){l.addClass("ui-input-clear-hidden")}else{l.removeClass("ui-input-clear-hidden")}}d();k.keyup(d)}else{k.addClass("ui-corner-all ui-shadow-inset"+n)}k.focus(function(){i.addClass("ui-focus")}).blur(function(){i.removeClass("ui-focus")});if(k.is("textarea")){var g=15,j=100,c=function(){var p=k[0].scrollHeight,o=k[0].clientHeight;if(o<p){k.css({height:(p+g)})}},m;k.keyup(function(){clearTimeout(m);m=setTimeout(c,j)})}},disable:function(){(this.element.attr("disabled",true).is('[type="search"],[data-type="search"]')?this.element.parent():this.element).addClass("ui-disabled")},enable:function(){(this.element.attr("disabled",false).is('[type="search"],[data-type="search"]')?this.element.parent():this.element).removeClass("ui-disabled")}})})(jQuery);(function(a,b){a.fn.grid=function(c){return this.each(function(){var h=a.extend({grid:null},c);var i=a(this).children(),f={a:2,b:3,c:4,d:5},d=h.grid,e;if(!d){if(i.length<=5){for(var g in f){if(f[g]==i.length){d=g}}}else{d="a"}}e=f[d];a(this).addClass("ui-grid-"+d);i.filter(":nth-child("+e+"n+1)").addClass("ui-block-a");i.filter(":nth-child("+e+"n+2)").addClass("ui-block-b");if(e>2){i.filter(":nth-child(3n+3)").addClass("ui-block-c")}if(e>3){i.filter(":nth-child(4n+4)").addClass("ui-block-d")}if(e>4){i.filter(":nth-child(5n+5)").addClass("ui-block-e")}})}})(jQuery);(function(a,b){a.widget("mobile.listview",a.mobile.widget,{options:{theme:"c",countTheme:"c",headerTheme:"b",dividerTheme:"b",splitIcon:"arrow-r",splitTheme:"b",inset:false},_create:function(){var c=this.element,d=this.options;c.addClass("ui-listview").attr("role","listbox");if(d.inset){c.addClass("ui-listview-inset ui-corner-all ui-shadow")}c.delegate(".ui-li","focusin",function(){a(this).attr("tabindex","0")});this._itemApply(c,c);this.refresh(true);c.keydown(function(k){var j=a(k.target),f=j.closest("li");switch(k.keyCode){case 38:var i=f.prev();if(i.length){j.blur().attr("tabindex","-1");i.find("a").first().focus()}return false;break;case 40:var h=f.next();if(h.length){j.blur().attr("tabindex","-1");h.find("a").first().focus()}return false;break;case 39:var g=f.find("a.ui-li-link-alt");if(g.length){j.blur();g.first().focus()}return false;break;case 37:var g=f.find("a.ui-link-inherit");if(g.length){j.blur();g.first().focus()}return false;break;case 13:case 32:j.trigger("click");return false;break}});c.delegate("li","click",function(e){if(!a(e.target).closest("a").length){a(this).find("a").first().trigger("click");return false}})},_itemApply:function(d,e){e.find(".ui-li-count").addClass("ui-btn-up-"+(d.data("counttheme")||this.options.countTheme)+" ui-btn-corner-all");e.find("h1, h2, h3, h4, h5, h6").addClass("ui-li-heading");e.find("p, dl").addClass("ui-li-desc");e.find("li").find("img:eq(0)").addClass("ui-li-thumb").each(function(){a(this).closest("li").addClass(a(this).is(".ui-li-icon")?"ui-li-has-icon":"ui-li-has-thumb")});var c=e.find(".ui-li-aside");if(c.length){c.each(function(f,g){a(g).prependTo(a(g).parent())})}if(a.support.cssPseudoElement||!a.nodeName(e[0],"ol")){return}},_removeCorners:function(c){c.add(c.find(".ui-btn-inner, .ui-li-link-alt, .ui-li-thumb")).removeClass("ui-corner-top ui-corner-bottom ui-corner-br ui-corner-bl ui-corner-tr ui-corner-tl")},refresh:function(g){this._createSubPages();var i=this.options,f=this.element,e=this,h=f.data("dividertheme")||i.dividerTheme,c=f.children("li"),d=a.support.cssPseudoElement||!a.nodeName(f[0],"ol")?0:1;if(d){f.find(".ui-li-dec").remove()}c.attr({role:"option",tabindex:"-1"});c.first().attr("tabindex","0");c.each(function(q){var n=a(this),o="ui-li";if(!g&&n.hasClass("ui-li")){return}var p=n.data("theme")||i.theme;var j=n.find("a");if(j.length){var l=n.data("icon");n.buttonMarkup({wrapperEls:"div",shadow:false,corners:false,iconpos:"right",icon:j.length>1||l===false?false:l||"arrow-r",theme:p});j.first().addClass("ui-link-inherit");if(j.length>1){o+=" ui-li-has-alt";var m=j.last(),k=f.data("splittheme")||m.data("theme")||i.splitTheme;m.appendTo(n).attr("title",m.text()).addClass("ui-li-link-alt").empty().buttonMarkup({shadow:false,corners:false,theme:p,icon:false,iconpos:false}).find(".ui-btn-inner").append(a("<span>").buttonMarkup({shadow:true,corners:true,theme:k,iconpos:"notext",icon:f.data("spliticon")||m.data("icon")||i.splitIcon}))}}else{if(n.data("role")==="list-divider"){o+=" ui-li-divider ui-btn ui-bar-"+h;n.attr("role","heading");if(d){d=1}}else{o+=" ui-li-static ui-btn-up-"+p}}if(i.inset){if(q===0){o+=" ui-corner-top";n.add(n.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-tr").end().find(".ui-li-thumb").addClass("ui-corner-tl");if(n.next().next().length){e._removeCorners(n.next())}}if(q===c.length-1){o+=" ui-corner-bottom";n.add(n.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-br").end().find(".ui-li-thumb").addClass("ui-corner-bl");if(n.prev().prev().length){e._removeCorners(n.prev())}}}if(d&&o.indexOf("ui-li-divider")<0){n.find(".ui-link-inherit").first().addClass("ui-li-jsnumbering").prepend("<span class='ui-li-dec'>"+(d++)+". </span>")}n.addClass(o);if(!g){e._itemApply(f,n)}})},_idStringEscape:function(c){return c.replace(/[^a-zA-Z0-9]/g,"-")},_createSubPages:function(){var d=this.element,c=d.closest(".ui-page"),h=c.data("url"),g=this.options,e=this,f=c.find("[data-role='footer']").data("id");a(d.find("ul, ol").toArray().reverse()).each(function(o){var p=a(this),r=p.parent(),q=a.trim(r.contents()[0].nodeValue)||r.find("a:first").text(),j=h+"&"+a.mobile.subPageUrlKey+"="+e._idStringEscape(q+" "+o),n=p.data("theme")||g.theme,k=p.data("counttheme")||d.data("counttheme")||g.countTheme,l=p.wrap("<div data-role='page'><div data-role='content'></div></div>").parent().before("<div data-role='header' data-theme='"+g.headerTheme+"'><div class='ui-title'>"+q+"</div></div>").after(f?a("<div>",{"data-role":"footer","data-id":f,"class":"ui-footer-duplicate"}):"").parent().attr({"data-url":j,"data-theme":n,"data-count-theme":k}).appendTo(a.mobile.pageContainer);l.page();var m=r.find("a:first");if(!m.length){m=a("<a></a>").html(q).prependTo(r.empty())}m.attr("href","#"+j)}).listview()}})})(jQuery);(function(a,b){a.mobile.listview.prototype.options.filter=false;a("[data-role='listview']").live("listviewcreate",function(){var e=a(this),d=e.data("listview");if(!d.options.filter){return}var f=a("<form>",{"class":"ui-listview-filter ui-bar-c",role:"search"}),c=a("<input>",{placeholder:"Filter results...","data-type":"search"}).bind("keyup change",function(){var g=this.value.toLowerCase();e.children().show();if(g){e.children().filter(function(){return a(this).text().toLowerCase().indexOf(g)===-1}).hide()}}).appendTo(f).textinput();f.insertBefore(e)})})(jQuery);(function(a,b){a.widget("mobile.navbar",a.mobile.widget,{options:{iconpos:"top",grid:null},_create:function(){var e=this.element,c=e.find("a"),d=c.filter("[data-icon]").length?this.options.iconpos:b;e.addClass("ui-navbar").attr("role","navigation").find("ul").grid({grid:this.options.grid});if(!d){e.addClass("ui-navbar-noicons")}c.buttonMarkup({corners:false,shadow:false,iconpos:d});e.delegate("a","click",function(f){c.removeClass("ui-btn-active");a(this).addClass("ui-btn-active")})}})})(jQuery);(function(a){a.themeswitcher=function(){if(a("[data-url=themeswitcher]").length){return}var c="/stylesheets/compiled/jquery/mobile/",b=["default","valencia"],d=a.mobile.activePage,e=a("<div data-url=\"themeswitcher\" data-role='dialog' data-theme='a'><div data-role='header' data-theme='b'><div class='ui-title'>Switch Theme:</div></div><div data-role='content' data-theme='c'><ul data-role='listview' data-inset='true'></ul></div></div>").appendTo(a.mobile.pageContainer),g=e.find("ul");a.each(b,function(h){a('<li><a href="#" data-rel="back">'+b[h].charAt(0).toUpperCase()+b[h].substr(1)+"</a></li>").click(function(){f(b[h]);return false}).appendTo(g)});function f(h){a("head").append("<link rel='stylesheet' href='"+c+h+".css' />")}e.page()}})(jQuery);
|
28
|
+
(function(e,d,g){e.extend(e.mobile,{subPageUrlKey:"ui-page",nonHistorySelectors:"dialog",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",ajaxEnabled:true,hashListeningEnabled:true,ajaxLinksEnabled:true,ajaxFormsEnabled:true,defaultTransition:"slide",loadingMessage:"loading",metaViewportContent:"width=device-width, minimum-scale=1, maximum-scale=1",gradeA:function(){return e.support.mediaquery},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});var f=e(d),b=e("html"),a=e("head"),c=e.mobile.loadingMessage?e("<div class='ui-loader ui-body-a ui-corner-all'><span class='ui-icon ui-icon-loading spin'></span><h1>"+e.mobile.loadingMessage+"</h1></div>"):g;e.extend(e.mobile,{pageLoading:function(h){if(h){b.removeClass("ui-loading")}else{if(e.mobile.loadingMessage){var i=e("."+e.mobile.activeBtnClass).first();c.appendTo(e.mobile.pageContainer).css({top:e.support.scrollTop&&e(d).scrollTop()+e(d).height()/2||i.length&&i.offset().top||100})}b.addClass("ui-loading")}},silentScroll:function(h){h=h||0;e.event.special.scrollstart.enabled=false;setTimeout(function(){d.scrollTo(0,h);e(document).trigger("silentscroll",{x:0,y:h})},20);setTimeout(function(){e.event.special.scrollstart.enabled=true},150)}})})(jQuery,this);(function(c,f){var l=c(window),n=c("html"),j=c("head"),m={get:function(v){if(v===f){v=location.hash}return m.stripHash(v).replace(/[^\/]*\.[^\/*]+$/,"")},getFilePath:function(w){var v="&"+c.mobile.subPageUrlKey;return w&&w.split(v)[0].split(t)[0]},set:function(v){location.hash=v},origin:"",setOrigin:function(){m.origin=m.get(location.protocol+"//"+location.host+location.pathname)},makeAbsolute:function(v){return m.get()+v},clean:function(v){return v.replace(location.protocol+"//"+location.host,"")},stripHash:function(v){return v.replace(/^#/,"")},isExternal:function(v){return m.hasProtocol(m.clean(v))},hasProtocol:function(v){return(/^(:?\w+:)/).test(v)},isRelative:function(v){return(/^[^\/|#]/).test(v)&&!m.hasProtocol(v)},isEmbeddedPage:function(v){return(/^#/).test(v)}},u=null,b={stack:[],activeIndex:0,getActive:function(){return b.stack[b.activeIndex]},getPrev:function(){return b.stack[b.activeIndex-1]},getNext:function(){return b.stack[b.activeIndex+1]},addNew:function(v,w){if(b.getNext()){b.clearForward()}b.stack.push({url:v,transition:w});b.activeIndex=b.stack.length-1},clearForward:function(){b.stack=b.stack.slice(0,b.activeIndex+1)},ignoreNextHashChange:true},o="[tabindex],a,button:visible,select:visible,input",a=null,k=[],q=false,t="&ui-state=dialog",i=j.children("base"),s=location.protocol+"//"+location.host,h=m.get(s+location.pathname),e=h;if(i.length){var p=i.attr("href");if(p){if(p.search(/^[^:\/]+:\/\/[^\/]+\/?/)===-1){if(p.charAt(0)==="/"){e=s+p}else{e=h+p}}else{e=p}}e=e+(e.charAt(e.length-1)==="/"?" ":"/")}var d=c.support.dynamicBaseTag?{element:(i.length?i:c("<base>",{href:e}).prependTo(j)),set:function(v){d.element.attr("href",e+m.get(v))},reset:function(){d.element.attr("href",e)}}:f;m.setOrigin();function g(w){var v=w.find(".ui-title:eq(0)");if(v.length){v.focus()}else{w.find(o).eq(0).focus()}}function r(v){if(!!u&&(!u.closest(".ui-page-active").length||v)){u.removeClass(c.mobile.activeBtnClass)}u=null}c.fn.animationComplete=function(v){if(c.support.cssTransitions){return c(this).one("webkitAnimationEnd",v)}else{setTimeout(v,0)}};c.mobile.updateHash=m.set;c.mobile.path=m;c.mobile.base=d;c.mobile.urlstack=b.stack;c.mobile.urlHistory=b;c.mobile.changePage=function(w,P,D,H,x){var z=c.type(w)==="array",O=c.type(w)==="object",M=z?w[0]:c.mobile.activePage;w=z?w[1]:w;var A=c.type(w)==="string"?m.stripHash(w):"",F=A,R,y="get",I=false,C=null,K=b.getActive(),J=false,E=false;if(K&&b.stack.length>1&&K.url===A&&!z&&!O){return}else{if(q){k.unshift(arguments);return}}q=true;if(x){c.each(b.stack,function(S){if(this.url===A){urlIndex=S;J=S<b.activeIndex;E=!J;b.activeIndex=S}});if(J){D=true;P=P||K.transition}else{if(E){P=P||b.getActive().transition}}}if(O&&w.url){A=w.url;R=w.data;y=w.type;I=true;if(R&&y==="get"){if(c.type(R)==="object"){R=c.param(R)}A+="?"+R;R=f}}if(d){d.reset()}c(window.document.activeElement).add("input:focus, textarea:focus, select:focus").blur();function B(){if(P===f){P=(a&&a==="dialog")?"pop":c.mobile.defaultTransition}}function G(){q=false;if(k.length>0){c.mobile.changePage.apply(c.mobile,k.pop())}}function N(){c.mobile.silentScroll();var T=l.scrollTop(),X=["flip"],U=[];if(A.indexOf("&"+c.mobile.subPageUrlKey)>-1){w=c("[data-url='"+A+"']")}if(M){M.data("lastScroll",T);M.data("page")._trigger("beforehide",{nextPage:w})}w.data("page")._trigger("beforeshow",{prevPage:M||c("")});function S(){if(H!==false&&A){b.ignoreNextHashChange=false;m.set(A)}if(!J&&!E){b.addNew(A,P)}r();c.mobile.silentScroll(w.data("lastScroll"));g(w);if(M){M.data("page")._trigger("hide",null,{nextPage:w})}w.data("page")._trigger("show",null,{prevPage:M||c("")});c.mobile.activePage=w;if(C!==null){C.remove()}n.removeClass("ui-mobile-rendering");G()}function W(Y){c.mobile.pageContainer.addClass(Y);U.push(Y)}function V(){c.mobile.pageContainer.removeClass(U.join(" "));U=[]}if(P&&(P!=="none")){c.mobile.pageLoading(true);if(c.inArray(P,X)>=0){W("ui-mobile-viewport-perspective")}W("ui-mobile-viewport-transitioning");if(M){M.addClass(P+" out "+(D?"reverse":""))}w.addClass(c.mobile.activePageClass+" "+P+" in "+(D?"reverse":""));w.animationComplete(function(){w.add(M).removeClass("out in reverse "+P);if(M){M.removeClass(c.mobile.activePageClass)}S();V()})}else{c.mobile.pageLoading(true);if(M){M.removeClass(c.mobile.activePageClass)}w.addClass(c.mobile.activePageClass);S()}}function L(){if(a||w.data("role")==="dialog"){A=b.getActive().url+t;if(a){w.attr("data-role",a);a=null}}w.page()}if(A){w=c("[data-url='"+A+"']");F=m.getFilePath(A)}else{var v=w.attr("data-url"),Q=m.getFilePath(v);if(v!==Q){F=Q}}B();if(w.length&&!I){if(F&&d){d.set(F)}L();N()}else{if(w.length){C=w}c.mobile.pageLoading();c.ajax({url:F,type:y,data:R,success:function(U){var V=c("<div></div>"),S,X=/.*(<[^>]*\bdata-role=["']?page["']?[^>]*>).*/,T=/\bdata-url=["']?([^"'>]*)["']?/;if(X.test(U)&&RegExp.$1&&T.test(RegExp.$1)&&RegExp.$1){S=RegExp.$1}if(S){if(d){d.set(S)}A=F=m.getFilePath(S)}else{if(d){d.set(F)}}V.get(0).innerHTML=U;w=V.find('[data-role="page"], [data-role="dialog"]').first();if(!c.support.dynamicBaseTag){var W=m.get(F);w.find("[src],link[href]").each(function(){var Z=c(this).is("[href]")?"href":"src",Y=c(this).attr(Z);Y.replace(location.protocol+"//"+location.host+location.pathname,"");if(!/^(\w+:|#|\/)/.test(Y)){c(this).attr(Z,W+Y)}})}w.attr("data-url",F).appendTo(c.mobile.pageContainer);L();setTimeout(function(){N()},0)},error:function(){c.mobile.pageLoading(true);r(true);if(d){d.set(m.get())}c("<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h1>Error Loading Page</h1></div>").css({display:"block",opacity:0.96,top:c(window).scrollTop()+100}).appendTo(c.mobile.pageContainer).delay(800).fadeOut(400,function(){c(this).remove()});G()}})}};c("form[data-ajax!='false']").live("submit",function(x){if(!c.mobile.ajaxEnabled||!c.mobile.ajaxFormsEnabled){return}var w=c(this).attr("method"),v=m.clean(c(this).attr("action"));if(m.isExternal(v)){return}if(m.isRelative(v)){v=m.makeAbsolute(v)}c.mobile.changePage({url:v,type:w,data:c(this).serialize()},f,f,true);x.preventDefault()});c("a").live("click",function(v){var E=c(this),y=E.attr("href")||"#",x=m.clean(y),z=E.is("[rel='external']"),F=m.isEmbeddedPage(x),w=m.isExternal(x)||(z&&!F),D=E.is("[target]"),A=E.is("[data-ajax='false']");if(E.is("[data-rel='back']")){window.history.back();return false}if(x==="#"){v.preventDefault();return}u=E.closest(".ui-btn").addClass(c.mobile.activeBtnClass);if(w||A||D||!c.mobile.ajaxEnabled||!c.mobile.ajaxLinksEnabled){r(true);if(D){window.open(x)}else{if(A){return}else{location.href=x}}}else{var C=E.data("transition"),G=E.data("direction"),B=(G&&G==="reverse")||E.data("back");a=E.attr("data-rel");if(m.isRelative(x)){x=m.makeAbsolute(x)}x=m.stripHash(x);c.mobile.changePage(x,C,B)}v.preventDefault()});l.bind("hashchange",function(w,v){var y=m.stripHash(location.hash),x=c.mobile.urlHistory.stack.length===0?false:f;if(!c.mobile.hashListeningEnabled||!b.ignoreNextHashChange||(b.stack.length>1&&y.indexOf(t)>-1&&!c.mobile.activePage.is(".ui-dialog"))){if(!b.ignoreNextHashChange){b.ignoreNextHashChange=true}return}if(y){c.mobile.changePage(y,x,f,false,true)}else{c.mobile.changePage(c.mobile.firstPage,x,true,false,true)}})})(jQuery);(function(a,b){a.fn.fixHeaderFooter=function(c){if(!a.support.scrollTop){return this}return this.each(function(){var d=a(this);if(d.data("fullscreen")){d.addClass("ui-page-fullscreen")}d.find('.ui-header[data-position="fixed"]').addClass("ui-header-fixed ui-fixed-inline fade");d.find('.ui-footer[data-position="fixed"]').addClass("ui-footer-fixed ui-fixed-inline fade")})};a.fixedToolbars=(function(){if(!a.support.scrollTop){return}var g="inline",o=false,d=100,e,n="a,input,textarea,select,button,label,.ui-header-fixed,.ui-footer-fixed",p=".ui-header-fixed:first, .ui-footer-fixed:not(.ui-footer-duplicate):last",m,i=a.support.touch,q=i?"touchstart":"mousedown",k=i?"touchend":"mouseup",h=null,j=false,c=true;function f(s){if(!o&&g=="overlay"){if(!e){a.fixedToolbars.hide(true)}a.fixedToolbars.startShowTimer()}}a(function(){a(document).bind(q,function(s){if(c){if(a(s.target).closest(n).length){return}h=g}}).bind(k,function(s){if(c){if(a(s.target).closest(n).length){return}if(!j){a.fixedToolbars.toggle(h);h=null}}}).bind("scrollstart",function(t){if(a(t.target).closest(n).length){return}j=true;if(h==null){h=g}var s=h=="overlay";o=s||!!e;if(o){a.fixedToolbars.clearShowTimer();if(s){a.fixedToolbars.hide(true)}}}).bind("scrollstop",function(s){if(a(s.target).closest(n).length){return}j=false;if(o){o=false;a.fixedToolbars.startShowTimer()}h=null}).bind("silentscroll",f);a(window).bind("resize",f)});a(".ui-page").live("pagebeforeshow",function(s,u){var t=a(s.target),w=t.find('[data-role="footer"]:not(.ui-sticky-footer)'),v=w.data("id");m=null;if(v){m=a('.ui-footer[data-id="'+v+'"].ui-sticky-footer');if(m.length==0){m=w;w=m.clone();m.addClass("ui-sticky-footer").before(w)}w.addClass("ui-footer-duplicate");m.appendTo(a.pageContainer).css("top",0);r(m)}});a(".ui-page").live("pageshow",function(s,t){if(m&&m.length){m.appendTo(s.target).css("top",0)}a.fixedToolbars.show(true,this)});function l(t){var u=0;if(t){var v=t.offsetParent,s=document.body;u=t.offsetTop;while(t&&t!=s){u+=t.scrollTop||0;if(t==v){u+=v.offsetTop;v=t.offsetParent}t=t.parentNode}}return u}function r(w){var s=a(window).scrollTop(),x=l(w[0]),v=w.css("top")=="auto"?0:parseFloat(w.css("top")),z=window.innerHeight,y=w.outerHeight(),u=w.parents(".ui-page:not(.ui-page-fullscreen)").length,t;if(w.is(".ui-header-fixed")){t=s-x+v;if(t<x){t=0}return w.css("top",(u)?t:s)}else{t=s+z-y-(x-v);return w.css("top",(u)?t:s+z-y)}}return{show:function(s,u){a.fixedToolbars.clearShowTimer();g="overlay";var t=u?a(u):(a.mobile.activePage?a.mobile.activePage:a(".ui-page-active"));return t.children(p).each(function(){var x=a(this),v=a(window).scrollTop(),y=l(x[0]),A=window.innerHeight,z=x.outerHeight(),w=(x.is(".ui-header-fixed")&&v<=y+z)||(x.is(".ui-footer-fixed")&&y<=v+A);x.addClass("ui-fixed-overlay").removeClass("ui-fixed-inline");if(!w&&!s){x.animationComplete(function(){x.removeClass("in")}).addClass("in")}r(x)})},hide:function(s){g="inline";var t=a.mobile.activePage?a.mobile.activePage:a(".ui-page-active");return t.children(p).each(function(){var w=a(this);var v=w.css("top");v=v=="auto"?0:parseFloat(v);w.addClass("ui-fixed-inline").removeClass("ui-fixed-overlay");if(v<0||(w.is(".ui-header-fixed")&&v!=0)){if(s){w.css("top",0)}else{if(w.css("top")!=="auto"&&parseFloat(w.css("top"))!==0){var u="out reverse";w.animationComplete(function(){w.removeClass(u);w.css("top",0)}).addClass(u)}}}})},startShowTimer:function(){a.fixedToolbars.clearShowTimer();var s=a.makeArray(arguments);e=setTimeout(function(){e=b;a.fixedToolbars.show.apply(null,s)},d)},clearShowTimer:function(){if(e){clearTimeout(e)}e=b},toggle:function(s){if(s){g=s}return(g=="overlay")?a.fixedToolbars.hide():a.fixedToolbars.show()},setTouchToggleEnabled:function(s){c=s}}})()})(jQuery);(function(a,b){a.widget("mobile.checkboxradio",a.mobile.widget,{options:{theme:null},_create:function(){var d=this,c=this.element,f=c.closest("form,fieldset,[data-role='page']").find("label[for='"+c.attr("id")+"']"),h=c.attr("type"),g="ui-icon-"+h+"-on",e="ui-icon-"+h+"-off";if(h!="checkbox"&&h!="radio"){return}if(!this.options.theme){this.options.theme=this.element.data("theme")}f.buttonMarkup({theme:this.options.theme,icon:this.element.parents("[data-type='horizontal']").length?b:e,shadow:false});c.add(f).wrapAll("<div class='ui-"+h+"'></div>");f.bind({mouseover:function(){if(a(this).parent().is(".ui-disabled")){return false}},touchmove:function(i){var j=i.originalEvent.touches[0];if(f.data("movestart")){if(Math.abs(f.data("movestart")[0]-j.pageX)>10||Math.abs(abel.data("movestart")[1]-j.pageY)>10){f.data("moved",true)}}else{f.data("movestart",[parseFloat(j.pageX),parseFloat(j.pageY)])}},"touchend mouseup":function(i){f.removeData("movestart");if(f.data("etype")&&f.data("etype")!==i.type||f.data("moved")){f.removeData("etype").removeData("moved");if(f.data("moved")){f.removeData("moved")}return false}f.data("etype",i.type);d._cacheVals();c.attr("checked",h==="radio"&&true||!c.is(":checked"));d._updateAll();i.preventDefault()},click:false});c.bind({mousedown:function(){this._cacheVals()},click:function(){d._updateAll()},focus:function(){f.addClass("ui-focus")},blur:function(){f.removeClass("ui-focus")}});this.refresh()},_cacheVals:function(){this._getInputSet().each(function(){a(this).data("cacheVal",a(this).is(":checked"))})},_getInputSet:function(){return this.element.closest("form,fieldset,[data-role='page']").find("input[name='"+this.element.attr("name")+"'][type='"+this.element.attr("type")+"']")},_updateAll:function(){this._getInputSet().each(function(){var c=a(this).data("cacheVal");if(c&&c!==a(this).is(":checked")||a(this).is("[type='checkbox']")){a(this).trigger("change")}}).checkboxradio("refresh")},refresh:function(){var c=this.element,e=c.closest("form,fieldset,[data-role='page']").find("label[for='"+c.attr("id")+"']"),h=c.attr("type"),g=e.find(".ui-icon"),f="ui-icon-"+h+"-on",d="ui-icon-"+h+"-off";if(c[0].checked){e.addClass("ui-btn-active");g.addClass(f);g.removeClass(d)}else{e.removeClass("ui-btn-active");g.removeClass(f);g.addClass(d)}if(c.is(":disabled")){this.disable()}else{this.enable()}},disable:function(){this.element.attr("disabled",true).parent().addClass("ui-disabled")},enable:function(){this.element.attr("disabled",false).parent().removeClass("ui-disabled")}})})(jQuery);(function(a,b){a.widget("mobile.textinput",a.mobile.widget,{options:{theme:null},_create:function(){var k=this.element,e=this.options,h=e.theme,n;if(!h){var f=this.element.closest("[class*='ui-bar-'],[class*='ui-body-']");h=f.length?/ui-(bar|body)-([a-z])/.exec(f.attr("class"))[2]:"c"}n=" ui-body-"+h;a("label[for="+k.attr("id")+"]").addClass("ui-input-text");k.addClass("ui-input-text ui-body-"+e.theme);var i=k;if(k.is('[type="search"],[data-type="search"]')){i=k.wrap('<div class="ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield'+n+'"></div>').parent();var l=a('<a href="#" class="ui-input-clear" title="clear text">clear text</a>').tap(function(o){k.val("").focus();k.trigger("change");l.addClass("ui-input-clear-hidden");o.preventDefault()}).appendTo(i).buttonMarkup({icon:"delete",iconpos:"notext",corners:true,shadow:true});function d(){if(k.val()==""){l.addClass("ui-input-clear-hidden")}else{l.removeClass("ui-input-clear-hidden")}}d();k.keyup(d)}else{k.addClass("ui-corner-all ui-shadow-inset"+n)}k.focus(function(){i.addClass("ui-focus")}).blur(function(){i.removeClass("ui-focus")});if(k.is("textarea")){var g=15,j=100,c=function(){var p=k[0].scrollHeight,o=k[0].clientHeight;if(o<p){k.css({height:(p+g)})}},m;k.keyup(function(){clearTimeout(m);m=setTimeout(c,j)})}},disable:function(){(this.element.attr("disabled",true).is('[type="search"],[data-type="search"]')?this.element.parent():this.element).addClass("ui-disabled")},enable:function(){(this.element.attr("disabled",false).is('[type="search"],[data-type="search"]')?this.element.parent():this.element).removeClass("ui-disabled")}})})(jQuery);(function(a,b){a.widget("mobile.selectmenu",a.mobile.widget,{options:{theme:null,disabled:false,icon:"arrow-d",iconpos:"right",inline:null,corners:true,shadow:true,iconshadow:true,menuPageTheme:"b",overlayTheme:"a",hidePlaceholderMenuItems:true,closeText:"Close",nativeMenu:false},_create:function(){var q=this,t=this.options,s=this.element.wrap("<div class='ui-select'>"),w=s.attr("id"),m=a("label[for="+w+"]").addClass("ui-select"),d=(q.options.nativeMenu?a("<div/>"):a("<a>",{href:"#",role:"button",id:l,"aria-haspopup":"true","aria-owns":n})).text(a(s[0].options.item(s[0].selectedIndex)).text()).insertBefore(s).buttonMarkup({theme:t.theme,icon:t.icon,iconpos:t.iconpos,inline:t.inline,corners:t.corners,shadow:t.shadow,iconshadow:t.iconshadow}),j=q.isMultiple=s[0].multiple;if(t.nativeMenu&&window.opera&&window.opera.version){s.addClass("ui-select-nativeonly")}if(!t.nativeMenu){var h=s.find("option"),l=w+"-button",n=w+"-menu",c=s.closest(".ui-page"),y=/ui-btn-up-([a-z])/.exec(d.attr("class"))[1],r=a("<div data-role='dialog' data-theme='"+t.menuPageTheme+"'><div data-role='header'><div class='ui-title'>"+m.text()+"</div></div><div data-role='content'></div></div>").appendTo(a.mobile.pageContainer).page(),i=r.find(".ui-content"),g=r.find(".ui-header a"),f=a("<div>",{"class":"ui-selectmenu-screen ui-screen-hidden"}).appendTo(c),e=a("<div>",{"class":"ui-selectmenu ui-selectmenu-hidden ui-overlay-shadow ui-corner-all pop ui-body-"+t.overlayTheme}).insertAfter(f),x=a("<ul>",{"class":"ui-selectmenu-list",id:n,role:"listbox","aria-labelledby":l,"data-theme":y}).appendTo(e),v=a("<div>",{"class":"ui-header ui-bar-"+y}).prependTo(e),u=a("<h1>",{"class":"ui-title"}).appendTo(v),k=a("<a>",{"data-iconpos":"notext","data-icon":"delete",text:t.closeText,href:"#","class":"ui-btn-left"}).appendTo(v).buttonMarkup(),p}if(j){q.buttonCount=a("<span>").addClass("ui-li-count ui-btn-up-c ui-btn-corner-all").hide().appendTo(d)}if(t.disabled){this.disable()}s.change(function(){q.refresh()});a.extend(q,{select:s,optionElems:h,selectID:w,label:m,buttonId:l,menuId:n,thisPage:c,button:d,menuPage:r,menuPageContent:i,screen:f,listbox:e,list:x,menuType:p,header:v,headerClose:k,headerTitle:u,placeholder:""});if(t.nativeMenu){s.appendTo(d).bind("touchstart mousedown",function(o){d.addClass(a.mobile.activeBtnClass)}).bind("focus mouseover",function(){d.trigger("mouseover")}).bind("touchmove",function(){d.removeClass(a.mobile.activeBtnClass)}).bind("change blur mouseout",function(){d.trigger("mouseout").removeClass(a.mobile.activeBtnClass)});d.attr("tabindex","-1")}else{q.refresh();s.attr("tabindex","-1").focus(function(){a(this).blur();d.focus()});d.bind("touchstart",function(o){a(this).data("startTouches",a.extend({},o.originalEvent.touches[0]))}).bind(a.support.touch?"touchend":"mouseup",function(o){if(a(this).data("moved")){a(this).removeData("moved")}else{q.open()}o.preventDefault()}).bind("touchmove",function(A){var C=A.originalEvent.touches[0],B=a(this).data("startTouches"),z=Math.abs(C.pageX-B.pageX),o=Math.abs(C.pageY-B.pageY);if(z>10||o>10){a(this).data("moved",true)}});x.delegate("li:not(.ui-disabled, .ui-li-divider)","click",function(A){if(!a(A.target).is("a")){return}var o=x.find("li:not(.ui-li-divider)").index(this),z=q.optionElems.eq(o)[0];z.selected=j?!z.selected:true;if(j){a(this).find(".ui-icon").toggleClass("ui-icon-checkbox-on",z.selected).toggleClass("ui-icon-checkbox-off",!z.selected)}s.trigger("change");if(!j){q.close()}A.preventDefault()});f.add(k).add(g).bind("click",function(o){q.close();o.preventDefault();if(a.contains(g[0],o.target)){o.stopImmediatePropagation()}})}},_buildList:function(){var e=this,h=this.options,g=this.placeholder,c=[],f=[],d=e.isMultiple?"checkbox-off":"false";e.list.empty().filter(".ui-listview").listview("destroy");e.select.find("option").each(function(m){var p=a(this),o=p.parent(),q=p.text(),j="<a href='#'>"+q+"</a>",l=[],n=[];if(o.is("optgroup")){var k=o.attr("label");if(a.inArray(k,c)===-1){f.push("<li data-role='list-divider'>"+k+"</li>");c.push(k)}}if(!this.getAttribute("value")||q.length==0||p.data("placeholder")){if(h.hidePlaceholderMenuItems){l.push("ui-selectmenu-placeholder")}g=e.placeholder=q}if(this.disabled){l.push("ui-disabled");n.push("aria-disabled='true'")}f.push("<li data-icon='"+d+"' class='"+l.join(" ")+"' "+n.join(" ")+">"+j+"</li>")});e.list.html(f.join(" "));if(!this.isMultiple){this.headerClose.hide()}if(!this.isMultiple&&!g.length){this.header.hide()}else{this.headerTitle.text(this.placeholder)}e.list.listview()},refresh:function(g){var d=this,c=this.element,h=this.isMultiple,e=this.optionElems=c.find("option"),f=e.filter(":selected"),i=f.map(function(){return e.index(this)}).get();if(!d.options.nativeMenu&&(g||c[0].options.length>d.list.find("li").length)){d._buildList()}d.button.find(".ui-btn-text").text(function(){if(!h){return f.text()}return f.length?f.map(function(){return a(this).text()}).get().join(", "):d.placeholder});if(h){d.buttonCount[f.length>1?"show":"hide"]().text(f.length)}if(!d.options.nativeMenu){d.list.find("li:not(.ui-li-divider)").removeClass(a.mobile.activeBtnClass).attr("aria-selected",false).each(function(j){if(a.inArray(j,i)>-1){var k=a(this).addClass(a.mobile.activeBtnClass);k.find("a").attr("aria-selected",true);if(h){k.find(".ui-icon").removeClass("ui-icon-checkbox-off").addClass("ui-icon-checkbox-on")}}})}},open:function(){if(this.options.disabled||this.options.nativeMenu){return}var p=this,g=p.list.outerHeight(),l=p.list.outerWidth(),f=a(window).scrollTop(),o=p.button.offset().top,d=window.innerHeight,c=window.innerWidth,e=p.list.parents(".ui-dialog").length;p.button.addClass(a.mobile.activeBtnClass);function h(){p.list.find(".ui-btn-active").focus()}if(e||g>d-80||!a.support.scrollTop){if(f==0&&o>d){p.thisPage.one("pagehide",function(){a(this).data("lastScroll",o)})}p.menuPage.one("pageshow",function(){a(window).one("silentscroll",function(){h()})});p.menuType="page";p.menuPageContent.append(p.list);a.mobile.changePage(p.menuPage,"pop",false,true)}else{p.menuType="overlay";p.screen.height(a(document).height()).removeClass("ui-screen-hidden");var k=o-f,i=f+d-o,n=g/2,m,j;if(k>g/2&&i>g/2){m=o+(p.button.outerHeight()/2)-n}else{m=k>i?f+d-g-30:f+30}j=p.button.offset().left+p.button.outerWidth()/2-l/2;p.listbox.append(p.list).removeClass("ui-selectmenu-hidden").css({top:m,left:j}).addClass("in");h()}setTimeout(function(){p.isOpen=true},400)},close:function(){if(this.options.disabled||!this.isOpen||this.options.nativeMenu){return}var c=this;function d(){setTimeout(function(){c.button.focus();c.button.removeClass(a.mobile.activeBtnClass)},40);c.listbox.removeAttr("style").append(c.list)}if(c.menuType=="page"){a.mobile.changePage([c.menuPage,c.thisPage],"pop",true,false);c.menuPage.one("pagehide",d)}else{c.screen.addClass("ui-screen-hidden");c.listbox.addClass("ui-selectmenu-hidden").removeAttr("style").removeClass("in");d()}this.isOpen=false},disable:function(){this.element.attr("disabled",true);this.button.addClass("ui-disabled").attr("aria-disabled",true);return this._setOption("disabled",true)},enable:function(){this.element.attr("disabled",false);this.button.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",false)}})})(jQuery);(function(b,c){b.fn.buttonMarkup=function(d){return this.each(function(){var j=b(this),k=b.extend({},b.fn.buttonMarkup.defaults,j.data(),d),f,h="ui-btn-inner",e;if(a){a()}if(!k.theme){var g=j.closest("[class*='ui-bar-'],[class*='ui-body-']");k.theme=g.length?/ui-(bar|body)-([a-z])/.exec(g.attr("class"))[2]:"c"}f="ui-btn ui-btn-up-"+k.theme;if(k.inline){f+=" ui-btn-inline"}if(k.icon){k.icon="ui-icon-"+k.icon;k.iconpos=k.iconpos||"left";e="ui-icon "+k.icon;if(k.shadow){e+=" ui-icon-shadow"}}if(k.iconpos){f+=" ui-btn-icon-"+k.iconpos;if(k.iconpos=="notext"&&!j.attr("title")){j.attr("title",j.text())}}if(k.corners){f+=" ui-btn-corner-all";h+=" ui-btn-corner-all"}if(k.shadow){f+=" ui-shadow"}j.attr("data-theme",k.theme).addClass(f);var i=("<D class='"+h+"'><D class='ui-btn-text'></D>"+(k.icon?"<span class='"+e+"'></span>":"")+"</D>").replace(/D/g,k.wrapperEls);j.wrapInner(i)})};b.fn.buttonMarkup.defaults={corners:true,shadow:true,iconshadow:true,wrapperEls:"span"};var a=function(){b(".ui-btn:not(.ui-disabled)").live({"touchstart mousedown":function(){var d=b(this).attr("data-theme");b(this).removeClass("ui-btn-up-"+d).addClass("ui-btn-down-"+d)},"touchmove touchend mouseup":function(){var d=b(this).attr("data-theme");b(this).removeClass("ui-btn-down-"+d).addClass("ui-btn-up-"+d)},"mouseover focus":function(){var d=b(this).attr("data-theme");b(this).removeClass("ui-btn-up-"+d).addClass("ui-btn-hover-"+d)},"mouseout blur":function(){var d=b(this).attr("data-theme");b(this).removeClass("ui-btn-hover-"+d).addClass("ui-btn-up-"+d)}});a=null}})(jQuery);(function(a,b){a.widget("mobile.button",a.mobile.widget,{options:{theme:null,icon:null,iconpos:null,inline:null,corners:true,shadow:true,iconshadow:true},_create:function(){var c=this.element,d=this.options;this.button=a("<div></div>").text(c.text()||c.val()).buttonMarkup({theme:d.theme,icon:d.icon,iconpos:d.iconpos,inline:d.inline,corners:d.corners,shadow:d.shadow,iconshadow:d.iconshadow}).insertBefore(c).append(c.addClass("ui-btn-hidden"));if(c.attr("type")!=="reset"){c.click(function(){var e=a("<input>",{type:"hidden",name:c.attr("name"),value:c.attr("value")}).insertBefore(c);a(document).submit(function(){e.remove()})})}},enable:function(){this.element.attr("disabled",false);this.button.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",false)},disable:function(){this.element.attr("disabled",true);this.button.addClass("ui-disabled").attr("aria-disabled",true);return this._setOption("disabled",true)}})})(jQuery);(function(a,b){a.widget("mobile.slider",a.mobile.widget,{options:{theme:null,trackTheme:null,disabled:false},_create:function(){var r=this,j=this.element,f=j.parents("[class*=ui-bar-],[class*=ui-body-]").eq(0),f=f.length?f.attr("class").match(/ui-(bar|body)-([a-z])/)[2]:"c",k=this.options.theme?this.options.theme:f,g=this.options.trackTheme?this.options.trackTheme:f,l=j[0].nodeName.toLowerCase(),n=(l=="select")?"ui-slider-switch":"",h=j.attr("id"),m=h+"-label",q=a("[for="+h+"]").attr("id",m),e=function(){return(l=="input")?parseFloat(j.val()):j[0].selectedIndex},i=(l=="input")?parseFloat(j.attr("min")):0,p=(l=="input")?parseFloat(j.attr("max")):j.find("option").length-1,d=window.parseFloat(j.attr("step")||1),c=a('<div class="ui-slider '+n+" ui-btn-down-"+g+' ui-btn-corner-all" role="application"></div>'),o=a('<a href="#" class="ui-slider-handle"></a>').appendTo(c).buttonMarkup({corners:true,theme:k,shadow:true}).attr({role:"slider","aria-valuemin":i,"aria-valuemax":p,"aria-valuenow":e(),"aria-valuetext":e(),title:e(),"aria-labelledby":m});a.extend(this,{slider:c,handle:o,dragging:false,beforeStart:null});if(l=="select"){c.wrapInner('<div class="ui-slider-inneroffset"></div>');var s=j.find("option");j.find("option").each(function(v){var u=(v==0)?"b":"a",t=(v==0)?"right":"left",w=(v==0)?" ui-btn-down-"+g:" ui-btn-active";a('<div class="ui-slider-labelbg ui-slider-labelbg-'+u+w+" ui-btn-corner-"+t+'"></div>').prependTo(c);a('<span class="ui-slider-label ui-slider-label-'+u+w+" ui-btn-corner-"+t+'" role="img">'+a(this).text()+"</span>").prependTo(o)})}q.addClass("ui-slider");j.addClass((l=="input")?"ui-slider-input":"ui-slider-switch").change(function(){r.refresh(e(),true)}).keyup(function(){r.refresh(e(),true,true)}).blur(function(){r.refresh(e(),true)});a(document).bind("touchmove mousemove",function(t){if(r.dragging){r.refresh(t);return false}});c.bind("touchstart mousedown",function(t){r.dragging=true;if(l==="select"){r.beforeStart=j[0].selectedIndex}r.refresh(t);return false});c.add(document).bind("touchend mouseup",function(){if(r.dragging){r.dragging=false;if(l==="select"){if(r.beforeStart===j[0].selectedIndex){r.refresh(r.beforeStart===0?1:0)}var u=e();var t=Math.round(u/(p-i)*100);o.addClass("ui-slider-handle-snapping").css("left",t+"%").animationComplete(function(){o.removeClass("ui-slider-handle-snapping")})}return false}});c.insertAfter(j);this.handle.bind("touchstart mousedown",function(){a(this).focus()});this.handle.bind("keydown",function(u){var t=e();if(r.options.disabled){return}switch(u.keyCode){case a.mobile.keyCode.HOME:case a.mobile.keyCode.END:case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:u.preventDefault();if(!r._keySliding){r._keySliding=true;a(this).addClass("ui-state-active")}break}switch(u.keyCode){case a.mobile.keyCode.HOME:r.refresh(i);break;case a.mobile.keyCode.END:r.refresh(p);break;case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:r.refresh(t+d);break;case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:r.refresh(t-d);break}}).keyup(function(t){if(r._keySliding){r._keySliding=false;a(this).removeClass("ui-state-active")}});this.refresh()},refresh:function(e,c,m){if(this.options.disabled){return}var h=this.element,j,i=h[0].nodeName.toLowerCase(),f=(i==="input")?parseFloat(h.attr("min")):0,k=(i==="input")?parseFloat(h.attr("max")):h.find("option").length-1;if(typeof e==="object"){var g=e.originalEvent.touches?e.originalEvent.touches[0]:e,l=8;if(!this.dragging||g.pageX<this.slider.offset().left-l||g.pageX>this.slider.offset().left+this.slider.width()+l){return}j=Math.round(((g.pageX-this.slider.offset().left)/this.slider.width())*100)}else{if(e==null){e=(i==="input")?parseFloat(h.val()):h[0].selectedIndex}j=(parseFloat(e)-f)/(k-f)*100}if(isNaN(j)){return}if(j<0){j=0}if(j>100){j=100}var d=Math.round((j/100)*(k-f))+f;if(d<f){d=f}if(d>k){d=k}if(j>60&&i==="select"){}this.handle.css("left",j+"%");this.handle.attr({"aria-valuenow":(i==="input")?d:h.find("option").eq(d).attr("value"),"aria-valuetext":(i==="input")?d:h.find("option").eq(d).text(),title:d});if(i==="select"){if(d===0){this.slider.addClass("ui-slider-switch-a").removeClass("ui-slider-switch-b")}else{this.slider.addClass("ui-slider-switch-b").removeClass("ui-slider-switch-a")}}if(!m){if(i==="input"){h.val(d)}else{h[0].selectedIndex=d}if(!c){h.trigger("change")}}},enable:function(){this.element.attr("disabled",false);this.slider.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",false)},disable:function(){this.element.attr("disabled",true);this.slider.addClass("ui-disabled").attr("aria-disabled",true);return this._setOption("disabled",true)}})})(jQuery);(function(a,b){a.widget("mobile.collapsible",a.mobile.widget,{options:{expandCueText:" click to expand contents",collapseCueText:" click to collapse contents",collapsed:false,heading:">:header,>legend",theme:null,iconTheme:"d"},_create:function(){var e=this.element,f=this.options,c=e.addClass("ui-collapsible-contain"),d=e.find(f.heading).eq(0),i=c.wrapInner('<div class="ui-collapsible-content"></div>').find(".ui-collapsible-content"),h=e.closest('[data-role="collapsible-set"]').addClass("ui-collapsible-set");if(d.is("legend")){d=a('<div role="heading">'+d.html()+"</div>").insertBefore(d);d.next().remove()}d.insertBefore(i);d.addClass("ui-collapsible-heading").append('<span class="ui-collapsible-heading-status"></span>').wrapInner('<a href="#" class="ui-collapsible-heading-toggle"></a>').find("a:eq(0)").buttonMarkup({shadow:!!!h.length,corners:false,iconPos:"left",icon:"plus",theme:f.theme}).find(".ui-icon").removeAttr("class").buttonMarkup({shadow:true,corners:true,iconPos:"notext",icon:"plus",theme:f.iconTheme});if(!h.length){d.find("a:eq(0)").addClass("ui-corner-all").find(".ui-btn-inner").addClass("ui-corner-all")}else{if(c.data("collapsible-last")){d.find("a:eq(0), .ui-btn-inner").addClass("ui-corner-bottom")}}c.bind("collapse",function(j){if(!j.isDefaultPrevented()){j.preventDefault();d.addClass("ui-collapsible-heading-collapsed").find(".ui-collapsible-heading-status").text(f.expandCueText);d.find(".ui-icon").removeClass("ui-icon-minus").addClass("ui-icon-plus");i.addClass("ui-collapsible-content-collapsed").attr("aria-hidden",true);if(c.data("collapsible-last")){d.find("a:eq(0), .ui-btn-inner").addClass("ui-corner-bottom")}}}).bind("expand",function(j){if(!j.isDefaultPrevented()){j.preventDefault();d.removeClass("ui-collapsible-heading-collapsed").find(".ui-collapsible-heading-status").text(f.collapseCueText);d.find(".ui-icon").removeClass("ui-icon-plus").addClass("ui-icon-minus");i.removeClass("ui-collapsible-content-collapsed").attr("aria-hidden",false);if(c.data("collapsible-last")){d.find("a:eq(0), .ui-btn-inner").removeClass("ui-corner-bottom")}}}).trigger(f.collapsed?"collapse":"expand");if(h.length&&!h.data("collapsiblebound")){h.data("collapsiblebound",true).bind("expand",function(j){a(this).find(".ui-collapsible-contain").not(a(j.target).closest(".ui-collapsible-contain")).not("> .ui-collapsible-contain .ui-collapsible-contain").trigger("collapse")});var g=h.find("[data-role=collapsible]");g.first().find("a:eq(0)").addClass("ui-corner-top").find(".ui-btn-inner").addClass("ui-corner-top");g.last().data("collapsible-last",true)}d.bind({tap:function(){if(d.is(".ui-collapsible-heading-collapsed")){c.trigger("expand")}else{c.trigger("collapse")}return false},click:false})}})})(jQuery);(function(a,b){a.fn.controlgroup=function(c){return this.each(function(){var g=a.extend({direction:a(this).data("type")||"vertical",shadow:false},c);var h=a(this).find(">legend"),d=g.direction=="horizontal"?["ui-corner-left","ui-corner-right"]:["ui-corner-top","ui-corner-bottom"],e=a(this).find("input:eq(0)").attr("type");if(h.length){a(this).wrapInner('<div class="ui-controlgroup-controls"></div>');a('<div role="heading" class="ui-controlgroup-label">'+h.html()+"</div>").insertBefore(a(this).children(0));h.remove()}a(this).addClass("ui-corner-all ui-controlgroup ui-controlgroup-"+g.direction);function f(i){i.removeClass("ui-btn-corner-all ui-shadow").eq(0).addClass(d[0]).end().filter(":last").addClass(d[1]).addClass("ui-controlgroup-last")}f(a(this).find(".ui-btn"));f(a(this).find(".ui-btn-inner"));if(g.shadow){a(this).addClass("ui-shadow")}})}})(jQuery);(function(a,b){a.fn.fieldcontain=function(c){return this.addClass("ui-field-contain ui-body ui-br")}})(jQuery);(function(a,b){a.widget("mobile.listview",a.mobile.widget,{options:{theme:"c",countTheme:"c",headerTheme:"b",dividerTheme:"b",splitIcon:"arrow-r",splitTheme:"b",inset:false},_create:function(){var c=this.element,d=this.options;c.addClass("ui-listview").attr("role","listbox");if(d.inset){c.addClass("ui-listview-inset ui-corner-all ui-shadow")}c.delegate(".ui-li","focusin",function(){a(this).attr("tabindex","0")});this._itemApply(c,c);this.refresh(true);c.keydown(function(k){var j=a(k.target),f=j.closest("li");switch(k.keyCode){case 38:var i=f.prev();if(i.length){j.blur().attr("tabindex","-1");i.find("a").first().focus()}return false;break;case 40:var h=f.next();if(h.length){j.blur().attr("tabindex","-1");h.find("a").first().focus()}return false;break;case 39:var g=f.find("a.ui-li-link-alt");if(g.length){j.blur();g.first().focus()}return false;break;case 37:var g=f.find("a.ui-link-inherit");if(g.length){j.blur();g.first().focus()}return false;break;case 13:case 32:j.trigger("click");return false;break}});c.delegate("li","click",function(e){if(!a(e.target).closest("a").length){a(this).find("a").first().trigger("click");return false}})},_itemApply:function(d,e){e.find(".ui-li-count").addClass("ui-btn-up-"+(d.data("counttheme")||this.options.countTheme)+" ui-btn-corner-all");e.find("h1, h2, h3, h4, h5, h6").addClass("ui-li-heading");e.find("p, dl").addClass("ui-li-desc");e.find("li").find("img:eq(0)").addClass("ui-li-thumb").each(function(){a(this).closest("li").addClass(a(this).is(".ui-li-icon")?"ui-li-has-icon":"ui-li-has-thumb")});var c=e.find(".ui-li-aside");if(c.length){c.each(function(f,g){a(g).prependTo(a(g).parent())})}if(a.support.cssPseudoElement||!a.nodeName(e[0],"ol")){return}},_removeCorners:function(c){c.add(c.find(".ui-btn-inner, .ui-li-link-alt, .ui-li-thumb")).removeClass("ui-corner-top ui-corner-bottom ui-corner-br ui-corner-bl ui-corner-tr ui-corner-tl")},refresh:function(g){this._createSubPages();var i=this.options,f=this.element,e=this,h=f.data("dividertheme")||i.dividerTheme,c=f.children("li"),d=a.support.cssPseudoElement||!a.nodeName(f[0],"ol")?0:1;if(d){f.find(".ui-li-dec").remove()}c.attr({role:"option",tabindex:"-1"});c.first().attr("tabindex","0");c.each(function(q){var n=a(this),o="ui-li";if(!g&&n.hasClass("ui-li")){return}var p=n.data("theme")||i.theme;var j=n.find("a");if(j.length){var l=n.data("icon");n.buttonMarkup({wrapperEls:"div",shadow:false,corners:false,iconpos:"right",icon:j.length>1||l===false?false:l||"arrow-r",theme:p});j.first().addClass("ui-link-inherit");if(j.length>1){o+=" ui-li-has-alt";var m=j.last(),k=f.data("splittheme")||m.data("theme")||i.splitTheme;m.appendTo(n).attr("title",m.text()).addClass("ui-li-link-alt").empty().buttonMarkup({shadow:false,corners:false,theme:p,icon:false,iconpos:false}).find(".ui-btn-inner").append(a("<span>").buttonMarkup({shadow:true,corners:true,theme:k,iconpos:"notext",icon:f.data("spliticon")||m.data("icon")||i.splitIcon}))}}else{if(n.data("role")==="list-divider"){o+=" ui-li-divider ui-btn ui-bar-"+h;n.attr("role","heading");if(d){d=1}}else{o+=" ui-li-static ui-btn-up-"+p}}if(i.inset){if(q===0){o+=" ui-corner-top";n.add(n.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-tr").end().find(".ui-li-thumb").addClass("ui-corner-tl");if(n.next().next().length){e._removeCorners(n.next())}}if(q===c.length-1){o+=" ui-corner-bottom";n.add(n.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-br").end().find(".ui-li-thumb").addClass("ui-corner-bl");if(n.prev().prev().length){e._removeCorners(n.prev())}}}if(d&&o.indexOf("ui-li-divider")<0){n.find(".ui-link-inherit").first().addClass("ui-li-jsnumbering").prepend("<span class='ui-li-dec'>"+(d++)+". </span>")}n.addClass(o);if(!g){e._itemApply(f,n)}})},_idStringEscape:function(c){return c.replace(/[^a-zA-Z0-9]/g,"-")},_createSubPages:function(){var d=this.element,c=d.closest(".ui-page"),h=c.data("url"),g=this.options,e=this,f=c.find("[data-role='footer']").data("id");a(d.find("ul, ol").toArray().reverse()).each(function(o){var p=a(this),r=p.parent(),q=a.trim(r.contents()[0].nodeValue)||r.find("a:first").text(),j=h+"&"+a.mobile.subPageUrlKey+"="+e._idStringEscape(q+" "+o),n=p.data("theme")||g.theme,k=p.data("counttheme")||d.data("counttheme")||g.countTheme,l=p.wrap("<div data-role='page'><div data-role='content'></div></div>").parent().before("<div data-role='header' data-theme='"+g.headerTheme+"'><div class='ui-title'>"+q+"</div></div>").after(f?a("<div>",{"data-role":"footer","data-id":f,"class":"ui-footer-duplicate"}):"").parent().attr({"data-url":j,"data-theme":n,"data-count-theme":k}).appendTo(a.mobile.pageContainer);l.page();var m=r.find("a:first");if(!m.length){m=a("<a></a>").html(q).prependTo(r.empty())}m.attr("href","#"+j)}).listview()}})})(jQuery);(function(a,b){a.mobile.listview.prototype.options.filter=false;a("[data-role='listview']").live("listviewcreate",function(){var e=a(this),d=e.data("listview");if(!d.options.filter){return}var f=a("<form>",{"class":"ui-listview-filter ui-bar-c",role:"search"}),c=a("<input>",{placeholder:"Filter results...","data-type":"search"}).bind("keyup change",function(){var g=this.value.toLowerCase();e.children().show();if(g){e.children().filter(function(){return a(this).text().toLowerCase().indexOf(g)===-1}).hide()}}).appendTo(f).textinput();f.insertBefore(e)})})(jQuery);(function(a,b){a.widget("mobile.dialog",a.mobile.widget,{options:{},_create:function(){var c=this,d=c.element;this.element.attr("role","dialog").addClass("ui-page ui-dialog ui-body-a").find("[data-role=header]").addClass("ui-corner-top ui-overlay-shadow").prepend('<a href="#" data-icon="delete" data-rel="back" data-iconpos="notext">Close</a>').end().find('.ui-content:not([class*="ui-body-"])').addClass("ui-body-c").end().find(".ui-content,[data-role=footer]").last().addClass("ui-corner-bottom ui-overlay-shadow");this.element.bind("click submit",function(g){var f;if(g.type=="click"){f=a(g.target).closest("a")}else{f=a(g.target).closest("form")}if(f.length&&!f.data("transition")){f.attr("data-transition",a.mobile.urlHistory.getActive().transition).attr("data-direction","reverse")}})},close:function(){window.history.back()}})})(jQuery);(function(a,b){a.widget("mobile.navbar",a.mobile.widget,{options:{iconpos:"top",grid:null},_create:function(){var e=this.element,c=e.find("a"),d=c.filter("[data-icon]").length?this.options.iconpos:b;e.addClass("ui-navbar").attr("role","navigation").find("ul").grid({grid:this.options.grid});if(!d){e.addClass("ui-navbar-noicons")}c.buttonMarkup({corners:false,shadow:false,iconpos:d});e.delegate("a","click",function(f){c.removeClass("ui-btn-active");a(this).addClass("ui-btn-active")})}})})(jQuery);(function(a,b){a.fn.grid=function(c){return this.each(function(){var h=a.extend({grid:null},c);var i=a(this).children(),f={a:2,b:3,c:4,d:5},d=h.grid,e;if(!d){if(i.length<=5){for(var g in f){if(f[g]==i.length){d=g}}}else{d="a"}}e=f[d];a(this).addClass("ui-grid-"+d);i.filter(":nth-child("+e+"n+1)").addClass("ui-block-a");i.filter(":nth-child("+e+"n+2)").addClass("ui-block-b");if(e>2){i.filter(":nth-child(3n+3)").addClass("ui-block-c")}if(e>3){i.filter(":nth-child(4n+4)").addClass("ui-block-d")}if(e>4){i.filter(":nth-child(5n+5)").addClass("ui-block-e")}})}})(jQuery);
|
29
|
+
/*!
|
30
|
+
* jQuery Mobile v@VERSION
|
31
|
+
* http://jquerymobile.com/
|
32
|
+
*
|
33
|
+
* Copyright 2010, jQuery Project
|
34
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
35
|
+
* http://jquery.org/license
|
36
|
+
*/
|
37
|
+
(function(d,c,f){var b=d("html"),a=d("head"),e=d(c);d.extend(d.mobile,{initializePage:function(){var g=d("[data-role='page']");g.add("[data-role='dialog']").each(function(){d(this).attr("data-url",d(this).attr("id"))});d.mobile.firstPage=g.first();d.mobile.pageContainer=g.first().parent().addClass("ui-mobile-viewport");d.mobile.pageLoading();if(!d.mobile.hashListeningEnabled||!d.mobile.path.stripHash(location.hash)){d.mobile.changePage(d.mobile.firstPage,false,true,false,true)}else{e.trigger("hashchange",[true])}}});d(c.document).trigger("mobileinit");if(!d.mobile.gradeA()){return}b.addClass("ui-mobile ui-mobile-rendering");d.mobile.metaViewportContent?d("<meta>",{name:"viewport",content:d.mobile.metaViewportContent}).prependTo(a):f;d(d.mobile.initializePage);e.load(d.mobile.silentScroll)})(jQuery,this);(function(a){a.themeswitcher=function(){if(a("[data-url=themeswitcher]").length){return}var c="/stylesheets/compiled/jquery/mobile/",b=["default","valencia"],d=a.mobile.activePage,e=a("<div data-url=\"themeswitcher\" data-role='dialog' data-theme='a'><div data-role='header' data-theme='b'><div class='ui-title'>Switch Theme:</div></div><div data-role='content' data-theme='c'><ul data-role='listview' data-inset='true'></ul></div></div>").appendTo(a.mobile.pageContainer),g=e.find("ul");a.each(b,function(h){a('<li><a href="#" data-rel="back">'+b[h].charAt(0).toUpperCase()+b[h].substr(1)+"</a></li>").click(function(){f(b[h]);return false}).appendTo(g)});function f(h){a("head").append("<link rel='stylesheet' href='"+c+h+".css' />")}e.page()}})(jQuery);
|
@@ -27,26 +27,26 @@ end
|
|
27
27
|
|
28
28
|
namespace :jquery do
|
29
29
|
namespace :mobile do
|
30
|
-
|
30
|
+
|
31
31
|
namespace :haml do
|
32
32
|
desc 'Cleanup directory'
|
33
|
-
task :cleanup, :dir do |
|
33
|
+
task :cleanup, :dir do |t, args|
|
34
34
|
cleanup(args[:dir])
|
35
35
|
end
|
36
36
|
end
|
37
|
-
|
37
|
+
|
38
38
|
namespace :convert do
|
39
39
|
desc 'Convert API-Viewer files to haml'
|
40
40
|
task :api do
|
41
41
|
puts "Haml conversion started for API-Viewer:"
|
42
|
-
|
42
|
+
|
43
43
|
path = File.join(JQ_MOBILE_SRC, 'experiments/api-viewer')
|
44
44
|
cleanup("#{path}/*.html.haml")
|
45
45
|
Dir["#{path}/*.html"].each do |src|
|
46
46
|
dest = src.gsub(/\.html$/, '.html.haml')
|
47
47
|
convert2haml(src, dest)
|
48
48
|
end
|
49
|
-
|
49
|
+
|
50
50
|
path = File.join(path, 'docs')
|
51
51
|
cleanup("#{path}/*.html.haml")
|
52
52
|
Dir["#{path}/**/*.html"].each do |src|
|
@@ -55,18 +55,18 @@ namespace :jquery do
|
|
55
55
|
end
|
56
56
|
puts "Haml conversion finished for API-Viewer."
|
57
57
|
end
|
58
|
-
|
58
|
+
|
59
59
|
desc 'Convert /docs files to haml'
|
60
60
|
task :docs do
|
61
61
|
puts "Haml conversion started for /docs files:"
|
62
|
-
|
62
|
+
|
63
63
|
path = File.join(JQ_MOBILE_SRC, 'docs')
|
64
64
|
cleanup("#{path}/*.html.haml")
|
65
65
|
Dir["#{path}/*.html"].each do |src|
|
66
66
|
dest = src.gsub(/\.html$/, '.html.haml')
|
67
67
|
convert2haml(src, dest)
|
68
68
|
end
|
69
|
-
|
69
|
+
|
70
70
|
cleanup("#{path}/**/*.html.haml")
|
71
71
|
Dir["#{path}/**/*.html"].each do |src|
|
72
72
|
dest = src.gsub(/\.html$/, '.html.haml')
|
@@ -74,11 +74,11 @@ namespace :jquery do
|
|
74
74
|
end
|
75
75
|
puts "Haml conversion finished for /docs files."
|
76
76
|
end
|
77
|
-
|
77
|
+
|
78
78
|
desc 'Convert /experiments files to haml'
|
79
79
|
task :experiments do
|
80
80
|
puts "Haml conversion started for /experiments files:"
|
81
|
-
|
81
|
+
|
82
82
|
path = File.join(JQ_MOBILE_SRC, 'experiments')
|
83
83
|
cleanup("#{path}/**/*.html.haml")
|
84
84
|
Dir["#{path}/**/*.html"].each do |src|
|
@@ -88,11 +88,11 @@ namespace :jquery do
|
|
88
88
|
end
|
89
89
|
puts "Haml conversion finished for /experiments files."
|
90
90
|
end
|
91
|
-
|
91
|
+
|
92
92
|
desc 'Convert /speed files to haml'
|
93
93
|
task :speed do
|
94
94
|
puts "Haml conversion started for /speed files:"
|
95
|
-
|
95
|
+
|
96
96
|
path = File.join(JQ_MOBILE_SRC, 'speed')
|
97
97
|
cleanup("#{path}/*.html.haml")
|
98
98
|
Dir["#{path}/*.html"].each do |src|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'jquery/ribbon'
|
2
2
|
|
3
|
-
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :ribbon_simple
|
4
|
-
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :ribbon_office
|
3
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :ribbon_simple => ['compiled/jquery/ribbon/simple.css']
|
4
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :ribbon_office => ['compiled/jquery/ribbon/office.css']
|
5
5
|
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :ribbon_windows7 => ['compiled/jquery/ribbon/windows7.css']
|
6
6
|
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :ribbon => ['jquery.ribbon.min']
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2009 Mikael Söderström.
|
3
|
-
Contact: vimpyboy@msn.com
|
2
|
+
Copyright (c) 2009 Mikael Söderström.
|
3
|
+
Contact: vimpyboy@msn.com
|
4
4
|
|
5
|
-
Feel free to use this script as long as you don't remove this comment.
|
6
|
-
*/
|
5
|
+
Feel free to use this script as long as you don't remove this comment.
|
6
|
+
*/
|
7
7
|
|
8
8
|
(function($) {
|
9
9
|
var isLoaded;
|
@@ -24,22 +24,38 @@ Feel free to use this script as long as you don't remove this comment.
|
|
24
24
|
SetupMenu(settings);
|
25
25
|
}
|
26
26
|
|
27
|
-
$(document).keydown(function(e) {
|
28
|
-
|
27
|
+
$(document).keydown(function(e) {
|
28
|
+
ShowAccessKeys(e);
|
29
|
+
});
|
30
|
+
$(document).keyup(function(e) {
|
31
|
+
HideAccessKeys(e);
|
32
|
+
});
|
29
33
|
|
30
34
|
function SetupMenu(settings) {
|
31
35
|
$('.menu li a:first').addClass('active');
|
32
36
|
$('.menu li ul').hide();
|
33
37
|
$('.menu li a:first').parent().children('ul:first').show();
|
34
38
|
$('.menu li a:first').parent().children('ul:first').addClass('submenu');
|
35
|
-
$('.menu li > a').click(function() {
|
36
|
-
|
39
|
+
$('.menu li > a').click(function() {
|
40
|
+
ShowSubMenu(this);
|
41
|
+
});
|
42
|
+
$('.orbButton').click(function() {
|
43
|
+
ShowMenu(settings.backStage);
|
44
|
+
});
|
37
45
|
$('.orb ul').hide();
|
38
46
|
$('.orb ul ul').hide();
|
39
47
|
$('.orb li ul li ul').show();
|
40
|
-
$('.orb li li ul').each(function() {
|
41
|
-
|
42
|
-
|
48
|
+
$('.orb li li ul').each(function() {
|
49
|
+
$(this).prepend('<div style="background-color: #EBF2F7; height: 25px; line-height: 25px; width: 292px; padding-left: 9px; border-bottom: 1px solid #CFDBEB;">' + $(this).parent().children('a:first').text() + '</div>');
|
50
|
+
});
|
51
|
+
$('.orb li li a').each(function() {
|
52
|
+
if ($(this).parent().children('ul').length > 0) {
|
53
|
+
$(this).addClass('arrow');
|
54
|
+
}
|
55
|
+
});
|
56
|
+
$('.orb .ribbon-backstage a').live('click', function() {
|
57
|
+
$('.orb ul').fadeOut('fast');
|
58
|
+
});
|
43
59
|
|
44
60
|
//$('.ribbon-list div').each(function() { $(this).parent().width($(this).parent().width()); });
|
45
61
|
|
@@ -61,19 +77,21 @@ Feel free to use this script as long as you don't remove this comment.
|
|
61
77
|
});
|
62
78
|
|
63
79
|
$('.ribbon-list div').parents().click(function(e) {
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
$('.orb li li a').mouseover(function() {
|
80
|
+
$('.ribbon-list div ul:visible').each(function() {
|
81
|
+
var outsideX = e.pageX < $('.ribbon-list div ul:visible').parent().offset().left || e.pageX > $('.ribbon-list div ul:visible').parent().offset().left + $('.ribbon-list div ul:visible').parent().width();
|
82
|
+
var outsideY = e.pageY < $('.ribbon-list div ul:visible').parent().offset().top || e.pageY > $('.ribbon-list div ul:visible').parent().offset().top + $('.ribbon-list div ul:visible').parent().height();
|
83
|
+
if (outsideX || outsideY) {
|
84
|
+
$('.ribbon-list div ul:visible').each(function() {
|
85
|
+
$(this).fadeOut('fast');
|
86
|
+
});
|
87
|
+
$('.ribbon-list div').css('background-image', '');
|
88
|
+
}
|
89
|
+
});
|
90
|
+
});
|
91
|
+
|
92
|
+
$('.orb li li a').mouseover(function() {
|
93
|
+
ShowOrbChildren(this);
|
94
|
+
});
|
77
95
|
|
78
96
|
$('.menu li > a').dblclick(function() {
|
79
97
|
$('ul .submenu').animate({ height: "hide" });
|
@@ -103,10 +121,10 @@ Feel free to use this script as long as you don't remove this comment.
|
|
103
121
|
}
|
104
122
|
|
105
123
|
$('.ribbon-list div').each(function() {
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
124
|
+
if ($(this).children('ul').length > 0) {
|
125
|
+
$(this).append('<img src="/images/jquery/ribbon/' + settings.theme + '/arrow_down.png" style="float: right; margin-top: 5px;" />')
|
126
|
+
}
|
127
|
+
});
|
110
128
|
|
111
129
|
//Hack for IE 7.
|
112
130
|
if (navigator.appVersion.indexOf('MSIE 6.0') > -1 || navigator.appVersion.indexOf('MSIE 7.0') > -1) {
|
@@ -215,7 +233,10 @@ Feel free to use this script as long as you don't remove this comment.
|
|
215
233
|
|
216
234
|
function ShowAccessKeys(e) {
|
217
235
|
if (e.altKey) {
|
218
|
-
$('div[rel="accesskeyhelper"]').each(function() {
|
236
|
+
$('div[rel="accesskeyhelper"]').each(function() {
|
237
|
+
$(this).css('top', $(this).parent().offset().top).css('left', $(this).parent().offset().left - 20 + $(this).parent().width());
|
238
|
+
$(this).show();
|
239
|
+
});
|
219
240
|
}
|
220
241
|
}
|
221
242
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
// extracts form data from an existing rails form, and replaces it's own contents with the contents
|
2
2
|
// of data
|
3
3
|
jQuery.fn.addSauceFromForm = function(data) {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
4
|
+
var formData = $(data).find(".ui-dialog-content").children();
|
5
|
+
var formToken = $(data).find("input[name='authenticity_token']");
|
6
|
+
var formMethod = $(data).find("input[name='_method']");
|
7
|
+
$(data).children().remove();
|
8
|
+
$(data).append(formData);
|
9
|
+
$(data).append(formToken);
|
10
|
+
$(data).append(formMethod);
|
11
|
+
$(this).append(data);
|
12
12
|
};
|
@@ -21,4 +21,948 @@
|
|
21
21
|
* Date: 2010-08-25 12:48:46 +0000 (Wed, 25 Aug 2010)
|
22
22
|
* Revision: 551
|
23
23
|
*/
|
24
|
-
(function(){function g(o){console.log("$f.fireEvent",[].slice.call(o))}function k(q){if(!q||typeof q!="object"){return q}var o=new q.constructor();for(var p in q){if(q.hasOwnProperty(p)){o[p]=k(q[p])}}return o}function m(t,q){if(!t){return}var o,p=0,r=t.length;if(r===undefined){for(o in t){if(q.call(t[o],o,t[o])===false){break}}}else{for(var s=t[0];p<r&&q.call(s,p,s)!==false;s=t[++p]){}}return t}function c(o){return document.getElementById(o)}function i(q,p,o){if(typeof p!="object"){return q}if(q&&p){m(p,function(r,s){if(!o||typeof s!="function"){q[r]=s}})}return q}function n(s){var q=s.indexOf(".");if(q!=-1){var p=s.slice(0,q)||"*";var o=s.slice(q+1,s.length);var r=[];m(document.getElementsByTagName(p),function(){if(this.className&&this.className.indexOf(o)!=-1){r.push(this)}});return r}}function f(o){o=o||window.event;if(o.preventDefault){o.stopPropagation();o.preventDefault()}else{o.returnValue=false;o.cancelBubble=true}return false}function j(q,o,p){q[o]=q[o]||[];q[o].push(p)}function e(){return"_"+(""+Math.random()).slice(2,10)}var h=function(t,r,s){var q=this,p={},u={};q.index=r;if(typeof t=="string"){t={url:t}}i(this,t,true);m(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var v="on"+this;if(v.indexOf("*")!=-1){v=v.slice(0,v.length-1);var w="onBefore"+v.slice(2);q[w]=function(x){j(u,w,x);return q}}q[v]=function(x){j(u,v,x);return q};if(r==-1){if(q[w]){s[w]=q[w]}if(q[v]){s[v]=q[v]}}});i(this,{onCuepoint:function(x,w){if(arguments.length==1){p.embedded=[null,x];return q}if(typeof x=="number"){x=[x]}var v=e();p[v]=[x,w];if(s.isLoaded()){s._api().fp_addCuepoints(x,r,v)}return q},update:function(w){i(q,w);if(s.isLoaded()){s._api().fp_updateClip(w,r)}var v=s.getConfig();var x=(r==-1)?v.clip:v.playlist[r];i(x,w,true)},_fireEvent:function(v,y,w,A){if(v=="onLoad"){m(p,function(B,C){if(C[0]){s._api().fp_addCuepoints(C[0],r,B)}});return false}A=A||q;if(v=="onCuepoint"){var z=p[y];if(z){return z[1].call(s,A,w)}}if(y&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(v)!=-1){i(A,y);if(y.metaData){if(!A.duration){A.duration=y.metaData.duration}else{A.fullDuration=y.metaData.duration}}}var x=true;m(u[v],function(){x=this.call(s,A,y,w)});return x}});if(t.onCuepoint){var o=t.onCuepoint;q.onCuepoint.apply(q,typeof o=="function"?[o]:o);delete t.onCuepoint}m(t,function(v,w){if(typeof w=="function"){j(u,v,w);delete t[v]}});if(r==-1){s.onCuepoint=this.onCuepoint}};var l=function(p,r,q,t){var o=this,s={},u=false;if(t){i(s,t)}m(r,function(v,w){if(typeof w=="function"){s[v]=w;delete r[v]}});i(this,{animate:function(y,z,x){if(!y){return o}if(typeof z=="function"){x=z;z=500}if(typeof y=="string"){var w=y;y={};y[w]=z;z=500}if(x){var v=e();s[v]=x}if(z===undefined){z=500}r=q._api().fp_animate(p,y,z,v);return o},css:function(w,x){if(x!==undefined){var v={};v[w]=x;w=v}r=q._api().fp_css(p,w);i(o,r);return o},show:function(){this.display="block";q._api().fp_showPlugin(p);return o},hide:function(){this.display="none";q._api().fp_hidePlugin(p);return o},toggle:function(){this.display=q._api().fp_togglePlugin(p);return o},fadeTo:function(y,x,w){if(typeof x=="function"){w=x;x=500}if(w){var v=e();s[v]=w}this.display=q._api().fp_fadeTo(p,y,x,v);this.opacity=y;return o},fadeIn:function(w,v){return o.fadeTo(1,w,v)},fadeOut:function(w,v){return o.fadeTo(0,w,v)},getName:function(){return p},getPlayer:function(){return q},_fireEvent:function(w,v,x){if(w=="onUpdate"){var z=q._api().fp_getPlugin(p);if(!z){return}i(o,z);delete o.methods;if(!u){m(z.methods,function(){var B=""+this;o[B]=function(){var C=[].slice.call(arguments);var D=q._api().fp_invoke(p,B,C);return D==="undefined"||D===undefined?o:D}});u=true}}var A=s[w];if(A){var y=A.apply(o,v);if(w.slice(0,1)=="_"){delete s[w]}return y}return o}})};function b(q,G,t){var w=this,v=null,D=false,u,s,F=[],y={},x={},E,r,p,C,o,A;i(w,{id:function(){return E},isLoaded:function(){return(v!==null&&v.fp_play!==undefined&&!D)},getParent:function(){return q},hide:function(H){if(H){q.style.height="0px"}if(w.isLoaded()){v.style.height="0px"}return w},show:function(){q.style.height=A+"px";if(w.isLoaded()){v.style.height=o+"px"}return w},isHidden:function(){return w.isLoaded()&&parseInt(v.style.height,10)===0},load:function(J){if(!w.isLoaded()&&w._fireEvent("onBeforeLoad")!==false){var H=function(){u=q.innerHTML;if(u&&!flashembed.isSupported(G.version)){q.innerHTML=""}if(J){J.cached=true;j(x,"onLoad",J)}flashembed(q,G,{config:t})};var I=0;m(a,function(){this.unload(function(K){if(++I==a.length){H()}})})}return w},unload:function(J){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent)){if(J){J(false)}return w}if(u.replace(/\s/g,"")!==""){if(w._fireEvent("onBeforeUnload")===false){if(J){J(false)}return w}D=true;try{if(v){v.fp_close();w._fireEvent("onUnload")}}catch(H){}var I=function(){v=null;q.innerHTML=u;D=false;if(J){J(true)}};setTimeout(I,50)}else{if(J){J(false)}}return w},getClip:function(H){if(H===undefined){H=C}return F[H]},getCommonClip:function(){return s},getPlaylist:function(){return F},getPlugin:function(H){var J=y[H];if(!J&&w.isLoaded()){var I=w._api().fp_getPlugin(H);if(I){J=new l(H,I,w);y[H]=J}}return J},getScreen:function(){return w.getPlugin("screen")},getControls:function(){return w.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return w.getPlugin("logo")._fireEvent("onUpdate")}catch(H){}},getPlay:function(){return w.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(H){return H?k(t):t},getFlashParams:function(){return G},loadPlugin:function(K,J,M,L){if(typeof M=="function"){L=M;M={}}var I=L?e():"_";w._api().fp_loadPlugin(K,J,M,I);var H={};H[I]=L;var N=new l(K,null,w,H);y[K]=N;return N},getState:function(){return w.isLoaded()?v.fp_getState():-1},play:function(I,H){var J=function(){if(I!==undefined){w._api().fp_play(I,H)}else{w._api().fp_play()}};if(w.isLoaded()){J()}else{if(D){setTimeout(function(){w.play(I,H)},50)}else{w.load(function(){J()})}}return w},getVersion:function(){var I="flowplayer.js 3.2.4";if(w.isLoaded()){var H=v.fp_getVersion();H.push(I);return H}return I},_api:function(){if(!w.isLoaded()){throw"Flowplayer "+w.id()+" not loaded when calling an API method"}return v},setClip:function(H){w.setPlaylist([H]);return w},getIndex:function(){return p},_swfHeight:function(){return v.clientHeight}});m(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var H="on"+this;if(H.indexOf("*")!=-1){H=H.slice(0,H.length-1);var I="onBefore"+H.slice(2);w[I]=function(J){j(x,I,J);return w}}w[H]=function(J){j(x,H,J);return w}});m(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled").split(","),function(){var H=this;w[H]=function(J,I){if(!w.isLoaded()){return w}var K=null;if(J!==undefined&&I!==undefined){K=v["fp_"+H](J,I)}else{K=(J===undefined)?v["fp_"+H]():v["fp_"+H](J)}return K==="undefined"||K===undefined?w:K}});w._fireEvent=function(Q){if(typeof Q=="string"){Q=[Q]}var R=Q[0],O=Q[1],M=Q[2],L=Q[3],K=0;if(t.debug){g(Q)}if(!w.isLoaded()&&R=="onLoad"&&O=="player"){v=v||c(r);o=w._swfHeight();m(F,function(){this._fireEvent("onLoad")});m(y,function(S,T){T._fireEvent("onUpdate")});s._fireEvent("onLoad")}if(R=="onLoad"&&O!="player"){return}if(R=="onError"){if(typeof O=="string"||(typeof O=="number"&&typeof M=="number")){O=M;M=L}}if(R=="onContextMenu"){m(t.contextMenu[O],function(S,T){T.call(w)});return}if(R=="onPluginEvent"||R=="onBeforePluginEvent"){var H=O.name||O;var I=y[H];if(I){I._fireEvent("onUpdate",O);return I._fireEvent(M,Q.slice(3))}return}if(R=="onPlaylistReplace"){F=[];var N=0;m(O,function(){F.push(new h(this,N++,w))})}if(R=="onClipAdd"){if(O.isInStream){return}O=new h(O,M,w);F.splice(M,0,O);for(K=M+1;K<F.length;K++){F[K].index++}}var P=true;if(typeof O=="number"&&O<F.length){C=O;var J=F[O];if(J){P=J._fireEvent(R,M,L)}if(!J||P!==false){P=s._fireEvent(R,M,L,J)}}m(x[R],function(){P=this.call(w,O,M);if(this.cached){x[R].splice(K,1)}if(P===false){return false}K++});return P};function B(){if($f(q)){$f(q).getParent().innerHTML="";p=$f(q).getIndex();a[p]=w}else{a.push(w);p=a.length-1}A=parseInt(q.style.height,10)||q.clientHeight;E=q.id||"fp"+e();r=G.id||E+"_api";G.id=r;t.playerId=E;if(typeof t=="string"){t={clip:{url:t}}}if(typeof t.clip=="string"){t.clip={url:t.clip}}t.clip=t.clip||{};if(q.getAttribute("href",2)&&!t.clip.url){t.clip.url=q.getAttribute("href",2)}s=new h(t.clip,-1,w);t.playlist=t.playlist||[t.clip];var I=0;m(t.playlist,function(){var K=this;if(typeof K=="object"&&K.length){K={url:""+K}}m(t.clip,function(L,M){if(M!==undefined&&K[L]===undefined&&typeof M!="function"){K[L]=M}});t.playlist[I]=K;K=new h(K,I,w);F.push(K);I++});m(t,function(K,L){if(typeof L=="function"){if(s[K]){s[K](L)}else{j(x,K,L)}delete t[K]}});m(t.plugins,function(K,L){if(L){y[K]=new l(K,L,w)}});if(!t.plugins||t.plugins.controls===undefined){y.controls=new l("controls",null,w)}y.canvas=new l("canvas",null,w);u=q.innerHTML;function J(L){var K=w.hasiPadSupport&&w.hasiPadSupport();if(/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(F[0].url)&&!K){return true}if(!w.isLoaded()&&w._fireEvent("onBeforeClick")!==false){w.load()}return f(L)}function H(){if(u.replace(/\s/g,"")!==""){if(q.addEventListener){q.addEventListener("click",J,false)}else{if(q.attachEvent){q.attachEvent("onclick",J)}}}else{if(q.addEventListener){q.addEventListener("click",f,false)}w.load()}}setTimeout(H,0)}if(typeof q=="string"){var z=c(q);if(!z){throw"Flowplayer cannot access element: "+q}q=z;B()}else{B()}}var a=[];function d(o){this.length=o.length;this.each=function(p){m(o,p)};this.size=function(){return o.length}}window.flowplayer=window.$f=function(){var p=null;var o=arguments[0];if(!arguments.length){m(a,function(){if(this.isLoaded()){p=this;return false}});return p||a[0]}if(arguments.length==1){if(typeof o=="number"){return a[o]}else{if(o=="*"){return new d(a)}m(a,function(){if(this.id()==o.id||this.id()==o||this.getParent()==o){p=this;return false}});return p}}if(arguments.length>1){var t=arguments[1],q=(arguments.length==3)?arguments[2]:{};if(typeof t=="string"){t={src:t}}t=i({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:true},t);if(typeof o=="string"){if(o.indexOf(".")!=-1){var s=[];m(n(o),function(){s.push(new b(this,k(t),k(q)))});return new d(s)}else{var r=c(o);return new b(r!==null?r:o,t,q)}}else{if(o){return new b(o,t,q)}}}return null};i(window.$f,{fireEvent:function(){var o=[].slice.call(arguments);var q=$f(o[0]);return q?q._fireEvent(o.slice(1)):null},addPlugin:function(o,p){b.prototype[o]=p;return $f},each:m,extend:i});if(typeof jQuery=="function"){jQuery.fn.flowplayer=function(q,p){if(!arguments.length||typeof arguments[0]=="number"){var o=[];this.each(function(){var r=$f(this);if(r){o.push(r)}});return arguments.length?o[arguments[0]]:new d(o)}return this.each(function(){$f(this,k(q),p?k(p):{})})}}})();(function(){var h=document.all,j="http://www.adobe.com/go/getflashplayer",c=typeof jQuery=="function",e=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,b={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function i(m,l){if(l){for(var f in l){if(l.hasOwnProperty(f)){m[f]=l[f]}}}return m}function a(f,n){var m=[];for(var l in f){if(f.hasOwnProperty(l)){m[l]=n(f[l])}}return m}window.flashembed=function(f,m,l){if(typeof f=="string"){f=document.getElementById(f.replace("#",""))}if(!f){return}if(typeof m=="string"){m={src:m}}return new d(f,i(i({},b),m),l)};var g=i(window.flashembed,{conf:b,getVersion:function(){var m,f;try{f=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(o){try{m=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");f=m&&m.GetVariable("$version")}catch(n){try{m=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=m&&m.GetVariable("$version")}catch(l){}}}f=e.exec(f);return f?[f[1],f[3]]:[0,0]},asString:function(l){if(l===null||l===undefined){return null}var f=typeof l;if(f=="object"&&l.push){f="array"}switch(f){case"string":l=l.replace(new RegExp('(["\\\\])',"g"),"\\$1");l=l.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+l+'"';case"array":return"["+a(l,function(o){return g.asString(o)}).join(",")+"]";case"function":return'"function()"';case"object":var m=[];for(var n in l){if(l.hasOwnProperty(n)){m.push('"'+n+'":'+g.asString(l[n]))}}return"{"+m.join(",")+"}"}return String(l).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(o,l){o=i({},o);var n='<object width="'+o.width+'" height="'+o.height+'" id="'+o.id+'" name="'+o.id+'"';if(o.cachebusting){o.src+=((o.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(o.w3c||!h){n+=' data="'+o.src+'" type="application/x-shockwave-flash"'}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+=">";if(o.w3c||h){n+='<param name="movie" value="'+o.src+'" />'}o.width=o.height=o.id=o.w3c=o.src=null;o.onFail=o.version=o.expressInstall=null;for(var m in o){if(o[m]){n+='<param name="'+m+'" value="'+o[m]+'" />'}}var p="";if(l){for(var f in l){if(l[f]){var q=l[f];p+=f+"="+(/function|object/.test(typeof q)?g.asString(q):q)+"&"}}p=p.slice(0,-1);n+='<param name="flashvars" value=\''+p+"' />"}n+="</object>";return n},isSupported:function(f){return k[0]>f[0]||k[0]==f[0]&&k[1]>=f[1]}});var k=g.getVersion();function d(f,n,m){if(g.isSupported(n.version)){f.innerHTML=g.getHTML(n,m)}else{if(n.expressInstall&&g.isSupported([6,65])){f.innerHTML=g.getHTML(i(n,{src:n.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title})}else{if(!f.innerHTML.replace(/\s/g,"")){f.innerHTML="<h2>Flash version "+n.version+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(f.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+j+"'>here</a></p>");if(f.tagName=="A"){f.onclick=function(){location.href=j}}}if(n.onFail){var l=n.onFail.call(this);if(typeof l=="string"){f.innerHTML=l}}}}if(h){window[n.id]=document.getElementById(n.id)}i(this,{getRoot:function(){return f},getOptions:function(){return n},getConf:function(){return m},getApi:function(){return f.firstChild}})}if(c){jQuery.tools=jQuery.tools||{version:"3.2.4"};jQuery.tools.flashembed={conf:b};jQuery.fn.flashembed=function(l,f){return this.each(function(){$(this).data("flashembed",flashembed(this,l,f))})}}})();
|
24
|
+
(function() {
|
25
|
+
function g(o) {
|
26
|
+
console.log("$f.fireEvent", [].slice.call(o))
|
27
|
+
}
|
28
|
+
|
29
|
+
function k(q) {
|
30
|
+
if (!q || typeof q != "object") {
|
31
|
+
return q
|
32
|
+
}
|
33
|
+
var o = new q.constructor();
|
34
|
+
for (var p in q) {
|
35
|
+
if (q.hasOwnProperty(p)) {
|
36
|
+
o[p] = k(q[p])
|
37
|
+
}
|
38
|
+
}
|
39
|
+
return o
|
40
|
+
}
|
41
|
+
|
42
|
+
function m(t, q) {
|
43
|
+
if (!t) {
|
44
|
+
return
|
45
|
+
}
|
46
|
+
var o,p = 0,r = t.length;
|
47
|
+
if (r === undefined) {
|
48
|
+
for (o in t) {
|
49
|
+
if (q.call(t[o], o, t[o]) === false) {
|
50
|
+
break
|
51
|
+
}
|
52
|
+
}
|
53
|
+
} else {
|
54
|
+
for (var s = t[0]; p < r && q.call(s, p, s) !== false; s = t[++p]) {
|
55
|
+
}
|
56
|
+
}
|
57
|
+
return t
|
58
|
+
}
|
59
|
+
|
60
|
+
function c(o) {
|
61
|
+
return document.getElementById(o)
|
62
|
+
}
|
63
|
+
|
64
|
+
function i(q, p, o) {
|
65
|
+
if (typeof p != "object") {
|
66
|
+
return q
|
67
|
+
}
|
68
|
+
if (q && p) {
|
69
|
+
m(p, function(r, s) {
|
70
|
+
if (!o || typeof s != "function") {
|
71
|
+
q[r] = s
|
72
|
+
}
|
73
|
+
})
|
74
|
+
}
|
75
|
+
return q
|
76
|
+
}
|
77
|
+
|
78
|
+
function n(s) {
|
79
|
+
var q = s.indexOf(".");
|
80
|
+
if (q != -1) {
|
81
|
+
var p = s.slice(0, q) || "*";
|
82
|
+
var o = s.slice(q + 1, s.length);
|
83
|
+
var r = [];
|
84
|
+
m(document.getElementsByTagName(p), function() {
|
85
|
+
if (this.className && this.className.indexOf(o) != -1) {
|
86
|
+
r.push(this)
|
87
|
+
}
|
88
|
+
});
|
89
|
+
return r
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
function f(o) {
|
94
|
+
o = o || window.event;
|
95
|
+
if (o.preventDefault) {
|
96
|
+
o.stopPropagation();
|
97
|
+
o.preventDefault()
|
98
|
+
} else {
|
99
|
+
o.returnValue = false;
|
100
|
+
o.cancelBubble = true
|
101
|
+
}
|
102
|
+
return false
|
103
|
+
}
|
104
|
+
|
105
|
+
function j(q, o, p) {
|
106
|
+
q[o] = q[o] || [];
|
107
|
+
q[o].push(p)
|
108
|
+
}
|
109
|
+
|
110
|
+
function e() {
|
111
|
+
return"_" + ("" + Math.random()).slice(2, 10)
|
112
|
+
}
|
113
|
+
|
114
|
+
var h = function(t, r, s) {
|
115
|
+
var q = this,p = {},u = {};
|
116
|
+
q.index = r;
|
117
|
+
if (typeof t == "string") {
|
118
|
+
t = {url:t}
|
119
|
+
}
|
120
|
+
i(this, t, true);
|
121
|
+
m(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","), function() {
|
122
|
+
var v = "on" + this;
|
123
|
+
if (v.indexOf("*") != -1) {
|
124
|
+
v = v.slice(0, v.length - 1);
|
125
|
+
var w = "onBefore" + v.slice(2);
|
126
|
+
q[w] = function(x) {
|
127
|
+
j(u, w, x);
|
128
|
+
return q
|
129
|
+
}
|
130
|
+
}
|
131
|
+
q[v] = function(x) {
|
132
|
+
j(u, v, x);
|
133
|
+
return q
|
134
|
+
};
|
135
|
+
if (r == -1) {
|
136
|
+
if (q[w]) {
|
137
|
+
s[w] = q[w]
|
138
|
+
}
|
139
|
+
if (q[v]) {
|
140
|
+
s[v] = q[v]
|
141
|
+
}
|
142
|
+
}
|
143
|
+
});
|
144
|
+
i(this, {onCuepoint:function(x, w) {
|
145
|
+
if (arguments.length == 1) {
|
146
|
+
p.embedded = [null,x];
|
147
|
+
return q
|
148
|
+
}
|
149
|
+
if (typeof x == "number") {
|
150
|
+
x = [x]
|
151
|
+
}
|
152
|
+
var v = e();
|
153
|
+
p[v] = [x,w];
|
154
|
+
if (s.isLoaded()) {
|
155
|
+
s._api().fp_addCuepoints(x, r, v)
|
156
|
+
}
|
157
|
+
return q
|
158
|
+
},update:function(w) {
|
159
|
+
i(q, w);
|
160
|
+
if (s.isLoaded()) {
|
161
|
+
s._api().fp_updateClip(w, r)
|
162
|
+
}
|
163
|
+
var v = s.getConfig();
|
164
|
+
var x = (r == -1) ? v.clip : v.playlist[r];
|
165
|
+
i(x, w, true)
|
166
|
+
},_fireEvent:function(v, y, w, A) {
|
167
|
+
if (v == "onLoad") {
|
168
|
+
m(p, function(B, C) {
|
169
|
+
if (C[0]) {
|
170
|
+
s._api().fp_addCuepoints(C[0], r, B)
|
171
|
+
}
|
172
|
+
});
|
173
|
+
return false
|
174
|
+
}
|
175
|
+
A = A || q;
|
176
|
+
if (v == "onCuepoint") {
|
177
|
+
var z = p[y];
|
178
|
+
if (z) {
|
179
|
+
return z[1].call(s, A, w)
|
180
|
+
}
|
181
|
+
}
|
182
|
+
if (y && "onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(v) != -1) {
|
183
|
+
i(A, y);
|
184
|
+
if (y.metaData) {
|
185
|
+
if (!A.duration) {
|
186
|
+
A.duration = y.metaData.duration
|
187
|
+
} else {
|
188
|
+
A.fullDuration = y.metaData.duration
|
189
|
+
}
|
190
|
+
}
|
191
|
+
}
|
192
|
+
var x = true;
|
193
|
+
m(u[v], function() {
|
194
|
+
x = this.call(s, A, y, w)
|
195
|
+
});
|
196
|
+
return x
|
197
|
+
}});
|
198
|
+
if (t.onCuepoint) {
|
199
|
+
var o = t.onCuepoint;
|
200
|
+
q.onCuepoint.apply(q, typeof o == "function" ? [o] : o);
|
201
|
+
delete t.onCuepoint
|
202
|
+
}
|
203
|
+
m(t, function(v, w) {
|
204
|
+
if (typeof w == "function") {
|
205
|
+
j(u, v, w);
|
206
|
+
delete t[v]
|
207
|
+
}
|
208
|
+
});
|
209
|
+
if (r == -1) {
|
210
|
+
s.onCuepoint = this.onCuepoint
|
211
|
+
}
|
212
|
+
};
|
213
|
+
var l = function(p, r, q, t) {
|
214
|
+
var o = this,s = {},u = false;
|
215
|
+
if (t) {
|
216
|
+
i(s, t)
|
217
|
+
}
|
218
|
+
m(r, function(v, w) {
|
219
|
+
if (typeof w == "function") {
|
220
|
+
s[v] = w;
|
221
|
+
delete r[v]
|
222
|
+
}
|
223
|
+
});
|
224
|
+
i(this, {animate:function(y, z, x) {
|
225
|
+
if (!y) {
|
226
|
+
return o
|
227
|
+
}
|
228
|
+
if (typeof z == "function") {
|
229
|
+
x = z;
|
230
|
+
z = 500
|
231
|
+
}
|
232
|
+
if (typeof y == "string") {
|
233
|
+
var w = y;
|
234
|
+
y = {};
|
235
|
+
y[w] = z;
|
236
|
+
z = 500
|
237
|
+
}
|
238
|
+
if (x) {
|
239
|
+
var v = e();
|
240
|
+
s[v] = x
|
241
|
+
}
|
242
|
+
if (z === undefined) {
|
243
|
+
z = 500
|
244
|
+
}
|
245
|
+
r = q._api().fp_animate(p, y, z, v);
|
246
|
+
return o
|
247
|
+
},css:function(w, x) {
|
248
|
+
if (x !== undefined) {
|
249
|
+
var v = {};
|
250
|
+
v[w] = x;
|
251
|
+
w = v
|
252
|
+
}
|
253
|
+
r = q._api().fp_css(p, w);
|
254
|
+
i(o, r);
|
255
|
+
return o
|
256
|
+
},show:function() {
|
257
|
+
this.display = "block";
|
258
|
+
q._api().fp_showPlugin(p);
|
259
|
+
return o
|
260
|
+
},hide:function() {
|
261
|
+
this.display = "none";
|
262
|
+
q._api().fp_hidePlugin(p);
|
263
|
+
return o
|
264
|
+
},toggle:function() {
|
265
|
+
this.display = q._api().fp_togglePlugin(p);
|
266
|
+
return o
|
267
|
+
},fadeTo:function(y, x, w) {
|
268
|
+
if (typeof x == "function") {
|
269
|
+
w = x;
|
270
|
+
x = 500
|
271
|
+
}
|
272
|
+
if (w) {
|
273
|
+
var v = e();
|
274
|
+
s[v] = w
|
275
|
+
}
|
276
|
+
this.display = q._api().fp_fadeTo(p, y, x, v);
|
277
|
+
this.opacity = y;
|
278
|
+
return o
|
279
|
+
},fadeIn:function(w, v) {
|
280
|
+
return o.fadeTo(1, w, v)
|
281
|
+
},fadeOut:function(w, v) {
|
282
|
+
return o.fadeTo(0, w, v)
|
283
|
+
},getName:function() {
|
284
|
+
return p
|
285
|
+
},getPlayer:function() {
|
286
|
+
return q
|
287
|
+
},_fireEvent:function(w, v, x) {
|
288
|
+
if (w == "onUpdate") {
|
289
|
+
var z = q._api().fp_getPlugin(p);
|
290
|
+
if (!z) {
|
291
|
+
return
|
292
|
+
}
|
293
|
+
i(o, z);
|
294
|
+
delete o.methods;
|
295
|
+
if (!u) {
|
296
|
+
m(z.methods, function() {
|
297
|
+
var B = "" + this;
|
298
|
+
o[B] = function() {
|
299
|
+
var C = [].slice.call(arguments);
|
300
|
+
var D = q._api().fp_invoke(p, B, C);
|
301
|
+
return D === "undefined" || D === undefined ? o : D
|
302
|
+
}
|
303
|
+
});
|
304
|
+
u = true
|
305
|
+
}
|
306
|
+
}
|
307
|
+
var A = s[w];
|
308
|
+
if (A) {
|
309
|
+
var y = A.apply(o, v);
|
310
|
+
if (w.slice(0, 1) == "_") {
|
311
|
+
delete s[w]
|
312
|
+
}
|
313
|
+
return y
|
314
|
+
}
|
315
|
+
return o
|
316
|
+
}})
|
317
|
+
};
|
318
|
+
|
319
|
+
function b(q, G, t) {
|
320
|
+
var w = this,v = null,D = false,u,s,F = [],y = {},x = {},E,r,p,C,o,A;
|
321
|
+
i(w, {id:function() {
|
322
|
+
return E
|
323
|
+
},isLoaded:function() {
|
324
|
+
return(v !== null && v.fp_play !== undefined && !D)
|
325
|
+
},getParent:function() {
|
326
|
+
return q
|
327
|
+
},hide:function(H) {
|
328
|
+
if (H) {
|
329
|
+
q.style.height = "0px"
|
330
|
+
}
|
331
|
+
if (w.isLoaded()) {
|
332
|
+
v.style.height = "0px"
|
333
|
+
}
|
334
|
+
return w
|
335
|
+
},show:function() {
|
336
|
+
q.style.height = A + "px";
|
337
|
+
if (w.isLoaded()) {
|
338
|
+
v.style.height = o + "px"
|
339
|
+
}
|
340
|
+
return w
|
341
|
+
},isHidden:function() {
|
342
|
+
return w.isLoaded() && parseInt(v.style.height, 10) === 0
|
343
|
+
},load:function(J) {
|
344
|
+
if (!w.isLoaded() && w._fireEvent("onBeforeLoad") !== false) {
|
345
|
+
var H = function() {
|
346
|
+
u = q.innerHTML;
|
347
|
+
if (u && !flashembed.isSupported(G.version)) {
|
348
|
+
q.innerHTML = ""
|
349
|
+
}
|
350
|
+
if (J) {
|
351
|
+
J.cached = true;
|
352
|
+
j(x, "onLoad", J)
|
353
|
+
}
|
354
|
+
flashembed(q, G, {config:t})
|
355
|
+
};
|
356
|
+
var I = 0;
|
357
|
+
m(a, function() {
|
358
|
+
this.unload(function(K) {
|
359
|
+
if (++I == a.length) {
|
360
|
+
H()
|
361
|
+
}
|
362
|
+
})
|
363
|
+
})
|
364
|
+
}
|
365
|
+
return w
|
366
|
+
},unload:function(J) {
|
367
|
+
if (this.isFullscreen() && /WebKit/i.test(navigator.userAgent)) {
|
368
|
+
if (J) {
|
369
|
+
J(false)
|
370
|
+
}
|
371
|
+
return w
|
372
|
+
}
|
373
|
+
if (u.replace(/\s/g, "") !== "") {
|
374
|
+
if (w._fireEvent("onBeforeUnload") === false) {
|
375
|
+
if (J) {
|
376
|
+
J(false)
|
377
|
+
}
|
378
|
+
return w
|
379
|
+
}
|
380
|
+
D = true;
|
381
|
+
try {
|
382
|
+
if (v) {
|
383
|
+
v.fp_close();
|
384
|
+
w._fireEvent("onUnload")
|
385
|
+
}
|
386
|
+
} catch(H) {
|
387
|
+
}
|
388
|
+
var I = function() {
|
389
|
+
v = null;
|
390
|
+
q.innerHTML = u;
|
391
|
+
D = false;
|
392
|
+
if (J) {
|
393
|
+
J(true)
|
394
|
+
}
|
395
|
+
};
|
396
|
+
setTimeout(I, 50)
|
397
|
+
} else {
|
398
|
+
if (J) {
|
399
|
+
J(false)
|
400
|
+
}
|
401
|
+
}
|
402
|
+
return w
|
403
|
+
},getClip:function(H) {
|
404
|
+
if (H === undefined) {
|
405
|
+
H = C
|
406
|
+
}
|
407
|
+
return F[H]
|
408
|
+
},getCommonClip:function() {
|
409
|
+
return s
|
410
|
+
},getPlaylist:function() {
|
411
|
+
return F
|
412
|
+
},getPlugin:function(H) {
|
413
|
+
var J = y[H];
|
414
|
+
if (!J && w.isLoaded()) {
|
415
|
+
var I = w._api().fp_getPlugin(H);
|
416
|
+
if (I) {
|
417
|
+
J = new l(H, I, w);
|
418
|
+
y[H] = J
|
419
|
+
}
|
420
|
+
}
|
421
|
+
return J
|
422
|
+
},getScreen:function() {
|
423
|
+
return w.getPlugin("screen")
|
424
|
+
},getControls:function() {
|
425
|
+
return w.getPlugin("controls")._fireEvent("onUpdate")
|
426
|
+
},getLogo:function() {
|
427
|
+
try {
|
428
|
+
return w.getPlugin("logo")._fireEvent("onUpdate")
|
429
|
+
} catch(H) {
|
430
|
+
}
|
431
|
+
},getPlay:function() {
|
432
|
+
return w.getPlugin("play")._fireEvent("onUpdate")
|
433
|
+
},getConfig:function(H) {
|
434
|
+
return H ? k(t) : t
|
435
|
+
},getFlashParams:function() {
|
436
|
+
return G
|
437
|
+
},loadPlugin:function(K, J, M, L) {
|
438
|
+
if (typeof M == "function") {
|
439
|
+
L = M;
|
440
|
+
M = {}
|
441
|
+
}
|
442
|
+
var I = L ? e() : "_";
|
443
|
+
w._api().fp_loadPlugin(K, J, M, I);
|
444
|
+
var H = {};
|
445
|
+
H[I] = L;
|
446
|
+
var N = new l(K, null, w, H);
|
447
|
+
y[K] = N;
|
448
|
+
return N
|
449
|
+
},getState:function() {
|
450
|
+
return w.isLoaded() ? v.fp_getState() : -1
|
451
|
+
},play:function(I, H) {
|
452
|
+
var J = function() {
|
453
|
+
if (I !== undefined) {
|
454
|
+
w._api().fp_play(I, H)
|
455
|
+
} else {
|
456
|
+
w._api().fp_play()
|
457
|
+
}
|
458
|
+
};
|
459
|
+
if (w.isLoaded()) {
|
460
|
+
J()
|
461
|
+
} else {
|
462
|
+
if (D) {
|
463
|
+
setTimeout(function() {
|
464
|
+
w.play(I, H)
|
465
|
+
}, 50)
|
466
|
+
} else {
|
467
|
+
w.load(function() {
|
468
|
+
J()
|
469
|
+
})
|
470
|
+
}
|
471
|
+
}
|
472
|
+
return w
|
473
|
+
},getVersion:function() {
|
474
|
+
var I = "flowplayer.js 3.2.4";
|
475
|
+
if (w.isLoaded()) {
|
476
|
+
var H = v.fp_getVersion();
|
477
|
+
H.push(I);
|
478
|
+
return H
|
479
|
+
}
|
480
|
+
return I
|
481
|
+
},_api:function() {
|
482
|
+
if (!w.isLoaded()) {
|
483
|
+
throw"Flowplayer " + w.id() + " not loaded when calling an API method"
|
484
|
+
}
|
485
|
+
return v
|
486
|
+
},setClip:function(H) {
|
487
|
+
w.setPlaylist([H]);
|
488
|
+
return w
|
489
|
+
},getIndex:function() {
|
490
|
+
return p
|
491
|
+
},_swfHeight:function() {
|
492
|
+
return v.clientHeight
|
493
|
+
}});
|
494
|
+
m(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","), function() {
|
495
|
+
var H = "on" + this;
|
496
|
+
if (H.indexOf("*") != -1) {
|
497
|
+
H = H.slice(0, H.length - 1);
|
498
|
+
var I = "onBefore" + H.slice(2);
|
499
|
+
w[I] = function(J) {
|
500
|
+
j(x, I, J);
|
501
|
+
return w
|
502
|
+
}
|
503
|
+
}
|
504
|
+
w[H] = function(J) {
|
505
|
+
j(x, H, J);
|
506
|
+
return w
|
507
|
+
}
|
508
|
+
});
|
509
|
+
m(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled").split(","), function() {
|
510
|
+
var H = this;
|
511
|
+
w[H] = function(J, I) {
|
512
|
+
if (!w.isLoaded()) {
|
513
|
+
return w
|
514
|
+
}
|
515
|
+
var K = null;
|
516
|
+
if (J !== undefined && I !== undefined) {
|
517
|
+
K = v["fp_" + H](J, I)
|
518
|
+
} else {
|
519
|
+
K = (J === undefined) ? v["fp_" + H]() : v["fp_" + H](J)
|
520
|
+
}
|
521
|
+
return K === "undefined" || K === undefined ? w : K
|
522
|
+
}
|
523
|
+
});
|
524
|
+
w._fireEvent = function(Q) {
|
525
|
+
if (typeof Q == "string") {
|
526
|
+
Q = [Q]
|
527
|
+
}
|
528
|
+
var R = Q[0],O = Q[1],M = Q[2],L = Q[3],K = 0;
|
529
|
+
if (t.debug) {
|
530
|
+
g(Q)
|
531
|
+
}
|
532
|
+
if (!w.isLoaded() && R == "onLoad" && O == "player") {
|
533
|
+
v = v || c(r);
|
534
|
+
o = w._swfHeight();
|
535
|
+
m(F, function() {
|
536
|
+
this._fireEvent("onLoad")
|
537
|
+
});
|
538
|
+
m(y, function(S, T) {
|
539
|
+
T._fireEvent("onUpdate")
|
540
|
+
});
|
541
|
+
s._fireEvent("onLoad")
|
542
|
+
}
|
543
|
+
if (R == "onLoad" && O != "player") {
|
544
|
+
return
|
545
|
+
}
|
546
|
+
if (R == "onError") {
|
547
|
+
if (typeof O == "string" || (typeof O == "number" && typeof M == "number")) {
|
548
|
+
O = M;
|
549
|
+
M = L
|
550
|
+
}
|
551
|
+
}
|
552
|
+
if (R == "onContextMenu") {
|
553
|
+
m(t.contextMenu[O], function(S, T) {
|
554
|
+
T.call(w)
|
555
|
+
});
|
556
|
+
return
|
557
|
+
}
|
558
|
+
if (R == "onPluginEvent" || R == "onBeforePluginEvent") {
|
559
|
+
var H = O.name || O;
|
560
|
+
var I = y[H];
|
561
|
+
if (I) {
|
562
|
+
I._fireEvent("onUpdate", O);
|
563
|
+
return I._fireEvent(M, Q.slice(3))
|
564
|
+
}
|
565
|
+
return
|
566
|
+
}
|
567
|
+
if (R == "onPlaylistReplace") {
|
568
|
+
F = [];
|
569
|
+
var N = 0;
|
570
|
+
m(O, function() {
|
571
|
+
F.push(new h(this, N++, w))
|
572
|
+
})
|
573
|
+
}
|
574
|
+
if (R == "onClipAdd") {
|
575
|
+
if (O.isInStream) {
|
576
|
+
return
|
577
|
+
}
|
578
|
+
O = new h(O, M, w);
|
579
|
+
F.splice(M, 0, O);
|
580
|
+
for (K = M + 1; K < F.length; K++) {
|
581
|
+
F[K].index++
|
582
|
+
}
|
583
|
+
}
|
584
|
+
var P = true;
|
585
|
+
if (typeof O == "number" && O < F.length) {
|
586
|
+
C = O;
|
587
|
+
var J = F[O];
|
588
|
+
if (J) {
|
589
|
+
P = J._fireEvent(R, M, L)
|
590
|
+
}
|
591
|
+
if (!J || P !== false) {
|
592
|
+
P = s._fireEvent(R, M, L, J)
|
593
|
+
}
|
594
|
+
}
|
595
|
+
m(x[R], function() {
|
596
|
+
P = this.call(w, O, M);
|
597
|
+
if (this.cached) {
|
598
|
+
x[R].splice(K, 1)
|
599
|
+
}
|
600
|
+
if (P === false) {
|
601
|
+
return false
|
602
|
+
}
|
603
|
+
K++
|
604
|
+
});
|
605
|
+
return P
|
606
|
+
};
|
607
|
+
function B() {
|
608
|
+
if ($f(q)) {
|
609
|
+
$f(q).getParent().innerHTML = "";
|
610
|
+
p = $f(q).getIndex();
|
611
|
+
a[p] = w
|
612
|
+
} else {
|
613
|
+
a.push(w);
|
614
|
+
p = a.length - 1
|
615
|
+
}
|
616
|
+
A = parseInt(q.style.height, 10) || q.clientHeight;
|
617
|
+
E = q.id || "fp" + e();
|
618
|
+
r = G.id || E + "_api";
|
619
|
+
G.id = r;
|
620
|
+
t.playerId = E;
|
621
|
+
if (typeof t == "string") {
|
622
|
+
t = {clip:{url:t}}
|
623
|
+
}
|
624
|
+
if (typeof t.clip == "string") {
|
625
|
+
t.clip = {url:t.clip}
|
626
|
+
}
|
627
|
+
t.clip = t.clip || {};
|
628
|
+
if (q.getAttribute("href", 2) && !t.clip.url) {
|
629
|
+
t.clip.url = q.getAttribute("href", 2)
|
630
|
+
}
|
631
|
+
s = new h(t.clip, -1, w);
|
632
|
+
t.playlist = t.playlist || [t.clip];
|
633
|
+
var I = 0;
|
634
|
+
m(t.playlist, function() {
|
635
|
+
var K = this;
|
636
|
+
if (typeof K == "object" && K.length) {
|
637
|
+
K = {url:"" + K}
|
638
|
+
}
|
639
|
+
m(t.clip, function(L, M) {
|
640
|
+
if (M !== undefined && K[L] === undefined && typeof M != "function") {
|
641
|
+
K[L] = M
|
642
|
+
}
|
643
|
+
});
|
644
|
+
t.playlist[I] = K;
|
645
|
+
K = new h(K, I, w);
|
646
|
+
F.push(K);
|
647
|
+
I++
|
648
|
+
});
|
649
|
+
m(t, function(K, L) {
|
650
|
+
if (typeof L == "function") {
|
651
|
+
if (s[K]) {
|
652
|
+
s[K](L)
|
653
|
+
} else {
|
654
|
+
j(x, K, L)
|
655
|
+
}
|
656
|
+
delete t[K]
|
657
|
+
}
|
658
|
+
});
|
659
|
+
m(t.plugins, function(K, L) {
|
660
|
+
if (L) {
|
661
|
+
y[K] = new l(K, L, w)
|
662
|
+
}
|
663
|
+
});
|
664
|
+
if (!t.plugins || t.plugins.controls === undefined) {
|
665
|
+
y.controls = new l("controls", null, w)
|
666
|
+
}
|
667
|
+
y.canvas = new l("canvas", null, w);
|
668
|
+
u = q.innerHTML;
|
669
|
+
function J(L) {
|
670
|
+
var K = w.hasiPadSupport && w.hasiPadSupport();
|
671
|
+
if (/iPad|iPhone|iPod/i.test(navigator.userAgent) && !/.flv$/i.test(F[0].url) && !K) {
|
672
|
+
return true
|
673
|
+
}
|
674
|
+
if (!w.isLoaded() && w._fireEvent("onBeforeClick") !== false) {
|
675
|
+
w.load()
|
676
|
+
}
|
677
|
+
return f(L)
|
678
|
+
}
|
679
|
+
|
680
|
+
function H() {
|
681
|
+
if (u.replace(/\s/g, "") !== "") {
|
682
|
+
if (q.addEventListener) {
|
683
|
+
q.addEventListener("click", J, false)
|
684
|
+
} else {
|
685
|
+
if (q.attachEvent) {
|
686
|
+
q.attachEvent("onclick", J)
|
687
|
+
}
|
688
|
+
}
|
689
|
+
} else {
|
690
|
+
if (q.addEventListener) {
|
691
|
+
q.addEventListener("click", f, false)
|
692
|
+
}
|
693
|
+
w.load()
|
694
|
+
}
|
695
|
+
}
|
696
|
+
|
697
|
+
setTimeout(H, 0)
|
698
|
+
}
|
699
|
+
|
700
|
+
if (typeof q == "string") {
|
701
|
+
var z = c(q);
|
702
|
+
if (!z) {
|
703
|
+
throw"Flowplayer cannot access element: " + q
|
704
|
+
}
|
705
|
+
q = z;
|
706
|
+
B()
|
707
|
+
} else {
|
708
|
+
B()
|
709
|
+
}
|
710
|
+
}
|
711
|
+
|
712
|
+
var a = [];
|
713
|
+
|
714
|
+
function d(o) {
|
715
|
+
this.length = o.length;
|
716
|
+
this.each = function(p) {
|
717
|
+
m(o, p)
|
718
|
+
};
|
719
|
+
this.size = function() {
|
720
|
+
return o.length
|
721
|
+
}
|
722
|
+
}
|
723
|
+
|
724
|
+
window.flowplayer = window.$f = function() {
|
725
|
+
var p = null;
|
726
|
+
var o = arguments[0];
|
727
|
+
if (!arguments.length) {
|
728
|
+
m(a, function() {
|
729
|
+
if (this.isLoaded()) {
|
730
|
+
p = this;
|
731
|
+
return false
|
732
|
+
}
|
733
|
+
});
|
734
|
+
return p || a[0]
|
735
|
+
}
|
736
|
+
if (arguments.length == 1) {
|
737
|
+
if (typeof o == "number") {
|
738
|
+
return a[o]
|
739
|
+
} else {
|
740
|
+
if (o == "*") {
|
741
|
+
return new d(a)
|
742
|
+
}
|
743
|
+
m(a, function() {
|
744
|
+
if (this.id() == o.id || this.id() == o || this.getParent() == o) {
|
745
|
+
p = this;
|
746
|
+
return false
|
747
|
+
}
|
748
|
+
});
|
749
|
+
return p
|
750
|
+
}
|
751
|
+
}
|
752
|
+
if (arguments.length > 1) {
|
753
|
+
var t = arguments[1],q = (arguments.length == 3) ? arguments[2] : {};
|
754
|
+
if (typeof t == "string") {
|
755
|
+
t = {src:t}
|
756
|
+
}
|
757
|
+
t = i({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:true}, t);
|
758
|
+
if (typeof o == "string") {
|
759
|
+
if (o.indexOf(".") != -1) {
|
760
|
+
var s = [];
|
761
|
+
m(n(o), function() {
|
762
|
+
s.push(new b(this, k(t), k(q)))
|
763
|
+
});
|
764
|
+
return new d(s)
|
765
|
+
} else {
|
766
|
+
var r = c(o);
|
767
|
+
return new b(r !== null ? r : o, t, q)
|
768
|
+
}
|
769
|
+
} else {
|
770
|
+
if (o) {
|
771
|
+
return new b(o, t, q)
|
772
|
+
}
|
773
|
+
}
|
774
|
+
}
|
775
|
+
return null
|
776
|
+
};
|
777
|
+
i(window.$f, {fireEvent:function() {
|
778
|
+
var o = [].slice.call(arguments);
|
779
|
+
var q = $f(o[0]);
|
780
|
+
return q ? q._fireEvent(o.slice(1)) : null
|
781
|
+
},addPlugin:function(o, p) {
|
782
|
+
b.prototype[o] = p;
|
783
|
+
return $f
|
784
|
+
},each:m,extend:i});
|
785
|
+
if (typeof jQuery == "function") {
|
786
|
+
jQuery.fn.flowplayer = function(q, p) {
|
787
|
+
if (!arguments.length || typeof arguments[0] == "number") {
|
788
|
+
var o = [];
|
789
|
+
this.each(function() {
|
790
|
+
var r = $f(this);
|
791
|
+
if (r) {
|
792
|
+
o.push(r)
|
793
|
+
}
|
794
|
+
});
|
795
|
+
return arguments.length ? o[arguments[0]] : new d(o)
|
796
|
+
}
|
797
|
+
return this.each(function() {
|
798
|
+
$f(this, k(q), p ? k(p) : {})
|
799
|
+
})
|
800
|
+
}
|
801
|
+
}
|
802
|
+
})();
|
803
|
+
(function() {
|
804
|
+
var h = document.all,j = "http://www.adobe.com/go/getflashplayer",c = typeof jQuery == "function",e = /(\d+)[^\d]+(\d+)[^\d]*(\d*)/,b = {width:"100%",height:"100%",id:"_" + ("" + Math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:false,cachebusting:false};
|
805
|
+
if (window.attachEvent) {
|
806
|
+
window.attachEvent("onbeforeunload", function() {
|
807
|
+
__flash_unloadHandler = function() {
|
808
|
+
};
|
809
|
+
__flash_savedUnloadHandler = function() {
|
810
|
+
}
|
811
|
+
})
|
812
|
+
}
|
813
|
+
function i(m, l) {
|
814
|
+
if (l) {
|
815
|
+
for (var f in l) {
|
816
|
+
if (l.hasOwnProperty(f)) {
|
817
|
+
m[f] = l[f]
|
818
|
+
}
|
819
|
+
}
|
820
|
+
}
|
821
|
+
return m
|
822
|
+
}
|
823
|
+
|
824
|
+
function a(f, n) {
|
825
|
+
var m = [];
|
826
|
+
for (var l in f) {
|
827
|
+
if (f.hasOwnProperty(l)) {
|
828
|
+
m[l] = n(f[l])
|
829
|
+
}
|
830
|
+
}
|
831
|
+
return m
|
832
|
+
}
|
833
|
+
|
834
|
+
window.flashembed = function(f, m, l) {
|
835
|
+
if (typeof f == "string") {
|
836
|
+
f = document.getElementById(f.replace("#", ""))
|
837
|
+
}
|
838
|
+
if (!f) {
|
839
|
+
return
|
840
|
+
}
|
841
|
+
if (typeof m == "string") {
|
842
|
+
m = {src:m}
|
843
|
+
}
|
844
|
+
return new d(f, i(i({}, b), m), l)
|
845
|
+
};
|
846
|
+
var g = i(window.flashembed, {conf:b,getVersion:function() {
|
847
|
+
var m,f;
|
848
|
+
try {
|
849
|
+
f = navigator.plugins["Shockwave Flash"].description.slice(16)
|
850
|
+
} catch(o) {
|
851
|
+
try {
|
852
|
+
m = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
|
853
|
+
f = m && m.GetVariable("$version")
|
854
|
+
} catch(n) {
|
855
|
+
try {
|
856
|
+
m = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
|
857
|
+
f = m && m.GetVariable("$version")
|
858
|
+
} catch(l) {
|
859
|
+
}
|
860
|
+
}
|
861
|
+
}
|
862
|
+
f = e.exec(f);
|
863
|
+
return f ? [f[1],f[3]] : [0,0]
|
864
|
+
},asString:function(l) {
|
865
|
+
if (l === null || l === undefined) {
|
866
|
+
return null
|
867
|
+
}
|
868
|
+
var f = typeof l;
|
869
|
+
if (f == "object" && l.push) {
|
870
|
+
f = "array"
|
871
|
+
}
|
872
|
+
switch (f) {case"string":l = l.replace(new RegExp('(["\\\\])', "g"), "\\$1");l = l.replace(/^\s?(\d+\.?\d+)%/, "$1pct");return'"' + l + '"';case"array":return"[" + a(l,
|
873
|
+
function(o) {
|
874
|
+
return g.asString(o)
|
875
|
+
}).join(",") + "]";case"function":return'"function()"';case"object":var m = [];for (var n in l) {
|
876
|
+
if (l.hasOwnProperty(n)) {
|
877
|
+
m.push('"' + n + '":' + g.asString(l[n]))
|
878
|
+
}
|
879
|
+
}return"{" + m.join(",") + "}"
|
880
|
+
}
|
881
|
+
return String(l).replace(/\s/g, " ").replace(/\'/g, '"')
|
882
|
+
},getHTML:function(o, l) {
|
883
|
+
o = i({}, o);
|
884
|
+
var n = '<object width="' + o.width + '" height="' + o.height + '" id="' + o.id + '" name="' + o.id + '"';
|
885
|
+
if (o.cachebusting) {
|
886
|
+
o.src += ((o.src.indexOf("?") != -1 ? "&" : "?") + Math.random())
|
887
|
+
}
|
888
|
+
if (o.w3c || !h) {
|
889
|
+
n += ' data="' + o.src + '" type="application/x-shockwave-flash"'
|
890
|
+
} else {
|
891
|
+
n += ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
|
892
|
+
}
|
893
|
+
n += ">";
|
894
|
+
if (o.w3c || h) {
|
895
|
+
n += '<param name="movie" value="' + o.src + '" />'
|
896
|
+
}
|
897
|
+
o.width = o.height = o.id = o.w3c = o.src = null;
|
898
|
+
o.onFail = o.version = o.expressInstall = null;
|
899
|
+
for (var m in o) {
|
900
|
+
if (o[m]) {
|
901
|
+
n += '<param name="' + m + '" value="' + o[m] + '" />'
|
902
|
+
}
|
903
|
+
}
|
904
|
+
var p = "";
|
905
|
+
if (l) {
|
906
|
+
for (var f in l) {
|
907
|
+
if (l[f]) {
|
908
|
+
var q = l[f];
|
909
|
+
p += f + "=" + (/function|object/.test(typeof q) ? g.asString(q) : q) + "&"
|
910
|
+
}
|
911
|
+
}
|
912
|
+
p = p.slice(0, -1);
|
913
|
+
n += '<param name="flashvars" value=\'' + p + "' />"
|
914
|
+
}
|
915
|
+
n += "</object>";
|
916
|
+
return n
|
917
|
+
},isSupported:function(f) {
|
918
|
+
return k[0] > f[0] || k[0] == f[0] && k[1] >= f[1]
|
919
|
+
}});
|
920
|
+
var k = g.getVersion();
|
921
|
+
|
922
|
+
function d(f, n, m) {
|
923
|
+
if (g.isSupported(n.version)) {
|
924
|
+
f.innerHTML = g.getHTML(n, m)
|
925
|
+
} else {
|
926
|
+
if (n.expressInstall && g.isSupported([6,65])) {
|
927
|
+
f.innerHTML = g.getHTML(i(n, {src:n.expressInstall}), {MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title})
|
928
|
+
} else {
|
929
|
+
if (!f.innerHTML.replace(/\s/g, "")) {
|
930
|
+
f.innerHTML = "<h2>Flash version " + n.version + " or greater is required</h2><h3>" + (k[0] > 0 ? "Your version is " + k : "You have no flash plugin installed") + "</h3>" + (f.tagName == "A" ? "<p>Click here to download latest version</p>" : "<p>Download latest version from <a href='" + j + "'>here</a></p>");
|
931
|
+
if (f.tagName == "A") {
|
932
|
+
f.onclick = function() {
|
933
|
+
location.href = j
|
934
|
+
}
|
935
|
+
}
|
936
|
+
}
|
937
|
+
if (n.onFail) {
|
938
|
+
var l = n.onFail.call(this);
|
939
|
+
if (typeof l == "string") {
|
940
|
+
f.innerHTML = l
|
941
|
+
}
|
942
|
+
}
|
943
|
+
}
|
944
|
+
}
|
945
|
+
if (h) {
|
946
|
+
window[n.id] = document.getElementById(n.id)
|
947
|
+
}
|
948
|
+
i(this, {getRoot:function() {
|
949
|
+
return f
|
950
|
+
},getOptions:function() {
|
951
|
+
return n
|
952
|
+
},getConf:function() {
|
953
|
+
return m
|
954
|
+
},getApi:function() {
|
955
|
+
return f.firstChild
|
956
|
+
}})
|
957
|
+
}
|
958
|
+
|
959
|
+
if (c) {
|
960
|
+
jQuery.tools = jQuery.tools || {version:"3.2.4"};
|
961
|
+
jQuery.tools.flashembed = {conf:b};
|
962
|
+
jQuery.fn.flashembed = function(l, f) {
|
963
|
+
return this.each(function() {
|
964
|
+
$(this).data("flashembed", flashembed(this, l, f))
|
965
|
+
})
|
966
|
+
}
|
967
|
+
}
|
968
|
+
})();
|