(function(f){var e={},g=f.fn.data,c=f.zepto.camelize,h=f.expando="zepto"+(+new date());function a(l,j){var m=l[h],i=m&&e[m];if(j===undefined){return i||b(l)}else{if(i){if(j in i){return i[j]}var k=c(j);if(k in i){return i[k]}}return g.call(f(l),j)}}function b(k,j,l){var m=k[h]||(k[h]=++f.uuid),i=e[m]||(e[m]=d(k));if(j!==undefined){i[c(j)]=l}return i}function d(j){var i={};f.each(j.attributes,function(l,k){if(k.name.indexof("data-")==0){i[c(k.name.replace("data-",""))]=k.value}});return i}f.fn.data=function(i,j){return j===undefined?f.isplainobject(i)?this.each(function(k,l){f.each(i,function(m,n){b(l,m,n)})}):this.length==0?undefined:a(this[0],i):this.each(function(){b(this,i,j)})};f.fn.removedata=function(i){if(typeof i=="string"){i=i.split(/\s+/)}return this.each(function(){var k=this[h],j=k&&e[k];if(j){f.each(i,function(){delete j[c(this)]})}})}})(zepto);(function(a){var b=/^(?:body|html)$/i;a.extend(a.fn,{offsetparent:function(){return a(a.map(this,function(d){var c=d.offsetparent||document.body;while(c&&!b.test(c.nodename)&&a(c).css("position")=="static"){c=c.offsetparent}return c}))},scrolltop:function(){if(!this.length){return}return("scrolltop" in this[0])?this[0].scrolltop:this[0].scrolly}});a.extend(a,{contains:function(c,d){return c.comparedocumentposition?!!(c.comparedocumentposition(d)&16):c!==d&&c.contains(d)}})})(zepto);(function(a){a.extend(a,{tostring:function(b){return object.prototype.tostring.call(b)},slice:function(c,b){return array.prototype.slice.call(c,b||0)},later:function(d,b,f,c,e){return window["set"+(f?"interval":"timeout")](function(){d.apply(c,e)},b||0)},parsetpl:function(e,d){var b="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/<%=([\s\s]+?)%>/g,function(f,g){return"',"+g.replace(/\\'/g,"'")+",'"}).replace(/<%([\s\s]+?)%>/g,function(f,g){return"');"+g.replace(/\\'/g,"'").replace(/[\r\n\t]/g," ")+"__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');";var c=new function("obj",b);return d?c(d):c},throttle:function(b,c,g){var e=0,d;if(typeof c!=="function"){g=c;c=b;b=250}function f(){var k=this,l=date.now()-e,j=arguments;function i(){e=date.now();c.apply(k,j)}function h(){d=undefined}if(g&&!d){i()}d&&cleartimeout(d);if(g===undefined&&l>b){i()}else{d=settimeout(g?h:i,g===undefined?b-l:b)}}f._zid=c._zid=c._zid||a.proxy(c)._zid;return f},debounce:function(b,d,c){return d===undefined?a.throttle(250,b,false):a.throttle(b,d,c===undefined?false:c!==false)}});a.each("string boolean regexp number date object null undefined".split(" "),function(c,b){var d="";switch(b){case"null":d="obj === null";break;case"undefined":d="obj === undefined";break;default:d="new regexp('"+b+"]', 'i').test(object.prototype.tostring.call(obj))"}a["is"+b]=new function("obj","return "+d)})})(zepto);(function(d,g){var c=navigator.useragent,a=navigator.appversion,b=d.browser;d.extend(d.browser,{qq:/qq/i.test(c),chrome:/chrome/i.test(c)||/crios/i.test(c),uc:/uc/i.test(c)||/uc/i.test(a)});d.browser.uc=d.browser.uc||!d.browser.qq&&!d.browser.chrome&&!/safari/i.test(c);try{d.browser.version=b.uc?a.match(/uc(?:browser)?\/([\d.]+)/)[1]:b.qq?c.match(/mqqbrowser\/([\d.]+)/)[1]:b.chrome?c.match(/(?:crios|chrome)\/([\d.]+)/)[1]:b.version}catch(f){}d.support=d.extend(d.support||{},{orientation:!(d.browser.uc||(parsefloat(d.os.version)<5&&(d.browser.qq||d.browser.chrome)))&&"orientation" in window&&"onorientationchange" in window,touch:"ontouchend" in document,csstransitions:"webkittransitionevent" in window,has3d:"webkitcssmatrix" in window&&"m11" in new webkitcssmatrix()})})(zepto);(function(b){b(document).ready(function(){var g="matchmedia" in window?function(){return window.matchmedia("(orientation: portrait)").matches?"portrait":"landscape"}:function(){var i=document.documentelement;return i.clientwidth/math.max(i.clientheight,320)<1.1?"portrait":"landscape"},e=g(),d=function(i){if(i.type=="orientationchange"){return b(window).trigger("ortchange")}f=20;clearinterval(h);h=b.later(function(){var j=g();if(e!==j){e=j;clearinterval(h);b(window).trigger("ortchange")}else{if(--f){clearinterval(h)}}},50,true)},h,f;b(window).bind(b.support.orientation?"orientationchange":"resize",b.debounce(d))});function a(){b(window).on("scroll",b.debounce(80,function(){b(document).trigger("scrollstop")},false))}function c(){b(window).off("scroll");a()}a();b(window).on("pageshow",function(d){if(d.persisted){b(document).off("touchstart",c).one("touchstart",c)}})})(zepto);