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