incubator-wookie-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scot...@apache.org
Subject svn commit: r1101949 [1/2] - in /incubator/wookie/trunk: WebContent/shared/js/ features/camera/ features/camera/shared/ features/camera/src/ features/conformance/ features/jqmobile/ features/jqmobile/shared/ features/jqmobile/src/org/apache/wookie/feat...
Date Wed, 11 May 2011 16:17:18 GMT
Author: scottbw
Date: Wed May 11 16:17:18 2011
New Revision: 1101949

URL: http://svn.apache.org/viewvc?rev=1101949&view=rev
Log:
Updated features to use new XML-based feature loading (see WOOKIE-210)

Added:
    incubator/wookie/trunk/features/camera/feature.xml
    incubator/wookie/trunk/features/conformance/
    incubator/wookie/trunk/features/conformance/build.xml
    incubator/wookie/trunk/features/conformance/feature.xml
    incubator/wookie/trunk/features/jqmobile/feature.xml
    incubator/wookie/trunk/features/jqmobile/shared/jquery.mobile-1.0a4-patched.min.js
    incubator/wookie/trunk/features/jqmobile/shared/jquery.mobile-1.0a4.min.css
    incubator/wookie/trunk/features/polling/
    incubator/wookie/trunk/features/polling/build.xml
    incubator/wookie/trunk/features/polling/feature.xml
    incubator/wookie/trunk/features/polling/wookie-polling-feature.js
Removed:
    incubator/wookie/trunk/WebContent/shared/js/wookie-polling-feature.js
    incubator/wookie/trunk/features/camera/src/
    incubator/wookie/trunk/features/jqmobile/src/org/apache/wookie/feature/jqmobile/JQMobileFeature.java
    incubator/wookie/trunk/src/org/apache/wookie/feature/conformance/
    incubator/wookie/trunk/src/org/apache/wookie/feature/polling/
Modified:
    incubator/wookie/trunk/features/camera/shared/bondi_camera.js
    incubator/wookie/trunk/features/camera/shared/thickbox.js

Added: incubator/wookie/trunk/features/camera/feature.xml
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/features/camera/feature.xml?rev=1101949&view=auto
==============================================================================
--- incubator/wookie/trunk/features/camera/feature.xml (added)
+++ incubator/wookie/trunk/features/camera/feature.xml Wed May 11 16:17:18 2011
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<feature>
+	<name>http://bondi.omtp.org/api/camera.capture</name>
+	<script src="shared/jquery.js"/>
+	<script src="shared/thickbox.js"/>
+	<script src="shared/bondi_camera.js"/>
+	<stylesheet src="shared/thickbox.css"/>
+</feature>
\ No newline at end of file

Modified: incubator/wookie/trunk/features/camera/shared/bondi_camera.js
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/features/camera/shared/bondi_camera.js?rev=1101949&r1=1101948&r2=1101949&view=diff
==============================================================================
--- incubator/wookie/trunk/features/camera/shared/bondi_camera.js (original)
+++ incubator/wookie/trunk/features/camera/shared/bondi_camera.js Wed May 11 16:17:18 2011
@@ -22,7 +22,7 @@ webcam = new function webcam(){
     this.takePicture = function(success_callback, error_callback, options){
         this.callback = success_callback;
         this.error = error_callback;
-        tb_show("","/wookie/shared/feature/camera/camcanvas.html?TB_iframe=true&height=320&width=335",""); 
+        tb_show("","/wookie/features/camera/shared/camcanvas.html?TB_iframe=true&height=320&width=335",""); 
     }
     
     this.snapped = function(image){

Modified: incubator/wookie/trunk/features/camera/shared/thickbox.js
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/features/camera/shared/thickbox.js?rev=1101949&r1=1101948&r2=1101949&view=diff
==============================================================================
--- incubator/wookie/trunk/features/camera/shared/thickbox.js (original)
+++ incubator/wookie/trunk/features/camera/shared/thickbox.js Wed May 11 16:17:18 2011
@@ -5,6 +5,6 @@
  * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
 */
 
-var tb_pathToImage = "/wookie/shared/feature/camera/loadingAnimation.gif";
+var tb_pathToImage = "loadingAnimation.gif";
 
 eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(o).2S(9(){1u(\'a.18, 3n.18, 3i.18\');1w=1p 1t();1w.L=2H});9 1u(b){$(b).s(9(){6 t=X.Q||X.1v||M;6 a=X.u||X.23;6 g=X.1N||P;19(t,a,g);X.2E();H P})}9 19(d,f,g){3m{3(2t o.v.J.2i==="2g"){$("v","11").r({A:"28%",z:"28%"});$("11").r("22","2Z");3(o.1Y("1F")===M){$("v").q("<U 5=\'1F\'></U><4 5=\'B\'></4><4 5=\'8\'></4>");$("#B").s(G)}}n{3(o.1Y("B")===M){$("v").q("<4 5=\'B\'></4><4 5=\'8\'></4>");$("#B").s(G)}}3(1K()){$("#B").1J("2B")}n{$("#B").1J("2z")}3(d===M){d=""}$("v").q("<4 5=\'K\'><1I L=\'"+1w.L+"\' /></4>");$(\'#K\').2y();6 h;3(f.O("?")!==-1){h=f.3l(0,f.O("?"))}n{h=f}6 i=/\\.2s$|\\.2q$|\\.2m$|\\.2l$|\\.2k$/;6 j=h.1C().2h(i);3(j==\'.2s\'||j==\'.2q\'||j==\'.2m
 \'||j==\'.2l\'||j==\'.2k\'){1D="";1G="";14="";1z="";1x="";R="";1n="";1r=P;3(g){E=$("a[@1N="+g+"]").36();25(D=0;((D<E.1c)&&(R===""));D++){6 k=E[D].u.1C().2h(i);3(!(E[D].u==f)){3(1r){1z=E[D].Q;1x=E[D].u;R="<1e 5=\'1X\'>&1d;&1d;<a u=\'#\'>2T &2R;</a></1e>"}n{1D=E[D].Q;1G=E[D].u;14="<1e 5=\'1U\'>&1d;&1d;<a u=\'#\'>&2O; 2N</a></1e>"}}n{1r=1b;1n="1t "+(D+1)+" 2L "+(E.1c)}}}S=1p 1t();S.1g=9(){S.1g=M;6 a=2x();6 x=a[0]-1M;6 y=a[1]-1M;6 b=S.z;6 c=S.A;3(b>x){c=c*(x/b);b=x;3(c>y){b=b*(y/c);c=y}}n 3(c>y){b=b*(y/c);c=y;3(b>x){c=c*(x/b);b=x}}13=b+30;1a=c+2G;$("#8").q("<a u=\'\' 5=\'1L\' Q=\'1o\'><1I 5=\'2F\' L=\'"+f+"\' z=\'"+b+"\' A=\'"+c+"\' 23=\'"+d+"\'/></a>"+"<4 5=\'2D\'>"+d+"<4 5=\'2C\'>"+1n+14+R+"</4></4><4 5=\'2A\'><a u=\'#\' 5=\'Z\' Q=\'1o\'>1l</a> 1k 1j 1s</4>");$("#Z").s(G);3(!(14==="")){9 12(){3($(o).N("s",12)){$(o).N("s",12)}$("#8").C();$("v").q("<4 5=\'8\'></4>");19(1D,1G,g);H P}$("#1U").s(12)}3(!(R==="")){9 1i(){$("#8").C();$("v").q("<4 5=\'8\'></4>");19(1z,1x,g);H P}$("#1X"
 ).s(1i)}o.1h=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}n 3(I==3k){3(!(R=="")){o.1h="";1i()}}n 3(I==3j){3(!(14=="")){o.1h="";12()}}};16();$("#K").C();$("#1L").s(G);$("#8").r({Y:"T"})};S.L=f}n{6 l=f.2r(/^[^\\?]+\\??/,\'\');6 m=2p(l);13=(m[\'z\']*1)+30||3h;1a=(m[\'A\']*1)+3g||3f;W=13-30;V=1a-3e;3(f.O(\'2j\')!=-1){1E=f.1B(\'3d\');$("#15").C();3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"</4><4 5=\'2e\'><a u=\'#\' 5=\'Z\' Q=\'1o\'>1l</a> 1k 1j 1s</4></4><U 1W=\'0\' 2d=\'0\' L=\'"+1E[0]+"\' 5=\'15\' 1v=\'15"+1f.2c(1f.1y()*2b)+"\' 1g=\'1m()\' J=\'z:"+(W+29)+"p;A:"+(V+17)+"p;\' > </U>")}n{$("#B").N();$("#8").q("<U 1W=\'0\' 2d=\'0\' L=\'"+1E[0]+"\' 5=\'15\' 1v=\'15"+1f.2c(1f.1y()*2b)+"\' 1g=\'1m()\' J=\'z:"+(W+29)+"p;A:"+(V+17)+"p;\'> </U>")}}n{3($("#8").r("Y")!="T"){3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"</4><4 5=\'2e\'><a u=\'#\' 5=\'Z\'>1l</a> 1k 1j 1s</4></4><4 5=\'F\' J=\'z:"+W+"p;A:"+V+"p\'></4>")}n{$("#B").N();$("#8").q("<4 5=\'F\' 3c=\'3b\' 
 J=\'z:"+W+"p;A:"+V+"p;\'></4>")}}n{$("#F")[0].J.z=W+"p";$("#F")[0].J.A=V+"p";$("#F")[0].3a=0;$("#1H").11(d)}}$("#Z").s(G);3(f.O(\'37\')!=-1){$("#F").q($(\'#\'+m[\'26\']).1T());$("#8").24(9(){$(\'#\'+m[\'26\']).q($("#F").1T())});16();$("#K").C();$("#8").r({Y:"T"})}n 3(f.O(\'2j\')!=-1){16();3($.1q.35){$("#K").C();$("#8").r({Y:"T"})}}n{$("#F").34(f+="&1y="+(1p 33().32()),9(){16();$("#K").C();1u("#F a.18");$("#8").r({Y:"T"})})}}3(!m[\'1A\']){o.21=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}}}}31(e){}}9 1m(){$("#K").C();$("#8").r({Y:"T"})}9 G(){$("#2Y").N("s");$("#Z").N("s");$("#8").2X("2W",9(){$(\'#8,#B,#1F\').2V("24").N().C()});$("#K").C();3(2t o.v.J.2i=="2g"){$("v","11").r({A:"1Z",z:"1Z"});$("11").r("22","")}o.1h="";o.21="";H P}9 16(){$("#8").r({2U:\'-\'+20((13/2),10)+\'p\',z:13+\'p\'});3(!(1V.1q.2Q&&1V.1q.2P<7)){$("#8").r({38:\'-\'+20((1a/2),10)+\'p\'})}}9 2p(a){6 b={};3(!a){H b}6 c=a.1B(/[;&]/);25(6 i=0;i<c.1c;i++){6 d=c[i].1B(\'=\');3(!d||d.1c!=2){39}6 e=2a(d[0]);6 f=2a(d[1]
 );f=f.2r(/\\+/g,\' \');b[e]=f}H b}9 2x(){6 a=o.2M;6 w=1S.2o||1R.2o||(a&&a.1Q)||o.v.1Q;6 h=1S.1P||1R.1P||(a&&a.2n)||o.v.2n;1O=[w,h];H 1O}9 1K(){6 a=2K.2J.1C();3(a.O(\'2I\')!=-1&&a.O(\'3o\')!=-1){H 1b}}',62,211,'|||if|div|id|var||TB_window|function||||||||||||||else|document|px|append|css|click||href|body||||width|height|TB_overlay|remove|TB_Counter|TB_TempArray|TB_ajaxContent|tb_remove|return|keycode|style|TB_load|src|null|unbind|indexOf|false|title|TB_NextHTML|imgPreloader|block|iframe|ajaxContentH|ajaxContentW|this|display|TB_closeWindowButton||html|goPrev|TB_WIDTH|TB_PrevHTML|TB_iframeContent|tb_position||thickbox|tb_show|TB_HEIGHT|true|length|nbsp|span|Math|onload|onkeydown|goNext|Esc|or|close|tb_showIframe|TB_imageCount|Close|new|browser|TB_FoundURL|Key|Image|tb_init|name|imgLoader|TB_NextURL|random|TB_NextCaption|modal|split|toLowerCase|TB_PrevCaption|urlNoQuery|TB_HideSelect|TB_PrevURL|TB_ajaxWindowTitle|img|addClass|tb_detectMacXFF|TB_ImageOff|150|rel|arrayPageSize|in
 nerHeight|clientWidth|self|window|children|TB_prev|jQuery|frameborder|TB_next|getElementById|auto|parseInt|onkeyup|overflow|alt|unload|for|inlineId||100||unescape|1000|round|hspace|TB_closeAjaxWindow|TB_title|undefined|match|maxHeight|TB_iframe|bmp|gif|png|clientHeight|innerWidth|tb_parseQuery|jpeg|replace|jpg|typeof|which|keyCode|event|tb_getPageSize|show|TB_overlayBG|TB_closeWindow|TB_overlayMacFFBGHack|TB_secondLine|TB_caption|blur|TB_Image|60|tb_pathToImage|mac|userAgent|navigator|of|documentElement|Prev|lt|version|msie|gt|ready|Next|marginLeft|trigger|fast|fadeOut|TB_imageOff|hidden||catch|getTime|Date|load|safari|get|TB_inline|marginTop|continue|scrollTop|TB_modal|class|TB_|45|440|40|630|input|188|190|substr|try|area|firefox'.split('|'),0,{}))
\ No newline at end of file

Added: incubator/wookie/trunk/features/conformance/build.xml
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/features/conformance/build.xml?rev=1101949&view=auto
==============================================================================
--- incubator/wookie/trunk/features/conformance/build.xml (added)
+++ incubator/wookie/trunk/features/conformance/build.xml Wed May 11 16:17:18 2011
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<project default="build-feature" basedir="." name="feature build file">
+	<property name="wookie.features.dir" location="../"/>
+	<property name="feature.shortname" value="conformance"/>
+	<property name="feature.uri" value="feature:a9bb79c1"/>
+	<import file="../build.xml"/>
+</project>
\ No newline at end of file

Added: incubator/wookie/trunk/features/conformance/feature.xml
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/features/conformance/feature.xml?rev=1101949&view=auto
==============================================================================
--- incubator/wookie/trunk/features/conformance/feature.xml (added)
+++ incubator/wookie/trunk/features/conformance/feature.xml Wed May 11 16:17:18 2011
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<feature>
+	<name>feature:a9bb79c1</name>
+</feature>
\ No newline at end of file

Added: incubator/wookie/trunk/features/jqmobile/feature.xml
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/features/jqmobile/feature.xml?rev=1101949&view=auto
==============================================================================
--- incubator/wookie/trunk/features/jqmobile/feature.xml (added)
+++ incubator/wookie/trunk/features/jqmobile/feature.xml Wed May 11 16:17:18 2011
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<feature>
+	<name>http://jquerymobile.com</name>
+	<script src="shared/jquery-1.5.min.js"/>
+	<script src="shared/jquery.mobile-1.0a4-patched.min.js"/>
+	<stylesheet src="shared/jquery.mobile-1.0a4.min.css"/>
+</feature>
\ No newline at end of file

Added: incubator/wookie/trunk/features/jqmobile/shared/jquery.mobile-1.0a4-patched.min.js
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/features/jqmobile/shared/jquery.mobile-1.0a4-patched.min.js?rev=1101949&view=auto
==============================================================================
--- incubator/wookie/trunk/features/jqmobile/shared/jquery.mobile-1.0a4-patched.min.js (added)
+++ incubator/wookie/trunk/features/jqmobile/shared/jquery.mobile-1.0a4-patched.min.js Wed May 11 16:17:18 2011
@@ -0,0 +1,136 @@
+/*!
+ * jQuery Mobile v1.0a4pre
+ * http://jquerymobile.com/
+ *
+ * Copyright 2010, jQuery Project
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ */
+(function(a,d){if(a.cleanData){var e=a.cleanData;a.cleanData=function(b){for(var f=0,g;(g=b[f])!=null;f++)a(g).triggerHandler("remove");e(b)}}else{var c=a.fn.remove;a.fn.remove=function(b,f){return this.each(function(){if(!f)if(!b||a.filter(b,[this]).length)a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")});return c.call(a(this),b,f)})}}a.widget=function(b,f,g){var i=b.split(".")[0],h;b=b.split(".")[1];h=i+"-"+b;if(!g){g=f;f=a.Widget}a.expr[":"][h]=function(k){return!!a.data(k,
+b)};a[i]=a[i]||{};a[i][b]=function(k,m){arguments.length&&this._createWidget(k,m)};f=new f;f.options=a.extend(true,{},f.options);a[i][b].prototype=a.extend(true,f,{namespace:i,widgetName:b,widgetEventPrefix:a[i][b].prototype.widgetEventPrefix||b,widgetBaseClass:h},g);a.widget.bridge(b,a[i][b])};a.widget.bridge=function(b,f){a.fn[b]=function(g){var i=typeof g==="string",h=Array.prototype.slice.call(arguments,1),k=this;g=!i&&h.length?a.extend.apply(null,[true,g].concat(h)):g;if(i&&g.charAt(0)==="_")return k;
+i?this.each(function(){var m=a.data(this,b);if(!m)throw"cannot call methods on "+b+" prior to initialization; attempted to call method '"+g+"'";if(!a.isFunction(m[g]))throw"no such method '"+g+"' for "+b+" widget instance";var o=m[g].apply(m,h);if(o!==m&&o!==d){k=o;return false}}):this.each(function(){var m=a.data(this,b);m?m.option(g||{})._init():a.data(this,b,new f(g,this))});return k}};a.Widget=function(b,f){arguments.length&&this._createWidget(b,f)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",
+options:{disabled:false},_createWidget:function(b,f){a.data(f,this.widgetName,this);this.element=a(f);this.options=a.extend(true,{},this.options,this._getCreateOptions(),b);var g=this;this.element.bind("remove."+this.widgetName,function(){g.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){var b={};if(a.metadata)b=a.metadata.get(element)[this.widgetName];return b},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);
+this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(b,f){var g=b;if(arguments.length===0)return a.extend({},this.options);if(typeof b==="string"){if(f===d)return this.options[b];g={};g[b]=f}this._setOptions(g);return this},_setOptions:function(b){var f=this;a.each(b,function(g,i){f._setOption(g,i)});return this},_setOption:function(b,f){this.options[b]=f;if(b===
+"disabled")this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(b,f,g){var i=this.options[b];f=a.Event(f);f.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();g=g||{};if(f.originalEvent){b=a.event.props.length;for(var h;b;){h=a.event.props[--b];f[h]=f.originalEvent[h]}}this.element.trigger(f,
+g);return!(a.isFunction(i)&&i.call(this.element[0],f,g)===false||f.isDefaultPrevented())}}})(jQuery);(function(a,d){a.widget("mobile.widget",{_getCreateOptions:function(){var e=this.element,c={};a.each(this.options,function(b){var f=e.jqmData(b.replace(/[A-Z]/g,function(g){return"-"+g.toLowerCase()}));if(f!==d)c[b]=f});return c}})})(jQuery);
+(function(a){function d(){var f=e.width(),g=[],i=[],h;c.removeClass("min-width-"+b.join("px min-width-")+"px max-width-"+b.join("px max-width-")+"px");a.each(b,function(k,m){f>=m&&g.push("min-width-"+m+"px");f<=m&&i.push("max-width-"+m+"px")});if(g.length)h=g.join(" ");if(i.length)h+=" "+i.join(" ");c.addClass(h)}var e=a(window),c=a("html"),b=[320,480,768,1024];a.mobile.media=function(){var f={},g=a("<div id='jquery-mediatest'>"),i=a("<body>").append(g);return function(h){if(!(h in f)){var k=document.createElement("style"),
+m="@media "+h+" { #jquery-mediatest { position:absolute; } }";k.type="text/css";if(k.styleSheet)k.styleSheet.cssText=m;else k.appendChild(document.createTextNode(m));c.prepend(i).prepend(k);f[h]=g.css("position")==="absolute";i.add(k).remove()}return f[h]}}();a.mobile.addResolutionBreakpoints=function(f){if(a.type(f)==="array")b=b.concat(f);else b.push(f);b.sort(function(g,i){return g-i});d()};a(document).bind("mobileinit.htmlclass",function(){e.bind("orientationchange.htmlclass resize.htmlclass",
+function(f){f.orientation&&c.removeClass("portrait landscape").addClass(f.orientation);d()})});a(function(){e.trigger("orientationchange.htmlclass")})})(jQuery);
+(function(a,d){function e(h){var k=h.charAt(0).toUpperCase()+h.substr(1);h=(h+" "+f.join(k+" ")+k).split(" ");for(var m in h)if(b[m]!==d)return true}var c=a("<body>").prependTo("html"),b=c[0].style,f=["webkit","moz","o"],g=window.palmGetResource||window.PalmServiceBridge,i=window.blackberry;a.mobile.browser={};a.mobile.browser.ie=function(){for(var h=3,k=document.createElement("div"),m=k.all||[];k.innerHTML="<!--[if gt IE "+ ++h+"]><br><![endif]--\>",m[0];);return h>4?h:!h}();a.extend(a.support,{orientation:"orientation"in
+window,touch:"ontouchend"in document,cssTransitions:"WebKitTransitionEvent"in window,pushState:!!history.pushState,mediaquery:a.mobile.media("only all"),cssPseudoElement:!!e("content"),boxShadow:!!e("boxShadow")&&!i,scrollTop:("pageXOffset"in window||"scrollTop"in document.documentElement||"scrollTop"in c[0])&&!g,dynamicBaseTag:function(){var h=location.protocol+"//"+location.host+location.pathname+"ui-dir/",k=a("head base"),m=null,o="";if(k.length)o=k.attr("href");else k=m=a("<base>",{href:h}).appendTo("head");
+var j=a("<a href='testurl'></a>").prependTo(c)[0].href;k[0].href=o?o:location.pathname;m&&m.remove();return j.indexOf(h)===0}(),eventCapture:"addEventListener"in document});c.remove();a.support.boxShadow||a("html").addClass("ui-mobile-nosupport-boxshadow")})(jQuery);
+(function(a,d,e){function c(n){for(;n&&typeof n.originalEvent!=="undefined";)n=n.originalEvent;return n}function b(n){var v={};for(n=a(n);n&&n.length;){var t=n.data(x),z;for(z in t)if(t[z])v[z]=v.hasVirtualBinding=true;n=n.parent()}return v}function f(){if(l.touchbindings){A.unbind("touchmove",o).unbind("touchend",j).unbind("scroll",m);l.touchbindings=0}}function g(){if(q){clearTimeout(q);q=0}q=setTimeout(function(){G=q=0;R.length=0;M=false;f()},a.vmouse.resetTimerDuration)}function i(n,v,t){var z=
+false,E;if(!(E=t&&t[n])){if(t=!t)a:{for(t=a(v.target);t&&t.length;){if((E=t.data(x))&&(!n||E[n])){t=t;break a}t=t.parent()}t=null}E=t}if(E){z=v;t=z.type;z=a.Event(z);z.type=n;var K=z.originalEvent,J=a.event.props;if(K)for(n=J.length;n;){E=J[--n];z[E]=K[E]}if(t.search(/^touch/)!==-1){n=c(K);if(typeof n.touches!=="undefined"&&n.touches[0]){t=n.touches[0];for(n=0;n<B.length;n++){E=B[n];z[E]=t[E]}}}n=z;a(v.target).trigger(n);z=n.isDefaultPrevented()}return z}function h(n){var v=a(n.target).data(w);if(!M&&
+(!G||G!==v))i("v"+n.type,n)}function k(n){var v=c(n).touches;if(v&&v.length===1){var t=n.target;v=b(t);if(v.hasVirtualBinding){G=L++;a(t).data(w,G);if(q){clearTimeout(q);q=0}if(!l.touchbindings){A.bind("touchend",j).bind("touchmove",o).bind("scroll",m);l.touchbindings=1}F=false;t=c(n).touches[0];u=t.pageX;H=t.pageY;if(O){C=d.pageXOffset;I=d.pageYOffset}i("vmouseover",n,v);i("vmousedown",n,v)}}}function m(n){F||i("vmousecancel",n,b(n.target));F=true;g()}function o(n){var v=c(n).touches[0],t=F,z=a.vmouse.moveDistanceThreshold;
+F=F||O&&(C!==d.pageXOffset||I!==d.pageYOffset)||Math.abs(v.pageX-u)>z||Math.abs(v.pageY-H)>z;v=b(n.target);F&&!t&&i("vmousecancel",n,v);i("vmousemove",n,v);g()}function j(n){f();var v=b(n.target);i("vmouseup",n,v);if(!F)if(i("vclick",n,v)){var t=c(n).changedTouches[0];R.push({touchID:G,x:t.clientX,y:t.clientY});M=true}i("vmouseout",n,v);F=false;g()}function p(n){n=n.data(x);var v;if(n)for(v in n)if(n[v])return true;return false}function s(){}function r(n){var v=n.substr(1);return{setup:function(){var t=
+a(this);p(t)||t.data(x,{});t.data(x)[n]=true;l[n]=(l[n]||0)+1;l[n]===1&&A.bind(v,h);t.bind(v,s);if(D){l.touchstart=(l.touchstart||0)+1;l.touchstart===1&&A.bind("touchstart",k)}},teardown:function(){--l[n];l[n]||A.unbind(v,h);if(D){--l.touchstart;l.touchstart||A.unbind("touchstart",k)}var t=a(this);t.data(x)[n]=false;t.unbind(v,s);p(t)||t.removeData(x)}}}var x="virtualMouseBindings",w="virtualTouchID",y="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),B="clientX clientY pageX pageY screenX screenY".split(" "),
+l={},q=0,u=0,H=0,C=0,I=0,F=false,R=[],M=false,O=a.support.scrollTop,D=a.support.eventCapture,A=a(e),L=1,G=0;a.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(var P=0;P<y.length;P++)a.event.special[y[P]]=r(y[P]);D&&e.addEventListener("click",function(n){var v=R.length,t=n.target;if(v)for(var z=n.clientX,E=n.clientY,K=a.vmouse.clickDistanceThreshold,J=t;J;){for(var N=0;N<v;N++){var S=R[N];if(J===t&&Math.abs(S.x-z)<K&&Math.abs(S.y-E)<K||a(J).data(w)===S.touchID){n.preventDefault();
+n.stopPropagation();return}}J=J.parentNode}},true)})(jQuery,window,document);
+(function(a,d){function e(i,h,k){var m=k.type;k.type=h;a.event.handle.call(i,k);k.type=m}a.each("touchstart touchmove touchend orientationchange tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(i,h){a.fn[h]=function(k){return k?this.bind(h,k):this.trigger(h)};a.attrFn[h]=true});var c=a.support.touch,b=c?"touchstart":"mousedown",f=c?"touchend":"mouseup",g=c?"touchmove":"mousemove";a.event.special.scrollstart={enabled:true,setup:function(){function i(o,j){k=j;e(h,k?
+"scrollstart":"scrollstop",o)}var h=this,k,m;a(h).bind("touchmove scroll",function(o){if(a.event.special.scrollstart.enabled){k||i(o,true);clearTimeout(m);m=setTimeout(function(){i(o,false)},50)}})}};a.event.special.tap={setup:function(){var i=this,h=a(i);h.bind("vmousedown",function(k){function m(){j=false;clearTimeout(s);a(this).unbind("vmouseclick",o).unbind("vmousecancel",m)}function o(r){m();p==r.target&&e(i,"tap",r)}if(k.which&&k.which!==1)return false;var j=true,p=k.target,s;h.bind("vmousecancel",
+m).bind("vclick",o);s=setTimeout(function(){j&&e(i,"taphold",k)},750)})}};a.event.special.swipe={setup:function(){var i=a(this);i.bind(b,function(h){function k(p){if(o){var s=p.originalEvent.touches?p.originalEvent.touches[0]:p;j={time:(new Date).getTime(),coords:[s.pageX,s.pageY]};Math.abs(o.coords[0]-j.coords[0])>10&&p.preventDefault()}}var m=h.originalEvent.touches?h.originalEvent.touches[0]:h,o={time:(new Date).getTime(),coords:[m.pageX,m.pageY],origin:a(h.target)},j;i.bind(g,k).one(f,function(){i.unbind(g,
+k);if(o&&j)if(j.time-o.time<1E3&&Math.abs(o.coords[0]-j.coords[0])>30&&Math.abs(o.coords[1]-j.coords[1])<75)o.origin.trigger("swipe").trigger(o.coords[0]>j.coords[0]?"swipeleft":"swiperight");o=j=d})})}};(function(i){function h(){var j=m();if(j!==o){o=j;k.trigger("orientationchange")}}var k=i(window),m,o;i.event.special.orientationchange={setup:function(){if(i.support.orientation)return false;o=m();k.bind("resize",h)},teardown:function(){if(i.support.orientation)return false;k.unbind("resize",h)},
+add:function(j){var p=j.handler;j.handler=function(s){s.orientation=m();return p.apply(this,arguments)}}};m=function(){var j=document.documentElement;return j&&j.clientWidth/j.clientHeight<1.1?"portrait":"landscape"}})(jQuery);a.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(i,h){a.event.special[i]={setup:function(){a(this).bind(h,a.noop)}}})})(jQuery);
+(function(a,d,e){function c(m){m=m||location.href;return"#"+m.replace(/^[^#]*#?(.*)$/,"$1")}var b="hashchange",f=document,g,i=a.event.special,h=f.documentMode,k="on"+b in d&&(h===e||h>7);a.fn[b]=function(m){return m?this.bind(b,m):this.trigger(b)};a.fn[b].delay=50;i[b]=a.extend(i[b],{setup:function(){if(k)return false;a(g.start)},teardown:function(){if(k)return false;a(g.stop)}});g=function(){function m(){var w=c(),y=x(p);if(w!==p){r(p=w,y);a(d).trigger(b)}else if(y!==p)location.href=location.href.replace(/#.*/,
+"")+y;j=setTimeout(m,a.fn[b].delay)}var o={},j,p=c(),s=function(w){return w},r=s,x=s;o.start=function(){j||m()};o.stop=function(){j&&clearTimeout(j);j=e};a.browser.msie&&!k&&function(){var w,y;o.start=function(){if(!w){y=(y=a.fn[b].src)&&y+c();w=a('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){y||r(c());m()}).attr("src",y||"javascript:0").insertAfter("body")[0].contentWindow;f.onpropertychange=function(){try{if(event.propertyName==="title")w.document.title=f.title}catch(B){}}}};
+o.stop=s;x=function(){return c(w.location.href)};r=function(B,l){var q=w.document,u=a.fn[b].domain;if(B!==l){q.title=f.title;q.open();u&&q.write('<script>document.domain="'+u+'"<\/script>');q.close();w.location.hash=B}}}();return o}()})(jQuery,this);
+(function(a){a.widget("mobile.page",a.mobile.widget,{options:{backBtnText:"Back",addBackBtn:true,backBtnTheme:null,degradeInputs:{color:false,date:false,datetime:false,"datetime-local":false,email:false,month:false,number:false,range:"number",search:true,tel:false,time:false,url:false,week:false},keepNative:null},_create:function(){var d=this.element,e=this.options;this.keepNative=":jqmData(role='none'), :jqmData(role='nojs')"+(e.keepNative?", "+e.keepNative:"");if(this._trigger("beforeCreate")!==
+false){d.find(":jqmData(role='page'), :jqmData(role='content')").andSelf().each(function(){a(this).addClass("ui-"+a(this).jqmData("role"))});d.find(":jqmData(role='nojs')").addClass("ui-nojs");d.find(":jqmData(role)").andSelf().each(function(){var c=a(this),b=c.jqmData("role"),f=c.jqmData("theme");if(b==="header"||b==="footer"){c.addClass("ui-bar-"+(f||c.parent(":jqmData(role='page')").jqmData("theme")||"a"));c.attr("role",b==="header"?"banner":"contentinfo");f=c.children("a");var g=f.hasClass("ui-btn-left"),
+i=f.hasClass("ui-btn-right");if(!g)g=f.eq(0).not(".ui-btn-right").addClass("ui-btn-left").length;i||f.eq(1).addClass("ui-btn-right");if(e.addBackBtn&&b==="header"&&a(".ui-page").length>1&&d.jqmData("url")!==a.mobile.path.stripHash(location.hash)&&!g&&c.jqmData("backbtn")!==false){f=a("<a href='#' class='ui-btn-left' data-"+a.mobile.ns+"rel='back' data-"+a.mobile.ns+"icon='arrow-l'>"+e.backBtnText+"</a>").prependTo(c);e.backBtnTheme&&f.attr("data-"+a.mobile.ns+"theme",e.backBtnTheme)}c.children("h1, h2, h3, h4, h5, h6").addClass("ui-title").attr({tabindex:"0",
+role:"heading","aria-level":"1"})}else if(b==="content"){f&&c.addClass("ui-body-"+f);c.attr("role","main")}else if(b==="page")c.addClass("ui-body-"+(f||"c"));switch(b){case "header":case "footer":case "page":case "content":c.addClass("ui-"+b);break;case "collapsible":case "fieldcontain":case "navbar":case "listview":case "dialog":c[b]()}});this._enhanceControls();d.find(":jqmData(role='button'), .ui-bar > a, .ui-header > a, .ui-footer > a").not(".ui-btn").not(this.keepNative).buttonMarkup();d.find(":jqmData(role='controlgroup')").controlgroup();
+d.find("a:not(.ui-btn):not(.ui-link-inherit)").not(this.keepNative).addClass("ui-link");d.fixHeaderFooter()}},_typeAttributeRegex:/\s+type=["']?\w+['"]?/,_enhanceControls:function(){var d=this.options,e=this;this.element.find("input").not(this.keepNative).each(function(){var f=this.getAttribute("type"),g=d.degradeInputs[f]||"text";d.degradeInputs[f]&&a(this).replaceWith(a("<div>").html(a(this).clone()).html().replace(e._typeAttributeRegex,' type="'+g+'" data-'+a.mobile.ns+'type="'+f+'" '))});var c=
+this.element.find("input, textarea, select, button"),b=c.not(this.keepNative);c=c.filter("input[type=text]");c.length&&typeof c[0].autocorrect!=="undefined"&&c.each(function(){this.setAttribute("autocorrect","off");this.setAttribute("autocomplete","off")});b.filter("[type='radio'], [type='checkbox']").checkboxradio();b.filter("button, [type='button'], [type='submit'], [type='reset'], [type='image']").button();b.filter("input, textarea").not("[type='radio'], [type='checkbox'], [type='button'], [type='submit'], [type='reset'], [type='image'], [type='hidden']").textinput();
+b.filter("input, select").filter(":jqmData(role='slider'), :jqmData(type='range')").slider();b.filter("select:not(:jqmData(role='slider'))").selectmenu()}})})(jQuery);
+(function(a,d){a.extend(a.mobile,{ns:"",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",pageLoadErrorMessage:"Error Loading Page",metaViewportContent:"width=device-width, minimum-scale=1, maximum-scale=1",gradeA:function(){return a.support.mediaquery||a.mobile.browser.ie&&a.mobile.browser.ie>=
+7},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},silentScroll:function(c){c=c||0;a.event.special.scrollstart.enabled=false;setTimeout(function(){d.scrollTo(0,c);a(document).trigger("silentscroll",
+{x:0,y:c})},20);setTimeout(function(){a.event.special.scrollstart.enabled=true},150)}});a.fn.jqmData=function(c,b){return this.data(c?a.mobile.ns+c:c,b)};a.jqmData=function(c,b,f){return a.data(c,b&&a.mobile.ns+b,f)};a.fn.jqmRemoveData=function(c){return this.removeData(a.mobile.ns+c)};a.jqmRemoveData=function(c,b){return a.removeData(c,b&&a.mobile.ns+b)};a.jqmHasData=function(c,b){return a.hasData(c,b&&a.mobile.ns+b)};var e=a.find;a.find=function(c,b,f,g){c=c.replace(/:jqmData\(([^)]*)\)/g,"[data-"+
+(a.mobile.ns||"")+"$1]");return e.call(this,c,b,f,g)};a.extend(a.find,e);a.find.matches=function(c,b){return a.find(c,null,null,b)};a.find.matchesSelector=function(c,b){return a.find(b,null,null,[c]).length>0}})(jQuery,this);
+(function(a,d){function e(l){if(i&&(!i.closest(".ui-page-active").length||l))i.removeClass(a.mobile.activeBtnClass);i=null}var c=a(window),b=a("html"),f=a("head"),g={get:function(l){if(l===d)l=location.hash;return g.stripHash(l).replace(/[^\/]*\.[^\/*]+$/,"")},getFilePath:function(l){var q="&"+a.mobile.subPageUrlKey;return l&&l.split(q)[0].split(p)[0]},set:function(l){location.hash=l},origin:"",setOrigin:function(){g.origin=g.get(location.protocol+"//"+location.host+location.pathname)},makeAbsolute:function(l){return g.isPath(window.location.hash)?
+g.get()+l:l},isPath:function(l){return/\//.test(l)},clean:function(l){return l.replace(RegExp("^"+location.protocol+"//"+location.host+location.pathname),"")},stripHash:function(l){return l.replace(/^#/,"")},isExternal:function(l){return g.hasProtocol(g.clean(l))},hasProtocol:function(l){return/^(:?\w+:)/.test(l)},isRelative:function(l){return/^[^\/|#]/.test(l)&&!g.hasProtocol(l)},isEmbeddedPage:function(l){return/^#/.test(l)}},i=null,h={stack:[],activeIndex:0,getActive:function(){return h.stack[h.activeIndex]},
+getPrev:function(){return h.stack[h.activeIndex-1]},getNext:function(){return h.stack[h.activeIndex+1]},addNew:function(l,q,u){h.getNext()&&h.clearForward();h.stack.push({url:l,transition:q,page:u});h.activeIndex=h.stack.length-1},clearForward:function(){h.stack=h.stack.slice(0,h.activeIndex+1)},directHashChange:function(l){var q,u,H;a.each(h.stack,function(C,I){if(l.currentUrl===I.url){q=C<h.activeIndex;u=!q;H=C}});this.activeIndex=H!==d?H:this.activeIndex;if(q)l.isBack();else u&&l.isForward()},
+ignoreNextHashChange:true},k="[tabindex],a,button:visible,select:visible,input",m=null,o=[],j=false,p="&ui-state=dialog",s=f.children("base"),r=location.protocol+"//"+location.host,x=g.get(r+location.pathname),w=x;if(s.length){var y=s.attr("href");if(y)w=y.search(/^[^:\/]+:\/\/[^\/]+\/?/)===-1?y.charAt(0)==="/"?r+y:x+y:y;w+=w.charAt(w.length-1)==="/"?" ":"/"}var B=a.support.dynamicBaseTag?{element:s.length?s:a("<base>",{href:w}).prependTo(f),set:function(l){B.element.attr("href",w+g.get(l))},reset:function(){B.element.attr("href",
+w)}}:d;g.setOrigin();a.fn.animationComplete=function(l){if(a.support.cssTransitions)return a(this).one("webkitAnimationEnd",l);else{setTimeout(l,0);return a(this)}};a.mobile.updateHash=g.set;a.mobile.path=g;a.mobile.base=B;a.mobile.urlstack=h.stack;a.mobile.urlHistory=h;a.mobile.allowCrossDomainPages=false;a.mobile.changePage=function(l,q,u,H,C){function I(){j=false;o.length>0&&a.mobile.changePage.apply(a.mobile,o.pop())}function F(){function K(){if(H!==false&&A){h.ignoreNextHashChange=false;g.set(A)}!z&&
+!E&&h.addNew(A,q,l);e();a.mobile.silentScroll(l.jqmData("lastScroll"));var Q=l,T=Q.find(".ui-title:eq(0)");T.length?T.focus():Q.find(k).eq(0).focus();D&&D.data("page")._trigger("hide",null,{nextPage:l});l.data("page")._trigger("show",null,{prevPage:D||a("")});a.mobile.activePage=l;v!==null&&v.remove();b.removeClass("ui-mobile-rendering");I()}function J(Q){a.mobile.pageContainer.addClass(Q);U.push(Q)}a.mobile.silentScroll();var N=c.scrollTop(),S=["flip"],U=[];if(A.indexOf("&"+a.mobile.subPageUrlKey)>
+-1)l=a(":jqmData(url='"+A+"')");if(D){D.jqmData("lastScroll",N);D.data("page")._trigger("beforehide",null,{nextPage:l})}l.data("page")._trigger("beforeshow",null,{prevPage:D||a("")});if(q&&q!=="none"){a.mobile.pageLoading(true);a.inArray(q,S)>=0&&J("ui-mobile-viewport-perspective");J("ui-mobile-viewport-transitioning");if(D)D.addClass(q+" out "+(u?"reverse":""));l.addClass(a.mobile.activePageClass+" "+q+" in "+(u?"reverse":""));l.animationComplete(function(){l.add(D).removeClass("out in reverse "+
+q);D&&D.removeClass(a.mobile.activePageClass);K();a.mobile.pageContainer.removeClass(U.join(" "));U=[]})}else{a.mobile.pageLoading(true);D&&D.removeClass(a.mobile.activePageClass);l.addClass(a.mobile.activePageClass);K()}}function R(){if(m||l.jqmData("role")==="dialog"){A=h.getActive().url+p;if(m){l.attr("data-"+a.mobile.ns+"role",m);m=null}}l.page()}var M=a.type(l)==="array",O=a.type(l)==="object",D=M?l[0]:a.mobile.activePage;l=M?l[1]:l;var A=a.type(l)==="string"?g.stripHash(l):"",L=A,G,P="get",
+n=false,v=null,t=h.getActive(),z=false,E=false;if(!(t&&h.stack.length>1&&t.url===A&&!M&&!O))if(j)o.unshift(arguments);else{j=true;C&&h.directHashChange({currentUrl:A,isBack:function(){E=!(z=true);u=true;q=q||t.transition},isForward:function(){E=!(z=false);q=q||h.getActive().transition}});if(O&&l.url){A=l.url;G=l.data;P=l.type;n=true;if(G&&P==="get"){if(a.type(G)==="object")G=a.param(G);A+="?"+G;G=d}}B&&B.reset();a(window.document.activeElement).add("input:focus, textarea:focus, select:focus").blur();
+if(A){l=a(":jqmData(url='"+A+"')");L=g.getFilePath(A)}else{M=l.attr("data-"+a.mobile.ns+"url");O=g.getFilePath(M);if(M!==O)L=O}if(q===d)q=m&&m==="dialog"?"pop":a.mobile.defaultTransition;if(l.length&&!n){L&&B&&B.set(L);R();F()}else{if(l.length)v=l;a.mobile.pageLoading();a.ajax({url:L,type:P,data:G,success:function(K){var J=a("<div></div>"),N,S=RegExp("\\bdata-"+a.mobile.ns+"url=[\"']?([^\"'>]*)[\"']?");if(RegExp(".*(<[^>]+\\bdata-"+a.mobile.ns+"role=[\"']?page[\"']?[^>]*>).*").test(K)&&RegExp.$1&&
+S.test(RegExp.$1)&&RegExp.$1)N=RegExp.$1;if(N){B&&B.set(N);A=L=g.getFilePath(N)}else B&&B.set(L);J.get(0).innerHTML=K;l=J.find(":jqmData(role='page'), :jqmData(role='dialog')").first();if(!a.support.dynamicBaseTag){var U=g.get(L);l.find("[src], link[href], a[rel='external'], :jqmData(ajax='false'), a[target]").each(function(){var Q=a(this).is("[href]")?"href":"src",T=a(this).attr(Q);T=T.replace(location.protocol+"//"+location.host+location.pathname,"");/^(\w+:|#|\/)/.test(T)||a(this).attr(Q,U+T)})}l.attr("data-"+
+a.mobile.ns+"url",L).appendTo(a.mobile.pageContainer);R();setTimeout(function(){F()},0)},error:function(){a.mobile.pageLoading(true);e(true);B&&B.set(g.get());I();a("<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h1>"+a.mobile.pageLoadErrorMessage+"</h1></div>").css({display:"block",opacity:0.96,top:a(window).scrollTop()+100}).appendTo(a.mobile.pageContainer).delay(800).fadeOut(400,function(){a(this).remove()})}})}}};a("form").live("submit",function(l){if(!(!a.mobile.ajaxEnabled||
+!a.mobile.ajaxFormsEnabled||a(this).is(":jqmData(ajax='false')"))){var q=a(this).attr("method"),u=g.clean(a(this).attr("action")),H=a(this).attr("target");if(!(g.isExternal(u)||H)){if(g.isRelative(u))u=g.makeAbsolute(u);a.mobile.changePage({url:u.length&&u||g.get(),type:q.length&&q.toLowerCase()||"get",data:a(this).serialize()},a(this).jqmData("transition"),a(this).jqmData("direction"),true);l.preventDefault()}}});a("a").live("vclick",function(l){var q=a(this),u=q.attr("href")||"#",H=g.hasProtocol(u);
+u=g.clean(u);var C=q.is("[rel='external']"),I=g.isEmbeddedPage(u),F=a.mobile.allowCrossDomainPages&&location.protocol==="file:"&&u.search(/^https?:/)!=-1;C=g.isExternal(u)&&!F||C&&!I;I=q.is("[target]");F=q.is(":jqmData(ajax='false')");if(q.is(":jqmData(rel='back')")){u=a.mobile.urlHistory.getPrev().url;if(u===null||u=="")u=a.mobile.firstPage.attr("data-url");u="#"+u;C=a.mobile.urlHistory.getActive().transition||"slide";a.mobile.changePage(u,C,true,true,true);return false}if(u.replace(g.get(),"")==
+"#")l.preventDefault();else{i=q.closest(".ui-btn").addClass(a.mobile.activeBtnClass);if(C||F||I||!a.mobile.ajaxEnabled||!a.mobile.ajaxLinksEnabled)window.setTimeout(function(){e(true)},200);else{C=q.jqmData("transition");I=(I=q.jqmData("direction"))&&I==="reverse"||q.jqmData("back");m=q.attr("data-"+a.mobile.ns+"rel");if(g.isRelative(u)&&!H)u=g.makeAbsolute(u);u=g.stripHash(u);a.mobile.changePage(u,C,I);l.preventDefault()}}});c.bind("hashchange",function(){var l=g.stripHash(location.hash),q=a.mobile.urlHistory.stack.length===
+0?false:d;if(!a.mobile.hashListeningEnabled||!h.ignoreNextHashChange){if(!h.ignoreNextHashChange)h.ignoreNextHashChange=true}else{if(h.stack.length>1&&l.indexOf(p)>-1)if(a.mobile.activePage.is(".ui-dialog")){var u=function(){l=a.mobile.urlHistory.getActive().page};h.directHashChange({currentUrl:l,isBack:u,isForward:u})}else{h.directHashChange({currentUrl:l,isBack:function(){window.history.back()},isForward:function(){window.history.forward()}});return}l?a.mobile.changePage(l,q,d,false,true):a.mobile.changePage(a.mobile.firstPage,
+q,true,false,true)}})})(jQuery);
+(function(a,d){a.fn.fixHeaderFooter=function(){if(!a.support.scrollTop)return this;return this.each(function(){var e=a(this);e.jqmData("fullscreen")&&e.addClass("ui-page-fullscreen");e.find(".ui-header:jqmData(position='fixed')").addClass("ui-header-fixed ui-fixed-inline fade");e.find(".ui-footer:jqmData(position='fixed')").addClass("ui-footer-fixed ui-fixed-inline fade")})};a.fixedToolbars=function(){function e(){if(!g&&f=="overlay"){i||a.fixedToolbars.hide(true);a.fixedToolbars.startShowTimer()}}
+function c(j){var p=0;if(j){var s=j.offsetParent,r=document.body;for(p=j.offsetTop;j&&j!=r;){p+=j.scrollTop||0;if(j==s){p+=s.offsetTop;s=j.offsetParent}j=j.parentNode}}return p}function b(j){var p=a(window).scrollTop(),s=c(j[0]),r=j.css("top")=="auto"?0:parseFloat(j.css("top")),x=window.innerHeight,w=j.outerHeight(),y=j.parents(".ui-page:not(.ui-page-fullscreen)").length;if(j.is(".ui-header-fixed")){r=p-s+r;if(r<s)r=0;return j.css("top",y?r:p)}else{r=p+x-w-(s-r);return j.css("top",y?r:p+x-w)}}if(a.support.scrollTop){var f=
+"inline",g=false,i,h,k=null,m=false,o=true;a(function(){a(document).bind("vmousedown",function(){if(o)k=f}).bind("vclick",function(j){if(o)if(!a(j.target).closest("a,input,textarea,select,button,label,.ui-header-fixed,.ui-footer-fixed").length)if(!m){a.fixedToolbars.toggle(k);k=null}}).bind("scrollstart",function(){m=true;if(k==null)k=f;var j=k=="overlay";if(g=j||!!i){a.fixedToolbars.clearShowTimer();j&&a.fixedToolbars.hide(true)}}).bind("scrollstop",function(j){if(!a(j.target).closest("a,input,textarea,select,button,label,.ui-header-fixed,.ui-footer-fixed").length){m=
+false;if(g){g=false;a.fixedToolbars.startShowTimer()}k=null}}).bind("silentscroll",e);a(window).bind("resize",e)});a(".ui-page").live("pagebeforeshow",function(j,p){var s=a(j.target).find(":jqmData(role='footer')"),r=s.data("id"),x=p.prevPage;prevFooter=x&&x.find(":jqmData(role='footer')");x=prevFooter.jqmData("id")===r;if(r&&x){h=s;b(h.removeClass("fade in out").appendTo(a.mobile.pageContainer))}});a(".ui-page").live("pageshow",function(){var j=a(this);h&&h.length&&setTimeout(function(){b(h.appendTo(j).addClass("fade"));
+h=null},500);a.fixedToolbars.show(true,this)});return{show:function(j,p){a.fixedToolbars.clearShowTimer();f="overlay";return(p?a(p):a.mobile.activePage?a.mobile.activePage:a(".ui-page-active")).children(".ui-header-fixed:first, .ui-footer-fixed:not(.ui-footer-duplicate):last").each(function(){var s=a(this),r=a(window).scrollTop(),x=c(s[0]),w=window.innerHeight,y=s.outerHeight();r=s.is(".ui-header-fixed")&&r<=x+y||s.is(".ui-footer-fixed")&&x<=r+w;s.addClass("ui-fixed-overlay").removeClass("ui-fixed-inline");
+!r&&!j&&s.animationComplete(function(){s.removeClass("in")}).addClass("in");b(s)})},hide:function(j){f="inline";return(a.mobile.activePage?a.mobile.activePage:a(".ui-page-active")).children(".ui-header-fixed:first, .ui-footer-fixed:not(.ui-footer-duplicate):last").each(function(){var p=a(this),s=p.css("top");s=s=="auto"?0:parseFloat(s);p.addClass("ui-fixed-inline").removeClass("ui-fixed-overlay");if(s<0||p.is(".ui-header-fixed")&&s!=0)if(j)p.css("top",0);else p.css("top")!=="auto"&&parseFloat(p.css("top"))!==
+0&&p.animationComplete(function(){p.removeClass("out reverse");p.css("top",0)}).addClass("out reverse")})},startShowTimer:function(){a.fixedToolbars.clearShowTimer();var j=a.makeArray(arguments);i=setTimeout(function(){i=d;a.fixedToolbars.show.apply(null,j)},100)},clearShowTimer:function(){i&&clearTimeout(i);i=d},toggle:function(j){if(j)f=j;return f=="overlay"?a.fixedToolbars.hide():a.fixedToolbars.show()},setTouchToggleEnabled:function(j){o=j}}}}()})(jQuery);
+(function(a,d){a.widget("mobile.checkboxradio",a.mobile.widget,{options:{theme:null},_create:function(){var e=this,c=this.element,b=c.closest("form,fieldset,:jqmData(role='page')").find("label").filter("[for="+c[0].id+"]"),f=c.attr("type"),g="ui-icon-"+f+"-off";if(!(f!="checkbox"&&f!="radio")){a.extend(this,{label:b,inputtype:f,checkedicon:"ui-icon-"+f+"-on",uncheckedicon:g});if(!this.options.theme)this.options.theme=this.element.jqmData("theme");b.buttonMarkup({theme:this.options.theme,icon:this.element.parents(":jqmData(type='horizontal')").length?
+d:g,shadow:false});c.add(b).wrapAll("<div class='ui-"+f+"'></div>");b.bind({vmouseover:function(){if(a(this).parent().is(".ui-disabled"))return false},vclick:function(i){if(c.is(":disabled"))i.preventDefault();else{e._cacheVals();c.attr("checked",f==="radio"&&true||!c.is(":checked"));e._updateAll();return false}}});c.bind({vmousedown:function(){this._cacheVals()},vclick:function(){e._updateAll()},focus:function(){b.addClass("ui-focus")},blur:function(){b.removeClass("ui-focus")}});this.refresh()}},
+_cacheVals:function(){this._getInputSet().each(function(){a(this).jqmData("cacheVal",a(this).is(":checked"))})},_getInputSet:function(){return this.element.closest("form,fieldset,:jqmData(role='page')").find("input[name='"+this.element.attr("name")+"'][type='"+this.inputtype+"']")},_updateAll:function(){this._getInputSet().each(function(){if(a(this).is(":checked")||this.inputtype==="checkbox")a(this).trigger("change")}).checkboxradio("refresh")},refresh:function(){var e=this.element,c=this.label,
+b=c.find(".ui-icon");if(e[0].checked){c.addClass(a.mobile.activeBtnClass);b.addClass(this.checkedicon).removeClass(this.uncheckedicon)}else{c.removeClass(a.mobile.activeBtnClass);b.removeClass(this.checkedicon).addClass(this.uncheckedicon)}e.is(":disabled")?this.disable():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){a.widget("mobile.textinput",a.mobile.widget,{options:{theme:null},_create:function(){var d=this.element,e=this.options,c=e.theme;if(!c){c=this.element.closest("[class*='ui-bar-'],[class*='ui-body-']");c=c.length?/ui-(bar|body)-([a-z])/.exec(c.attr("class"))[2]:"c"}c=" ui-body-"+c;a("label[for="+d.attr("id")+"]").addClass("ui-input-text");d.addClass("ui-input-text ui-body-"+e.theme);var b=d;if(d.is("[type='search'],:jqmData(type='search')")){b=d.wrap('<div class="ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield'+
+c+'"></div>').parent();var f=a('<a href="#" class="ui-input-clear" title="clear text">clear text</a>').tap(function(h){d.val("").focus();d.trigger("change");f.addClass("ui-input-clear-hidden");h.preventDefault()}).appendTo(b).buttonMarkup({icon:"delete",iconpos:"notext",corners:true,shadow:true});e=function(){d.val()==""?f.addClass("ui-input-clear-hidden"):f.removeClass("ui-input-clear-hidden")};e();d.keyup(e)}else d.addClass("ui-corner-all ui-shadow-inset"+c);d.focus(function(){b.addClass("ui-focus")}).blur(function(){b.removeClass("ui-focus")});
+if(d.is("textarea")){var g=function(){var h=d[0].scrollHeight;d[0].clientHeight<h&&d.css({height:h+15})},i;d.keyup(function(){clearTimeout(i);i=setTimeout(g,100)})}},disable:function(){(this.element.attr("disabled",true).is("[type='search'],:jqmData(type='search')")?this.element.parent():this.element).addClass("ui-disabled")},enable:function(){(this.element.attr("disabled",false).is("[type='search'],:jqmData(type='search')")?this.element.parent():this.element).removeClass("ui-disabled")}})})(jQuery);
+(function(a){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:true},_create:function(){var d=this,e=this.options,c=this.element.wrap("<div class='ui-select'>"),b=c.attr("id"),f=a("label[for="+b+"]").addClass("ui-select"),g=c[0].selectedIndex==-1?0:c[0].selectedIndex,i=(d.options.nativeMenu?
+a("<div/>"):a("<a>",{href:"#",role:"button",id:m,"aria-haspopup":"true","aria-owns":o})).text(a(c[0].options.item(g)).text()).insertBefore(c).buttonMarkup({theme:e.theme,icon:e.icon,iconpos:e.iconpos,inline:e.inline,corners:e.corners,shadow:e.shadow,iconshadow:e.iconshadow}),h=d.isMultiple=c[0].multiple;e.nativeMenu&&window.opera&&window.opera.version&&c.addClass("ui-select-nativeonly");if(!e.nativeMenu){var k=c.find("option"),m=b+"-button",o=b+"-menu",j=c.closest(".ui-page");g=/ui-btn-up-([a-z])/.exec(i.attr("class"))[1];
+var p=a("<div data-"+a.mobile.ns+"role='dialog' data-"+a.mobile.ns+"theme='"+e.menuPageTheme+"'><div data-"+a.mobile.ns+"role='header'><div class='ui-title'>"+f.text()+"</div></div><div data-"+a.mobile.ns+"role='content'></div></div>").appendTo(a.mobile.pageContainer).page(),s=p.find(".ui-content");p.find(".ui-header a");var r=a("<div>",{"class":"ui-selectmenu-screen ui-screen-hidden"}).appendTo(j),x=a("<div>",{"class":"ui-selectmenu ui-selectmenu-hidden ui-overlay-shadow ui-corner-all pop ui-body-"+
+e.overlayTheme}).insertAfter(r),w=a("<ul>",{"class":"ui-selectmenu-list",id:o,role:"listbox","aria-labelledby":m}).attr("data-"+a.mobile.ns+"theme",g).appendTo(x),y=a("<div>",{"class":"ui-header ui-bar-"+g}).prependTo(x),B=a("<h1>",{"class":"ui-title"}).appendTo(y),l=a("<a>",{text:e.closeText,href:"#","class":"ui-btn-left"}).attr("data-"+a.mobile.ns+"iconpos","notext").attr("data-"+a.mobile.ns+"icon","delete").appendTo(y).buttonMarkup()}if(h)d.buttonCount=a("<span>").addClass("ui-li-count ui-btn-up-c ui-btn-corner-all").hide().appendTo(i);
+e.disabled&&this.disable();c.change(function(){d.refresh()});a.extend(d,{select:c,optionElems:k,selectID:b,label:f,buttonId:m,menuId:o,thisPage:j,button:i,menuPage:p,menuPageContent:s,screen:r,listbox:x,list:w,menuType:void 0,header:y,headerClose:l,headerTitle:B,placeholder:""});if(e.nativeMenu)c.appendTo(i).bind("vmousedown",function(){i.addClass(a.mobile.activeBtnClass)}).bind("focus vmouseover",function(){i.trigger("vmouseover")}).bind("vmousemove",function(){i.removeClass(a.mobile.activeBtnClass)}).bind("change blur vmouseout",
+function(){i.trigger("vmouseout").removeClass(a.mobile.activeBtnClass)});else{d.refresh();c.attr("tabindex","-1").focus(function(){a(this).blur();i.focus()});i.bind("vclick",function(q){d.open();q.preventDefault()});w.delegate("li:not(.ui-disabled, .ui-li-divider)","vclick",function(q){var u=c[0].selectedIndex,H=w.find("li:not(.ui-li-divider)").index(this),C=d.optionElems.eq(H)[0];C.selected=h?!C.selected:true;h&&a(this).find(".ui-icon").toggleClass("ui-icon-checkbox-on",C.selected).toggleClass("ui-icon-checkbox-off",
+!C.selected);u!==H&&c.trigger("change");h||d.close();q.preventDefault()});r.bind("vclick",function(){d.close()});d.headerClose.click(function(){if(d.menuType=="overlay"){d.close();return false}})}},_buildList:function(){var d=this,e=this.options,c=this.placeholder,b=[],f=[],g=d.isMultiple?"checkbox-off":"false";d.list.empty().filter(".ui-listview").listview("destroy");d.select.find("option").each(function(){var i=a(this),h=i.parent(),k=i.text(),m="<a href='#'>"+k+"</a>",o=[],j=[];if(h.is("optgroup")){h=
+h.attr("label");if(a.inArray(h,b)===-1){f.push("<li data-"+a.mobile.ns+"role='list-divider'>"+h+"</li>");b.push(h)}}if(!this.getAttribute("value")||k.length==0||i.jqmData("placeholder")){e.hidePlaceholderMenuItems&&o.push("ui-selectmenu-placeholder");c=d.placeholder=k}if(this.disabled){o.push("ui-disabled");j.push("aria-disabled='true'")}f.push("<li data-"+a.mobile.ns+"icon='"+g+"' class='"+o.join(" ")+"' "+j.join(" ")+">"+m+"</li>")});d.list.html(f.join(" "));this.isMultiple||this.headerClose.hide();
+!this.isMultiple&&!c.length?this.header.hide():this.headerTitle.text(this.placeholder);d.list.listview()},refresh:function(d){var e=this,c=this.element,b=this.isMultiple,f=this.optionElems=c.find("option"),g=f.filter(":selected"),i=g.map(function(){return f.index(this)}).get();if(!e.options.nativeMenu&&(d||c[0].options.length!=e.list.find("li").length))e._buildList();e.button.find(".ui-btn-text").text(function(){if(!b)return g.text();return g.length?g.map(function(){return a(this).text()}).get().join(", "):
+e.placeholder});if(b)e.buttonCount[g.length>1?"show":"hide"]().text(g.length);e.options.nativeMenu||e.list.find("li:not(.ui-li-divider)").removeClass(a.mobile.activeBtnClass).attr("aria-selected",false).each(function(h){if(a.inArray(h,i)>-1){h=a(this).addClass(a.mobile.activeBtnClass);h.find("a").attr("aria-selected",true);b&&h.find(".ui-icon").removeClass("ui-icon-checkbox-off").addClass("ui-icon-checkbox-on")}})},open:function(){function d(){e.list.find(".ui-btn-active").focus()}if(!(this.options.disabled||
+this.options.nativeMenu)){var e=this,c=e.list.parent().outerHeight(),b=e.list.parent().outerWidth(),f=a(window).scrollTop(),g=e.button.offset().top,i=window.innerHeight,h=window.innerWidth;e.button.addClass(a.mobile.activeBtnClass);setTimeout(function(){e.button.removeClass(a.mobile.activeBtnClass)},300);if(c>i-80||!a.support.scrollTop){f==0&&g>i&&e.thisPage.one("pagehide",function(){a(this).jqmData("lastScroll",g)});e.menuPage.one("pageshow",function(){a(window).one("silentscroll",function(){d()})});
+e.menuType="page";e.menuPageContent.append(e.list);a.mobile.changePage(e.menuPage,"pop",false,true)}else{e.menuType="overlay";e.screen.height(a(document).height()).removeClass("ui-screen-hidden");var k=g-f,m=f+i-g,o=c/2,j=parseFloat(e.list.parent().css("max-width"));c=k>c/2&&m>c/2?g+e.button.outerHeight()/2-o:k>m?f+i-c-30:f+30;if(b<j)j=(h-b)/2;else{j=e.button.offset().left+e.button.outerWidth()/2-b/2;if(j<30)j=30;else if(j+b>h)j=h-b-30}e.listbox.append(e.list).removeClass("ui-selectmenu-hidden").css({top:c,
+left:j}).addClass("in");d()}setTimeout(function(){e.isOpen=true},400)}},close:function(){function d(){setTimeout(function(){e.button.focus()},40);e.listbox.removeAttr("style").append(e.list)}if(!(this.options.disabled||!this.isOpen||this.options.nativeMenu)){var e=this;if(e.menuType=="page"){a.mobile.changePage([e.menuPage,e.thisPage],"pop",true,false);e.menuPage.one("pagehide",d)}else{e.screen.addClass("ui-screen-hidden");e.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){a.fn.buttonMarkup=function(e){return this.each(function(){var c=a(this),b=a.extend({},a.fn.buttonMarkup.defaults,c.jqmData(),e),f,g="ui-btn-inner",i;d&&d();if(!b.theme){f=c.closest("[class*='ui-bar-'],[class*='ui-body-']");b.theme=f.length?/ui-(bar|body)-([a-z])/.exec(f.attr("class"))[2]:"c"}f="ui-btn ui-btn-up-"+b.theme;if(b.inline)f+=" ui-btn-inline";if(b.icon){b.icon="ui-icon-"+b.icon;b.iconpos=b.iconpos||"left";i="ui-icon "+b.icon;if(b.shadow)i+=" ui-icon-shadow"}if(b.iconpos){f+=
+" ui-btn-icon-"+b.iconpos;b.iconpos=="notext"&&!c.attr("title")&&c.attr("title",c.text())}if(b.corners){f+=" ui-btn-corner-all";g+=" ui-btn-corner-all"}if(b.shadow)f+=" ui-shadow";c.attr("data-"+a.mobile.ns+"theme",b.theme).addClass(f);b=("<D class='"+g+"'><D class='ui-btn-text'></D>"+(b.icon?"<span class='"+i+"'></span>":"")+"</D>").replace(/D/g,b.wrapperEls);c.wrapInner(b)})};a.fn.buttonMarkup.defaults={corners:true,shadow:true,iconshadow:true,wrapperEls:"span"};var d=function(){a(".ui-btn:not(.ui-disabled)").live({vmousedown:function(){var e=
+a(this).attr("data-"+a.mobile.ns+"theme");a(this).removeClass("ui-btn-up-"+e).addClass("ui-btn-down-"+e)},"vmousecancel vmouseup":function(){var e=a(this).attr("data-"+a.mobile.ns+"theme");a(this).removeClass("ui-btn-down-"+e).addClass("ui-btn-up-"+e)},"vmouseover focus":function(){var e=a(this).attr("data-"+a.mobile.ns+"theme");a(this).removeClass("ui-btn-up-"+e).addClass("ui-btn-hover-"+e)},"vmouseout blur":function(){var e=a(this).attr("data-"+a.mobile.ns+"theme");a(this).removeClass("ui-btn-hover-"+
+e).addClass("ui-btn-up-"+e)}});d=null}})(jQuery);
+(function(a){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 d=this.element,e=this.options;this.button=a("<div></div>").text(d.text()||d.val()).buttonMarkup({theme:e.theme,icon:e.icon,iconpos:e.iconpos,inline:e.inline,corners:e.corners,shadow:e.shadow,iconshadow:e.iconshadow}).insertBefore(d).append(d.addClass("ui-btn-hidden"));e=d.attr("type");e!=="button"&&e!=="reset"&&d.bind("vclick",
+function(){var c=a("<input>",{type:"hidden",name:d.attr("name"),value:d.attr("value")}).insertBefore(d);a(document).submit(function(){c.remove()})});this.refresh()},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)},refresh:function(){this.element.attr("disabled")?
+this.disable():this.enable()}})})(jQuery);
+(function(a){a.widget("mobile.slider",a.mobile.widget,{options:{theme:null,trackTheme:null,disabled:false},_create:function(){var d=this,e=this.element,c=e.parents("[class*=ui-bar-],[class*=ui-body-]").eq(0);c=c.length?c.attr("class").match(/ui-(bar|body)-([a-z])/)[2]:"c";var b=this.options.theme?this.options.theme:c,f=this.options.trackTheme?this.options.trackTheme:c,g=e[0].nodeName.toLowerCase();c=g=="select"?"ui-slider-switch":"";var i=e.attr("id"),h=i+"-label";i=a("[for="+i+"]").attr("id",h);
+var k=function(){return g=="input"?parseFloat(e.val()):e[0].selectedIndex},m=g=="input"?parseFloat(e.attr("min")):0,o=g=="input"?parseFloat(e.attr("max")):e.find("option").length-1,j=window.parseFloat(e.attr("step")||1),p=a('<div class="ui-slider '+c+" ui-btn-down-"+f+' ui-btn-corner-all" role="application"></div>'),s=a('<a href="#" class="ui-slider-handle"></a>').appendTo(p).buttonMarkup({corners:true,theme:b,shadow:true}).attr({role:"slider","aria-valuemin":m,"aria-valuemax":o,"aria-valuenow":k(),
+"aria-valuetext":k(),title:k(),"aria-labelledby":h});a.extend(this,{slider:p,handle:s,dragging:false,beforeStart:null});if(g=="select"){p.wrapInner('<div class="ui-slider-inneroffset"></div>');e.find("option");e.find("option").each(function(r){var x=r==0?"b":"a",w=r==0?"right":"left";r=r==0?" ui-btn-down-"+f:" ui-btn-active";a('<div class="ui-slider-labelbg ui-slider-labelbg-'+x+r+" ui-btn-corner-"+w+'"></div>').prependTo(p);a('<span class="ui-slider-label ui-slider-label-'+x+r+" ui-btn-corner-"+
+w+'" role="img">'+a(this).text()+"</span>").prependTo(s)})}i.addClass("ui-slider");e.addClass(g=="input"?"ui-slider-input":"ui-slider-switch").change(function(){d.refresh(k(),true)}).keyup(function(){d.refresh(k(),true,true)}).blur(function(){d.refresh(k(),true)});a(document).bind("vmousemove",function(r){if(d.dragging){d.refresh(r);return false}});p.bind("vmousedown",function(r){d.dragging=true;if(g==="select")d.beforeStart=e[0].selectedIndex;d.refresh(r);return false});p.add(document).bind("vmouseup",
+function(){if(d.dragging){d.dragging=false;if(g==="select"){if(d.beforeStart===e[0].selectedIndex)d.refresh(d.beforeStart===0?1:0);var r=k();r=Math.round(r/(o-m)*100);s.addClass("ui-slider-handle-snapping").css("left",r+"%").animationComplete(function(){s.removeClass("ui-slider-handle-snapping")})}return false}});p.insertAfter(e);this.handle.bind("vmousedown",function(){a(this).focus()});this.handle.bind("keydown",function(r){var x=k();if(!d.options.disabled){switch(r.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:r.preventDefault();
+if(!d._keySliding){d._keySliding=true;a(this).addClass("ui-state-active")}}switch(r.keyCode){case a.mobile.keyCode.HOME:d.refresh(m);break;case a.mobile.keyCode.END:d.refresh(o);break;case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:d.refresh(x+j);break;case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:d.refresh(x-j)}}}).keyup(function(){if(d._keySliding){d._keySliding=false;a(this).removeClass("ui-state-active")}});this.refresh()},
+refresh:function(d,e,c){if(!this.options.disabled){var b=this.element,f=b[0].nodeName.toLowerCase(),g=f==="input"?parseFloat(b.attr("min")):0,i=f==="input"?parseFloat(b.attr("max")):b.find("option").length-1;if(typeof d==="object"){d=d;if(!this.dragging||d.pageX<this.slider.offset().left-8||d.pageX>this.slider.offset().left+this.slider.width()+8)return;d=Math.round((d.pageX-this.slider.offset().left)/this.slider.width()*100)}else{if(d==null)d=f==="input"?parseFloat(b.val()):b[0].selectedIndex;d=(parseFloat(d)-
+g)/(i-g)*100}if(!isNaN(d)){if(d<0)d=0;if(d>100)d=100;var h=Math.round(d/100*(i-g))+g;if(h<g)h=g;if(h>i)h=i;this.handle.css("left",d+"%");this.handle.attr({"aria-valuenow":f==="input"?h:b.find("option").eq(h).attr("value"),"aria-valuetext":f==="input"?h:b.find("option").eq(h).text(),title:h});if(f==="select")h===0?this.slider.addClass("ui-slider-switch-a").removeClass("ui-slider-switch-b"):this.slider.addClass("ui-slider-switch-b").removeClass("ui-slider-switch-a");if(!c){if(f==="input")b.val(h);else b[0].selectedIndex=
+h;e||b.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){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 d=this.element,e=this.options,c=d.addClass("ui-collapsible-contain"),b=d.find(e.heading).eq(0),f=c.wrapInner('<div class="ui-collapsible-content"></div>').find(".ui-collapsible-content");d=d.closest(":jqmData(role='collapsible-set')").addClass("ui-collapsible-set");
+if(b.is("legend")){b=a('<div role="heading">'+b.html()+"</div>").insertBefore(b);b.next().remove()}b.insertBefore(f);b.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:!!!d.length,corners:false,iconPos:"left",icon:"plus",theme:e.theme}).find(".ui-icon").removeAttr("class").buttonMarkup({shadow:true,corners:true,iconPos:"notext",icon:"plus",theme:e.iconTheme});
+if(d.length)c.jqmData("collapsible-last")&&b.find("a:eq(0), .ui-btn-inner").addClass("ui-corner-bottom");else b.find("a:eq(0)").addClass("ui-corner-all").find(".ui-btn-inner").addClass("ui-corner-all");c.bind("collapse",function(g){if(!g.isDefaultPrevented()){g.preventDefault();b.addClass("ui-collapsible-heading-collapsed").find(".ui-collapsible-heading-status").text(e.expandCueText);b.find(".ui-icon").removeClass("ui-icon-minus").addClass("ui-icon-plus");f.addClass("ui-collapsible-content-collapsed").attr("aria-hidden",
+true);c.jqmData("collapsible-last")&&b.find("a:eq(0), .ui-btn-inner").addClass("ui-corner-bottom")}}).bind("expand",function(g){if(!g.isDefaultPrevented()){g.preventDefault();b.removeClass("ui-collapsible-heading-collapsed").find(".ui-collapsible-heading-status").text(e.collapseCueText);b.find(".ui-icon").removeClass("ui-icon-plus").addClass("ui-icon-minus");f.removeClass("ui-collapsible-content-collapsed").attr("aria-hidden",false);c.jqmData("collapsible-last")&&b.find("a:eq(0), .ui-btn-inner").removeClass("ui-corner-bottom")}}).trigger(e.collapsed?
+"collapse":"expand");if(d.length&&!d.jqmData("collapsiblebound")){d.jqmData("collapsiblebound",true).bind("expand",function(g){a(this).find(".ui-collapsible-contain").not(a(g.target).closest(".ui-collapsible-contain")).not("> .ui-collapsible-contain .ui-collapsible-contain").trigger("collapse")});d=d.find(":jqmData(role=collapsible)");d.first().find("a:eq(0)").addClass("ui-corner-top").find(".ui-btn-inner").addClass("ui-corner-top");d.last().jqmData("collapsible-last",true)}b.bind("vclick",function(g){b.is(".ui-collapsible-heading-collapsed")?
+c.trigger("expand"):c.trigger("collapse");g.preventDefault()})}})})(jQuery);
+(function(a){a.fn.controlgroup=function(d){return this.each(function(){function e(g){g.removeClass("ui-btn-corner-all ui-shadow").eq(0).addClass(f[0]).end().filter(":last").addClass(f[1]).addClass("ui-controlgroup-last")}var c=a.extend({direction:a(this).jqmData("type")||"vertical",shadow:false},d),b=a(this).find(">legend"),f=c.direction=="horizontal"?["ui-corner-left","ui-corner-right"]:["ui-corner-top","ui-corner-bottom"];a(this).find("input:eq(0)").attr("type");if(b.length){a(this).wrapInner('<div class="ui-controlgroup-controls"></div>');
+a('<div role="heading" class="ui-controlgroup-label">'+b.html()+"</div>").insertBefore(a(this).children(0));b.remove()}a(this).addClass("ui-corner-all ui-controlgroup ui-controlgroup-"+c.direction);e(a(this).find(".ui-btn"));e(a(this).find(".ui-btn-inner"));c.shadow&&a(this).addClass("ui-shadow")})}})(jQuery);(function(a){a.fn.fieldcontain=function(){return this.addClass("ui-field-contain ui-body ui-br")}})(jQuery);
+(function(a){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 d=this.element,e=this.options;d.addClass("ui-listview").attr("role","listbox");e.inset&&d.addClass("ui-listview-inset ui-corner-all ui-shadow");d.delegate(".ui-li","focusin",function(){a(this).attr("tabindex","0")});this._itemApply(d,d);this.refresh(true);d.keydown(function(c){var b=a(c.target),f=b.closest("li");
+switch(c.keyCode){case 38:c=f.prev();if(c.length){b.blur().attr("tabindex","-1");c.find("a").first().focus()}return false;case 40:c=f.next();if(c.length){b.blur().attr("tabindex","-1");c.find("a").first().focus()}return false;case 39:c=f.find("a.ui-li-link-alt");if(c.length){b.blur();c.first().focus()}return false;case 37:c=f.find("a.ui-link-inherit");if(c.length){b.blur();c.first().focus()}return false;case 13:case 32:b.trigger("vclick");return false}})},_itemApply:function(d,e){e.find(".ui-li-count").addClass("ui-btn-up-"+
+(d.jqmData("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");d.find("li").find(">img:eq(0), >a:first>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");c.length&&c.each(function(b,f){a(f).prependTo(a(f).parent())});a.support.cssPseudoElement||a.nodeName(e[0],"ol")},
+_removeCorners:function(d){d.add(d.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(d){this._createSubPages();var e=this.options,c=this.element,b=this,f=c.jqmData("dividertheme")||e.dividerTheme,g=c.children("li"),i=a.support.cssPseudoElement||!a.nodeName(c[0],"ol")?0:1;i&&c.find(".ui-li-dec").remove();g.attr({role:"option",tabindex:"-1"});g.first().attr("tabindex","0");g.each(function(h){var k=
+a(this),m="ui-li";if(!(!d&&k.hasClass("ui-li"))){var o=k.jqmData("theme")||e.theme,j=k.find("a");if(j.length){var p=k.jqmData("icon");k.buttonMarkup({wrapperEls:"div",shadow:false,corners:false,iconpos:"right",icon:j.length>1||p===false?false:p||"arrow-r",theme:o});j.first().addClass("ui-link-inherit");if(j.length>1){m+=" ui-li-has-alt";j=j.last();p=c.jqmData("splittheme")||j.jqmData("theme")||e.splitTheme;j.appendTo(k).attr("title",j.text()).addClass("ui-li-link-alt").empty().buttonMarkup({shadow:false,
+corners:false,theme:o,icon:false,iconpos:false}).find(".ui-btn-inner").append(a("<span>").buttonMarkup({shadow:true,corners:true,theme:p,iconpos:"notext",icon:c.jqmData("spliticon")||j.jqmData("icon")||e.splitIcon}))}}else if(k.jqmData("role")==="list-divider"){m+=" ui-li-divider ui-btn ui-bar-"+f;k.attr("role","heading");if(i)i=1}else m+=" ui-li-static ui-btn-up-"+o;if(e.inset){if(h===0){m+=" ui-corner-top";k.add(k.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-tr").end().find(".ui-li-thumb").addClass("ui-corner-tl");
+k.next().next().length&&b._removeCorners(k.next())}if(h===g.length-1){m+=" ui-corner-bottom";k.add(k.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-br").end().find(".ui-li-thumb").addClass("ui-corner-bl");k.prev().prev().length&&b._removeCorners(k.prev())}}i&&m.indexOf("ui-li-divider")<0&&k.find(".ui-link-inherit").first().addClass("ui-li-jsnumbering").prepend("<span class='ui-li-dec'>"+i++ +". </span>");k.add(k.find(".ui-btn-inner")).addClass(m);d||b._itemApply(c,k)}})},_idStringEscape:function(d){return d.replace(/[^a-zA-Z0-9]/g,
+"-")},_createSubPages:function(){var d=this.element,e=d.closest(".ui-page"),c=e.jqmData("url"),b=this.options,f=this,g=e.find(":jqmData(role='footer')").jqmData("id");a(d.find("li>ul, li>ol").toArray().reverse()).each(function(i){var h=a(this),k=h.parent(),m=a(h.prevAll().toArray().reverse());m=m.length?m:a("<span>"+a.trim(k.contents()[0].nodeValue)+"</span>");var o=m.first().text();i=c+"&"+a.mobile.subPageUrlKey+"="+f._idStringEscape(o+" "+i);var j=h.jqmData("theme")||b.theme,p=h.jqmData("counttheme")||
+d.jqmData("counttheme")||b.countTheme;h.wrap("<div data-"+a.mobile.ns+"role='page'><div data-"+a.mobile.ns+"role='content'></div></div>").parent().before("<div data-"+a.mobile.ns+"role='header' data-"+a.mobile.ns+"theme='"+b.headerTheme+"'><div class='ui-title'>"+o+"</div></div>").after(g?a("<div data-"+a.mobile.ns+"role='footer'  data-"+a.mobile.ns+"id='"+g+"'>"):"").parent().attr("data-"+a.mobile.ns+"url",i).attr("data-"+a.mobile.ns+"theme",j).attr("data-"+a.mobile.ns+"count-theme",p).appendTo(a.mobile.pageContainer).page();
+h=k.find("a:first");h.length||(h=a("<a></a>").html(m||o).prependTo(k.empty()));h.attr("href","#"+i)}).listview()}})})(jQuery);
+(function(a){a.mobile.listview.prototype.options.filter=false;a.mobile.listview.prototype.options.filterPlaceholder="Filter items...";a(":jqmData(role='listview')").live("listviewcreate",function(){var d=a(this),e=d.data("listview");if(e.options.filter){var c=a("<form>",{"class":"ui-listview-filter ui-bar-c",role:"search"});a("<input>",{placeholder:e.options.filterPlaceholder}).attr("data-"+a.mobile.ns+"type","search").bind("keyup change",function(){var b=this.value.toLowerCase(),f=d.children();f.show();
+if(b)for(var g=false,i,h=f.length;h>=0;h--){i=a(f[h]);if(i.is("li:jqmData(role=list-divider)")){g||i.hide();g=false}else if(i.text().toLowerCase().indexOf(b)===-1)i.hide();else g=true}}).appendTo(c).textinput();a(this).jqmData("inset")&&c.addClass("ui-listview-filter-inset");c.insertBefore(d)}})})(jQuery);
+(function(a){a.widget("mobile.dialog",a.mobile.widget,{options:{closeBtnText:"Close"},_create:function(){this.element.attr("role","dialog").addClass("ui-page ui-dialog ui-body-a").find(":jqmData(role=header)").addClass("ui-corner-top ui-overlay-shadow").prepend("<a href='#' data-"+a.mobile.ns+"icon='delete' data-"+a.mobile.ns+"rel='back' data-"+a.mobile.ns+"iconpos='notext'>"+this.options.closeBtnText+"</a>").end().find('.ui-content:not([class*="ui-body-"])').addClass("ui-body-c").end().find(".ui-content,:jqmData(role='footer')").last().addClass("ui-corner-bottom ui-overlay-shadow");
+this.element.bind("vclick submit",function(d){d=d.type=="vclick"?a(d.target).closest("a"):a(d.target).closest("form");d.length&&!d.jqmData("transition")&&d.attr("data-"+a.mobile.ns+"transition",a.mobile.urlHistory.getActive().transition).attr("data-"+a.mobile.ns+"direction","reverse")})},close:function(){var d=a.mobile.urlHistory.getPrev().url;if(d===null||d=="")d=a.mobile.firstPage.attr("data-url");d="#"+d;var e=a.mobile.urlHistory.getActive().transition||"pop";a.mobile.changePage(d,e,true,true,
+true);return false}})})(jQuery);
+(function(a,d){a.widget("mobile.navbar",a.mobile.widget,{options:{iconpos:"top",grid:null},_create:function(){var e=this.element,c=e.find("a"),b=c.filter(":jqmData(icon)").length?this.options.iconpos:d;e.addClass("ui-navbar").attr("role","navigation").find("ul").grid({grid:this.options.grid});b||e.addClass("ui-navbar-noicons");c.buttonMarkup({corners:false,shadow:false,iconpos:b});e.delegate("a","vclick",function(){c.not(".ui-state-persist").removeClass(a.mobile.activeBtnClass);a(this).addClass(a.mobile.activeBtnClass)})}})})(jQuery);
+(function(a){a.fn.grid=function(d){return this.each(function(){var e=a.extend({grid:null},d),c=a(this).children(),b={solo:1,a:2,b:3,c:4,d:5};e=e.grid;if(!e)if(c.length<=5)for(var f in b){if(b[f]==c.length)e=f}else e="a";b=b[e];a(this).addClass("ui-grid-"+e);c.filter(":nth-child("+b+"n+1)").addClass("ui-block-a");b>1&&c.filter(":nth-child("+b+"n+2)").addClass("ui-block-b");b>2&&c.filter(":nth-child(3n+3)").addClass("ui-block-c");b>3&&c.filter(":nth-child(4n+4)").addClass("ui-block-d");b>4&&c.filter(":nth-child(5n+5)").addClass("ui-block-e")})}})(jQuery);
+(function(a,d,e){var c=a("html"),b=a("head"),f=a(d);a(d.document).trigger("mobileinit");if(a.mobile.gradeA()){c.addClass("ui-mobile ui-mobile-rendering");a.mobile.metaViewportContent&&!b.find("meta[name='viewport']").length&&a("<meta>",{name:"viewport",content:a.mobile.metaViewportContent}).prependTo(b);var g=a.mobile.loadingMessage?a("<div class='ui-loader ui-body-a ui-corner-all'><span class='ui-icon ui-icon-loading spin'></span><h1>"+a.mobile.loadingMessage+"</h1></div>"):e;typeof g==="undefined"&&
+alert(a.mobile.loadingMessage);a.extend(a.mobile,{pageLoading:function(i){if(i)c.removeClass("ui-loading");else{if(a.mobile.loadingMessage){i=a("."+a.mobile.activeBtnClass).first();typeof g==="undefined"&&alert(a.mobile.loadingMessage);g.appendTo(a.mobile.pageContainer).css({top:a.support.scrollTop&&a(d).scrollTop()+a(d).height()/2||i.length&&i.offset().top||100})}c.addClass("ui-loading")}},initializePage:function(){var i=a(":jqmData(role='page')");i.add(":jqmData(role='dialog')").each(function(){var h=
+a(this);h.jqmData("url")||h.attr("data-"+a.mobile.ns+"url",h.attr("id"))});a.mobile.firstPage=i.first();a.mobile.pageContainer=i.first().parent().addClass("ui-mobile-viewport");a.mobile.pageLoading();!a.mobile.hashListeningEnabled||!a.mobile.path.stripHash(location.hash)?a.mobile.changePage(a.mobile.firstPage,false,true,false,true):f.trigger("hashchange",[true])}});a(a.mobile.initializePage);f.load(a.mobile.silentScroll)}})(jQuery,this);



Mime
View raw message