Nuno Maltez avatar Nuno Maltez committed 9dd00b3

Minified JS

Comments (0)

Files changed (2)

mobiweaver/jquery.mobile-1.0.mobiweaver.min.js

+/*!
+ * jQuery UI Widget @VERSION
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Widget
+ */
+(function(b,d){if(b.cleanData){var c=b.cleanData;b.cleanData=function(e){for(var f=0,g;(g=e[f])!=null;f++){b(g).triggerHandler("remove")}c(e)}}else{var a=b.fn.remove;b.fn.remove=function(e,f){return this.each(function(){if(!f){if(!e||b.filter(e,[this]).length){b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")})}}return a.call(b(this),e,f)})}}b.widget=function(f,h,e){var g=f.split(".")[0],j;f=f.split(".")[1];j=g+"-"+f;if(!e){e=h;h=b.Widget}b.expr[":"][j]=function(k){return !!b.data(k,f)};b[g]=b[g]||{};b[g][f]=function(k,l){if(arguments.length){this._createWidget(k,l)}};var i=new h();i.options=b.extend(true,{},i.options);b[g][f].prototype=b.extend(true,i,{namespace:g,widgetName:f,widgetEventPrefix:b[g][f].prototype.widgetEventPrefix||f,widgetBaseClass:j},e);b.widget.bridge(f,b[g][f])};b.widget.bridge=function(f,e){b.fn[f]=function(i){var g=typeof i==="string",h=Array.prototype.slice.call(arguments,1),j=this;i=!g&&h.length?b.extend.apply(null,[true,i].concat(h)):i;if(g&&i.charAt(0)==="_"){return j}if(g){this.each(function(){var k=b.data(this,f);if(!k){throw"cannot call methods on "+f+" prior to initialization; attempted to call method '"+i+"'"}if(!b.isFunction(k[i])){throw"no such method '"+i+"' for "+f+" widget instance"}var l=k[i].apply(k,h);if(l!==k&&l!==d){j=l;return false}})}else{this.each(function(){var k=b.data(this,f);if(k){k.option(i||{})._init()}else{b.data(this,f,new e(i,this))}})}return j}};b.Widget=function(e,f){if(arguments.length){this._createWidget(e,f)}};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(f,g){b.data(g,this.widgetName,this);this.element=b(g);this.options=b.extend(true,{},this.options,this._getCreateOptions(),f);var e=this;this.element.bind("remove."+this.widgetName,function(){e.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){var e={};if(b.metadata){e=b.metadata.get(element)[this.widgetName]}return e},_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(f,g){var e=f;if(arguments.length===0){return b.extend({},this.options)}if(typeof f==="string"){if(g===d){return this.options[f]}e={};e[f]=g}this._setOptions(e);return this},_setOptions:function(f){var e=this;b.each(f,function(g,h){e._setOption(g,h)});return this},_setOption:function(e,f){this.options[e]=f;if(e==="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(f,g,h){var k=this.options[f];g=b.Event(g);g.type=(f===this.widgetEventPrefix?f:this.widgetEventPrefix+f).toLowerCase();h=h||{};if(g.originalEvent){for(var e=b.event.props.length,j;e;){j=b.event.props[--e];g[j]=g.originalEvent[j]}}this.element.trigger(g,h);return !(b.isFunction(k)&&k.call(this.element[0],g,h)===false||g.isDefaultPrevented())}}})(jQuery);(function(a,b){a.widget("mobile.widget",{_createWidget:function(){a.Widget.prototype._createWidget.apply(this,arguments);this._trigger("init")},_getCreateOptions:function(){var d=this.element,c={};a.each(this.options,function(e){var f=d.jqmData(e.replace(/[A-Z]/g,function(g){return"-"+g.toLowerCase()}));if(f!==b){c[e]=f}});return c},enhanceWithin:function(e){var d=a(e).closest(":jqmData(role='page')").data("page"),c=(d&&d.keepNativeSelector())||"";a(this.options.initSelector,e).not(c)[this.widgetName]()}})})(jQuery);(function(b,d){var c=b(window),a=b("html");b.mobile.media=(function(){var e={},f=b("<div id='jquery-mediatest'>"),g=b("<body>").append(f);return function(j){if(!(j in e)){var h=document.createElement("style"),i="@media "+j+" { #jquery-mediatest { position:absolute; } }";h.type="text/css";if(h.styleSheet){h.styleSheet.cssText=i}else{h.appendChild(document.createTextNode(i))}a.prepend(g).prepend(h);e[j]=f.css("position")==="absolute";g.add(h).remove()}return e[j]}})()})(jQuery);(function(e,c){var d=e("<body>").prependTo("html"),h=d[0].style,j=["Webkit","Moz","O"],k="palmGetResource" in window,i=window.operamini&&({}).toString.call(window.operamini)==="[object OperaMini]",g=window.blackberry;function b(o){var n=o.charAt(0).toUpperCase()+o.substr(1),m=(o+" "+j.join(n+" ")+n).split(" ");for(var l in m){if(h[m[l]]!==c){return true}}}function a(){var p=location.protocol+"//"+location.host+location.pathname+"ui-dir/",o=e("head base"),q=null,l="",n,m;if(!o.length){o=q=e("<base>",{href:p}).appendTo("head")}else{l=o.attr("href")}n=e("<a href='testurl' />").prependTo(d);m=n[0].href;o[0].href=l||location.pathname;if(q){q.remove()}return m.indexOf(p)===0}e.mobile.browser={};e.mobile.browser.ie=(function(){var m=3,n=document.createElement("div"),l=n.all||[];while(n.innerHTML="<!--[if gt IE "+(++m)+"]><br><![endif]-->",l[0]){}return m>4?m:!m})();e.extend(e.support,{orientation:"orientation" in window&&"onorientationchange" in window,touch:"ontouchend" in document,cssTransitions:"WebKitTransitionEvent" in window,pushState:"pushState" in history&&"replaceState" in history,mediaquery:e.mobile.media("only all"),cssPseudoElement:!!b("content"),touchOverflow:!!b("overflowScrolling"),boxShadow:!!b("boxShadow")&&!g,scrollTop:("pageXOffset" in window||"scrollTop" in document.documentElement||"scrollTop" in d[0])&&!k&&!i,dynamicBaseTag:a()});d.remove();var f=(function(){var l=window.navigator.userAgent;return l.indexOf("Nokia")>-1&&(l.indexOf("Symbian/3")>-1||l.indexOf("Series60/5")>-1)&&l.indexOf("AppleWebKit")>-1&&l.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/)})();e.mobile.ajaxBlacklist=window.blackberry&&!window.WebKitPoint||i||f;if(f){e(function(){e("head link[rel='stylesheet']").attr("rel","alternate stylesheet").attr("rel","stylesheet")})}if(!e.support.boxShadow){e("html").addClass("ui-mobile-nosupport-boxshadow")}})(jQuery);(function(w,D,d,l){var C="virtualMouseBindings",b="virtualTouchID",a="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),v="clientX clientY pageX pageY screenX screenY".split(" "),y={},E=0,r=0,q=0,o=false,H=[],f=false,O=false,t="addEventListener" in d,s=w(d),B=1,K=0;w.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};function p(i){while(i&&typeof i.originalEvent!=="undefined"){i=i.originalEvent}return i}function g(Q,R){var Y=Q.type,Z,X,S,P,W,V,U,T;Q=w.Event(Q);Q.type=R;Z=Q.originalEvent;X=w.event.props;if(Z){for(U=X.length,P;U;){P=X[--U];Q[P]=Z[P]}}if(Y.search(/mouse(down|up)|click/)>-1&&!Q.which){Q.which=1}if(Y.search(/^touch/)!==-1){S=p(Z);Y=S.touches;W=S.changedTouches;V=(Y&&Y.length)?Y[0]:((W&&W.length)?W[0]:l);if(V){for(T=0,len=v.length;T<len;T++){P=v[T];Q[P]=V[P]}}}return Q}function M(R){var P={},i,Q;while(R){i=w.data(R,C);for(Q in i){if(i[Q]){P[Q]=P.hasVirtualBinding=true}}R=R.parentNode}return P}function z(Q,P){var i;while(Q){i=w.data(Q,C);if(i&&(!P||i[P])){return Q}Q=Q.parentNode}return null}function F(){O=false}function j(){O=true}function N(){K=0;H.length=0;f=false;j()}function n(){F()}function u(){x();E=setTimeout(function(){E=0;N()},w.vmouse.resetTimerDuration)}function x(){if(E){clearTimeout(E);E=0}}function m(Q,R,i){var P;if((i&&i[Q])||(!i&&z(R.target,Q))){P=g(R,Q);w(R.target).trigger(P)}return P}function h(P){var Q=w.data(P.target,b);if(!f&&(!K||K!==Q)){var i=m("v"+P.type,P);if(i){if(i.isDefaultPrevented()){P.preventDefault()}if(i.isPropagationStopped()){P.stopPropagation()}if(i.isImmediatePropagationStopped()){P.stopImmediatePropagation()}}}}function L(Q){var S=p(Q).touches,R,i;if(S&&S.length===1){R=Q.target;i=M(R);if(i.hasVirtualBinding){K=B++;w.data(R,b,K);x();n();o=false;var P=p(Q).touches[0];r=P.pageX;q=P.pageY;m("vmouseover",Q,i);m("vmousedown",Q,i)}}}function G(i){if(O){return}if(!o){m("vmousecancel",i,M(i.target))}o=true;u()}function c(R){if(O){return}var P=p(R).touches[0],i=o,Q=w.vmouse.moveDistanceThreshold;o=o||(Math.abs(P.pageX-r)>Q||Math.abs(P.pageY-q)>Q),flags=M(R.target);if(o&&!i){m("vmousecancel",R,flags)}m("vmousemove",R,flags);u()}function e(R){if(O){return}j();var i=M(R.target),Q;m("vmouseup",R,i);if(!o){var P=m("vclick",R,i);if(P&&P.isDefaultPrevented()){Q=p(R).changedTouches[0];H.push({touchID:K,x:Q.clientX,y:Q.clientY});f=true}}m("vmouseout",R,i);o=false;u()}function A(P){var Q=w.data(P,C),i;if(Q){for(i in Q){if(Q[i]){return true}}}return false}function J(){}function k(i){var P=i.substr(1);return{setup:function(R,Q){if(!A(this)){w.data(this,C,{})}var S=w.data(this,C);S[i]=true;y[i]=(y[i]||0)+1;if(y[i]===1){s.bind(P,h)}w(this).bind(P,J);if(t){y.touchstart=(y.touchstart||0)+1;if(y.touchstart===1){s.bind("touchstart",L).bind("touchend",e).bind("touchmove",c).bind("scroll",G)}}},teardown:function(R,Q){--y[i];if(!y[i]){s.unbind(P,h)}if(t){--y.touchstart;if(!y.touchstart){s.unbind("touchstart",L).unbind("touchmove",c).unbind("touchend",e).unbind("scroll",G)}}var S=w(this),T=w.data(this,C);if(T){T[i]=false}S.unbind(P,J);if(!A(this)){S.removeData(C)}}}}for(var I=0;I<a.length;I++){w.event.special[a[I]]=k(a[I])}if(t){d.addEventListener("click",function(T){var Q=H.length,U=T.target,W,V,X,S,P,R;if(Q){W=T.clientX;V=T.clientY;threshold=w.vmouse.clickDistanceThreshold;X=U;while(X){for(S=0;S<Q;S++){P=H[S];R=0;if((X===U&&Math.abs(P.x-W)<threshold&&Math.abs(P.y-V)<threshold)||w.data(X,b)===P.touchID){T.preventDefault();T.stopPropagation();return}}X=X.parentNode}}},true)}})(jQuery,window,document);(function(c,h,a){c.each(("touchstart touchmove touchend orientationchange throttledresize tap taphold swipe swipeleft swiperight scrollstart scrollstop").split(" "),function(k,j){c.fn[j]=function(l){return l?this.bind(j,l):this.trigger(j)};c.attrFn[j]=true});var d=c.support.touch,e="touchmove scroll",i=d?"touchstart":"mousedown",g=d?"touchend":"mouseup",b=d?"touchmove":"mousemove";function f(m,j,l){var k=l.type;l.type=j;c.event.handle.call(m,l);l.type=k}c.event.special.scrollstart={enabled:true,setup:function(){var j=this,m=c(j),l,n;function k(o,p){l=p;f(j,l?"scrollstart":"scrollstop",o)}m.bind(e,function(o){if(!c.event.special.scrollstart.enabled){return}if(!l){k(o,true)}clearTimeout(n);n=setTimeout(function(){k(o,false)},50)})}};c.event.special.tap={setup:function(){var j=this,k=c(j);k.bind("vmousedown",function(o){if(o.which&&o.which!==1){return false}var n=o.target,l=o.originalEvent,r;function m(){clearTimeout(r)}function q(){m();k.unbind("vclick",p).unbind("vmouseup",m).unbind("vmousecancel",q)}function p(s){q();if(n==s.target){f(j,"tap",s)}}k.bind("vmousecancel",q).bind("vmouseup",m).bind("vclick",p);r=setTimeout(function(){f(j,"taphold",c.Event("taphold"))},750)})}};c.event.special.swipe={scrollSupressionThreshold:10,durationThreshold:1000,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var j=this,k=c(j);k.bind(i,function(m){var o=m.originalEvent.touches?m.originalEvent.touches[0]:m,p={time:(new Date()).getTime(),coords:[o.pageX,o.pageY],origin:c(m.target)},l;function n(q){if(!p){return}var r=q.originalEvent.touches?q.originalEvent.touches[0]:q;l={time:(new Date()).getTime(),coords:[r.pageX,r.pageY]};if(Math.abs(p.coords[0]-l.coords[0])>c.event.special.swipe.scrollSupressionThreshold){q.preventDefault()}}k.bind(b,n).one(g,function(q){k.unbind(b,n);if(p&&l){if(l.time-p.time<c.event.special.swipe.durationThreshold&&Math.abs(p.coords[0]-l.coords[0])>c.event.special.swipe.horizontalDistanceThreshold&&Math.abs(p.coords[1]-l.coords[1])<c.event.special.swipe.verticalDistanceThreshold){p.origin.trigger("swipe").trigger(p.coords[0]>l.coords[0]?"swipeleft":"swiperight")}}p=l=a})})}};(function(o,m){var p=o(m),j,n,l;o.event.special.orientationchange=j={setup:function(){if(o.support.orientation&&o.mobile.orientationChangeEnabled){return false}l=n();p.bind("throttledresize",k)},teardown:function(){if(o.support.orientation&&o.mobile.orientationChangeEnabled){return false}p.unbind("throttledresize",k)},add:function(q){var r=q.handler;q.handler=function(s){s.orientation=n();return r.apply(this,arguments)}}};function k(){var q=n();if(q!==l){l=q;p.trigger("orientationchange")}}o.event.special.orientationchange.orientation=n=function(){var r=true,q=document.documentElement;if(o.support.orientation){r=m.orientation%180==0}else{r=q&&q.clientWidth/q.clientHeight<1.1}return r?"portrait":"landscape"}})(jQuery,h);(function(){c.event.special.throttledresize={setup:function(){c(this).bind("resize",l)},teardown:function(){c(this).unbind("resize",l)}};var m=250,l=function(){o=(new Date()).getTime();n=o-k;if(n>=m){k=o;c(this).trigger("throttledresize")}else{if(j){clearTimeout(j)}j=setTimeout(l,m-n)}},k=0,j,o,n})();c.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(k,j){c.event.special[k]={setup:function(){c(this).bind(j,c.noop)}}})})(jQuery,this);(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.documentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){r||l(a());n()}).attr("src",r||"javascript:0").insertAfter("body")[0].contentWindow;h.onpropertychange=function(){try{if(event.propertyName==="title"){q.document.title=h.title}}catch(s){}}}};j.stop=k;o=function(){return a(q.location.href)};l=function(v,s){var u=q.document,t=$.fn[c].domain;if(v!==s){u.title=h.title;u.open();t&&u.write('<script>document.domain="'+t+'"<\/script>');u.close();q.location.hash=v}}})();return j})()})(jQuery,this);(function(a,b){a.widget("mobile.page",a.mobile.widget,{options:{theme:"c",domCache:false,keepNativeDefault:":jqmData(role='none'), :jqmData(role='nojs')"},_create:function(){this._trigger("beforecreate");this.element.attr("tabindex","0").addClass("ui-page ui-body-"+this.options.theme)},keepNativeSelector:function(){var c=this.options,d=c.keepNative&&a.trim(c.keepNative);if(d&&c.keepNative!==c.keepNativeDefault){return[c.keepNative,c.keepNativeDefault].join(", ")}return c.keepNativeDefault}})})(jQuery);(function(e,d,f){var c={};e.extend(e.mobile,{ns:"",subPageUrlKey:"ui-page",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",ajaxEnabled:true,hashListeningEnabled:true,linkBindingEnabled:true,defaultPageTransition:"slide",minScrollBack:250,defaultDialogTransition:"pop",loadingMessage:"loading",pageLoadErrorMessage:"Error Loading Page",autoInitializePage:true,pushStateEnabled:true,orientationChangeEnabled:true,gradeA:function(){return e.support.mediaquery||e.mobile.browser.ie&&e.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(g){if(e.type(g)!=="number"){g=e.mobile.defaultHomeScroll}e.event.special.scrollstart.enabled=false;setTimeout(function(){d.scrollTo(0,g);e(document).trigger("silentscroll",{x:0,y:g})},20);setTimeout(function(){e.event.special.scrollstart.enabled=true},150)},nsNormalizeDict:c,nsNormalize:function(g){if(!g){return}return c[g]||(c[g]=e.camelCase(e.mobile.ns+g))},getInheritedTheme:function(k,h){var l=k[0],i="",j=/ui-(bar|body)-([a-z])\b/,n,g;while(l){var n=l.className||"";if((g=j.exec(n))&&(i=g[2])){break}l=l.parentNode}return i||h||"a"}});e.fn.jqmData=function(i,h){var g;if(typeof i!="undefined"){g=this.data(i?e.mobile.nsNormalize(i):i,h)}return g};e.jqmData=function(h,j,i){var g;if(typeof j!="undefined"){g=e.data(h,j?e.mobile.nsNormalize(j):j,i)}return g};e.fn.jqmRemoveData=function(g){return this.removeData(e.mobile.nsNormalize(g))};e.jqmRemoveData=function(g,h){return e.removeData(g,e.mobile.nsNormalize(h))};e.fn.removeWithDependents=function(){e.removeWithDependents(this)};e.removeWithDependents=function(h){var g=e(h);(g.jqmData("dependents")||e()).remove();g.remove()};e.fn.addDependents=function(g){e.addDependents(e(this),g)};e.addDependents=function(g,h){var i=e(g).jqmData("dependents")||e();e(g).jqmData("dependents",e.merge(i,h))};e.fn.getEncodedText=function(){return e("<div/>").text(e(this).text()).html()};var b=e.find,a=/:jqmData\(([^)]*)\)/g;e.find=function(h,j,i,g){h=h.replace(a,"[data-"+(e.mobile.ns||"")+"$1]");return b.call(this,h,j,i,g)};e.extend(e.find,b);e.find.matches=function(g,h){return e.find(g,null,null,h)};e.find.matchesSelector=function(g,h){return e.find(h,null,null,[g]).length>0}})(jQuery,this);(function(h,j){var r=h(window),v=h("html"),o=h("head"),u={urlParseRE:/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,parseUrl:function(F){if(h.type(F)==="object"){return F}var G=u.urlParseRE.exec(F||"")||[];return{href:G[0]||"",hrefNoHash:G[1]||"",hrefNoSearch:G[2]||"",domain:G[3]||"",protocol:G[4]||"",doubleSlash:G[5]||"",authority:G[6]||"",username:G[8]||"",password:G[9]||"",host:G[10]||"",hostname:G[11]||"",port:G[12]||"",pathname:G[13]||"",directory:G[14]||"",filename:G[15]||"",search:G[16]||"",hash:G[17]||""}},makePathAbsolute:function(I,H){if(I&&I.charAt(0)==="/"){return I}I=I||"";H=H?H.replace(/^\/|(\/[^\/]*|[^\/]+)$/g,""):"";var F=H?H.split("/"):[],K=I.split("/");for(var G=0;G<K.length;G++){var J=K[G];switch(J){case".":break;case"..":if(F.length){F.pop()}break;default:F.push(J);break}}return"/"+F.join("/")},isSameDomain:function(G,F){return u.parseUrl(G).domain===u.parseUrl(F).domain},isRelativeUrl:function(F){return u.parseUrl(F).protocol===""},isAbsoluteUrl:function(F){return u.parseUrl(F).protocol!==""},makeUrlAbsolute:function(G,I){if(!u.isRelativeUrl(G)){return G}var K=u.parseUrl(G),N=u.parseUrl(I),O=K.protocol||N.protocol,H=K.protocol?K.doubleSlash:(K.doubleSlash||N.doubleSlash),L=K.authority||N.authority,M=K.pathname!=="",F=u.makePathAbsolute(K.pathname||N.filename,N.pathname),P=K.search||(!M&&N.search)||"",J=K.hash;return O+H+L+F+P+J},addSearchParams:function(G,J){var F=u.parseUrl(G),I=(typeof J==="object")?h.param(J):J,H=F.search||"?";return F.hrefNoSearch+H+(H.charAt(H.length-1)!=="?"?"&":"")+I+(F.hash||"")},convertUrlToDataUrl:function(G){var F=u.parseUrl(G);if(u.isEmbeddedPage(F)){return F.hash.split(D)[0].replace(/^#/,"")}else{if(u.isSameDomain(F,y)){return F.hrefNoHash.replace(y.domain,"")}}return G},get:function(F){if(F===j){F=location.hash}return u.stripHash(F).replace(/[^\/]*\.[^\/*]+$/,"")},getFilePath:function(G){var F="&"+h.mobile.subPageUrlKey;return G&&G.split(F)[0].split(D)[0]},set:function(F){location.hash=F},isPath:function(F){return(/\//).test(F)},clean:function(F){return F.replace(y.domain,"")},stripHash:function(F){return F.replace(/^#/,"")},cleanHash:function(F){return u.stripHash(F.replace(/\?.*$/,"").replace(D,""))},isExternal:function(G){var F=u.parseUrl(G);return F.protocol&&F.domain!==g.domain?true:false},hasProtocol:function(F){return(/^(:?\w+:)/).test(F)},isFirstPageUrl:function(H){var G=u.parseUrl(u.makeUrlAbsolute(H,y)),J=G.hrefNoHash===g.hrefNoHash||(b&&G.hrefNoHash===y.hrefNoHash),F=h.mobile.firstPage,I=F&&F[0]?F[0].id:j;return J&&(!G.hash||G.hash==="#"||(I&&G.hash.replace(/^#/,"")===I))},isEmbeddedPage:function(G){var F=u.parseUrl(G);if(F.protocol!==""){return(F.hash&&(F.hrefNoHash===g.hrefNoHash||(b&&F.hrefNoHash===y.hrefNoHash)))}return(/^#/).test(F.href)}},E=null,f={stack:[],activeIndex:0,getActive:function(){return f.stack[f.activeIndex]},getPrev:function(){return f.stack[f.activeIndex-1]},getNext:function(){return f.stack[f.activeIndex+1]},addNew:function(F,I,H,G,J){if(f.getNext()){f.clearForward()}f.stack.push({url:F,transition:I,title:H,pageUrl:G,role:J});f.activeIndex=f.stack.length-1},clearForward:function(){f.stack=f.stack.slice(0,f.activeIndex+1)},directHashChange:function(I){var F,G,J,H=this.getActive();h.each(f.stack,function(K,L){if(I.currentUrl===L.url){F=K<f.activeIndex;G=!F;J=K}});this.activeIndex=J!==j?J:this.activeIndex;if(F){(I.either||I.isBack)(true)}else{if(G){(I.either||I.isForward)(false)}}},ignoreNextHashChange:false},x="[tabindex],a,button:visible,select:visible,input",q=[],z=false,D="&ui-state=dialog",n=o.children("base"),g=u.parseUrl(location.href),y=n.length?u.parseUrl(u.makeUrlAbsolute(n.attr("href"),g.href)):g,b=(g.hrefNoHash!==y.hrefNoHash);var i=h.support.dynamicBaseTag?{element:(n.length?n:h("<base>",{href:y.hrefNoHash}).prependTo(o)),set:function(F){i.element.attr("href",u.makeUrlAbsolute(F,y))},reset:function(){i.element.attr("href",y.hrefNoHash)}}:j;function m(G){var F=G.find(".ui-title:eq(0)");if(F.length){F.focus()}else{G.focus()}}function B(F){if(!!E&&(!E.closest(".ui-page-active").length||F)){E.removeClass(h.mobile.activeBtnClass)}E=null}function t(){z=false;if(q.length>0){h.mobile.changePage.apply(null,q.pop())}}var p=true,s,e,c,C;e=function(){var F=r,H,G=h.support.touchOverflow&&h.mobile.touchOverflowEnabled;if(G){H=h(".ui-page-active");F=H.is(".ui-native-fixed")?H.find(".ui-content"):H}return F};c=function(G){if(!p){return}var H=h.mobile.urlHistory.getActive();if(H){var F=G&&G.scrollTop();H.lastScroll=F<h.mobile.minScrollBack?h.mobile.defaultHomeScroll:F}};C=function(){setTimeout(c,100,h(this))};r.bind(h.support.pushState?"popstate":"hashchange",function(){p=false});r.one(h.support.pushState?"popstate":"hashchange",function(){p=true});r.one("pagecontainercreate",function(){h.mobile.pageContainer.bind("pagechange",function(){var F=e();p=true;F.unbind("scrollstop",C);F.bind("scrollstop",C)})});e().bind("scrollstop",C);function A(N,H,M,L){var I=h.mobile.urlHistory.getActive(),K=h.support.touchOverflow&&h.mobile.touchOverflowEnabled,J=I.lastScroll||(K?0:h.mobile.defaultHomeScroll),G=l();window.scrollTo(0,h.mobile.defaultHomeScroll);if(H){H.data("page")._trigger("beforehide",null,{nextPage:N})}if(!K){N.height(G+J)}N.data("page")._trigger("beforeshow",null,{prevPage:H||h("")});h.mobile.hidePageLoadingMsg();if(K&&J){N.addClass("ui-mobile-pre-transition");m(N);if(N.is(".ui-native-fixed")){N.find(".ui-content").scrollTop(J)}else{N.scrollTop(J)}}var F=h.mobile.transitionHandlers[M||"none"]||h.mobile.defaultTransitionHandler,O=F(M,L,N,H);O.done(function(){if(!K){N.height("");m(N)}if(!K){h.mobile.silentScroll(J)}if(H){if(!K){H.height("")}H.data("page")._trigger("hide",null,{nextPage:N})}N.data("page")._trigger("show",null,{prevPage:H||h("")})});return O}function l(){var H=h.event.special.orientationchange.orientation(),G=H==="portrait",I=G?480:320,K=G?screen.availHeight:screen.availWidth,F=Math.max(I,h(window).height()),J=Math.min(K,F);return J}h.mobile.getScreenHeight=l;function a(){if(h.support.touchOverflow&&h.mobile.touchOverflowEnabled){return}h("."+h.mobile.activePageClass).css("min-height",l())}function w(F,G){if(G){F.attr("data-"+h.mobile.ns+"role",G)}F.page()}h.fn.animationComplete=function(F){if(h.support.cssTransitions){return h(this).one("webkitAnimationEnd",F)}else{setTimeout(F,0);return h(this)}};h.mobile.path=u;h.mobile.base=i;h.mobile.urlHistory=f;h.mobile.dialogHashKey=D;h.mobile.noneTransitionHandler=function(G,F,I,H){if(H){H.removeClass(h.mobile.activePageClass)}I.addClass(h.mobile.activePageClass);return h.Deferred().resolve(G,F,I,H).promise()};h.mobile.defaultTransitionHandler=h.mobile.noneTransitionHandler;h.mobile.transitionHandlers={none:h.mobile.defaultTransitionHandler};h.mobile.allowCrossDomainPages=false;h.mobile.getDocumentUrl=function(F){return F?h.extend({},g):g.href};h.mobile.getDocumentBase=function(F){return F?h.extend({},y):y.href};h.mobile._bindPageRemove=function(){var F=h(this);if(!F.data("page").options.domCache&&F.is(":jqmData(external-page='true')")){F.bind("pagehide.remove",function(){var H=h(this),G=new h.Event("pageremove");H.trigger(G);if(!G.isDefaultPrevented()){H.removeWithDependents()}})}};h.mobile.loadPage=function(G,T){var S=h.Deferred(),H=h.extend({},h.mobile.loadPage.defaults,T),L=null,Q=null,K=function(){var U=(h.mobile.activePage&&d(h.mobile.activePage));return U||y.hrefNoHash},I=u.makeUrlAbsolute(G,K());if(H.data&&H.type==="get"){I=u.addSearchParams(I,H.data);H.data=j}if(H.data&&H.type==="post"){H.reloadPage=true}var P=u.getFilePath(I),M=u.convertUrlToDataUrl(I);H.pageContainer=H.pageContainer||h.mobile.pageContainer;L=H.pageContainer.children(":jqmData(url='"+M.replace(/\'/g,"%27").replace(/\)/g,"%29")+"')");if(L.length===0&&M&&!u.isPath(M)){L=H.pageContainer.children("#"+M).attr("data-"+h.mobile.ns+"url",M)}if(L.length===0){if(h.mobile.firstPage&&u.isFirstPageUrl(P)){if(h.mobile.firstPage.parent().length){L=h(h.mobile.firstPage)}}else{if(u.isEmbeddedPage(P)){S.reject(I,T);return S.promise()}}}if(i){i.reset()}if(L.length){if(!H.reloadPage){w(L,H.role);S.resolve(I,T,L);return S.promise()}Q=L}var J=H.pageContainer,R=new h.Event("pagebeforeload"),F={url:G,absUrl:I,dataUrl:M,deferred:S,options:H};J.trigger(R,F);if(R.isDefaultPrevented()){return S.promise()}if(H.showLoadMsg){var O=setTimeout(function(){h.mobile.showPageLoadingMsg()},H.loadMsgDelay),N=function(){clearTimeout(O);h.mobile.hidePageLoadingMsg()}}if(!(h.mobile.allowCrossDomainPages||u.isSameDomain(g,I))){S.reject(I,T)}else{h.ajax({url:P,type:H.type,data:H.data,dataType:"html",success:function(W,ab,aa){var X=h("<div></div>"),U=W.match(/<title[^>]*>([^<]*)/)&&RegExp.$1,Z=new RegExp("(<[^>]+\\bdata-"+h.mobile.ns+"role=[\"']?page[\"']?[^>]*>)"),V=new RegExp("\\bdata-"+h.mobile.ns+"url=[\"']?([^\"'>]*)[\"']?");if(Z.test(W)&&RegExp.$1&&V.test(RegExp.$1)&&RegExp.$1){G=P=u.getFilePath(RegExp.$1)}if(i){i.set(P)}X.get(0).innerHTML=W;L=X.find(":jqmData(role='page'), :jqmData(role='dialog')").first();if(!L.length){L=h("<div data-"+h.mobile.ns+"role='page'>"+W.split(/<\/?body[^>]*>/gmi)[1]+"</div>")}if(U&&!L.jqmData("title")){if(~U.indexOf("&")){U=h("<div>"+U+"</div>").text()}L.jqmData("title",U)}if(!h.support.dynamicBaseTag){var Y=u.get(P);L.find("[src], link[href], a[rel='external'], :jqmData(ajax='false'), a[target]").each(function(){var ad=h(this).is("[href]")?"href":h(this).is("[src]")?"src":"action",ac=h(this).attr(ad);ac=ac.replace(location.protocol+"//"+location.host+location.pathname,"");if(!/^(\w+:|#|\/)/.test(ac)){h(this).attr(ad,Y+ac)}})}L.attr("data-"+h.mobile.ns+"url",u.convertUrlToDataUrl(P)).attr("data-"+h.mobile.ns+"external-page",true).appendTo(H.pageContainer);L.one("pagecreate",h.mobile._bindPageRemove);w(L,H.role);if(I.indexOf("&"+h.mobile.subPageUrlKey)>-1){L=H.pageContainer.children(":jqmData(url='"+M+"')")}if(H.showLoadMsg){N()}F.xhr=aa;F.textStatus=ab;F.page=L;H.pageContainer.trigger("pageload",F);S.resolve(I,T,L,Q)},error:function(W,X,U){if(i){i.set(u.get())}F.xhr=W;F.textStatus=X;F.errorThrown=U;var V=new h.Event("pageloadfailed");H.pageContainer.trigger(V,F);if(V.isDefaultPrevented()){return}if(H.showLoadMsg){N();h("<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h1>"+h.mobile.pageLoadErrorMessage+"</h1></div>").css({display:"block",opacity:0.96,top:r.scrollTop()+100}).appendTo(H.pageContainer).delay(800).fadeOut(400,function(){h(this).remove()})}S.reject(I,T)}})}return S.promise()};h.mobile.loadPage.defaults={type:"get",data:j,reloadPage:false,role:j,showLoadMsg:false,pageContainer:j,loadMsgDelay:50};h.mobile.changePage=function(T,V){if(z){q.unshift(arguments);return}var N=h.extend({},h.mobile.changePage.defaults,V);N.pageContainer=N.pageContainer||h.mobile.pageContainer;N.fromPage=N.fromPage||h.mobile.activePage;var P=N.pageContainer,J=new h.Event("pagebeforechange"),F={toPage:T,options:N};P.trigger(J,F);if(J.isDefaultPrevented()){return}T=F.toPage;z=true;if(typeof T=="string"){h.mobile.loadPage(T,N).done(function(Y,X,Z,W){z=false;X.duplicateCachedPage=W;h.mobile.changePage(Z,X)}).fail(function(X,W){z=false;B(true);t();N.pageContainer.trigger("pagechangefailed",F)});return}if(T[0]===h.mobile.firstPage[0]&&!N.dataUrl){N.dataUrl=g.hrefNoHash}var H=N.fromPage,G=(N.dataUrl&&u.convertUrlToDataUrl(N.dataUrl))||T.jqmData("url"),M=G,S=u.getFilePath(G),L=f.getActive(),U=f.activeIndex===0,I=0,Q=document.title,K=N.role==="dialog"||T.jqmData("role")==="dialog";if(H&&H[0]===T[0]&&!N.allowSamePageTransition){z=false;P.trigger("pagechange",F);return}w(T,N.role);if(N.fromHashChange){f.directHashChange({currentUrl:G,isBack:function(){I=-1},isForward:function(){I=1}})}try{if(document.activeElement&&document.activeElement.nodeName.toLowerCase()!="body"){h(document.activeElement).blur()}else{h("input:focus, textarea:focus, select:focus").blur()}}catch(R){}if(K&&L){G=(L.url||"")+D}if(N.changeHash!==false&&G){f.ignoreNextHashChange=true;u.set(G)}var O=(!L)?Q:T.jqmData("title")||T.children(":jqmData(role='header')").find(".ui-title").getEncodedText();if(!!O&&Q==document.title){Q=O}if(!T.jqmData("title")){T.jqmData("title",Q)}N.transition=N.transition||((I&&!U)?L.transition:j)||(K?h.mobile.defaultDialogTransition:h.mobile.defaultPageTransition);if(!I){f.addNew(G,N.transition,Q,M,N.role)}document.title=f.getActive().title;h.mobile.activePage=T;N.reverse=N.reverse||I<0;A(T,H,N.transition,N.reverse).done(function(){B();if(N.duplicateCachedPage){N.duplicateCachedPage.remove()}v.removeClass("ui-mobile-rendering");t();P.trigger("pagechange",F)})};h.mobile.changePage.defaults={transition:j,reverse:false,changeHash:true,fromHashChange:false,role:j,duplicateCachedPage:j,pageContainer:j,showLoadMsg:true,dataUrl:j,fromPage:j,allowSamePageTransition:false};function k(F){while(F){if((typeof F.nodeName==="string")&&F.nodeName.toLowerCase()=="a"){break}F=F.parentNode}return F}function d(H){var F=h(H).closest(".ui-page").jqmData("url"),G=y.hrefNoHash;if(!F||!u.isPath(F)){F=G}return u.makeUrlAbsolute(F,G)}h.mobile._registerInternalEvents=function(){h("form").live("submit",function(H){var J=h(this);if(!h.mobile.ajaxEnabled||J.is(":jqmData(ajax='false')")){return}var G=J.attr("method"),I=J.attr("target"),F=J.attr("action");if(!F){F=d(J);if(F===y.hrefNoHash){F=g.hrefNoSearch}}F=u.makeUrlAbsolute(F,d(J));if(u.isExternal(F)||I){return}h.mobile.changePage(F,{type:G&&G.length&&G.toLowerCase()||"get",data:J.serialize(),transition:J.jqmData("transition"),direction:J.jqmData("direction"),reloadPage:true});H.preventDefault()});h(document).bind("vclick",function(G){if(G.which>1||!h.mobile.linkBindingEnabled){return}var F=k(G.target);if(F){if(u.parseUrl(F.getAttribute("href")||"#").hash!=="#"){B(true);E=h(F).closest(".ui-btn").not(".ui-disabled");E.addClass(h.mobile.activeBtnClass);h("."+h.mobile.activePageClass+" .ui-btn").not(F).blur()}}});h(document).bind("click",function(G){if(!h.mobile.linkBindingEnabled){return}var Q=k(G.target);if(!Q||G.which>1){return}var N=h(Q),J=function(){window.setTimeout(function(){B(true)},200)};if(N.is(":jqmData(rel='back')")){window.history.back();return false}var M=d(N),H=u.makeUrlAbsolute(N.attr("href")||"#",M);if(!h.mobile.ajaxEnabled&&!u.isEmbeddedPage(H)){J();return}if(H.search("#")!=-1){H=H.replace(/[^#]*#/,"");if(!H){G.preventDefault();return}else{if(u.isPath(H)){H=u.makeUrlAbsolute(H,M)}else{H=u.makeUrlAbsolute("#"+H,g.hrefNoHash)}}}var I=N.is("[rel='external']")||N.is(":jqmData(ajax='false')")||N.is("[target]"),P=(h.mobile.allowCrossDomainPages&&g.protocol==="file:"&&H.search(/^https?:/)!=-1),F=I||(u.isExternal(H)&&!P);if(F){J();return}var O=N.jqmData("transition"),R=N.jqmData("direction"),L=(R&&R==="reverse")||N.jqmData("back"),K=N.attr("data-"+h.mobile.ns+"rel")||j;h.mobile.changePage(H,{transition:O,reverse:L,role:K});G.preventDefault()});h(".ui-page").live("pageshow.prefetch",function(){var F=[];h(this).find("a:jqmData(prefetch)").each(function(){var G=h(this),H=G.attr("href");if(H&&h.inArray(H,F)===-1){F.push(H);h.mobile.loadPage(H,{role:G.attr("data-"+h.mobile.ns+"rel")})}})});h.mobile._handleHashChange=function(G){var I=u.stripHash(G),H=h.mobile.urlHistory.stack.length===0?"none":j,F={transition:H,changeHash:false,fromHashChange:true};if(!h.mobile.hashListeningEnabled||f.ignoreNextHashChange){f.ignoreNextHashChange=false;return}if(f.stack.length>1&&I.indexOf(D)>-1){if(!h.mobile.activePage.is(".ui-dialog")){f.directHashChange({currentUrl:I,isBack:function(){window.history.back()},isForward:function(){window.history.forward()}});return}else{f.directHashChange({currentUrl:I,either:function(J){var K=h.mobile.urlHistory.getActive();I=K.pageUrl;h.extend(F,{role:K.role,transition:K.transition,reverse:J})}})}}if(I){I=(typeof I==="string"&&!u.isPath(I))?(u.makeUrlAbsolute("#"+I,y)):I;h.mobile.changePage(I,F)}else{h.mobile.changePage(h.mobile.firstPage,F)}};r.bind("hashchange",function(G,F){h.mobile._handleHashChange(location.hash)});h(document).bind("pageshow",a);h(window).bind("throttledresize",a)}})(jQuery);(function(e,d){var c={},a=c,f=e(d),b=e.mobile.path.parseUrl(location.href);e.extend(c,{initialFilePath:(function(){return b.pathname+b.search})(),initialHref:b.hrefNoHash,hashchangeFired:false,state:function(){return{hash:location.hash||"#"+a.initialFilePath,title:document.title,initialHref:a.initialHref}},resetUIKeys:function(h){var i=e.mobile.dialogHashKey,g="&"+e.mobile.subPageUrlKey,j=h.indexOf(i);if(j>-1){h=h.slice(0,j)+"#"+h.slice(j)}else{if(h.indexOf(g)>-1){h=h.split(g).join("#"+g)}}return h},nextHashChangePrevented:function(g){e.mobile.urlHistory.ignoreNextHashChange=g;a.onHashChangeDisabled=g},onHashChange:function(k){if(a.onHashChangeDisabled){return}var g,h,j=location.hash,l=e.mobile.path.isPath(j),i=l?location.href:e.mobile.getDocumentUrl();j=l?j.replace("#",""):j;h=a.state();g=e.mobile.path.makeUrlAbsolute(j,i);if(l){g=a.resetUIKeys(g)}history.replaceState(h,document.title,g)},onPopState:function(h){var g=h.originalEvent.state,i=false;if(g){a.nextHashChangePrevented(true);setTimeout(function(){a.nextHashChangePrevented(false);e.mobile._handleHashChange(g.hash)},100)}},init:function(){f.bind("hashchange",a.onHashChange);f.bind("popstate",a.onPopState);if(location.hash===""){history.replaceState(a.state(),document.title,location.href)}}});e(function(){if(e.mobile.pushStateEnabled&&e.support.pushState){c.init()}})})(jQuery,this);(function(c,b,d){function a(h,g,l,j){var e=new c.Deferred(),i=g?" reverse":"",f="ui-mobile-viewport-transitioning viewport-"+h,k=function(){l.add(j).removeClass("out in reverse "+h);if(j&&j[0]!==l[0]){j.removeClass(c.mobile.activePageClass)}l.parent().removeClass(f);e.resolve(h,g,l,j)};l.animationComplete(k);l.parent().addClass(f);if(j){j.addClass(h+" out"+i)}l.addClass(c.mobile.activePageClass+" "+h+" in"+i);return e.promise()}c.mobile.css3TransitionHandler=a;if(c.mobile.defaultTransitionHandler===c.mobile.noneTransitionHandler){c.mobile.defaultTransitionHandler=a}})(jQuery,this);(function(a,b){a.mobile.page.prototype.options.degradeInputs={color:false,date:false,datetime:false,"datetime-local":false,email:false,month:false,number:false,range:"number",search:"text",tel:false,time:false,url:false,week:false};a(document).bind("pagecreate create",function(f){var d=a(f.target).closest(':jqmData(role="page")').data("page"),c;if(!d){return}c=d.options;a(f.target).find("input").not(d.keepNativeSelector()).each(function(){var l=a(this),k=this.getAttribute("type"),g=c.degradeInputs[k]||"text";if(c.degradeInputs[k]){var j=a("<div>").html(l.clone()).html(),e=j.indexOf(" type=")>-1,i=e?/\s+type=["']?\w+['"]?/:/\/?>/,h=' type="'+g+'" data-'+a.mobile.ns+'type="'+k+'"'+(e?"":">");l.replaceWith(j.replace(i,h))}})})})(jQuery);(function(b,a,c){b.widget("mobile.dialog",b.mobile.widget,{options:{closeBtnText:"Close",overlayTheme:"a",initSelector:":jqmData(role='dialog')"},_create:function(){var e=this,f=this.element,d=b("<a href='#' data-"+b.mobile.ns+"icon='delete' data-"+b.mobile.ns+"iconpos='notext'>"+this.options.closeBtnText+"</a>");f.addClass("ui-overlay-"+this.options.overlayTheme);f.attr("role","dialog").addClass("ui-dialog").find(":jqmData(role='header')").addClass("ui-corner-top ui-overlay-shadow").prepend(d).end().find(":jqmData(role='content'),:jqmData(role='footer')").addClass("ui-overlay-shadow").last().addClass("ui-corner-bottom");d.bind("vclick",function(){e.close()});f.bind("vclick submit",function(h){var g=b(h.target).closest(h.type==="vclick"?"a":"form"),i;if(g.length&&!g.jqmData("transition")){i=b.mobile.urlHistory.getActive()||{};g.attr("data-"+b.mobile.ns+"transition",(i.transition||b.mobile.defaultDialogTransition)).attr("data-"+b.mobile.ns+"direction","reverse")}}).bind("pagehide",function(){b(this).find("."+b.mobile.activeBtnClass).removeClass(b.mobile.activeBtnClass)})},close:function(){a.history.back()}});b(b.mobile.dialog.prototype.options.initSelector).live("pagecreate",function(){b(this).dialog()})})(jQuery,this);(function(a,b){a.mobile.page.prototype.options.backBtnText="Back";a.mobile.page.prototype.options.addBackBtn=false;a.mobile.page.prototype.options.backBtnTheme=null;a.mobile.page.prototype.options.headerTheme="a";a.mobile.page.prototype.options.footerTheme="a";a.mobile.page.prototype.options.contentTheme=null;a(":jqmData(role='page'), :jqmData(role='dialog')").live("pagecreate",function(g){var c=a(this),h=c.data("page").options,f=c.jqmData("role"),d=h.theme;a(":jqmData(role='header'), :jqmData(role='footer'), :jqmData(role='content')",this).each(function(){var m=a(this),i=m.jqmData("role"),j=m.jqmData("theme"),e=j||h.contentTheme||(f==="dialog"&&d),l,n,p,k;m.addClass("ui-"+i);if(i==="header"||i==="footer"){var o=j||(i==="header"?h.headerTheme:h.footerTheme)||d;m.addClass("ui-bar-"+o).attr("role",i==="header"?"banner":"contentinfo");l=m.children("a");n=l.hasClass("ui-btn-left");p=l.hasClass("ui-btn-right");n=n||l.eq(0).not(".ui-btn-right").addClass("ui-btn-left").length;p=p||l.eq(1).addClass("ui-btn-right").length;if(h.addBackBtn&&i==="header"&&a(".ui-page").length>1&&m.jqmData("url")!==a.mobile.path.stripHash(location.hash)&&!n){k=a("<a href='#' class='ui-btn-left' data-"+a.mobile.ns+"rel='back' data-"+a.mobile.ns+"icon='arrow-l'>"+h.backBtnText+"</a>").attr("data-"+a.mobile.ns+"theme",h.backBtnTheme||o).prependTo(m)}m.children("h1, h2, h3, h4, h5, h6").addClass("ui-title").attr({tabindex:"0",role:"heading","aria-level":"1"})}else{if(i==="content"){if(e){m.addClass("ui-body-"+(e))}m.attr("role","main")}}})})})(jQuery);(function(a,b){a.widget("mobile.collapsible",a.mobile.widget,{options:{expandCueText:" click to expand contents",collapseCueText:" click to collapse contents",collapsed:true,heading:"h1,h2,h3,h4,h5,h6,legend",theme:null,contentTheme:null,iconTheme:"d",initSelector:":jqmData(role='collapsible')"},_create:function(){var e=this.element,h=this.options,f=e.addClass("ui-collapsible"),c=e.children(h.heading).first(),i=f.wrapInner("<div class='ui-collapsible-content'></div>").find(".ui-collapsible-content"),d=e.closest(":jqmData(role='collapsible-set')").addClass("ui-collapsible-set"),g=d.children(":jqmData(role='collapsible')");if(c.is("legend")){c=a("<div role='heading'>"+c.html()+"</div>").insertBefore(c);c.next().remove()}if(d.length){if(!h.theme){h.theme=d.jqmData("theme")}if(!h.contentTheme){h.contentTheme=d.jqmData("content-theme")}}i.addClass((h.contentTheme)?("ui-body-"+h.contentTheme):"");c.insertBefore(i).addClass("ui-collapsible-heading").append("<span class='ui-collapsible-heading-status'></span>").wrapInner("<a href='#' class='ui-collapsible-heading-toggle'></a>").find("a").first().buttonMarkup({shadow:false,corners:false,iconPos:"left",icon:"plus",theme:h.theme});if(!d.length){c.find("a").first().add(c.find(".ui-btn-inner")).addClass("ui-corner-top ui-corner-bottom")}else{if(!d.jqmData("collapsiblebound")){d.jqmData("collapsiblebound",true).bind("expand",function(j){a(j.target).closest(".ui-collapsible").siblings(".ui-collapsible").trigger("collapse")})}g.first().find("a").first().addClass("ui-corner-top").find(".ui-btn-inner").addClass("ui-corner-top");g.last().jqmData("collapsible-last",true).find("a").first().addClass("ui-corner-bottom").find(".ui-btn-inner").addClass("ui-corner-bottom");if(f.jqmData("collapsible-last")){c.find("a").first().add(c.find(".ui-btn-inner")).addClass("ui-corner-bottom")}}f.bind("expand collapse",function(k){if(!k.isDefaultPrevented()){k.preventDefault();var m=a(this),l=(k.type==="collapse"),j=h.contentTheme;c.toggleClass("ui-collapsible-heading-collapsed",l).find(".ui-collapsible-heading-status").text(l?h.expandCueText:h.collapseCueText).end().find(".ui-icon").toggleClass("ui-icon-minus",!l).toggleClass("ui-icon-plus",l);m.toggleClass("ui-collapsible-collapsed",l);i.toggleClass("ui-collapsible-content-collapsed",l).attr("aria-hidden",l);if(j&&(!d.length||f.jqmData("collapsible-last"))){c.find("a").first().add(c.find(".ui-btn-inner")).toggleClass("ui-corner-bottom",l);i.toggleClass("ui-corner-bottom",!l)}i.trigger("updatelayout")}}).trigger(h.collapsed?"collapse":"expand");c.bind("click",function(k){var j=c.is(".ui-collapsible-heading-collapsed")?"expand":"collapse";f.trigger(j);k.preventDefault()})}});a(document).bind("pagecreate create",function(c){a(a.mobile.collapsible.prototype.options.initSelector,c.target).collapsible()})})(jQuery);(function(a,b){a.fn.fieldcontain=function(c){return this.addClass("ui-field-contain ui-body ui-br")};a(document).bind("pagecreate create",function(c){a(":jqmData(role='fieldcontain')",c.target).fieldcontain()})})(jQuery);(function(a,b){a.fn.grid=function(c){return this.each(function(){var h=a(this),i=a.extend({grid:null},c),j=h.children(),f={solo:1,a:2,b:3,c:4,d:5},d=i.grid,e;if(!d){if(j.length<=5){for(var g in f){if(f[g]===j.length){d=g}}}else{d="a"}}e=f[d];h.addClass("ui-grid-"+d);j.filter(":nth-child("+e+"n+1)").addClass("ui-block-a");if(e>1){j.filter(":nth-child("+e+"n+2)").addClass("ui-block-b")}if(e>2){j.filter(":nth-child(3n+3)").addClass("ui-block-c")}if(e>3){j.filter(":nth-child(4n+4)").addClass("ui-block-d")}if(e>4){j.filter(":nth-child(5n+5)").addClass("ui-block-e")}})}})(jQuery);(function(a,b){a.widget("mobile.navbar",a.mobile.widget,{options:{iconpos:"top",grid:null,initSelector:":jqmData(role='navbar')"},_create:function(){var e=this.element,c=e.find("a"),d=c.filter(":jqmData(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","vclick",function(f){c.not(".ui-state-persist").removeClass(a.mobile.activeBtnClass);a(this).addClass(a.mobile.activeBtnClass)})}});a(document).bind("pagecreate create",function(c){a(a.mobile.navbar.prototype.options.initSelector,c.target).navbar()})})(jQuery);(function(a,c){var b={};a.widget("mobile.listview",a.mobile.widget,{options:{theme:null,countTheme:"c",headerTheme:"b",dividerTheme:"b",splitIcon:"arrow-r",splitTheme:"b",inset:false,initSelector:":jqmData(role='listview')"},_create:function(){var d=this;d.element.addClass(function(e,f){return f+" ui-listview "+(d.options.inset?" ui-listview-inset ui-corner-all ui-shadow ":"")});d.refresh(true)},_removeCorners:function(d,f){var e="ui-corner-top ui-corner-tr ui-corner-tl",g="ui-corner-bottom ui-corner-br ui-corner-bl";d=d.add(d.find(".ui-btn-inner, .ui-li-link-alt, .ui-li-thumb"));if(f==="top"){d.removeClass(e)}else{if(f==="bottom"){d.removeClass(g)}else{d.removeClass(e+" "+g)}}},_refreshCorners:function(f){var h,e,d,g;if(this.options.inset){h=this.element.children("li");e=f?h.not(".ui-screen-hidden"):h.filter(":visible");this._removeCorners(h);d=e.first().addClass("ui-corner-top");d.add(d.find(".ui-btn-inner").not(".ui-li-link-alt span:first-child")).addClass("ui-corner-top").end().find(".ui-li-link-alt, .ui-li-link-alt span:first-child").addClass("ui-corner-tr").end().find(".ui-li-thumb").not(".ui-li-icon").addClass("ui-corner-tl");g=e.last().addClass("ui-corner-bottom");g.add(g.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-br").end().find(".ui-li-thumb").not(".ui-li-icon").addClass("ui-corner-bl")}if(!f){this.element.trigger("updatelayout")}},_findFirstElementByTagName:function(g,e,d,f){var h={};h[d]=h[f]=true;while(g){if(h[g.nodeName]){return g}g=g[e]}return null},_getChildrenByTagName:function(g,e,f){var d=[],h={};h[e]=h[f]=true;g=g.firstChild;while(g){if(h[g.nodeName]){d.push(g)}g=g.nextSibling}return a(d)},_addThumbClasses:function(g){var f,e,d=g.length;for(f=0;f<d;f++){e=a(this._findFirstElementByTagName(g[f].firstChild,"nextSibling","img","IMG"));if(e.length){e.addClass("ui-li-thumb");a(this._findFirstElementByTagName(e[0].parentNode,"parentNode","li","LI")).addClass(e.is(".ui-li-icon")?"ui-li-has-icon":"ui-li-has-thumb")}}},refresh:function(q){this.parentPage=this.element.closest(".ui-page");this._createSubPages();var u=this.options,d=this.element,t=this,y=d.jqmData("dividertheme")||u.dividerTheme,r=d.jqmData("splittheme"),i=d.jqmData("spliticon"),s=this._getChildrenByTagName(d[0],"li","LI"),m=a.support.cssPseudoElement||!a.nodeName(d[0],"ol")?0:1,p={},w,e,n,x,l,h,f,v,j,z;if(m){d.find(".ui-li-dec").remove()}if(!u.theme){u.theme=a.mobile.getInheritedTheme(this.element,"c")}for(var k=0,g=s.length;k<g;k++){w=s.eq(k);e="ui-li";if(q||!w.hasClass("ui-li")){n=w.jqmData("theme")||u.theme;x=this._getChildrenByTagName(w[0],"a","A");if(x.length){v=w.jqmData("icon");w.buttonMarkup({wrapperEls:"div",shadow:false,corners:false,iconpos:"right",icon:x.length>1||v===false?false:v||"arrow-r",theme:n});if((v!=false)&&(x.length==1)){w.addClass("ui-li-has-arrow")}x.first().addClass("ui-link-inherit");if(x.length>1){e+=" ui-li-has-alt";l=x.last();h=r||l.jqmData("theme")||u.splitTheme;l.appendTo(w).attr("title",l.getEncodedText()).addClass("ui-li-link-alt").empty().buttonMarkup({shadow:false,corners:false,theme:n,icon:false,iconpos:false}).find(".ui-btn-inner").append(a(document.createElement("span")).buttonMarkup({shadow:true,corners:true,theme:h,iconpos:"notext",icon:i||l.jqmData("icon")||u.splitIcon}))}}else{if(w.jqmData("role")==="list-divider"){e+=" ui-li-divider ui-btn ui-bar-"+y;w.attr("role","heading");if(m){m=1}}else{e+=" ui-li-static ui-body-"+n}}}if(m&&e.indexOf("ui-li-divider")<0){f=w.is(".ui-li-static:first")?w:w.find(".ui-link-inherit");f.addClass("ui-li-jsnumbering").prepend("<span class='ui-li-dec'>"+(m++)+". </span>")}if(!p[e]){p[e]=[]}p[e].push(w[0])}for(e in p){a(p[e]).addClass(e).children(".ui-btn-inner").addClass(e)}d.find("h1, h2, h3, h4, h5, h6").addClass("ui-li-heading").end().find("p, dl").addClass("ui-li-desc").end().find(".ui-li-aside").each(function(){var o=a(this);o.prependTo(o.parent())}).end().find(".ui-li-count").each(function(){a(this).closest("li").addClass("ui-li-has-count")}).addClass("ui-btn-up-"+(d.jqmData("counttheme")||this.options.countTheme)+" ui-btn-corner-all");this._addThumbClasses(s);this._addThumbClasses(d.find(".ui-link-inherit"));this._refreshCorners(q)},_idStringEscape:function(d){return d.replace(/[^a-zA-Z0-9]/g,"-")},_createSubPages:function(){var l=this.element,m=l.closest(".ui-page"),e=m.jqmData("url"),h=e||m[0][a.expando],f=l.attr("id"),g=this.options,i="data-"+a.mobile.ns,n=this,k=m.find(":jqmData(role='footer')").jqmData("id"),d;if(typeof b[h]==="undefined"){b[h]=-1}f=f||++b[h];a(l.find("li>ul, li>ol").toArray().reverse()).each(function(t){var y=this,v=a(this),u=v.attr("id")||f+"-"+t,x=v.parent(),z=a(v.prevAll().toArray().reverse()),z=z.length?z:a("<span>"+a.trim(x.contents()[0].nodeValue)+"</span>"),w=z.first().getEncodedText(),o=(e||"")+"&"+a.mobile.subPageUrlKey+"="+u,s=v.jqmData("theme")||g.theme,p=v.jqmData("counttheme")||l.jqmData("counttheme")||g.countTheme,q,r;d=true;q=v.detach().wrap("<div "+i+"role='page' "+i+"url='"+o+"' "+i+"theme='"+s+"' "+i+"count-theme='"+p+"'><div "+i+"role='content'></div></div>").parent().before("<div "+i+"role='header' "+i+"theme='"+g.headerTheme+"'><div class='ui-title'>"+w+"</div></div>").after(k?a("<div "+i+"role='footer' "+i+"id='"+k+"'>"):"").parent().appendTo(a.mobile.pageContainer);q.page();r=x.find("a:first");if(!r.length){r=a("<a/>").html(z||w).prependTo(x.empty())}r.attr("href","#"+o)}).listview();if(d&&m.is(":jqmData(external-page='true')")&&m.data("page").options.domCache===false){var j=function(r,q){var o=q.nextPage,p;if(q.nextPage){p=o.jqmData("url");if(p.indexOf(e+"&"+a.mobile.subPageUrlKey)!==0){n.childPages().remove();m.remove()}}};m.unbind("pagehide.remove").bind("pagehide.remove",j)}},childPages:function(){var d=this.parentPage.jqmData("url");return a(":jqmData(url^='"+d+"&"+a.mobile.subPageUrlKey+"')")}});a(document).bind("pagecreate create",function(d){a(a.mobile.listview.prototype.options.initSelector,d.target).listview()})})(jQuery);(function(a,b){a.mobile.listview.prototype.options.filter=false;a.mobile.listview.prototype.options.filterPlaceholder="Filter items...";a.mobile.listview.prototype.options.filterTheme="c";a.mobile.listview.prototype.options.filterCallback=function(d,c){return d.toLowerCase().indexOf(c)===-1};a(":jqmData(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-"+d.options.filterTheme,role:"search"}),c=a("<input>",{placeholder:d.options.filterPlaceholder}).attr("data-"+a.mobile.ns+"type","search").jqmData("lastval","").bind("keyup change",function(){var n=a(this),h=this.value.toLowerCase(),j=null,g=n.jqmData("lastval")+"",l=false,m="",p,o;n.jqmData("lastval",h);o=h.substr(0,g.length-1).replace(g,"");if(h.length<g.length||o.length!=(h.length-g.length)){j=e.children()}else{j=e.children(":not(.ui-screen-hidden)")}if(h){for(var k=j.length-1;k>=0;k--){p=a(j[k]);m=p.jqmData("filtertext")||p.text();if(p.is("li:jqmData(role=list-divider)")){p.toggleClass("ui-filter-hidequeue",!l);l=false}else{if(d.options.filterCallback(m,h)){p.toggleClass("ui-filter-hidequeue",true)}else{l=true}}}j.filter(":not(.ui-filter-hidequeue)").toggleClass("ui-screen-hidden",false);j.filter(".ui-filter-hidequeue").toggleClass("ui-screen-hidden",true).toggleClass("ui-filter-hidequeue",false)}else{j.toggleClass("ui-screen-hidden",false)}d._refreshCorners()}).appendTo(f).textinput();if(a(this).jqmData("inset")){f.addClass("ui-listview-filter-inset")}f.bind("submit",function(){return false}).insertBefore(e)})})(jQuery);(function(a,b){a(document).bind("pagecreate create",function(c){a(":jqmData(role='nojs')",c.target).addClass("ui-nojs")})})(jQuery);(function(a,b){a.widget("mobile.checkboxradio",a.mobile.widget,{options:{theme:null,initSelector:"input[type='checkbox'],input[type='radio']"},_create:function(){var n=this,j=this.element,i=j.closest("form,fieldset,:jqmData(role='page')").find("label[for='"+j[0].id+"']"),k=j.attr("type"),m=k+"-on",l=k+"-off",g=j.parents(":jqmData(type='horizontal')").length?b:l,d=g?"":" "+a.mobile.activeBtnClass,f="ui-"+m+d,e="ui-"+l,h="ui-icon-"+m,c="ui-icon-"+l;if(k!=="checkbox"&&k!=="radio"){return}a.extend(this,{label:i,inputtype:k,checkedClass:f,uncheckedClass:e,checkedicon:h,uncheckedicon:c});if(!this.options.theme){this.options.theme=this.element.jqmData("theme")}i.buttonMarkup({theme:this.options.theme,icon:g,shadow:false});j.add(i).wrapAll("<div class='ui-"+k+"'></div>");i.bind({vmouseover:function(o){if(a(this).parent().is(".ui-disabled")){o.stopPropagation()}},vclick:function(o){if(j.is(":disabled")){o.preventDefault();return}n._cacheVals();j.prop("checked",k==="radio"&&true||!j.prop("checked"));j.triggerHandler("click");n._getInputSet().not(j).prop("checked",false);n._updateAll();return false}});j.bind({vmousedown:function(){n._cacheVals()},vclick:function(){var o=a(this);if(o.is(":checked")){o.prop("checked",true);n._getInputSet().not(o).prop("checked",false)}else{o.prop("checked",false)}n._updateAll()},focus:function(){i.addClass("ui-focus")},blur:function(){i.removeClass("ui-focus")}});this.refresh()},_cacheVals:function(){this._getInputSet().each(function(){var c=a(this);c.jqmData("cacheVal",c.is(":checked"))})},_getInputSet:function(){if(this.inputtype=="checkbox"){return this.element}return this.element.closest("form,fieldset,:jqmData(role='page')").find("input[name='"+this.element.attr("name")+"'][type='"+this.inputtype+"']")},_updateAll:function(){var c=this;this._getInputSet().each(function(){var d=a(this);if(d.is(":checked")||c.inputtype==="checkbox"){d.trigger("change")}}).checkboxradio("refresh")},refresh:function(){var c=this.element,d=this.label,e=d.find(".ui-icon");if(a(c[0]).prop("checked")){d.addClass(this.checkedClass).removeClass(this.uncheckedClass);e.addClass(this.checkedicon).removeClass(this.uncheckedicon)}else{d.removeClass(this.checkedClass).addClass(this.uncheckedClass);e.removeClass(this.checkedicon).addClass(this.uncheckedicon)}if(c.is(":disabled")){this.disable()}else{this.enable()}},disable:function(){this.element.prop("disabled",true).parent().addClass("ui-disabled")},enable:function(){this.element.prop("disabled",false).parent().removeClass("ui-disabled")}});a(document).bind("pagecreate create",function(c){a.mobile.checkboxradio.prototype.enhanceWithin(c.target)})})(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,initSelector:"button, [type='button'], [type='submit'], [type='reset'], [type='image']"},_create:function(){var d=this.element,g=this.options,e,c,f;this.button=a("<div></div>").text(d.text()||d.val()).insertBefore(d).buttonMarkup({theme:g.theme,icon:g.icon,iconpos:g.iconpos,inline:g.inline,corners:g.corners,shadow:g.shadow,iconshadow:g.iconshadow}).append(d.addClass("ui-btn-hidden"));e=d.attr("type");c=d.attr("name");if(e!=="button"&&e!=="reset"&&c){d.bind("vclick",function(){if(f===b){f=a("<input>",{type:"hidden",name:d.attr("name"),value:d.attr("value")}).insertBefore(d);a(document).one("submit",function(){f.remove();f=b})}})}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(){var c=this.element;if(c.prop("disabled")){this.disable()}else{this.enable()}this.button.data("textWrapper").text(c.text()||c.val())}});a(document).bind("pagecreate create",function(c){a.mobile.button.prototype.enhanceWithin(c.target)})})(jQuery);(function(a,b){a.widget("mobile.slider",a.mobile.widget,{options:{theme:null,trackTheme:null,disabled:false,initSelector:"input[type='range'], :jqmData(type='range'), :jqmData(role='slider')"},_create:function(){var r=this,j=this.element,f=a.mobile.getInheritedTheme(j,"c"),k=this.options.theme||f,g=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}),s;a.extend(this,{slider:c,handle:o,dragging:false,beforeStart:null,userModified:false,mouseMoved:false});if(l=="select"){c.wrapInner("<div class='ui-slider-inneroffset'></div>");o.addClass("ui-slider-handle-snapping");s=j.find("option");j.find("option").each(function(v){var u=!v?"b":"a",t=!v?"right":"left",w=!v?" ui-btn-down-"+g:(" "+a.mobile.activeBtnClass);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).getEncodedText()+"</span>").prependTo(o)})}q.addClass("ui-slider");j.addClass(l==="input"?"ui-slider-input":"ui-slider-switch").change(function(){if(!r.mouseMoved){r.refresh(e(),true)}}).keyup(function(){r.refresh(e(),true,true)}).blur(function(){r.refresh(e(),true)});a(document).bind("vmousemove",function(t){if(r.dragging){r.mouseMoved=true;if(l==="select"){o.removeClass("ui-slider-handle-snapping")}r.refresh(t);r.userModified=r.beforeStart!==j[0].selectedIndex;return false}});c.bind("vmousedown",function(t){r.dragging=true;r.userModified=false;r.mouseMoved=false;if(l==="select"){r.beforeStart=j[0].selectedIndex}r.refresh(t);return false});c.add(document).bind("vmouseup",function(){if(r.dragging){r.dragging=false;if(l==="select"){o.addClass("ui-slider-handle-snapping");if(r.mouseMoved){if(r.userModified){r.refresh(r.beforeStart==0?1:0)}else{r.refresh(r.beforeStart)}}else{r.refresh(r.beforeStart==0?1:0)}}r.mouseMoved=false;return false}});c.insertAfter(j);this.handle.bind("vmousedown",function(){a(this).focus()}).bind("vclick",false);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(b,b,true)},refresh:function(e,c,n){if(this.options.disabled||this.element.attr("disabled")){this.disable()}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,m=8;if(!this.dragging||g.pageX<this.slider.offset().left-m||g.pageX>this.slider.offset().left+this.slider.width()+m){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).getEncodedText(),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(!n){var l=false;if(i==="input"){l=h.val()!==d;h.val(d)}else{l=h[0].selectedIndex!==d;h[0].selectedIndex=d}if(!c&&l){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)}});a(document).bind("pagecreate create",function(c){a.mobile.slider.prototype.enhanceWithin(c.target)})})(jQuery);(function(a,b){a.widget("mobile.textinput",a.mobile.widget,{options:{theme:null,initSelector:"input[type='text'], input[type='search'], :jqmData(type='search'), input[type='number'], :jqmData(type='number'), input[type='password'], input[type='email'], input[type='url'], input[type='tel'], textarea, input[type='time'], input[type='date'], input[type='month'], input[type='week'], input[type='datetime'], input[type='datetime-local'], input[type='color'], input:not([type])"},_create:function(){var j=this.element,e=this.options,g=e.theme||a.mobile.getInheritedTheme(this.element,"c"),m=" ui-body-"+g,h,k;a("label[for='"+j.attr("id")+"']").addClass("ui-input-text");h=j.addClass("ui-input-text ui-body-"+g);if(typeof j[0].autocorrect!=="undefined"&&!a.support.touchOverflow){j[0].setAttribute("autocorrect","off");j[0].setAttribute("autocomplete","off")}if(j.is("[type='search'],:jqmData(type='search')")){h=j.wrap("<div class='ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield"+m+"'></div>").parent();k=a("<a href='#' class='ui-input-clear' title='clear text'>clear text</a>").tap(function(n){j.val("").focus();j.trigger("change");k.addClass("ui-input-clear-hidden");n.preventDefault()}).appendTo(h).buttonMarkup({icon:"delete",iconpos:"notext",corners:true,shadow:true});function d(){setTimeout(function(){k.toggleClass("ui-input-clear-hidden",!j.val())},0)}d();j.bind("paste cut keyup focus change blur",d)}else{j.addClass("ui-corner-all ui-shadow-inset"+m)}j.focus(function(){h.addClass("ui-focus")}).blur(function(){h.removeClass("ui-focus")});if(j.is("textarea")){var f=15,i=100,c=function(){var o=j[0].scrollHeight,n=j[0].clientHeight;if(n<o){j.height(o+f)}},l;j.keyup(function(){clearTimeout(l);l=setTimeout(c,i)});if(a.trim(j.val())){a(window).load(c);a(document).one("pagechange",c)}}},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")}});a(document).bind("pagecreate create",function(c){a.mobile.textinput.prototype.enhanceWithin(c.target)})})(jQuery);(function(b,c){var a=function(j){var p=j.select,t=j.selectID,m=j.label,d=j.select.closest(".ui-page"),f=b("<div>",{"class":"ui-selectmenu-screen ui-screen-hidden"}).appendTo(d),r=j._selectOptions(),i=j.isMultiple=j.select[0].multiple,l=t+"-button",n=t+"-menu",o=b("<div data-"+b.mobile.ns+"role='dialog' data-"+b.mobile.ns+"theme='"+j.options.theme+"' data-"+b.mobile.ns+"overlay-theme='"+j.options.overlayTheme+"'><div data-"+b.mobile.ns+"role='header'><div class='ui-title'>"+m.getEncodedText()+"</div></div><div data-"+b.mobile.ns+"role='content'></div></div>").appendTo(b.mobile.pageContainer).page(),e=b("<div>",{"class":"ui-selectmenu ui-selectmenu-hidden ui-overlay-shadow ui-corner-all ui-body-"+j.options.overlayTheme+" "+b.mobile.defaultDialogTransition}).insertAfter(f),u=b("<ul>",{"class":"ui-selectmenu-list",id:n,role:"listbox","aria-labelledby":l}).attr("data-"+b.mobile.ns+"theme",j.options.theme).appendTo(e),s=b("<div>",{"class":"ui-header ui-bar-"+j.options.theme}).prependTo(e),q=b("<h1>",{"class":"ui-title"}).appendTo(s),k=b("<a>",{text:j.options.closeText,href:"#","class":"ui-btn-left"}).attr("data-"+b.mobile.ns+"iconpos","notext").attr("data-"+b.mobile.ns+"icon","delete").appendTo(s).buttonMarkup(),h=o.find(".ui-content"),g=o.find(".ui-header a");b.extend(j,{select:j.select,selectID:t,buttonId:l,menuId:n,thisPage:d,menuPage:o,label:m,screen:f,selectOptions:r,isMultiple:i,theme:j.options.theme,listbox:e,list:u,header:s,headerTitle:q,headerClose:k,menuPageContent:h,menuPageClose:g,placeholder:"",build:function(){var v=this;v.refresh();v.select.attr("tabindex","-1").focus(function(){b(this).blur();v.button.focus()});v.button.bind("vclick keydown",function(w){if(w.type=="vclick"||w.keyCode&&(w.keyCode===b.mobile.keyCode.ENTER||w.keyCode===b.mobile.keyCode.SPACE)){v.open();w.preventDefault()}});v.list.attr("role","listbox").delegate(".ui-li>a","focusin",function(){b(this).attr("tabindex","0")}).delegate(".ui-li>a","focusout",function(){b(this).attr("tabindex","-1")}).delegate("li:not(.ui-disabled, .ui-li-divider)","click",function(y){var z=v.select[0].selectedIndex,w=v.list.find("li:not(.ui-li-divider)").index(this),x=v._selectOptions().eq(w)[0];x.selected=v.isMultiple?!x.selected:true;if(v.isMultiple){b(this).find(".ui-icon").toggleClass("ui-icon-checkbox-on",x.selected).toggleClass("ui-icon-checkbox-off",!x.selected)}if(v.isMultiple||z!==w){v.select.trigger("change")}if(!v.isMultiple){v.close()}y.preventDefault()}).keydown(function(z){var A=b(z.target),w=A.closest("li"),y,x;switch(z.keyCode){case 38:y=w.prev();if(y.length){A.blur().attr("tabindex","-1");y.find("a").first().focus()}return false;break;case 40:x=w.next();if(x.length){A.blur().attr("tabindex","-1");x.find("a").first().focus()}return false;break;case 13:case 32:A.trigger("click");return false;break}});v.menuPage.bind("pagehide",function(){v.list.appendTo(v.listbox);v._focusButton();b.mobile._bindPageRemove.call(v.thisPage)});v.screen.bind("vclick",function(w){v.close()});v.headerClose.click(function(){if(v.menuType=="overlay"){v.close();return false}});v.thisPage.addDependents(this.menuPage)},_isRebuildRequired:function(){var w=this.list.find("li"),v=this._selectOptions();return v.text()!==w.text()},refresh:function(z,C){var w=this,v=this.element,A=this.isMultiple,x=this._selectOptions(),y=this.selected(),B=this.selectedIndices();if(z||this._isRebuildRequired()){w._buildList()}w.setButtonText();w.setButtonCount();w.list.find("li:not(.ui-li-divider)").removeClass(b.mobile.activeBtnClass).attr("aria-selected",false).each(function(D){if(b.inArray(D,B)>-1){var E=b(this);E.attr("aria-selected",true);if(w.isMultiple){E.find(".ui-icon").removeClass("ui-icon-checkbox-off").addClass("ui-icon-checkbox-on")}else{E.addClass(b.mobile.activeBtnClass)}}})},close:function(){if(this.options.disabled||!this.isOpen){return}var v=this;if(v.menuType=="page"){window.history.back()}else{v.screen.addClass("ui-screen-hidden");v.listbox.addClass("ui-selectmenu-hidden").removeAttr("style").removeClass("in");v.list.appendTo(v.listbox);v._focusButton()}v.isOpen=false},open:function(){if(this.options.disabled){return}var H=this,y=H.list.parent().outerHeight(),D=H.list.parent().outerWidth(),w=b(".ui-page-active"),x=b.support.touchOverflow&&b.mobile.touchOverflowEnabled,E=w.is(".ui-native-fixed")?w.find(".ui-content"):w;scrollTop=x?E.scrollTop():b(window).scrollTop(),btnOffset=H.button.offset().top,screenHeight=window.innerHeight,screenWidth=window.innerWidth;H.button.addClass(b.mobile.activeBtnClass);setTimeout(function(){H.button.removeClass(b.mobile.activeBtnClass)},300);function z(){H.list.find(b.mobile.activeBtnClass).focus()}if(y>screenHeight-80||!b.support.scrollTop){H.thisPage.unbind("pagehide.remove");if(scrollTop==0&&btnOffset>screenHeight){H.thisPage.one("pagehide",function(){b(this).jqmData("lastScroll",btnOffset)})}H.menuPage.one("pageshow",function(){b(window).one("silentscroll",function(){z()});H.isOpen=true});H.menuType="page";H.menuPageContent.append(H.list);H.menuPage.find("div .ui-title").text(H.label.text());b.mobile.changePage(H.menuPage,{transition:b.mobile.defaultDialogTransition})}else{H.menuType="overlay";H.screen.height(b(document).height()).removeClass("ui-screen-hidden");var C=btnOffset-scrollTop,A=scrollTop+screenHeight-btnOffset,G=y/2,v=parseFloat(H.list.parent().css("max-width")),F,B;if(C>y/2&&A>y/2){F=btnOffset+(H.button.outerHeight()/2)-G}else{F=C>A?scrollTop+screenHeight-y-30:scrollTop+30}if(D<v){B=(screenWidth-D)/2}else{B=H.button.offset().left+H.button.outerWidth()/2-D/2;if(B<30){B=30}else{if((B+D)>screenWidth){B=screenWidth-D-30}}}H.listbox.append(H.list).removeClass("ui-selectmenu-hidden").css({top:F,left:B}).addClass("in");z();H.isOpen=true}},_buildList:function(){var x=this,A=this.options,z=this.placeholder,v=[],y=[],w=x.isMultiple?"checkbox-off":"false";x.list.empty().filter(".ui-listview").listview("destroy");x.select.find("option").each(function(E){var H=b(this),G=H.parent(),I=H.getEncodedText(),B="<a href='#'>"+I+"</a>",D=[],F=[];if(G.is("optgroup")){var C=G.attr("label");if(b.inArray(C,v)===-1){y.push("<li data-"+b.mobile.ns+"role='list-divider'>"+C+"</li>");v.push(C)}}if(!this.getAttribute("value")||I.length==0||H.jqmData("placeholder")){if(A.hidePlaceholderMenuItems){D.push("ui-selectmenu-placeholder")}z=x.placeholder=I}if(this.disabled){D.push("ui-disabled");F.push("aria-disabled='true'")}y.push("<li data-"+b.mobile.ns+"option-index='"+E+"' data-"+b.mobile.ns+"icon='"+w+"' class='"+D.join(" ")+"' "+F.join(" ")+">"+B+"</li>")});x.list.html(y.join(" "));x.list.find("li").attr({role:"option",tabindex:"-1"}).first().attr("tabindex","0");if(!this.isMultiple){this.headerClose.hide()}if(!this.isMultiple&&!z.length){this.header.hide()}else{this.headerTitle.text(this.placeholder)}x.list.listview()},_button:function(){return b("<a>",{href:"#",role:"button",id:this.buttonId,"aria-haspopup":"true","aria-owns":this.menuId})}})};b("select").live("selectmenubeforecreate",function(){var d=b(this).data("selectmenu");if(!d.options.nativeMenu){a(d)}})})(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:true,initSelector:"select:not(:jqmData(role='slider'))"},_button:function(){return a("<div/>")},_setDisabled:function(c){this.element.attr("disabled",c);this.button.attr("aria-disabled",c);return this._setOption("disabled",c)},_focusButton:function(){var c=this;setTimeout(function(){c.button.focus()},40)},_selectOptions:function(){return this.select.find("option")},_preExtension:function(){this.select=this.element.wrap("<div class='ui-select'>");this.selectID=this.select.attr("id");this.label=a("label[for='"+this.selectID+"']").addClass("ui-select");this.isMultiple=this.select[0].multiple;if(!this.options.theme){this.options.theme=a.mobile.getInheritedTheme(this.select,"c")}},_create:function(){this._preExtension();this._trigger("beforeCreate");this.button=this._button();var d=this,e=this.options,c=this.select[0].selectedIndex==-1?0:this.select[0].selectedIndex,f=this.button.text(a(this.select[0].options.item(c)).text()).insertBefore(this.select).buttonMarkup({theme:e.theme,icon:e.icon,iconpos:e.iconpos,inline:e.inline,corners:e.corners,shadow:e.shadow,iconshadow:e.iconshadow});if(e.nativeMenu&&window.opera&&window.opera.version){this.select.addClass("ui-select-nativeonly")}if(this.isMultiple){this.buttonCount=a("<span>").addClass("ui-li-count ui-btn-up-c ui-btn-corner-all").hide().appendTo(f.addClass("ui-li-has-count"))}if(e.disabled||this.element.attr("disabled")){this.disable()}this.select.change(function(){d.refresh()});this.build()},build:function(){var c=this;this.select.appendTo(c.button).bind("vmousedown",function(){c.button.addClass(a.mobile.activeBtnClass)}).bind("focus vmouseover",function(){c.button.trigger("vmouseover")}).bind("vmousemove",function(){c.button.removeClass(a.mobile.activeBtnClass)}).bind("change blur vmouseout",function(){c.button.trigger("vmouseout").removeClass(a.mobile.activeBtnClass)}).bind("change blur",function(){c.button.removeClass("ui-btn-down-"+c.options.theme)})},selected:function(){return this._selectOptions().filter(":selected")},selectedIndices:function(){var c=this;return this.selected().map(function(){return c._selectOptions().index(this)}).get()},setButtonText:function(){var c=this,d=this.selected();this.button.find(".ui-btn-text").text(function(){if(!c.isMultiple){return d.text()}return d.length?d.map(function(){return a(this).text()}).get().join(", "):c.placeholder})},setButtonCount:function(){var c=this.selected();if(this.isMultiple){this.buttonCount[c.length>1?"show":"hide"]().text(c.length)}},refresh:function(){this.setButtonText();this.setButtonCount()},open:a.noop,close:a.noop,disable:function(){this._setDisabled(true);this.button.addClass("ui-disabled")},enable:function(){this._setDisabled(false);this.button.removeClass("ui-disabled")}});a(document).bind("pagecreate create",function(c){a.mobile.selectmenu.prototype.enhanceWithin(c.target)})})(jQuery);(function(b,c){b.fn.buttonMarkup=function(s){s=s||{};for(var h=0;h<this.length;h++){var g=this.eq(h),k=g[0],f=b.extend({},b.fn.buttonMarkup.defaults,{icon:s.icon!==c?s.icon:g.jqmData("icon"),iconpos:s.iconpos!==c?s.iconpos:g.jqmData("iconpos"),theme:s.theme!==c?s.theme:g.jqmData("theme"),inline:s.inline!==c?s.inline:g.jqmData("inline"),shadow:s.shadow!==c?s.shadow:g.jqmData("shadow"),corners:s.corners!==c?s.corners:g.jqmData("corners"),iconshadow:s.iconshadow!==c?s.iconshadow:g.jqmData("iconshadow")},s),q="ui-btn-inner",p="ui-btn-text",r,m,j=document.createElement(f.wrapperEls),n=document.createElement(f.wrapperEls),l=f.icon?document.createElement("span"):null;if(a){a()}if(!f.theme){f.theme=b.mobile.getInheritedTheme(g,"c")}r="ui-btn ui-btn-up-"+f.theme;if(f.inline){r+=" ui-btn-inline"}if(f.icon){f.icon="ui-icon-"+f.icon;f.iconpos=f.iconpos||"left";m="ui-icon "+f.icon;if(f.iconshadow){m+=" ui-icon-shadow"}}if(f.iconpos){r+=" ui-btn-icon-"+f.iconpos;if(f.iconpos=="notext"&&!g.attr("title")){g.attr("title",g.getEncodedText())}}if(f.corners){r+=" ui-btn-corner-all";q+=" ui-btn-corner-all"}if(f.shadow){r+=" ui-shadow"}k.setAttribute("data-"+b.mobile.ns+"theme",f.theme);g.addClass(r);j.className=q;j.setAttribute("aria-hidden","true");n.className=p;j.appendChild(n);if(l){l.className=m;j.appendChild(l)}while(k.firstChild){n.appendChild(k.firstChild)}k.appendChild(j);b.data(k,"textWrapper",b(n))}return this};b.fn.buttonMarkup.defaults={corners:true,shadow:true,iconshadow:true,inline:false,wrapperEls:"span"};function d(f){var e;while(f){e=(typeof f.className==="string")&&f.className.split(" ");if(e&&b.inArray("ui-btn",e)>-1&&b.inArray("ui-disabled",e)<0){break}f=f.parentNode}return f}var a=function(){b(document).bind({vmousedown:function(g){var e=d(g.target),f,h;if(e){f=b(e);h=f.attr("data-"+b.mobile.ns+"theme");f.removeClass("ui-btn-up-"+h).addClass("ui-btn-down-"+h)}},"vmousecancel vmouseup":function(g){var e=d(g.target),f,h;if(e){f=b(e);h=f.attr("data-"+b.mobile.ns+"theme");f.removeClass("ui-btn-down-"+h).addClass("ui-btn-up-"+h)}},"vmouseover focus":function(g){var e=d(g.target),f,h;if(e){f=b(e);h=f.attr("data-"+b.mobile.ns+"theme");f.removeClass("ui-btn-up-"+h).addClass("ui-btn-hover-"+h)}},"vmouseout blur":function(g){var e=d(g.target),f,h;if(e){f=b(e);h=f.attr("data-"+b.mobile.ns+"theme");f.removeClass("ui-btn-hover-"+h+" ui-btn-down-"+h).addClass("ui-btn-up-"+h)}}});a=null};b(document).bind("pagecreate create",function(f){b(":jqmData(role='button'), .ui-bar > a, .ui-header > a, .ui-footer > a, .ui-bar > :jqmData(role='controlgroup') > a",f.target).not(".ui-btn, :jqmData(role='none'), :jqmData(role='nojs')").buttonMarkup()})})(jQuery);(function(a,b){a.fn.controlgroup=function(c){return this.each(function(){var e=a(this),h=a.extend({direction:e.jqmData("type")||"vertical",shadow:false,excludeInvisible:true},c),i=e.children("legend"),d=h.direction=="horizontal"?["ui-corner-left","ui-corner-right"]:["ui-corner-top","ui-corner-bottom"],f=e.find("input").first().attr("type");if(i.length){e.wrapInner("<div class='ui-controlgroup-controls'></div>");a("<div role='heading' class='ui-controlgroup-label'>"+i.html()+"</div>").insertBefore(e.children(0));i.remove()}e.addClass("ui-corner-all ui-controlgroup ui-controlgroup-"+h.direction);function g(j){j.removeClass("ui-btn-corner-all ui-shadow").eq(0).addClass(d[0]).end().last().addClass(d[1]).addClass("ui-controlgroup-last")}g(e.find(".ui-btn"+(h.excludeInvisible?":visible":"")));g(e.find(".ui-btn-inner"));if(h.shadow){e.addClass("ui-shadow")}})};a(document).bind("pagecreate create",function(c){a(":jqmData(role='controlgroup')",c.target).controlgroup({excludeInvisible:false})})})(jQuery);(function(a,b){a(document).bind("pagecreate create",function(c){a(c.target).find("a").not(".ui-btn, .ui-link-inherit, :jqmData(role='none'), :jqmData(role='nojs')").addClass("ui-link")})})(jQuery);(function(d,e){var a="ui-header-fixed ui-fixed-inline fade",f="ui-footer-fixed ui-fixed-inline fade",c=".ui-header:jqmData(position='fixed')",b=".ui-footer:jqmData(position='fixed')";d.fn.fixHeaderFooter=function(g){if(!d.support.scrollTop||(d.support.touchOverflow&&d.mobile.touchOverflowEnabled)){return this}return this.each(function(){var h=d(this);if(h.jqmData("fullscreen")){h.addClass("ui-page-fullscreen")}h.find(c).addClass(a);h.find(b).addClass(f)})};d.mobile.fixedToolbars=(function(){if(!d.support.scrollTop||(d.support.touchOverflow&&d.mobile.touchOverflowEnabled)){return}var q,h,k="inline",s=false,i=100,r="a,input,textarea,select,button,label,.ui-header-fixed,.ui-footer-fixed",t=".ui-header-fixed:first, .ui-footer-fixed:not(.ui-footer-duplicate):last",m=d.support.touch,u=m?"touchstart":"mousedown",o=m?"touchend":"mouseup",l=null,n=false,g=true;function j(w){if(!s&&k==="overlay"){if(!h){d.mobile.fixedToolbars.hide(true)}d.mobile.fixedToolbars.startShowTimer()}}d(function(){var x=d(document),w=d(window);x.bind("vmousedown",function(y){if(g){l=k}}).bind("vclick",function(y){if(g){if(d(y.target).closest(r).length){return}if(!n){d.mobile.fixedToolbars.toggle(l);l=null}}}).bind("silentscroll",j);((x.scrollTop()===0)?w:x).bind("scrollstart",function(z){n=true;if(l===null){l=k}var y=l=="overlay";s=y||!!h;if(s){d.mobile.fixedToolbars.clearShowTimer();if(y){d.mobile.fixedToolbars.hide(true)}}}).bind("scrollstop",function(y){if(d(y.target).closest(r).length){return}n=false;if(s){d.mobile.fixedToolbars.startShowTimer();s=false}l=null});w.bind("resize updatelayout",j)});d(".ui-page").live("pagebeforeshow",function(x,A){var z=d(x.target),D=z.find(":jqmData(role='footer')"),C=D.data("id"),w=A.prevPage,B=w&&w.find(":jqmData(role='footer')"),y=B.length&&B.jqmData("id")===C;if(C&&y){q=D;v(q.removeClass("fade in out").appendTo(d.mobile.pageContainer))}}).live("pageshow",function(w,x){var y=d(this);if(q&&q.length){setTimeout(function(){v(q.appendTo(y).addClass("fade"));q=null},500)}d.mobile.fixedToolbars.show(true,this)});d(".ui-collapsible-contain").live("collapse expand",j);function p(x){var y=0,z,w;if(x){w=document.body;z=x.offsetParent;y=x.offsetTop;while(x&&x!=w){y+=x.scrollTop||0;if(x==z){y+=z.offsetTop;z=x.offsetParent}x=x.parentNode}}return y}function v(A){var w=d(window).scrollTop(),B=p(A[0]),z=A.css("top")=="auto"?0:parseFloat(A.css("top")),D=window.innerHeight,C=A.outerHeight(),y=A.parents(".ui-page:not(.ui-page-fullscreen)").length,x;if(A.is(".ui-header-fixed")){x=w-B+z;if(x<B){x=0}return A.css("top",y?x:w)}else{x=w+D-C-(B-z);return A.css("top",y?x:w+D-C)}}return{show:function(w,y){d.mobile.fixedToolbars.clearShowTimer();k="overlay";var x=y?d(y):(d.mobile.activePage?d.mobile.activePage:d(".ui-page-active"));return x.children(t).each(function(){var B=d(this),z=d(window).scrollTop(),C=p(B[0]),E=window.innerHeight,D=B.outerHeight(),A=(B.is(".ui-header-fixed")&&z<=C+D)||(B.is(".ui-footer-fixed")&&C<=z+E);B.addClass("ui-fixed-overlay").removeClass("ui-fixed-inline");if(!A&&!w){B.animationComplete(function(){B.removeClass("in")}).addClass("in")}v(B)})},hide:function(w){k="inline";var x=d.mobile.activePage?d.mobile.activePage:d(".ui-page-active");return x.children(t).each(function(){var A=d(this),z=A.css("top"),y;z=z=="auto"?0:parseFloat(z);A.addClass("ui-fixed-inline").removeClass("ui-fixed-overlay");if(z<0||(A.is(".ui-header-fixed")&&z!==0)){if(w){A.css("top",0)}else{if(A.css("top")!=="auto"&&parseFloat(A.css("top"))!==0){y="out reverse";A.animationComplete(function(){A.removeClass(y).css("top",0)}).addClass(y)}}}})},startShowTimer:function(){d.mobile.fixedToolbars.clearShowTimer();var w=[].slice.call(arguments);h=setTimeout(function(){h=e;d.mobile.fixedToolbars.show.apply(null,w)},i)},clearShowTimer:function(){if(h){clearTimeout(h)}h=e},toggle:function(w){if(w){k=w}return(k==="overlay")?d.mobile.fixedToolbars.hide():d.mobile.fixedToolbars.show()},setTouchToggleEnabled:function(w){g=w}}})();d(document).bind("pagecreate create",function(g){if(d(":jqmData(position='fixed')",g.target).length){d(g.target).each(function(){if(!d.support.scrollTop||(d.support.touchOverflow&&d.mobile.touchOverflowEnabled)){return this}var h=d(this);if(h.jqmData("fullscreen")){h.addClass("ui-page-fullscreen")}h.find(c).addClass(a);h.find(b).addClass(f)})}})})(jQuery);(function(a,b){a.mobile.touchOverflowEnabled=false;a.mobile.touchOverflowZoomEnabled=false;a(document).bind("pagecreate",function(e){if(a.support.touchOverflow&&a.mobile.touchOverflowEnabled){var c=a(e.target),d=0;if(c.is(":jqmData(role='page')")){c.each(function(){var f=a(this),i=f.find(":jqmData(role='header'), :jqmData(role='footer')").filter(":jqmData(position='fixed')"),h=f.jqmData("fullscreen"),g=i.length?f.find(".ui-content"):f;f.addClass("ui-mobile-touch-overflow");g.bind("scrollstop",function(){if(g.scrollTop()>0){window.scrollTo(0,a.mobile.defaultHomeScroll)}});if(i.length){f.addClass("ui-native-fixed");if(h){f.addClass("ui-native-fullscreen");i.addClass("fade in");a(document).bind("vclick",function(){i.removeClass("ui-native-bars-hidden").toggleClass("in out").animationComplete(function(){a(this).not(".in").addClass("ui-native-bars-hidden")})})}}})}}})})(jQuery);(function(f,e,h){var b=f("html"),a=f("head"),g=f(e);f(e.document).trigger("mobileinit");if(!f.mobile.gradeA()){return}if(f.mobile.ajaxBlacklist){f.mobile.ajaxEnabled=false}b.addClass("ui-mobile ui-mobile-rendering");var c=f("<div class='ui-loader ui-body-a ui-corner-all'><span class='ui-icon ui-icon-loading spin'></span><h1></h1></div>");f.extend(f.mobile,{showPageLoadingMsg:function(){if(f.mobile.loadingMessage){var i=f("."+f.mobile.activeBtnClass).first();c.find("h1").text(f.mobile.loadingMessage).end().appendTo(f.mobile.pageContainer).css({top:f.support.scrollTop&&g.scrollTop()+g.height()/2||i.length&&i.offset().top||100})}b.addClass("ui-loading")},hidePageLoadingMsg:function(){b.removeClass("ui-loading")},initializePage:function(){var i=f(":jqmData(role='page')");if(!i.length){i=f("body").wrapInner("<div data-"+f.mobile.ns+"role='page'></div>").children(0)}i.add(":jqmData(role='dialog')").each(function(){var j=f(this);if(!j.jqmData("url")){j.attr("data-"+f.mobile.ns+"url",j.attr("id")||location.pathname+location.search)}});f.mobile.firstPage=i.first();f.mobile.pageContainer=i.first().parent().addClass("ui-mobile-viewport");g.trigger("pagecontainercreate");f.mobile.showPageLoadingMsg();if(!f.mobile.hashListeningEnabled||!f.mobile.path.stripHash(location.hash)){f.mobile.changePage(f.mobile.firstPage,{transition:"none",reverse:true,changeHash:false,fromHashChange:true})}else{g.trigger("hashchange",[true])}}});function d(){var i="user-scalable=no",j=f("meta[name='viewport']");if(j.length){j.attr("content",j.attr("content")+", "+i)}else{f("head").prepend("<meta>",{name:"viewport",content:i})}}if(f.support.touchOverflow&&f.mobile.touchOverflowEnabled&&!f.mobile.touchOverflowZoomEnabled){d()}f.mobile._registerInternalEvents();f(function(){e.scrollTo(0,1);f.mobile.defaultHomeScroll=(!f.support.scrollTop||f(e).scrollTop()===1)?0:1;if(f.mobile.autoInitializePage){f.mobile.initializePage()}g.load(f.mobile.silentScroll)})})(jQuery,this);

mobiweaver/jquery.mobiweaver.searchhelp.min.js

+(function(a,b){a.widget("mobiweaver.searchhelp",a.mobile.widget,{closed:false,options:{resultField:"NAME",resultTableFields:b,baseUrl:"/sap/bc/bsp/sap/ymwsearchhelp/",transition:"pop",searchHelpTheme:"a",overlayTheme:false,dialogTitle:"Search Help",noResultsMsg:"No results found",disabled:false},_searchhelpHandler:function(c,d){if(!c.isPropagationStopped()){switch(d.method){case"open":a(this).jqmData("searchhelp").open();break;case"close":a(this).jqmData("searchhelp").close(d.fromCloseButton,d.fromListPage);break;case"set":a(this).val(d.value);a(this).trigger("change");break;case"search":a(this).jqmData("searchhelp").search(d.value);break;default:break}}},_create:function(){a(document).trigger("searchhelpcreate");var n=this;var l=this.element;var j=false;var d=a.extend(this.options,l.jqmData("options"));var m=a.mobile.getInheritedTheme(l,d.searchHelpTheme);d.overlayTheme=d.overlayTheme||m;d.resultField=d.resultField.toUpperCase();if(a.isArray(d.resultTableFields)){for(var e=0;e<d.resultTableFields.length;e++){d.resultTableFields[e]=d.resultTableFields[e].toUpperCase()}}else{d.resultTableFields=b}var k=l.closest(".ui-page");var f=l.wrap('<div class="ui-input-searchhelp ui-shadow-inset ui-corner-all ui-body-'+m+'"></div>').parent();var c=a('<a href="#" class="ui-input-clear ui-searchhelp" title="search help">search help</a>').bind("vclick",function(i){i.preventDefault();if(!d.disabled){n.inputElement.trigger("searchhelp",{method:"open"})}setTimeout(function(){a(i.target).closest("a").removeClass(a.mobile.activeBtnClass)},300)}).buttonMarkup({icon:"searchhelp",iconpos:"notext",corners:true,shadow:true}).css({"vertical-align":"middle","float":"right"});l.after(c);l.bind("searchhelp",this._searchhelpHandler);l.removeClass("ui-corner-all ui-shadow-inset").focus(function(){if(!d.disabled){f.addClass("ui-focus")}l.removeClass("ui-focus")}).blur(function(){f.removeClass("ui-focus");l.removeClass("ui-focus")});var g=a("<div data-role='dialog' class='ui-dialog' data-theme='"+d.searchHelpTheme+"' data-overlay-theme='"+d.overlayTheme+"'><div data-role='header' data-backbtn='false' data-theme='"+d.searchHelpTheme+"'><div class='ui-title'>"+d.dialogTitle+"</div></div><div data-role='content'></div></div>").appendTo(a.mobile.pageContainer);var h=a("<div data-role='dialog' class='ui-dialog' data-theme='"+d.searchHelpTheme+"' data-overlay-theme='"+d.overlayTheme+"'><div data-role='header' data-backbtn='false' data-theme='"+d.searchHelpTheme+"'><div class='ui-title'>"+d.dialogTitle+"</div></div><div data-role='content'></div></div>").appendTo(a.mobile.pageContainer).page();h.find(".ui-header a").unbind("vclick").bind("vclick",function(i){i.preventDefault();i.stopImmediatePropagation();n.inputElement.trigger("searchhelp",{method:"close",fromCloseButton:true,fromListPage:true})});a.extend(this,{thisPage:k,formInit:j,inputElement:l,listPage:h,focusedEl:f,formPage:g})},_buildUrl:function(c){return this.options.baseUrl+c},_initForm:function(){var c=this,d=this.options.searchHelp;a.mobile.showPageLoadingMsg();a.ajax({url:this._buildUrl("fields.do"),data:{sh:d},context:this.formPage.children(":jqmData(role='content')").first(),dataType:"xml",success:function(h){var g="",f="",e=a(h);g+='<form data-role="searchhelpform">';g+='<input type="hidden" name="sh" value="'+d+'">';e.find("field").each(function(j){var l=a(this).text(),i=a(this).attr("name"),k=a(this).attr("datatype");f+='<label for="'+i+'">'+l+"</label>";f+='<input type="text" name="'+i+'">'});if(f!==""){g+=f+"</form>";g+='<a href="#searchhelp" id="help-result-button" data-role="button" data-inline="false">Search</a>';a(this).html(g);c.formPage.page();c.formPage.find(".ui-header a").unbind("vclick").bind("vclick",function(i){i.preventDefault();i.stopImmediatePropagation();c.inputElement.trigger("searchhelp",{method:"close",fromCloseButton:true})});a(this).children(':jqmData(role="searchhelpform")').submit(function(i){i.preventDefault();var j=a(this).serialize();c.inputElement.trigger("searchhelp",{method:"search",value:j});return false});a(this).find("a").each(function(){a(this).bind("vclick",function(i){a(this).parent().children(':jqmData(role="searchhelpform")').submit();return false})});c.formInit=true;a.mobile.hidePageLoadingMsg();a.mobile.changePage(c.formPage,{transition:c.transition})}else{a.mobile.hidePageLoadingMsg()}},error:function(){a.mobile.hidePageLoadingMsg()}})},open:function(){var c=this;this.thisPage.unbind("pagehide.remove");c.closed=false;if(this.formInit){a.mobile.changePage(c.formPage,{transition:c.options.transition})}else{this._initForm()}},_isFieldVisible:function(c){var d=a(c).attr("name");return(this.options.resultTableFields==b||(a.inArray(d,this.options.resultTableFields)>-1))},search:function(e){var c=this,d=this.listPage.children(":jqmData(role='content')").first();d.empty();a.mobile.showPageLoadingMsg();a.ajax({url:this._buildUrl("search.do"),data:e,dataType:"xml",context:d,error:function(){a.mobile.hidePageLoadingMsg();c._showErrorMessage()},success:function(i){var f;var g=a('<table class="ui-mobiweaver-searchhelp"></table>');var h=false;f=a(i);f.find("searchhelp entry").each(function(k){if(k===0){h=true;var m=a("<thead></thead>");var l=a("<tr></tr>");a(this).children().each(function(){if(c._isFieldVisible(this)){var n=a("<th></th>").text(a(this).attr("title"));l.append(n)}});m.append(l);g.append(m)}});if(h){var j=a("<tbody></tbody>");f.find("searchhelp entry").each(function(l){var m=a(this).find("field[name='"+c.options.resultField+"']").text();var k=a("<tr></tr>",{"class":"ui-btn ui-btn-up-"+c.options.searchHelpTheme,"data-result":m,"data-theme":c.options.searchHelpTheme});a(this).children().each(function(){if(c._isFieldVisible(this)){var n=a("<td></td>").text(a(this).text());k.append(n)}});j.append(k)});g.append(j);a(this).append(g)}else{a(this).append("<p>"+c.options.noResultsMsg+"</p>")}a.mobile.hidePageLoadingMsg();a.mobile.changePage(c.listPage,{transition:c.options.transition});a(this).find("td").each(function(){a(this).bind("vclick",function(k){k.preventDefault();c.inputElement.trigger("searchhelp",{method:"set",value:a(this).parent().attr("data-result")});c.inputElement.trigger("searchhelp",{method:"close"})})})}})},_showErrorMessage:function(){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()})},close:function(c,f){var d=this,e;if(!c||f){if(!d.closed){window.history.go(-2)}}else{if(!d.closed){window.history.go(-1)}}if(!d.thisPage.data("page").options.domCache){d.thisPage.bind("pagehide.remove",function(){a(d).remove()})}d.focusedEl.removeClass("ui-focus");d.closed=true},destroy:function(){this.inputElement.unbind("searchhelp");a.Widget.prototype.destroy.call(this)}});a(document).bind("pagecreate",function(c){a(document).trigger("searchhelpbeforecreate");return a(":jqmData(role='searchhelp')",c.target).searchhelp()})})(jQuery);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.