diff -r 000000000000 -r e8ccd40d0ef6 Touchgui/www/lib/appframework/appframework.ui.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Touchgui/www/lib/appframework/appframework.ui.min.js Thu Jun 04 14:50:33 2015 +0200 @@ -0,0 +1,302 @@ +/*! intel-appframework - v2.1.0 - 2014-09-25 */ + +/* + Intel + @api private +*/ +if(!window.af||"function"!==typeof af){var af=function(a){function n(a,c,d){var b=r.createDocumentFragment();if(d){for(d=a.length-1;0<=d;d--)b.insertBefore(a[d],b.firstChild);c.insertBefore(b,c.firstChild)}else{for(d=0;d]*>/,w={},C={},L={columncount:!0,fontweight:!0,lineheight:!0,"column-count":!0,"font-weight":!0,"line-height":!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,"z-index":!0,zoom:!0},D="object"===typeof MSApp,v=function(a,c){this.length=0;if(a){if(a instanceof v&&c==q)return a;if(af.isFunction(a))return af(r).ready(a);if(af.isArray(a)&&a.length!=q){for(var d=0;d"))c===r?g(c.getElementById(a.replace("#", +"")),this):g(h(a,c),this);else if("<"===a[0]&&">"===a[a.length-1]||-1!==a.indexOf("<")&&-1!==a.indexOf(">")){var d=r.createElement("div");D?MSApp.execUnsafeLocalFunction(function(){d.innerHTML=a.trim()}):d.innerHTML=a.trim();g(d.childNodes,this)}else g(h(a,c),this);return this},oldElement:void 0,sort:B.sort,slice:B.slice,length:0,setupOld:function(a){if(a==q)return m();a.oldElement=this;return a},map:function(a){var c,d=[],b;for(b=0;ba&&(a+=this.length);if(null===a){a=[];for(var c=0;cd.status||0===d.status&&"file:"===g){if("application/json"===k||"application/json"===c&&!/^\s*$/.test(d.responseText))try{b=JSON.parse(d.responseText)}catch(P){f=P}else if(-1!==k.indexOf("javascript"))try{b= +d.responseText,a.eval(b)}catch(l){console.log(l)}else"application/xml, text/xml"===c?b=d.responseXML:"text/html"===c?(b=d.responseText,m.parseJS(b)):b=d.responseText;0===d.status&&0===b.length&&(f=!0);f?(e.error.call(h,d,"parsererror",f),p.reject.call(h,d,"parsererror",f)):(p.resolve.call(h,b,"success",d),e.success.call(h,b,"success",d))}else f=!0,p.reject.call(h,d,"error"),e.error.call(h,d,"error");e.complete.call(h,d,f?"error":"success")}};d.open(e.type,e.url,e.async);e.withCredentials&&(d.withCredentials= +!0);e.contentType&&(e.headers["Content-Type"]=e.contentType);for(var k in e.headers)"string"===typeof e.headers[k]&&d.setRequestHeader(k,e.headers[k]);if(!1===e.beforeSend.call(h,d,e))return d.abort(),!1;0
"+f+"Cancel
"); +else if("object"===typeof f){b=a("
");var e=a(b.children().get(0));f.push({text:"Cancel",cssClasses:"cancel"});for(var c=0;c"+(f[c].text||"TEXT NOT ENTERED")+"");d[0].onclick=f[c].handler||h;f[c].cssClasses&&0");setTimeout(function(){b.vendorCss("Transition","all 300ms");b.cssTranslate("0,"+-b.height()+"px")},10);a("#af_action_mask").bind("touchstart touchmove touchend click",function(a){a.preventDefault(); +a.stopPropagation()})}else window.alert("Could not find element for actionsheet "+k)};l.prototype={activeSheet:null,hideSheet:function(){var k=this;this.activeSheet.off("click","a",function(){k.hideSheet()});a(this.el).find("#af_action_mask").unbind("click").remove();this.activeSheet.vendorCss("Transition","all 0ms");var f=this.activeSheet,h=this.el;setTimeout(function(){f.vendorCss("Transition","all 300ms");f.cssTranslate("0,0px");setTimeout(function(){f.remove();f=null;h.style.overflow="none"}, +500)},10)}};return l}()})(af); +(function(a){var n=[],l=function(b,e){var c,d;c="string"===typeof b||b instanceof String?document.getElementById(b):a.is$(b)?b[0]:b;c.afCSS3AnimateId||(c.afCSS3AnimateId=a.uuid());d=c.afCSS3AnimateId;n[d]?(n[d].animate(e),c=n[d]):(c=g(c,e),n[d]=c);return c};a.fn.css3Animate=function(a){!a.complete&&a.callback&&(a.complete=a.callback);var e=l(this[0],a);a.complete=null;a.sucess=null;a.failure=null;for(var c=1;ct||"none"===p.display?a.asap(a.proxy(this.finishAnimation,this,[!1])):(this.activeEvent=function(a){clearTimeout(g.timeout);g.finishAnimation(a);g.el.removeEventListener(h,g.activeEvent,!1)},g.timeout=setTimeout(this.activeEvent,numOnly(b.time)+50),this.el.addEventListener(h,this.activeEvent,!1))}else window.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&&a.preventDefault();this.isActive&&(this.countStack--,0===this.countStack&&this.fireCallbacks(!1))},fireCallbacks:function(a){this.clearEvents();var c=this.callbacksStack;this.cleanup();for(var d=0;d=this.startTime+this.runTime?(g.setPosition(this.animateOpts.x,this.animateOpts.y),g.isAnimating=!1,this.updateCB&&this.updateCB({x:this.animateOpts.x,y:this.animateOpts.y}),this.completeCB&&this.completeCB()):(a=(a-this.startTime)/this.runTime,h=k[this.easingFn](1=h&&(f.el.scrollTop=a.y,clearInterval(f.scrollTopInterval))},10);f.scrollLeftInterval=window.setInterval(function(){f.el.scrollLeft-=e;k++;k>=g&&(f.el.scrollLeft=a.x, +clearInterval(f.scrollLeftInterval))},10)}},enable:function(){},disable:function(){},hideScrollbars:function(){},addPullToRefresh:function(){},_scrollToTop:function(a){this._scrollTo({x:0,y:0},a)},_scrollToBottom:function(a){this._scrollTo({x:0,y:this.el.scrollHeight-this.el.offsetHeight},a)},scrollToBottom:function(a){return this._scrollToBottom(a)},scrollToTop:function(a){return this._scrollToTop(a)},init:function(c,d){this.el=c;this.afEl=a(this.el);this.defaultProperties();for(var b in d)this[b]= +d[b];var e=this,f=function(){e.eventsActive&&(!a.feat.nativeTouchScroll&&(!a.ui||a.ui.activeDiv===e.container))&&e.adjustScroll()};this.afEl.bind("destroy",function(){e.disable(!0);var c=e.el.afScrollerId;l[c]&&delete l[c];a.unbind(a.touchLayer,"orientationchange-reshape",f)});a.bind(a.touchLayer,"orientationchange-reshape",f);a(window).bind("resize",f)},needsFormsFix:function(c){return this.useJsScroll&&this.isEnabled()&&"none"!==this.el.style.display&&0"+this.refreshContent+"")):c=a(this.refreshElement);c=c.get(0);this.refreshContainer=a("
");a(this.el).prepend(this.refreshContainer.prepend(c));this.refreshContainer=this.refreshContainer[0]}, +fireRefreshRelease:function(c){if(this.refresh&&c&&(this.setRefreshContent("Refreshing..."),c=!1!==a.trigger(this,"refresh-release",[c]),this.preventHideRefresh=!1,this.refreshRunning=!0,c)){var d=this;0"),c=a(this.el).find(".p2rhack"));c.css("top",this.el.scrollHeight+this.refreshHeight+1+"px")};b.prototype.onTouchStart=function(a){this.lastScrollInfo={top:0};this.xReset=this.yReset=0;this.verticalScroll&&(0===this.el.scrollTop&&this.refresh&&(this.el.scrollTop=1,this.yReset= +-1),this.el.scrollTop===this.el.scrollHeight-this.el.clientHeight&&this.infinite&&(this.el.scrollTop-=1,this.yReset=1));this.horizontalScroll&&(0===this.el.scrollLeft&&(this.el.scrollLeft=1,this.xReset=-1),this.el.scrollLeft===this.el.scrollWidth-this.el.clientWidth&&(this.el.scrollLeft-=1,this.xReset=1));this.refreshCancelCB&&clearTimeout(this.refreshCancelCB);this.refresh&&this.el.addEventListener("touchend",this,!1);this.el.addEventListener("touchmove",this,!1);this.dY=a.touches[0].pageY;this.dX= +a.touches[0].pageX;this.startTop=this.el.scrollTop;this.startLeft=this.el.scrollLeft;(this.refresh||this.infinite)&&this.refresh&&0>this.dY&&this.showRefresh()};b.prototype.onTouchMove=function(c){var d=c.touches[0].pageY-this.dY,b=c.touches[0].pageX-this.dX,e=this.el.scrollHeight-this.el.scrollTop===this.el.clientHeight&&0>d,f=this.el.scrollWidth-this.el.scrollLeft===this.el.clientWidth&&0>b,h="input"!==c.target.tagName.toLowerCase();this.verticalScroll&&0===this.startTop&&0===this.el.scrollTop&& +0Math.abs(b)&&c.preventDefault();this.refresh&&this.el.scrollTop< +-this.refreshHeight?this.showRefresh():this.refresh&&this.refreshTriggered&&this.refreshRunning&&this.el.scrollTop>this.refreshHeight?(this.refreshRunning=this.refreshTriggered=!1,this.refreshCancelCB&&clearTimeout(this.refreshCancelCB),this.hideRefresh(!1),this.setRefreshContent("Pull to Refresh"),a.trigger(this,"refresh-cancel")):this.refresh&&(this.refreshTriggered&&!this.refreshRunning&&this.el.scrollTop>-this.refreshHeight)&&(this.refreshRunning=this.refreshTriggered=!1,this.refreshCancelCB&& +clearTimeout(this.refreshCancelCB),this.hideRefresh(!1),this.setRefreshContent("Pull to Refresh"),a.trigger(this,"refresh-cancel"));this.cY=d;this.cX=b;this.lastScrollInfo.top=this.cY;this.initScrollProgress&&(a.trigger(this,"scroll",[{x:-this.el.scrollLeft,y:-this.el.scrollTop}]),a.trigger(a.touchLayer,"scroll",[{x:-this.el.scrollLeft,y:-this.el.scrollTop}]))};b.prototype.showRefresh=function(){this.refreshTriggered||(this.refreshTriggered=!0,this.setRefreshContent("Release to Refresh"),a.trigger(this, +"refresh-trigger"))};b.prototype.onTouchEnd=function(){var c=this.el.scrollTop<=-this.refreshHeight;this.fireRefreshRelease(c,!0);this.moved||(this.el.scrollTop+=this.yReset,this.el.scrollLeft+=this.xReset);if(c&&this.refresh){var d=a.create("
");a(this.el).append(d);this.refreshContainer.style.top="0px";this.refreshContainer.style.position="";setTimeout(function(){d.remove()})}this.el.removeEventListener("touchmove", +this,!1);this.el.removeEventListener("touchend",this,!1);this.infiniteEndCheck=!0;this.infinite&&(!this.infiniteTriggered&&this.el.scrollTop>=this.el.scrollHeight-this.el.clientHeight)&&(this.infiniteTriggered=!0,a.trigger(this,"infinite-scroll"),this.infiniteEndCheck=!0);this.touchEndFired=!0;var b=this,e=this.el.scrollTop,f=this.el.scrollLeft,h=0;clearInterval(b.nativePolling);b.nativePolling=setInterval(function(){h++;25===h&&b.initScrollProgress&&(a.trigger(b,"scroll",[{x:-b.el.scrollLeft+b.cX, +y:-b.el.scrollTop+b.cY}]),a.trigger(a.touchLayer,"scroll",[{x:-b.el.scrollLeft+b.cX,y:-b.el.scrollTop+b.cY}]));if(200<=h)clearInterval(b.nativePolling),b.initScrollProgress&&(a.trigger(b,"scroll",[{x:-b.el.scrollLeft,y:-b.el.scrollTop}]),a.trigger(a.touchLayer,"scroll",[{x:-b.el.scrollLeft,y:-b.el.scrollTop}]));else if(b.el.scrollTop!==e||b.el.scrollLeft!==f)clearInterval(b.nativePolling),a.trigger(a.touchLayer,"scrollend",[b.el]),a.trigger(b,"scrollend",[b.el]),b.initScrollProgress&&(a.trigger(b, +"scroll",[{x:-b.el.scrollLeft,y:-b.el.scrollTop}]),a.trigger(a.touchLayer,"scroll",[{x:-b.el.scrollLeft,y:-b.el.scrollTop}]))},20)};b.prototype.hideRefresh=function(c){if(!this.preventHideRefresh){var d=this,b=function(c){d.refreshContainer.style.top="-60px";d.refreshContainer.style.position="absolute";d.dY=d.cY=0;c||(d.el.style[a.feat.cssPrefix+"Transform"]="none",d.el.style[a.feat.cssPrefix+"TransitionProperty"]="none",d.el.scrollTop=0,d.logPos(d.el.scrollLeft,0),d.refreshRunning=!1,d.setRefreshContent("Pull to Refresh"), +a.trigger(d,"refresh-finish"))};!1===c||!d.afEl.css3Animate?b():d.afEl.css3Animate({y:d.el.scrollTop-d.refreshHeight+"px",x:"0%",time:"325ms",complete:b});this.refreshTriggered=!1}};b.prototype.hideScrollbars=function(){};b.prototype.scrollTo=function(a,d){this.logPos(a.x,a.y);a.x*=-1;a.y*=-1;return this._scrollTo(a,d)};b.prototype.scrollBy=function(a,d){a.x+=this.el.scrollLeft;a.y+=this.el.scrollTop;this.logPos(this.el.scrollLeft,this.el.scrollTop);return this._scrollTo(a,d)};b.prototype.scrollToBottom= +function(a){this._scrollToBottom(a);this.logPos(this.el.scrollLeft,this.el.scrollTop)};b.prototype.onScroll=function(){this.infinite&&this.touchEndFired?this.touchEndFired=!1:this.scrollSkip?this.scrollSkip=!1:(this.infinite&&(!this.infiniteTriggered&&this.el.scrollTop>=this.el.scrollHeight-this.el.clientHeight)&&(this.infiniteTriggered=!0,a.trigger(this,"infinite-scroll"),this.infiniteEndCheck=!0),this.infinite&&(this.infiniteEndCheck&&this.infiniteTriggered)&&(this.infiniteEndCheck=!1,a.trigger(this, +"infinite-scroll-end")))};b.prototype.logPos=function(a,d){this.loggedPcentX=this.divide(a,this.el.scrollWidth);this.loggedPcentY=this.divide(d,this.el.scrollHeight);this.scrollLeft=a;this.scrollTop=d;isNaN(this.loggedPcentX)&&(this.loggedPcentX=0);isNaN(this.loggedPcentY)&&(this.loggedPcentY=0)};b.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)};g.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.refreshSafeKeep=this.androidFormsMode=this.isScrolling=!1;this.lastScrollbar="";this.scrollingFinishCB=this.container=this.finishScrollingObject=null; +this.androidPerfHack=this.loggedPcentX=this.loggedPcentY=0};g.prototype.enable=function(a){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))};g.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)};g.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}};g.prototype.addPullToRefresh=function(a,d){d||(this.refresh=!0);this.refresh&&!0=== +this.refresh&&(this.coreAddPullToRefresh(a),this.el.style.overflow="visible")};g.prototype.hideScrollbars=function(){this.hscrollBar&&(this.hscrollBar.style.display="none",this.hscrollBar.style[a.feat.cssPrefix+"TransitionDuration"]="0ms");this.vscrollBar&&(this.vscrollBar.style.display="none",this.vscrollBar.style[a.feat.cssPrefix+"TransitionDuration"]="0ms")};g.prototype.getViewportSize=function(){var a=window.getComputedStyle(this.container);isNaN(numOnly(a.paddingTop))&&window.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)}};g.prototype.onTouchStart=function(c){this.moved=!1;this.currentScrollingObject=null;a(this.el).animateCss().stop();if(this.container&&(this.refreshCancelCB&&(clearTimeout(this.refreshCancelCB), +this.refreshCancelCB=null),this.scrollingFinishCB&&(clearTimeout(this.scrollingFinishCB),this.scrollingFinishCB=null),!(1!==c.touches.length||this.boolScrollLock)&&!(c.touches[0].target&&void 0!==c.touches[0].target.type&&"select"===c.touches[0].target.tagName.toLowerCase()))){var 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 b=this.getViewportSize();this.elementInfo.bottomMargin=b.h;this.elementInfo.maxTop= +this.el.clientHeight-this.elementInfo.bottomMargin;0>this.elementInfo.maxTop&&(this.elementInfo.maxTop=0);this.elementInfo.divHeight=this.el.clientHeight;this.elementInfo.rightMargin=b.w;this.elementInfo.maxLeft=this.el.clientWidth-this.elementInfo.rightMargin;0>this.elementInfo.maxLeft&&(this.elementInfo.maxLeft=0);this.elementInfo.divWidth=this.el.clientWidth;this.elementInfo.hasVertScroll=this.verticalScroll||0d.top&&(this.preventPullToRefresh=!0,this.refresh&&(this.refreshContainer.style.overflow="hidden"));d.x=d.left;d.y=d.top;this.setVScrollBar(d,0,0)&&(this.vscrollBar.style.right="0px",this.vscrollBar.style[a.feat.cssPrefix+"Transition"]="",a(this.vscrollBar).animateCss().stop());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[a.feat.cssPrefix+"Transition"]="",a(this.hscrollBar).animateCss().stop());this.lastScrollInfo=d;this.hasMoved=!1;0===this.elementInfo.maxTop&&0===this.elementInfo.maxLeft&&this.lockBounce?this.scrollToTop(0):this.scrollerMoveCSS(this.lastScrollInfo,0);this.scrollerMoveCSS(this.lastScrollInfo,0)}};g.prototype.getCSSMatrix=function(c){if(this.androidFormsMode){var d= +parseInt(c.style.marginTop,10);c=parseInt(c.style.marginLeft,10);isNaN(d)&&(d=0);isNaN(c)&&(c=0);return{f:d,e:c}}return a.getCssMatrix(c)};g.prototype.saveEventInfo=function(a){this.lastEventInfo={pageX:a.touches[0].pageX,pageY:a.touches[0].pageY,time:a.timeStamp}};g.prototype.saveFirstEventInfo=function(a){this.firstEventInfo={pageX:a.touches[0].pageX,pageY:a.touches[0].pageY,time:a.timeStamp}};g.prototype.setVScrollBar=function(a,d,b){if(!this.elementInfo.requiresVScrollBar)return!1;var e=parseFloat(this.elementInfo.bottomMargin/ +this.elementInfo.divHeight)*this.elementInfo.bottomMargin+"px";numOnly(e)>this.elementInfo.bottomMargin&&(e=this.elementInfo.bottomMargin+"px");e!==this.vscrollBar.style.height&&(this.vscrollBar.style.height=e);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));a>this.elementInfo.bottomMargin&&(a=this.elementInfo.bottomMargin);0>a&&(a=0);this.scrollbarMoveCSS(this.vscrollBar, +{x:0,y:a},d,b);return!0};g.prototype.setHScrollBar=function(a,d,b){if(!this.elementInfo.requiresHScrollBar)return!1;var e=parseFloat(this.elementInfo.rightMargin/this.elementInfo.divWidth)*this.elementInfo.rightMargin+"px";e!==this.hscrollBar.style.width&&(this.hscrollBar.style.width=e);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));a>this.elementInfo.rightMargin&& +(a=this.elementInfo.rightMargin);0>a&&(a=0);this.scrollbarMoveCSS(this.hscrollBar,{x:a,y:0},d,b);return!0};g.prototype.onTouchMove=function(c){if(null!==this.currentScrollingObject&&(!c.target||!(c.target.getAttribute("type")&&-1!==c.target.getAttribute("type").toLowerCase().indexOf("range")))){var d=this.calculateMovement(c);this.calculateTarget(d);this.lastScrollInfo=d;this.moved||(a.trigger(this,"scrollstart",[this.el,{x:this.lastScrollInfo.top,y:this.lastScrollInfo.left}]),a.trigger(a.touchLayer, +"scrollstart",[this.el,{x:this.lastScrollInfo.top,y:this.lastScrollInfo.left}]),this.elementInfo.requiresVScrollBar&&(this.vscrollBar.style.display="block"),this.elementInfo.requiresHScrollBar&&(this.hscrollBar.style.display="block"));this.moved=!0;this.refresh&&0===d.top?(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):0>d.top&&(this.preventPullToRefresh=!0,this.refresh&&(this.refreshContainer.style.overflow="hidden"));this.saveEventInfo(c);if(!1===this.isScrolling&&(this.isScrolling=!0,this.onScrollStart))this.onScrollStart();c=this.getCSSMatrix(this.el);this.lastScrollInfo.top=numOnly(c.f);this.lastScrollInfo.left=numOnly(c.e);this.recalculateDeltaY(this.lastScrollInfo);this.recalculateDeltaX(this.lastScrollInfo);this.checkYboundary(this.lastScrollInfo);this.elementInfo.hasHorScroll&&this.checkXboundary(this.lastScrollInfo); +c=0this.lastScrollInfo.deltaY,e;if(c||b)d=c?this.lastScrollInfo.y:-this.lastScrollInfo.y-this.elementInfo.maxTop,d=(this.container.clientHeight-d)/this.container.clientHeight,0.5>d&&(d=0.5),e=0,c&&0Math.abs(this.lastScrollInfo.deltaY* +d)&&(b=c?1:-1),this.lastScrollInfo.y=e+b;if(this.elementInfo.hasHorScroll&&(c=0this.lastScrollInfo.deltaX,c||b))d=c?this.lastScrollInfo.x:-this.lastScrollInfo.x-this.elementInfo.maxLeft,d=(this.container.clientWidth-d)/this.container.clientWidth,0.5>d&&(d=0.5),e=0,c&&0Math.abs(this.lastScrollInfo.deltaX*d)&&(b=c?1:-1),this.lastScrollInfo.x=e+b;this.lockBounce&&!this.refresh&&(0this.elementInfo.maxLeft&&(this.lastScrollInfo.x=-1*this.elementInfo.maxLeft),0this.elementInfo.maxTop&&(this.lastScrollInfo.y=-1*this.elementInfo.maxTop));this.scrollerMoveCSS(this.lastScrollInfo,0);this.setVScrollBar(this.lastScrollInfo, +0,0);this.setHScrollBar(this.lastScrollInfo,0,0);this.refresh&&!this.preventPullToRefresh&&(!this.refreshTriggered&&this.lastScrollInfo.top>this.refreshHeight?(this.refreshTriggered=!0,this.setRefreshContent("Release to Refresh"),a.trigger(this,"refresh-trigger")):this.refreshTriggered&&this.lastScrollInfo.top +this.el.clientHeight-this.container.clientHeight&&(this.infiniteTriggered=!0,a.trigger(this,"infinite-scroll"))}};g.prototype.calculateMovement=function(a,d){var b={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},e=d?this.firstEventInfo:this.lastEventInfo,f=d?a.pageX:a.touches[0].pageX,h=d?a.pageY:a.touches[0].pageY,g=d?a.time:a.timeStamp;b.deltaY=this.elementInfo.hasVertScroll?h-e.pageY:0;b.deltaX=this.elementInfo.hasHorScroll? +f-e.pageX:0;b.time=g;b.duration=g-e.time;return b};g.prototype.calculateTarget=function(a){a.y=this.lastScrollInfo.y+a.deltaY;a.x=this.lastScrollInfo.x+a.deltaX;0d)a.y=d;else if(-a.y>b)a.y=-b;else return; +this.recalculateDeltaY(a)};g.prototype.checkXboundary=function(a){var d=this.container.clientWidth/2,b=this.elementInfo.maxLeft+d;if(a.x>d)a.x=d;else if(-a.x>b)a.x=-b;else return;this.recalculateDeltaX(a)};g.prototype.recalculateDeltaY=function(a){var d=Math.abs(a.deltaY);a.deltaY=a.y-a.top;var b=Math.abs(a.deltaY);a.duration=a.duration*b/d};g.prototype.recalculateDeltaX=function(a){var d=Math.abs(a.deltaX);a.deltaX=a.x-a.left;var b=Math.abs(a.deltaX);a.duration=a.duration*b/d};g.prototype.hideRefresh= +function(b){var d=this;if(!this.preventHideRefresh){var e=function(){d.setRefreshContent("Pull to Refresh");a.trigger(d,"refresh-finish")};this.scrollerMoveCSS({x:0,y:0},325);!1===b||!d.afEl.css3Animate?e():d.afEl.css3Animate({time:"325ms",complete:e});this.refreshTriggered=!1}};g.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(0a.deltaY?-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),0.12>a.absSpeedY||5>a.absDeltaY)a.deltaY=a.absDeltaY=a.duration=a.speedY=a.absSpeedY=0}else if(a.absDeltaX){if(a.deltaX=(0>a.deltaX?-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), +0.12>a.absSpeedX||5>a.absDeltaX)a.deltaX=a.absDeltaX=a.duration=a.speedX=a.absSpeedX=0}else a.duration=0};g.prototype.onTouchEnd=function(){var b=this;if(null!==this.currentScrollingObject&&this.moved){this.finishScrollingObject=this.currentScrollingObject;this.currentScrollingObject=null;var d=this.calculateMovement(this.lastEventInfo,!0);this.androidFormsMode||this.setMomentum(d);this.calculateTarget(d);var e=this.getCSSMatrix(this.el);d.top=numOnly(e.f);d.left=numOnly(e.e);this.checkYboundary(d); +this.elementInfo.hasHorScroll&&this.checkXboundary(d);e=!this.preventPullToRefresh&&(d.top>this.refreshHeight||d.y>this.refreshHeight);this.fireRefreshRelease(e,0this.elementInfo.maxTop||0===this.elementInfo.maxTop)d.y=-this.elementInfo.maxTop,-d.top>this.elementInfo.maxTop&&(d.duration=325);if(this.elementInfo.hasHorScroll)if(0<=d.x)d.x=0,0<=d.left&&this.refresh&&(d.duration= +325);else if(-d.x>this.elementInfo.maxLeft||0===this.elementInfo.maxLeft)d.x=-this.elementInfo.maxLeft,-d.left>this.elementInfo.maxLeft&&this.refresh&&(d.duration=325);if(d.x===d.left&&d.y===d.top||this.androidFormsMode)d.duration=0;setTimeout(function(){b.scrollerMoveCSS(d,d.duration,"cubic-bezier(0.33,0.66,0.66,1)")});this.setVScrollBar(d,d.duration,"cubic-bezier(0.33,0.66,0.66,1)");this.setHScrollBar(d,d.duration,"cubic-bezier(0.33,0.66,0.66,1)");this.setFinishCalback(d.duration);this.infinite&& +!this.infiniteTriggered&&Math.abs(d.y)>=this.el.clientHeight-this.container.clientHeight&&(b=this,setTimeout(function(){b.infiniteTriggered=!0;a.trigger(b,"infinite-scroll")},d.duration-50))}};g.prototype.setFinishCalback=function(b){var d=this;this.scrollingFinishCB=setTimeout(function(){d.hideScrollbars();a.trigger(a.touchLayer,"scrollend",[d.el]);a.trigger(d,"scrollend",[d.el]);d.isScrolling=!1;d.elementInfo=null;d.infinite&&d.infiniteTriggered&&a.trigger(d,"infinite-scroll-end")},b)};g.prototype.startFormsMode= +function(){if(!this.blockFormsFix){var b=this.getCSSMatrix(this.el);this.refreshSafeKeep=this.refresh;this.refresh=!1;this.androidFormsMode=!0;this.el.style[a.feat.cssPrefix+"Transform"]="none";this.el.style[a.feat.cssPrefix+"Transition"]="none";this.el.style[a.feat.cssPrefix+"Perspective"]="none";this.scrollerMoveCSS({x:numOnly(b.e),y:numOnly(b.f)},0);this.container.style[a.feat.cssPrefix+"Perspective"]="none";this.container.style[a.feat.cssPrefix+"BackfaceVisibility"]="visible";this.vscrollBar&& +(this.vscrollBar.style[a.feat.cssPrefix+"Transform"]="none",this.vscrollBar.style[a.feat.cssPrefix+"Transition"]="none",this.vscrollBar.style[a.feat.cssPrefix+"Perspective"]="none",this.vscrollBar.style[a.feat.cssPrefix+"BackfaceVisibility"]="visible");this.hscrollBar&&(this.hscrollBar.style[a.feat.cssPrefix+"Transform"]="none",this.hscrollBar.style[a.feat.cssPrefix+"Transition"]="none",this.hscrollBar.style[a.feat.cssPrefix+"Perspective"]="none",this.hscrollBar.style[a.feat.cssPrefix+"BackfaceVisibility"]= +"visible")}};g.prototype.stopFormsMode=function(){if(!this.blockFormsFix){var b=this.getCSSMatrix(this.el);this.refresh=this.refreshSafeKeep;this.androidFormsMode=!1;this.el.style[a.feat.cssPrefix+"Perspective"]=1E3;this.el.style.marginTop=0;this.el.style.marginLeft=0;this.el.style[a.feat.cssPrefix+"Transition"]="0ms linear";this.scrollerMoveCSS({x:numOnly(b.e),y:numOnly(b.f)},0);this.container.style[a.feat.cssPrefix+"Perspective"]=1E3;this.container.style[a.feat.cssPrefix+"BackfaceVisibility"]="hidden"; +this.vscrollBar&&(this.vscrollBar.style[a.feat.cssPrefix+"Perspective"]=1E3,this.vscrollBar.style[a.feat.cssPrefix+"BackfaceVisibility"]="hidden");this.hscrollBar&&(this.hscrollBar.style[a.feat.cssPrefix+"Perspective"]=1E3,this.hscrollBar.style[a.feat.cssPrefix+"BackfaceVisibility"]="hidden")}};g.prototype.scrollerMoveCSS=function(b,d,e){d||(d=0);e||(e="linear");d=numOnly(d);var f=this;this.el&&this.el.style&&(this.eventsActive&&(this.androidFormsMode?(this.el.style.marginTop=Math.round(b.y)+"px", +this.el.style.marginLeft=Math.round(b.x)+"px"):(d={x:b.x,y:b.y,duration:d,easing:"easeOutSine"},f.initScrollProgress&&(d.update=function(b){a.trigger(f,"scroll",[b]);a.trigger(a.touchLayer,"scroll",[b])}),a(this.el).animateCss(d).start())),this.logPos(b.x,b.y))};g.prototype.logPos=function(a,b){var e;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(b,this.el.clientHeight- +e.h);this.scrollTop=b;this.scrollLeft=a};g.prototype.scrollbarMoveCSS=function(b,d,e,f){e||(e=0);b&&b.style&&(this.androidFormsMode?(b.style.marginTop=Math.round(d.y)+"px",b.style.marginLeft=Math.round(d.x)+"px"):a(b).animateCss({x:d.x,y:d.y,duration:e,easing:"easeOutSine"}).start())};g.prototype.scrollTo=function(a,b){b||(b=0);this.scrollerMoveCSS(a,b)};g.prototype.scrollBy=function(a,b){var e=this.getCSSMatrix(this.el),f=numOnly(e.f),e=numOnly(e.e);this.scrollTo({y:f-a.y,x:e-a.x},b)};g.prototype.scrollToBottom= +function(a){this.scrollTo({y:-1*(this.el.clientHeight-this.container.clientHeight),x:0},a)};g.prototype.scrollToTop=function(a){this.scrollTo({x:0,y:0},a)};return function(c,d){var p;if(!k&&a.touchLayer&&a.isObject(a.touchLayer))n();else if(!a.touchLayer||!a.isObject(a.touchLayer))a.touchLayer={};if(p="string"===typeof c||c instanceof String?document.getElementById(c):c){var f=a(p);d.hasParent&&(f=f.parent());f.hasClass("x-scroll")&&(d.horizontalScroll=!0);f.hasClass("y-scroll")&&(d.verticalScroll= +!0);return a.os.desktop?new e(p,d):d.useJsScroll?new g(p,d):new b(p,d)}window.alert("Could not find element for scroller "+c)}}()})(af); +(function(a){function n(f,h,g){!0===g&&(this.getAttribute("multiple")||a.selectBox.updateMaskValue(this.parentNode.id,this.text,this.value),this.parentNode.value=this.value);return g}function l(f,h,g){this.options[g]&&(this.getAttribute("multiple")||a.selectBox.updateMaskValue(this.linker,this.options[g].value,this.options[g].text),this.value=this.options[g].value);return g}function k(f){var h=f.target;a(h.linker).remove();delete h.linker;f.stopPropagation()}a.selectBox={scroller:null,currLinker:null, +getOldSelects:function(f){if(a.os.android&&!a.os.androidICS)if(a.fn.scroller){var h=f&&document.getElementById(f)?document.getElementById(f):document;if(h){f=h.getElementsByTagName("select");for(h=0;h");for(var g=g.find("ul"),b=0;b=d&&(f=(h-1)*-c);this.scroller.scrollTo({x:0,y:f})}}catch(p){console.log("error init dropdown"+p)}h="block"===a("#afSelectClose").css("display")?numOnly(a("#afSelectClose").height()): +0;a("#afSelectWrapper").height(numOnly(a("#afSelectBoxContainer").height())-h+"px")}},updateMaskValue:function(f,h,g){a(f).html(g)},setDropDownValue:function(f,h){if(f){var g=a(f);h=parseInt(h,10);isNaN(h)||(f.getAttribute("multiple")?(g=a("#afSelectBoxfix li:nth-child("+(h+1)+")"),g.hasClass("selected")?g.removeClass("selected"):g.addClass("selected")):(f.selectedIndex=h,g.find("option").prop("selected",!1),g.find("option:nth-child("+(h+1)+")").prop("selected",!0),this.scroller.scrollTo({x:0,y:0}), +this.hideDropDown()),a(f).trigger("change"))}},hideDropDown:function(){a("#afModalMask").hide();a("#afSelectBoxfix").html("")},createHtml:function(){var f=this;document.getElementById("afSelectBoxfix")||a(document).ready(function(){a(document).on("click",".afFakeSelect",function(){this.linker.disabled||(f.currLinker=this,"multiple"===this.linker.getAttribute("multiple")?a("#afSelectClose").show():a("#afSelectClose").hide(),f.initDropDown(this.linker))});var h=a.create("div",{id:"afSelectBoxContainer"}), +g=a.create("div",{id:"afSelectBoxfix"}),b=a.create("div",{id:"afSelectWrapper"});b.css("position","relative");b.append(g);var g=a.create("div",{id:"afSelectClose",html:"Done Cancel"}),e=a.create("div",{id:"afModalMask"}),c=a("#afui");h.prepend(g).append(b);e.append(h);0=f?0=h&&(k.el.trigger("longTap"),k={})}var k={},f,h=750,g;a(document).ready(function(){var b;a(document.body).bind("touchstart",function(e){e.originalEvent&&(e=e.originalEvent);if(e.touches&&0!==e.touches.length){var c=Date.now(),d=c-(k.last||c);e.touches&&0!==e.touches.length&&(k.el=a("tagName"in e.touches[0].target?e.touches[0].target:e.touches[0].target.parentNode), +f&&clearTimeout(f),k.x1=e.touches[0].pageX,k.y1=e.touches[0].pageY,k.x2=k.y2=0,0=d&&(k.isDoubleTap=!0),k.last=c,g=setTimeout(l,h),a.ui.useAutoPressed&&!k.el.data("ignore-pressed")&&k.el.addClass("pressed"),b&&(a.ui.useAutoPressed&&!b.data("ignore-pressed")&&b[0]!==k.el[0])&&b.removeClass("pressed"),b=k.el)}}).bind("touchmove",function(a){a.originalEvent&&(a=a.originalEvent);k.x2=a.touches[0].pageX;k.y2=a.touches[0].pageY;(3Math.abs(c.lastTouchStartX-a.clientX)&&2>Math.abs(c.lastTouchStartY-a.clientY))&&(a.preventDefault(),a.stopPropagation())},!0);a.bind(this,"scrollstart",function(b){c.isScrolling=!0;c.scrollingEl_=b;a.feat.nativeTouchScroll|| +(c.scrollerIsScrolling=!0);c.fireEvent("UIEvents","scrollstart",b,!1,!1)});a.bind(this,"scrollend",function(b){c.isScrolling=!1;a.feat.nativeTouchScroll||(c.scrollerIsScrolling=!1);c.fireEvent("UIEvents","scrollend",b,!1,!1)});this.hideAddressBar(0,1);this.launchFixUI(5)};c.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,trackingClick:!1,scrollerIsScrolling:!1,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(null===this.reHideAddressBarTimeout_)return this.testAndFixUI(0,a)},resetFixUI:function(){this.reHideAddressBarTimeout_&&clearTimeout(this.reHideAddressBarTimeout_);this.reHideAddressBarTimeout_=null},testAndFixUI:function(b,c){var e=this.getReferenceHeight(), +f=this.getCurrentHeight();if(e!==f&&!(0.97*f=c)this.resetFixUI();else if(a.os.ios7)window.scrollTo(1,1);else if(a.os.desktop||a.os.kindle)this.layer.style.height="100%";else if(a.os.android){window.scrollTo(1,1);this.layer.style.height=this.isFocused_||window.innerHeight>=window.outerHeight?window.innerHeight+"px":window.outerHeight+"px";var e=b+1;this.reHideAddressBarTimeout_= +setTimeout(this.retestAndFixUIProxy_,250*e,e,c)}else 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 window.innerHeight},getCurrentHeight:function(){return a.os.android?window.innerHeight:numOnly(document.documentElement.style.height)},onOrientationChange:function(){this.focusedElement&&this.focusedElement.blur(); +!this.holdingReshapeType_&&this.reshapeTimeout_?this.fireReshapeEvent("orientationchange"):this.previewReshapeEvent("orientationchange");a.os.android&&a.os.chrome&&(this.layer.style.height="100%")},onResize:function(){this.ignoreNextResize_?this.ignoreNextResize_=!1:this.launchFixUI()&&this.reshapeAction()},onClick:function(b){var c=b.target&&void 0!==b.target.tagName?b.target.tagName.toLowerCase():"";if(-1!==n.indexOf(c)&&(!this.isFocused_||b.target!==this.focusedElement)){c=b.target&&void 0!==b.target.type? +b.target.type.toLowerCase():"";if(-1===l.indexOf(c)){this.isFocused_&&this.focusedElement.removeEventListener("blur",this,!1);this.focusedElement=b.target;this.focusedElement.addEventListener("blur",this,!1);if(!this.isFocused_&&!this.justBlurred_)if(a.trigger(this,"enter-edit",[b.target]),a.os.ios){var e=this;setTimeout(function(){e.fireReshapeEvent("enter-edit")},300)}else this.previewReshapeEvent("enter-edit");this.isFocused_=!0}else this.isFocused_=!1;this.justBlurred_=!1;this.allowDocumentScroll_= +!0;k&&b.target.focus()}else a.os.blackberry10&&this.isFocused_&&this.focusedElement.blur()},previewReshapeEvent:function(a){var b=this;this.reshapeTimeout_=setTimeout(function(){b.fireReshapeEvent(a);b.reshapeTimeout_=null;b.holdingReshapeType_=null},750);this.holdingReshapeType_=a},fireReshapeEvent:function(b){a.trigger(this,"reshape");a.trigger(this,b?b+"-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(b){a.os.android&&b.target===window||(this.isFocused_=!1,this.focusedElement&&this.focusedElement.removeEventListener("blur",this,!1),this.focusedElement=null,this.justBlurred_=!0,a.asap(this.exitEditProxy_,this,[b.target]))},exitExit:function(b){this.justBlurred_=!1;if(!this.isFocused_)if(a.trigger(this,"exit-edit",[b]),this.allowDocumentScroll_= +!1,a.os.ios){var c=this;setTimeout(function(){c.fireReshapeEvent("exit-edit")},300)}else this.previewReshapeEvent("exit-edit")},onScroll:function(a){!this.allowDocumentScroll_&&(!this.isPanning_&&a.target===document)&&(this.allowDocumentScroll_=!0,this.wasPanning_?(this.wasPanning_=!1,setTimeout(this.launchFixUIProxy_,2E3,[2])):this.launchFixUI())},onTouchStart:function(d){this.dX=d.touches[0].pageX;this.dY=d.touches[0].pageY;this.lastTimestamp=d.timeStamp;this.lastTouchStartX=this.lastTouchStartY= +null;if(a.os.ios){if(b===d.touches[0].identifier)return e=!0,d.preventDefault(),b=!1;b=d.touches[0].identifier;e=!1}if(this.scrollerIsScrolling)return this.moved=!0,this.scrollerIsScrolling=!1,d.preventDefault(),!1;this.trackingClick=!0;(g||a.feat.nativeTouchScroll)&&this.checkDOMTree(d.target,this.layer);this.isScrolling&&(null!==this.scrollTimeout_?(clearTimeout(this.scrollTimeout_),this.scrollTimeout_=null,this.scrollTimeoutEl_!==this.scrollingEl_?this.scrollEnded(!1):this.blockPossibleClick_= +!0):(this.scrollEnded(!0),this.blockPossibleClick_=!1));if(a.os.android&&d&&d.target&&d.target.getAttribute&&"ignore"===d.target.getAttribute("data-touchlayer")||this.isFocused_&&!a.os.blackberry10)this.allowDocumentScroll_=this.requiresNativeTap=!0;else if(h&&d.target&&void 0!==d.target.tagName){var c=d.target.tagName.toLowerCase();-1!==n.indexOf(c)&&(this.requiresNativeTap=!0)}else d.target&&(void 0!==d.target.tagName&&"input"===d.target.tagName.toLowerCase()&&"range"===d.target.type)&&(this.requiresNativeTap= +!0);!a.os.chrome&&(!a.os.fennec&&!a.os.androidICS)&&(!this.isPanning_&&!this.requiresNativeTap?(this.isScrolling&&!a.feat.nativeTouchScroll||!this.isScrolling)&&d.preventDefault():this.isScrollingVertical_&&this.demandVerticalScroll())},demandVerticalScroll:function(){0>=this.scrollingEl_.scrollTop?this.scrollingEl_.scrollTop=1:this.scrollingEl_.scrollTop+this.scrollingEl_.clientHeight>=this.scrollingEl_.scrollHeight&&(this.scrollingEl_.scrollTop=this.scrollingEl_.scrollHeight-this.scrollingEl_.clientHeight- +1)},ignoreScrolling:function(a){return void 0===a.scrollWidth||void 0===a.clientWidth||void 0===a.scrollHeight||void 0===a.clientHeight?!0:!1},allowsVerticalScroll:function(a,b){var c=b.overflowY;return"scroll"===c||"auto"===c&&a.scrollHeight>a.clientHeight?!0:!1},allowsHorizontalScroll:function(a,b){var c=b.overflowX;return"scroll"===c||"auto"===c&&a.scrollWidth>a.clientWidth?!0:!1},checkDOMTree:function(b,c){if(g&&this.panElementId===b.id)this.isPanning_=!0;else{if(a.feat.nativeTouchScroll){if(this.ignoreScrolling(b))return; +var e=window.getComputedStyle(b);if(this.allowsVerticalScroll(b,e)){this.isScrollingVertical_=!0;this.scrollingEl_=b;this.isScrolling=!0;return}this.allowsHorizontalScroll(b,e)&&(this.isScrollingVertical_=!1,this.scrollingEl_=null,this.isScrolling=!0)}b!==c&&b.parentNode&&this.checkDOMTree(b.parentNode,c)}},scrollEnded:function(a){null!==this.scrollTimeoutEl_&&(a&&this.scrollTimeoutEl_.removeEventListener("scroll",this.scrollEndedProxy_,!1),this.fireEvent("UIEvents","scrollend",this.scrollTimeoutEl_, +!1,!1),this.scrollTimeoutEl_=null)},onTouchMove:function(b){var c=this.moved;this.moved=!0;f&&(this.cY=b.touches[0].pageY-this.dY,this.cX=b.touches[0].pageX-this.dX);this.isPanning_||(this.isScrolling&&(c||this.fireEvent("UIEvents","scrollstart",this.scrollingEl_,!1,!1),this.speedY=(this.lastY-b.touches[0].pageY)/(b.timeStamp-this.lastTimestamp),this.lastY=b.touches[0].pageY,this.lastX=b.touches[0].pageX,this.lastTimestamp=b.timeStamp),!a.os.blackberry10&&!this.requiresNativeTap&&(!this.isScrolling|| +!a.feat.nativeTouchScroll&&!this.requiresNativeTap)&&b.preventDefault())},onTouchEnd:function(b){var c=this.moved;f&&(c=c&&!(10>Math.abs(this.cX)&&10>Math.abs(this.cY)));if(!a.os.ios||!this.requiresNativeTap)this.allowDocumentScroll_=!1;if(this.isPanning_&&c)this.wasPanning_=!0;else if(!c&&!this.requiresNativeTap){this.scrollerIsScrolling=!1;if(!this.trackingClick)return;b.preventDefault();if(!this.blockClicks&&!this.blockPossibleClick_){var c=b.target,e=b.changedTouches?b.changedTouches[0]:b.touches[0]; +3===c.nodeType&&(c=c.parentNode);this.fireEvent("Event","click",c,!0,b.mouseToTouch,e[0]);this.lastTouchStartX=this.dX;this.lastTouchStartY=this.dY}}else c&&(this.isScrolling&&(this.scrollTimeoutEl_=this.scrollingEl_,0.01>Math.abs(this.speedY)?this.scrollEnded(!1):this.scrollTimeout_=setTimeout(this.scrollTimeoutExpireProxy_,30)),this.requiresNativeTap&&(this.isFocused_||a.trigger(this,"cancel-enter-edit",[b.target])));a.os.blackberry10&&(this.lastTouchStartX=this.dX,this.lastTouchStartY=this.dY); +this.clearTouchVars()},clearTouchVars:function(){this.speedY=this.lastY=this.cY=this.cX=this.dX=this.dY=0;this.trackingClick=this.blockPossibleClick_=this.requiresNativeTap=this.isScrollingVertical_=this.isScrolling=this.isPanning_=this.moved=!1},fireEvent:function(b,c,e,f,h,g){var k=document.createEvent(b);k.initEvent(c,f,!0);g&&a.each(g,function(a,b){k.key=b});h&&(k.mouseToTouch=!0);e.dispatchEvent(k)}}})(af); +(function(a){a.fn.popup=function(a){return new l(this[0],a)};var n=[],l=function(){var f=function(f,g){if(this.container="string"===typeof f||f instanceof String?document.getElementById(f):f)try{if("string"===typeof g||"number"===typeof g)g={message:g,cancelOnly:"true",cancelText:"OK"};this.id=g.id=g.id||a.uuid();this.addCssClass=g.addCssClass?g.addCssClass:"";this.suppressTitle=g.suppressTitle||this.suppressTitle;this.title=g.suppressTitle?"":g.title||"Alert";this.message=g.message||"";this.cancelText= +g.cancelText||"Cancel";this.cancelCallback=g.cancelCallback||function(){};this.cancelClass=g.cancelClass||"button";this.doneText=g.doneText||"Done";this.doneCallback=g.doneCallback||function(){};this.doneClass=g.doneClass||"button";this.cancelOnly=g.cancelOnly||!1;this.onShow=g.onShow||function(){};this.autoCloseDone=void 0!==g.autoCloseDone?g.autoCloseDone:!0;n.push(this);1===n.length&&this.show()}catch(b){console.log("error adding popup "+b)}else window.alert("Error finding container for popup "+ +f)};f.prototype={id:null,addCssClass:null,title:null,message:null,cancelText:null,cancelCallback:null,cancelClass:null,doneText:null,doneCallback:null,doneClass:null,cancelOnly:!1,onShow:null,autoCloseDone:!0,suppressTitle:!1,show:function(){var f=this,g="";a(this.container).append(a(g));var b=a.query("#"+this.id);b.bind("close",function(){f.hide()});this.cancelOnly&&(b.find("A#action").hide(),b.find("A#cancel").addClass("center"));b.find("A").each(function(){var b=a(this);b.bind("click",function(a){"cancel"===b.attr("id")?(f.cancelCallback.call(f.cancelCallback,f),f.hide()):(f.doneCallback.call(f.doneCallback,f),f.autoCloseDone&&f.hide());a.preventDefault()})}); +f.positionPopup();a.blockUI(0.5);b.bind("orientationchange",function(){f.positionPopup()});b.find("header").show();b.find("footer").show();setTimeout(function(){b.removeClass("hidden").addClass("show");f.onShow(f)},50)},hide:function(){var f=this;a.query("#"+f.id).addClass("hidden");a.unblockUI();!a.os.ie&&!a.os.android?setTimeout(function(){f.remove()},250):f.remove()},remove:function(){var f=a.query("#"+this.id);f.unbind("close");f.find("BUTTON#action").unbind("click");f.find("BUTTON#cancel").unbind("click"); +f.unbind("orientationchange").remove();n.splice(0,1);0")),a.query("BODY DIV#mask").bind("touchstart",function(a){a.preventDefault()}),a.query("BODY DIV#mask").bind("touchmove", +function(a){a.preventDefault()}),k=!0)};a.unblockUI=function(){k=!1;a.query("BODY DIV#mask").unbind("touchstart");a.query("BODY DIV#mask").unbind("touchmove");a("BODY DIV#mask").remove()}})(af); +(function(a){var n=window.location.pathname+window.location.search,l=window.location.hash,k=l,f=function(){function b(){e.useOSThemes&&(a("#afui").removeClass("ios ios7 win8 tizen bb android light dark firefox"),a.os.android?a("#afui").addClass("android"):a.os.ie?a("#afui").addClass("win8"):a.os.blackberry||a.os.blackberry10||a.os.playbook?(a("#afui").addClass("bb"),e.backButtonText="Back"):a.os.ios7?a("#afui").addClass("ios7"):a.os.ios?a("#afui").addClass("ios"):a.os.tizen?a("#afui").addClass("tizen"): +a.os.fennec&&(a("#afui").addClass("firefox"),e.animateHeaders=!1));if(a.os.ios){a("head").find("#iosBlurrHack").remove();var b;b="-webkit-backface-visibility: hidden;-webkit-perspective:1000;";a("head").append("")}else a.os.android&&!a.os.androidICS?e.transitionTime="150ms":a.os.fennec&&e.ready(function(){window.addEventListener("deviceorientation",function(){var b=numOnly(a("#header").css("height"))+numOnly(a("#navbar").css("height")); +a("#content").css("height",window.innerHeight-b)})});a.os.ios7&&a("#afui").hasClass("ios7")&&e.overlayStatusbar&&(e.ready(function(){a("#afui").addClass("overlayStatusbar")}),a(document.body).css("background","rgb(249,249,249)"))}var e=this;this.availableTransitions={};this.availableTransitions["default"]=this.availableTransitions.none=this.noTransition;if("function"===typeof define&&define.amd||"undefined"!==typeof module&&module.exports)e.autoLaunch=!1;var c=function(){var c=document.getElementById("afui"); +if(null===c){c=document.createElement("div");c.id="afui";for(var f=document.body;f&&f.firstChild;)c.appendChild(f.firstChild);a(document.body).prepend(c)}e.isIntel="intel"in window&&window.intel&&window.intel.xdk&&"app"in window.intel.xdk;a.os.supportsTouch&&a.touchLayer(c);b()};if("complete"===document.readyState||"loaded"===document.readyState)if(c(),e.init)e.autoBoot();else a(window).one("afui:init",function(){e.autoBoot()});else a(document).ready(function(){c();if(e.init)e.autoBoot();else a(window).one("afui:init", +function(){e.autoBoot()})},!1);"intel"in window||(window.intel={xdk:{}},window.intel.xdk.webRoot="");window.addEventListener("popstate",function(){if(e.useInternalRouting){var a=e.getPanelId(document.location.hash);"#"!==document.location.href.replace(document.location.origin+"/","")&&(""===a&&1===e.history.length&&(a="#"+e.firstDiv.id),""!==a&&0!==af(a).filter(".panel").length&&a!=="#"+e.activeDiv.id&&e.goBack())}},!1)};f.prototype={init:!1,transitionTime:"230ms",showLoading:!0,loadingText:"Loading Content", +loadContentQueue:[],isIntel:!1,titlebar:"",navbar:"",header:"",viewportContainer:"",remotePages:{},history:[],homeDiv:"",screenWidth:"",content:"",modalWindow:"",customFooter:!1,defaultFooter:"",defaultHeader:null,customMenu:!1,customAside:!1,defaultAside:"",defaultMenu:"",_readyFunc:null,doingTransition:!1,passwordBox:a.passwordBox?new a.passwordBox:!1,selectBox:a.selectBox?a.selectBox:!1,ajaxUrl:"",transitionType:"slide",scrollingDivs:{},firstDiv:"",hasLaunched:!1,isLaunching:!1,launchCompleted:!1, +activeDiv:"",customClickHandler:"",menuAnimation:null,togglingSideMenu:!1,sideMenuWidth:"200px",handheldMinWidth:"768",trimBackButtonText:!0,useOSThemes:!0,overlayStatusbar:!1,lockPageBounce:!0,animateHeaders:!0,useAutoPressed:!0,horizontalScroll:!1,_currentHeaderID:"defaultHeader",useInternalRouting:!0,autoBoot:function(){this.hasLaunched=!0;var a=this;if(this.autoLaunch)if(this.isIntel){var e=function(){a.launch();document.removeEventListener("intel.xdk.device.ready",e)};document.addEventListener("intel.xdk.device.ready", +e)}else this.launch()},css3animate:function(b,e){b=a(b);return b.css3Animate(e)},dispatchPanelEvent:function(a,e){if("string"===typeof a&&window[a])return window[a](e);if(-1!==a.indexOf(".")){var c=window,d=a.split("."),f=d.length,g=0;for(g;g #navbar.hasMenu.splitview, #afui > #header.hasMenu.splitview, #afui > #content.hasMenu.splitview { margin-left:"+ +b+" !important; width: "+e+"px !important;}}#afui #menu {width:"+b+" !important}";a("head").append("")},setSideMenuWidth:function(){this.setLeftSideMenuWidth.apply(this,arguments)},setRightSideMenuWidth:function(b){this.sideMenuWidth=b;b=(b+"").replace("px","")+"px";a("head").find("style#afui_asideMenuWidth").remove();a("head").append("")},disableNativeScrolling:function(){a.feat.nativeTouchScroll= +!1},manageHistory:!0,loadDefaultHash:!0,useAjaxCacheBuster:!1,actionsheet:function(b){return a.query("#afui").actionsheet(b)},popup:function(b){return a.query("#afui").popup(b)},blockUI:function(b){a.blockUI(b)},unblockUI:function(){a.unblockUI()},removeFooterMenu:function(){a.query("#navbar").hide();this.showNavMenu=!1},showNavMenu:!0,autoLaunch:!0,showBackbutton:!0,showBackButton:!0,backButtonText:"",resetScrollers:!1,ready:function(b){if(this.launchCompleted)b();else a(document).one("afui:ready", +function(){b()})},setBackButtonStyle:function(b){a.query("#header .backButton").get(0).className=b},goBack:function(a){if(a=Math.min(Math.abs(~~a||1),this.history.length))a=this.history.splice(-a).shift(),this.loadContent(a.target+"",0,1,a.transition),this.transitionType=a.transition,this.updateHash(a.target)},clearHistory:function(){this.history=[];this.setBackButtonVisibility(!1)},pushHistory:function(b,e,c,d){this.history.push({target:b,transition:c});try{this.manageHistory&&(window.history.pushState(e, +e,n+"#"+e+d),a(window).trigger("hashchange",null,{newUrl:n+"#"+e+d,oldUrl:n+b}))}catch(f){}},updateHash:function(b){if(this.manageHistory){k=b=-1===b.indexOf("#")?"#"+b:b;var e=window.location.hash,c=this.getPanelId(b).substring(1);try{window.history.replaceState(c,c,n+b),a(window).trigger("hashchange",null,{newUrl:n+b,oldUrl:n+e})}catch(d){}}},getPanelId:function(a){var e=a.indexOf("/");return-1===e?a:a.substring(0,e)},updateBadge:function(b,e,c,d){void 0===c&&(c="");b=a(b);var f=b.find("span.af-badge"); +0===f.length?("absolute"!==b.css("position")&&b.css("position","relative"),f=a.create("span",{className:"af-badge "+c,html:e}),b.append(f)):f.html(e);f.removeClass("tl bl br tr");f.addClass(c);void 0===d&&(d="red");a.isObject(d)?f.css(d):d&&f.css("background",d);f.data("ignore-pressed","true")},removeBadge:function(b){a(b).find("span.af-badge").remove()},toggleNavMenu:function(b){this.showNavMenu&&("none"!==a.query("#navbar").css("display")&&(void 0!==b&&!0!==b||void 0===b)?a.query("#navbar").hide(): +(void 0===b||void 0!==b&&!0===b)&&a.query("#navbar").show())},toggleHeaderMenu:function(b){"none"!==a.query("#header").css("display")&&(void 0!==b&&!0!==b||void 0===b)?a.query("#header").hide():(void 0===b||void 0!==b&&!0===b)&&a.query("#header").show()},toggleAsideMenu:function(){this.toggleRightSideMenu.apply(this,arguments)},toggleRightSideMenu:function(a,e,c){if(this.isAsideMenuEnabled())return this.toggleLeftSideMenu(a,e,c,!0)},toggleLeftSideMenu:function(b,e,c,d){if(!(!this.isSideMenuEnabled()&& +!this.isAsideMenuEnabled()||this.togglingSideMenu))if(d||this.isSideMenuEnabled())if(d||!(a.ui.splitview&&window.innerWidth>=a.ui.handheldMinWidth)){var f=this,g=a.query("#menu"),h=a.query("#aside_menu"),k=a.query("#content, #header, #navbar"),l=a.query(".afui_panel_mask");c=c||this.transitionTime;var n=this.isSideMenuOn(),z=d?"-"+numOnly(h.css("width")):numOnly(g.css("width"));0===l.length&&window.innerWidth"),l=a.query(".afui_panel_mask"), +a(".afui_panel_mask").bind("click",function(){a.ui.toggleSideMenu(!1,null,null,d)}));var s=this.getSideMenuPosition();n&&!d&&0>s?n=!1:n&&(d&&0 footer > a:not(.button)");0h1").html(b);a.query("#afui_mask").show()},hideMask:function(){a.query("#afui_mask").hide()},modalReference_:null,showModal:function(b,e){this.modalTransition=e||"up";var c=a.query("#modalContainer");"string"===typeof b&& +(b="#"+b.replace("#",""));var d=a.query(b);this.modalReference_=d;var f=a.query("#afui_modal");if(d.length){var g=this.scrollingDivs.hasOwnProperty(d.attr("id")),h;a.feat.nativeTouchScroll||a.os.desktop||!g?(h=d.contents(),c.append(h)):(h=a(d.get(0).childNodes[0]).contents(),c.children().eq(0).append(h));this.runTransition(this.modalTransition,this.modalTransContainer,this.modalWindow,!1);a(this.modalWindow).css("display","");a(this.modalWindow).addClass("display","flexContainer");g?this.scrollingDivs.modal_container.enable(this.resetScrollers): +this.scrollingDivs.modal_container.disable();c.addClass("panel").show();"none"===d.data("header")?f.find("#modalHeader").hide():0 footer > a:not(.button)");0footer>a:not(.button)").removeClass("pressed"),a.query("#navbar #"+b.getAttribute("data-tab")).addClass("pressed"));(c=b.getAttribute("data-left-menu")||b.getAttribute("data-nav"))&&this.customMenu!==c?(this.customMenu=c,this.updateSideMenuElements(c)):c!== +this.customMenu&&(this.customMenu&&this.updateSideMenuElements(this.defaultMenu),this.customMenu=!1);(c=b.getAttribute("data-right-menu")||b.getAttribute("data-aside"))&&this.customAside!==c?(this.customAside=c,this.updateAsideElements(c)):c!==this.customAside&&(this.customAside&&this.updateAsideElements(this.defaultAside),this.customAside=!1);e&&((c=e.getAttribute("data-unload"))&&this.dispatchPanelEvent(c,e),a(e).trigger("unloadpanel"));(c=b.getAttribute("data-load"))&&this.dispatchPanelEvent(c, +b);a(b).trigger("loadpanel");this.isSideMenuOn()&&this.toggleSideMenu(!1)},parseScriptTags:function(b){b&&a.fn&&"appframework"===a.fn.namespace&&a.parseJS(b)},loadContent:function(b,e,c,d,f){if(this.doingTransition)this.loadContentQueue.push([b,e,c,d,f]);else if(0!==b.length){var h=!0;f=f||document.createElement("a");if(-1===b.indexOf("#")){var k="url"+g(b),l=a.query("div.panel[data-crc='"+k+"']");0d.bottom&&f.height"}).get(0),this.viewportContainer.append(this.menu),this.menu.style.overflow="hidden",this.scrollingDivs.menu_scroller=a.query("#menu_scroller").scroller({scrollBars:!0,verticalScroll:!0,vScrollCSS:"afScrollbar",useJsScroll:!a.feat.nativeTouchScroll,autoEnable:!0,lockBounce:this.lockPageBounce,hasParent:!0}),a.feat.nativeTouchScroll&&a.query("#menu_scroller").css("height", +"100%"),this.asideMenu=a.create("div",{id:"aside_menu",html:"
"}).get(0),this.viewportContainer.append(this.asideMenu),this.asideMenu.style.overflow="hidden",this.scrollingDivs.aside_menu_scroller=a.query("#aside_menu_scroller").scroller({scrollBars:!0,verticalScroll:!0,vScrollCSS:"afScrollbar",useJsScroll:!a.feat.nativeTouchScroll,autoEnable:!0,lockBounce:this.lockPageBounce,hasParent:!0}),a.feat.nativeTouchScroll&&a.query("#aside_menu_scroller").css("height","100%")); +a(this.header).html("

"+this.header.innerHTML);this.backButton=a.query("#header .backButton").css("visibility","hidden");a(document).on("click","#header .backButton",function(a){a.preventDefault();b.goBack()});this.titlebar=a.query("#header #pageTitle").get(0);this.addContentDiv("afui_ajax","");var c=a.create("div",{id:"afui_mask",className:"ui-loader",html:"

Loading Content

"}).css({"z-index":2E4, +display:"none"});document.body.appendChild(c.get(0));c=a.create("div",{id:"afui_modal"}).get(0);a(c).hide();c.appendChild(a.create("div",{id:"modalHeader",className:"header"}).get(0));c.appendChild(a.create("div",{id:"modalContainer"}).get(0));c.appendChild(a.create("div",{id:"modalFooter",className:"footer"}).get(0));this.modalTransContainer=a.create("div",{id:"modalTransContainer"}).appendTo(c).get(0);this.viewportContainer.append(c);this.scrollingDivs.modal_container=a.query("#modalContainer").scroller({scrollBars:!0, +vertical:!0,vScrollCSS:"afScrollbar",lockBounce:this.lockPageBounce});this.modalWindow=c;for(var d={},c=this.viewportContainer.get(0).querySelectorAll(".panel"),f=0;f=F&&(u=!1,a(document).trigger("defer:loaded"))},error:function(){console.log("Error with deferred load "+intel.xdk.webRoot+d[c]);z++;z>=F&&(u=!1,a(document).trigger("defer:loaded"))}})};if(0a:not(.button)",function(b){a.query("#navbar>footer>a").not(b.currentTarget).removeClass("pressed");a(b.currentTarget).addClass("pressed")});0parseInt(a.ui.handheldMinWidth,10)&&(a.ui.sideMenuWidth=a("#menu").css("width")+ +"px");var c=b.getPanelId(l),d=null!==c&&c==="#"+b.firstDiv.id;0=e.clientY&&"h1"===e.target.nodeName.toLowerCase()&&a.scrollingDivs[a.activeDiv.id].scrollToTop("100")})},blockPageScroll:function(){a.query("#afui #header").bind("touchmove",function(a){a.preventDefault()})},noTransition:function(a,e){e.style.display="block";a.style.display="block";this.clearAnimations(e);this.css3animate(a,{x:"0%",y:0});this.finishTransition(a);e.style.zIndex=2;a.style.zIndex=1},finishTransition:function(b,e){b.style.display="none";this.doingTransition=!1;b&&a(b).trigger("unloadpanelcomplete"); +e&&a(e).trigger("loadpanelcomplete");e&&this.clearAnimations(e);b&&this.clearAnimations(b);a.trigger(this,"content-loaded")},clearAnimations:function(b){b.style[a.feat.cssPrefix+"Transform"]="none";b.style[a.feat.cssPrefix+"Transition"]="none"}};var h=function(b,e){var c=document.getElementById("afui");if(e!==c){if("a"!==e.tagName.toLowerCase()&&e.parentNode)return h(b,e.parentNode);if("undefined"!==e.tagName&&"a"===e.tagName.toLowerCase()){if(!1!==("function"===typeof a.ui.customClickHandler?a.ui.customClickHandler: +!1)&&a.ui.customClickHandler(e,b))return b.preventDefault();if(!(-1!==e.href.toLowerCase().indexOf("javascript:")||e.getAttribute("data-ignore")))if(-1===e.hash.indexOf("#")&&0>>8^c;return(e^-1)>>>0};a.ui=new f;a.ui.init=!0;a(window).trigger("afui:preinit");a(window).trigger("afui:init")})(af); +(function(a){var n=function(){a.ui.isIntel=!0;setTimeout(function(){document.getElementById("afui").style.height="100%";document.body.style.height="100%";document.documentElement.style.minHeight=window.innerHeight},30);document.removeEventListener("intel.xdk.device.ready",n)};document.addEventListener("intel.xdk.device.ready",n);a.feat.nativeTouchScroll&&document.addEventListener("orientationchange",function(){if(a.ui.scrollingDivs[a.ui.activeDiv.id]){var l=a.ui.scrollingDivs[a.ui.activeDiv.id];l&& +(0===l.el.scrollTop&&(l.disable(),setTimeout(function(){l.enable()},300)),l.refresh&&l.updateP2rHackPosition())}})})(af); +(function(a){a.availableTransitions.fade=function(n,l,k){var f=this;k?(l.style.zIndex=1,n.style.zIndex=2,f.clearAnimations(l),f.css3animate(n,{x:"0%",time:a.transitionTime,opacity:0.1,complete:function(a){a?f.finishTransition(n,l):(f.css3animate(n,{x:"-100%",opacity:1,complete:function(){f.finishTransition(n)}}),l.style.zIndex=2,n.style.zIndex=1)}})):(n.style.zIndex=1,l.style.zIndex=2,l.style.opacity=0,f.css3animate(l,{x:"0%",opacity:0.1,complete:function(){f.css3animate(l,{x:"0%",time:a.transitionTime, +opacity:1,complete:function(a){a?f.finishTransition(n,l):(f.clearAnimations(l),f.css3animate(n,{x:"-100%",y:0,complete:function(){f.finishTransition(n)}}))}})}}))}})(af.ui); +(function(a){a.availableTransitions.flip=function(n,l,k){var f=this;k||(n.style.zIndex=1,l.style.zIndex=2);f.css3animate(l,{x:"100%",scale:0.8,rotateY:"180deg",complete:function(){f.css3animate(l,{x:"0%",scale:1,time:a.transitionTime,rotateY:"0deg",complete:function(){f.clearAnimations(l)}})}});f.css3animate(n,{x:"100%",time:a.transitionTime,scale:0.8,rotateY:"180deg",complete:function(){f.css3animate(n,{x:"-100%",opacity:1,scale:1,rotateY:"0deg",complete:function(){f.finishTransition(n)}});l.style.zIndex= +2;n.style.zIndex=1}})}})(af.ui); +(function(a){a.availableTransitions.pop=function(n,l,k){var f=this;k?(l.style.zIndex=1,n.style.zIndex=2,f.clearAnimations(l),f.css3animate(n,{x:"0%",time:a.transitionTime,opacity:0.1,scale:0.2,origin:"50% 50%",complete:function(a){a?f.finishTransition(n):(f.css3animate(n,{x:"-100%",opacity:1,complete:function(){f.finishTransition(n)}}),l.style.zIndex=2,n.style.zIndex=1)}})):(n.style.zIndex=1,l.style.zIndex=2,f.css3animate(l,{x:"0%",scale:0.2,origin:"50% 50%",opacity:0.1,time:"0ms",complete:function(){f.css3animate(l, +{x:"0%",time:a.transitionTime,scale:1,opacity:1,origin:"0% 0%",complete:function(a){a?f.finishTransition(n,l):(f.clearAnimations(l),f.css3animate(n,{x:"100%",y:0,complete:function(){f.finishTransition(n)}}))}})}}))}})(af.ui); +(function(a){function n(l,k,f){var h=this;f?h.css3animate(l,{x:"0%",y:"0%",complete:function(){h.css3animate(l,{x:"100%",time:a.transitionTime,complete:function(){h.finishTransition(l,k)}}).link(k,{x:"0%",time:a.transitionTime})}}).link(k,{x:"-100%",y:"0%"}):h.css3animate(l,{x:"0%",y:"0%",complete:function(){h.css3animate(l,{x:"-100%",time:a.transitionTime,complete:function(){h.finishTransition(l,k)}}).link(k,{x:"0%",time:a.transitionTime})}}).link(k,{x:"100%",y:"0%"})}a.availableTransitions.slide= +n;a.availableTransitions["default"]=n})(af.ui);(function(a){a.availableTransitions.down=function(n,l,k){var f=this;k?(n.style.zIndex=2,l.style.zIndex=1,f.css3animate(n,{y:"0%",x:"0%",complete:function(){f.css3animate(n,{y:"-100%",time:a.transitionTime,complete:function(){f.finishTransition(n,l)}})}})):(n.style.zIndex=1,l.style.zIndex=2,f.css3animate(l,{y:"-100%",x:"0%",time:"10ms",complete:function(){f.css3animate(l,{y:"0%",time:a.transitionTime,complete:function(){f.finishTransition(n,l)}})}}))}})(af.ui); +(function(a){a.availableTransitions.up=function(n,l,k){var f=this;k?(n.style.zIndex=2,l.style.zIndex=1,f.css3animate(n,{y:"0%",x:"0%",complete:function(){f.css3animate(n,{y:"100%",time:a.transitionTime,complete:function(){f.finishTransition(n,l)}})}})):(n.style.zIndex=1,l.style.zIndex=2,f.css3animate(l,{y:"100%",x:"0%",time:"10ms",complete:function(){f.css3animate(l,{y:"0%",time:a.transitionTime,complete:function(){f.finishTransition(n,l)}})}}))}})(af.ui); +(function(a){function n(){a.ui.isWin8=!0;a.os.ie&&a.ui.isSideMenuEnabled()&&a.ui.ready(function(){if(!a.ui.tilesLoaded){a.ui.tilesLoaded=!0;if(window.innerWidth>a.ui.handheldMinWidth)return!0;a.ui.slideSideMenu&&(a.ui.slideSideMenu=!1);a.query("#afui #navbar footer").append("\u2022\u2022\u2022");var l=a.query("#afui #navbar").find("a").not(".button");if(0\u2022\u2022\u2022")};a.ui.isSideMenuOn=function(){var f=0>parseInt(a.getCssMatrix(a("#navbar")).f,10)?!0:!1;return this.isSideMenuEnabled()&&f};a.ui.toggleRightSideMenu=function(f,g,b){if(this.isAsideMenuEnabled()&&!this.togglingAsideMenu){var e= +this,c=a("#menu"),d=a.query("#aside_menu"),k=a.query("#content, #header, #navbar"),l=a.query(".afui_panel_mask");b=b||this.transitionTime;var n="block"===a("#aside_menu").css("display"),y="-"+e.sideMenuWidth;0===l.length&&window.innerWidth"),l=a.query(".afui_panel_mask"),a(".afui_panel_mask").bind("click",function(){a.ui.toggleSideMenu(!1,null,null,!0)}));var u=this.getSideMenuPosition();n&&0