/*! jQuery Mobile v1.1.0-rc.1 jquerymobile.com | jquery.org/license */ (function(G,q,k){typeof define==="function"&&define.amd?define(["jquery"],function(a){k(a,G,q);return a.mobile}):k(G.jQuery,G,q)})(this,document,function(G,q,k){(function(a,c,b,g){function e(a){for(;a&&typeof a.originalEvent!=="undefined";)a=a.originalEvent;return a}function d(b){for(var d={},e,f;b;){e=a.data(b,v);for(f in e)if(e[f])d[f]=d.hasVirtualBinding=true;b=b.parentNode}return d}function f(){y&&(clearTimeout(y),y=0);y=setTimeout(function(){E=y=0;C.length=0;z=false;F=true},a.vmouse.resetTimerDuration)} function h(b,d,f){var c,h;if(!(h=f&&f[b])){if(f=!f)a:{for(f=d.target;f;){if((h=a.data(f,v))&&(!b||h[b]))break a;f=f.parentNode}f=null}h=f}if(h){c=d;var f=c.type,z,j;c=a.Event(c);c.type=b;h=c.originalEvent;z=a.event.props;f.search(/mouse/)>-1&&(z=w);if(h)for(j=z.length;j;)b=z[--j],c[b]=h[b];if(f.search(/mouse(down|up)|click/)>-1&&!c.which)c.which=1;if(f.search(/^touch/)!==-1&&(b=e(h),f=b.touches,b=b.changedTouches,f=f&&f.length?f[0]:b&&b.length?b[0]:g))for(h=0,len=u.length;hz||Math.abs(c.pageY-D)>z;flags=d(b.target);A&&!g&&h("vmousecancel",b,flags);h("vmousemove",b,flags);f()}}function l(a){if(!F){F=true;var b=d(a.target),c;h("vmouseup",a,b);if(!A&&(c=h("vclick",a,b))&&c.isDefaultPrevented())c=e(a).changedTouches[0],C.push({touchID:E,x:c.clientX,y:c.clientY}),z=true;h("vmouseout",a,b);A=false;f()}}function r(b){var b= a.data(b,v),d;if(b)for(d in b)if(b[d])return true;return false}function n(){}function k(b){var d=b.substr(1);return{setup:function(){r(this)||a.data(this,v,{});a.data(this,v)[b]=true;t[b]=(t[b]||0)+1;t[b]===1&&H.bind(d,j);a(this).bind(d,n);if(J)t.touchstart=(t.touchstart||0)+1,t.touchstart===1&&H.bind("touchstart",p).bind("touchend",l).bind("touchmove",o).bind("scroll",m)},teardown:function(){--t[b];t[b]||H.unbind(d,j);J&&(--t.touchstart,t.touchstart||H.unbind("touchstart",p).unbind("touchmove",o).unbind("touchend", l).unbind("scroll",m));var e=a(this),f=a.data(this,v);f&&(f[b]=false);e.unbind(d,n);r(this)||e.removeData(v)}}}var v="virtualMouseBindings",x="virtualTouchID",c="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),u="clientX clientY pageX pageY screenX screenY".split(" "),w=a.event.props.concat(a.event.mouseHooks?a.event.mouseHooks.props:[]),t={},y=0,q=0,D=0,A=false,C=[],z=false,F=false,J="addEventListener"in b,H=a(b),K=1,E=0;a.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10, resetTimerDuration:1500};for(var I=0;I7);a.fn[e]=function(a){return a?this.bind(e,a):this.trigger(e)};a.fn[e].delay=50;h[e]=a.extend(h[e],{setup:function(){if(p)return false;a(f.start)},teardown:function(){if(p)return false;a(f.stop)}});f=function(){function f(){var b=g(),d=v(r);if(b!==r)k(r=b,d),a(c).trigger(e);else if(d!==r)location.href=location.href.replace(/#.*/,"")+d;j=setTimeout(f,a.fn[e].delay)}var h={},j,r=g(),n=function(a){return a},k= n,v=n;h.start=function(){j||f()};h.stop=function(){j&&clearTimeout(j);j=b};a.browser.msie&&!p&&function(){var b,c;h.start=function(){if(!b)c=(c=a.fn[e].src)&&c+g(),b=a('