/*! intel-appframework - v2.1.0 - 2014-04-07 */ /* Intel @api private */ if(!window.af||"function"!==typeof af){var af=function(a){function p(a,c,b){var d=r.createDocumentFragment();if(b){for(b=a.length-1;0<=b;b--)d.insertBefore(a[b],d.firstChild);c.insertBefore(d,c.firstChild)}else{for(b=0;b]*>/,x={},A={},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},B="object"===typeof MSApp,w=function(a,c){this.length=0;if(a){if(a instanceof w&&c==q)return a;if(af.isFunction(a))return af(r).ready(a);if(af.isArray(a)&&a.length!=q){for(var b=0;b"))c===r?h(c.getElementById(a.replace("#","")),this):h(k(a,c),this);else if("<"===a[0]&&">"===a[a.length-1]||-1!==a.indexOf("<")&&-1!==a.indexOf(">")){var b= r.createElement("div");B?MSApp.execUnsafeLocalFunction(function(){b.innerHTML=a.trim()}):b.innerHTML=a.trim();h(b.childNodes,this)}else h(k(a,c),this);return this},oldElement:void 0,sort:z.sort,slice:z.slice,length:0,setupOld:function(a){if(a==q)return m();a.oldElement=this;return a},map:function(a){var c,b=[],d;for(d=0;da&&(a+=this.length);if(null===a){a=[];for(var c=0;cd.status||0===d.status&&"file:"===h){if("application/json"===l||"application/json"===c&&!/^\s*$/.test(d.responseText))try{b=JSON.parse(d.responseText)}catch(P){g=P}else if(-1!==l.indexOf("javascript"))try{b=d.responseText, a.eval(b)}catch(n){console.log(n)}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&&(g=!0);g?(f.error.call(k,d,"parsererror",g),e.reject.call(k,d,"parsererror",g)):(e.resolve.call(k,b,"success",d),f.success.call(k,b,"success",d))}else g=!0,e.reject.call(k,d,"error"),f.error.call(k,d,"error");f.complete.call(k,d,g?"error":"success")}};d.open(f.type,f.url,f.async);f.withCredentials&&(d.withCredentials=!0); f.contentType&&(f.headers["Content-Type"]=f.contentType);for(var l in f.headers)"string"===typeof f.headers[l]&&d.setRequestHeader(l,f.headers[l]);if(!1===f.beforeSend.call(k,d,f))return d.abort(),!1;0
"+g+"Cancel
"); else if("object"===typeof g){b=a("
");var f=a(b.children().get(0));g.push({text:"Cancel",cssClasses:"cancel"});for(var c=0;c"+(g[c].text||"TEXT NOT ENTERED")+"");d[0].onclick=g[c].handler||k;g[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 "+l)};n.prototype={activeSheet:null,hideSheet:function(){var l=this;this.activeSheet.off("click","a",function(){l.hideSheet()});a(this.el).find("#af_action_mask").unbind("click").remove();this.activeSheet.vendorCss("Transition","all 0ms");var g=this.activeSheet,k=this.el;setTimeout(function(){g.vendorCss("Transition","all 300ms");g.cssTranslate("0,0px");setTimeout(function(){g.remove();g=null;k.style.overflow="none"}, 500)},10)}};return n}()})(af); (function(a){var p=[],n=function(b,f){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;p[d]?(p[d].animate(f),c=p[d]):(c=h(c,f),p[d]=c);return c};a.fn.css3Animate=function(a){!a.complete&&a.callback&&(a.complete=a.callback);var f=n(this[0],a);a.complete=null;a.sucess=null;a.failure=null;for(var c=1;cs||"none"===e.display?a.asap(a.proxy(this.finishAnimation,this,[!1])):(this.activeEvent=function(a){clearTimeout(h.timeout);h.finishAnimation(a);h.el.removeEventListener(k,h.activeEvent,!1)},h.timeout=setTimeout(this.activeEvent,numOnly(b.time)+50),this.el.addEventListener(k,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 b=0;b=this.startTime+this.runTime?(h.setPosition(this.animateOpts.x,this.animateOpts.y),h.isAnimating=!1,this.updateCB&&this.updateCB({x:this.animateOpts.x,y:this.animateOpts.y}),this.completeCB&&this.completeCB()):(a=(a-this.startTime)/this.runTime,k=l[this.easingFn](1=k&&(g.el.scrollTop=a.y,clearInterval(g.scrollTopInterval))},10);g.scrollLeftInterval=window.setInterval(function(){g.el.scrollLeft-=f;l++;l>=h&&(g.el.scrollLeft=a.x, clearInterval(g.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,b){this.el=c;this.afEl=a(this.el);this.defaultProperties();for(var e in b)this[e]= b[e];var f=this,g=function(){f.eventsActive&&(!a.feat.nativeTouchScroll&&(!a.ui||a.ui.activeDiv===f.container))&&f.adjustScroll()};this.afEl.bind("destroy",function(){f.disable(!0);var c=f.el.afScrollerId;n[c]&&delete n[c];a.unbind(a.touchLayer,"orientationchange-reshape",g)});a.bind(a.touchLayer,"orientationchange-reshape",g);a(window).bind("resize",g)},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 b=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 b=c.touches[0].pageY-this.dY, e=c.touches[0].pageX-this.dX,f=this.el.scrollHeight-this.el.scrollTop===this.el.clientHeight&&0>b,g=this.el.scrollWidth-this.el.scrollLeft===this.el.clientWidth&&0>e,k="input"!==c.target.tagName.toLowerCase();this.verticalScroll&&0===this.startTop&&0===this.el.scrollTop&&0Math.abs(e)&&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=b;this.cX=e;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 b=a.create("
");a(this.el).append(b);this.refreshContainer.style.top="0px";this.refreshContainer.style.position="";setTimeout(function(){b.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 e=this,f=this.el.scrollTop,g=this.el.scrollLeft,k=0;clearInterval(e.nativePolling);e.nativePolling=setInterval(function(){k++;25===k&&e.initScrollProgress&&(a.trigger(e,"scroll",[{x:-e.el.scrollLeft+e.cX,y:-e.el.scrollTop+e.cY}]),a.trigger(a.touchLayer,"scroll",[{x:-e.el.scrollLeft+e.cX,y:-e.el.scrollTop+e.cY}]));if(200<=k)clearInterval(e.nativePolling),e.initScrollProgress&&(a.trigger(e,"scroll",[{x:-e.el.scrollLeft,y:-e.el.scrollTop}]), a.trigger(a.touchLayer,"scroll",[{x:-e.el.scrollLeft,y:-e.el.scrollTop}]));else if(e.el.scrollTop!==f||e.el.scrollLeft!==g)clearInterval(e.nativePolling),a.trigger(a.touchLayer,"scrollend",[e.el]),a.trigger(e,"scrollend",[e.el]),e.initScrollProgress&&(a.trigger(e,"scroll",[{x:-e.el.scrollLeft,y:-e.el.scrollTop}]),a.trigger(a.touchLayer,"scroll",[{x:-e.el.scrollLeft,y:-e.el.scrollTop}]))},20)};b.prototype.hideRefresh=function(c){if(!this.preventHideRefresh){var b=this,e=function(c){b.refreshContainer.style.top= "-60px";b.refreshContainer.style.position="absolute";b.dY=b.cY=0;c||(b.el.style[a.feat.cssPrefix+"Transform"]="none",b.el.style[a.feat.cssPrefix+"TransitionProperty"]="none",b.el.scrollTop=0,b.logPos(b.el.scrollLeft,0),b.refreshRunning=!1,b.setRefreshContent("Pull to Refresh"),a.trigger(b,"refresh-finish"))};!1===c||!b.afEl.css3Animate?e():b.afEl.css3Animate({y:b.el.scrollTop-b.refreshHeight+"px",x:"0%",time:"325ms",complete:e});this.refreshTriggered=!1}};b.prototype.hideScrollbars=function(){};b.prototype.scrollTo= function(a,b){this.logPos(a.x,a.y);a.x*=-1;a.y*=-1;return this._scrollTo(a,b)};b.prototype.scrollBy=function(a,b){a.x+=this.el.scrollLeft;a.y+=this.el.scrollTop;this.logPos(this.el.scrollLeft,this.el.scrollTop);return this._scrollTo(a,b)};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,b){this.loggedPcentX=this.divide(a,this.el.scrollWidth);this.loggedPcentY=this.divide(b,this.el.scrollHeight);this.scrollLeft=a;this.scrollTop=b;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)};h.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};h.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))};h.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)};h.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}};h.prototype.addPullToRefresh=function(a,b){b||(this.refresh=!0);this.refresh&&!0===this.refresh&&(this.coreAddPullToRefresh(a),this.el.style.overflow="visible")};h.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")};h.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)}};h.prototype.onTouchStart=function(b){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!==b.touches.length||this.boolScrollLock)&&!(b.touches[0].target&&void 0!==b.touches[0].target.type&&"select"=== b.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 e=this.getViewportSize();this.elementInfo.bottomMargin=e.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=e.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)}};h.prototype.getCSSMatrix=function(b){if(this.androidFormsMode){var d=parseInt(b.style.marginTop,10);b=parseInt(b.style.marginLeft,10);isNaN(d)&&(d=0);isNaN(b)&&(b=0);return{f:d,e:b}}return a.getCssMatrix(b)};h.prototype.saveEventInfo= function(a){this.lastEventInfo={pageX:a.touches[0].pageX,pageY:a.touches[0].pageY,time:a.timeStamp}};h.prototype.saveFirstEventInfo=function(a){this.firstEventInfo={pageX:a.touches[0].pageX,pageY:a.touches[0].pageY,time:a.timeStamp}};h.prototype.setVScrollBar=function(a,b,e){if(!this.elementInfo.requiresVScrollBar)return!1;var f=parseFloat(this.elementInfo.bottomMargin/this.elementInfo.divHeight)*this.elementInfo.bottomMargin+"px";numOnly(f)>this.elementInfo.bottomMargin&&(f=this.elementInfo.bottomMargin+ "px");f!==this.vscrollBar.style.height&&(this.vscrollBar.style.height=f);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},b,e);return!0};h.prototype.setHScrollBar=function(a,b,e){if(!this.elementInfo.requiresHScrollBar)return!1;var f= parseFloat(this.elementInfo.rightMargin/this.elementInfo.divWidth)*this.elementInfo.rightMargin+"px";f!==this.hscrollBar.style.width&&(this.hscrollBar.style.width=f);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},b,e);return!0};h.prototype.onTouchMove= function(b){if(null!==this.currentScrollingObject){var d=this.calculateMovement(b);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(b);if(!1===this.isScrolling&&(this.isScrolling=!0,this.onScrollStart))this.onScrollStart();b=this.getCSSMatrix(this.el); this.lastScrollInfo.top=numOnly(b.f);this.lastScrollInfo.left=numOnly(b.e);this.recalculateDeltaY(this.lastScrollInfo);this.recalculateDeltaX(this.lastScrollInfo);this.checkYboundary(this.lastScrollInfo);this.elementInfo.hasHorScroll&&this.checkXboundary(this.lastScrollInfo);b=0this.lastScrollInfo.deltaY,f;if(b||e)d=b?this.lastScrollInfo.y:-this.lastScrollInfo.y-this.elementInfo.maxTop,d=(this.container.clientHeight- d)/this.container.clientHeight,0.5>d&&(d=0.5),f=0,b&&0Math.abs(this.lastScrollInfo.deltaY*d)&&(e=b?1:-1),this.lastScrollInfo.y=f+e;if(this.elementInfo.hasHorScroll&&(b=0this.lastScrollInfo.deltaX,b||e))d=b?this.lastScrollInfo.x: -this.lastScrollInfo.x-this.elementInfo.maxLeft,d=(this.container.clientWidth-d)/this.container.clientWidth,0.5>d&&(d=0.5),f=0,b&&0Math.abs(this.lastScrollInfo.deltaX*d)&&(e=b?1:-1),this.lastScrollInfo.x=f+e;if(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.topthis.el.clientHeight-this.container.clientHeight&&(this.infiniteTriggered=!0,a.trigger(this,"infinite-scroll"))}};h.prototype.calculateMovement=function(a,b){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},f=b?this.firstEventInfo:this.lastEventInfo,g=b?a.pageX:a.touches[0].pageX,k=b?a.pageY:a.touches[0].pageY,h=b?a.time:a.timeStamp;e.deltaY=this.elementInfo.hasVertScroll?k-f.pageY:0;e.deltaX=this.elementInfo.hasHorScroll?g-f.pageX:0;e.time=h;e.duration=h-f.time;return e};h.prototype.calculateTarget=function(a){a.y=this.lastScrollInfo.y+a.deltaY;a.x=this.lastScrollInfo.x+a.deltaX;0b)a.y=b;else if(-a.y>e)a.y=-e;else return;this.recalculateDeltaY(a)};h.prototype.checkXboundary=function(a){var b=this.container.clientWidth/2,e=this.elementInfo.maxLeft+b;if(a.x>b)a.x=b;else if(-a.x>e)a.x=-e;else return;this.recalculateDeltaX(a)};h.prototype.recalculateDeltaY= function(a){var b=Math.abs(a.deltaY);a.deltaY=a.y-a.top;var e=Math.abs(a.deltaY);a.duration=a.duration*e/b};h.prototype.recalculateDeltaX=function(a){var b=Math.abs(a.deltaX);a.deltaX=a.x-a.left;var e=Math.abs(a.deltaX);a.duration=a.duration*e/b};h.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}};h.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.0016,a.absDeltaY=Math.abs(a.deltaY),a.duration=a.absSpeedY/8E-4,a.speedY=a.deltaY/a.duration,a.absSpeedY=Math.abs(a.speedY),0.08>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.0016,a.absDeltaX=Math.abs(a.deltaX),a.duration=a.absSpeedX/8E-4,a.speedX=a.deltaX/a.duration,a.absSpeedX=Math.abs(a.speedX),0.08>a.absSpeedX||5>a.absDeltaX)a.deltaX=a.absDeltaX=a.duration=a.speedX=a.absSpeedX=0}else a.duration=0};h.prototype.onTouchEnd=function(){if(null!==this.currentScrollingObject&&this.moved){this.finishScrollingObject=this.currentScrollingObject; this.currentScrollingObject=null;var b=this.calculateMovement(this.lastEventInfo,!0);this.androidFormsMode||this.setMomentum(b);this.calculateTarget(b);var d=this.getCSSMatrix(this.el);b.top=numOnly(d.f);b.left=numOnly(d.e);this.checkYboundary(b);this.elementInfo.hasHorScroll&&this.checkXboundary(b);d=!this.preventPullToRefresh&&(b.top>this.refreshHeight||b.y>this.refreshHeight);this.fireRefreshRelease(d,0this.elementInfo.maxTop||0===this.elementInfo.maxTop)b.y=-this.elementInfo.maxTop,-b.top>this.elementInfo.maxTop&&(b.duration=325);if(this.elementInfo.hasHorScroll)if(0<=b.x)b.x=0,0<=b.left&&this.refresh&&(b.duration=325);else if(-b.x>this.elementInfo.maxLeft||0===this.elementInfo.maxLeft)b.x=-this.elementInfo.maxLeft,-b.left>this.elementInfo.maxLeft&&this.refresh&&(b.duration=325);if(b.x===b.left&&b.y===b.top||this.androidFormsMode)b.duration=0;this.scrollerMoveCSS(b, b.duration,"cubic-bezier(0.33,0.66,0.66,1)");this.setVScrollBar(b,b.duration,"cubic-bezier(0.33,0.66,0.66,1)");this.setHScrollBar(b,b.duration,"cubic-bezier(0.33,0.66,0.66,1)");this.setFinishCalback(b.duration);if(this.infinite&&!this.infiniteTriggered&&Math.abs(b.y)>=this.el.clientHeight-this.container.clientHeight){var e=this;setTimeout(function(){e.infiniteTriggered=!0;a.trigger(e,"infinite-scroll")},b.duration-50)}}};h.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)};h.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")}};h.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")}}; h.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))};h.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};h.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())}; h.prototype.scrollTo=function(a,b){b||(b=0);this.scrollerMoveCSS(a,b)};h.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)};h.prototype.scrollToBottom=function(a){this.scrollTo({y:-1*(this.el.clientHeight-this.container.clientHeight),x:0},a)};h.prototype.scrollToTop=function(a){this.scrollTo({x:0,y:0},a)};return function(c,d){var e;if(!l&&a.touchLayer&&a.isObject(a.touchLayer))p();else if(!a.touchLayer||!a.isObject(a.touchLayer))a.touchLayer= {};if(e="string"===typeof c||c instanceof String?document.getElementById(c):c){var g=a(e);d.hasParent&&(g=g.parent());g.hasClass("x-scroll")&&(d.horizontalScroll=!0);g.hasClass("y-scroll")&&(d.verticalScroll=!0);return a.os.desktop?new f(e,d):d.useJsScroll?new h(e,d):new b(e,d)}window.alert("Could not find element for scroller "+c)}}()})(af); (function(a){function p(g,k,h){!0===h&&(this.getAttribute("multiple")||a.selectBox.updateMaskValue(this.parentNode.id,this.text,this.value),this.parentNode.value=this.value);return h}function n(g,k,h){this.options[h]&&(this.getAttribute("multiple")||a.selectBox.updateMaskValue(this.linker,this.options[h].value,this.options[h].text),this.value=this.options[h].value);return h}function l(g){var k=g.target;a(k.linker).remove();delete k.linker;g.stopPropagation()}a.selectBox={scroller:null,currLinker:null, getOldSelects:function(g){if(a.os.android&&!a.os.androidICS)if(a.fn.scroller){var k=g&&document.getElementById(g)?document.getElementById(g):document;if(k){g=k.getElementsByTagName("select");for(k=0;k");for(var h=h.find("ul"),b=0;b=d&&(g=(k-1)*-c);this.scroller.scrollTo({x:0,y:g})}}catch(e){console.log("error init dropdown"+e)}k="block"===a("#afSelectClose").css("display")?numOnly(a("#afSelectClose").height()): 0;a("#afSelectWrapper").height(numOnly(a("#afSelectBoxContainer").height())-k+"px")}},updateMaskValue:function(g,k,h){a(g).html(h)},setDropDownValue:function(g,k){if(g){var h=a(g);k=parseInt(k,10);g.getAttribute("multiple")?(h=a("#afSelectBoxfix li:nth-child("+(k+1)+")"),h.hasClass("selected")?h.removeClass("selected"):h.addClass("selected")):(g.selectedIndex=k,h.find("option").prop("selected",!1),h.find("option:nth-child("+(k+1)+")").prop("selected",!0),this.scroller.scrollTo({x:0,y:0}),this.hideDropDown()); a(g).trigger("change")}},hideDropDown:function(){a("#afModalMask").hide();a("#afSelectBoxfix").html("")},createHtml:function(){var g=this;document.getElementById("afSelectBoxfix")||a(document).ready(function(){a(document).on("click",".afFakeSelect",function(){this.linker.disabled||(g.currLinker=this,"multiple"===this.linker.getAttribute("multiple")?a("#afSelectClose").show():a("#afSelectClose").hide(),g.initDropDown(this.linker))});var k=a.create("div",{id:"afSelectBoxContainer"}),h=a.create("div", {id:"afSelectBoxfix"}),b=a.create("div",{id:"afSelectWrapper"});b.css("position","relative");b.append(h);var h=a.create("div",{id:"afSelectClose",html:"Done Cancel"}),f=a.create("div",{id:"afModalMask"}),c=a("#afui");k.prepend(h).append(b);f.append(k);0=g?0=k&&(l.el.trigger("longTap"),l={})}var l={},g,k=750,h;a(document).ready(function(){var b;a(document.body).bind("touchstart",function(f){f.originalEvent&&(f=f.originalEvent);if(f.touches&&0!==f.touches.length){var c=Date.now(),d=c-(l.last||c);f.touches&&0!==f.touches.length&&(l.el=a("tagName"in f.touches[0].target?f.touches[0].target:f.touches[0].target.parentNode), g&&clearTimeout(g),l.x1=f.touches[0].pageX,l.y1=f.touches[0].pageY,l.x2=l.y2=0,0=d&&(l.isDoubleTap=!0),l.last=c,h=setTimeout(n,k),a.ui.useAutoPressed&&!l.el.data("ignore-pressed")&&l.el.addClass("pressed"),b&&(a.ui.useAutoPressed&&!b.data("ignore-pressed")&&b[0]!==l.el[0])&&b.removeClass("pressed"),b=l.el)}}).bind("touchmove",function(a){a.originalEvent&&(a=a.originalEvent);l.x2=a.touches[0].pageX;l.y2=a.touches[0].pageY;clearTimeout(h)}).bind("touchend",function(b){b.originalEvent&&(b=b.originalEvent); l.el&&(a.ui.useAutoPressed&&!l.el.data("ignore-pressed")&&l.el.removeClass("pressed"),l.isDoubleTap?(l.el.trigger("doubleTap"),l={}):0Math.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 f=this.getReferenceHeight(),g=this.getCurrentHeight();if(f!== g&&!(0.97*g=c)this.resetFixUI();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 f=b+1;this.reHideAddressBarTimeout_=setTimeout(this.retestAndFixUIProxy_,250*f,f, 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(){var b=this,c=!1;this.focusedElement&&(c=!0,this.focusedElement.blur());!this.holdingReshapeType_&& this.reshapeTimeout_?this.fireReshapeEvent("orientationchange"):this.previewReshapeEvent("orientationchange");a.os.android&&a.os.chrome&&(this.layer.style.height="100%",setTimeout(function(){b.hideAddressBar(0,1)},c?600:0))},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!==p.indexOf(c)&&(!this.isFocused_||b.target!==this.focusedElement)){c= b.target&&void 0!==b.target.type?b.target.type.toLowerCase():"";if(-1===n.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 f=this;setTimeout(function(){f.fireReshapeEvent("enter-edit")},300)}else this.previewReshapeEvent("enter-edit");this.isFocused_=!0}else this.isFocused_=!1;this.justBlurred_= !1;this.allowDocumentScroll_=!0;l&&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(c){this.dX=c.touches[0].pageX;this.dY=c.touches[0].pageY;this.lastTimestamp=c.timeStamp;this.lastTouchStartX=this.lastTouchStartY= null;if(a.os.ios){if(b===c.touches[0].identifier)return f=!0,c.preventDefault(),b=!1;b=c.touches[0].identifier;f=!1}if(this.scrollerIsScrolling)return this.moved=!0,this.scrollerIsScrolling=!1,c.preventDefault(),!1;this.trackingClick=!0;(h||a.feat.nativeTouchScroll)&&this.checkDOMTree(c.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.scrollTimeoutEl_&&(this.scrollEnded(!0),this.blockPossibleClick_=!0));if(a.os.android&&c&&c.target&&c.target.getAttribute&&"ignore"===c.target.getAttribute("data-touchlayer")||this.isFocused_&&!a.os.blackberry10)this.allowDocumentScroll_=this.requiresNativeTap=!0;else if(k&&c.target&&void 0!==c.target.tagName){var e=c.target.tagName.toLowerCase();-1!==p.indexOf(e)&&(this.requiresNativeTap=!0)}else c.target&&(void 0!==c.target.tagName&&"input"===c.target.tagName.toLowerCase()&&"range"===c.target.type)&& (this.requiresNativeTap=!0);!a.os.chrome&&!a.os.fennec&&(!this.isPanning_&&!this.requiresNativeTap?(this.isScrolling&&!a.feat.nativeTouchScroll||!this.isScrolling)&&c.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(h&&this.panElementId===b.id)this.isPanning_=!0;else{if(a.feat.nativeTouchScroll){if(this.ignoreScrolling(b))return; var f=window.getComputedStyle(b);if(this.allowsVerticalScroll(b,f)){this.isScrollingVertical_=!0;this.scrollingEl_=b;this.isScrolling=!0;return}this.allowsHorizontalScroll(b,f)&&(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;g&&(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.isScrolling||!a.feat.nativeTouchScroll)&& b.preventDefault())},onTouchEnd:function(b){var c=this.moved;g&&(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,f=b.changedTouches?b.changedTouches[0]:b.touches[0];3===c.nodeType&&(c=c.parentNode);this.fireEvent("Event", "click",c,!0,b.mouseToTouch,f[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,f,g,k,h){var l=document.createEvent(b);l.initEvent(c,g,!0);h&&a.each(h,function(a,b){l.key=b});k&&(l.mouseToTouch=!0);f.dispatchEvent(l)}}})(af); (function(a){a.fn.popup=function(a){return new n(this[0],a)};var p=[],n=function(){var g=function(g,h){if(this.container="string"===typeof g||g instanceof String?document.getElementById(g):g)try{if("string"===typeof h||"number"===typeof h)h={message:h,cancelOnly:"true",cancelText:"OK"};this.id=h.id=h.id||a.uuid();this.addCssClass=h.addCssClass?h.addCssClass:"";this.suppressTitle=h.suppressTitle||this.suppressTitle;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=void 0!==h.autoCloseDone?h.autoCloseDone:!0;p.push(this);1===p.length&&this.show()}catch(b){console.log("error adding popup "+b)}else window.alert("Error finding container for popup "+ g)};g.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 g=this,h="";a(this.container).append(a(h));var b=a.query("#"+this.id);b.bind("close",function(){g.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")?(g.cancelCallback.call(g.cancelCallback,g),g.hide()):(g.doneCallback.call(g.doneCallback,g),g.autoCloseDone&&g.hide());a.preventDefault()})}); g.positionPopup();a.blockUI(0.5);b.bind("orientationchange",function(){g.positionPopup()});b.find("header").show();b.find("footer").show();setTimeout(function(){b.removeClass("hidden");g.onShow(g)},50)},hide:function(){var g=this;a.query("#"+g.id).addClass("hidden");a.unblockUI();!a.os.ie&&!a.os.android?setTimeout(function(){g.remove()},250):g.remove()},remove:function(){var g=a.query("#"+this.id);g.unbind("close");g.find("BUTTON#action").unbind("click");g.find("BUTTON#cancel").unbind("click");g.unbind("orientationchange").remove(); p.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()}), l=!0)};a.unblockUI=function(){l=!1;a.query("BODY DIV#mask").unbind("touchstart");a.query("BODY DIV#mask").unbind("touchmove");a("BODY DIV#mask").remove()}})(af); (function(a){var p=window.location.pathname+window.location.search,n=window.location.hash,l=n,g=function(){function b(){f.useOSThemes&&(a("#afui").removeClass("ios,ios7,win8,tizen,bb,android,light,dark"),a.os.android?a("#afui").addClass("android"):a.os.ie?(a("#afui").addClass("win8"),a("head").append(a.create("script",{src:"plugins/af.8tiles.js"}))):a.os.blackberry||a.os.blackberry10||a.os.playbook?(a("#afui").addClass("bb"),f.backButtonText="Back"):a.os.ios7?a("#afui").addClass("ios7"):a.os.ios? a("#afui").addClass("ios"):a.os.tizen&&a("#afui").addClass("tizen"));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.anroid&&!a.os.androidICS?f.transitionTime="150ms":a.os.fennec&&f.ready(function(){window.addEventListener("deviceorientation",function(){var b=numOnly(a("#header").height())+numOnly(a("#navbar").height()); a("#content").css("height",window.innerHeight-b)})})}var f=this;this.availableTransitions={};this.availableTransitions["default"]=this.availableTransitions.none=this.noTransition;if("function"===typeof define&&define.amd||"undefined"!==typeof module&&module.exports)f.autoLaunch=!1;1===a("#afui").length&&b();var c=function(){var c=document.getElementById("afui");if(null===c){c=document.createElement("div");c.id="afui";for(var e=document.body;e&&e.firstChild;)c.appendChild(e.firstChild);a(document.body).prepend(c)}f.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(),f.init)f.autoBoot();else a(window).one("afui:init",function(){f.autoBoot()});else a(document).ready(function(){c();if(f.init)f.autoBoot();else a(window).one("afui:init",function(){f.autoBoot()})},!1);"intel"in window||(window.intel={xdk:{}},window.intel.xdk.webRoot="");window.addEventListener("popstate",function(){if(f.useInternalRouting){var a= f.getPanelId(document.location.hash);"#"!==document.location.href.replace(document.location.origin+"/","")&&(""===a&&1===f.history.length&&(a="#"+f.firstDiv.id),""!==a&&0!==af(a).filter(".panel").length&&a!=="#"+f.activeDiv.id&&f.goBack())}},!1)};g.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,lockPageBounce:!1, animateHeaders:!0,useAutoPressed:!0,horizontalScroll:!1,_currentHeaderID:"defaultHeader",useInternalRouting:!0,autoBoot:function(){this.hasLaunched=!0;var b=this;if(this.autoLaunch)if(this.isIntel)a(document).one("intel.xdk.device.ready",function(){b.launch()});else this.launch()},css3animate:function(b,f){b=a(b);return b.css3Animate(f)},dispatchPanelEvent:function(a,f){if("string"===typeof a&&window[a])return window[a](f);if(-1!==a.indexOf(".")){var c=window,d=a.split("."),e=d.length,g=0;for(g;g< e-1;g++)if(c=c[d[g]],void 0===c)return;return c[d[g]](f)}},enableTabBar:function(){a(document).on("click",".button-grouped.tabbed",function(b){var f=a(b.target);f.closest(".tabbed").find(".button").data("ignore-pressed","true").removeClass("pressed");f.closest(".button").addClass("pressed");setTimeout(function(){f.closest(".button").addClass("pressed")})})},disableTabBar:function(){a(document).off("click",".button-grouped.tabbed");a(".button-grouped.tabbed .button").removeAttr("data-ignore-pressed")}, setLeftSideMenuWidth:function(b){this.sideMenuWidth=b;b=(b+"").replace("px","")+"px";var f=numOnly(window.innerWidth)-numOnly(b);a("head").find("style#afui_sideMenuWidth").remove();b="@media handheld, only screen and (min-width: 768px) {#afui > #navbar.hasMenu.splitview, #afui > #header.hasMenu.splitview, #afui > #content.hasMenu.splitview { margin-left:"+b+" !important; width: "+f+"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:!0,ready:function(b){if(this.launchCompleted)b();else a(document).on("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,f,c,d){this.history.push({target:b,transition:c});try{this.manageHistory&&(window.history.pushState(f,f,p+"#"+f+d),a(window).trigger("hashchange",null,{newUrl:p+"#"+f+d,oldUrl:p+b}))}catch(e){}},updateHash:function(b){if(this.manageHistory){l= b=-1===b.indexOf("#")?"#"+b:b;var f=window.location.hash,c=this.getPanelId(b).substring(1);try{window.history.replaceState(c,c,p+b),a(window).trigger("hashchange",null,{newUrl:p+b,oldUrl:p+f})}catch(d){}}},getPanelId:function(a){var f=a.indexOf("/");return-1===f?a:a.substring(0,f)},updateBadge:function(b,f,c,d){void 0===c&&(c="");b=a(b);var e=b.find("span.af-badge");0===e.length?("absolute"!==b.css("position")&&b.css("position","relative"),e=a.create("span",{className:"af-badge "+c,html:f}),b.append(e)): e.html(f);e.removeClass("tl bl br tr");e.addClass(c);void 0===d&&(d="red");a.isObject(d)?e.css(d):d&&e.css("background",d);e.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,f,c){if(this.isAsideMenuEnabled())return this.toggleLeftSideMenu(a,f,c,!0)},toggleLeftSideMenu:function(b,f,c,d){if(!(!this.isSideMenuEnabled()&&!this.isAsideMenuEnabled()||this.togglingSideMenu))if(d||this.isSideMenuEnabled())if(d||!(a.ui.splitview&&window.innerWidth>=a.ui.handheldMinWidth)){var e= 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(),p=d?"-"+h.width():g.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 u=this.getSideMenuPosition();n&&!d&&0>u?n=!1:n&&(d&&0 footer > a:not(.button)");if(0h1").html(b);a.query("#afui_mask").show()},hideMask:function(){a.query("#afui_mask").hide()},modalReference_:null,showModal:function(b,f){this.modalTransition=f||"up";var c=a.query("#modalContainer");"string"===typeof b&&(b="#"+b.replace("#",""));var d=a.query(b);this.modalReference_=d;var e=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")?e.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);f&&((c=f.getAttribute("data-unload"))&&this.dispatchPanelEvent(c,f),a(f).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.parseJS(b)},loadContent:function(b, f,c,d,e){if(this.doingTransition)this.loadContentQueue.push([b,f,c,d,e]);else if(0!==b.length){var g=!0;e=e||document.createElement("a");if(-1===b.indexOf("#")){var k="url"+h(b),l=a.query("div.panel[data-crc='"+k+"']");0d.bottom&&e.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"),e=0;e=E&&(t=!1,a(document).trigger("defer:loaded"))},error:function(){console.log("Error with deferred load "+intel.xdk.webRoot+d[c]);C++;C>=E&&(t=!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").width()+"px");var c=b.getPanelId(n),d=null!==c&&c==="#"+b.firstDiv.id; 0=f.clientY&&"h1"===f.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,f){f.style.display="block";a.style.display="block";this.clearAnimations(f);this.css3animate(a,{x:"0%",y:0});this.finishTransition(a);f.style.zIndex=2;a.style.zIndex=1},finishTransition:function(b,f){b.style.display="none";this.doingTransition=!1;f&&this.clearAnimations(f);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 k=function(b,f){var c=document.getElementById("afui");if(f!==c){if("a"!==f.tagName.toLowerCase()&&f.parentNode)return k(b,f.parentNode);if("undefined"!==f.tagName&&"a"===f.tagName.toLowerCase()){if(!1!==("function"===typeof a.ui.customClickHandler?a.ui.customClickHandler:!1)&&a.ui.customClickHandler(f,b))return b.preventDefault();if(!(-1!==f.href.toLowerCase().indexOf("javascript:")|| f.getAttribute("data-ignore")))if(-1===f.hash.indexOf("#")&&0>>8^c;return(f^-1)>>>0};a.ui=new g;a.ui.init=!0;a(window).trigger("afui:preinit");a(window).trigger("afui:init")})(af); (function(a){a(document).one("intel.xdk.device.ready",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)});a.feat.nativeTouchScroll&&document.addEventListener("orientationchange",function(){if(a.ui.scrollingDivs[a.ui.activeDiv.id]){var p=a.ui.scrollingDivs[a.ui.activeDiv.id];p&&(0===p.el.scrollTop&&(p.disable(),setTimeout(function(){p.enable()},300)), p.refresh&&p.updateP2rHackPosition())}})})(af); (function(a){a.availableTransitions.fade=function(p,n,l){var g=this;l?(n.style.zIndex=1,p.style.zIndex=2,g.clearAnimations(n),g.css3animate(p,{x:"0%",time:a.transitionTime,opacity:0.1,complete:function(a){a?g.finishTransition(p,n):(g.css3animate(p,{x:"-100%",opacity:1,complete:function(){g.finishTransition(p)}}),n.style.zIndex=2,p.style.zIndex=1)}})):(p.style.zIndex=1,n.style.zIndex=2,n.style.opacity=0,g.css3animate(n,{x:"0%",opacity:0.1,complete:function(){g.css3animate(n,{x:"0%",time:a.transitionTime, opacity:1,complete:function(a){a?g.finishTransition(p,n):(g.clearAnimations(n),g.css3animate(p,{x:"-100%",y:0,complete:function(){g.finishTransition(p)}}))}})}}))}})(af.ui); (function(a){a.availableTransitions.flip=function(p,n,l){var g=this;l||(p.style.zIndex=1,n.style.zIndex=2);g.css3animate(n,{x:"100%",scale:0.8,rotateY:"180deg",complete:function(){g.css3animate(n,{x:"0%",scale:1,time:a.transitionTime,rotateY:"0deg",complete:function(){g.clearAnimations(n)}})}});g.css3animate(p,{x:"100%",time:a.transitionTime,scale:0.8,rotateY:"180deg",complete:function(){g.css3animate(p,{x:"-100%",opacity:1,scale:1,rotateY:"0deg",complete:function(){g.finishTransition(p)}});n.style.zIndex= 2;p.style.zIndex=1}})}})(af.ui); (function(a){a.availableTransitions.pop=function(p,n,l){var g=this;l?(n.style.zIndex=1,p.style.zIndex=2,g.clearAnimations(n),g.css3animate(p,{x:"0%",time:a.transitionTime,opacity:0.1,scale:0.2,origin:"50% 50%",complete:function(a){a?g.finishTransition(p):(g.css3animate(p,{x:"-100%",complete:function(){g.finishTransition(p)}}),n.style.zIndex=2,p.style.zIndex=1)}})):(p.style.zIndex=1,n.style.zIndex=2,g.css3animate(n,{x:"0%",scale:0.2,origin:"50% 50%",opacity:0.1,time:"0ms",complete:function(){g.css3animate(n, {x:"0%",time:a.transitionTime,scale:1,opacity:1,origin:"0% 0%",complete:function(a){a?g.finishTransition(p,n):(g.clearAnimations(n),g.css3animate(p,{x:"100%",y:0,complete:function(){g.finishTransition(p)}}))}})}}))}})(af.ui); (function(a){function p(n,l,g){var k=this;g?k.css3animate(n,{x:"0%",y:"0%",complete:function(){k.css3animate(n,{x:"100%",time:a.transitionTime,complete:function(){k.finishTransition(n,l)}}).link(l,{x:"0%",time:a.transitionTime})}}).link(l,{x:"-100%",y:"0%"}):k.css3animate(n,{x:"0%",y:"0%",complete:function(){k.css3animate(n,{x:"-100%",time:a.transitionTime,complete:function(){k.finishTransition(n,l)}}).link(l,{x:"0%",time:a.transitionTime})}}).link(l,{x:"100%",y:"0%"})}a.availableTransitions.slide= p;a.availableTransitions["default"]=p})(af.ui);(function(a){a.availableTransitions.down=function(p,n,l){var g=this;l?(p.style.zIndex=2,n.style.zIndex=1,g.css3animate(p,{y:"0%",x:"0%",complete:function(){g.css3animate(p,{y:"-100%",time:a.transitionTime,complete:function(){g.finishTransition(p,n)}})}})):(p.style.zIndex=1,n.style.zIndex=2,g.css3animate(n,{y:"-100%",x:"0%",time:"10ms",complete:function(){g.css3animate(n,{y:"0%",time:a.transitionTime,complete:function(){g.finishTransition(p,n)}})}}))}})(af.ui); (function(a){a.availableTransitions.up=function(p,n,l){var g=this;l?(p.style.zIndex=2,n.style.zIndex=1,g.css3animate(p,{y:"0%",x:"0%",complete:function(){g.css3animate(p,{y:"100%",time:a.transitionTime,complete:function(){g.finishTransition(p,n)}})}})):(p.style.zIndex=1,n.style.zIndex=2,g.css3animate(n,{y:"100%",x:"0%",time:"10ms",complete:function(){g.css3animate(n,{y:"0%",time:a.transitionTime,complete:function(){g.finishTransition(p,n)}})}}))}})(af.ui); (function(a){function p(){a.ui.isWin8=!0;a.os.ie&&a.ui.isSideMenuEnabled()&&a.ui.ready(function(){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 n=a.query("#afui #navbar").find("a").not(".button");if(0\u2022\u2022\u2022")};a.ui.isSideMenuOn=function(){var g=0>parseInt(a.getCssMatrix(a("#navbar")).f,10)?!0:!1;return this.isSideMenuEnabled()&&g};a.ui.toggleRightSideMenu=function(g,h,b){if(this.isAsideMenuEnabled()&&!this.togglingAsideMenu){var f=this,c=a("#menu"),d=a.query("#aside_menu"),e=a.query("#content, #header, #navbar"), l=a.query(".afui_panel_mask");b=b||this.transitionTime;var n="block"===a("#aside_menu").css("display"),p="-"+f.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 t=this.getSideMenuPosition();n&&0