/*
 * jQuery Mobile v1.0b1
 * 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(){var G=C.support.orientation;E.bind("orientationchange.htmlclass throttledResize.htmlclass",function(H){if(H.orientation){A.removeClass("portrait landscape").addClass(H.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="palmGetResource" in window,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(V,c,D,K){var b="virtualMouseBindings",B="virtualTouchID",A="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),U="clientX clientY pageX pageY screenX screenY".split(" "),X={},d=0,Q=0,P=0,N=false,g=[],F=false,o=false,S=V.support.eventCapture,R=V(D),a=1,k=0;V.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};function O(i){while(i&&typeof i.originalEvent!=="undefined"){i=i.originalEvent}return i}function G(q,r){var z=q.type;q=V.Event(q);q.type=r;var AA=q.originalEvent;var y=V.event.props;if(AA){for(var v=y.length,p;v;){p=y[--v];q[p]=AA[p]}}if(z.search(/^touch/)!==-1){var s=O(AA),z=s.touches,w=s.changedTouches,u=(z&&z.length)?z[0]:((w&&w.length)?w[0]:K);if(u){for(var v=0,x=U.length;v<x;v++){var p=U[v];q[p]=u[p]}}}return q}function m(r){var p={};while(r){var i=V.data(r,b);for(var q in i){if(i[q]){p[q]=p.hasVirtualBinding=true}}r=r.parentNode}return p}function Y(q,p){while(q){var i=V.data(q,b);if(i&&(!p||i[p])){return q}q=q.parentNode}return null}function e(){o=false}function I(){o=true}function n(){k=0;g.length=0;F=false;I()}function M(){e()}function T(){W();d=setTimeout(function(){d=0;n()},V.vmouse.resetTimerDuration)}function W(){if(d){clearTimeout(d);d=0}}function L(r,s,i){var q=false;if((i&&i[r])||(!i&&Y(s.target,r))){var p=G(s,r);V(s.target).trigger(p);q=p.isDefaultPrevented()}return q}function H(i){var p=V.data(i.target,B);if(!F&&(!k||k!==p)){L("v"+i.type,i)}}function l(q){var s=O(q).touches;if(s&&s.length===1){var r=q.target,i=m(r);if(i.hasVirtualBinding){k=a++;V.data(r,B,k);W();M();N=false;var p=O(q).touches[0];Q=p.pageX;P=p.pageY;L("vmouseover",q,i);L("vmousedown",q,i)}}}function f(i){if(o){return }if(!N){L("vmousecancel",i,m(i.target))}N=true;T()}function C(s){if(o){return }var q=O(s).touches[0];var p=N,r=V.vmouse.moveDistanceThreshold;N=N||(Math.abs(q.pageX-Q)>r||Math.abs(q.pageY-P)>r);var i=m(s.target);if(N&&!p){L("vmousecancel",s,i)}L("vmousemove",s,i);T()}function E(q){if(o){return }I();var i=m(q.target);L("vmouseup",q,i);if(!N){if(L("vclick",q,i)){var p=O(q).changedTouches[0];g.push({touchID:k,x:p.clientX,y:p.clientY});F=true}}L("vmouseout",q,i);N=false;T()}function Z(p){var q=V.data(p,b),i;if(q){for(i in q){if(q[i]){return true}}}return false}function j(){}function J(i){var p=i.substr(1);return{setup:function(r,q){if(!Z(this)){V.data(this,b,{})}var s=V.data(this,b);s[i]=true;X[i]=(X[i]||0)+1;if(X[i]===1){R.bind(p,H)}V(this).bind(p,j);if(S){X.touchstart=(X.touchstart||0)+1;if(X.touchstart===1){R.bind("touchstart",l).bind("touchend",E).bind("touchmove",C).bind("scroll",f)}}},teardown:function(r,q){--X[i];if(!X[i]){R.unbind(p,H)}if(S){--X.touchstart;if(!X.touchstart){R.unbind("touchstart",l).unbind("touchmove",C).unbind("touchend",E).unbind("scroll",f)}}var s=V(this),t=V.data(this,b);if(t){t[i]=false}s.unbind(p,j);if(!Z(this)){s.removeData(b)}}}}for(var h=0;h<A.length;h++){V.event.special[A[h]]=J(A[h])}if(S){D.addEventListener("click",function(u){var q=g.length;var v=u.target;if(q){var z=u.clientX,w=u.clientY,t=V.vmouse.clickDistanceThreshold;var AA=v;while(AA){for(var s=0;s<q;s++){var p=g[s],r=0;if((AA===v&&Math.abs(p.x-z)<t&&Math.abs(p.y-w)<t)||V.data(AA,B)===p.touchID){u.preventDefault();u.stopPropagation();return }}AA=AA.parentNode}}},true)}})(jQuery,window,document);(function(F,H){F.each("touchstart touchmove touchend orientationchange throttledresize 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("throttledresize",J)},teardown:function(){if(M.support.orientation){return false}N.unbind("throttledresize",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")}}M.event.special.orientationchange.orientation=L=function(){var O=document.documentElement;return O&&O.clientWidth/O.clientHeight<1.1?"portrait":"landscape"}})(jQuery);(function(){F.event.special.throttledresize={setup:function(){F(this).bind("resize",K)},teardown:function(){F(this).unbind("resize",K)}};var L=250,K=function(){N=(new Date()).getTime();M=N-J;if(M>=L){J=N;F(this).trigger("throttledresize")}else{if(I){clearTimeout(I)}I=setTimeout(K,L-M)}},J=0,I,N,M})();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:false,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,useFastClick:false,hashListeningEnabled:true,defaultPageTransition:"slide",minScrollBack:screen.height/2,defaultDialogTransition:"pop",loadingMessage:"loading",pageLoadErrorMessage:"Error Loading Page",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){if(C.type(E)!=="number"){E=C.mobile.defaultHomeScroll}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)},normalizeRegex:/-([a-z])/g,nsNormalize:function(E){if(!E){return }return C.camelCase(C.mobile.ns+E)}});C.fn.jqmData=function(F,E){return this.data(F?C.mobile.nsNormalize(F):F,E)};C.jqmData=function(E,G,F){return C.data(E,C.mobile.nsNormalize(G),F)};C.fn.jqmRemoveData=function(E){return this.removeData(C.mobile.nsNormalize(E))};C.jqmRemoveData=function(E,F){return C.removeData(E,C.mobile.nsNormalize(F))};C.jqmHasData=function(E,F){return C.hasData(E,C.mobile.nsNormalize(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(F,H){var O=F(window),R=F("html"),M=F("head"),Q={urlParseRE:/^(((([^:\/#\?]+:)?(?:\/\/((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?]+)(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,parseUrl:function(b){if(typeof b==="object"){return b}var a=b||"",d=Q.urlParseRE.exec(b),c;if(d){c={href:d[0]||"",hrefNoHash:d[1]||"",hrefNoSearch:d[2]||"",domain:d[3]||"",protocol:d[4]||"",authority:d[5]||"",username:d[7]||"",password:d[8]||"",host:d[9]||"",hostname:d[10]||"",port:d[11]||"",pathname:d[12]||"",directory:d[13]||"",filename:d[14]||"",search:d[15]||"",hash:d[16]||""}}return c||{}},makePathAbsolute:function(e,c){if(e&&e.charAt(0)==="/"){return e}e=e||"";c=c?c.replace(/^\/|\/?[^\/]*$/g,""):"";var a=c?c.split("/"):[],g=e.split("/");for(var b=0;b<g.length;b++){var f=g[b];switch(f){case".":break;case"..":if(a.length){a.pop()}break;default:a.push(f);break}}return"/"+a.join("/")},isSameDomain:function(b,a){return Q.parseUrl(b).domain===Q.parseUrl(a).domain},isRelativeUrl:function(a){return Q.parseUrl(a).protocol===""},isAbsoluteUrl:function(a){return Q.parseUrl(a).protocol!==""},makeUrlAbsolute:function(b,c){if(!Q.isRelativeUrl(b)){return b}var e=Q.parseUrl(b),h=Q.parseUrl(c),i=e.protocol||h.protocol,f=e.authority||h.authority,g=e.pathname!=="",a=Q.makePathAbsolute(e.pathname||h.filename,h.pathname),j=e.search||(!g&&h.search)||"",d=e.hash;return i+"//"+f+a+j+d},addSearchParams:function(b,e){var a=Q.parseUrl(b),d=(typeof e==="object")?F.param(e):e,c=a.search||"?";return a.hrefNoSearch+c+(c.charAt(c.length-1)!=="?"?"&":"")+d+(a.hash||"")},convertUrlToDataUrl:function(b){var a=Q.parseUrl(b);if(Q.isEmbeddedPage(a)){return a.hash.replace(/^#/,"")}else{if(Q.isSameDomain(a,U)){return a.hrefNoHash.replace(U.domain,"")}}return b},get:function(a){if(a===H){a=location.hash}return Q.stripHash(a).replace(/[^\/]*\.[^\/*]+$/,"")},getFilePath:function(b){var a="&"+F.mobile.subPageUrlKey;return b&&b.split(a)[0].split(Y)[0]},set:function(a){location.hash=a},isPath:function(a){return(/\//).test(a)},clean:function(a){return a.replace(U.domain,"")},stripHash:function(a){return a.replace(/^#/,"")},cleanHash:function(a){return Q.stripHash(a.replace(/\?.*$/,"").replace(Y,""))},isExternal:function(b){var a=Q.parseUrl(b);return a.protocol&&a.domain!==E.domain?true:false},hasProtocol:function(a){return(/^(:?\w+:)/).test(a)},isEmbeddedPage:function(b){var a=Q.parseUrl(b);if(a.protocol!==""){return(a.hash&&(a.hrefNoHash===E.hrefNoHash||(B&&a.hrefNoHash===U.hrefNoHash)))}return(/^#/).test(a.href)}},Z=null,D={stack:[],activeIndex:0,getActive:function(){return D.stack[D.activeIndex]},getPrev:function(){return D.stack[D.activeIndex-1]},getNext:function(){return D.stack[D.activeIndex+1]},addNew:function(b,d,c,a){if(D.getNext()){D.clearForward()}D.stack.push({url:b,transition:d,title:c,page:a});D.activeIndex=D.stack.length-1},clearForward:function(){D.stack=D.stack.slice(0,D.activeIndex+1)},directHashChange:function(c){var a,b,d;F.each(D.stack,function(e,f){if(c.currentUrl===f.url){a=e<D.activeIndex;b=!a;d=e}});this.activeIndex=d!==H?d:this.activeIndex;if(a){c.isBack()}else{if(b){c.isForward()}}},ignoreNextHashChange:false},T="[tabindex],a,button:visible,select:visible,input",N=[],V=false,Y="&ui-state=dialog",L=M.children("base"),E=Q.parseUrl(location.href),U=L.length?Q.parseUrl(Q.makeUrlAbsolute(L.attr("href"),E.href)):E,B=(E.hrefNoHash!==U.hrefNoHash);var G=F.support.dynamicBaseTag?{element:(L.length?L:F("<base>",{href:U.hrefNoHash}).prependTo(M)),set:function(a){G.element.attr("href",Q.makeUrlAbsolute(a,U))},reset:function(){G.element.attr("href",U.hrefNoHash)}}:H;function K(b){var c=b.jqmData("lastClicked");if(c&&c.length){c.focus()}else{var a=b.find(".ui-title:eq(0)");if(a.length){a.focus()}else{b.find(T).eq(0).focus()}}}function X(a){if(!!Z&&(!Z.closest(".ui-page-active").length||a)){Z.removeClass(F.mobile.activeBtnClass)}Z=null}function P(){V=false;if(N.length>0){F.mobile.changePage.apply(null,N.pop())}}function W(h,b,f,e){var g=F.support.scrollTop?O.scrollTop():true,d=h.data("lastScroll")||F.mobile.defaultHomeScroll,a=J();if(g){window.scrollTo(0,F.mobile.defaultHomeScroll)}if(d<F.mobile.minScrollBack){d=0}if(b){b.height(a+g).jqmData("lastScroll",g).jqmData("lastClicked",Z);b.data("page")._trigger("beforehide",null,{nextPage:h})}h.height(a+d).data("page")._trigger("beforeshow",null,{prevPage:b||F("")});F.mobile.hidePageLoadingMsg();var c=F.mobile.transitionHandlers[f||"none"]||F.mobile.defaultTransitionHandler,i=c(f,e,h,b);i.done(function(){h.height("");if(d){F.mobile.silentScroll(d);F(document).one("silentscroll",function(){K(h)})}else{K(h)}if(b){b.height("").data("page")._trigger("hide",null,{nextPage:h})}h.data("page")._trigger("show",null,{prevPage:b||F("")})});return i}function J(){var c=jQuery.event.special.orientationchange.orientation(),b=c==="portrait",d=b?480:320,f=b?screen.availHeight:screen.availWidth,a=Math.max(d,F(window).height()),e=Math.min(f,a);return e}function A(){F("."+F.mobile.activePageClass).css("min-height",J())}function S(a,b){if(b){a.attr("data-"+F.mobile.ns+"role",b)}a.page()}F.fn.animationComplete=function(a){if(F.support.cssTransitions){return F(this).one("webkitAnimationEnd",a)}else{setTimeout(a,0);return F(this)}};F.mobile.updateHash=Q.set;F.mobile.path=Q;F.mobile.base=G;F.mobile.urlstack=D.stack;F.mobile.urlHistory=D;F.mobile.noneTransitionHandler=function(b,a,d,c){if(c){c.removeClass(F.mobile.activePageClass)}d.addClass(F.mobile.activePageClass);return F.Deferred().resolve(b,a,d,c).promise()};F.mobile.defaultTransitionHandler=F.mobile.noneTransitionHandler;F.mobile.transitionHandlers={none:F.mobile.defaultTransitionHandler};F.mobile.allowCrossDomainPages=false;F.mobile.getDocumentUrl=function(a){return a?F.extend({},E):E.href};F.mobile.getDocumentBase=function(a){return a?F.extend({},U):U.href};F.mobile.loadPage=function(a,j){var i=F.Deferred(),b=F.extend({},F.mobile.loadPage.defaults,j),d=null,h=null,c=Q.makeUrlAbsolute(a,E.hrefNoHash);if(b.data&&b.type==="get"){c=Q.addSearchParams(c,b.data);b.data=H}var g=Q.getFilePath(c),e=Q.convertUrlToDataUrl(c);var f;if(g!=null&&g.search(/forcenoajax/)==-1){if(g.search(/\?/)==-1){f=true}else{f=false}g+=(f?"?":"&")+"forcenoajax=1"}b.pageContainer=b.pageContainer||F.mobile.pageContainer;d=b.pageContainer.children(":jqmData(url='"+e+"')");if(G){G.reset()}if(d.length){if(!b.reloadPage){S(d,b.role);i.resolve(c,j,d);return i.promise()}h=d}if(b.showLoadMsg){F.mobile.showPageLoadingMsg()}F.ajax({url:g,type:b.type,data:b.data,dataType:"html",success:function(m){var n=F("<div></div>"),k=m.match(/<title[^>]*>([^<]*)/)&&RegExp.$1,p=new RegExp(".*(<[^>]+\\bdata-"+F.mobile.ns+"role=[\"']?page[\"']?[^>]*>).*"),l=new RegExp("\\bdata-"+F.mobile.ns+"url=[\"']?([^\"'>]*)[\"']?");if(p.test(m)&&RegExp.$1&&l.test(RegExp.$1)&&RegExp.$1){a=g=Q.getFilePath(RegExp.$1)}if(G){G.set(g)}n.get(0).innerHTML=m;d=n.find(":jqmData(role='page'), :jqmData(role='dialog')").first();if(k&&!d.jqmData("title")){d.jqmData("title",k)}if(!F.support.dynamicBaseTag){var o=Q.get(g);d.find("[src], link[href], a[rel='external'], :jqmData(ajax='false'), a[target]").each(function(){var r=F(this).is("[href]")?"href":F(this).is("[src]")?"src":"action",q=F(this).attr(r);q=q.replace(location.protocol+"//"+location.host+location.pathname,"");if(!/^(\w+:|#|\/)/.test(q)){F(this).attr(r,U.hrefNoSearch+q)}})}d.attr("data-"+F.mobile.ns+"url",Q.convertUrlToDataUrl(g)).appendTo(b.pageContainer);S(d,b.role);if(c.indexOf("&"+F.mobile.subPageUrlKey)>-1){d=b.pageContainer.children(":jqmData(url='"+e+"')")}if(b.showLoadMsg){F.mobile.hidePageLoadingMsg()}i.resolve(c,j,d,h)},error:function(){if(G){G.set(Q.get())}if(b.showLoadMsg){F.mobile.hidePageLoadingMsg();F("<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h1>"+F.mobile.pageLoadErrorMessage+"</h1></div>").css({display:"block",opacity:0.96,top:O.scrollTop()+100}).appendTo(b.pageContainer).delay(800).fadeOut(400,function(){F(this).remove()})}i.reject(c,j)}});return i.promise()};F.mobile.loadPage.defaults={type:"get",data:H,reloadPage:false,role:H,showLoadMsg:true,pageContainer:H};F.mobile.changePage=function(d,c){if(typeof c!=="object"){var m=null;if(typeof d==="object"&&d.url&&d.type){m={type:d.type,data:d.data,forcePageLoad:true};d=d.url}var o=arguments.length;if(o>1){var t=["transition","reverse","changeHash","fromHashChange"],n;for(n=1;n<o;n++){var r=arguments[n];if(typeof r!=="undefined"){m=m||{};m[t[n-1]]=r}}}if(m){return F.mobile.changePage(d,m)}}if(V){N.unshift(arguments);return }V=true;var p=F.extend({},F.mobile.changePage.defaults,c);p.pageContainer=p.pageContainer||F.mobile.pageContainer;if(typeof d=="string"){F.mobile.loadPage(d,p).done(function(u,i,v,a){V=false;i.duplicateCachedPage=a;F.mobile.changePage(v,i)}).fail(function(i,a){V=false;X(true);P();p.pageContainer.trigger("changepagefailed")});return }var j=p.pageContainer,s=F.mobile.activePage,e=d.jqmData("url"),l=Q.getFilePath(e),h=D.getActive(),b=D.activeIndex===0,k=0,f=document.title,g=p.role==="dialog"||d.jqmData("role")==="dialog";j.trigger("beforechangepage");if(s&&s[0]===d[0]){V=false;j.trigger("changepage");return }S(d,p.role);if(p.fromHashChange){D.directHashChange({currentUrl:e,isBack:function(){k=-1},isForward:function(){k=1}})}F(document.activeElement||"").add("input:focus, textarea:focus, select:focus").blur();if(g&&h){e=h.url+Y}if(p.changeHash!==false&&e){D.ignoreNextHashChange=true;Q.set(e)}var q=d.jqmData("title")||d.children(":jqmData(role='header')").find(".ui-title").text();if(!!q&&f==document.title){f=q}if(!k){D.addNew(e,p.transition,f,d)}document.title=D.getActive().title;F.mobile.activePage=d;p.transition=p.transition||((k&&!b)?h.transition:H)||(p.role==="dialog"?F.mobile.defaultDialogTransition:F.mobile.defaultPageTransition);p.reverse=p.reverse||k<0;W(d,s,p.transition,p.reverse).done(function(){X();if(p.duplicateCachedPage){p.duplicateCachedPage.remove()}R.removeClass("ui-mobile-rendering");P();j.trigger("changepage")})};F.mobile.changePage.defaults={transition:H,reverse:false,changeHash:true,fromHashChange:false,role:H,duplicateCachedPage:H,pageContainer:H};F("form").live("submit",function(c){var e=F(this);if(!F.mobile.ajaxEnabled||e.is(":jqmData(ajax='false')")){return }var b=e.attr("method"),a=Q.makeUrlAbsolute(e.attr("action"),C(e)),d=e.attr("target");if(Q.isExternal(a)||d){return }F.mobile.changePage(a,{type:b.length&&b.toLowerCase()||"get",data:e.serialize(),transition:e.jqmData("transition"),direction:e.jqmData("direction"),reloadPage:true});c.preventDefault()});function I(a){while(a){if(a.nodeName.toLowerCase()=="a"){break}a=a.parentNode}return a}function C(c){var a=F(c).closest(".ui-page").jqmData("url"),b=U.hrefNoHash;if(!a||!Q.isPath(a)){a=b}return Q.makeUrlAbsolute(a,b)}F(document).bind("vclick",function(b){var a=I(b.target);if(a){if(Q.parseUrl(a.getAttribute("href")||"#").hash!=="#"){F(a).closest(".ui-btn").not(".ui-disabled").addClass(F.mobile.activeBtnClass);F("."+F.mobile.activePageClass+" .ui-btn").not(a).blur()}}});F(document).bind(F.mobile.useFastClick?"vclick click":"click",function(b){var l=I(b.target);if(!l){return }var i=F(l),e=function(){window.setTimeout(function(){X(true)},200)};if(i.is(":jqmData(rel='back')")){window.history.back();return false}if(i.is(":jqmData(rel='dialog')")){F.mobile.ajaxEnabled=true}if(!F.mobile.ajaxEnabled){e();return }var h=C(i),c=Q.makeUrlAbsolute(i.attr("href")||"#",h);if(c.search("#")!=-1){c=c.replace(/[^#]*#/,"");if(!c){b.preventDefault();return }else{if(Q.isPath(c)){c=Q.makeUrlAbsolute(c,h)}else{c=Q.makeUrlAbsolute("#"+c,E.hrefNoHash)}}}var d=i.is("[rel='external']")||i.is(":jqmData(ajax='false')")||i.is("[target]"),k=(F.mobile.allowCrossDomainPages&&E.protocol==="file:"&&c.search(/^https?:/)!=-1),a=d||(Q.isExternal(c)&&!k);Z=i.closest(".ui-btn");if(a){e();return }var j=i.jqmData("transition"),m=i.jqmData("direction"),g=(m&&m==="reverse")||i.jqmData("back"),f=i.attr("data-"+F.mobile.ns+"rel")||H;F.mobile.changePage(c,{transition:j,reverse:g,role:f});b.preventDefault()});O.bind("hashchange",function(c,a){var f=Q.stripHash(location.hash),d=F.mobile.urlHistory.stack.length===0?"none":H;if(!F.mobile.hashListeningEnabled||D.ignoreNextHashChange){D.ignoreNextHashChange=false;return }if(D.stack.length>1&&f.indexOf(Y)>-1){if(!F.mobile.activePage.is(".ui-dialog")){D.directHashChange({currentUrl:f,isBack:function(){window.history.back()},isForward:function(){window.history.forward()}});return }else{var b=function(){f=F.mobile.urlHistory.getActive().page};D.directHashChange({currentUrl:f,isBack:b,isForward:b})}}if(f){f=(typeof f==="string"&&!Q.isPath(f))?("#"+f):f;F.mobile.changePage(f,{transition:d,changeHash:false,fromHashChange:true})}else{F.mobile.changePage(F.mobile.firstPage,{transition:d,changeHash:false,fromHashChange:true})}});F(document).bind("pageshow",A);F(window).bind("throttledresize",A)})(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){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.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.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("silentscroll",F);((A(document).scrollTop()==0)?A(window):A(document)).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});A(window).bind("resize",F)});A(".ui-page").live("pagebeforeshow",function(T,W){var V=A(T.target),Z=V.find(":jqmData(role='footer')"),Y=Z.data("id"),S=W.prevPage,X=S&&S.find(":jqmData(role='footer')"),U=X.length&&X.jqmData("id")===Y;if(Y&&U){M=Z;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)});A(".ui-collapsible-contain").live("collapse expand",F);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.prop("checked",H==="radio"&&true||!(C.prop("checked")));D._getInputSet().not(C).prop("checked",false);D._updateAll();return false}});C.bind({vmousedown:function(){this._cacheVals()},vclick:function(){if(A(this).is(":checked")){A(this).prop("checked",true);D._getInputSet().not(A(this)).prop("checked",false)}else{A(this).prop("checked",false)}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(A(C[0]).prop("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.prop("disabled",true).parent().addClass("ui-disabled")},enable:function(){this.element.prop("disabled",false).parent().removeClass("ui-disabled")}})})(jQuery);(function(A,B){A.widget("mobile.textinput",A.mobile.widget,{options:{theme:null},_create:function(){var L=this.element,E=this.options,H=E.theme,O;if(!H){var F=this.element.closest("[class*='ui-bar-'],[class*='ui-body-']"),K=F.length&&/ui-(bar|body)-([a-z])/.exec(F.attr("class")),H=K&&K[2]||"c"}O=" ui-body-"+H;A('label[for="'+L.attr("id")+'"]').addClass("ui-input-text");L.addClass("ui-input-text ui-body-"+E.theme);var I=L;if(L.is("[type='search'],:jqmData(type='search')")){I=L.wrap('<div class="ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield'+O+'"></div>').parent();var M=A('<a href="#" class="ui-input-clear" title="clear text">clear text</a>').tap(function(P){L.val("").focus();L.trigger("change");M.addClass("ui-input-clear-hidden");P.preventDefault()}).appendTo(I).buttonMarkup({icon:"delete",iconpos:"notext",corners:true,shadow:true});function D(){if(L.val()==""){M.addClass("ui-input-clear-hidden")}else{M.removeClass("ui-input-clear-hidden")}}D();L.keyup(D);L.focus(D)}else{L.addClass("ui-corner-all ui-shadow-inset"+O)}L.focus(function(){I.addClass("ui-focus")}).blur(function(){I.removeClass("ui-focus")});if(L.is("textarea")){var G=15,J=100,C=function(){var Q=L[0].scrollHeight,P=L[0].clientHeight;if(P<Q){L.css({height:(Q+G)})}},N;L.keyup(function(){clearTimeout(N);N=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(K||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,{transition:"pop"})}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"){C.menuPage.one("pagehide",D);window.history.back()}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(E){return this.each(function(){var K=B(this),L=B.extend({},B.fn.buttonMarkup.defaults,K.jqmData(),E),G,I="ui-btn-inner",F;if(A){A()}if(!L.theme){var H=K.closest("[class*='ui-bar-'],[class*='ui-body-']");L.theme=H.length?/ui-(bar|body)-([a-z])/.exec(H.attr("class"))[2]:"c"}G="ui-btn ui-btn-up-"+L.theme;if(L.inline){G+=" ui-btn-inline"}if(L.icon){L.icon="ui-icon-"+L.icon;L.iconpos=L.iconpos||"left";F="ui-icon "+L.icon;if(L.shadow){F+=" ui-icon-shadow"}}if(L.iconpos){G+=" ui-btn-icon-"+L.iconpos;if(L.iconpos=="notext"&&!K.attr("title")){K.attr("title",K.text())}}if(L.corners){G+=" ui-btn-corner-all";I+=" ui-btn-corner-all"}if(L.shadow){G+=" ui-shadow"}K.attr("data-"+B.mobile.ns+"theme",L.theme).addClass(G);var J=("<D class='"+I+"'><D class='ui-btn-text'></D>"+(L.icon?"<span class='"+F+"'></span>":"")+"</D>").replace(/D/g,L.wrapperEls);K.wrapInner(J)})};B.fn.buttonMarkup.defaults={corners:true,shadow:true,iconshadow:true,wrapperEls:"span"};function D(E){while(E){var F=B(E);if(F.hasClass("ui-btn")&&!F.hasClass("ui-disabled")){break}E=E.parentNode}return E}var A=function(){B(document).bind({vmousedown:function(G){var E=D(G.target);if(E){var 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);if(E){var 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);if(E){var 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);if(E){var F=B(E),H=F.attr("data-"+B.mobile.ns+"theme");F.removeClass("ui-btn-hover-"+H).addClass("ui-btn-up-"+H)}}});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).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()&&A(J.target).closest(".ui-collapsible-contain").is(C)){J.preventDefault();D.addClass("ui-collapsible-heading-collapsed").find(".ui-collapsible-heading-status").text(F.expandCueText).end().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(J.target).closest(".ui-collapsible-contain").siblings(".ui-collapsible-contain").trigger("collapse")});var G=H.find(":jqmData(role='collapsible'):first");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("vclick",function(J){if(D.is(".ui-collapsible-heading-collapsed")){C.trigger("expand")}else{C.trigger("collapse")}J.preventDefault()})}})})(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,C){var 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 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()},_itemApply:function(D,E){E.find(".ui-li-count").addClass("ui-btn-up-"+(D.jqmData("counttheme")||this.options.countTheme)+" ui-btn-corner-all").end().find("h1, h2, h3, h4, h5, h6").addClass("ui-li-heading").end().find("p, dl").addClass("ui-li-desc").end().find(">img:eq(0), .ui-link-inherit>img:eq(0)").addClass("ui-li-thumb").each(function(){E.addClass(A(this).is(".ui-li-icon")?"ui-li-has-icon":"ui-li-has-thumb")}).end().find(".ui-li-aside").each(function(){var F=A(this);F.prependTo(F.parent())})},_removeCorners:function(D){D.add(D.find(".ui-btn-inner, .ui-li-link-alt, .ui-li-thumb")).removeClass("ui-corner-top ui-corner-bottom ui-corner-br ui-corner-bl ui-corner-tr ui-corner-tl")},refresh:function(N){this._createSubPages();var R=this.options,D=this.element,Q=this,V=D.jqmData("dividertheme")||R.dividerTheme,O=D.jqmData("splittheme"),I=D.jqmData("spliticon"),P=D.children("li"),L=A.support.cssPseudoElement||!A.nodeName(D[0],"ol")?0:1;if(L){D.find(".ui-li-dec").remove()}for(var J=0,G=P.length;J<G;J++){var T=P.eq(J),E="ui-li";if(N||!T.hasClass("ui-li")){var M=T.jqmData("theme")||R.theme,U=T.children("a");if(U.length){var S=T.jqmData("icon");T.buttonMarkup({wrapperEls:"div",shadow:false,corners:false,iconpos:"right",icon:U.length>1||S===false?false:S||"arrow-r",theme:M});U.first().addClass("ui-link-inherit");if(U.length>1){E+=" ui-li-has-alt";var K=U.last(),H=O||K.jqmData("theme")||R.splitTheme;K.appendTo(T).attr("title",K.text()).addClass("ui-li-link-alt").empty().buttonMarkup({shadow:false,corners:false,theme:M,icon:false,iconpos:false}).find(".ui-btn-inner").append(A("<span />").buttonMarkup({shadow:true,corners:true,theme:H,iconpos:"notext",icon:I||K.jqmData("icon")||R.splitIcon}))}}else{if(T.jqmData("role")==="list-divider"){E+=" ui-li-divider ui-btn ui-bar-"+V;T.attr("role","heading");if(L){L=1}}else{E+=" ui-li-static ui-body-"+M}}}if(R.inset){if(J===0){E+=" ui-corner-top";T.add(T.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-tr").end().find(".ui-li-thumb").addClass("ui-corner-tl");if(T.next().next().length){Q._removeCorners(T.next())}}if(J===P.length-1){E+=" ui-corner-bottom";T.add(T.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-br").end().find(".ui-li-thumb").addClass("ui-corner-bl");if(T.prev().prev().length){Q._removeCorners(T.prev())}}}if(L&&E.indexOf("ui-li-divider")<0){var F=T.is(".ui-li-static:first")?T:T.find(".ui-link-inherit");F.addClass("ui-li-jsnumbering").prepend("<span class='ui-li-dec'>"+(L++)+". </span>")}T.add(T.children(".ui-btn-inner")).addClass(E);if(!N){Q._itemApply(D,T)}}},_idStringEscape:function(D){return D.replace(/[^a-zA-Z0-9]/g,"-")},_createSubPages:function(){var J=this.element,K=J.closest(".ui-page"),D=K.jqmData("url"),G=D||K[0][A.expando],E=J.attr("id"),F=this.options,H="data-"+A.mobile.ns,L=this,I=K.find(":jqmData(role='footer')").jqmData("id");if(typeof (B[G])==="undefined"){B[G]=-1}E=E||++B[G];A(J.find("li>ul, li>ol").toArray().reverse()).each(function(P){var R=A(this),M=R.attr("id")||E+"-"+P,Q=R.parent(),O=A(R.prevAll().toArray().reverse()),O=O.length?O:A("<span>"+A.trim(Q.contents()[0].nodeValue)+"</span>"),S=O.first().text(),T=(D||"")+"&"+A.mobile.subPageUrlKey+"="+M;theme=R.jqmData("theme")||F.theme,countTheme=R.jqmData("counttheme")||J.jqmData("counttheme")||F.countTheme,newPage=R.detach().wrap("<div "+H+"role='page' "+H+"url='"+T+"' "+H+"theme='"+theme+"' "+H+"count-theme='"+countTheme+"'><div "+H+"role='content'></div></div>").parent().before("<div "+H+"role='header' "+H+"theme='"+F.headerTheme+"'><div class='ui-title'>"+S+"</div></div>").after(I?A("<div "+H+"role='footer' "+H+"id='"+I+"'>"):"").parent().appendTo(A.mobile.pageContainer);newPage.page();var N=Q.find("a:first");if(!N.length){N=A("<a />").html(O||S).prependTo(Q.empty())}N.attr("href","#"+T)}).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(":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 L=this.value.toLowerCase(),J=null,M=A(this).jqmData("lastval")+"";A(this).jqmData("lastval",L);change=L.replace(new RegExp("^"+M),"");if(L.length<M.length||change.length!=(L.length-M.length)){J=E.children()}else{J=E.children(":not(.ui-screen-hidden)")}if(L){var I,K=false,H="";for(var G=J.length-1;G>=0;G--){I=A(J[G]);H=I.jqmData("filtertext")||I.text();if(I.is("li:jqmData(role=list-divider)")){I.toggleClass("ui-filter-hidequeue",!K);K=false}else{if(H.toLowerCase().indexOf(L)===-1){I.toggleClass("ui-filter-hidequeue",true)}else{K=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)}}).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.element;C.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");C.bind("vclick submit",function(F){var D=A(F.target).closest(F.type==="vclick"?"a":"form");if(D.length&&!D.jqmData("transition")){var E=A.mobile.urlHistory.getActive()||{};D.attr("data-"+A.mobile.ns+"transition",(E.transition||A.mobile.defaultDialogTransition)).attr("data-"+A.mobile.ns+"direction","reverse")}}).bind("pagehide",function(){A(this).find("."+A.mobile.activeBtnClass).removeClass(A.mobile.activeBtnClass)})},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 }if(D.blackberry&&!D.WebKitPoint||D.operamini&&Object.prototype.toString.call(D.operamini)==="[object OperaMini]"){E.mobile.ajaxEnabled=false}B.addClass("ui-mobile ui-mobile-rendering");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;E.extend(E.mobile,{showPageLoadingMsg:function(){if(E.mobile.loadingMessage){var H=E("."+E.mobile.activeBtnClass).first();C.appendTo(E.mobile.pageContainer).css({top:E.support.scrollTop&&E(D).scrollTop()+E(D).height()/2||H.length&&H.offset().top||100})}B.addClass("ui-loading")},hidePageLoadingMsg:function(){B.removeClass("ui-loading")},pageLoading:function(H){if(H){E.mobile.hidePageLoadingMsg()}else{E.mobile.showPageLoadingMsg()}},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.showPageLoadingMsg();if(!E.mobile.hashListeningEnabled||!E.mobile.path.stripHash(location.hash)){E.mobile.changePage(E.mobile.firstPage,{transition:"none",reverse:true,changeHash:false,fromHashChange:true})}else{F.trigger("hashchange",[true])}}});E(function(){D.scrollTo(0,1);E.mobile.defaultHomeScroll=(!E.support.scrollTop||E(D).scrollTop()===1)?0:1;E(E.mobile.initializePage);F.load(E.mobile.silentScroll)})})(jQuery,this);