WebFontConfig = {
google: { families: [ 'Signika:400,600,300:latin' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
var timeSw = 450,
easingSw = 'easeInOutExpo';
function init(){
resizer('init');
$('.page ul li').each(function(nthCh){
$(".tday", $(this)).css({left:$(".page").outerWidth(true)*nthCh});
});
/*$(window).resize(function() {
$('.page ul li').each(function(nthCh){
$(".tday", $(this)).css({left:$(".page").outerWidth(true)*nthCh});
});
});*/
$('.page ul li:first-child').addClass('sel');
$('.page ul li .selector').css({left:0});
if($('#claim').length){
$('li .hday').bind('click', function(){
if($(this).parents('li').hasClass('d1') && $(this).siblings('.tday').css('left').replace('px','')==-$(".page").outerWidth(true)){
$(".tday").animate({left:'+='+$(".page").outerWidth(true)}, timeSw, easingSw);
$(".selector").animate({left:0}, timeSw, easingSw);
setTimeout(function(){$(".page li").removeClass('sel');$(".page li.d1").addClass('sel');}, timeSw/2);
} else if($(this).parents('li').hasClass('d1') && $(this).siblings('.tday').css('left').replace('px','')==-$(".page").outerWidth(true)*2){
$(".tday").animate({left:'+='+$(".page").outerWidth(true)*2}, timeSw, easingSw);
$(".selector").animate({left:0}, timeSw, easingSw);
setTimeout(function(){$(".page li").removeClass('sel');$(".page li.d1").addClass('sel');}, timeSw/2);
} else if($(this).parents('li').hasClass('d2') && $(this).siblings('.tday').css('left').replace('px','')==$(".page").outerWidth(true)){
$(".tday").animate({left:'-='+$(".page").outerWidth(true)}, timeSw, easingSw);
$(".selector").animate({left:$(".d1").outerWidth(true)}, timeSw, easingSw);
setTimeout(function(){$(".page li").removeClass('sel');$(".page li.d2").addClass('sel');}, timeSw/2);
} else if($(this).parents('li').hasClass('d2') && $(this).siblings('.tday').css('left').replace('px','')==-$(".page").outerWidth(true)){
$(".tday").animate({left:'+='+$(".page").outerWidth(true)}, timeSw, easingSw);
$(".selector").animate({left:$(".d1").outerWidth(true)}, timeSw, easingSw);
setTimeout(function(){$(".page li").removeClass('sel');$(".page li.d2").addClass('sel');}, timeSw/2);
} else if($(this).parents('li').hasClass('d3') && $(this).siblings('.tday').css('left').replace('px','')==$(".page").outerWidth(true)){
$(".tday").animate({left:'-='+$(".page").outerWidth(true)}, timeSw, easingSw);
$(".selector").animate({left:$(".d1").outerWidth(true)*2}, timeSw, easingSw);
setTimeout(function(){$(".page li").removeClass('sel');$(".page li.d3").addClass('sel');}, timeSw/2);
} else if($(this).parents('li').hasClass('d3') && $(this).siblings('.tday').css('left').replace('px','')==$(".page").outerWidth(true)*2){
$(".tday").animate({left:'-='+$(".page").outerWidth(true)*2}, timeSw, easingSw);
$(".selector").animate({left:$(".d1").outerWidth(true)*2}, timeSw, easingSw);
setTimeout(function(){$(".page li").removeClass('sel');$(".page li.d3").addClass('sel');}, timeSw/2);
}
});
} else {
$('.page ul li .selector').css({left:'50%'});
if($(".page li").length>2){
$(".page li:last-child").hide(0);
}
$('li .hday').bind('click', function(){
if($(this).parents('li').hasClass('d1') && !$(this).parents('li').hasClass('sel')){
$(".page li").removeClass('sel');
$(".page li.d1").addClass('sel');
$(".page li:first-child").show();
$( ".tday" ).each( function() {
$( this ).css({
left: ( $( this ).offset().left + $( ".page" ).outerWidth( true ) )
});
});
if($(".page li").length>2){
$(".page li:last-child").hide();
}
$(".page li.d2").removeClass('leftD');
}
else if($(this).parents('li').hasClass('d2') && !$(this).parents('li').hasClass('sel') && $('li.d1').hasClass('sel')){
$(".page li").removeClass('sel');
$(".page li.d2").addClass('sel');
$(".page li:first-child").show(0);
$(".page li:last-child").show(0);
$( ".tday" ).each( function() {
$( this ).css({
left: ( $( this ).offset().left - $( ".page" ).outerWidth( true ) )
});
});
$(".page li.d2").removeClass('leftD');
}
else if($(this).parents('li').hasClass('d2') && !$(this).parents('li').hasClass('sel') && $('li.d3').hasClass('sel')){
$(".page li").removeClass('sel');
$(".page li.d2").addClass('sel');
$(".page li:first-child").show(0);
$(".page li:last-child").show(0);
$( ".tday" ).each( function() {
$( this ).css({
left: ( $( this ).offset().left + $( ".page" ).outerWidth( true ) )
});
});
$(".page li.d2").removeClass('leftD');
}
else if($(this).parents('li').hasClass('d3') && !$(this).parents('li').hasClass('sel')){
$(".page li").removeClass('sel');
$(".page li.d3").addClass('sel');
$(".page li.d2").addClass('leftD');
if($(".page li").length>2){
$(".page li:last-child").show(0);
}
$( ".tday" ).each( function() {
$( this ).css({
left: ( $( this ).offset().left - $( ".page" ).outerWidth( true ) )
});
});
$(".page li:first-child").hide(0);
}
});
}
}
function swipeF(){
$(".tday").swipe({
swipe:function(event, direction, distance, duration, fingerCount) {
if($(this).parents('li').hasClass('d1') && direction=='left'){
$(".tday").animate({left:'-='+$(".page").outerWidth(true)}, timeSw, easingSw);
setTimeout(function(){$(".page li").removeClass('sel');$(".page li.d2").addClass('sel');}, 0);
setTimeout(function(){$(".page li:first-child").show(0);}, 0);
setTimeout(function(){$(".page li:last-child").show(0);}, 0);
$(".page li.d2").removeClass('leftD');
} else if($(this).parents('li').hasClass('d2') && direction=='left'){
$(".tday").animate({left:'-='+$(".page").outerWidth(true)}, timeSw, easingSw);
setTimeout(function(){$(".page li").removeClass('sel');$(".page li.d3").addClass('sel');}, 0);
setTimeout(function(){$(".page li:first-child").hide(0);}, 0);
$(".page li.d2").addClass('leftD');
} else if($(this).parents('li').hasClass('d2') && direction=='right'){
$(".tday").animate({left:'+='+$(".page").outerWidth(true)}, timeSw, easingSw);
setTimeout(function(){$(".page li").removeClass('sel');$(".page li.d1").addClass('sel');}, 0);
setTimeout(function(){$(".page li:last-child").hide(0);}, 0);
$(".page li.d2").removeClass('leftD');
} else if($(this).parents('li').hasClass('d3') && direction=='right'){
$(".tday").animate({left:'+='+$(".page").outerWidth(true)}, timeSw, easingSw);
setTimeout(function(){$(".page li").removeClass('sel');$(".page li.d2").addClass('sel');}, 0);
setTimeout(function(){$(".page li:first-child").show(0);}, 0);
setTimeout(function(){$(".page li:last-child").show(0);}, 0);
$(".page li.d2").removeClass('leftD');
}
},
threshold:0,
fingers:'all'
});
}
var mySlideSearch;
var myWHeight = 200;
function resizer(status){
scaleFactory = 1;
if(status == 'init'){
var countImg = 0;
$('#claim span > img').each(function() {
$(this).parent().css({position: 'absolute'});
if($(this).attr('width')*1 == 'NaN' || $(this).attr('width')*1 < 1) $(this).attr('width', $(this).width());
if($(this).attr('height')*1 == 'NaN' || $(this).attr('height')*1 < 1) $(this).attr('height', $(this).height());
});
$(window).resize(function() {
resizer();
});
}
var heightPage = 0;
var widthPage = 0;
heightPage = $('#claim').height();
widthPage = $('#claim').width();
$('#claim span > img').each(function() {
scale = widthPage/$(this).attr('width');
if($(this).attr('height')*scale < heightPage){
scale = heightPage/$(this).attr('height');
$(this).css({
position: 'absolute',
height: parseInt($(this).attr('height')*scale)+'px',
width: parseInt($(this).attr('width')*scale)+'px',
top: '-'+ parseInt((($(this).attr('height')*scale) - $('#claim').height())/2)+'px',
left: '-'+ parseInt((($(this).attr('width')*scale) - $('#claim').width())/2)+'px'
});
} else {
$(this).css({
position: 'absolute',
height: parseInt($(this).attr('height')*scale)+'px',
width: parseInt($(this).attr('width')*scale)+'px',
top: '-'+ parseInt((($(this).attr('height')*scale) - $('#claim').height())/2)+'px',
left: '-'+ parseInt((($(this).attr('width')*scale) - $('#claim').width())/2)+'px'
});
}
});
}
/*
* JS Redirection Mobile
* Copyright (c) 2011-2012 Sebastiano Armeli-Battana (http://www.sebastianoarmelibattana.com)
* By Sebastiano Armeli-Battana (@sebarmeli) - http://www.sebastianoarmelibattana.com
* Licensed under the MIT license.
* https://github.com/sebarmeli/JS-Redirection-Mobile-Site/blob/master/MIT-LICENSE.txt
* @link http://github.com/sebarmeli/JS-Redirection-Mobile-Site
* @author Sebastiano Armeli-Battana
* @date 29/10/2012
* @version 1.0.0
*/
if (!window.SA) {window.SA = {};}
SA.redirection_mobile = function(configuration) {
var addTimeToDate = function(msec) {
var exdate = new Date();
exdate.setTime(exdate.getTime() + msec);
return exdate;
};
var getQueryValue = function(param) {
if (!param) {return;}
var querystring = document.location.search,
queryStringArray = querystring && querystring.substring(1).split("&"),
i = 0,
length = queryStringArray.length;
for (; i < length; i++) {
var token = queryStringArray[i],
firstPart = token && token.substring(0, token.indexOf("="));
if (firstPart === param ) {
return token.substring(token.indexOf("=") + 1, token.length);
}
}
};
var agent = navigator.userAgent.toLowerCase(),
FALSE = "false",
TRUE = "true",
config = configuration || {},
redirection_param = config.redirection_param || "mobile_redirect",
mobile_prefix = config.mobile_prefix || "m",
mobile_url = config.mobile_url,
mobile_protocol = config.mobile_prefix,
host = document.location.host,
queryValue = getQueryValue(redirection_param),
mobile_host = mobile_url || (mobile_prefix + "." + (!!host.match(/^www\./i) ? host.substring(4) : host)),
cookie_hours = config.cookie_hours || 1,
keep_path = config.keep_path || false,
keep_query = config.keep_query || false,
append_referrer = config.append_referrer || false,
append_referrer_key = config.append_referrer_key || "original_referrer",
tablet_host = config.tablet_host || mobile_host,
isUAMobile = false,
isUATablet = false;
if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(agent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(agent.substr(0,4))) {
isUAMobile = true;
}
if (document.referrer.indexOf(mobile_host) >= 0 || queryValue === FALSE ) {
if (window.sessionStorage) {
window.sessionStorage.setItem(redirection_param, FALSE);
} else {
document.cookie = redirection_param + "=" + FALSE + ";expires="+addTimeToDate(3600*1000*cookie_hours).toUTCString();
}
}
var isSessionStorage = (window.sessionStorage) ? (window.sessionStorage.getItem(redirection_param) === FALSE) : false,
isCookieSet = document.cookie ? (document.cookie.indexOf(redirection_param) >= 0) : false;
if (!!(agent.match(/(iPad|SCH-I|xoom|NOOK|silk|kindle|GT-P|touchpad|kindle|sch-t|viewpad|bolt|playbook)/i))) {
isUATablet = (config.tablet_redirection === TRUE || !!config.tablet_host) ? true : false;
isUAMobile = false;
}
if ((isUATablet || isUAMobile) && !(isCookieSet || isSessionStorage)) {
if (config.beforeredirection_callback) {if (!config.beforeredirection_callback.call(this)) {return;}}
var path_query = "";
if(keep_path) { path_query += document.location.pathname;}
if (keep_query) {path_query += document.location.search;}
if (append_referrer && document.referrer) {
if (path_query.indexOf('?') === -1) {
path_query += "?";
} else {
path_query += "&";
}
path_query += append_referrer_key + "=" + encodeURIComponent(document.referrer);
}
if (isUATablet){
//document.location.href = mobile_protocol + "//" + tablet_host + path_query;
} else if (isUAMobile) {
document.location.href = mobile_protocol + path_query;
}
}
};
(function(e){var o="left",n="right",d="up",v="down",c="in",w="out",l="none",r="auto",k="swipe",s="pinch",x="tap",i="doubletap",b="longtap",A="horizontal",t="vertical",h="all",q=10,f="start",j="move",g="end",p="cancel",a="ontouchstart" in window,y="TouchSwipe";var m={fingers:1,threshold:75,cancelThreshold:25,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"button, input, select, textarea, a, .noSwipe"};e.fn.swipe=function(D){var C=e(this),B=C.data(y);if(B&&typeof D==="string"){if(B[D]){return B[D].apply(this,Array.prototype.slice.call(arguments,1))}else{e.error("Method "+D+" does not exist on jQuery.swipe")}}else{if(!B&&(typeof D==="object"||!D)){return u.apply(this,arguments)}}return C};e.fn.swipe.defaults=m;e.fn.swipe.phases={PHASE_START:f,PHASE_MOVE:j,PHASE_END:g,PHASE_CANCEL:p};e.fn.swipe.directions={LEFT:o,RIGHT:n,UP:d,DOWN:v,IN:c,OUT:w};e.fn.swipe.pageScroll={NONE:l,HORIZONTAL:A,VERTICAL:t,AUTO:r};e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:h};function u(B){if(B&&(B.allowPageScroll===undefined&&(B.swipe!==undefined||B.swipeStatus!==undefined))){B.allowPageScroll=l}if(B.click!==undefined&&B.tap===undefined){B.tap=B.click}if(!B){B={}}B=e.extend({},e.fn.swipe.defaults,B);return this.each(function(){var D=e(this);var C=D.data(y);if(!C){C=new z(this,B);D.data(y,C)}})}function z(a0,aq){var av=(a||!aq.fallbackToMouseEvents),G=av?"touchstart":"mousedown",au=av?"touchmove":"mousemove",R=av?"touchend":"mouseup",P=av?null:"mouseleave",az="touchcancel";var ac=0,aL=null,Y=0,aX=0,aV=0,D=1,am=0,aF=0,J=null;var aN=e(a0);var W="start";var T=0;var aM=null;var Q=0,aY=0,a1=0,aa=0,K=0;var aS=null;try{aN.bind(G,aJ);aN.bind(az,a5)}catch(ag){e.error("events not supported "+G+","+az+" on jQuery.swipe")}this.enable=function(){aN.bind(G,aJ);aN.bind(az,a5);return aN};this.disable=function(){aG();return aN};this.destroy=function(){aG();aN.data(y,null);return aN};this.option=function(a7,a6){if(aq[a7]!==undefined){if(a6===undefined){return aq[a7]}else{aq[a7]=a6}}else{e.error("Option "+a7+" does not exist on jQuery.swipe.options")}};function aJ(a8){if(ax()){return}if(e(a8.target).closest(aq.excludedElements,aN).length>0){return}var a9=a8.originalEvent?a8.originalEvent:a8;var a7,a6=a?a9.touches[0]:a9;W=f;if(a){T=a9.touches.length}else{a8.preventDefault()}ac=0;aL=null;aF=null;Y=0;aX=0;aV=0;D=1;am=0;aM=af();J=X();O();if(!a||(T===aq.fingers||aq.fingers===h)||aT()){ae(0,a6);Q=ao();if(T==2){ae(1,a9.touches[1]);aX=aV=ap(aM[0].start,aM[1].start)}if(aq.swipeStatus||aq.pinchStatus){a7=L(a9,W)}}else{a7=false}if(a7===false){W=p;L(a9,W);return a7}else{ak(true)}}function aZ(a9){var bc=a9.originalEvent?a9.originalEvent:a9;if(W===g||W===p||ai()){return}var a8,a7=a?bc.touches[0]:bc;var ba=aD(a7);aY=ao();if(a){T=bc.touches.length}W=j;if(T==2){if(aX==0){ae(1,bc.touches[1]);aX=aV=ap(aM[0].start,aM[1].start)}else{aD(bc.touches[1]);aV=ap(aM[0].end,aM[1].end);aF=an(aM[0].end,aM[1].end)}D=a3(aX,aV);am=Math.abs(aX-aV)}if((T===aq.fingers||aq.fingers===h)||!a||aT()){aL=aH(ba.start,ba.end);ah(a9,aL);ac=aO(ba.start,ba.end);Y=aI();aE(aL,ac);if(aq.swipeStatus||aq.pinchStatus){a8=L(bc,W)}if(!aq.triggerOnTouchEnd||aq.triggerOnTouchLeave){var a6=true;if(aq.triggerOnTouchLeave){var bb=aU(this);a6=B(ba.end,bb)}if(!aq.triggerOnTouchEnd&&a6){W=ay(j)}else{if(aq.triggerOnTouchLeave&&!a6){W=ay(g)}}if(W==p||W==g){L(bc,W)}}}else{W=p;L(bc,W)}if(a8===false){W=p;L(bc,W)}}function I(a6){var a7=a6.originalEvent;if(a){if(a7.touches.length>0){C();return true}}if(ai()){T=aa}a6.preventDefault();aY=ao();Y=aI();if(aq.triggerOnTouchEnd||(aq.triggerOnTouchEnd==false&&W===j)){W=g;L(a7,W)}else{if(!aq.triggerOnTouchEnd&&a2()){W=g;aB(a7,W,x)}else{if(W===j){W=p;L(a7,W)}}}ak(false)}function a5(){T=0;aY=0;Q=0;aX=0;aV=0;D=1;O();ak(false)}function H(a6){var a7=a6.originalEvent;if(aq.triggerOnTouchLeave){W=ay(g);L(a7,W)}}function aG(){aN.unbind(G,aJ);aN.unbind(az,a5);aN.unbind(au,aZ);aN.unbind(R,I);if(P){aN.unbind(P,H)}ak(false)}function ay(a9){var a8=a9;var a7=aw();var a6=aj();if(!a7){a8=p}else{if(a6&&a9==j&&(!aq.triggerOnTouchEnd||aq.triggerOnTouchLeave)){a8=g}else{if(!a6&&a9==g&&aq.triggerOnTouchLeave){a8=p}}}return a8}function L(a8,a6){var a7=undefined;if(F()){a7=aB(a8,a6,k)}else{if(M()&&a7!==false){a7=aB(a8,a6,s)}}if(aC()&&a7!==false){a7=aB(a8,a6,i)}else{if(al()&&a7!==false){a7=aB(a8,a6,b)}else{if(ad()&&a7!==false){a7=aB(a8,a6,x)}}}if(a6===p){a5(a8)}if(a6===g){if(a){if(a8.touches.length==0){a5(a8)}}else{a5(a8)}}return a7}function aB(a9,a6,a8){var a7=undefined;if(a8==k){aN.trigger("swipeStatus",[a6,aL||null,ac||0,Y||0,T]);if(aq.swipeStatus){a7=aq.swipeStatus.call(aN,a9,a6,aL||null,ac||0,Y||0,T);if(a7===false){return false}}if(a6==g&&aR()){aN.trigger("swipe",[aL,ac,Y,T]);if(aq.swipe){a7=aq.swipe.call(aN,a9,aL,ac,Y,T);if(a7===false){return false}}switch(aL){case o:aN.trigger("swipeLeft",[aL,ac,Y,T]);if(aq.swipeLeft){a7=aq.swipeLeft.call(aN,a9,aL,ac,Y,T)}break;case n:aN.trigger("swipeRight",[aL,ac,Y,T]);if(aq.swipeRight){a7=aq.swipeRight.call(aN,a9,aL,ac,Y,T)}break;case d:aN.trigger("swipeUp",[aL,ac,Y,T]);if(aq.swipeUp){a7=aq.swipeUp.call(aN,a9,aL,ac,Y,T)}break;case v:aN.trigger("swipeDown",[aL,ac,Y,T]);if(aq.swipeDown){a7=aq.swipeDown.call(aN,a9,aL,ac,Y,T)}break}}}if(a8==s){aN.trigger("pinchStatus",[a6,aF||null,am||0,Y||0,T,D]);if(aq.pinchStatus){a7=aq.pinchStatus.call(aN,a9,a6,aF||null,am||0,Y||0,T,D);if(a7===false){return false}}if(a6==g&&a4()){switch(aF){case c:aN.trigger("pinchIn",[aF||null,am||0,Y||0,T,D]);if(aq.pinchIn){a7=aq.pinchIn.call(aN,a9,aF||null,am||0,Y||0,T,D)}break;case w:aN.trigger("pinchOut",[aF||null,am||0,Y||0,T,D]);if(aq.pinchOut){a7=aq.pinchOut.call(aN,a9,aF||null,am||0,Y||0,T,D)}break}}}if(a8==x){if(a6===p||a6===g){clearTimeout(aS);if(V()&&!E()){K=ao();aS=setTimeout(e.proxy(function(){K=null;aN.trigger("tap",[a9.target]);if(aq.tap){a7=aq.tap.call(aN,a9,a9.target)}},this),aq.doubleTapThreshold)}else{K=null;aN.trigger("tap",[a9.target]);if(aq.tap){a7=aq.tap.call(aN,a9,a9.target)}}}}else{if(a8==i){if(a6===p||a6===g){clearTimeout(aS);K=null;aN.trigger("doubletap",[a9.target]);if(aq.doubleTap){a7=aq.doubleTap.call(aN,a9,a9.target)}}}else{if(a8==b){if(a6===p||a6===g){clearTimeout(aS);K=null;aN.trigger("longtap",[a9.target]);if(aq.longTap){a7=aq.longTap.call(aN,a9,a9.target)}}}}}return a7}function aj(){var a6=true;if(aq.threshold!==null){a6=ac>=aq.threshold}if(a6&&aq.cancelThreshold!==null){a6=(aP(aL)-ac)=aq.pinchThreshold}return true}function aw(){var a6;if(aq.maxTimeThreshold){if(Y>=aq.maxTimeThreshold){a6=false}else{a6=true}}else{a6=true}return a6}function ah(a6,a7){if(aq.allowPageScroll===l||aT()){a6.preventDefault()}else{var a8=aq.allowPageScroll===r;switch(a7){case o:if((aq.swipeLeft&&a8)||(!a8&&aq.allowPageScroll!=A)){a6.preventDefault()}break;case n:if((aq.swipeRight&&a8)||(!a8&&aq.allowPageScroll!=A)){a6.preventDefault()}break;case d:if((aq.swipeUp&&a8)||(!a8&&aq.allowPageScroll!=t)){a6.preventDefault()}break;case v:if((aq.swipeDown&&a8)||(!a8&&aq.allowPageScroll!=t)){a6.preventDefault()}break}}}function a4(){var a7=aK();var a6=U();var a8=ab();return a7&&a6&&a8}function aT(){return !!(aq.pinchStatus||aq.pinchIn||aq.pinchOut)}function M(){return !!(a4()&&aT())}function aR(){var a8=aw();var ba=aj();var a7=aK();var a6=U();var a9=a6&&a7&&ba&&a8;return a9}function S(){return !!(aq.swipe||aq.swipeStatus||aq.swipeLeft||aq.swipeRight||aq.swipeUp||aq.swipeDown)}function F(){return !!(aR()&&S())}function aK(){return((T===aq.fingers||aq.fingers===h)||!a)}function U(){return aM[0].end.x!==0}function a2(){return !!(aq.tap)}function V(){return !!(aq.doubleTap)}function aQ(){return !!(aq.longTap)}function N(){if(K==null){return false}var a6=ao();return(V()&&((a6-K)<=aq.doubleTapThreshold))}function E(){return N()}function at(){return((T===1||!a)&&(isNaN(ac)||ac===0))}function aW(){return((Y>aq.longTapThreshold)&&(ac=0)){return o}else{if((a8<=360)&&(a8>=315)){return o}else{if((a8>=135)&&(a8<=225)){return n}else{if((a8>45)&&(a8<135)){return v}else{return d}}}}}function ao(){var a6=new Date();return a6.getTime()}function aU(a6){a6=e(a6);var a8=a6.offset();var a7={left:a8.left,right:a8.left+a6.outerWidth(),top:a8.top,bottom:a8.top+a6.outerHeight()};return a7}function B(a6,a7){return(a6.x>a7.left&&a6.xa7.top&&a6.y