var zepto=function(){function c(b){return null==b?string(b):m[s.call(b)]||"object"}function g(b){return"function"==c(b)}function p(b){return null!=b&&b==b.window}function e(b){return null!=b&&b.nodetype==b.document_node}function r(b){return"object"==c(b)}function l(b){return r(b)&&!p(b)&&object.getprototypeof(b)==object.prototype}function h(b){return"number"==typeof b.length}function s(b){return a.call(b,function(b){return null!=b})}function v(b){return b.replace(/::/g,"/").replace(/([a-z]+)([a-z][a-z])/g, "$1_$2").replace(/([a-z\d])([a-z])/g,"$1_$2").replace(/_/g,"-").tolowercase()}function c(b){return b in g?g[b]:g[b]=regexp("(^|\\s)"+b+"(\\s|$)")}function k(b,a){return"number"!=typeof a||i[v(b)]?a:a+"px"}function w(b){return"children"in b?n.call(b.children):f.map(b.childnodes,function(b){if(1==b.nodetype)return b})}function z(b,a,d){for(x in a)d&&(l(a[x])||h(a[x]))?(l(a[x])&&!l(b[x])&&(b[x]={}),h(a[x])&&!h(b[x])&&(b[x]=[]),z(b[x],a[x],d)):a[x]!==q&&(b[x]=a[x])}function a(b,a){return null==a?f(b): f(b).filter(a)}function m(b,a,d,c){return g(a)?a.call(b,d,c):a}function y(b,a){var d=b.classname,c=d&&d.baseval!==q;if(a===q)return c?d.baseval:d;c?d.baseval=a:b.classname=a}function t(b){var a;try{return b?"true"==b||("false"==b?!1:"null"==b?null:/^0/.test(b)||isnan(a=number(b))?/^[\[\{]/.test(b)?f.parsejson(b):b:a):b}catch(d){return b}}function d(b,a){a(b);for(var d in b.childnodes)d(b.childnodes[d],a)}var q,x,f,f,e=[],n=e.slice,a=e.filter,d=window.document,u={},g={},i={"column-count":1,columns:1, "font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},j=/^\s*<(\w+|!)[^>]*>/,t=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,u=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,o=/^(?:body|html)$/i,v=/([a-z])/g,w="val css html text data width height offset".split(" "),n=d.createelement("table"),p=d.createelement("tr"),q={tr:d.createelement("tbody"),tbody:n,thead:n,tfoot:n,td:p,th:p,"*":d.createelement("div")},x=/complete|loaded|interactive/,y=/^[\w-]*$/,m={},s=m.tostring,b={},k,l,r= d.createelement("div"),z={tabindex:"tabindex",readonly:"readonly","for":"htmlfor","class":"classname",maxlength:"maxlength",cellspacing:"cellspacing",cellpadding:"cellpadding",rowspan:"rowspan",colspan:"colspan",usemap:"usemap",frameborder:"frameborder",contenteditable:"contenteditable"},h=array.isarray||function(b){return b instanceof array};b.matches=function(b,a){if(!a||!b||1!==b.nodetype)return!1;var d=b.webkitmatchesselector||b.mozmatchesselector||b.omatchesselector||b.matchesselector;if(d)return d.call(b, a);var c;c=b.parentnode;(d=!c)&&(c=r).appendchild(b);c=~b.qsa(c,a).indexof(b);d&&r.removechild(b);return c};k=function(b){return b.replace(/-+(.)?/g,function(b,a){return a?a.touppercase():""})};l=function(b){return a.call(b,function(a,d){return b.indexof(a)==d})};b.fragment=function(b,a,c){var e,u,k;t.test(b)&&(e=f(d.createelement(regexp.$1)));e||(b.replace&&(b=b.replace(u,"<$1>")),a===q&&(a=j.test(b)&®exp.$1),a in q||(a="*"),k=q[a],k.innerhtml=""+b,e=f.each(n.call(k.childnodes),function(){k.removechild(this)})); l(c)&&(u=f(e),f.each(c,function(b,a){if(-1 d.indexof(b)&&a.push(b)})}return f(a)},has:function(b){return this.filter(function(){return r(b)?f.contains(this,b):f(this).find(b).size()})},eq:function(b){return-1===b?this.slice(b):this.slice(b,+b+1)},first:function(){var b=this[0];return b&&!r(b)?b:f(b)},last:function(){var b=this[this.length-1];return b&&!r(b)?b:f(b)},find:function(b){var a=this;return"object"==typeof b?f(b).filter(function(){var b=this;return e.some.call(a,function(a){return f.contains(a,b)})}):1==this.length?f(b.qsa(this[0], b)):this.map(function(){return b.qsa(this,b)})},closest:function(b,a){var d=this[0],c=!1;for("object"==typeof b&&(c=f(b));d&&!(c?0<=c.indexof(d):b.matches(d,b));)d=d!==a&&!e(d)&&d.parentnode;return f(d)},parents:function(b){for(var a=[],d=this;0a.indexof(b))return a.push(b),b});return a(a,b)},parent:function(b){return a(l(this.pluck("parentnode")),b)},children:function(b){return a(this.map(function(){return w(this)}),b)},contents:function(){return this.map(function(){return n.call(this.childnodes)})}, siblings:function(b){return a(this.map(function(b,d){return a.call(w(d.parentnode),function(b){return b!==d})}),b)},empty:function(){return this.each(function(){this.innerhtml=""})},pluck:function(b){return f.map(this,function(a){return a[b]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display="");if("none"==getcomputedstyle(this,"").getpropertyvalue("display")){var b=this.style,a=this.nodename,c,n;u[a]||(c=d.createelement(a),d.body.appendchild(c),n=getcomputedstyle(c, "").getpropertyvalue("display"),c.parentnode.removechild(c),"none"==n&&(n="block"),u[a]=n);b.display=u[a]}})},replacewith:function(b){return this.before(b).remove()},wrap:function(b){var a=g(b);if(this[0]&&!a)var d=f(b).get(0),c=d.parentnode||1arguments.length){var d=this[0],n=getcomputedstyle(d,"");if(!d)return;if("string"==typeof b)return d.style[k(b)]||n.getpropertyvalue(b);if(h(b)){var e={};f.each(h(b)?b:[b],function(b,a){e[a]=d.style[k(a)]||n.getpropertyvalue(a)}); return e}}var u="";if("string"==c(b))a||0===a?u=v(b)+":"+k(b,a):this.each(function(){this.style.removeproperty(v(b))});else for(x in b)b[x]||0===b[x]?u+=v(x)+":"+k(x,b[x])+";":this.each(function(){this.style.removeproperty(v(x))});return this.each(function(){this.style.csstext+=";"+u})},index:function(b){return b?this.indexof(f(b)[0]):this.parent().children().indexof(this[0])},hasclass:function(b){return b?e.some.call(this,function(b){return this.test(y(b))},c(b)):!1},addclass:function(b){return b? this.each(function(a){f=[];var d=y(this);m(this,b,a,d).split(/\s+/g).foreach(function(b){f(this).hasclass(b)||f.push(b)},this);f.length&&y(this,d+(d?" ":"")+f.join(" "))}):this},removeclass:function(b){return this.each(function(a){if(b===q)return y(this,"");f=y(this);m(this,b,a,f).split(/\s+/g).foreach(function(b){f=f.replace(c(b)," ")});y(this,f.trim())})},toggleclass:function(b,a){return b?this.each(function(d){var c=f(this);m(this,b,d,y(this)).split(/\s+/g).foreach(function(b){(a===q?!c.hasclass(b): a)?c.addclass(b):c.removeclass(b)})}):this},scrolltop:function(b){if(this.length){var a="scrolltop"in this[0];return b===q?a?this[0].scrolltop:this[0].pageyoffset:this.each(a?function(){this.scrolltop=b}:function(){this.scrollto(this.scrollx,b)})}},scrollleft:function(b){if(this.length){var a="scrollleft"in this[0];return b===q?a?this[0].scrollleft:this[0].pagexoffset:this.each(a?function(){this.scrollleft=b}:function(){this.scrollto(b,this.scrolly)})}},position:function(){if(this.length){var b=this[0], a=this.offsetparent(),d=this.offset(),c=o.test(a[0].nodename)?{top:0,left:0}:a.offset();d.top-=parsefloat(f(b).css("margin-top"))||0;d.left-=parsefloat(f(b).css("margin-left"))||0;c.top+=parsefloat(f(a[0]).css("border-top-width"))||0;c.left+=parsefloat(f(a[0]).css("border-left-width"))||0;return{top:d.top-c.top,left:d.left-c.left}}},offsetparent:function(){return this.map(function(){for(var b=this.offsetparent||d.body;b&&!o.test(b.nodename)&&"static"==f(b).css("position");)b=b.offsetparent;return b})}}; f.fn.detach=f.fn.remove;["width","height"].foreach(function(b){var a=b.replace(/./,function(b){return b[0].touppercase()});f.fn[b]=function(d){var c,n=this[0];return d===q?p(n)?n["inner"+a]:e(n)?n.documentelement["scroll"+a]:(c=this.offset())&&c[b]:this.each(function(a){n=f(this);n.css(b,m(this,d,a,n[b]()))})}});["after","prepend","before","append"].foreach(function(b,a){var d=a%2;f.fn[b]=function(){var b,n=f.map(arguments,function(a){b=c(a);return"object"==b||"array"==b||null==a?a:b.fragment(a)}), e,u=1n.length?this:this.each(function(b,c){e=d?c:c.parentnode;c=0==a?c.nextsibling:1==a?c.firstchild:2==a?c:null;n.foreach(function(b){if(u)b=b.clonenode(!0);else if(!e)return f(b).remove();d(e.insertbefore(b,c),function(b){null==b.nodename||"script"!==b.nodename.touppercase()||b.type&&"text/javascript"!==b.type||b.src||window.eval.call(window,b.innerhtml)})})})};f.fn[d?b+"to":"insert"+(a?"before":"after")]=function(a){f(a)[b](this);return this}});b.z.prototype=f.fn;b.uniq=l; b.deserializevalue=t;f.zepto=b;return f}();window.zepto=zepto;void 0===window.$&&(window.$=zepto); (function(c){function g(c){return c._zid||(c._zid=c++)}function p(c,a,d,f){a=e(a);if(a.ns)var k=regexp("(?:^| )"+a.ns.replace(" "," .* ?")+"(?: |$)");return(m[g(c)]||[]).filter(function(c){return c&&(!a.e||c.e==a.e)&&(!a.ns||k.test(c.ns))&&(!d||g(c.fn)===g(d))&&(!f||c.sel==f)})}function e(c){c=(""+c).split(".");return{e:c[0],ns:c.slice(1).sort().join(" ")}}function r(c){return q[c]||t&&d[c]||c}function l(n,a,d,f,l,h,p){var v=g(n),z=m[v]||(m[v]=[]);a.split(/\s/).foreach(function(a){if("ready"==a)return c(document).ready(d); var g=e(a);g.fn=d;g.sel=l;g.e in q&&(d=function(a){var d=a.relatedtarget;if(!d||d!==this&&!c.contains(this,d))return g.fn.apply(this,arguments)});var v=(g.del=h)||d;g.proxy=function(a){a=s(a);if(!a.isimmediatepropagationstopped()){a.data=f;var d=v.apply(n,a._args==k?[a]:[a].concat(a._args));!1===d&&(a.preventdefault(),a.stoppropagation());return d}};g.i=z.length;z.push(g);"addeventlistener"in n&&n.addeventlistener(r(g.e),g.proxy,g.del&&!t&&g.e in d||!!p)})}function h(c,a,d,e,f){var k=g(c);(a||"").split(/\s/).foreach(function(a){p(c, a,d,e).foreach(function(a){delete m[k][a.i];"removeeventlistener"in c&&c.removeeventlistener(r(a.e),a.proxy,a.del&&!t&&a.e in d||!!f)})})}function s(n,a){if(a||!n.isdefaultprevented)if(a||(a=n),c.each(e,function(d,c){var e=a[d];n[d]=function(){this[c]=x;return e&&e.apply(a,arguments)};n[c]=f}),a.defaultprevented!==k?a.defaultprevented:"returnvalue"in a?!1===a.returnvalue:a.getpreventdefault&&a.getpreventdefault())n.isdefaultprevented=x;return n}function v(c){var a,d={originalevent:c};for(a in c)f.test(a)|| c[a]===k||(d[a]=c[a]);return s(d,c)}var c=1,k,w=array.prototype.slice,z=c.isfunction,a=function(c){return"string"==typeof c},m={},y={},t="onfocusin"in window,d={focus:"focusin",blur:"focusout"},q={mouseenter:"mouseover",mouseleave:"mouseout"};y.click=y.mousedown=y.mouseup=y.mousemove="mouseevents";c.event={add:l,remove:h};c.proxy=function(n,a){if(z(n)){var d=function(){return n.apply(a,arguments)};d._zid=g(n);return d}if(a(a))return c.proxy(n[a],n);throw new typeerror("expected function");};c.fn.bind= function(c,a,d){return this.on(c,a,d)};c.fn.unbind=function(c,a){return this.off(c,a)};c.fn.one=function(c,a,d,e){return this.on(c,a,d,e,1)};var x=function(){return!0},f=function(){return!1},f=/^([a-z]|returnvalue$|layer[xy]$)/,e={preventdefault:"isdefaultprevented",stopimmediatepropagation:"isimmediatepropagationstopped",stoppropagation:"ispropagationstopped"};c.fn.delegate=function(c,a,d){return this.on(a,c,d)};c.fn.undelegate=function(c,a,d){return this.off(a,c,d)};c.fn.live=function(e,a){c(document.body).delegate(this.selector, e,a);return this};c.fn.die=function(e,a){c(document.body).undelegate(this.selector,e,a);return this};c.fn.on=function(e,a,d,u,q){var g,p,m=this;if(e&&!a(e))return c.each(e,function(c,e){m.on(c,a,d,e,q)}),m;a(a)||z(u)||!1===u||(u=d,d=a,a=k);if(z(d)||!1===d)u=d,d=k;!1===u&&(u=f);return m.each(function(f,k){q&&(g=function(a){h(k,a.type,u);return u.apply(this,arguments)});a&&(p=function(d){var e,f=c(d.target).closest(a,k).get(0);if(f&&f!==k)return e=c.extend(v(d),{currenttarget:f,livefired:k}),(g||u).apply(f, [e].concat(w.call(arguments,1)))});l(k,e,u,d,a,p||g)})};c.fn.off=function(e,a,d){var u=this;if(e&&!a(e))return c.each(e,function(d,c){u.off(d,a,c)}),u;a(a)||z(d)||!1===d||(d=a,a=k);!1===d&&(d=f);return u.each(function(){h(this,e,d,a)})};c.fn.trigger=function(e,a){e=a(e)||c.isplainobject(e)?c.event(e):s(e);e._args=a;return this.each(function(){"dispatchevent"in this?this.dispatchevent(e):c(this).triggerhandler(e,a)})};c.fn.triggerhandler=function(e,a){var d,f;this.each(function(k,q){d=v(a(e)?c.event(e): e);d._args=a;d.target=q;c.each(p(q,e.type||e),function(a,c){f=c.proxy(d);if(d.isimmediatepropagationstopped())return!1})});return f};"focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").foreach(function(e){c.fn[e]=function(a){return a?this.bind(e,a):this.trigger(e)}});["focus","blur"].foreach(function(e){c.fn[e]=function(a){a?this.bind(e,a):this.each(function(){try{this[e]()}catch(a){}}); return this}});c.event=function(c,a){a(c)||(a=c,c=a.type);var d=document.createevent(y[c]||"events"),e=!0;if(a)for(var f in a)"bubbles"==f?e=!!a[f]:d[f]=a[f];d.initevent(c,e,!0);return s(d)}})(zepto); (function(c){function g(a,d,e,f){if(a.global)return a=d||m,e=c.event(e),c(a).trigger(e,f),!e.isdefaultprevented()}function p(a){a.global&&0===c.active++&&g(a,null,"ajaxstart")}function e(a,d){var c=d.context;if(!1===d.beforesend.call(c,a,d)||!1===g(d,c,"ajaxbeforesend",[a,d]))return!1;g(d,c,"ajaxsend",[a,d])}function r(a,d,c,e){var f=c.context;c.success.call(f,a,"success",d);e&&e.resolvewith(f,[a,"success",d]);g(c,f,"ajaxsuccess",[d,c,a]);h("success",d,c)}function l(a,d,c,e,f){var k=e.context;e.error.call(k, c,d,a);f&&f.rejectwith(k,[c,d,a]);g(e,k,"ajaxerror",[c,e,a||d]);h(d,c,e)}function h(a,d,e){var f=e.context;e.complete.call(f,d,a);g(e,f,"ajaxcomplete",[d,e]);e.global&&!--c.active&&g(e,null,"ajaxstop")}function s(){}function v(a){a&&(a=a.split(";",2)[0]);return a&&(a==f?"html":a==f?"json":q.test(a)?"script":x.test(a)&&"xml")||"text"}function c(a,d){return""==d?a:(a+"&"+d).replace(/[&?]{1,2}/,"?")}function k(a){a.processdata&&a.data&&"string"!=c.type(a.data)&&(a.data=c.param(a.data,a.traditional)); !a.data||a.type&&"get"!=a.type.touppercase()||(a.url=c(a.url,a.data),a.data=void 0)}function w(a,d,e,f){c.isfunction(d)&&(f=e,e=d,d=void 0);c.isfunction(e)||(f=e,e=void 0);return{url:a,data:d,success:e,datatype:f}}function z(a,d,e,f){var k,q=c.isarray(d),g=c.isplainobject(d);c.each(d,function(d,l){k=c.type(l);f&&(d=e?f:f+"["+(g||"object"==k||"array"==k?d:"")+"]");!f&&q?a.add(l.name,l.value):"array"==k||!e&&"object"==k?z(a,l,e,d):a.add(d,l)})}var a=0,m=window.document,y,t,d=/)<[^<]*)*<\/script>/gi, q=/^(?:text|application)\/javascript/i,x=/^(?:text|application)\/xml/i,f="application/json",f="text/html",e=/^\s*$/;c.active=0;c.ajaxjsonp=function(a,d){if(!("type"in a))return c.ajax(a);var f=a.jsonpcallback,k=(c.isfunction(f)?f():f)||"jsonp"+ ++a,q=m.createelement("script"),g=window[k],h,p=function(a){c(q).triggerhandler("error",a||"abort")},n={abort:p},v;d&&d.promise(n);c(q).on("load error",function(e,f){cleartimeout(v);c(q).off().remove();"error"!=e.type&&h?r(h[0],n,a,d):l(null,f||"error",n,a, d);window[k]=g;h&&c.isfunction(g)&&g(h[0]);g=h=void 0});if(!1===e(n,a))return p("abort"),n;window[k]=function(){h=arguments};q.src=a.url.replace(/\?(.+)=\?/,"?$1="+k);m.head.appendchild(q);0m.status||304==m.status||0==m.status&&"file:"==n){q=q||v(d.mimetype||m.getresponseheader("content-type"));a=m.responsetext;try{"script"==q?(0,eval)(a):"xml"==q?a=m.responsexml:"json"==q&&(a=e.test(a)?null:c.parsejson(a))}catch(k){e=k}e?l(e,"parsererror", m,d,f):r(a,m,d,f)}else l(m.statustext||null,m.status?"error":"abort",m,d,f)}};if(!1===e(m,d))return m.abort(),l(null,"abort",m,d,f),m;if(d.xhrfields)for(t in d.xhrfields)m[t]=d.xhrfields[t];m.open(d.type,d.url,"async"in d?d.async:!0,d.username,d.password);for(t in g)z.apply(m,g[t]);0").html(a.replace(d,"")).find(q):a);m&&m.apply(f,arguments)};c.ajax(a);return this};var n=encodeuricomponent;c.param=function(a,d){var c=[];c.add=function(a,d){a&&d&&this.push(n(a)+ "="+n(d))};z(c,a,d);return c.join("&").replace(/%20/g,"+")}})(zepto); (function(c){c.fn.serializearray=function(){var g=[],p;c([].slice.call(this.get(0).elements)).each(function(){p=c(this);var e=p.attr("type");"fieldset"!=this.nodename.tolowercase()&&!this.disabled&&this.name&&this.value&&"submit"!=e&&"reset"!=e&&"button"!=e&&("radio"!=e&&"checkbox"!=e||this.checked)&&g.push({name:p.attr("name"),value:p.val()})});return g};c.fn.serialize=function(){var c=[];this.serializearray().foreach(function(p){c.push(encodeuricomponent(p.name)+"="+encodeuricomponent(p.value))}); return c.join("&")};c.fn.submit=function(g){g?this.bind("submit",g):this.length&&(g=c.event("submit"),this.eq(0).trigger(g),g.isdefaultprevented()||this.get(0).submit());return this}})(zepto);(function(c){"__proto__"in{}||c.extend(c.zepto,{z:function(e,g){e=e||[];c.extend(e,c.fn);e.selector=g||"";e.__z=!0;return e},isz:function(e){return"array"===c.type(e)&&"__z"in e}});try{getcomputedstyle(void 0)}catch(g){var p=getcomputedstyle;window.getcomputedstyle=function(c){try{return p(c)}catch(g){return null}}}})(zepto); (function(c){function g(c){var e=this.os={},g=this.browser={},l=c.match(/web[kk]it[\/]{0,1}([\d.]+)/),h=c.match(/(android);?[\s\/]+([\d.]+)?/),s=!!c.match(/\(macintosh\; intel /),v=c.match(/(ipad).*os\s([\d_]+)/),c=c.match(/(ipod)(.*os\s([\d_]+))?/),k=!v&&c.match(/(iphone\sos)\s([\d_]+)/),w=c.match(/(webos|hpwos)[\s\/]([\d.]+)/),z=c.match(/windows phone ([\d.]+)/),a=w&&c.match(/touchpad/),m=c.match(/kindle\/([\d.]+)/),y=c.match(/silk\/([\d._]+)/),t=c.match(/(blackberry).*version\/([\d.]+)/),d=c.match(/(bb10).*version\/([\d.]+)/), q=c.match(/(rim\stablet\sos)\s([\d.]+)/),x=c.match(/playbook/),f=c.match(/chrome\/([\d.]+)/)||c.match(/crios\/([\d.]+)/),f=c.match(/firefox\/([\d.]+)/),e=c.match(/msie\s([\d.]+)/)||c.match(/trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),n=!f&&c.match(/(iphone|ipod|ipad).*applewebkit(?!.*safari)/),a=n||c.match(/version\/([\d.]+)([^s](safari)|[^m]*(mobile)[^s]*(safari))/);if(g.webkit=!!l)g.version=l[1];h&&(e.android=!0,e.version=h[2]);k&&!c&&(e.ios=e.iphone=!0,e.version=k[2].replace(/_/g,"."));v&&(e.ios=e.ipad= !0,e.version=v[2].replace(/_/g,"."));c&&(e.ios=e.ipod=!0,e.version=c[3]?c[3].replace(/_/g,"."):null);z&&(e.wp=!0,e.version=z[1]);w&&(e.webos=!0,e.version=w[2]);a&&(e.touchpad=!0);t&&(e.blackberry=!0,e.version=t[2]);d&&(e.bb10=!0,e.version=d[2]);q&&(e.rimtabletos=!0,e.version=q[2]);x&&(g.playbook=!0);m&&(e.kindle=!0,e.version=m[1]);y&&(g.silk=!0,g.version=y[1]);!y&&e.android&&c.match(/kindle fire/)&&(g.silk=!0);f&&(g.chrome=!0,g.version=f[1]);f&&(g.firefox=!0,g.version=f[1]);e&&(g.ie=!0,g.version= e[1]);a&&(s||e.ios)&&(g.safari=!0,s&&(g.version=a[1]));n&&(g.webview=!0);e.tablet=!!(v||x||h&&!c.match(/mobile/)||f&&c.match(/tablet/)||e&&!c.match(/phone/)&&c.match(/touch/));e.phone=!(e.tablet||e.ipod||!(h||k||w||t||d||f&&c.match(/android/)||f&&c.match(/crios\/([\d.]+)/)||f&&c.match(/mobile/)||e&&c.match(/touch/)))}g.call(c,navigator.useragent);c.__detect=g})(zepto); (function(c,g){function p(c){return r?r+c:c.tolowercase()}var e="",r,l=window.document.createelement("div"),h=/^((translate|rotate|scale)(x|y|z|3d)?|matrix(3d)?|perspective|skew(x|y)?)$/i,s,v,c,k,w,z,a,m,y,t={};c.each({webkit:"webkit",moz:"",o:"o"},function(c,k){if(l.style[c+"transitionproperty"]!==g)return e="-"+c.tolowercase()+"-",r=k,!1});s=e+"transform";t[v=e+"transition-property"]=t[c=e+"transition-duration"]=t[w=e+"transition-delay"]=t[k=e+"transition-timing-function"]=t[z=e+"animation-name"]= t[a=e+"animation-duration"]=t[y=e+"animation-delay"]=t[m=e+"animation-timing-function"]="";c.fx={off:r===g&&l.style.transitionproperty===g,speeds:{_default:400,fast:200,slow:600},cssprefix:e,transitionend:p("transitionend"),animationend:p("animationend")};c.fn.animate=function(e,k,m,f,h){c.isfunction(k)&&(f=k,k=m=g);c.isfunction(m)&&(f=m,m=g);c.isplainobject(k)&&(m=k.easing,f=k.complete,h=k.delay,k=k.duration);k&&(k=("number"==typeof k?k:c.fx.speeds[k]||c.fx.speeds._default)/1e3);h&&(h=parsefloat(h)/ 1e3);return this.anim(e,k,m,f,h)};c.fn.anim=function(e,q,l,f,p){var r,n={},a,d="",u=this,g,i=c.fx.transitionend,j=!1;q===g&&(q=c.fx.speeds._default/1e3);p===g&&(p=0);c.fx.off&&(q=0);if("string"==typeof e)n[z]=e,n[a]=q+"s",n[y]=p+"s",n[m]=l||"linear",i=c.fx.animationend;else{a=[];for(r in e)h.test(r)?d+=r+"("+e[r]+") ":(n[r]=e[r],a.push(r.replace(/([a-z])([a-z])/,"$1-$2").tolowercase()));d&&(n[s]=d,a.push(s));0=q&&settimeout(function(){u.each(function(){g.call(this)})},0);return this};l=null})(zepto); (function(c){function g(e){e=c(e);return!(!e.width()&&!e.height())&&"none"!==e.css("display")}function p(c,e){c=c.replace(/=#\]/g,'="#"]');var g,l,m=s.exec(c);m&&m[2]in h&&(g=h[m[2]],l=m[3],c=m[1],l&&(m=number(l),l=isnan(m)?l.replace(/^["']|["']$/g,""):m));return e(c,g,l)}var e=c.zepto,r=e.qsa,l=e.matches,h=c.expr[":"]={visible:function(){if(g(this))return this},hidden:function(){if(!g(this))return this},selected:function(){if(this.selected)return this},checked:function(){if(this.checked)return this}, parent:function(){return this.parentnode},first:function(c){if(0===c)return this},last:function(c,e){if(c===e.length-1)return this},eq:function(c,e,g){if(c===g)return this},contains:function(e,g,h){if(-1/,c="zepto"+ +new date;e.qsa=function(k,g){return p(g,function(h,l,m){try{var p;!h&&l?h="*":v.test(h)&&(p=c(k).addclass(c),h="."+c+" "+h);var s=r(k,h)}catch(d){throw console.error("error performing selector: %o", g),d;}finally{p&&p.removeclass(c)}return l?e.uniq(c.map(s,function(c,e){return l.call(c,e,s,m)})):s})};e.matches=function(c,e){return p(e,function(e,g,h){return(!e||l(c,e))&&(!g||g.call(c,null,h)===c)})}})(zepto);(function(c){c.extend(c.fn,{cookie:function(g,p,e){var r,l;if(1=math.abs(g-h)?0c.velocityx?"left":1c.velocityy?"up":null)h.el.trigger("swipe"),h.el.trigger("swipe"+c)}).on("touchstart mspointerdown pointerdown",function(e){if(!(d=l(e,"down"))||r(e))t=d?e:e.touches[0],e.touches&&1===e.touches.length&&h.x2&&(h.x2=void 0,h.y2=void 0),z=date.now(),a=z-(h.last||z),h.el=c("tagname"in t.target?t.target:t.target.parentnode), s&&cleartimeout(s),h.x1=t.pagex,h.y1=t.pagey,0=a&&(h.isdoubletap=!0),h.last=z,k=settimeout(p,750),w&&d&&w.addpointer(e.pointerid)}).on("touchmove mspointermove pointermove",function(c){if(!(d=l(c,"move"))||r(c))t=d?c:c.touches[0],k&&cleartimeout(k),k=null,h.x2=t.pagex,h.y2=t.pagey,h.x2&&10m&&30>y?v=settimeout(function(){var g=c.event("tap");g.canceltouch=e;h.el.trigger(g);h.isdoubletap?(h.el&&h.el.trigger("doubletap"),h={}):s=settimeout(function(){s=null;h.el&&h.el.trigger("singletap");h={}},250)},0):h={}),m=y=0}).on("touchcancel mspointercancel pointercancel",e);c(window).on("scroll", e)});"swipe swipeleft swiperight swipeup swipedown doubletap tap singletap longtap".split(" ").foreach(function(e){c.fn[e]=function(c){return this.on(e,c)}})})(zepto);var dialog=function(c,g){var p=$(window).width(),e=$(window).height(),r=$(document.body).height(),l=this;this.options={url:c,type:"window",method:"get",data:"",height:"auto",title:" "};this.dialogele=$('
');this.contentele=$('
');this.close=function(){/http/.test(l.options.url)||1!=$(l.options.url)[0].nodetype||$(l.options.url).appendto(l.hide);l.dialogele.remove();l.mask.hide()};this.style=function(){var c=window.scrolly,g=(e-l.dialogele.height())/ 2,g=20>g?20:g+c;"auto"!=l.options.height&&l.contentele.css({height:l.options.height,"overflow-y":"auto"});l.dialogele.css({width:p-60,position:"absolute",left:30,top:g,"z-index":65535})};var h=function(c){$.ajax({url:c,data:l.options.data,type:l.options.method,success:function(c){l.contentele.html(c);l.style()}})};g&&(l.options=$.extend({},l.options,g));/http/.test(l.options.url)||1!=$(l.options.url)[0].nodetype?h(l.options.url):($(l.options.url).eq(0).css("display","block"),$(l.options.url).appendto(l.contentele)); (function(){if(0<$("#j_mask").length)l.mask=$("#j_mask"),l.hide=$("#j_dialog_hide"),l.mask.show();else{l.mask=$('
');l.hide=$('');var c=math.max(e,r);l.mask.css({width:p,height:c});l.mask.appendto($(document.body));l.hide.appendto($(document.body))}"window"==l.options.type&&(l.headele=$('

'),l.closeele=$('x').on("touchend",function(c){c.preventdefault()}).on("tap", function(){l.close()}).appendto(l.headele),l.headele.find("h3").html(l.options.title),l.headele.appendto(l.dialogele));l.dialogele.data("close",l.close);l.contentele.appendto(l.dialogele);l.dialogele.appendto($("body"));l.style()})()}; function countdown(c,g){function p(c,g,l){var r="",k=!1,w=0,z=0,a=0,m=0,w=math.round(+new date/1e3),m=g-w;if(0>=m)"function"===typeof l&&l();else return e||(0