text: if(!window.jq||typeof jq!=="function"){var jq=function(c){function g(i,b,a){var d=r.createDocumentFragment();if(a){for(a=i.length-1;a>=0;a--)d.insertBefore(i[a],d.firstChild);b.insertBefore(d,b.firstChild)}else{for(a=0;a<i.length;a++)d.appendChild(i[a]);b.appendChild(d)}}function f(i){return i in C?C[i]:C[i]=RegExp("(^|\\s)"+i+"(\\s|$)")}function l(i){for(var b=0;b<i.length;b++)i.indexOf(i[b])!=b&&(i.splice(b,1),b--);return i}function h(i,b){var a=[];if(i==o)return a;for(;i;i=i.nextSibling)i.nodeType==
  1&&i!==b&&a.push(i);return a}function m(i,b){try{return b.querySelectorAll(i)}catch(a){return[]}}function n(i,b){if(i){if(i.nodeType)return b[b.length++]=i;for(var a=0,d=i.length;a<d;a++)b[b.length++]=i[a]}}function a(){}function d(i,b){i.os={};i.os.webkit=b.match(/WebKit\/([\d.]+)/)?!0:!1;i.os.android=b.match(/(Android)\s+([\d.]+)/)||b.match(/Silk-Accelerated/)?!0:!1;i.os.androidICS=i.os.android&&b.match(/(Android)\s4/)?!0:!1;i.os.ipad=b.match(/(iPad).*OS\s([\d_]+)/)?!0:!1;i.os.iphone=!i.os.ipad&&
  b.match(/(iPhone\sOS)\s([\d_]+)/)?!0:!1;i.os.webos=b.match(/(webOS|hpwOS)[\s\/]([\d.]+)/)?!0:!1;i.os.touchpad=i.os.webos&&b.match(/TouchPad/)?!0:!1;i.os.ios=i.os.ipad||i.os.iphone;i.os.playbook=b.match(/PlayBook/)?!0:!1;i.os.blackberry=i.os.playbook||b.match(/BlackBerry/)?!0:!1;i.os.blackberry10=i.os.blackberry&&b.match(/Safari\/536/)?!0:!1;i.os.chrome=b.match(/Chrome/)?!0:!1;i.os.opera=b.match(/Opera/)?!0:!1;i.os.fennec=b.match(/fennec/i)?!0:b.match(/Firefox/)?!0:!1;i.os.ie=b.match(/MSIE 10.0/i)?
  !0:!1;i.os.ieTouch=i.os.ie&&b.toLowerCase().match(/touch/i)?!0:!1;i.os.supportsTouch=c.DocumentTouch&&r instanceof c.DocumentTouch||"ontouchstart"in c;i.feat={};var a=r.documentElement.getElementsByTagName("head")[0];i.feat.nativeTouchScroll=typeof a.style["-webkit-overflow-scrolling"]!=="undefined"&&i.os.ios;i.feat.cssPrefix=i.os.webkit?"Webkit":i.os.fennec?"Moz":i.os.ie?"ms":i.os.opera?"O":"";i.feat.cssTransformStart=!i.os.opera?"3d(":"(";i.feat.cssTransformEnd=!i.os.opera?",0)":")";if(i.os.android&&
  !i.os.webkit)i.os.android=!1}function e(i){return i._jqmid||(i._jqmid=K++)}function q(i,b,a,d){b=A(b);if(b.ns)var c=RegExp("(?:^| )"+b.ns.replace(" "," .* ?")+"(?: |$)");return(t[e(i)]||[]).filter(function(i){return i&&(!b.e||i.e==b.e)&&(!b.ns||c.test(i.ns))&&(!a||i.fn==a||typeof i.fn==="function"&&typeof a==="function"&&""+i.fn===""+a)&&(!d||i.sel==d)})}function A(i){i=(""+i).split(".");return{e:i[0],ns:i.slice(1).sort().join(" ")}}function b(i,b,a){k.isObject(i)?k.each(i,a):i.split(/\s/).forEach(function(i){a(i,
  b)})}function p(i,a,d,c,p){var f=e(i),q=t[f]||(t[f]=[]);b(a,d,function(b,a){var d=p&&p(a,b),J=d||a,e=function(b){var a=J.apply(i,[b].concat(b.data));a===!1&&b.preventDefault();return a},d=k.extend(A(b),{fn:a,proxy:e,sel:c,del:d,i:q.length});q.push(d);i.addEventListener(d.e,e,!1)})}function s(i,a,d,c){var p=e(i);b(a||"",d,function(b,a){q(i,b,a,c).forEach(function(b){delete t[p][b.i];i.removeEventListener(b.e,b.proxy,!1)})})}function B(i){var b=k.extend({originalEvent:i},i);k.each(L,function(a,d){b[a]=
  function(){this[d]=M;return i[a].apply(i,arguments)};b[d]=N});return b}function w(i,b){if(b&&i.dispatchEvent){var a=k.Event("destroy",{bubbles:!1});i.dispatchEvent(a)}if((a=e(i))&&t[a]){for(var d in t[a])i.removeEventListener(t[a][d].e,t[a][d].proxy,!1);delete t[a]}}function z(i,b){if(i){var a=i.childNodes;if(a&&a.length>0)for(var d in a)z(a[d],b);w(i,b)}}var o,r=c.document,x=[],E=x.slice,C=[],O=1,P=/^\s*<(\w+)[^>]*>/,u={},y={},v=function(i,b){this.length=0;if(i)if(i instanceof v&&b==o)return i;else if(k.isFunction(i))return k(r).ready(i);
  else if(k.isArray(i)&&i.length!=o){for(var a=0;a<i.length;a++)this[this.length++]=i[a];return this}else if(k.isObject(i)&&k.isObject(b)){if(i.length==o)i.parentNode==b&&(this[this.length++]=i);else for(a=0;a<i.length;a++)i[a].parentNode==b&&(this[this.length++]=i[a]);return this}else if(k.isObject(i)&&b==o)return this[this.length++]=i,this;else if(b!==o){if(b instanceof v)return b.find(i)}else b=r;else return this;return this.selector(i,b)},k=function(i,b){return new v(i,b)};k.is$=function(i){return i instanceof
  v};k.map=function(i,b){var a,d=[],c;if(k.isArray(i))for(c=0;c<i.length;c++)a=b(i[c],c),a!==o&&d.push(a);else if(k.isObject(i))for(c in i)i.hasOwnProperty(c)&&(a=b(i[c],c),a!==o&&d.push(a));return k([d])};k.each=function(i,b){var a;if(k.isArray(i))for(a=0;a<i.length;a++){if(b(a,i[a])===!1)break}else if(k.isObject(i))for(a in i)if(i.hasOwnProperty(a)&&b(a,i[a])===!1)break;return i};k.extend=function(i){i==o&&(i=this);if(arguments.length===1){for(var b in i)this[b]=i[b];return this}else E.call(arguments,
  1).forEach(function(b){for(var a in b)i[a]=b[a]});return i};k.isArray=function(b){return b instanceof Array&&b.push!=o};k.isFunction=function(b){return typeof b==="function"};k.isObject=function(b){return typeof b==="object"};k.fn=v.prototype={constructor:v,forEach:x.forEach,reduce:x.reduce,push:x.push,indexOf:x.indexOf,concat:x.concat,selector:function(b,a){b=b.trim();if(b[0]==="#"&&b.indexOf(" ")===-1&&b.indexOf(">")===-1)a==r?n(a.getElementById(b.replace("#","")),this):n(m(b,a),this);else if(b[0]===
  "<"&&b[b.length-1]===">"){var d=r.createElement("div");d.innerHTML=b.trim();n(d.childNodes,this)}else n(m(b,a),this);return this},oldElement:o,slice:x.slice,setupOld:function(b){if(b==o)return k();b.oldElement=this;return b},map:function(b){var a,d=[],c;for(c=0;c<this.length;c++)a=b(c,this[c]),a!==o&&d.push(a);return k([d])},each:function(b){this.forEach(function(a,d){b.call(a,d,a)});return this},ready:function(b){r.readyState==="complete"||r.readyState==="loaded"||!k.os.ie&&r.readyState==="interactive"?
  b():r.addEventListener("DOMContentLoaded",b,!1);return this},find:function(b){if(this.length===0)return this;for(var a=[],d,c=0;c<this.length;c++){d=k(b,this[c]);for(var e=0;e<d.length;e++)a.push(d[e])}return k(l(a))},html:function(b,a){if(this.length===0)return this;if(b===o)return this[0].innerHTML;for(var d=0;d<this.length;d++)a!==!1&&k.cleanUpContent(this[d],!1,!0),this[d].innerHTML=b;return this},text:function(b){if(this.length===0)return this;if(b===o)return this[0].textContent;for(var a=0;a<
  this.length;a++)this[a].textContent=b;return this},css:function(b,a,d){d=d!=o?d:this[0];if(this.length===0)return this;if(a==o&&typeof b==="string")return c.getComputedStyle(d),d.style[b]?d.style[b]:c.getComputedStyle(d)[b];for(d=0;d<this.length;d++)if(k.isObject(b))for(var e in b)this[d].style[e]=b[e];else this[d].style[b]=a;return this},vendorCss:function(b,a,d){return this.css(k.feat.cssPrefix+b,a,d)},empty:function(){for(var b=0;b<this.length;b++)k.cleanUpContent(this[b],!1,!0),this[b].innerHTML=
  "";return this},hide:function(){if(this.length===0)return this;for(var b=0;b<this.length;b++)if(this.css("display",null,this[b])!="none")this[b].setAttribute("jqmOldStyle",this.css("display",null,this[b])),this[b].style.display="none";return this},show:function(){if(this.length===0)return this;for(var b=0;b<this.length;b++)if(this.css("display",null,this[b])=="none")this[b].style.display=this[b].getAttribute("jqmOldStyle")?this[b].getAttribute("jqmOldStyle"):"block",this[b].removeAttribute("jqmOldStyle");
  return this},toggle:function(b){for(var a=b===!0?!0:!1,d=0;d<this.length;d++)c.getComputedStyle(this[d]).display!=="none"||b!==o&&a===!1?(this[d].setAttribute("jqmOldStyle",this[d].style.display),this[d].style.display="none"):(this[d].style.display=this[d].getAttribute("jqmOldStyle")!=o?this[d].getAttribute("jqmOldStyle"):"block",this[d].removeAttribute("jqmOldStyle"));return this},val:function(b){if(this.length===0)return b===o?o:this;if(b==o)return this[0].value;for(var a=0;a<this.length;a++)this[a].value=
  b;return this},attr:function(b,a){if(this.length===0)return a===o?o:this;if(a===o&&!k.isObject(b))return this[0].jqmCacheId&&u[this[0].jqmCacheId][b]?this[0].jqmCacheId&&u[this[0].jqmCacheId][b]:this[0].getAttribute(b);for(var d=0;d<this.length;d++)if(k.isObject(b))for(var c in b)k(this[d]).attr(c,b[c]);else if(k.isArray(a)||k.isObject(a)||k.isFunction(a)){if(!this[d].jqmCacheId)this[d].jqmCacheId=k.uuid();u[this[d].jqmCacheId]||(u[this[d].jqmCacheId]={});u[this[d].jqmCacheId][b]=a}else a==null&&
  a!==o?(this[d].removeAttribute(b),this[d].jqmCacheId&&u[this[d].jqmCacheId][b]&&delete u[this[d].jqmCacheId][b]):this[d].setAttribute(b,a);return this},removeAttr:function(b){for(var a=this,d=0;d<this.length;d++)b.split(/\s+/g).forEach(function(c){a[d].removeAttribute(c);a[d].jqmCacheId&&u[a[d].jqmCacheId][b]&&delete u[a[d].jqmCacheId][b]});return this},prop:function(b,a){if(this.length===0)return a===o?o:this;if(a===o&&!k.isObject(b)){var d;return this[0].jqmCacheId&&y[this[0].jqmCacheId][b]?this[0].jqmCacheId&&
  y[this[0].jqmCacheId][b]:!(d=this[0][b])&&b in this[0]?this[0][b]:d}for(d=0;d<this.length;d++)if(k.isObject(b))for(var c in b)k(this[d]).prop(c,b[c]);else if(k.isArray(a)||k.isObject(a)||k.isFunction(a)){if(!this[d].jqmCacheId)this[d].jqmCacheId=k.uuid();y[this[d].jqmCacheId]||(y[this[d].jqmCacheId]={});y[this[d].jqmCacheId][b]=a}else a==null&&a!==o?k(this[d]).removeProp(b):this[d][b]=a;return this},removeProp:function(b){for(var a=this,d=0;d<this.length;d++)b.split(/\s+/g).forEach(function(c){a[d][c]&&
  delete a[d][c];a[d].jqmCacheId&&y[a[d].jqmCacheId][b]&&delete y[a[d].jqmCacheId][b]});return this},remove:function(b){b=k(this).filter(b);if(b==o)return this;for(var a=0;a<b.length;a++)k.cleanUpContent(b[a],!0,!0),b[a].parentNode.removeChild(b[a]);return this},addClass:function(b){for(var a=0;a<this.length;a++){var d=this[a].className,c=[],e=this;b.split(/\s+/g).forEach(function(b){e.hasClass(b,e[a])||c.push(b)});this[a].className+=(d?" ":"")+c.join(" ");this[a].className=this[a].className.trim()}return this},
  removeClass:function(b){for(var a=0;a<this.length;a++){if(b==o){this[a].className="";break}var d=this[a].className;b.split(/\s+/g).forEach(function(b){d=d.replace(f(b)," ")});this[a].className=d.length>0?d.trim():""}return this},replaceClass:function(b,a){for(var d=0;d<this.length;d++)if(b==o)this[d].className=a;else{var c=this[d].className;b.split(/\s+/g).concat(a.split(/\s+/g)).forEach(function(b){c=c.replace(f(b)," ")});c=c.trim();this[d].className=c.length>0?(c+" "+a).trim():a}return this},hasClass:function(b,
  a){if(this.length===0)return!1;a||(a=this[0]);return f(b).test(a.className)},append:function(b,a){if(b&&b.length!=o&&b.length===0)return this;if(k.isArray(b)||k.isObject(b))b=k(b);var d;for(d=0;d<this.length;d++)if(b.length&&typeof b!="string")b=k(b),g(b,this[d],a);else{var e=P.test(b)?k(b):o;if(e==o||e.length==0)e=r.createTextNode(b);e.nodeName!=o&&e.nodeName.toLowerCase()=="script"&&(!e.type||e.type.toLowerCase()==="text/javascript")?c.eval(e.innerHTML):e instanceof v?g(e,this[d],a):a!=o?this[d].insertBefore(e,
  this[d].firstChild):this[d].appendChild(e)}return this},appendTo:function(b){k(b).append(this);return this},prependTo:function(b){k(b).append(this,!0);return this},prepend:function(b){return this.append(b,1)},insertBefore:function(b,a){if(this.length==0)return this;b=k(b).get(0);if(!b||b.length==0)return this;for(var d=0;d<this.length;d++)a?b.parentNode.insertBefore(this[d],b.nextSibling):b.parentNode.insertBefore(this[d],b);return this},insertAfter:function(b){this.insertBefore(b,!0)},get:function(b){b=
  b==o?0:b;b<0&&(b+=this.length);return this[b]?this[b]:o},offset:function(){if(this.length===0)return this;if(this[0]==c)return{left:0,top:0,right:0,bottom:0,width:c.innerWidth,height:c.innerHeight};else var b=this[0].getBoundingClientRect();return{left:b.left+c.pageXOffset,top:b.top+c.pageYOffset,right:b.right+c.pageXOffset,bottom:b.bottom+c.pageYOffset,width:b.right-b.left,height:b.bottom-b.top}},height:function(b){if(this.length===0)return this;if(b!=o)return this.css("height",b);if(this[0]==this[0].window)return c.innerHeight;
  return this[0].nodeType==this[0].DOCUMENT_NODE?this[0].documentElement.offsetheight:(b=this.css("height").replace("px",""))?b:this.offset().height},width:function(){if(this.length===0)return this;if(val==o)return this.css("width",val);if(this[0]==this[0].window)return c.innerWidth;if(this[0].nodeType==this[0].DOCUMENT_NODE)return this[0].documentElement.offsetwidth;else{var b=this.css("width").replace("px","");return b?b:this.offset().width}},parent:function(b,a){if(this.length==0)return this;for(var d=
  [],c=0;c<this.length;c++)for(var e=this[c];e.parentNode&&e.parentNode!=r;){d.push(e.parentNode);if(e.parentNode)e=e.parentNode;if(!a)break}return this.setupOld(k(l(d)).filter(b))},parents:function(b){return this.parent(b,!0)},children:function(b){if(this.length==0)return this;for(var a=[],d=0;d<this.length;d++)a=a.concat(h(this[d].firstChild));return this.setupOld(k(a).filter(b))},siblings:function(b){if(this.length==0)return this;for(var a=[],d=0;d<this.length;d++)this[d].parentNode&&(a=a.concat(h(this[d].parentNode.firstChild,
  this[d])));return this.setupOld(k(a).filter(b))},closest:function(b,a){if(this.length==0)return this;var d=this[0],c=k(b,a);if(c.length==0)return k();for(;d&&c.indexOf(d)==-1;)d=d!==a&&d!==r&&d.parentNode;return k(d)},filter:function(b){if(this.length==0)return this;if(b==o)return this;for(var a=[],d=0;d<this.length;d++){var c=this[d];c.parentNode&&k(b,c.parentNode).indexOf(c)>=0&&a.push(c)}return this.setupOld(k(l(a)))},not:function(b){if(this.length==0)return this;for(var a=[],d=0;d<this.length;d++){var c=
  this[d];c.parentNode&&k(b,c.parentNode).indexOf(c)==-1&&a.push(c)}return this.setupOld(k(l(a)))},data:function(b,a){return this.attr("data-"+b,a)},end:function(){return this.oldElement!=o?this.oldElement:k()},clone:function(b){b=b===!1?!1:!0;if(this.length==0)return this;for(var a=[],d=0;d<this.length;d++)a.push(this[d].cloneNode(b));return k(a)},size:function(){return this.length},serialize:function(){if(this.length==0)return"";for(var b=[],a=0;a<this.length;a++)this.slice.call(this[a].elements).forEach(function(a){var d=
  a.getAttribute("type");if(a.nodeName.toLowerCase()!="fieldset"&&!a.disabled&&d!="submit"&&d!="reset"&&d!="button"&&(d!="radio"&&d!="checkbox"||a.checked)&&a.getAttribute("name"))if(a.type=="select-multiple")for(d=0;d<a.options.length;d++)a.options[d].selected&&b.push(a.getAttribute("name")+"="+encodeURIComponent(a.options[d].value));else b.push(a.getAttribute("name")+"="+encodeURIComponent(a.value))});return b.join("&")},eq:function(b){return k(this.get(b))},index:function(b){return b?this.indexOf(k(b)[0]):
  this.parent().children().indexOf(this[0])},is:function(b){return!!b&&this.filter(b).length>0}};var F={type:"GET",beforeSend:a,success:a,error:a,complete:a,context:o,timeout:0,crossDomain:null};k.jsonP=function(b){var a="jsonp_callback"+ ++O,d="",e=r.createElement("script");c[a]=function(p){clearTimeout(d);k(e).remove();delete c[a];b.success.call(void 0,p)};e.src=b.url.replace(/=\?/,"="+a);if(b.error)e.onerror=function(){clearTimeout(d);b.error.call(void 0,"","error")};k("head").append(e);b.timeout>
  0&&(d=setTimeout(function(){b.error.call(void 0,"","timeout")},b.timeout));return{}};k.ajax=function(b){var d;try{var e=b||{},p;for(p in F)typeof e[p]=="undefined"&&(e[p]=F[p]);if(!e.url)e.url=c.location;if(!e.contentType)e.contentType="application/x-www-form-urlencoded";if(!e.headers)e.headers={};if(!("async"in e)||e.async!==!1)e.async=!0;if(e.dataType)switch(e.dataType){case "script":e.dataType="text/javascript, application/javascript";break;case "json":e.dataType="application/json";break;case "xml":e.dataType=
  "application/xml, text/xml";break;case "html":e.dataType="text/html";break;case "text":e.dataType="text/plain";break;default:e.dataType="text/html";break;case "jsonp":return k.jsonP(b)}else e.dataType="text/html";if(k.isObject(e.data))e.data=k.param(e.data);e.type.toLowerCase()==="get"&&e.data&&(e.url+=e.url.indexOf("?")===-1?"?"+e.data:"&"+e.data);if(/=\?/.test(e.url))return k.jsonP(e);if(e.crossDomain===null)e.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(e.url)&&RegExp.$2!=c.location.host;if(!e.crossDomain)e.headers=
  k.extend({"X-Requested-With":"XMLHttpRequest"},e.headers);var f,q=e.context,s=/^([\w-]+:)\/\//.test(e.url)?RegExp.$1:c.location.protocol;d=new c.XMLHttpRequest;d.onreadystatechange=function(){var b=e.dataType;if(d.readyState===4){clearTimeout(f);var a,c=!1;if(d.status>=200&&d.status<300||d.status===0&&s=="file:"){if(b==="application/json"&&!/^\s*$/.test(d.responseText))try{a=JSON.parse(d.responseText)}catch(i){c=i}else b==="application/xml, text/xml"?a=d.responseXML:b=="text/html"?(a=d.responseText,
  k.parseJS(a)):a=d.responseText;d.status===0&&a.length===0&&(c=!0);c?e.error.call(q,d,"parsererror",c):e.success.call(q,a,"success",d)}else c=!0,e.error.call(q,d,"error");e.complete.call(q,d,c?"error":"success")}};d.open(e.type,e.url,e.async);if(e.withCredentials)d.withCredentials=!0;if(e.contentType)e.headers["Content-Type"]=e.contentType;for(var h in e.headers)d.setRequestHeader(h,e.headers[h]);if(e.beforeSend.call(q,d,e)===!1)return d.abort(),!1;e.timeout>0&&(f=setTimeout(function(){d.onreadystatechange=
  a;d.abort();e.error.call(q,d,"timeout")},e.timeout));d.send(e.data)}catch(g){console.log(g)}return d};k.get=function(b,a){return this.ajax({url:b,success:a})};k.post=function(b,a,d,e){typeof a==="function"&&(d=a,a={});e===o&&(e="html");return this.ajax({url:b,type:"POST",data:a,dataType:e,success:d})};k.getJSON=function(b,a,d){typeof a==="function"&&(d=a,a={});return this.ajax({url:b,data:a,success:d,dataType:"json"})};k.param=function(b,a){var d=[];if(b instanceof v)b.each(function(){d.push((a?a+
  "[]":this.id)+"="+encodeURIComponent(this.value))});else for(var e in b){var c=a?a+"["+e+"]":e,p=b[e];d.push(k.isObject(p)?k.param(p,c):c+"="+encodeURIComponent(p))}return d.join("&")};k.parseJSON=function(b){return JSON.parse(b)};k.parseXML=function(b){return(new DOMParser).parseFromString(b,"text/xml")};d(k,navigator.userAgent);k.__detectUA=d;if(typeof String.prototype.trim!=="function")String.prototype.trim=function(){this.replace(/(\r\n|\n|\r)/gm,"").replace(/^\s+|\s+$/,"");return this};k.uuid=
  function(){var b=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return b()+b()+"-"+b()+"-"+b()+"-"+b()+"-"+b()+b()+b()};k.getCssMatrix=function(b){if(b==o)return c.WebKitCSSMatrix||c.MSCSSMatrix||{a:0,b:0,c:0,d:0,e:0,f:0};try{if(c.WebKitCSSMatrix)return new WebKitCSSMatrix(c.getComputedStyle(b).webkitTransform);else if(c.MSCSSMatrix)return new MSCSSMatrix(c.getComputedStyle(b).transform);else{var a=c.getComputedStyle(b)[k.feat.cssPrefix+"Transform"].replace(/[^0-9\-.,]/g,
  "").split(",");return{a:+a[0],b:+a[1],c:+a[2],d:+a[3],e:+a[4],f:+a[5]}}}catch(d){return{a:0,b:0,c:0,d:0,e:0,f:0}}};var t={},K=1;k.event={add:p,remove:s};k.fn.bind=function(b,a){for(var d=0;d<this.length;d++)p(this[d],b,a);return this};k.fn.unbind=function(b,a){for(var d=0;d<this.length;d++)s(this[d],b,a);return this};k.fn.one=function(b,a){return this.each(function(d,e){p(this,b,a,null,function(b,a){return function(){var d=b.apply(e,arguments);s(e,a,b);return d}})})};var M=function(){return!0},N=
  function(){return!1},L={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};k.fn.delegate=function(b,a,d){for(var e=0;e<this.length;e++){var c=this[e];p(c,a,d,b,function(a){return function(d){var e,p=k(d.target).closest(b,c).get(0);if(p)return e=k.extend(B(d),{currentTarget:p,liveFired:c}),a.apply(p,[e].concat([].slice.call(arguments,1)))}})}return this};k.fn.undelegate=function(b,a,d){for(var e=0;e<this.length;e++)s(this[e],
  a,d,b);return this};k.fn.on=function(b,a,d){return a===o||k.isFunction(a)?this.bind(b,a):this.delegate(a,b,d)};k.fn.off=function(b,a,d){return a===o||k.isFunction(a)?this.unbind(b,a):this.undelegate(a,b,d)};k.fn.trigger=function(b,a,d){typeof b=="string"&&(b=k.Event(b,d));b.data=a;for(a=0;a<this.length;a++)this[a].dispatchEvent(b);return this};k.Event=function(b,a){var d=r.createEvent("Events"),e=!0;if(a)for(var c in a)c=="bubbles"?e=!!a[c]:d[c]=a[c];d.initEvent(b,e,!0,null,null,null,null,null,null,
  null,null,null,null,null,null);return d};k.bind=function(b,a,d){if(!b.__events)b.__events={};k.isArray(a)||(a=[a]);for(var e=0;e<a.length;e++)b.__events[a[e]]||(b.__events[a[e]]=[]),b.__events[a[e]].push(d)};k.trigger=function(b,a,d){var e=!0;if(!b.__events)return e;k.isArray(a)||(a=[a]);k.isArray(d)||(d=[]);for(var c=0;c<a.length;c++)if(b.__events[a[c]])for(var p=b.__events[a[c]],f=0;f<p.length;f++)k.isFunction(p[f])&&p[f].apply(b,d)===!1&&(e=!1);return e};k.unbind=function(b,a,d){if(b.__events){k.isArray(a)||
  (a=[a]);for(var e=0;e<a.length;e++)if(b.__events[a[e]])for(var c=b.__events[a[e]],p=0;p<c.length;p++)if(d==o&&delete c[p],c[p]==d){c.splice(p,1);break}}};k.proxy=function(b,a,d){return function(){if(d)return b.apply(a,d);return b.apply(a,arguments)}};var Q=function(b,a){for(var d=0;d<b.length;d++)z(b[d],a)};k.cleanUpContent=function(b,a,d){if(b){var e=b.childNodes;e&&e.length>0&&k.asap(Q,{},[E.apply(e,[0]),d]);a&&w(b,d)}};var D=[],G=[],H=[];k.asap=function(b,a,d){if(!k.isFunction(b))throw"$.asap - argument is not a valid function";
  D.push(b);G.push(a?a:{});H.push(d?d:[]);c.postMessage("jqm-asap","*")};c.addEventListener("message",function(b){b.source==c&&b.data=="jqm-asap"&&(b.stopPropagation(),D.length>0&&D.shift().apply(G.shift(),H.shift()))},!0);var I={};k.parseJS=function(b){if(b){if(typeof b=="string"){var a=r.createElement("div");a.innerHTML=b;b=a}b=b.getElementsByTagName("script");for(a=0;a<b.length;a++)if(b[a].src.length>0&&!I[b[a].src]){var d=r.createElement("script");d.type=b[a].type;d.src=b[a].src;r.getElementsByTagName("head")[0].appendChild(d);
  I[b[a].src]=1}else c.eval(b[a].innerHTML)}};["click","keydown","keyup","keypress","submit","load","resize","change","select","error"].forEach(function(b){k.fn[b]=function(a){return a?this.bind(b,a):this.trigger(b)}});return k}(window);"$"in window||(window.$=jq);if(!window.numOnly)window.numOnly=function(c){if(c===void 0||c==="")return 0;if(isNaN(parseFloat(c)))if(c.replace)c=c.replace(/[^0-9.-]/,"");else return 0;return parseFloat(c)}};(function(c){var g=[],f=function(a,d){var e,f;e=typeof a=="string"||a instanceof String?document.getElementById(a):c.is$(a)?a[0]:a;if(!e.jqmCSS3AnimateId)e.jqmCSS3AnimateId=c.uuid();f=e.jqmCSS3AnimateId;g[f]?(g[f].animate(d),e=g[f]):(e=n(e,d),g[f]=e);return e};c.fn.css3Animate=function(a){if(!a.complete&&a.callback)a.complete=a.callback;var d=f(this[0],a);a.complete=null;a.sucess=null;a.failure=null;for(var e=1;e<this.length;e++)d.link(this[e],a);return d};c.css3AnimateQueue=function(){return new n.queue};
  var l=c.feat.cssTransformStart,h=c.feat.cssTransformEnd,m=c.feat.cssPrefix.replace(/-/g,"")+"TransitionEnd",m=c.os.fennec||c.feat.cssPrefix==""||c.os.ie?"transitionend":m,m=m.replace(m.charAt(0),m.charAt(0).toLowerCase()),n=function(){var a=function(d,e){if(!(this instanceof a))return new a(d,e);this.callbacksStack=[];this.activeEvent=null;this.countStack=0;this.isActive=!1;this.el=d;this.linkFinishedProxy_=c.proxy(this.linkFinished,this);if(this.el){this.animate(e);var f=this;jq(this.el).bind("destroy",
  function(){var a=f.el.jqmCSS3AnimateId;f.callbacksStack=[];g[a]&&delete g[a]})}};a.prototype={animate:function(a){this.isActive&&this.cancel();this.isActive=!0;if(a){var e=!!a.addClass;if(e)a.removeClass?jq(this.el).replaceClass(a.removeClass,a.addClass):jq(this.el).addClass(a.addClass);else{var f=numOnly(a.time);f==0&&(a.time=0);a.y||(a.y=0);a.x||(a.x=0);if(a.previous){var g=new c.getCssMatrix(this.el);a.y+=numOnly(g.f);a.x+=numOnly(g.e)}if(!a.origin)a.origin="0% 0%";if(!a.scale)a.scale="1";if(!a.rotateY)a.rotateY=
  "0";if(!a.rotateX)a.rotateX="0";if(!a.skewY)a.skewY="0";if(!a.skewX)a.skewX="0";a.timingFunction||(a.timingFunction="linear");if(typeof a.x=="number"||a.x.indexOf("%")==-1&&a.x.toLowerCase().indexOf("px")==-1&&a.x.toLowerCase().indexOf("deg")==-1)a.x=parseInt(a.x)+"px";if(typeof a.y=="number"||a.y.indexOf("%")==-1&&a.y.toLowerCase().indexOf("px")==-1&&a.y.toLowerCase().indexOf("deg")==-1)a.y=parseInt(a.y)+"px";g="translate"+l+a.x+","+a.y+h+" scale("+parseFloat(a.scale)+") rotate("+a.rotateX+")";c.os.opera||
  (g+=" rotateY("+a.rotateY+")");g+=" skew("+a.skewX+","+a.skewY+")";this.el.style[c.feat.cssPrefix+"Transform"]=g;this.el.style[c.feat.cssPrefix+"BackfaceVisibility"]="hidden";g=c.feat.cssPrefix+"Transform";if(a.opacity!==void 0)this.el.style.opacity=a.opacity,g+=", opacity";if(a.width)this.el.style.width=a.width,g="all";if(a.height)this.el.style.height=a.height,g="all";this.el.style[c.feat.cssPrefix+"TransitionProperty"]="all";if((""+a.time).indexOf("s")===-1)var g="ms",b=a.time+g;else a.time.indexOf("ms")!==
  -1?(g="ms",b=a.time):(g="s",b=a.time+g);this.el.style[c.feat.cssPrefix+"TransitionDuration"]=b;this.el.style[c.feat.cssPrefix+"TransitionTimingFunction"]=a.timingFunction;this.el.style[c.feat.cssPrefix+"TransformOrigin"]=a.origin}this.callbacksStack.push({complete:a.complete,success:a.success,failure:a.failure});this.countStack++;var p=this,b=window.getComputedStyle(this.el);e&&(e=b[c.feat.cssPrefix+"TransitionDuration"],f=numOnly(e),g=e.indexOf("ms")!==-1?"ms":"s");f==0||g=="ms"&&f<5||b.display==
  "none"?c.asap(c.proxy(this.finishAnimation,this,[!1])):(p=this,this.activeEvent=function(b){clearTimeout(p.timeout);p.finishAnimation(b);p.el.removeEventListener(m,p.activeEvent,!1)},p.timeout=setTimeout(this.activeEvent,numOnly(a.time)+50),this.el.addEventListener(m,this.activeEvent,!1))}else alert("Please provide configuration options for animation of "+this.el.id)},addCallbackHook:function(a){a&&this.callbacksStack.push(a);this.countStack++;return this.linkFinishedProxy_},linkFinished:function(a){a?
  this.cancel():this.finishAnimation()},finishAnimation:function(a){a&&a.preventDefault();this.isActive&&(this.countStack--,this.countStack==0&&this.fireCallbacks(!1))},fireCallbacks:function(a){this.clearEvents();var e=this.callbacksStack;this.cleanup();for(var c=0;c<e.length;c++){var f=e[c].complete,b=e[c].success,p=e[c].failure;f&&typeof f=="function"&&f(a);a&&p&&typeof p=="function"?p():b&&typeof b=="function"&&b()}},cancel:function(){this.isActive&&this.fireCallbacks(!0)},cleanup:function(){this.callbacksStack=
  [];this.isActive=!1;this.countStack=0},clearEvents:function(){this.activeEvent&&this.el.removeEventListener(m,this.activeEvent,!1);this.activeEvent=null},link:function(a,e){var c={complete:e.complete,success:e.success,failure:e.failure};e.complete=this.addCallbackHook(c);e.success=null;e.failure=null;f(a,e);e.complete=c.complete;e.success=c.success;e.failure=c.failure;return this}};return a}();n.queue=function(){return{elements:[],push:function(a){this.elements.push(a)},pop:function(){return this.elements.pop()},
  run:function(){var a=this;if(this.elements.length!=0&&(typeof this.elements[0]=="function"&&this.shift()(),this.elements.length!=0)){var d=this.shift();if(this.elements.length>0)d.complete=function(d){d||a.run()};n(document.getElementById(d.id),d)}},shift:function(){return this.elements.shift()}}}})(jq);
  (function(c){function g(c){if(!l[c].el)return delete l[c],!1;return!0}function f(){if(jq.os.android&&!jq.os.chrome&&jq.os.webkit){var f=!1;c.bind(c.touchLayer,"pre-enter-edit",function(a){if(!f)for(el in f=!0,l)g(el)&&l[el].needsFormsFix(a)&&l[el].startFormsMode()});c.bind(c.touchLayer,["cancel-enter-edit","exit-edit"],function(){if(f)for(el in f=!1,l)g(el)&&l[el].androidFormsMode&&l[el].stopFormsMode()})}h=!0}var l=[];c.fn.scroller=function(f){for(var a,d,e=0;e<this.length;e++){a=this[e];if(!a.jqmScrollerId)a.jqmScrollerId=
  c.uuid();d=a.jqmScrollerId;if(l[d])a=l[d];else{f||(f={});if(!c.feat.nativeTouchScroll)f.useJsScroll=!0;a=m(this[e],f);l[d]=a}}return this.length==1?a:this};var h=!1,m=function(){function g(b,a){var d=document.createElement("div");d.style.position="absolute";d.style.width=b+"px";d.style.height=a+"px";d.style[c.feat.cssPrefix+"BorderRadius"]="2px";d.style.borderRadius="2px";d.style.opacity=0;d.className="scrollBar";d.style.background="black";return d}var a=c.feat.cssTransformStart,d=c.feat.cssTransformEnd,
  e,q,m=function(b,a){this.el=b;this.jqEl=c(this.el);for(j in a)this[j]=a[j]};m.prototype={refresh:!1,refreshContent:"Pull to Refresh",refreshHangTimeout:2E3,refreshHeight:60,refreshElement:null,refreshCancelCB:null,refreshRunning:!1,scrollTop:0,scrollLeft:0,preventHideRefresh:!0,verticalScroll:!0,horizontalScroll:!1,refreshTriggered:!1,moved:!1,eventsActive:!1,rememberEventsActive:!1,scrollingLocked:!1,autoEnable:!0,blockFormsFix:!1,loggedPcentY:0,loggedPcentX:0,infinite:!1,infiniteEndCheck:!1,infiniteTriggered:!1,
  scrollSkip:!1,scrollTopInterval:null,scrollTo:function(b){this.el.scrollTop=Math.abs(b.y);this.el.scrollLeft=Math.abs(b.x)},enable:function(){},disable:function(){},hideScrollbars:function(){},addPullToRefresh:function(){},scrollToTop:function(b){b=parseInt(b);if(b==0||isNaN(b))return this.el.scrollTop=0;else{var a=(this.el.scrollHeight-this.el.scrollTop)/Math.ceil(b/10),d=this;d.scrollTopInterval=window.setInterval(function(){d.el.scrollTop-=a;d.el.scrollTop<=0&&clearInterval(d.scrollTopInterval)},
  10)}},scrollToBottom:function(){this.el.scrollTop=this.el.scrollHeight},init:function(b,a){this.el=b;this.jqEl=c(this.el);this.defaultProperties();for(j in a)this[j]=a[j];var d=this,e=function(){d.eventsActive&&d.adjustScroll()};this.jqEl.bind("destroy",function(){d.disable(!0);var b=d.el.jqmScrollerId;l[b]&&delete l[b];c.unbind(c.touchLayer,"orientationchange-reshape",e)});c.bind(c.touchLayer,"orientationchange-reshape",e)},needsFormsFix:function(b){return this.useJsScroll&&this.isEnabled()&&this.el.style.display!=
  "none"&&c(b).closest(this.jqEl).size()>0},handleEvent:function(b){if(!this.scrollingLocked)switch(b.type){case "touchstart":clearInterval(this.scrollTopInterval);this.preventHideRefresh=!this.refreshRunning;this.moved=!1;this.onTouchStart(b);break;case "touchmove":this.onTouchMove(b);break;case "touchend":this.onTouchEnd(b);break;case "scroll":this.onScroll(b)}},coreAddPullToRefresh:function(b){if(b)this.refreshElement=b;this.refreshElement==null?(b=document.getElementById(this.container.id+"_pulldown"),
  b=b!=null?jq(b):jq("<div id='"+this.container.id+"_pulldown' class='jqscroll_refresh' style='border-radius:.6em;border: 1px solid #2A2A2A;background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0,#666666),color-stop(1,#222222));background:#222222;margin:0px;height:60px;position:relative;text-align:center;line-height:60px;color:white;width:100%;'>"+this.refreshContent+"</div>")):b=jq(this.refreshElement);b=b.get();this.refreshContainer=jq('<div style="overflow:hidden;width:100%;height:0;margin:0;padding:0;padding-left:5px;padding-right:5px;display:none;"></div>');
  c(this.el).prepend(this.refreshContainer.append(b,"top"));this.refreshContainer=this.refreshContainer[0]},fireRefreshRelease:function(b){if(this.refresh&&b&&(b=c.trigger(this,"refresh-release",[b])!==!1,this.preventHideRefresh=!1,this.refreshRunning=!0,b)){var a=this;if(this.refreshHangTimeout>0)this.refreshCancelCB=setTimeout(function(){a.hideRefresh()},this.refreshHangTimeout)}},setRefreshContent:function(b){jq(this.container).find(".jqscroll_refresh").html(b)},lock:function(){if(!this.scrollingLocked)this.scrollingLocked=
  !0,(this.rememberEventsActive=this.eventsActive)||this.initEvents()},unlock:function(){if(this.scrollingLocked)this.scrollingLocked=!1,this.rememberEventsActive||this.removeEvents()},scrollToItem:function(b,a){c.is$(b)||(b=c(b));if(a=="bottom"){var d=b.offset(),d=d.top-this.jqEl.offset().bottom+d.height;d+=4}else{var d=b.offset().top-document.body.scrollTop,e=this.jqEl.offset().top;document.body.scrollTop<e&&(d-=e);d-=4}this.scrollBy({y:d,x:0},0)},setPaddings:function(b,a){var d=c(this.el),e=numOnly(d.css("paddingTop"));
  d.css("paddingTop",b+"px").css("paddingBottom",a+"px");this.scrollBy({y:b-e,x:0})},divide:function(b,a){return a!=0?b/a:0},isEnabled:function(){return this.eventsActive},addInfinite:function(){this.infinite=!0},clearInfinite:function(){this.infiniteTriggered=!1;this.scrollSkip=!0}};e=function(b,a){this.init(b,a);this.container=this.el.parentNode;this.container.jqmScrollerId=b.jqmScrollerId;this.jqEl=c(this.container);if(this.container.style.overflow!="hidden")this.container.style.overflow="hidden";
  this.addPullToRefresh(null,!0);this.autoEnable&&this.enable(!0);if(this.verticalScroll&&this.verticalScroll==!0&&this.scrollBars==!0){var d=g(5,20);d.style.top="0px";if(this.vScrollCSS)d.className=this.vScrollCSS;d.style.opacity="0";this.container.appendChild(d);this.vscrollBar=d}if(this.horizontalScroll&&this.horizontalScroll==!0&&this.scrollBars==!0){d=g(20,5);d.style.bottom="0px";if(this.hScrollCSS)d.className=this.hScrollCSS;d.style.opacity="0";this.container.appendChild(d);this.hscrollBar=d}this.horizontalScroll&&
  (this.el.style["float"]="left");this.el.hasScroller=!0};q=function(b,a){this.init(b,a);var d=c(b);if(a.noParent!==!0){var e=d.parent();d.css("height",e.height());d.parent().parent().append(d);e.remove()}this.container=this.el;d.css("-webkit-overflow-scrolling","touch")};q.prototype=new m;e.prototype=new m;q.prototype.defaultProperties=function(){this.refreshContainer=null;this.dY=this.cY=0;this.cancelPropagation=!1;this.loggedPcentX=this.loggedPcentY=0;var b=this;this.adjustScrollOverflowProxy_=function(){b.jqEl.css("overflow",
  "auto")}};q.prototype.enable=function(b){if(!this.eventsActive)this.eventsActive=!0,this.el.style.overflow="auto",b||this.adjustScroll(),(this.refresh||this.infinite&&!jq.os.desktop)&&this.el.addEventListener("touchstart",this,!1),this.el.addEventListener("scroll",this,!1)};q.prototype.disable=function(b){if(this.eventsActive){this.logPos(this.el.scrollLeft,this.el.scrollTop);if(!b)this.el.style.overflow="hidden";this.el.removeEventListener("touchstart",this,!1);this.el.removeEventListener("touchmove",
  this,!1);this.el.removeEventListener("touchend",this,!1);this.el.removeEventListener("scroll",this,!1);this.eventsActive=!1}};q.prototype.addPullToRefresh=function(b,a){this.el.removeEventListener("touchstart",this,!1);this.el.addEventListener("touchstart",this,!1);if(!a)this.refresh=!0;if(this.refresh&&this.refresh==!0)this.coreAddPullToRefresh(b),this.refreshContainer.style.position="absolute",this.refreshContainer.style.top="-60px",this.refreshContainer.style.height="60px",this.refreshContainer.style.display=
  "block"};q.prototype.onTouchStart=function(b){this.refreshCancelCB&&clearTimeout(this.refreshCancelCB);if(this.refresh||this.infinite)this.el.addEventListener("touchmove",this,!1),this.dY=b.touches[0].pageY,this.refresh&&this.dY<0&&this.showRefresh();c.trigger(this,"scrollstart",[this.el]);c.trigger(c.touchLayer,"scrollstart",[this.el])};q.prototype.onTouchMove=function(b){b=b.touches[0].pageY-this.dY;if(!this.moved)this.el.addEventListener("touchend",this,!1),this.moved=!0;if(this.refresh&&this.el.scrollTop<
  0)this.showRefresh();else if(this.refreshTriggered&&this.refresh&&this.el.scrollTop>this.refreshHeight)this.refreshTriggered=!1,this.refreshCancelCB&&clearTimeout(this.refreshCancelCB),this.hideRefresh(!1),c.trigger(this,"refresh-cancel");this.cY=b};q.prototype.showRefresh=function(){if(!this.refreshTriggered)this.refreshTriggered=!0,c.trigger(this,"refresh-trigger")};q.prototype.onTouchEnd=function(){var b=this.el.scrollTop<=-this.refreshHeight;this.fireRefreshRelease(b,!0);if(b)this.refreshContainer.style.position=
  "relative",this.refreshContainer.style.top="0px";this.dY=this.cY=0;this.el.removeEventListener("touchmove",this,!1);this.el.removeEventListener("touchend",this,!1);this.infiniteEndCheck=!0;if(this.infinite&&!this.infiniteTriggered&&Math.abs(this.el.scrollTop)>=this.el.scrollHeight-this.el.clientHeight)this.infiniteTriggered=!0,c.trigger(this,"infinite-scroll"),this.infiniteEndCheck=!0;this.touchEndFired=!0;var a=this,d={top:this.el.scrollTop,left:this.el.scrollLeft},e=0;a.nativePolling=setInterval(function(){e++;
  if(e>=200)clearInterval(a.nativePolling);else if(a.el.scrollTop!=d.top||a.el.scrollLeft!=d.left)clearInterval(a.nativePolling),c.trigger(c.touchLayer,"scrollend",[a.el]),c.trigger(a,"scrollend",[a.el])},20)};q.prototype.hideRefresh=function(b){if(!this.preventHideRefresh){var a=this,d=function(b){if(!b)a.el.style[c.feat.cssPrefix+"Transform"]="none",a.el.style[c.feat.cssPrefix+"TransitionProperty"]="none",a.el.scrollTop=0,a.logPos(a.el.scrollLeft,0);a.refreshContainer.style.top="-60px";a.refreshContainer.style.position=
  "absolute";a.dY=a.cY=0;c.trigger(a,"refresh-finish")};b===!1||!a.jqEl.css3Animate?d():a.jqEl.css3Animate({y:a.el.scrollTop-a.refreshHeight+"px",x:"0%",time:"75ms",complete:d});this.refreshTriggered=!1}};q.prototype.hideScrollbars=function(){};q.prototype.scrollTo=function(b){this.el.scrollTop=-b.y;this.el.scrollLeft=-b.x;this.logPos(this.el.scrollLeft,this.el.scrollTop)};q.prototype.scrollBy=function(b){this.el.scrollTop+=b.y;this.el.scrollLeft+=b.x;this.logPos(this.el.scrollLeft,this.el.scrollTop)};
  q.prototype.scrollToBottom=function(){this.el.scrollTop=this.el.scrollHeight;this.logPos(this.el.scrollLeft,this.el.scrollTop)};q.prototype.onScroll=function(){if(this.infinite&&this.touchEndFired)this.touchEndFired=!1;else if(this.scrollSkip)this.scrollSkip=!1;else{if(this.infinite&&!this.infiniteTriggered&&Math.abs(this.el.scrollTop)>=this.el.scrollHeight-this.el.clientHeight)this.infiniteTriggered=!0,c.trigger(this,"infinite-scroll"),this.infiniteEndCheck=!0;if(this.infinite&&this.infiniteEndCheck&&
  this.infiniteTriggered)this.infiniteEndCheck=!1,c.trigger(this,"infinite-scroll-end")}};q.prototype.logPos=function(b,a){this.loggedPcentX=this.divide(b,this.el.scrollWidth);this.loggedPcentY=this.divide(a,this.el.scrollHeight);this.scrollLeft=b;this.scrollTop=a;if(isNaN(this.loggedPcentX))this.loggedPcentX=0;if(isNaN(this.loggedPcentY))this.loggedPcentY=0};q.prototype.adjustScroll=function(){this.adjustScrollOverflowProxy_();this.el.scrollLeft=this.loggedPcentX*this.el.scrollWidth;this.el.scrollTop=
  this.loggedPcentY*this.el.scrollHeight;this.logPos(this.el.scrollLeft,this.el.scrollTop)};e.prototype.defaultProperties=function(){this.boolScrollLock=!1;this.elementInfo=this.currentScrollingObject=null;this.verticalScroll=!0;this.horizontalScroll=!1;this.scrollBars=!0;this.hscrollBar=this.vscrollBar=null;this.vScrollCSS=this.hScrollCSS="scrollBar";this.firstEventInfo=null;this.moved=!1;this.preventPullToRefresh=!0;this.doScrollInterval=null;this.refreshRate=25;this.refreshSafeKeep=this.androidFormsMode=
  this.isScrolling=!1;this.lastScrollbar="";this.scrollingFinishCB=this.container=this.finishScrollingObject=null;this.loggedPcentX=this.loggedPcentY=0};e.prototype.enable=function(a){if(!this.eventsActive)this.eventsActive=!0,a?this.scrollerMoveCSS({x:0,y:0},0):this.adjustScroll(),this.container.addEventListener("touchstart",this,!1),this.container.addEventListener("touchmove",this,!1),this.container.addEventListener("touchend",this,!1)};e.prototype.adjustScroll=function(){var a=this.getViewportSize();
  this.scrollerMoveCSS({x:Math.round(this.loggedPcentX*(this.el.clientWidth-a.w)),y:Math.round(this.loggedPcentY*(this.el.clientHeight-a.h))},0)};e.prototype.disable=function(){if(this.eventsActive){var a=this.getCSSMatrix(this.el);this.logPos(numOnly(a.e)-numOnly(this.container.scrollLeft),numOnly(a.f)-numOnly(this.container.scrollTop));this.container.removeEventListener("touchstart",this,!1);this.container.removeEventListener("touchmove",this,!1);this.container.removeEventListener("touchend",this,
  !1);this.eventsActive=!1}};e.prototype.addPullToRefresh=function(a,d){if(!d)this.refresh=!0;if(this.refresh&&this.refresh==!0)this.coreAddPullToRefresh(a),this.el.style.overflow="visible"};e.prototype.hideScrollbars=function(){if(this.hscrollBar)this.hscrollBar.style.opacity=0,this.hscrollBar.style[c.feat.cssPrefix+"TransitionDuration"]="0ms";if(this.vscrollBar)this.vscrollBar.style.opacity=0,this.vscrollBar.style[c.feat.cssPrefix+"TransitionDuration"]="0ms"};e.prototype.getViewportSize=function(){var a=
  window.getComputedStyle(this.container);isNaN(numOnly(a.paddingTop))&&alert(typeof a.paddingTop+"::"+a.paddingTop+":");return{h:this.container.clientHeight>window.innerHeight?window.innerHeight:this.container.clientHeight-numOnly(a.paddingTop)-numOnly(a.paddingBottom),w:this.container.clientWidth>window.innerWidth?window.innerWidth:this.container.clientWidth-numOnly(a.paddingLeft)-numOnly(a.paddingRight)}};e.prototype.onTouchStart=function(a){this.moved=!1;this.currentScrollingObject=null;if(this.container){if(this.refreshCancelCB)clearTimeout(this.refreshCancelCB),
  this.refreshCancelCB=null;if(this.scrollingFinishCB)clearTimeout(this.scrollingFinishCB),this.scrollingFinishCB=null;if(!(a.touches.length!=1||this.boolScrollLock)){if(a.touches[0].target&&a.touches[0].target.type!=void 0){var d=a.touches[0].target.tagName.toLowerCase();if(d=="select"||d=="input"||d=="button")return}d={top:0,left:0,speedY:0,speedX:0,absSpeedY:0,absSpeedX:0,deltaY:0,deltaX:0,absDeltaY:0,absDeltaX:0,y:0,x:0,duration:0};this.elementInfo={};var e=this.getViewportSize();this.elementInfo.bottomMargin=
  e.h;this.elementInfo.maxTop=this.el.clientHeight-this.elementInfo.bottomMargin;if(this.elementInfo.maxTop<0)this.elementInfo.maxTop=0;this.elementInfo.divHeight=this.el.clientHeight;this.elementInfo.rightMargin=e.w;this.elementInfo.maxLeft=this.el.clientWidth-this.elementInfo.rightMargin;if(this.elementInfo.maxLeft<0)this.elementInfo.maxLeft=0;this.elementInfo.divWidth=this.el.clientWidth;this.elementInfo.hasVertScroll=this.verticalScroll||this.elementInfo.maxTop>0;this.elementInfo.hasHorScroll=this.elementInfo.maxLeft>
  0;this.elementInfo.requiresVScrollBar=this.vscrollBar&&this.elementInfo.hasVertScroll;this.elementInfo.requiresHScrollBar=this.hscrollBar&&this.elementInfo.hasHorScroll;this.saveEventInfo(a);this.saveFirstEventInfo(a);a=this.getCSSMatrix(this.el);d.top=numOnly(a.f)-numOnly(this.container.scrollTop);d.left=numOnly(a.e)-numOnly(this.container.scrollLeft);this.container.scrollTop=this.container.scrollLeft=0;this.currentScrollingObject=this.el;if(this.refresh&&d.top==0)this.refreshContainer.style.display=
  "block",this.refreshHeight=this.refreshContainer.firstChild.clientHeight,this.refreshContainer.firstChild.style.top=-this.refreshHeight+"px",this.refreshContainer.style.overflow="visible",this.preventPullToRefresh=!1;else if(d.top<0&&(this.preventPullToRefresh=!0,this.refresh))this.refreshContainer.style.overflow="hidden";d.x=d.left;d.y=d.top;if(this.setVScrollBar(d,0,0))this.container.clientWidth>window.innerWidth?this.vscrollBar.style.left=window.innerWidth-numOnly(this.vscrollBar.style.width)*
  3+"px":this.vscrollBar.style.right="0px",this.vscrollBar.style[c.feat.cssPrefix+"Transition"]="";if(this.setHScrollBar(d,0,0))this.container.clientHeight>window.innerHeight?this.hscrollBar.style.top=window.innerHeight-numOnly(this.hscrollBar.style.height)+"px":this.hscrollBar.style.bottom=numOnly(this.hscrollBar.style.height),this.hscrollBar.style[c.feat.cssPrefix+"Transition"]="";this.lastScrollInfo=d;this.hasMoved=!0;this.scrollerMoveCSS(this.lastScrollInfo,0);c.trigger(this,"scrollstart")}}};e.prototype.getCSSMatrix=
  function(a){if(this.androidFormsMode){var d=parseInt(a.style.marginTop),a=parseInt(a.style.marginLeft);isNaN(d)&&(d=0);isNaN(a)&&(a=0);return{f:d,e:a}}else return c.getCssMatrix(a)};e.prototype.saveEventInfo=function(a){this.lastEventInfo={pageX:a.touches[0].pageX,pageY:a.touches[0].pageY,time:a.timeStamp}};e.prototype.saveFirstEventInfo=function(a){this.firstEventInfo={pageX:a.touches[0].pageX,pageY:a.touches[0].pageY,time:a.timeStamp}};e.prototype.setVScrollBar=function(a,d,e){if(!this.elementInfo.requiresVScrollBar)return!1;
  var c=parseFloat(this.elementInfo.bottomMargin/this.elementInfo.divHeight)*this.elementInfo.bottomMargin+"px";if(c!=this.vscrollBar.style.height)this.vscrollBar.style.height=c;a=this.elementInfo.bottomMargin-numOnly(this.vscrollBar.style.height)-(this.elementInfo.maxTop+a.y)/this.elementInfo.maxTop*(this.elementInfo.bottomMargin-numOnly(this.vscrollBar.style.height));if(a>this.elementInfo.bottomMargin)a=this.elementInfo.bottomMargin;a<0&&(a=0);this.scrollbarMoveCSS(this.vscrollBar,{x:0,y:a},d,e);
  return!0};e.prototype.setHScrollBar=function(a,d,e){if(!this.elementInfo.requiresHScrollBar)return!1;var c=parseFloat(this.elementInfo.rightMargin/this.elementInfo.divWidth)*this.elementInfo.rightMargin+"px";if(c!=this.hscrollBar.style.width)this.hscrollBar.style.width=c;a=this.elementInfo.rightMargin-numOnly(this.hscrollBar.style.width)-(this.elementInfo.maxLeft+a.x)/this.elementInfo.maxLeft*(this.elementInfo.rightMargin-numOnly(this.hscrollBar.style.width));if(a>this.elementInfo.rightMargin)a=this.elementInfo.rightMargin;
  a<0&&(a=0);this.scrollbarMoveCSS(this.hscrollBar,{x:a,y:0},d,e);return!0};e.prototype.onTouchMove=function(a){if(this.currentScrollingObject!=null){var d=this.calculateMovement(a);this.calculateTarget(d);this.lastScrollInfo=d;if(!this.moved){if(this.elementInfo.requiresVScrollBar)this.vscrollBar.style.opacity=1;if(this.elementInfo.requiresHScrollBar)this.hscrollBar.style.opacity=1}this.moved=!0;if(this.refresh&&d.top==0)this.refreshContainer.style.display="block",this.refreshHeight=this.refreshContainer.firstChild.clientHeight,
  this.refreshContainer.firstChild.style.top=-this.refreshHeight+"px",this.refreshContainer.style.overflow="visible",this.preventPullToRefresh=!1;else if(d.top<0&&(this.preventPullToRefresh=!0,this.refresh))this.refreshContainer.style.overflow="hidden";this.saveEventInfo(a);this.doScroll()}};e.prototype.doScroll=function(){if(!this.isScrolling&&this.lastScrollInfo.x!=this.lastScrollInfo.left||this.lastScrollInfo.y!=this.lastScrollInfo.top){this.isScrolling=!0;if(this.onScrollStart)this.onScrollStart();
  var a=this.getCSSMatrix(this.el);this.lastScrollInfo.top=numOnly(a.f);this.lastScrollInfo.left=numOnly(a.e);this.recalculateDeltaY(this.lastScrollInfo);this.recalculateDeltaX(this.lastScrollInfo);this.checkYboundary(this.lastScrollInfo);this.elementInfo.hasHorScroll&&this.checkXboundary(this.lastScrollInfo);var a=this.lastScrollInfo.y>0&&this.lastScrollInfo.deltaY>0,d=this.lastScrollInfo.y<-this.elementInfo.maxTop&&this.lastScrollInfo.deltaY<0;if(a||d){var e=(this.container.clientHeight-(a?this.lastScrollInfo.y:
  -this.lastScrollInfo.y-this.elementInfo.maxTop))/this.container.clientHeight;e<0.5&&(e=0.5);var f=0;a&&this.lastScrollInfo.top>0||d&&this.lastScrollInfo.top<-this.elementInfo.maxTop?f=this.lastScrollInfo.top:d&&(f=-this.elementInfo.maxTop);d=this.lastScrollInfo.deltaY*e;Math.abs(this.lastScrollInfo.deltaY*e)<1&&(d=a?1:-1);this.lastScrollInfo.y=f+d}this.scrollerMoveCSS(this.lastScrollInfo,0);this.setVScrollBar(this.lastScrollInfo,0,0);this.setHScrollBar(this.lastScrollInfo,0,0);if(this.refresh&&!this.preventPullToRefresh)if(!this.refreshTriggered&&
  this.lastScrollInfo.top>this.refreshHeight)this.refreshTriggered=!0,c.trigger(this,"refresh-trigger");else if(this.refreshTriggered&&this.lastScrollInfo.top<this.refreshHeight)this.refreshTriggered=!1,c.trigger(this,"refresh-cancel");if(this.infinite&&!this.infiniteTriggered&&Math.abs(this.lastScrollInfo.top)>=this.el.clientHeight-this.container.clientHeight)this.infiniteTriggered=!0,c.trigger(this,"infinite-scroll")}};e.prototype.calculateMovement=function(a,d){var e={top:0,left:0,speedY:0,speedX:0,
  absSpeedY:0,absSpeedX:0,deltaY:0,deltaX:0,absDeltaY:0,absDeltaX:0,y:0,x:0,duration:0},c=d?this.firstEventInfo:this.lastEventInfo,f=d?a.pageX:a.touches[0].pageX,g=d?a.pageY:a.touches[0].pageY,q=d?a.time:a.timeStamp;e.deltaY=this.elementInfo.hasVertScroll?g-c.pageY:0;e.deltaX=this.elementInfo.hasHorScroll?f-c.pageX:0;e.time=q;e.duration=q-c.time;return e};e.prototype.calculateTarget=function(a){a.y=this.lastScrollInfo.y+a.deltaY;a.x=this.lastScrollInfo.x+a.deltaX};e.prototype.checkYboundary=function(a){var d=
  this.container.clientHeight/2,e=this.elementInfo.maxTop+d;if(a.y>d)a.y=d;else if(-a.y>e)a.y=-e;else return;this.recalculateDeltaY(a)};e.prototype.checkXboundary=function(a){if(a.x>0)a.x=0;else if(-a.x>this.elementInfo.maxLeft)a.x=-this.elementInfo.maxLeft;else return;this.recalculateDeltaY(a)};e.prototype.recalculateDeltaY=function(a){var d=Math.abs(a.deltaY);a.deltaY=a.y-a.top;newAbsDeltaY=Math.abs(a.deltaY);a.duration=a.duration*newAbsDeltaY/d};e.prototype.recalculateDeltaX=function(a){var d=Math.abs(a.deltaX);
  a.deltaX=a.x-a.left;newAbsDeltaX=Math.abs(a.deltaX);a.duration=a.duration*newAbsDeltaX/d};e.prototype.hideRefresh=function(){var a=this;if(!this.preventHideRefresh)this.scrollerMoveCSS({x:0,y:0,complete:function(){c.trigger(a,"refresh-finish")}},75),this.refreshTriggered=!1};e.prototype.setMomentum=function(a){a.speedY=this.divide(a.deltaY,a.duration);a.speedX=this.divide(a.deltaX,a.duration);a.absSpeedY=Math.abs(a.speedY);a.absSpeedX=Math.abs(a.speedX);a.absDeltaY=Math.abs(a.deltaY);a.absDeltaX=
  Math.abs(a.deltaX);if(a.absDeltaY>0){if(a.deltaY=(a.deltaY<0?-1:1)*a.absSpeedY*a.absSpeedY/0.0024,a.absDeltaY=Math.abs(a.deltaY),a.duration=a.absSpeedY/0.0012,a.speedY=a.deltaY/a.duration,a.absSpeedY=Math.abs(a.speedY),a.absSpeedY<0.12||a.absDeltaY<5)a.deltaY=a.absDeltaY=a.duration=a.speedY=a.absSpeedY=0}else if(a.absDeltaX){if(a.deltaX=(a.deltaX<0?-1:1)*a.absSpeedX*a.absSpeedX/0.0024,a.absDeltaX=Math.abs(a.deltaX),a.duration=a.absSpeedX/0.0012,a.speedX=a.deltaX/a.duration,a.absSpeedX=Math.abs(a.speedX),
  a.absSpeedX<0.12||a.absDeltaX<5)a.deltaX=a.absDeltaX=a.duration=a.speedX=a.absSpeedX=0}else a.duration=0};e.prototype.onTouchEnd=function(){if(this.currentScrollingObject!=null&&this.moved){this.finishScrollingObject=this.currentScrollingObject;this.currentScrollingObject=null;var a=this.calculateMovement(this.lastEventInfo,!0);this.androidFormsMode||this.setMomentum(a);this.calculateTarget(a);var d=this.getCSSMatrix(this.el);a.top=numOnly(d.f);a.left=numOnly(d.e);this.checkYboundary(a);this.elementInfo.hasHorScroll&&
  this.checkXboundary(a);d=!this.preventPullToRefresh&&(a.top>this.refreshHeight||a.y>this.refreshHeight);this.fireRefreshRelease(d,a.top>0);if(this.refresh&&d)a.y=this.refreshHeight,a.duration=75;else if(a.y>=0){if(a.y=0,a.top>=0)a.duration=75}else if(-a.y>this.elementInfo.maxTop||this.elementInfo.maxTop==0)if(a.y=-this.elementInfo.maxTop,-a.top>this.elementInfo.maxTop)a.duration=75;if(this.androidFormsMode)a.duration=0;this.scrollerMoveCSS(a,a.duration,"cubic-bezier(0.33,0.66,0.66,1)");this.setVScrollBar(a,
  a.duration,"cubic-bezier(0.33,0.66,0.66,1)");this.setHScrollBar(a,a.duration,"cubic-bezier(0.33,0.66,0.66,1)");this.setFinishCalback(a.duration);if(this.infinite&&!this.infiniteTriggered&&Math.abs(a.y)>=this.el.clientHeight-this.container.clientHeight)this.infiniteTriggered=!0,c.trigger(this,"infinite-scroll")}};e.prototype.setFinishCalback=function(a){var d=this;this.scrollingFinishCB=setTimeout(function(){d.hideScrollbars();c.trigger(c.touchLayer,"scrollend",[d.el]);c.trigger(d,"scrollend",[d.el]);
  d.isScrolling=!1;d.elementInfo=null;d.infinite&&c.trigger(d,"infinite-scroll-end")},a)};e.prototype.startFormsMode=function(){if(!this.blockFormsFix){var a=this.getCSSMatrix(this.el);this.refreshSafeKeep=this.refresh;this.refresh=!1;this.androidFormsMode=!0;this.el.style[c.feat.cssPrefix+"Transform"]="none";this.el.style[c.feat.cssPrefix+"Transition"]="none";this.el.style[c.feat.cssPrefix+"Perspective"]="none";this.scrollerMoveCSS({x:numOnly(a.e),y:numOnly(a.f)},0);this.container.style[c.feat.cssPrefix+
  "Perspective"]="none";this.container.style[c.feat.cssPrefix+"BackfaceVisibility"]="visible";this.vscrollBar&&(this.vscrollBar.style[c.feat.cssPrefix+"Transform"]="none",this.vscrollBar.style[c.feat.cssPrefix+"Transition"]="none",this.vscrollBar.style[c.feat.cssPrefix+"Perspective"]="none",this.vscrollBar.style[c.feat.cssPrefix+"BackfaceVisibility"]="visible");this.hscrollBar&&(this.hscrollBar.style[c.feat.cssPrefix+"Transform"]="none",this.hscrollBar.style[c.feat.cssPrefix+"Transition"]="none",this.hscrollBar.style[c.feat.cssPrefix+
  "Perspective"]="none",this.hscrollBar.style[c.feat.cssPrefix+"BackfaceVisibility"]="visible")}};e.prototype.stopFormsMode=function(){if(!this.blockFormsFix){var a=this.getCSSMatrix(this.el);this.refresh=this.refreshSafeKeep;this.androidFormsMode=!1;this.el.style[c.feat.cssPrefix+"Perspective"]=1E3;this.el.style.marginTop=0;this.el.style.marginLeft=0;this.el.style[c.feat.cssPrefix+"Transition"]="0ms linear";this.scrollerMoveCSS({x:numOnly(a.e),y:numOnly(a.f)},0);this.container.style[c.feat.cssPrefix+
  "Perspective"]=1E3;this.container.style[c.feat.cssPrefix+"BackfaceVisibility"]="hidden";this.vscrollBar&&(this.vscrollBar.style[c.feat.cssPrefix+"Perspective"]=1E3,this.vscrollBar.style[c.feat.cssPrefix+"BackfaceVisibility"]="hidden");this.hscrollBar&&(this.hscrollBar.style[c.feat.cssPrefix+"Perspective"]=1E3,this.hscrollBar.style[c.feat.cssPrefix+"BackfaceVisibility"]="hidden")}};e.prototype.scrollerMoveCSS=function(b,e,f){e||(e=0);f||(f="linear");if(this.el&&this.el.style){if(this.eventsActive)this.androidFormsMode?
  (this.el.style.marginTop=Math.round(b.y)+"px",this.el.style.marginLeft=Math.round(b.x)+"px"):(this.el.style[c.feat.cssPrefix+"Transform"]="translate"+a+b.x+"px,"+b.y+"px"+d,this.el.style[c.feat.cssPrefix+"TransitionDuration"]=e+"ms",this.el.style[c.feat.cssPrefix+"TransitionTimingFunction"]=f);this.logPos(b.x,b.y)}};e.prototype.logPos=function(a,d){var e=this.elementInfo?{h:this.elementInfo.bottomMargin,w:this.elementInfo.rightMargin}:this.getViewportSize();this.loggedPcentX=this.divide(a,this.el.clientWidth-
  e.w);this.loggedPcentY=this.divide(d,this.el.clientHeight-e.h);this.scrollTop=d;this.scrollLeft=a};e.prototype.scrollbarMoveCSS=function(b,e,f,g){f||(f=0);g||(g="linear");if(b&&b.style)this.androidFormsMode?(b.style.marginTop=Math.round(e.y)+"px",b.style.marginLeft=Math.round(e.x)+"px"):(b.style[c.feat.cssPrefix+"Transform"]="translate"+a+e.x+"px,"+e.y+"px"+d,b.style[c.feat.cssPrefix+"TransitionDuration"]=f+"ms",b.style[c.feat.cssPrefix+"TransitionTimingFunction"]=g)};e.prototype.scrollTo=function(a,
  d){d||(d=0);this.scrollerMoveCSS(a,d)};e.prototype.scrollBy=function(a,d){var e=this.getCSSMatrix(this.el),c=numOnly(e.f),e=numOnly(e.e);this.scrollTo({y:c-a.y,x:e-a.x},d)};e.prototype.scrollToBottom=function(a){this.scrollTo({y:-1*(this.el.clientHeight-this.container.clientHeight),x:0},a)};e.prototype.scrollToTop=function(a){this.scrollTo({x:0,y:0},a)};return function(a,d){if(!h&&c.touchLayer&&c.isObject(c.touchLayer))f();else if(!c.touchLayer||!c.isObject(c.touchLayer))c.touchLayer={};var g=typeof a==
  "string"||a instanceof String?document.getElementById(a):a;if(g){if(jq.os.desktop)return new m(g,d);else if(d.useJsScroll)return new e(g,d);return new q(g,d)}else alert("Could not find element for scroller "+a)}}()})(jq);
  (function(c){c.fn.popup=function(c){return new f(this[0],c)};var g=[],f=function(){var f=function(f,h){if(this.container=typeof f==="string"||f instanceof String?document.getElementById(f):f)try{if(typeof h==="string"||typeof h==="number")h={message:h,cancelOnly:"true",cancelText:"OK"};this.id=id=h.id=h.id||c.uuid();this.title=h.suppressTitle?"":h.title||"Alert";this.message=h.message||"";this.cancelText=h.cancelText||"Cancel";this.cancelCallback=h.cancelCallback||function(){};this.cancelClass=h.cancelClass||
  "button";this.doneText=h.doneText||"Done";this.doneCallback=h.doneCallback||function(){};this.doneClass=h.doneClass||"button";this.cancelOnly=h.cancelOnly||!1;this.onShow=h.onShow||function(){};this.autoCloseDone=h.autoCloseDone!==void 0?h.autoCloseDone:!0;g.push(this);g.length==1&&this.show()}catch(a){console.log("error adding popup "+a)}else alert("Error finding container for popup "+f)};f.prototype={id:null,title:null,message:null,cancelText:null,cancelCallback:null,cancelClass:null,doneText:null,
  doneCallback:null,doneClass:null,cancelOnly:!1,onShow:null,autoCloseDone:!0,supressTitle:!1,show:function(){var f=this,g='<div id="'+this.id+'" class="jqPopup hidden">\t        \t\t\t\t<header>'+this.title+'</header>\t        \t\t\t\t<div><div style="width:1px;height:1px;-webkit-transform:translate3d(0,0,0);float:right"></div>'+this.message+'</div>\t        \t\t\t\t<footer style="clear:both;">\t        \t\t\t\t\t<a href="javascript:;" class="'+this.cancelClass+'" id="cancel">'+this.cancelText+'</a>\t        \t\t\t\t\t<a href="javascript:;" class="'+
  this.doneClass+'" id="action">'+this.doneText+"</a>\t        \t\t\t\t</footer>\t        \t\t\t</div></div>";c(this.container).append(c(g));g=c("#"+this.id);g.bind("close",function(){f.hide()});this.cancelOnly&&(g.find("A#action").hide(),g.find("A#cancel").addClass("center"));g.find("A").each(function(){var a=c(this);a.bind("click",function(d){a.attr("id")=="cancel"?(f.cancelCallback.call(f.cancelCallback,f),f.hide()):(f.doneCallback.call(f.doneCallback,f),f.autoCloseDone&&f.hide());d.preventDefault()})});
  f.positionPopup();c.blockUI(0.5);g.removeClass("hidden");g.bind("orientationchange",function(){f.positionPopup()});g.find("header").show();g.find("footer").show();this.onShow(this)},hide:function(){var f=this;c("#"+f.id).addClass("hidden");c.unblockUI();setTimeout(function(){f.remove()},250)},remove:function(){var f=c("#"+this.id);f.unbind("close");f.find("BUTTON#action").unbind("click");f.find("BUTTON#cancel").unbind("click");f.unbind("orientationchange").remove();g.splice(0,1);g.length>0&&g[0].show()},
  positionPopup:function(){var f=c("#"+this.id);f.css("top",window.innerHeight/2.5+window.pageYOffset-f[0].clientHeight/2+"px");f.css("left",window.innerWidth/2-f[0].clientWidth/2+"px")}};return f}(),l=!1;c.blockUI=function(f){l||(f=f?" style='opacity:"+f+";'":"",c("BODY").prepend(c("<div id='mask'"+f+"></div>")),c("BODY DIV#mask").bind("touchstart",function(c){c.preventDefault()}),c("BODY DIV#mask").bind("touchmove",function(c){c.preventDefault()}),l=!0)};c.unblockUI=function(){l=!1;c("BODY DIV#mask").unbind("touchstart");
  c("BODY DIV#mask").unbind("touchmove");c("BODY DIV#mask").remove()};window.alert=function(f){if(f===null||f===void 0)f="null";c("#jQUi").length>0?c("#jQUi").popup(f.toString()):c(document.body).popup(f.toString())}})(jq);
  (function(c){c.fn.actionsheet=function(c){for(var l,h=0;h<this.length;h++)l=new g(this[h],c);return this.length==1?l:this};var g=function(){var f=function(g,h){if(this.el=typeof g=="string"||g instanceof String?document.getElementById(g):g){if(this instanceof f){if(typeof h=="object")for(j in h)this[j]=h[j]}else return new f(g,h);try{var m=this,n;if(typeof h=="string")n=c('<div id="jq_actionsheet"><div style="width:100%">'+h+"<a href='javascript:;' class='cancel'>Cancel</a></div></div>");else if(typeof h==
  "object"){n=c('<div id="jq_actionsheet"><div style="width:100%"></div></div>');var a=c(n.children().get());h.push({text:"Cancel",cssClasses:"cancel"});for(var d=0;d<h.length;d++){var e=c('<a href="javascript:;" >'+(h[d].text||"TEXT NOT ENTERED")+"</a>");e[0].onclick=h[d].handler||function(){};h[d].cssClasses&&h[d].cssClasses.length>0&&e.addClass(h[d].cssClasses);a.append(e)}}c(g).find("#jq_actionsheet").remove();c(g).find("#jq_action_mask").remove();actionsheetEl=c(g).append(n);n.get().style[c.feat.cssPrefix+
  "Transition"]="all 0ms";n.css(c.feat.cssPrefix+"Transform","translate"+c.feat.cssTransformStart+"0,0"+c.feat.cssTransformEnd);n.css("top",window.innerHeight+"px");this.el.style.overflow="hidden";n.on("click","a",function(){m.hideSheet()});this.activeSheet=n;c(g).append('<div id="jq_action_mask" style="position:absolute;top:0px;left:0px;right:0px;bottom:0px;z-index:9998;background:rgba(0,0,0,.4)"/>');setTimeout(function(){n.get().style[c.feat.cssPrefix+"Transition"]="all 300ms";n.css(c.feat.cssPrefix+
  "Transform","translate"+c.feat.cssTransformStart+"0,"+-n.height()+"px"+c.feat.cssTransformEnd)},10)}catch(q){alert("error adding actionsheet"+q)}}else alert("Could not find element for actionsheet "+g)};f.prototype={activeSheet:null,hideSheet:function(){var f=this;this.activeSheet.off("click","a",function(){f.hideSheet()});c(this.el).find("#jq_action_mask").remove();this.activeSheet.get().style[c.feat.cssPrefix+"Transition"]="all 0ms";var g=this.activeSheet,m=this.el;setTimeout(function(){g.get().style[c.feat.cssPrefix+
  "Transition"]="all 300ms";g.css(c.feat.cssPrefix+"Transform","translate"+c.feat.cssTransformStart+"0,0px"+c.feat.cssTransformEnd);setTimeout(function(){try{g.remove(),g=null,m.style.overflow="none"}catch(c){}},500)},10)}};return f}()})(jq);
  (function(c){c.passwordBox=function(){return new g};var g=function(){this.oldPasswords={}};g.prototype={showPasswordPlainText:!1,getOldPasswords:function(f){var g=f&&document.getElementById(f)?document.getElementById(f):document;if(g){f=g.getElementsByTagName("input");for(g=0;g<f.length;g++)if(f[g].type=="password"&&c.os.webkit)f[g].type="text",f[g].style["-webkit-text-security"]="disc"}else alert("Could not find container element for passwordBox "+f)},changePasswordVisiblity:function(f,g){var f=
  parseInt(f),h=document.getElementById(g);h.style[c.cssPrefix+"text-security"]=f==1?"none":"disc";if(!c.os.webkit)h.type=f==1?"text":"password"}}})(jq);
  (function(c){c.selectBox={scroller:null,getOldSelects:function(g){if(c.os.android&&!c.os.androidICS)if(c.fn.scroller){var f=g&&document.getElementById(g)?document.getElementById(g):document;if(f){for(var l=f.getElementsByTagName("select"),h=this,m=0;m<l.length;m++)l[m].hasSelectBoxFix||function(f){var a=document.createElement("div"),d=window.getComputedStyle(f),e=d.width=="intrinsic"?"100%":d.width,e=parseInt(e)>0?e:"100px",g=parseInt(f.style.height)>0?f.style.height:parseInt(d.height)?d.height:"20px";
  a.style.width=e;a.style.height=g;a.style.margin=d.margin;a.style.position=d.position;a.style.left=d.left;a.style.top=d.top;a.style.lineHeight=d.lineHeight;a.style.zIndex="1";if(f.value)a.innerHTML=f.options[f.selectedIndex].text;a.style.background="url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAeCAIAAABFWWJ4AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkM1NjQxRUQxNUFEODExRTA5OUE3QjE3NjI3MzczNDAzIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkM1NjQxRUQyNUFEODExRTA5OUE3QjE3NjI3MzczNDAzIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QzU2NDFFQ0Y1QUQ4MTFFMDk5QTdCMTc2MjczNzM0MDMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QzU2NDFFRDA1QUQ4MTFFMDk5QTdCMTc2MjczNzM0MDMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6YWbdCAAAAlklEQVR42mIsKChgIBGwAHFPTw/xGkpKSlggrG/fvhGjgYuLC0gyMZAOoPb8//9/0Or59+8f8XrICQN66SEnDOgcp3AgKiqKqej169dY9Hz69AnCuHv3rrKyMrIKoAhcVlBQELt/gIqwstHD4B8quH37NlAQSKKJEwg3iLbBED8kpeshoGcwh5uuri5peoBFMEluAwgwAK+5aXfuRb4gAAAAAElFTkSuQmCC') right top no-repeat";
  a.style.backgroundColor="white";a.style.lineHeight=g;a.style.backgroundSize="contain";a.className="jqmobiSelect_fakeInput "+f.className;a.id=f.id+"_jqmobiSelect";a.style.border="1px solid gray";a.style.color="black";a.linkId=f.id;a.onclick=function(){h.initDropDown(this.linkId)};c(a).insertBefore(c(f));f.style.display="none";f.style.webkitAppearance="none";for(d=0;d<f.options.length;d++){if(f.options[d].selected)a.value=f.options[d].text;f.options[d].watch("selected",function(a,d,e){if(e==!0)f.getAttribute("multiple")||
  h.updateMaskValue(this.parentNode.id,this.text,this.value),this.parentNode.value=this.value;return e})}f.watch("selectedIndex",function(a,d,e){if(this.options[e])f.getAttribute("multiple")||h.updateMaskValue(this.id,this.options[e].text,this.options[e].value),this.value=this.options[e].value;return e});imageMask=a=null;l[m].hasSelectBoxFix=!0}(l[m]);h.createHtml()}else alert("Could not find container element for jq.web.selectBox "+g)}else alert("This library requires jq.web.Scroller")},updateDropdown:function(c){if(c=
  document.getElementById(c)){for(var f=0;f<c.options.length;f++){if(c.options[f].selected)fakeInput.value=c.options[f].text;c.options[f].watch("selected",function(c,f,g){if(g==!0)that.updateMaskValue(this.parentNode.id,this.text,this.value),this.parentNode.value=this.value;return g})}c=null}},initDropDown:function(c){var f=this,l=document.getElementById(c);if(!l.disabled&&l&&l.options&&l.options.length!=0){document.getElementById("jqmobiSelectBoxScroll").innerHTML="";document.getElementById("jqmobiSelectBoxHeaderTitle").innerHTML=
  l.name!=void 0&&l.name!="undefined"&&l.name!=""?l.name:c;for(var h=0;h<l.options.length;h++){l.options[h].watch("selected",function(a,d,b){if(b==!0)f.updateMaskValue(this.parentNode.id,this.text,this.value),this.parentNode.value=this.value;return b});var m=l.options[h].selected?!0:!1,n=document.createElement("div");n.className="jqmobiSelectRow";n.style.cssText=";line-height:40px;font-size:14px;padding-left:10px;height:40px;width:100%;position:relative;width:100%;border-bottom:1px solid black;background:white;";
  var a=document.createElement("a");a.href="javascript:;";n.tmpValue=h;n.onclick=function(){f.setDropDownValue(c,this.tmpValue,this)};a.style.cssText="text-decoration:none;color:black;";a.innerHTML=l.options[h].text;var d=document.createElement("span");d.style.cssText="float:right;margin-right:20px;margin-top:-2px";var e=document.createElement("button");m?(e.style.cssText="background: #000;padding: 0px 0px;border-radius:15px;border:3px solid black;",e.className="jqmobiSelectRowButtonFound"):(e.style.cssText=
  "background: #ffffff;padding: 0px 0px;border-radius:15px;border:3px solid black;",e.className="jqmobiSelectRowButton");e.style.width="20px";e.style.height="20px";e.checked=m;a.className="jqmobiSelectRowText";d.appendChild(e);n.appendChild(a);n.appendChild(d);document.getElementById("jqmobiSelectBoxScroll").appendChild(n);a=e=d=null}try{document.getElementById("jqmobiSelectModal").style.display="block"}catch(q){console.log("Error showing div "+q)}try{if(n){var A=numOnly(n.style.height),b=numOnly(document.getElementById("jqmobiSelectBoxHeader").style.height);
  this.scroller.scrollTo({x:0,y:0*A+b>=numOnly(document.getElementById("jqmobiSelectBoxFix").clientHeight)-b?0*-A+b:0})}}catch(p){console.log("error init dropdown"+p)}l=n=null}},updateMaskValue:function(c,f,l){var h=document.getElementById(c+"_jqmobiSelect"),c=document.getElementById(c);if(h)h.innerHTML=f;if(typeof c.onchange=="function")c.onchange(l)},setDropDownValue:function(g,f,l){if(g=document.getElementById(g))g.getAttribute("multiple")?(f=c(g).find("option:nth-child("+(f+1)+")").get(0),f.selected?
  (f.selected=!1,c(l).find("button").css("background","#fff")):(f.selected=!0,c(l).find("button").css("background","#000"))):(g.selectedIndex=f,c(g).find("option").forEach(function(c){c.selected=!1}),c(g).find("option:nth-child("+(f+1)+")").get(0).selected=!0,this.scroller.scrollTo({x:0,y:0}),this.hideDropDown()),c(g).trigger("change"),g=null},hideDropDown:function(){document.getElementById("jqmobiSelectModal").style.display="none";document.getElementById("jqmobiSelectBoxScroll").innerHTML=""},createHtml:function(){var g=
  this;if(!document.getElementById("jqmobiSelectBoxContainer")){var f=document.createElement("div");f.style.cssText="position:absolute;top:0px;bottom:0px;left:0px;right:0px;background:rgba(0,0,0,.7);z-index:200000;display:none;";f.id="jqmobiSelectModal";var l=document.createElement("div");l.id="jqmobiSelectBoxContainer";l.style.cssText="position:absolute;top:8%;bottom:10%;display:block;width:90%;margin:auto;margin-left:5%;height:90%px;background:white;color:black;border:1px solid black;border-radius:6px;";
  l.innerHTML="<div id='jqmobiSelectBoxHeader' style=\"display:block;font-family:'Eurostile-Bold', Eurostile, Helvetica, Arial, sans-serif;color:#fff;font-weight:bold;font-size:18px;line-height:34px;height:34px; text-transform:uppercase;text-align:left;text-shadow:rgba(0,0,0,.9) 0px -1px 1px;    padding: 0px 8px 0px 8px;    border-top-left-radius:5px; border-top-right-radius:5px; -webkit-border-top-left-radius:5px; -webkit-border-top-right-radius:5px;    background:#39424b;    margin:1px;\"><div style='float:left;' id='jqmobiSelectBoxHeaderTitle'></div><div style='float:right;width:60px;margin-top:-5px'><div id='jqmobiSelectClose' class='button' style='width:60px;height:32px;line-height:32px;'>Close</div></div></div>";
  l.innerHTML+='<div id="jqmobiSelectBoxFix"  style="position:relative;height:90%;background:white;overflow:hidden;width:100%;"><div id="jqmobiSelectBoxScroll"></div></div>';g=this;f.appendChild(l);c(document).ready(function(){jq("#jQUi")?jq("#jQUi").append(f):document.body.appendChild(f);c("#jqmobiSelectClose").get().onclick=function(){g.hideDropDown()};var h=c("<style>.jqselectscrollBarV{opacity:1 !important;}</style>").get();document.body.appendChild(h);try{g.scroller=c("#jqmobiSelectBoxScroll").scroller({scroller:!1,
  verticalScroll:!0,vScrollCSS:"jqselectscrollBarV"})}catch(m){console.log("Error creating select html "+m)}h=l=f=null})}}};if(!HTMLElement.prototype.watch)HTMLElement.prototype.watch=function(c,f){var l=this[c],h=l,m=function(){return h},n=function(a){l=h;return h=f.call(this,c,l,a)};delete this[c]&&(HTMLElement.defineProperty?HTMLElement.defineProperty(this,c,{get:m,set:n,enumerable:!1,configurable:!0}):HTMLElement.prototype.__defineGetter__&&HTMLElement.prototype.__defineSetter__&&(HTMLElement.prototype.__defineGetter__.call(this,
  c,m),HTMLElement.prototype.__defineSetter__.call(this,c,n)))};if(!HTMLElement.prototype.unwatch)HTMLElement.prototype.unwatch=function(c){var f=this[c];delete this[c];this[c]=f}})(jq);
  (function(c){function g(){f.last&&Date.now()-f.last>=h&&(f.el.trigger("longTap"),f={})}var f={},l,h=750;c(document).ready(function(){var m;c(document.body).bind("touchstart",function(n){if(n.touches&&n.touches.length!=0){var a=Date.now(),d=a-(f.last||a);if(n.touches&&n.touches.length!=0){f.el=c("tagName"in n.touches[0].target?n.touches[0].target:n.touches[0].target.parentNode);l&&clearTimeout(l);f.x1=n.touches[0].pageX;f.y1=n.touches[0].pageY;f.x2=f.y2=0;if(d>0&&d<=250)f.isDoubleTap=!0;f.last=a;setTimeout(g,
  h);f.el.data("ignore-pressed")||f.el.addClass("selected");m&&!m.data("ignore-pressed")&&m.removeClass("selected");m=f.el}}}).bind("touchmove",function(c){f.x2=c.touches[0].pageX;f.y2=c.touches[0].pageY}).bind("touchend",function(){if(f.el)f.el.data("ignore-pressed")||f.el.removeClass("selected"),f.isDoubleTap?(f.el.trigger("doubleTap"),f={}):f.x2>0||f.y2>0?((Math.abs(f.x1-f.x2)>30||Math.abs(f.y1-f.y2)>30)&&f.el.trigger("swipe")&&f.el.trigger("swipe"+(Math.abs(f.x1-f.x2)>=Math.abs(f.y1-f.y2)?f.x1-
  f.x2>0?"Left":"Right":f.y1-f.y2>0?"Up":"Down")),f.x1=f.x2=f.y1=f.y2=f.last=0):"last"in f&&(f.el.trigger("tap"),l=setTimeout(function(){l=null;f.el&&f.el.trigger("singleTap");f={}},250))}).bind("touchcancel",function(){f.el&&!f.el.data("ignore-pressed")&&f.el.removeClass("selected");f={}})});["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap","singleTap","longTap"].forEach(function(f){c.fn[f]=function(c){return this.bind(f,c)}})})(jq);
  (function(){$.touchLayer=function(d){$.touchLayer=new a(d);return $.touchLayer};var c=["input","select","textarea"],g=["button","radio","checkbox","range","date"],f=$.os.ios,l=$.os.blackberry,h=$.os.blackberry||$.os.android&&!$.os.chrome,m=$.os.ios,n=!1,a=function(a){this.clearTouchVars();a.addEventListener("touchstart",this,!1);a.addEventListener("touchmove",this,!1);a.addEventListener("touchend",this,!1);a.addEventListener("click",this,!1);a.addEventListener("focusin",this,!1);document.addEventListener("scroll",
  this,!1);window.addEventListener("resize",this,!1);window.addEventListener("orientationchange",this,!1);this.layer=a;this.scrollEndedProxy_=$.proxy(this.scrollEnded,this);this.exitEditProxy_=$.proxy(this.exitExit,this,[]);this.launchFixUIProxy_=$.proxy(this.launchFixUI,this);var e=this;this.scrollTimeoutExpireProxy_=function(){e.scrollTimeout_=null;e.scrollTimeoutEl_.addEventListener("scroll",e.scrollEndedProxy_,!1)};this.retestAndFixUIProxy_=function(){if(jq.os.android)e.layer.style.height="100%";
  $.asap(e.testAndFixUI,e,arguments)};document.addEventListener("click",function(a){a.clientX!==void 0&&e.lastTouchStartX!=null&&2>Math.abs(e.lastTouchStartX-a.clientX)&&2>Math.abs(e.lastTouchStartY-a.clientY)&&(a.preventDefault(),a.stopPropagation())},!0);$.bind(this,"scrollstart",function(a){e.isScrolling=!0;e.scrollingEl_=a;e.fireEvent("UIEvents","scrollstart",a,!1,!1)});$.bind(this,"scrollend",function(a){e.isScrolling=!1;e.fireEvent("UIEvents","scrollend",a,!1,!1)});this.launchFixUI(5)};a.prototype=
  {dX:0,dY:0,cX:0,cY:0,touchStartX:null,touchStartY:null,layer:null,scrollingEl_:null,scrollTimeoutEl_:null,scrollTimeout_:null,reshapeTimeout_:null,scrollEndedProxy_:null,exitEditProxy_:null,launchFixUIProxy_:null,reHideAddressBarTimeout_:null,retestAndFixUIProxy_:null,panElementId:"header",blockClicks:!1,allowDocumentScroll_:!1,ignoreNextResize_:!1,blockPossibleClick_:!1,isScrolling:!1,isScrollingVertical_:!1,wasPanning_:!1,isPanning_:!1,isFocused_:!1,justBlurred_:!1,requiresNativeTap:!1,holdingReshapeType_:null,
  handleEvent:function(a){switch(a.type){case "touchstart":this.onTouchStart(a);break;case "touchmove":this.onTouchMove(a);break;case "touchend":this.onTouchEnd(a);break;case "click":this.onClick(a);break;case "blur":this.onBlur(a);break;case "scroll":this.onScroll(a);break;case "orientationchange":this.onOrientationChange(a);break;case "resize":this.onResize(a);break;case "focusin":this.onFocusIn(a)}},launchFixUI:function(a){a||(a=2);if(this.reHideAddressBarTimeout_==null)return this.testAndFixUI(0,
  a)},resetFixUI:function(){this.reHideAddressBarTimeout_&&clearTimeout(this.reHideAddressBarTimeout_);this.reHideAddressBarTimeout_=null},testAndFixUI:function(a,e){var c=this.getReferenceHeight(),f=this.getCurrentHeight();if(c!=f&&!(f*0.97<c&&c*0.97<f))return this.hideAddressBar(a,e),!0;jq.os.android&&this.resetFixUI();return!1},hideAddressBar:function(a,e){if(a>=e)this.resetFixUI();else if(jq.os.desktop||jq.os.chrome)this.layer.style.height="100%";else if(jq.os.android){window.scrollTo(1,1);this.layer.style.height=
  this.isFocused_?window.innerHeight+"px":window.outerHeight/window.devicePixelRatio+"px";that=this;var c=a+1;this.reHideAddressBarTimeout_=setTimeout(this.retestAndFixUIProxy_,250*c,[c,e])}else if(!this.isFocused_)document.documentElement.style.height="5000px",window.scrollTo(0,0),document.documentElement.style.height=window.innerHeight+"px",this.layer.style.height=window.innerHeight+"px"},getReferenceHeight:function(){return jq.os.android?Math.ceil(window.outerHeight/window.devicePixelRatio):window.innerHeight},
  getCurrentHeight:function(){return jq.os.android?window.innerHeight:numOnly(document.documentElement.style.height)},onOrientationChange:function(){!this.holdingReshapeType_&&this.reshapeTimeout_?this.fireReshapeEvent("orientationchange"):this.previewReshapeEvent("orientationchange")},onResize:function(){this.ignoreNextResize_?this.ignoreNextResize_=!1:this.launchFixUI()&&this.reshapeAction()},onClick:function(a){var e=a.target&&a.target.tagName!=void 0?a.target.tagName.toLowerCase():"";if(c.indexOf(e)!==
  -1&&(!this.isFocused_||!a.target==this.focusedElement)){e=a.target&&a.target.type!=void 0?a.target.type.toLowerCase():"";if(g.indexOf(e)!==-1)this.isFocused_=!1;else{this.isFocused_&&this.focusedElement.removeEventListener("blur",this,!1);this.focusedElement=a.target;this.focusedElement.addEventListener("blur",this,!1);if(!this.isFocused_&&!this.justBlurred_)if($.trigger(this,"enter-edit",[a.target]),$.os.ios){var h=this;setTimeout(function(){h.fireReshapeEvent("enter-edit")},300)}else this.previewReshapeEvent("enter-edit");
  this.isFocused_=!0}this.justBlurred_=!1;this.allowDocumentScroll_=!0;f&&a.target.focus()}else $.os.blackberry10&&this.isFocused_&&this.focusedElement.blur()},previewReshapeEvent:function(a){that=this;this.reshapeTimeout_=setTimeout(function(){that.fireReshapeEvent(a);that.reshapeTimeout_=null;that.holdingReshapeType_=null},750);this.holdingReshapeType_=a},fireReshapeEvent:function(a){$.trigger(this,"reshape");$.trigger(this,a?a+"-reshape":"unknown-reshape")},reshapeAction:function(){this.reshapeTimeout_?
  (clearTimeout(this.reshapeTimeout_),this.fireReshapeEvent(this.holdingReshapeType_),this.reshapeTimeout_=this.holdingReshapeType_=null):this.previewReshapeEvent()},onFocusIn:function(a){if(!this.isFocused_)this.onClick(a)},onBlur:function(a){if(!(jq.os.android&&a.target==window))this.isFocused_=!1,this.focusedElement&&this.focusedElement.removeEventListener("blur",this,!1),this.focusedElement=null,this.justBlurred_=!0,$.asap(this.exitEditProxy_,this,[a.target])},exitExit:function(a){this.justBlurred_=
  !1;if(!this.isFocused_)if($.trigger(this,"exit-edit",[a]),this.allowDocumentScroll_=!1,$.os.ios){var e=this;setTimeout(function(){e.fireReshapeEvent("exit-edit")},300)}else this.previewReshapeEvent("exit-edit")},onScroll:function(a){if(!this.allowDocumentScroll_&&!this.isPanning_&&a.target==document)this.allowDocumentScroll_=!0,this.wasPanning_?(this.wasPanning_=!1,setTimeout(this.launchFixUIProxy_,2E3,[2])):this.launchFixUI()},onTouchStart:function(a){this.dX=a.touches[0].pageX;this.dY=a.touches[0].pageY;
  this.lastTimestamp=a.timeStamp;this.lastTouchStartX=this.lastTouchStartY=null;(m||$.feat.nativeTouchScroll)&&this.checkDOMTree(a.target,this.layer);if(this.isScrolling)if(this.scrollTimeout_!=null)clearTimeout(this.scrollTimeout_),this.scrollTimeout_=null,this.scrollTimeoutEl_!=this.scrollingEl_?this.scrollEnded(!1):this.blockPossibleClick_=!0;else if(this.scrollTimeoutEl_)this.scrollEnded(!0),this.blockPossibleClick_=!0;if(jq.os.android&&a&&a.target&&a.target.getAttribute&&a.target.getAttribute("data-touchlayer")==
  "ignore"||this.isFocused_&&!$.os.blackberry10)this.allowDocumentScroll_=this.requiresNativeTap=!0;else if(h&&a.target&&a.target.tagName!=void 0){var e=a.target.tagName.toLowerCase();if(c.indexOf(e)!==-1)e!="select"&&$.trigger(this,"pre-enter-edit",[a.target]),this.requiresNativeTap=!0}else if(a.target&&a.target.tagName!==void 0&&a.target.tagName.toLowerCase()=="input"&&a.target.type=="range")this.requiresNativeTap=!0;!this.isPanning_&&!this.requiresNativeTap?(this.isScrolling&&!$.feat.nativeTouchScroll||
  !this.isScrolling)&&a.preventDefault():this.isScrollingVertical_&&this.demandVerticalScroll()},demandVerticalScroll:function(){if(this.scrollingEl_.scrollTop<=0)this.scrollingEl_.scrollTop=1;else if(this.scrollingEl_.scrollTop+this.scrollingEl_.clientHeight>=this.scrollingEl_.scrollHeight)this.scrollingEl_.scrollTop=this.scrollingEl_.scrollHeight-this.scrollingEl_.clientHeight-1},ignoreScrolling:function(a){if(a.scrollWidth===void 0||a.clientWidth===void 0)return!0;if(a.scrollHeight===void 0||a.clientHeight===
  void 0)return!0;return!1},allowsVerticalScroll:function(a,e){var c=e.overflowY;if(c=="scroll")return!0;if(c=="auto"&&a.scrollHeight>a.clientHeight)return!0;return!1},allowsHorizontalScroll:function(a,e){var c=e.overflowX;if(c=="scroll")return!0;if(c=="auto"&&a.scrollWidth>a.clientWidth)return!0;return!1},checkDOMTree:function(a,e){if(m&&this.panElementId==a.id)this.isPanning_=!0;else{if($.feat.nativeTouchScroll){if(this.ignoreScrolling(a))return;var c=window.getComputedStyle(a);if(this.allowsVerticalScroll(a,
  c)){this.isScrollingVertical_=!0;this.scrollingEl_=a;this.isScrolling=!0;return}else if(this.allowsHorizontalScroll(a,c))this.isScrollingVertical_=!1,this.scrollingEl_=null,this.isScrolling=!0}a!=e&&a.parentNode&&this.checkDOMTree(a.parentNode,e)}},scrollEnded:function(a){a&&this.scrollTimeoutEl_.removeEventListener("scroll",this.scrollEndedProxy_,!1);this.fireEvent("UIEvents","scrollend",this.scrollTimeoutEl_,!1,!1);this.scrollTimeoutEl_=null},onTouchMove:function(a){var e=this.moved;this.moved=
  !0;if(l)this.cY=a.touches[0].pageY-this.dY,this.cX=a.touches[0].pageX-this.dX;if(!this.isPanning_){if(this.isScrolling)e||this.fireEvent("UIEvents","scrollstart",this.scrollingEl_,!1,!1),this.speedY=(this.lastY-a.touches[0].pageY)/(a.timeStamp-this.lastTimestamp),this.lastY=a.touches[0].pageY,this.lastX=a.touches[0].pageX,this.lastTimestamp=a.timeStamp;!$.os.blackberry10&&!this.requiresNativeTap&&(!this.isScrolling||!$.feat.nativeTouchScroll)&&a.preventDefault()}},onTouchEnd:function(a){if($.os.ios){if(n==
  a.changedTouches[0].identifier)return a.preventDefault(),!1;n=a.changedTouches[0].identifier}var e=this.moved;l&&(e=e&&!(Math.abs(this.cX)<10&&Math.abs(this.cY)<10));if(!jq.os.ios||!this.requiresNativeTap)this.allowDocumentScroll_=!1;if(this.isPanning_&&e)this.wasPanning_=!0;else if(!e&&!this.requiresNativeTap){if(a.preventDefault(),!this.blockClicks&&!this.blockPossibleClick_){e=a.target;if(e.nodeType==3)e=e.parentNode;this.fireEvent("Event","click",e,!0,a.mouseToTouch,a.changedTouches[0]);this.lastTouchStartX=
  this.dX;this.lastTouchStartY=this.dY}}else if(e){if(this.isScrolling)this.scrollTimeoutEl_=this.scrollingEl_,Math.abs(this.speedY)<0.01?this.scrollEnded(!1):this.scrollTimeout_=setTimeout(this.scrollTimeoutExpireProxy_,30);this.requiresNativeTap&&(this.isFocused_||$.trigger(this,"cancel-enter-edit",[a.target]))}this.clearTouchVars()},clearTouchVars:function(){this.speedY=this.lastY=this.cY=this.cX=this.dX=this.dY=0;this.blockPossibleClick_=this.requiresNativeTap=this.isScrollingVertical_=this.isScrolling=
  this.isPanning_=this.moved=!1},fireEvent:function(a,e,c,f,b,g){var h=document.createEvent(a);h.initEvent(e,f,!0);h.target=c;g&&$.each(g,function(a,b){h[a]=b});if(b)h.mouseToTouch=!0;c.dispatchEvent(h)}}})();
  (function(c){var g=window.location.pathname,f=window.location.hash,l=f,h=function(){var a=this;jq(document).ready(function(){var a=document.getElementById("jQUi");if(a==null){a=document.createElement("div");a.id="jQUi";for(var e=document.body;e.firstChild;)a.appendChild(e.firstChild);jq(document.body).prepend(a)}jq.os.supportsTouch&&c.touchLayer(a)});window.AppMobi?document.addEventListener("appMobi.device.ready",function(){a.autoBoot();this.removeEventListener("appMobi.device.ready",arguments.callee)},
  !1):document.readyState=="complete"||document.readyState=="loaded"?this.autoBoot():document.addEventListener("DOMContentLoaded",function(){a.autoBoot();this.removeEventListener("DOMContentLoaded",arguments.callee)},!1);if(!window.AppMobi)AppMobi={},AppMobi.webRoot="";window.addEventListener("popstate",function(){var d=c.ui.getPanelId(document.location.hash);c.ui.historyCache[d.replace("#","")]&&d!="#"+c.ui.activeDiv.id&&a.goBack()},!1);this.availableTransitions={};this.availableTransitions["default"]=
  this.availableTransitions.none=this.noTransition};h.prototype={showLoading:!0,loadContentQueue:[],isAppMobi:!1,titlebar:"",navbar:"",header:"",viewportContainer:"",backButton:"",remotePages:{},history:[],historyCache:{},homeDiv:"",screenWidth:"",content:"",modalWindow:"",customFooter:!1,defaultFooter:"",defaultHeader:null,customMenu:!1,defaultMenu:"",_readyFunc:null,doingTransition:!1,passwordBox:jq.passwordBox?new jq.passwordBox:!1,selectBox:jq.selectBox?jq.selectBox:!1,ajaxUrl:"",transitionType:"slide",
  scrollingDivs:[],firstDiv:"",hasLaunched:!1,launchCompleted:!1,activeDiv:"",customClickHandler:"",activeDiv:"",menuAnimation:null,togglingSideMenu:!1,autoBoot:function(){this.hasLaunched=!0;this.autoLaunch&&this.launch()},css3animate:function(a,d){a=jq(a);return a.css3Animate(d)},loadDefaultHash:!0,useAjaxCacheBuster:!1,actionsheet:function(a){return jq("#jQUi").actionsheet(a)},popup:function(a){return c("#jQUi").popup(a)},blockUI:function(a){c.blockUI(a)},unblockUI:function(){c.unblockUI()},removeFooterMenu:function(){jq("#navbar").hide();
  jq("#content").css("bottom","0px");this.showNavMenu=!1},showNavMenu:!0,autoLaunch:!0,showBackbutton:!0,backButtonText:"",resetScrollers:!0,ready:function(a){this.launchCompleted?a():document.addEventListener("jq.ui.ready",function(){a();this.removeEventListener("jq.ui.ready",arguments.callee)},!1)},setBackButtonStyle:function(a){jq("#backButton").get(0).className=a},goBack:function(){if(this.history.length>0){var a=this,d=this.history.pop();c.asap(function(){a.loadContent(d.target+"",0,1,d.transition);
  a.transitionType=d.transition;a.updateHash(d.target)})}},clearHistory:function(){this.history=[];this.setBackButtonVisibility(!1)},pushHistory:function(a,d,e,f){this.history.push({target:a,transition:e});try{window.history.pushState(d,d,g+"#"+d+f),c(window).trigger("hashchange",{newUrl:g+"#"+d+f,oldURL:g+a}),this.historyCache[d]=1}catch(h){}},updateHash:function(a){l=a=a.indexOf("#")==-1?"#"+a:a;var d=window.location.hash,e=this.getPanelId(a).substring(1);try{window.history.replaceState(e,e,g+a),
  c(window).trigger("hashchange",{newUrl:g+a,oldUrl:g+d})}catch(f){}},getPanelId:function(a){var d=a.indexOf("/");return d==-1?a:a.substring(0,d)},updateBadge:function(a,d,c,f){c===void 0&&(c="");a[0]!="#"&&(a="#"+a);var g=jq(a).find("span.jq-badge");g.length==0?(jq(a).css("position")!="absolute"&&jq(a).css("position","relative"),g=jq("<span class='jq-badge "+c+"'>"+d+"</span>"),jq(a).append(g)):g.html(d);jq.isObject(f)?g.css(f):f&&g.css("background",f);g.data("ignore-pressed","true")},removeBadge:function(a){jq(a).find("span.jq-badge").remove()},
  toggleNavMenu:function(a){if(jq.ui.showNavMenu)if(jq("#navbar").css("display")!="none"&&(a!==void 0&&a!==!0||a===void 0))jq("#content").css("bottom","0px"),jq("#navbar").hide();else if(a===void 0||a!==void 0&&a===!0)jq("#navbar").show(),jq("#content").css("bottom",jq("#navbar").css("height"))},toggleHeaderMenu:function(a){if(jq("#header").css("display")!="none"&&(a!==void 0&&a!==!0||a===void 0))jq("#content").css("top","0px"),jq("#header").hide();else if(a===void 0||a!==void 0&&a===!0)jq("#header").show(),
  a=numOnly(jq("#header").css("height")),jq("#content").css("top",a+"px")},toggleSideMenu:function(a,d){if(this.isSideMenuEnabled()&&!this.togglingSideMenu){this.togglingSideMenu=!0;var c=this,f=jq("#menu"),g=jq("#content, #menu, #header, #navbar");!f.hasClass("on")&&!f.hasClass("to-on")&&(a!==void 0&&a!==!1||a===void 0)?(f.show(),c.css3animate(g,{removeClass:"to-off off on",addClass:"to-on",complete:function(a){a?(c.togglingSideMenu=!1,d&&d(!0)):c.css3animate(g,{removeClass:"to-off off to-on",addClass:"on",
  time:0,complete:function(){c.togglingSideMenu=!1;d&&d(!1)}})}})):(a===void 0||a!==void 0&&a===!1)&&c.css3animate(g,{removeClass:"on off to-on",addClass:"to-off",complete:function(a){a?(c.togglingSideMenu=!1,d&&d(!0)):c.css3animate(g,{removeClass:"to-off on to-on",addClass:"off",time:0,complete:function(){f.hide();c.togglingSideMenu=!1;d&&d(!1)}})}})}},disableSideMenu:function(){var a=jq("#content, #menu, #header, #navbar");this.isSideMenuOn()?this.toggleSideMenu(!1,function(d){d||a.removeClass("hasMenu")}):
  a.removeClass("hasMenu")},enableSideMenu:function(){jq("#content, #menu, #header, #navbar").addClass("hasMenu")},isSideMenuEnabled:function(){return jq("#content").hasClass("hasMenu")},isSideMenuOn:function(){var a=jq("#menu");return this.isSideMenuEnabled()&&(a.hasClass("on")||a.hasClass("to-on"))},updateNavbarElements:function(a){var d=jq("#navbar");if(!(a===void 0||a==null)){if(typeof a=="string")return d.html(a,!0),null;d.html("");for(var c=0;c<a.length;c++){var f=a[c].cloneNode(!0);if(a[c].oldhash)f.href=
  a[c].oldhref,f.onclick=a[c].oldonclick;d.append(f)}a=jq("#navbar a");a.length>0&&a.data("ignore-pressed","true").data("resetHistory","true")}},updateHeaderElements:function(a){var d=jq("#header");if(!(a===void 0||a==null)){if(typeof a=="string")return d.html(a,!0),null;d.html("");for(var c=0;c<a.length;c++){var f=a[c].cloneNode(!0);d.append(f)}}},updateSideMenu:function(a){var d=this,c=jq("#menu_scroller");if(!(a===void 0||a==null)){if(typeof a=="string")c.html(a,!0);else{c.html("");var f=document.createElement("a");
  f.className="closebutton jqMenuClose";f.href="javascript:;";f.onclick=function(){d.toggleSideMenu(!1)};c.append(f);f=document.createElement("div");f.className="jqMenuHeader";f.innerHTML="Menu";c.append(f);for(f=0;f<a.length;f++){var g=a[f].cloneNode(!0);if(a[f].oldhash)g.href=a[f].oldhref,g.onclick=a[f].oldonclick;c.append(g)}}this.scrollingDivs.menu_scroller.hideScrollbars();this.scrollingDivs.menu_scroller.scrollToTop()}},setTitle:function(a){jq("#header #pageTitle").html(a)},setBackButtonText:function(a){this.backButtonText.length>
  0?jq("#header #backButton").html(this.backButtonText):jq("#header #backButton").html(a)},setBackButtonVisibility:function(a){a?jq("#header #backButton").css("visibility","visible"):jq("#header #backButton").css("visibility","hidden")},showMask:function(a){a||(a="Loading Content");jq("#jQui_mask>h1").html(a);jq("#jQui_mask").show()},hideMask:function(){jq("#jQui_mask").hide()},showModal:function(a){a="#"+a.replace("#","");try{if(jq(a))jq("#modalContainer").html(c.feat.nativeTouchScroll?jq(a).html():
  jq(a).get(0).childNodes[0].innerHTML+"",!0),jq("#modalContainer").append("<a href='javascript:;' onclick='$.ui.hideModal();' class='closebutton modalbutton'></a>"),this.modalWindow.style.display="block",content=button=null,this.scrollingDivs.modal_container.enable(this.resetScrollers),this.scrollToTop("modal"),jq("#modalContainer").data("panel",a)}catch(d){console.log("Error with modal - "+d,this.modalWindow)}},hideModal:function(){c("#modalContainer").html("",!0);jq("#jQui_modal").hide();this.scrollingDivs.modal_container.disable();
  var a=c(c("#modalContainer").data("panel")),d=a.data("unload");if(typeof d=="string"&&window[d])window[d](a.get(0));a.trigger("unloadpanel")},updateContentDiv:function(a,d){var a="#"+a.replace("#",""),e=jq(a).get(0);if(e){var f=document.createElement("div");f.innerHTML=d;c(f).children(".panel")&&c(f).children(".panel").length>0&&(f=c(f).children(".panel").get());e.getAttribute("js-scrolling")&&e.getAttribute("js-scrolling").toLowerCase()=="yes"?(c.cleanUpContent(e.childNodes[0],!1,!0),e.childNodes[0].innerHTML=
  d):(c.cleanUpContent(e,!1,!0),e.innerHTML=d);if(c(f).title)e.title=c(f).title}},addContentDiv:function(a,d,e,f,g){var a=typeof a!=="string"?a:a.indexOf("#")==-1?"#"+a:a,b=jq(a).get(0);if(!b){b=document.createElement("div");b.innerHTML=d;c(b).children(".panel")&&c(b).children(".panel").length>0&&(b=c(b).children(".panel").get());if(!b.title&&e)b.title=e;var h=b.id?b.id:a.replace("#","");b.id=h;b.id!=a&&b.setAttribute("data-crc",a.replace("#",""))}b.className="panel";this.addDivAndScroll(b,f,g);return h},
  addDivAndScroll:function(a,d,e,f){var g=!1,b=a.style.overflow,b=b!="hidden"&&b!="visible",f=f||this.content;!c.feat.nativeTouchScroll&&b&&a.setAttribute("js-scrolling","yes");a.getAttribute("js-scrolling")&&a.getAttribute("js-scrolling").toLowerCase()=="yes"&&(b=g=!0);a.getAttribute("scrolling")&&a.getAttribute("scrolling")=="no"&&(g=b=!1);if(g)h=a.cloneNode(!1),a.title=null,a.id=null,a.removeAttribute("data-footer"),a.removeAttribute("data-nav"),a.removeAttribute("data-header"),a.removeAttribute("selected"),
  a.removeAttribute("data-load"),a.removeAttribute("data-unload"),a.removeAttribute("data-tab"),jq(a).replaceClass("panel","jqmScrollPanel"),h.appendChild(a),f.appendChild(h),this.selectBox!==!1&&this.selectBox.getOldSelects(h.id),this.passwordBox!==!1&&this.passwordBox.getOldPasswords(h.id);else{f.appendChild(a);var h=a;a.style["-webkit-overflow-scrolling"]="none"}b&&(this.scrollingDivs[h.id]=jq(a).scroller({scrollBars:!0,verticalScroll:!0,horizontalScroll:!1,vScrollCSS:"jqmScrollbar",refresh:d,useJsScroll:g,
  noParent:!g,autoEnable:!1}),e&&c.bind(this.scrollingDivs[h.id],"refresh-release",function(a){a&&e()}));h=a=null},scrollToTop:function(a){this.scrollingDivs[a]&&this.scrollingDivs[a].scrollToTop()},scrollToBottom:function(a){this.scrollingDivs[a]&&this.scrollingDivs[a].scrollToBottom()},parsePanelFunctions:function(a,d){var e=a.getAttribute("data-footer"),f=a.getAttribute("data-header");e&&e.toLowerCase()=="none"?this.toggleNavMenu(!1):this.toggleNavMenu(!0);if(e&&this.customFooter!=e)this.customFooter=
  e,this.updateNavbarElements(jq("#"+e).children());else if(e!=this.customFooter)this.customFooter&&this.updateNavbarElements(this.defaultFooter),this.customFooter=!1;if(f&&this.customHeader!=f)this.customHeader=f,this.updateHeaderElements(jq("#"+f).children());else if(f!=this.customHeader)this.customHeader&&(this.updateHeaderElements(this.defaultHeader),this.setTitle(this.activeDiv.title)),this.customHeader=!1;a.getAttribute("data-tab")&&(jq("#navbar a").removeClass("selected"),jq("#"+a.getAttribute("data-tab")).addClass("selected"));
  e=c(a).find("footer");if(e.length>0)this.customFooter=a.id,this.updateNavbarElements(e.children());e=c(a).find("header");if(e.length>0)this.customHeader=a.id,this.updateHeaderElements(e.children());a.getAttribute("data-tab")&&(jq("#navbar a").removeClass("selected"),jq("#navbar #"+a.getAttribute("data-tab")).addClass("selected"));if((e=a.getAttribute("data-nav"))&&this.customMenu!=e)this.customMenu=e,this.updateSideMenu(jq("#"+e).children());else if(e!=this.customMenu)this.customMenu&&this.updateSideMenu(this.defaultMenu),
  this.customMenu=!1;if(d){e=d.getAttribute("data-unload");if(typeof e=="string"&&window[e])window[e](d);c(d).trigger("unloadpanel")}e=a.getAttribute("data-load");if(typeof e=="string"&&window[e])window[e](a);c(a).trigger("loadpanel");this.isSideMenuOn()&&this.toggleSideMenu(!1)},parseScriptTags:function(a){a&&c.parseJS(a)},loadContent:function(a,d,c,f,g){if(this.doingTransition)this.loadContentQueue.push([a,d,c,f,g]);else if(a.length!==0){what=null;var b=!0,g=g||document.createElement("a");if(a.indexOf("#")==
  -1){var h="url"+n(a),l=jq("div.panel[data-crc='"+h+"']");jq("#"+a).length>0?b=!1:l.length>0?(b=!1,g.getAttribute("data-refresh-ajax")==="true"||g.refresh&&g.refresh===!0||this.isAjaxApp?b=!0:a="#"+l.get(0).id):jq("#"+h).length>0&&(b=!1,g.getAttribute("data-refresh-ajax")==="true"||g.refresh&&g.refresh===!0||this.isAjaxApp?b=!0:a="#"+h)}a.indexOf("#")==-1&&b?this.loadAjax(a,d,c,f,g):this.loadDiv(a,d,c,f)}},loadDiv:function(a,d,e,f){var g=this;what=a.replace("#","");var b=what.indexOf("/"),h="";b!=
  -1&&(h=what.substr(b),what=what.substr(0,b));what=jq("#"+what).get(0);if(!what)return console.log("Target: "+a+" was not found");if(what==this.activeDiv&&!e)this.isSideMenuOn()&&this.toggleSideMenu(!1);else{this.transitionType=f;var m=this.activeDiv,a=what;if(what.getAttribute("data-modal")=="true"||what.getAttribute("modal")=="true"){d=what.getAttribute("data-load");if(typeof d=="string"&&window[d])window[d](what);c(what).trigger("loadpanel");return this.showModal(what.id)}if(m!=a)d?(this.clearHistory(),
  this.pushHistory("#"+this.firstDiv.id,what.id,f,h)):e||this.pushHistory(l,what.id,f,h),l="#"+what.id+h,this.doingTransition=!0,m.style.display="block",a.style.display="block",this.runTransition(f,m,a,e),this.parsePanelFunctions(what,m),this.loadContentData(what,d,e,f),g=this,setTimeout(function(){g.scrollingDivs[m.id]&&g.scrollingDivs[m.id].disable()},200)}},loadContentData:function(a,d,c){if(c){if(this.history.length>0){var c=this.history[this.history.length-1],f=c.target.indexOf("/"),c=f!=-1?c.target.substr(0,
  f):c.target;(c=jq(c).get(0))?this.setBackButtonText(c.title):this.setBackButtonText("Back")}}else this.activeDiv.title?this.setBackButtonText(this.activeDiv.title):this.setBackButtonText("Back");a.title&&this.setTitle(a.title);d&&this.setBackButtonText(this.firstDiv.title);this.history.length==0?(this.setBackButtonVisibility(!1),this.history=[]):this.showBackbutton&&this.setBackButtonVisibility(!0);this.activeDiv=a;this.scrollingDivs[this.activeDiv.id]&&this.scrollingDivs[this.activeDiv.id].enable(this.resetScrollers)},
  loadAjax:function(a,d,c,f,g){if(!(this.activeDiv.id=="jQui_ajax"&&a==this.ajaxUrl)){var b="url"+n(a),h=this;a.indexOf("http")==-1&&(a=AppMobi.webRoot+a);var l=new XMLHttpRequest;l.onreadystatechange=function(){if(l.readyState==4&&l.status==200){var m=this.doingTransition=!1;if(jq("#"+b).length>0)h.updateContentDiv(b,l.responseText),jq("#"+b).get(0).title=g.title?g.title:a;else if(g.getAttribute("data-persist-ajax")||h.isAjaxApp){var n=g.getAttribute("data-pull-scroller")==="true"?!0:!1;refreshFunction=
  n?function(){g.refresh=!0;h.loadContent(a,d,c,f,g);g.refresh=!1}:null;b=h.addContentDiv(b,l.responseText,g.title?g.title:a,n,refreshFunction)}else h.updateContentDiv("jQui_ajax",l.responseText),jq("#jQui_ajax").get(0).title=g.title?g.title:a,h.loadContent("#jQui_ajax",d,c),m=!0;n=document.createElement("div");n.innerHTML=l.responseText;h.parseScriptTags(n);if(m)h.showLoading&&h.hideMask();else return h.loadContent("#"+b),h.showLoading&&h.hideMask(),null}};ajaxUrl=a;var m=this.useAjaxCacheBuster?a+
  (a.split("?")[1]?"&":"?")+"cache="+Math.random()*1E16:a;l.open("GET",m,!0);l.setRequestHeader("X-Requested-With","XMLHttpRequest");l.send();this.showLoading&&this.showMask()}},runTransition:function(a,d,c,f){this.availableTransitions[a]||(a="default");this.availableTransitions[a].call(this,d,c,f)},launch:function(){if(this.hasLaunched==!1||this.launchCompleted)this.hasLaunched=!0;else{var a=this;this.isAppMobi=window.AppMobi&&typeof AppMobi=="object"&&AppMobi.app!==void 0?!0:!1;this.viewportContainer=
  jq("#jQUi");this.navbar=jq("#navbar").get(0);this.content=jq("#content").get(0);this.header=jq("#header").get(0);this.menu=jq("#menu").get(0);this.viewportContainer[0].addEventListener("click",function(a){m(a,a.target)},!1);var d=null;c.bind(c.touchLayer,"enter-edit",function(a){d=a});c.bind(c.touchLayer,"enter-edit-reshape",function(){var b=c(d),e=b.closest(a.activeDiv);if(e&&e.size()>0)if(c.os.ios||c.os.chrome){var f;f=document.body.scrollTop?document.body.scrollTop-e.offset().top:0;b=e.offset().bottom-
  b.offset().bottom;a.scrollingDivs[a.activeDiv.id].setPaddings(f,b)}else if(c.os.android||c.os.blackberry)f=b.offset(),e=e.offset(),f.bottom>e.bottom&&f.height<e.height&&a.scrollingDivs[a.activeDiv.id].scrollToItem(b,"bottom")});c.os.ios&&c.bind(c.touchLayer,"exit-edit-reshape",function(){a.scrollingDivs[a.activeDiv.id].setPaddings(0,0)});if(!this.navbar)this.navbar=document.createElement("div"),this.navbar.id="navbar",this.navbar.style.cssText="display:none",this.viewportContainer.append(this.navbar);
  if(!this.header)this.header=document.createElement("div"),this.header.id="header",this.viewportContainer.prepend(this.header);if(!this.menu)this.menu=document.createElement("div"),this.menu.id="menu",this.menu.innerHTML='<div id="menu_scroller"></div>',this.viewportContainer.append(this.menu),this.menu.style.overflow="hidden",this.scrollingDivs.menu_scroller=jq("#menu_scroller").scroller({scrollBars:!0,verticalScroll:!0,vScrollCSS:"jqmScrollbar",useJsScroll:!c.feat.nativeTouchScroll,noParent:c.feat.nativeTouchScroll}),
  c.feat.nativeTouchScroll&&c("#menu_scroller").css("height","100%");if(!this.content)this.content=document.createElement("div"),this.content.id="content",this.viewportContainer.append(this.content);this.header.innerHTML='<a id="backButton"  href="javascript:;"></a> <h1 id="pageTitle"></h1>'+header.innerHTML;this.backButton=c("#header #backButton").get(0);this.backButton.className="button";jq(document).on("click","#header #backButton",function(){a.goBack()});this.backButton.style.visibility="hidden";
  this.titleBar=c("#header #pageTitle").get(0);this.addContentDiv("jQui_ajax","");var e=document.createElement("div");e.id="jQui_mask";e.className="ui-loader";e.innerHTML="<span class='ui-icon ui-icon-loading spin'></span><h1>Loading Content</h1>";e.style.zIndex=2E4;e.style.display="none";document.body.appendChild(e);e=document.createElement("div");e.id="jQui_modal";this.viewportContainer.prepend(e);e.appendChild(jq("<div id='modalContainer'></div>").get());this.scrollingDivs.modal_container=jq("#modalContainer").scroller({scrollBars:!0,
  vertical:!0,vScrollCSS:"jqmScrollbar",noParent:!0});this.modalWindow=e;for(var g={},e=this.viewportContainer.get().querySelectorAll(".panel"),h=0;h<e.length;h++){var b=e[h],n=b,s,B=b.previousSibling;if(b.parentNode&&b.parentNode.id!="content"){b.parentNode.removeChild(b);s=b.id;if(n.getAttribute("selected"))this.firstDiv=jq("#"+s).get(0);this.addDivAndScroll(n);jq("#"+s).insertAfter(B)}else if(!b.parsedContent){b.parsedContent=1;b.parentNode.removeChild(b);s=b.id;if(n.getAttribute("selected"))this.firstDiv=
  jq("#"+s).get(0);this.addDivAndScroll(n);jq("#"+s).insertAfter(B)}b.getAttribute("data-defer")&&(g[s]=b.getAttribute("data-defer"));if(!this.firstDiv)this.firstDiv=c("#"+s).get(0);b=null}var e=null,w=!1,z=Object.keys(g).length;if(z>0){var w=!0,o=0,r;for(r in g)(function(b){jq.ajax({url:AppMobi.webRoot+g[b],success:function(d){d.length!=0&&(c.ui.updateContentDiv(b,d),a.parseScriptTags(jq(b).get()),o++,o>=z&&(c(document).trigger("defer:loaded"),w=!1))},error:function(){console.log("Error with deferred load "+
  AppMobi.webRoot+g[b]);o++;o>=z&&(c(document).trigger("defer:loaded"),w=!1)}})})(r)}if(this.firstDiv)if(a=this,this.activeDiv=this.firstDiv,this.scrollingDivs[this.activeDiv.id]&&this.scrollingDivs[this.activeDiv.id].enable(),s=function(){if(jq("#navbar a").length>0)jq("#navbar a").data("ignore-pressed","true").data("resetHistory","true"),a.defaultFooter=jq("#navbar").children().clone(),a.updateNavbarElements(a.defaultFooter);var b=jq("nav").get();if(b)a.defaultMenu=jq(b).children().clone(),a.updateSideMenu(a.defaultMenu);
  a.defaultHeader=jq("#header").children().clone();jq("#navbar").on("click","a",function(a){jq("#navbar a").not(this).removeClass("selected");c(a.target).addClass("selected")});b=a.getPanelId(f);b.length>0&&a.loadDefaultHash&&b!="#"+a.firstDiv.id&&c(b).length>0?a.loadContent(f,!0,!1,"none"):(l="#"+a.firstDiv.id,a.loadContentData(a.firstDiv),a.parsePanelFunctions(a.firstDiv),a.firstDiv.style.display="block",c("#header #backButton").css("visibility","hidden"),(a.firstDiv.getAttribute("data-modal")=="true"||
  a.firstDiv.getAttribute("modal")=="true")&&a.showModal(a.firstDiv.id));a.launchCompleted=!0;jq("nav").length>0&&(jq("#jQUi #header").addClass("hasMenu off"),jq("#jQUi #content").addClass("hasMenu off"),jq("#jQUi #navbar").addClass("hasMenu off"));jq(document).trigger("jq.ui.ready");jq("#splashscreen").remove()},w)c(document).one("defer:loaded",s);else s();a=this;c.bind(c.ui,"content-loaded",function(){if(a.loadContentQueue.length>0){var b=a.loadContentQueue.splice(0,1)[0];a.loadContent(b[0],b[1],
  b[2],b[3],b[4])}});window.navigator.standalone&&this.blockPageScroll();this.topClickScroll()}},topClickScroll:function(){document.getElementById("header").addEventListener("click",function(a){a.clientY<=15&&a.target.nodeName.toLowerCase()=="h1"&&c.ui.scrollingDivs[c.ui.activeDiv.id].scrollToTop("100")})},blockPageScroll:function(){jq("#jQUi #header").bind("touchmove",function(a){a.preventDefault()})},noTransition:function(a,d){d.style.display="block";a.style.display="block";this.clearAnimations(d);
  this.css3animate(a,{x:"0%",y:0});this.finishTransition(a);d.style.zIndex=2;a.style.zIndex=1},finishTransition:function(a,d){a.style.display="none";this.doingTransition=!1;d&&this.clearAnimations(d);a&&this.clearAnimations(a);c.trigger(this,"content-loaded")},clearAnimations:function(a){a.style[c.feat.cssPrefix+"Transform"]="none";a.style[c.feat.cssPrefix+"Transition"]="none"}};var m=function(a,d){if(d!=jQUi){if(d.tagName.toLowerCase()!="a"&&d.parentNode)return m(a,d.parentNode);if(d.tagName!=="undefined"&&
  d.tagName.toLowerCase()=="a"){if((typeof jq.ui.customClickHandler=="function"?jq.ui.customClickHandler:!1)!==!1&&jq.ui.customClickHandler(d))return a.preventDefault();if(!(d.href.toLowerCase().indexOf("javascript:")!==-1||d.getAttribute("data-ignore"))){if(d.href.indexOf("tel:")===0)return!1;if(d.hash.indexOf("#")===-1&&d.target.length>0){if(d.href.toLowerCase().indexOf("javascript:")!=0)if(jq.ui.isAppMobi)a.preventDefault(),AppMobi.device.launchExternal(d.href);else if(!jq.os.desktop)a.target.target=
  "_blank"}else{var c=d.href,f=location.protocol+"//"+location.hostname+":"+location.port;c.indexOf(f)===0&&(c=c.substring(f.length+1));if(!(c=="#"||c.indexOf("#")===c.length-1||c.length==0&&d.hash.length==0)){a.preventDefault();var f=d.getAttribute("data-transition"),g=d.getAttribute("data-resetHistory"),g=g&&g.toLowerCase()=="true"?!0:!1,c=d.hash.length>0?d.hash:d.href;jq.ui.loadContent(c,g,0,f,d)}}}}}},n=function(a,d){d==void 0&&(d=0);var c=0,c=0;d^=-1;for(var f=0,g=a.length;f<g;f++)c=(d^a.charCodeAt(f))&
  255,c="0x"+"00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D".substr(c*
  9,8),d=d>>>8^c;return d^-1};c.ui=new h})(jq);(function(){document.addEventListener("appMobi.device.ready",function(){setTimeout(function(){document.getElementById("jQUi").style.height="100%";document.body.style.height="100%";document.documentElement.style.minHeight=window.innerHeight},300);this.removeEventListener("appMobi.device.ready",arguments.callee)})})();
  (function(c){c.availableTransitions.fade=function(c,f,l){c.style.display="block";f.style.display="block";var h=this;l?(f.style.zIndex=1,c.style.zIndex=2,h.clearAnimations(f),h.css3animate(c,{x:"0%",time:"150ms",opacity:0.1,complete:function(l){l?h.finishTransition(c,f):(h.css3animate(c,{x:"-100%",opacity:1,complete:function(){h.finishTransition(c)}}),f.style.zIndex=2,c.style.zIndex=1)}})):(c.style.zIndex=1,f.style.zIndex=2,f.style.opacity=0,h.css3animate(f,{x:"0%",opacity:0.1,complete:function(){h.css3animate(f,
  {x:"0%",time:"150ms",opacity:1,complete:function(l){l?h.finishTransition(c,f):(h.clearAnimations(f),h.css3animate(c,{x:"-100%",y:0,complete:function(){h.finishTransition(c)}}))}})}}))}})($.ui);
  (function(c){c.availableTransitions.flip=function(c,f,l){c.style.display="block";f.style.display="block";var h=this;l?(h.css3animate(f,{x:"100%",scale:0.8,rotateY:"180deg",complete:function(){h.css3animate(f,{x:"0%",scale:1,time:"150ms",rotateY:"0deg",complete:function(){h.clearAnimations(f)}})}}),h.css3animate(c,{x:"100%",time:"150ms",scale:0.8,rotateY:"180deg",complete:function(){h.css3animate(c,{x:"-100%",opacity:1,scale:1,rotateY:"0deg",complete:function(){h.finishTransition(c)}});f.style.zIndex=
  2;c.style.zIndex=1}})):(c.style.zIndex=1,f.style.zIndex=2,h.css3animate(c,{x:"100%",time:"150ms",scale:0.8,rotateY:"180deg",complete:function(){h.css3animate(c,{x:"-100%",y:0,time:"1ms",scale:1,rotateY:"0deg",complete:function(){h.finishTransition(c)}})}}),h.css3animate(f,{x:"100%",time:"1ms",scale:0.8,rotateY:"180deg",complete:function(){h.css3animate(f,{x:"0%",time:"150ms",scale:1,rotateY:"0deg",complete:function(){h.clearAnimations(f)}})}}))}})($.ui);
  (function(c){c.availableTransitions.pop=function(c,f,l){c.style.display="block";f.style.display="block";var h=this;l?(f.style.zIndex=1,c.style.zIndex=2,h.clearAnimations(f),h.css3animate(c,{x:"0%",time:"150ms",opacity:0.1,scale:0.2,origin:"-50% 50%",complete:function(l){l?h.finishTransition(c):(h.css3animate(c,{x:"-100%",complete:function(){h.finishTransition(c)}}),f.style.zIndex=2,c.style.zIndex=1)}})):(c.style.zIndex=1,f.style.zIndex=2,h.css3animate(f,{x:"0%",y:"0%",scale:0.2,origin:"-50% 50%",
  opacity:0.1,complete:function(){h.css3animate(f,{x:"0%",time:"150ms",scale:1,opacity:1,origin:"0% 0%",complete:function(l){l?h.finishTransition(c,f):(h.clearAnimations(f),h.css3animate(c,{x:"100%",y:0,complete:function(){h.finishTransition(c)}}))}})}}))}})($.ui);
  (function(c){function g(c,g,h){c.style.display="block";g.style.display="block";var m=this;h?m.css3animate(c,{x:"0%",y:"0%",complete:function(){m.css3animate(c,{x:"100%",time:"150ms",complete:function(){m.finishTransition(c,g)}}).link(g,{x:"0%",time:"150ms"})}}).link(g,{x:"-100%",y:"0%"}):m.css3animate(c,{x:"0%",y:"0%",complete:function(){m.css3animate(c,{x:"-100%",time:"150ms",complete:function(){m.finishTransition(c,g)}}).link(g,{x:"0%",time:"150ms"})}}).link(g,{x:"100%",y:"0%"})}c.availableTransitions.slide=
  g;c.availableTransitions["default"]=g})($.ui);
  (function(c){c.availableTransitions.down=function(c,f,l){c.style.display="block";f.style.display="block";var h=this;l?(f.style.zIndex=1,c.style.zIndex=2,h.clearAnimations(f),h.css3animate(c,{y:"-100%",x:"0%",time:"150ms",complete:function(l){l?h.finishTransition(c,f):(h.css3animate(c,{x:"-100%",y:0,complete:function(){h.finishTransition(c)}}),f.style.zIndex=2,c.style.zIndex=1)}})):(c.style.zIndex=1,f.style.zIndex=2,h.css3animate(f,{y:"-100%",x:"0%",complete:function(){h.css3animate(f,{y:"0%",x:"0%",
  time:"150ms",complete:function(l){l?h.finishTransition(c,f):(h.clearAnimations(f),h.css3animate(c,{x:"-100%",y:0,complete:function(){h.finishTransition(c)}}))}})}}))}})($.ui);
  (function(c){c.availableTransitions.up=function(c,f,l){c.style.display="block";f.style.display="block";var h=this;l?(f.style.zIndex=1,c.style.zIndex=2,h.clearAnimations(f),h.css3animate(c,{y:"100%",x:"0%",time:"150ms",complete:function(){h.finishTransition(c);f.style.zIndex=2;c.style.zIndex=1}})):(f.style.zIndex=2,c.style.zIndex=1,h.css3animate(f,{y:"100%",x:"0%",complete:function(){h.css3animate(f,{y:"0%",x:"0%",time:"150ms",complete:function(l){l?h.finishTransition(c,f):(h.clearAnimations(f),h.css3animate(c,
  {x:"-100%",y:0,complete:function(){h.finishTransition(c)}}))}})}}))}})($.ui);
  