/*!
* 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 k=this.options[f];g=b.Event(g);g.type=(f===this.widgetEventPrefix?f:this.widgetEventPrefix+f).toLowerCase();h=h||{};if(g.originalEvent){for(var e=b.event.props.length,j;e;){j=b.event.props[--e];g[j]=g.originalEvent[j]}}this.element.trigger(g,h);return !(b.isFunction(k)&&k.call(this.element[0],g,h)===false||g.isDefaultPrevented())}}})(jQuery);(function(a,b){a.widget("mobile.widget",{_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("
"),i=c("").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("").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(){var n=location.protocol+"//"+location.host+location.pathname+"ui-dir/",m=e("head base"),o=null,j="";if(!m.length){m=o=e("
",{href:n}).appendTo("head")}else{j=m.attr("href")}var l=e("
").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="",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(y,F,d,l){var E="virtualMouseBindings",b="virtualTouchID",a="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),x="clientX clientY pageX pageY screenX screenY".split(" "),A={},G=0,t=0,s=0,q=0,o=0,p=false,J=[],f=false,L=y.support.scrollTop,v=y.support.eventCapture,u=y(d),D=1,N=0;y.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};function r(i){while(i&&typeof i.originalEvent!=="undefined"){i=i.originalEvent}return i}function g(S,T){var aa=S.type;S=y.Event(S);S.type=T;var ab=S.originalEvent;var Z=y.event.props;if(ab){for(var W=Z.length,R;W;){R=Z[--W];S[R]=ab[R]}}if(aa.search(/^touch/)!==-1){var U=r(ab),aa=U.touches,X=U.changedTouches,V=(aa&&aa.length)?aa[0]:((X&&X.length)?X[0]:l);if(V){for(var W=0,Y=x.length;W
T||Math.abs(S.pageY-s)>T);var i=P(U.target);if(p&&!R){m("vmousecancel",U,i)}m("vmousemove",U,i);w()}function e(S){j();var i=P(S.target);m("vmouseup",S,i);if(!p){if(m("vclick",S,i)){var R=r(S).changedTouches[0];J.push({touchID:N,x:R.clientX,y:R.clientY});f=true}}m("vmouseout",S,i);p=false;w()}function C(R){var S=R.data(E),i;if(S){for(i in S){if(S[i]){return true}}}return false}function M(){}function k(i){var R=i.substr(1);return{setup:function(T,S){var U=y(this);if(!C(U)){U.data(E,{})}var V=U.data(E);V[i]=true;A[i]=(A[i]||0)+1;if(A[i]===1){u.bind(R,h)}U.bind(R,M);if(v){A.touchstart=(A.touchstart||0)+1;if(A.touchstart===1){u.bind("touchstart",O)}}},teardown:function(T,S){--A[i];if(!A[i]){u.unbind(R,h)}if(v){--A.touchstart;if(!A.touchstart){u.unbind("touchstart",O)}}var U=y(this),V=U.data(E);V[i]=false;U.unbind(R,M);if(!C(U)){U.removeData(E)}}}}for(var K=0;K10){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=$('').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('