text: /** 
    * Zenith Slider jQuery Plugin
    * Author: Aleksej Vukomanovic
    * Website: http://themeflection.com
    * Version: 1.0
    * Version from: 11.07.2015
    * Licence: MIT 
    */
  !function(i){"use strict";i.fn.zenith=function(t){function a(){var i,t=document.createElement("fakeelement"),a={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(i in a)if(void 0!==t.style[i])return a[i]}var n=i.extend({layout:"mobile-slider",direction:"horizontal",animation:"Slide",background:"",activeIndex:0,circleColor:"cornsilkblue",iconColor:"#fffff0",activeColor:"crimson",autoplay:!0,autoplayStop:!1,autoplayPause:!0,autoplaySpeed:3e3,slideSpeed:500,bullets:!0,bulletsColor:"#f7f7f7",bulletsAC:"cornflowerblue",arrows:!0,prevSlide:function(){},nextSlide:function(){},firstSlide:function(){},lastSlide:function(){},animationEnd:function(){},markup:[".tf_container",".tf_slide"],width:"65%",height:"320px",margin:"60px",fullWidth:!1,style:"shadow",customStyle:[],customNavs:["#bullet-navs","li"],navPosition:"bottom",thumbsBG:!0,thumbsSize:{xsmall:45,small:65,medium:92,large:108,xlarge:128},fixedThumbs:!0},t),e=this,d=this,o=0,s=[],r=0,l="",u=0,c=n.layout,h=n.direction;this.find(".hgi").length>0&&this.find(".hgi").addClass("animated"),"slider"===n.layout&&this.find(n.markup[0]+" "+n.markup[1]).addClass("animated"),"mobile-slider"===c||"hand"===c||"screen"===c||"slider"===c&&"horizontal"===h?"Slide"===n.animation?(s.in_dir1="slideInLeft",s.in_dir2="slideInRight",s.out_dir1="slideOutLeft",s.out_dir2="slideOutRight"):"Bounce"===n.animation?(s.in_dir1="bounceInLeft",s.in_dir2="bounceInRight",s.out_dir1="bounceOutLeft",s.out_dir2="bounceOutRight"):"Fade"===n.animation?(s.in_dir1="fadeInLeft",s.in_dir2="fadeInRight",s.out_dir1="fadeOutLeft",s.out_dir2="fadeOutRight"):"RotateDown"===n.animation?(s.in_dir1="rotateInDownLeft",s.in_dir2="rotateInDownRight",s.out_dir1="rotateOutDownRight",s.out_dir2="rotateOutDownLeft"):"RotateUp"===n.animation?(s.in_dir1="rotateInUpLeft",s.in_dir2="rotateInUpRight",s.out_dir1="rotateOutUpRight",s.out_dir2="rotateOutUpLeft"):"Zoom"===n.animation?(s.in_dir1="zoomInLeft",s.in_dir2="zoomInRight",s.out_dir1="zoomOutLeft",s.out_dir2="zoomOutRight"):"Flip"===n.animation&&(s.in_dir1="flipInY",s.in_dir2="flipInY",s.out_dir1="flipOutY",s.out_dir2="flipOutY"):("screen"===c||"slider"===c&&"vertical"===h)&&("Slide"===n.animation?(s.in_dir1="slideInUp",s.in_dir2="slideInDown",s.out_dir1="slideOutDown",s.out_dir2="slideOutUp"):"Bounce"===n.animation?(s.in_dir1="bounceInUp",s.in_dir2="bounceInDown",s.out_dir1="bounceOutUp",s.out_dir2="bounceOutDown"):"Fade"===n.animation?(s.in_dir1="fadeInUp",s.in_dir2="fadeInDown",s.out_dir1="fadeOutUp",s.out_dir2="fadeOutDown"):"RotateDown"===n.animation?(s.in_dir1="rotateInDownLeft",s.in_dir2="rotateInDownRight",s.out_dir1="rotateOutDownLeft",s.out_dir2="rotateOutDownRight"):"RotateUp"===n.animation?(s.in_dir1="rotateInUpLeft",s.in_dir2="rotateInUpRight",s.out_dir1="rotateOutUpLeft",s.out_dir2="rotateOutUpRight"):"Zoom"===n.animation?(s.in_dir1="zoomInUp",s.in_dir2="zoomInDown",s.out_dir1="zoomOutUp",s.out_dir2="zoomOutDown"):"Flip"===n.animation&&(s.in_dir1="flipInX",s.in_dir2="flipInX",s.out_dir1="flipOutX",s.out_dir2="flipOutX"));var f=a(),v={next:function(){if("slider"!=n.layout){var i="#mac-book",t=".hgi";d.find("#mac-book #left"),d.find("#mac-book #right")}else{var i=n.markup[0],t=n.markup[1];d.find("#left"),d.find("#right")}var a=n.customNavs[0]+" "+n.customNavs[1],e=t+".active",o=d.find(i+" "+e).data("index"),r=d.find(i+" "+t+'[data-index="'+o+'"]'),c=d.find(a+".active"),h=d.find(i+" "+t+'[data-index="'+parseInt(o-1)+'"]');parseInt(o-1)<0&&(h=d.find(t+'[data-index="'+l+'"]')),0===u&&(u=1,c.removeClass("active"),I.eq(parseInt(o-1)).addClass("active"),r.removeClass(s.in_dir1+" "+s.in_dir2).addClass(s.out_dir2),h.addClass("active "+s.in_dir1),d.find(h).one(f,function(){r.removeClass(s.out_dir2),d.find(e).length>1&&(h.siblings().removeClass("active "+s.in_dir1+" "+s.in_dir2+" "+s.out_dir1+" "+s.out_dir2),u=0),n.animationEnd.call()}),0===parseInt(o-1)&&n.firstSlide.call(),n.nextSlide.call())},prev:function(){if("slider"!=n.layout)var i="#mac-book",t=".hgi";else var i=n.markup[0],t=n.markup[1];var a=n.customNavs[0]+" "+n.customNavs[1],e=t+".active",o=d.find(i+" "+e).data("index"),r=d.find(i+" "+t+'[data-index="'+o+'"]'),u=d.find(a+".active"),c=d.find(i+" "+t+'[data-index="'+parseInt(o+1)+'"]');u.removeClass("active"),parseInt(o+1)>parseInt(l)?(c=d.find(t+'[data-index="0"]'),I.eq(0).addClass("active")):parseInt(o+1)>parseInt(l)||I.eq(parseInt(o+1)).addClass("active"),r.removeClass(s.in_dir1+" "+s.in_dir2).addClass(s.out_dir1),c.addClass("active "+s.in_dir2),d.find(c).one(f,function(){r.removeClass(s.out_dir1),d.find(e).length>1&&c.siblings().removeClass("active "+s.in_dir1+" "+s.in_dir2+" "+s.out_dir1+" "+s.out_dir2),n.animationEnd.call()}),parseInt(o+1)===parseInt(l)&&n.lastSlide.call(),n.prevSlide.call()},bullets:function(i){{var t=e,a=n.customNavs[0]+" "+n.customNavs[1],d=n.customNavs[1];t.find(a)}if("slider"!=n.layout)var o=".hgi.active",r=i.closest("li").data("index"),l=t.find("#mac-book .hgi.active").data("index"),c=t.find('#mac-book .hgi[data-index="'+l+'"]'),h=t.find('#mac-book .hgi[data-index="'+parseInt(r)+'"]');else var o=n.markup[1]+".active",v=n.markup[0]+" "+n.markup[1],r=i.data("index"),l=t.find(v+".active").index(),c=t.find(v+'[data-index="'+l+'"]'),h=t.find(v).eq(parseInt(r));var m=t.find(d+".active");i.hasClass("active")||0!==u||(u=1,m.removeClass("active"),t.find(a+'[data-index="'+r+'"]').addClass("active"),parseInt(r)>parseInt(m.data("index"))?(c.removeClass(s.in_dir1+" "+s.in_dir2).addClass("active "+s.out_dir1),h.addClass("active "+s.in_dir2),t.find(h).one(f,function(){c.removeClass(s.out_dir1),t.find(o).length>1&&(h.siblings().removeClass("active "+s.in_dir1+" "+s.in_dir2+" "+s.out_dir1+" "+s.out_dir2),u=0)})):(c.removeClass(s.in_dir1+" "+s.in_dir2).addClass("active "+s.out_dir2),h.addClass("active "+s.in_dir1),t.find(c).one(f,function(){c.removeClass(s.out_dir2),t.find(o).length>1&&(h.siblings().removeClass("active "+s.in_dir1+" "+s.in_dir2+" "+s.out_dir1+" "+s.out_dir2),u=0)})))},init:function(){var t="#"+d.attr("id"),a="slider"===n.layout?n.markup[0]+" "+n.markup[1]:"#mac-book .hgi",o=n.activeIndex,u="slider"===n.layout?d.find(n.markup[0]+" "+n.markup[1]).eq(o):d.find('#mac-book .hgi[data-index="'+o+'"]');if("slider"!=n.layout)var c=d.find("#mac-book #left"),h=d.find("#mac-book #right"),f='#bullet-navs ul li[data-index="'+o+'"]';else var c=d.find("#left"),h=d.find("#right"),f=n.customNavs[0]+" "+n.customNavs[1]+'[data-index="'+o+'"]';var m=0;if("screen"===n.layout){var p='<li data-index=""><span class="blt"></span></li>';d.find("#bullet-navs").append("<ul></ul>"),d.find(a).each(function(){i(this).attr("data-index",m),d.find("#bullet-navs ul").append(p),d.find("#bullet-navs ul li").last().attr("data-index",m),m++})}else{if("#bullet-navs"===n.customNavs[0]){var p='<li data-index=""><span class="blt"></span></li>';d.find("#bullet-navs").append("<ul></ul>"),d.find(a).each(function(){i(this).attr("data-index",m),d.find("#bullet-navs ul").append(p),d.find("#bullet-navs ul li").last().attr("data-index",m),m++})}else d.find(n.customNavs[0]+" "+n.customNavs[1]).each(function(){i(this).attr("data-index",m),m++});m=0,d.find(a).each(function(){i(this).attr("data-index",m),m++})}r=0,l=d.find(a).last().data("index");var g=(d.find("#bullet-navs li"),'<style data-title="'+t+'" type="text/css">');g+=t+" #bullet-navs ul li span{background: "+n.bulletsColor+"}",g+=t+" #bullet-navs ul li.active span{background: "+n.bulletsAC+"}",g+=t+" "+n.markup[0]+"{height: "+n.height+"}",g+=t+" "+n.markup[0]+"{width: "+n.width+"}",g+=t+" "+n.markup[1]+"{height: 100%}",g+=t+"{margin-top: "+n.margin+"; margin-bottom: "+n.margin+"}",g+=t+" "+a+".animated{-webkit-animation-duration: "+n.slideSpeed+"ms; animation-duration: "+n.slideSpeed+"ms;}",g+="#bullet-navs"===n.customNavs[0]?t+" "+n.customNavs[0]+"{height: auto; position: absolute;bottom: 0px; padding: 0 0.5%; padding-top: 2px; width: 90%;}":t+" "+n.customNavs[0]+"{height: auto; position: absolute;bottom: 0px; padding: 0 0.5%; padding-top: 2px; width: 100%;}",n.customStyle&&i.each(n.customStyle,function(i,t){g+=t}),g+="</style>",d.closest("html").find("head").append(g),n.bullets===!1&&d.find("#bullet-navs").remove(),n.arrows===!1&&d.find("#left, #right").remove(),u.addClass("active "+s.in_dir1),d.find(f).addClass("active");d.find("#mac-book .hgi.active").data("index");"vertical"===n.direction&&e.addClass("vertical"),"horizontal"===n.direction?(h.click(function(){v.prev()}),c.click(function(){v.next()})):(h.click(function(){v.prev()}),c.click(function(){v.next()}))},thumbs:function(){var t=i(window).outerWidth(),a=d.attr("id"),e=480,o=960,s=1200,r=1600,l=n.customNavs[0]+" "+n.customNavs[1];"#bullet-navs"===n.customNavs[0]&&(l="none");var u=n.thumbsSize.xsmall,c=n.thumbsSize.small,h=n.thumbsSize.medium,f=n.thumbsSize.large,v=n.thumbsSize.xlarge,m="";t>e?t>e&&o>=t?(d.find(l).css({width:c,height:c}),m=c):t>o&&s>=t?(d.find(l).css({width:h,height:h}),m=h):t>s&&r>=t?(d.find(l).css({width:f,height:f}),m=f):t>r&&(d.find(l).css({width:v,height:v}),m=v):(d.find(l).css({width:u,height:u}),m=u),m+=10;if(n.fixedThumbs===!0){if("bottom"===n.navPosition){var p="#"+a+" "+n.markup[1],g=i("#"+a+" "+n.markup[0]).outerHeight();i(p).css("height",g-m+7)}else if("top"===n.navPosition){var p="#"+a+" "+n.markup[1],g=i("#"+a+" "+n.markup[0]).outerHeight();i(p).css({height:g-m,marginTop:m-7})}else if("left"===n.navPosition){var p="#"+a+" "+n.markup[1],g=i("#"+a+" "+n.markup[0]).outerWidth();i(p).css({width:g-m,marginLeft:m})}else if("right"===n.navPosition){var p="#"+a+" "+n.markup[1],g=i("#"+a+" "+n.markup[0]).outerWidth();i(p).css({width:g-m,marginRight:m})}}else{var _="#"+a+" "+n.markup[0]+" "+n.customNavs[0];"bottom"===n.navPosition?(i(_).css("margin-bottom",-m+"px"),i("#"+a+" "+n.markup[0]).hover(function(){i(_).animate({marginBottom:0},350)},function(){i(_).animate({marginBottom:-m+"px"},350)})):"top"===n.navPosition?(i(_).css("margin-top",-m+"px"),i("#"+a+" "+n.markup[0]).hover(function(){i(_).animate({marginTop:0},350)},function(){i(_).animate({marginTop:-m+"px"},350)})):"left"===n.navPosition?(i(_).css("margin-left",-m+"px"),i("#"+a+" "+n.markup[0]).hover(function(){i(_).animate({marginLeft:0},350)},function(){i(_).animate({marginLeft:-m+"px"},350)})):"right"===n.navPosition&&(i(_).css("margin-right",-m+"px"),i("#"+a+" "+n.markup[0]).hover(function(){i(_).animate({marginRight:0},350)},function(){i(_).animate({marginRight:-m+"px"},350)}))}}},m={first:function(){var t=e.find(".hgi.active").data("index"),a=e.find(".phone-holder").find('.hgi[data-index="'+parseInt(t+1)+'"]'),o=e.find(".phone-holder").find(".hgi").last().data("index"),r=e.find(".hgi.active").data("index"),l=e.find(".phone-holder").find('.hgi[data-index="'+r+'"]');e.find(".highlight.active").removeClass("active"),parseInt(t+1)>parseInt(o)?(a=e.find(".phone-holder").find('.hgi[data-index="0"]'),e.find('.highlight[data-index="0"]').addClass("active")):i("#"+p+":not(.hand)").find('.highlight[data-index="'+parseInt(t+1)+'"]').addClass("active"),0===u&&(u=1,e.find(".hgi.active").removeClass("active "+s.in_dir1+" "+s.in_dir2),a.hasClass("hgh-linner")?(l.removeClass(s.in_dir1+" "+s.in_dir2).addClass("active "+s.out_dir2),a.addClass("active "+s.in_dir1),d.find(l).one(f,function(){l.removeClass(s.out_dir2),e.find(".phone-holder .hgi.active").length>1&&l.removeClass("active"),u=0,n.prevSlide.call()})):(l.removeClass(s.in_dir1+" "+s.in_dir2).addClass("active "+s.out_dir1),a.addClass("active "+s.in_dir2),d.find(l).one(f,function(){l.removeClass(s.out_dir1),e.find(".phone-holder .hgi.active").length>1&&l.removeClass("active"),u=0,n.nextSlide.call()})))},second:function(){var i=e.find(".hgi.active").data("index"),t=e.find(".phone-hand").find('.hgi[data-index="'+parseInt(i+1)+'"]'),a=e.find(".phone-hand").find('.hgi[data-index="'+parseInt(i-1)+'"]'),r=e.find(".phone-hand").find(".hgi").last().data("index"),l=e.find(".phone-hand .hgi.active").data("index"),c=e.find(".phone-hand").find('.hgi[data-index="'+l+'"]');e.find(".highlight.active").removeClass("active"),0===o&&0===u&&(u=1,parseInt(i+1)>parseInt(r)?(o=1,u=0):(e.find('.highlight[data-index="'+parseInt(i+1)+'"]').addClass("active"),c.removeClass(s.in_dir1+" "+s.in_dir2).addClass("active "+s.out_dir2),t.addClass("active "+s.in_dir1),d.find(c).one(f,function(){c.removeClass(s.out_dir2),e.find(".phone-hand .hgi.active").length>1&&c.removeClass("active"),u=0,n.prevSlide.call()}))),1===o&&0===u&&(u=1,parseInt(i-1)<0?(o=0,u=0):(e.find('.highlight[data-index="'+parseInt(i-1)+'"]').addClass("active"),c.removeClass(s.in_dir1+" "+s.in_dir2).addClass("active "+s.out_dir1),a.addClass("active "+s.in_dir2),d.find(c).one(f,function(){c.removeClass(s.out_dir1),e.find(".phone-hand .hgi.active").length>1&&c.removeClass("active"),u=0,n.nextSlide.call()})))},third:function(){if("slider"!=n.layout)var i="#mac-screen",t=".hgi";else var i=n.markup[0],t=n.markup[1];{var a=n.customNavs[0]+" "+n.customNavs[1],e=t+".active",r=d.find(i+" "+e).data("index"),l=d.find(i).find(t+'[data-index="'+parseInt(r+1)+'"]'),c=d.find(i).find(t+'[data-index="'+parseInt(r-1)+'"]'),h=d.find(i).find(t).last().data("index"),v=d.find(i+" "+e).data("index"),m=d.find(i).find(t+'[data-index="'+v+'"]'),p=d.find(a+".active");d.find(a)}p.removeClass("active"),0===o&&0===u&&(u=1,parseInt(r+1)>parseInt(h)?(o=1,u=0):(d.find(a+'[data-index="'+parseInt(r+1)+'"]').addClass("active"),m.removeClass(s.in_dir1+" "+s.in_dir2).addClass("active "+s.out_dir1),l.addClass("active "+s.in_dir2),d.find(l).one(f,function(){m.removeClass(s.out_dir1),d.find(i+" "+e).length>1&&(m.removeClass("active"),u=0)}),n.nextSlide.call())),1===o&&0===u&&(u=1,parseInt(r-1)<0?(o=0,u=0,d.find(a+'[data-index="'+parseInt(r)+'"]').addClass("active")):(d.find(a+'[data-index="'+parseInt(r-1)+'"]').addClass("active"),m.removeClass(s.in_dir1+" "+s.in_dir2).addClass("active "+s.out_dir2),c.addClass("active "+s.in_dir1),d.find(m).one(f,function(){m.removeClass(s.out_dir2),d.find(i+" "+e).length>1&&(m.removeClass("active"),u=0)}),n.prevSlide.call()))}};if("mobile-slider"===n.layout){var p=this.attr("id"),g='<style type="text/css" data-title="'+p+'">';g+="#"+p+" .highlight-title .fa{background: "+n.circleColor+"; color: "+n.iconColor+"}",g+="#"+p+" .highlight.active h3:after{background: "+n.activeColor+"}",g+="#"+p+" .highlight.active .fa{background: "+n.activeColor+"}",g+="#"+p+"{background: "+n.background+"}",g+="#"+p+" .hgi.animated{-webkit-animation-duration: "+n.slideSpeed+"ms!important; animation-duration: "+n.slideSpeed+"ms!important;}",g+="</style>",this.closest("html").find("head").append(g),d.find(".hgi").addClass("animated"),d.find('.hgi[data-index="'+n.activeIndex+'"]').addClass("active "+s.in_dir1),d.find('.highlight[data-index="'+n.activeIndex+'"]').addClass("active");var _="";if(d.find(".highlight").mouseenter(function(){if(!i(this).hasClass("active")&&0===u){u=1;var t=e;t.find(".highlight.active").removeClass("active"),i(this).addClass("active"),_=i(this).closest(".highlight").data("index");var a=t.find(".phone-holder").find('.hgi[data-index="'+_+'"]'),n=t.find(".phone-holder .hgi.active").data("index"),d=t.find(".phone-holder").find('.hgi[data-index="'+n+'"]');t.find(".hgi.active").removeClass(s.in_dir1+" "+s.in_dir2+" active"),a.hasClass("hgh-linner")?(d.removeClass(s.in_dir1+" "+s.in_dir2).addClass("active "+s.out_dir2),a.addClass("active "+s.in_dir1),t.find(d).one(f,function(){d.removeClass(s.out_dir2),i(".hgi.active").length>1&&d.removeClass("active"),u=0})):(d.removeClass(s.in_dir1+" "+s.in_dir2).addClass("active "+s.out_dir1),a.addClass("active "+s.in_dir2),t.find(d).one(f,function(){d.removeClass(s.out_dir1),i(".hgi.active").length>1&&d.removeClass("active"),u=0}))}}),d.find(".row").each(function(){var t=i(this).outerHeight(),a=(t-550)/2;i(this).css("padding",a+"px 0px")}),n.autoplay===!0)var C=setInterval(m.first,parseInt(n.autoplaySpeed));n.autoplay===!0&&e.find(".highlight").hover(function(){clearInterval(C)},function(){C=setInterval(m.first,parseInt(n.autoplaySpeed))}),n.autoplayStop===!0&&e.find(".highlight").mouseenter(function(){clearInterval(C)})}else if("hand"===n.layout){var p=this.attr("id"),g='<style type="text/css" data-title="'+p+'">';g+="#"+p+" .highlight-title .fa{background: "+n.circleColor+"; color: "+n.iconColor+"}",g+="#"+p+" .highlight.active h3:after{background: "+n.activeColor+"}",g+="#"+p+" .highlight.active .fa{background: "+n.activeColor+"}",g+="#"+p+"{background: "+n.background+"}",g+="#"+p+" .hgi.animated{-webkit-animation-duration: "+n.slideSpeed+"ms; animation-duration: "+n.slideSpeed+"ms;}",g+="</style>",this.closest("html").find("head").append(g);var x=this;if(x.find(".hgi").addClass("animated"),x.find('.hgi[data-index="'+n.activeIndex+'"]').addClass("active "+s.in_dir1),x.find('.highlight[data-index="'+n.activeIndex+'"]').addClass("active"),x.on("mouseenter",".highlight",function(){if(!i(this).hasClass("active")&&0===u){u=1,e.find(".highlight.active").removeClass("active"),i(this).addClass("active");var t=i(this).data("index"),a=e,n=a.find(".phone-hand").find('.hgi[data-index="'+t+'"]'),d=a.find(".phone-hand .hgi.active").data("index"),o=a.find(".phone-hand").find('.hgi[data-index="'+d+'"]');parseInt(t)>parseInt(d)?(o.removeClass(s.in_dir1+" "+s.in_dir2).addClass("active "+s.out_dir2),n.addClass("active "+s.in_dir1),a.find(o).one(f,function(){o.removeClass(s.out_dir1+" "+s.out_dir2),i(".zenith_slider.hand .hgi.active").length>1&&o.removeClass("active"),u=0})):(o.removeClass(s.in_dir1+" "+s.in_dir2).addClass("active "+s.out_dir1),n.addClass("active "+s.in_dir2),a.find(o).one(f,function(){o.removeClass(s.out_dir1+" "+s.out_dir2),e.find(".hgi.active").length>1&&o.removeClass("active"),u=0}))}}),n.autoplay===!0)var C=setInterval(m.second,parseInt(n.autoplaySpeed));n.autoplay===!0&&e.find(".highlight").hover(function(){clearInterval(C)},function(){C=setInterval(m.second,parseInt(n.autoplaySpeed))}),n.autoplayStop===!0&&d.find(".highlight").mouseenter(function(){clearInterval(C)})}else if("screen"===n.layout){v.init();var I=d.find("#bullet-navs li");if(I.click(function(){var t=i(this);v.bullets(t)}),n.autoplay===!0)var C=setInterval(m.third,parseInt(n.autoplaySpeed));n.autoplayPause===!0&&n.autoplay===!0&&e.find("#mac-screen").hover(function(){clearInterval(C)},function(){C=setInterval(m.third,parseInt(n.autoplaySpeed))}),n.autoplayStop===!0&&e.find("#mac-screen").mouseenter(function(){clearInterval(C)});var b=document.getElementById("mac-screen"),k=new Hammer(b);k.get("swipe").set({direction:Hammer.DIRECTION_ALL}),k.on("swipeleft",function(){"horizontal"===n.direction&&v.prev()}),k.on("swiperight",function(){"horizontal"===n.direction&&v.next()}),k.on("swipeup",function(){"vertical"===n.direction&&v.prev()}),k.on("swipedown",function(){"vertical"===n.direction&&v.next()}),k.on("press",function(){clearInterval(C)}),k.on("pressup",function(){C=setInterval(m.third,parseInt(n.speed))})}else if("slider"===n.layout){v.init(),"#tf_thumbs"===n.customNavs[0]&&v.thumbs();var p="#"+d.attr("id"),g="";n.fullWidth===!0&&(d.find(n.markup[0]).css({width:"100%",margin:0,height:i(window).outerHeight()}),d.css("margin",0)),"top"===n.navPosition&&n.fixedThumbs===!1?g+=p+" "+n.customNavs[0]+"{top: 3px; }":"top"===n.navPosition&&n.fixedThumbs===!0?g+=p+" "+n.customNavs[0]+"{top: 0px; bottom: auto!important}":"left"===n.navPosition&&"vertical"===n.direction?g+="#tf_thumbs"===n.customNavs[0]?p+" "+n.customNavs[0]+"{left: 0px;}":p+" "+n.customNavs[0]+"{left: 3px;}":"right"===n.navPosition&&"vertical"===n.direction&&(g+="#tf_thumbs"===n.customNavs[0]?p+" "+n.customNavs[0]+"{right: 0px;}":p+" "+n.customNavs[0]+"{right: 3px;}"),d.closest("html").find('head style[data-title="'+p+'"]').prepend(g);var I=(n.customNavs[1],d.find(n.customNavs[0]+" "+n.customNavs[1]));if(d.find(n.markup[0]).addClass(n.style),n.thumbsBG===!1&&d.find("#tf_thumbs").addClass("no-bg"),I.click(function(){var t=i(this);v.bullets(t)}),i(window).resize(function(){"#tf_thumbs"===n.customNavs[0]&&v.thumbs()}),n.autoplay===!0)var C=setInterval(m.third,parseInt(n.autoplaySpeed));n.autoplayPause===!0&&n.autoplay===!0&&d.find(n.markup[0]).hover(function(){clearInterval(C)},function(){C=setInterval(m.third,parseInt(n.autoplaySpeed))}),n.autoplayStop===!0&&n.autoplay===!0&&d.find(n.markup[0]).mouseenter(function(){clearInterval(C)});var p=d.attr("id"),b=document.getElementById(p),k=new Hammer(b);k.get("swipe").set({direction:Hammer.DIRECTION_ALL}),k.on("swipeleft",function(){"horizontal"===n.direction&&v.prev()}),k.on("swiperight",function(){"horizontal"===n.direction&&v.next()}),k.on("swipeup",function(){"vertical"===n.direction&&v.prev()}),k.on("swipedown",function(){"vertical"===n.direction&&v.next()}),k.on("press",function(){clearInterval(C)}),k.on("pressup",function(){C=setInterval(m.third,parseInt(n.autoplaySpeed))})}}}(jQuery);
  