// jquery mobile framework customized for camera slideshow, made by // 'jquery.mobile.define.js', // 'jquery.ui.widget.js', // 'jquery.mobile.widget.js', // 'jquery.mobile.media.js', // 'jquery.mobile.support.js', // 'jquery.mobile.vmouse.js', // 'jquery.mobile.event.js', // 'jquery.mobile.core.js' window.define=function(){array.prototype.slice.call(arguments).pop()(window.jquery)};define(["jquery"],function(a){(function(a,b){if(a.cleandata){var c=a.cleandata;a.cleandata=function(b){for(var d=0,e;(e=b[d])!=null;d++){a(e).triggerhandler("remove")}c(b)}}else{var d=a.fn.remove;a.fn.remove=function(b,c){return this.each(function(){if(!c){if(!b||a.filter(b,[this]).length){a("*",this).add([this]).each(function(){a(this).triggerhandler("remove")})}}return d.call(a(this),b,c)})}}a.widget=function(b,c,d){var e=b.split(".")[0],f;b=b.split(".")[1];f=e+"-"+b;if(!d){d=c;c=a.widget}a.expr[":"][f]=function(c){return!!a.data(c,b)};a[e]=a[e]||{};a[e][b]=function(a,b){if(arguments.length){this._createwidget(a,b)}};var g=new c;g.options=a.extend(true,{},g.options);a[e][b].prototype=a.extend(true,g,{namespace:e,widgetname:b,widgeteventprefix:a[e][b].prototype.widgeteventprefix||b,widgetbaseclass:f},d);a.widget.bridge(b,a[e][b])};a.widget.bridge=function(c,d){a.fn[c]=function(e){var f=typeof e==="string",g=array.prototype.slice.call(arguments,1),h=this;e=!f&&g.length?a.extend.apply(null,[true,e].concat(g)):e;if(f&&e.charat(0)==="_"){return h}if(f){this.each(function(){var d=a.data(this,c);if(!d){throw"cannot call methods on "+c+" prior to initialization; "+"attempted to call method '"+e+"'"}if(!a.isfunction(d[e])){throw"no such method '"+e+"' for "+c+" widget instance"}var f=d[e].apply(d,g);if(f!==d&&f!==b){h=f;return false}})}else{this.each(function(){var b=a.data(this,c);if(b){b.option(e||{})._init()}else{a.data(this,c,new d(e,this))}})}return h}};a.widget=function(a,b){if(arguments.length){this._createwidget(a,b)}};a.widget.prototype={widgetname:"widget",widgeteventprefix:"",options:{disabled:false},_createwidget:function(b,c){a.data(c,this.widgetname,this);this.element=a(c);this.options=a.extend(true,{},this.options,this._getcreateoptions(),b);var d=this;this.element.bind("remove."+this.widgetname,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getcreateoptions:function(){var b={};if(a.metadata){b=a.metadata.get(element)[this.widgetname]}return b},_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(c,d){var e=c;if(arguments.length===0){return a.extend({},this.options)}if(typeof c==="string"){if(d===b){return this.options[c]}e={};e[c]=d}this._setoptions(e);return this},_setoptions:function(b){var c=this;a.each(b,function(a,b){c._setoption(a,b)});return this},_setoption:function(a,b){this.options[a]=b;if(a==="disabled"){this.widget()[b?"addclass":"removeclass"](this.widgetbaseclass+"-disabled"+" "+"ui-state-disabled").attr("aria-disabled",b)}return this},enable:function(){return this._setoption("disabled",false)},disable:function(){return this._setoption("disabled",true)},_trigger:function(b,c,d){var e=this.options[b];c=a.event(c);c.type=(b===this.widgeteventprefix?b:this.widgeteventprefix+b).tolowercase();d=d||{};if(c.originalevent){for(var f=a.event.props.length,g;f;){g=a.event.props[--f];c[g]=c.originalevent[g]}}this.element.trigger(c,d);return!(a.isfunction(e)&&e.call(this.element[0],c,d)===false||c.isdefaultprevented())}}})(jquery)});define(["jquery","./jquery.ui.widget"],function(a){(function(a,b){a.widget("mobile.widget",{_createwidget:function(){a.widget.prototype._createwidget.apply(this,arguments);this._trigger("init")},_getcreateoptions:function(){var c=this.element,d={};a.each(this.options,function(a){var e=c.jqmdata(a.replace(/[a-z]/g,function(a){return"-"+a.tolowercase()}));if(e!==b){d[a]=e}});return d},enhancewithin:function(b){var c=a.mobile.closestpagedata(a(b)),d=c&&c.keepnativeselector()||"";a(this.options.initselector,b).not(d)[this.widgetname]()}})})(jquery)});define(["jquery","./jquery.mobile.core"],function(a){(function(a,b){var c=a(window),d=a("html");a.mobile.media=function(){var b={},c=a("
"),e=a("").append(c);return function(a){if(!(a in b)){var f=document.createelement("style"),g="@media "+a+" { #jquery-mediatest { position:absolute; } }";f.type="text/css";if(f.stylesheet){f.stylesheet.csstext=g}else{f.appendchild(document.createtextnode(g))}d.prepend(e).prepend(f);b[a]=c.css("position")==="absolute";e.add(f).remove()}return b[a]}}()})(jquery)});define(["jquery","./jquery.mobile.media"],function(a){(function(a,b){function m(){var b=location.protocol+"//"+location.host+location.pathname+"ui-dir/",d=a("head base"),e=null,f="",g,h;if(!d.length){d=e=a("",{href:b}).appendto("head")}else{f=d.attr("href")}g=a("").prependto(c);h=g[0].href;d[0].href=f||location.pathname;if(e){e.remove()}return h.indexof(b)===0}function l(){var b="transform-3d";return k("perspective","10px","moz")||a.mobile.media("(-"+e.join("-"+b+"),(-")+"-"+b+"),("+b+")")}function k(a,b,c){var d=document.createelement("div"),f=function(a){return a.charat(0).touppercase()+a.substr(1)},g=function(a){return"-"+a.charat(0).tolowercase()+a.substr(1)+"-"},h=function(c){var e=g(c)+a+": "+b+";",h=f(c),i=h+f(a);d.setattribute("style",e);if(!!d.style[i]){k=true}},j=c?[c]:e,k;for(i=0;i").prependto("html"),d=c[0].style,e=["webkit","moz","o"],f="palmgetresource"in window,g=window.operamini&&{}.tostring.call(window.operamini)==="[object operamini]",h=window.blackberry;a.extend(a.mobile,{browser:{}});a.mobile.browser.ie=function(){var a=3,b=document.createelement("div"),c=b.all||[];while(b.innerhtml="",c[0]){}return a>4?a:!a}();a.extend(a.support,{orientation:"orientation"in window&&"onorientationchange"in window,touch:"ontouchend"in document,csstransitions:"webkittransitionevent"in window||k("transition","height 100ms linear"),pushstate:"pushstate"in history&&"replacestate"in history,mediaquery:a.mobile.media("only all"),csspseudoelement:!!j("content"),touchoverflow:!!j("overflowscrolling"),csstransform3d:l(),boxshadow:!!j("boxshadow")&&!h,scrolltop:("pagexoffset"in window||"scrolltop"in document.documentelement||"scrolltop"in c[0])&&!f&&!g,dynamicbasetag:m()});c.remove();var n=function(){var a=window.navigator.useragent;return a.indexof("nokia")>-1&&(a.indexof("symbian/3")>-1||a.indexof("series60/5")>-1)&&a.indexof("applewebkit")>-1&&a.match(/(browserng|nokiabrowser)\/7\.[0-3]/)}();a.mobile.ajaxblacklist=window.blackberry&&!window.webkitpoint||g||n;if(n){a(function(){a("head link[rel='stylesheet']").attr("rel","alternate stylesheet").attr("rel","stylesheet")})}if(!a.support.boxshadow){a("html").addclass("ui-mobile-nosupport-boxshadow")}})(jquery)});define(["jquery"],function(a){(function(a,b,c,d){function o(b){var c=b.substr(1);return{setup:function(d,f){if(!m(this)){a.data(this,e,{})}var g=a.data(this,e);g[b]=true;k[b]=(k[b]||0)+1;if(k[b]===1){t.bind(c,h)}a(this).bind(c,n);if(s){k["touchstart"]=(k["touchstart"]||0)+1;if(k["touchstart"]===1){t.bind("touchstart",i).bind("touchend",l).bind("touchmove",k).bind("scroll",j)}}},teardown:function(d,f){--k[b];if(!k[b]){t.unbind(c,h)}if(s){--k["touchstart"];if(!k["touchstart"]){t.unbind("touchstart",i).unbind("touchmove",k).unbind("touchend",l).unbind("scroll",j)}}var g=a(this),h=a.data(this,e);if(h){h[b]=false}g.unbind(c,n);if(!m(this)){g.removedata(e)}}}}function n(){}function m(b){var c=a.data(b,e),d;if(c){for(d in c){if(c[d]){return true}}}return false}function l(a){if(r){return}b();var b=y(a.target),c;g("vmouseup",a,b);if(!o){var d=g("vclick",a,b);if(d&&d.isdefaultprevented()){c=w(a).changedtouches[0];p.push({touchid:v,x:c.clientx,y:c.clienty});q=true}}g("vmouseout",a,b);o=false;e()}function k(b){if(r){return}var c=w(b).touches[0],d=o,e=a.vmouse.movedistancethreshold;o=o||math.abs(c.pagex-m)>e||math.abs(c.pagey-n)>e,flags=y(b.target);if(o&&!d){g("vmousecancel",b,flags)}g("vmousemove",b,flags);e()}function j(a){if(r){return}if(!o){g("vmousecancel",a,y(a.target))}o=true;e()}function i(b){var c=w(b).touches,d,e;if(c&&c.length===1){d=b.target;e=y(d);if(e.hasvirtualbinding){v=u++;a.data(d,f,v);f();d();o=false;var g=w(b).touches[0];m=g.pagex;n=g.pagey;g("vmouseover",b,e);g("vmousedown",b,e)}}}function h(b){var c=a.data(b.target,f);if(!q&&(!v||v!==c)){var d=g("v"+b.type,b);if(d){if(d.isdefaultprevented()){b.preventdefault()}if(d.ispropagationstopped()){b.stoppropagation()}if(d.isimmediatepropagationstopped()){b.stopimmediatepropagation()}}}}function g(b,c,d){var e;if(d&&d[b]||!d&&z(c.target,b)){e=x(c,b);a(c.target).trigger(e)}return e}function f(){if(l){cleartimeout(l);l=0}}function e(){f();l=settimeout(function(){l=0;c()},a.vmouse.resettimerduration)}function d(){a()}function c(){v=0;p.length=0;q=false;b()}function b(){r=true}function a(){r=false}function z(b,c){var d;while(b){d=a.data(b,e);if(d&&(!c||d[c])){return b}b=b.parentnode}return null}function y(b){var c={},d,f;while(b){d=a.data(b,e);for(f in d){if(d[f]){c[f]=c.hasvirtualbinding=true}}b=b.parentnode}return c}function x(b,c){var e=b.type,f,g,i,k,l,m,n,o;b=a.event(b);b.type=c;f=b.originalevent;g=a.event.props;if(e.search(/mouse/)>-1){g=j}if(f){for(n=g.length,k;n;){k=g[--n];b[k]=f[k]}}if(e.search(/mouse(down|up)|click/)>-1&&!b.which){b.which=1}if(e.search(/^touch/)!==-1){i=w(f);e=i.touches;l=i.changedtouches;m=e&&e.length?e[0]:l&&l.length?l[0]:d;if(m){for(o=0,len=h.length;oa.event.special.swipe.scrollsupressionthreshold){b.preventdefault()}}var e=b.originalevent.touches?b.originalevent.touches[0]:b,f={time:(new date).gettime(),coords:[e.pagex,e.pagey],origin:a(b.target)},i;d.bind(h,j).one(g,function(b){d.unbind(h,j);if(f&&i){if(i.time-f.timea.event.special.swipe.horizontaldistancethreshold&&math.abs(f.coords[1]-i.coords[1])i.coords[0]?"swipeleft":"swiperight")}}f=i=c})})}};(function(a,b){function j(){var a=e();if(a!==f){f=a;c.trigger("orientationchange")}}var c=a(b),d,e,f,g,h,i={0:true,180:true};if(a.support.orientation){g=a.mobile.media("all and (orientation: landscape)");h=i[b.orientation];if(g&&h||!g&&!h){i={"-90":true,90:true}}}a.event.special.orientationchange=d={setup:function(){if(a.support.orientation&&a.mobile.orientationchangeenabled){return false}f=e();c.bind("throttledresize",j)},teardown:function(){if(a.support.orientation&&a.mobile.orientationchangeenabled){return false}c.unbind("throttledresize",j)},add:function(a){var b=a.handler;a.handler=function(a){a.orientation=e();return b.apply(this,arguments)}}};a.event.special.orientationchange.orientation=e=function(){var c=true,d=document.documentelement;if(a.support.orientation){c=i[b.orientation]}else{c=d&&d.clientwidth/d.clientheight<1.1}return c?"portrait":"landscape"}})(jquery,b);(function(){a.event.special.throttledresize={setup:function(){a(this).bind("resize",c)},teardown:function(){a(this).unbind("resize",c)}};var b=250,c=function(){f=(new date).gettime();g=f-d;if(g>=b){d=f;a(this).trigger("throttledresize")}else{if(e){cleartimeout(e)}e=settimeout(c,b-g)}},d=0,e,f,g})();a.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(b,c){a.event.special[b]={setup:function(){a(this).bind(c,a.noop)}}})})(jquery,this)});define(["jquery","../external/requirejs/text!../version.txt","./jquery.mobile.widget"],function(a,b){(function(a,c,d){var e={};a.mobile=a.extend({},{version:b,ns:"",subpageurlkey:"ui-page",activepageclass:"ui-page-active",activebtnclass:"ui-btn-active",focusclass:"ui-focus",ajaxenabled:true,hashlisteningenabled:true,linkbindingenabled:true,defaultpagetransition:"fade",maxtransitionwidth:false,minscrollback:10,touchoverflowenabled:false,defaultdialogtransition:"pop",loadingmessage:"loading",pageloaderrormessage:"error loading page",loadingmessagetextvisible:false,loadingmessagetheme:"a",pageloaderrormessagetheme:"e",autoinitializepage:true,pushstateenabled:true,orientationchangeenabled:true,gradea:function(){return a.support.mediaquery||a.mobile.browser.ie&&a.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(b){if(a.type(b)!=="number"){b=a.mobile.defaulthomescroll}a.event.special.scrollstart.enabled=false;settimeout(function(){c.scrollto(0,b);a(document).trigger("silentscroll",{x:0,y:b})},20);settimeout(function(){a.event.special.scrollstart.enabled=true},150)},nsnormalizedict:e,nsnormalize:function(b){if(!b){return}return e[b]||(e[b]=a.camelcase(a.mobile.ns+b))},getinheritedtheme:function(a,b){var c=a[0],d="",e=/ui-(bar|body)-([a-z])\b/,f,g;while(c){var f=c.classname||"";if((g=e.exec(f))&&(d=g[2])){break}c=c.parentnode}return d||b||"a"},closestpagedata:function(a){return a.closest(':jqmdata(role="page"), :jqmdata(role="dialog")').data("page")}},a.mobile);a.fn.jqmdata=function(b,c){var d;if(typeof b!="undefined"){d=this.data(b?a.mobile.nsnormalize(b):b,c)}return d};a.jqmdata=function(b,c,d){var e;if(typeof c!="undefined"){e=a.data(b,c?a.mobile.nsnormalize(c):c,d)}return e};a.fn.jqmremovedata=function(b){return this.removedata(a.mobile.nsnormalize(b))};a.jqmremovedata=function(b,c){return a.removedata(b,a.mobile.nsnormalize(c))};a.fn.removewithdependents=function(){a.removewithdependents(this)};a.removewithdependents=function(b){var c=a(b);(c.jqmdata("dependents")||a()).remove();c.remove()};a.fn.adddependents=function(b){a.adddependents(a(this),b)};a.adddependents=function(b,c){var d=a(b).jqmdata("dependents")||a();a(b).jqmdata("dependents",a.merge(d,c))};a.fn.getencodedtext=function(){return a("
").text(a(this).text()).html()};var f=a.find,g=/:jqmdata\(([^)]*)\)/g;a.find=function(b,c,d,e){b=b.replace(g,"[data-"+(a.mobile.ns||"")+"$1]");return f.call(this,b,c,d,e)};a.extend(a.find,f);a.find.matches=function(b,c){return a.find(b,null,null,c)};a.find.matchesselector=function(b,c){return a.find(c,null,null,[b]).length>0}})(jquery,this)})