text: /*
  Plugin Name: 	BrowserSelector
  Written by: 	Okler Themes - (http://www.okler.net)
  Theme Version:	7.0.0
  */
  if(function(a){a.extend({browserSelector:function(){!function(a){(jQuery.browser=jQuery.browser||{}).mobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|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(a)||/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(a.substr(0,4))}(navigator.userAgent||navigator.vendor||window.opera);var b="ontouchstart"in window||navigator.msMaxTouchPoints,d=navigator.userAgent,e=d.toLowerCase(),f=function(a){return e.indexOf(a)>-1},g="gecko",h="webkit",i="safari",j="opera",k=document.documentElement,l=[!/opera|webtv/i.test(e)&&/msie\s(\d)/.test(e)?"ie ie"+parseFloat(navigator.appVersion.split("MSIE")[1]):f("firefox/2")?g+" ff2":f("firefox/3.5")?g+" ff3 ff3_5":f("firefox/3")?g+" ff3":f("gecko/")?g:f("opera")?j+(/version\/(\d+)/.test(e)?" "+j+RegExp.jQuery1:/opera(\s|\/)(\d+)/.test(e)?" "+j+RegExp.jQuery2:""):f("konqueror")?"konqueror":f("chrome")?h+" chrome":f("iron")?h+" iron":f("applewebkit/")?h+" "+i+(/version\/(\d+)/.test(e)?" "+i+RegExp.jQuery1:""):f("mozilla/")?g:"",f("j2me")?"mobile":f("iphone")?"iphone":f("ipod")?"ipod":f("mac")?"mac":f("darwin")?"mac":f("webtv")?"webtv":f("win")?"win":f("freebsd")?"freebsd":f("x11")||f("linux")?"linux":"","js"];c=l.join(" "),a.browser.mobile&&(c+=" mobile"),b&&(c+=" touch"),k.className+=" "+c;var m=/Edge/.test(navigator.userAgent);m&&a("html").removeClass("chrome").addClass("edge");var n=!window.ActiveXObject&&"ActiveXObject"in window;return n?void a("html").removeClass("gecko").addClass("ie ie11"):(a("body").hasClass("dark")&&a("html").addClass("dark"),void(a("body").hasClass("boxed")&&a("html").addClass("boxed")))}}),a.browserSelector()}(jQuery),function(a){function b(a,b){return a.toFixed(b.decimals)}a.fn.countTo=function(b){return b=b||{},a(this).each(function(){function c(){k+=g,j++,d(k),"function"==typeof e.onUpdate&&e.onUpdate.call(h,k),j>=f&&(i.removeData("countTo"),clearInterval(l.interval),k=e.to,"function"==typeof e.onComplete&&e.onComplete.call(h,k))}function d(a){var b=e.formatter.call(h,a,e);i.html(b)}var e=a.extend({},a.fn.countTo.defaults,{from:a(this).data("from"),to:a(this).data("to"),speed:a(this).data("speed"),refreshInterval:a(this).data("refresh-interval"),decimals:a(this).data("decimals")},b),f=Math.ceil(e.speed/e.refreshInterval),g=(e.to-e.from)/f,h=this,i=a(this),j=0,k=e.from,l=i.data("countTo")||{};i.data("countTo",l),l.interval&&clearInterval(l.interval),l.interval=setInterval(c,e.refreshInterval),d(k)})},a.fn.countTo.defaults={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:b,onUpdate:null,onComplete:null}}(jQuery),function(a){/**
  	 * Copyright 2012, Digital Fusion
  	 * Licensed under the MIT license.
  	 * http://teamdf.com/jquery-plugins/license/
  	 *
  	 * @author Sam Sehnert
  	 * @desc A small plugin that checks whether elements are within
  	 *       the user visible viewport of a web browser.
  	 *       only accounts for vertical position, not horizontal.
  	 */
  var b=a(window);a.fn.visible=function(c,d,e,f){if(!(this.length<1)){e=e||"both";var g=this.length>1?this.eq(0):this,h="undefined"!=typeof f&&null!==f,i=h?a(f):b,j=h?i.position():0,k=g.get(0),l=i.outerWidth(),m=i.outerHeight(),n=d===!0?k.offsetWidth*k.offsetHeight:!0;if("function"==typeof k.getBoundingClientRect){var o=k.getBoundingClientRect(),p=h?o.top-j.top>=0&&o.top<m+j.top:o.top>=0&&o.top<m,q=h?o.bottom-j.top>0&&o.bottom<=m+j.top:o.bottom>0&&o.bottom<=m,r=h?o.left-j.left>=0&&o.left<l+j.left-50:o.left>=0&&o.left<l-50,s=h?o.right-j.left>0&&o.right<l+j.left-50:o.right>0&&o.right<=l-50,t=c?p||q:p&&q,u=c?r||s:r&&s,t=o.top<0&&o.bottom>m?!0:t,u=o.left<0&&o.right>l?!0:u;if("both"===e)return n&&t&&u;if("vertical"===e)return n&&t;if("horizontal"===e)return n&&u}else{var v=h?0:j,w=v+m,x=i.scrollLeft(),y=x+l,z=g.position(),A=z.top,B=A+g.height(),C=z.left,D=C+g.width(),E=c===!0?B:A,F=c===!0?A:B,G=c===!0?D:C,H=c===!0?C:D;if("both"===e)return!!n&&w>=F&&E>=v&&y>=H&&G>=x;if("vertical"===e)return!!n&&w>=F&&E>=v;if("horizontal"===e)return!!n&&y>=H&&G>=x}}}}(jQuery),function(a){"use strict";var b,c={action:function(){},runOnLoad:!1,duration:500},d=c,e=!1,f={};f.init=function(){for(var b=0;b<=arguments.length;b++){var c=arguments[b];switch(typeof c){case"function":d.action=c;break;case"boolean":d.runOnLoad=c;break;case"number":d.duration=c}}return this.each(function(){d.runOnLoad&&d.action(),a(this).resize(function(){f.timedAction.call(this)})})},f.timedAction=function(a,c){var f=function(){var a=d.duration;if(e){var c=new Date-b;if(a=d.duration-c,0>=a)return clearTimeout(e),e=!1,void d.action()}g(a)},g=function(a){e=setTimeout(f,a)};b=new Date,"number"==typeof c&&(d.duration=c),"function"==typeof a&&(d.action=a),e||f()},a.fn.afterResize=function(a){return f[a]?f[a].apply(this,Array.prototype.slice.call(arguments,1)):f.init.apply(this,arguments)}}(jQuery),function(a){var b=-1,c=-1,d=function(b){var c=1,d=a(b),f=null,g=[];return d.each(function(){var b=a(this),d=b.offset().top-e(b.css("margin-top")),h=g.length>0?g[g.length-1]:null;null===h?g.push(b):Math.floor(Math.abs(f-d))<=c?g[g.length-1]=h.add(b):g.push(b),f=d}),g},e=function(a){return parseFloat(a)||0},f=function(b){var c={byRow:!0,remove:!1,property:"height"};return"object"==typeof b?a.extend(c,b):("boolean"==typeof b?c.byRow=b:"remove"===b&&(c.remove=!0),c)},g=a.fn.matchHeight=function(b){var c=f(b);if(c.remove){var d=this;return this.css(c.property,""),a.each(g._groups,function(a,b){b.elements=b.elements.not(d)}),this}return this.length<=1?this:(g._groups.push({elements:this,options:c}),g._apply(this,c),this)};g._groups=[],g._throttle=80,g._maintainScroll=!1,g._beforeUpdate=null,g._afterUpdate=null,g._apply=function(b,c){var h=f(c),i=a(b),j=[i],k=a(window).scrollTop(),l=a("html").outerHeight(!0),m=i.parents().filter(":hidden");return m.each(function(){var b=a(this);b.data("style-cache",b.attr("style"))}),m.css("display","block"),h.byRow&&(i.each(function(){var b=a(this),c="inline-block"===b.css("display")?"inline-block":"block";b.data("style-cache",b.attr("style")),b.css({display:c,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px"})}),j=d(i),i.each(function(){var b=a(this);b.attr("style",b.data("style-cache")||"")})),a.each(j,function(b,c){var d=a(c),f=0;return h.byRow&&d.length<=1?void d.css(h.property,""):(d.each(function(){var b=a(this),c="inline-block"===b.css("display")?"inline-block":"block",d={display:c};d[h.property]="",b.css(d),b.outerHeight(!1)>f&&(f=b.outerHeight(!1)),b.css("display","")}),void d.each(function(){var b=a(this),c=0;"border-box"!==b.css("box-sizing")&&(c+=e(b.css("border-top-width"))+e(b.css("border-bottom-width")),c+=e(b.css("padding-top"))+e(b.css("padding-bottom"))),b.css(h.property,f-c)}))}),m.each(function(){var b=a(this);b.attr("style",b.data("style-cache")||null)}),g._maintainScroll&&a(window).scrollTop(k/l*a("html").outerHeight(!0)),this},g._applyDataApi=function(){var b={};a("[data-match-height], [data-mh]").each(function(){var c=a(this),d=c.attr("data-match-height")||c.attr("data-mh");d in b?b[d]=b[d].add(c):b[d]=c}),a.each(b,function(){this.matchHeight(!0)})};var h=function(b){g._beforeUpdate&&g._beforeUpdate(b,g._groups),a.each(g._groups,function(){g._apply(this.elements,this.options)}),g._afterUpdate&&g._afterUpdate(b,g._groups)};g._update=function(d,e){if(e&&"resize"===e.type){var f=a(window).width();if(f===b)return;b=f}d?-1===c&&(c=setTimeout(function(){h(e),c=-1},g._throttle)):h(e)},a(g._applyDataApi),a(window).bind("load",function(a){g._update(!1,a)}),a(window).bind("resize orientationchange",function(a){g._update(!0,a)})}(jQuery),/*
  Plugin Name: 	jQuery.pin
  Written by: 	Okler Themes - (http://www.okler.net)
  Theme Version:	7.0.0
  
  Based on:
  
  	https://github.com/webpop/jquery.pin
  	Licensed under the terms of the MIT license.
  
  */
  function(a){"use strict";a.fn.pin=function(b){var c=0,d=[],e=!1,f=a(window);b=b||{};var g=function(){for(var c=0,g=d.length;g>c;c++){var h=d[c];if(b.minWidth&&f.width()<=b.minWidth)h.parent().is(".pin-wrapper")&&h.unwrap(),h.css({width:"",left:"",top:"",position:""}),b.activeClass&&h.removeClass(b.activeClass),e=!0;else{e=!1;var i=b.containerSelector?h.closest(b.containerSelector):a(document.body),j=h.offset(),k=i.offset(),l=h.parent().offset();h.parent().is(".pin-wrapper")||h.wrap("<div class='pin-wrapper'>");var m=a.extend({top:0,bottom:0},b.padding||{});h.data("pin",{pad:m,from:(b.containerSelector?k.top:j.top)-m.top,to:k.top+i.height()-h.outerHeight()-m.bottom,end:k.top+i.height(),parentTop:l.top}),h.css({width:h.outerWidth()}),h.parent().css("height",h.outerHeight())}}},h=function(){if(!e){c=f.scrollTop();for(var g=[],h=0,i=d.length;i>h;h++){var j=a(d[h]),k=j.data("pin");if(k){g.push(j);var l=k.from-k.pad.bottom,m=k.to-k.pad.top;l+j.outerHeight()>k.end?j.css("position",""):c>l&&m>c?(!("fixed"==j.css("position"))&&j.css({left:j.offset().left,top:k.pad.top}).css("position","fixed"),b.activeClass&&j.addClass(b.activeClass)):c>=m?(j.css({left:"",top:m-k.parentTop+k.pad.top}).css("position","absolute"),b.activeClass&&j.addClass(b.activeClass)):(j.css({position:"",top:"",left:""}),b.activeClass&&j.removeClass(b.activeClass))}}d=g}},i=function(){g(),h()};return this.each(function(){var b=a(this),c=a(this).data("pin")||{};c&&c.update||(d.push(b),a("img",this).one("load",g),c.update=i,a(this).data("pin",c))}),f.scroll(h),f.resize(function(){g()}),g(),f.on("load",i),this}}(jQuery),/iPad|iPhone|iPod/.test(navigator.platform)&&$(document).ready(function(a){a(".thumb-info").attr("onclick","return true")}),/* jQuery-FontSpy.js v3.0.0
   * https://github.com/patrickmarabeas/jQuery-FontSpy.js
   *
   * Copyright 2013, Patrick Marabeas http://pulse-dev.com
   * Released under the MIT license
   * http://opensource.org/licenses/mit-license.php
   *
   * Date: 02/11/2015
   */
  function(a,b){fontSpy=function(a,c){var d=b("html"),e=b("body"),f=a;if("string"!=typeof f||""===f)throw"A valid fontName is required. fontName must be a string and must not be an empty string.";var g={font:f,fontClass:f.toLowerCase().replace(/\s/g,""),success:function(){},failure:function(){},testFont:"Courier New",testString:"QW@HhsXJ",glyphs:"",delay:50,timeOut:1e3,callback:b.noop},h=b.extend(g,c),i=b("<span>"+h.testString+h.glyphs+"</span>").css("position","absolute").css("top","-9999px").css("left","-9999px").css("visibility","hidden").css("fontFamily",h.testFont).css("fontSize","250px");e.append(i);var j=i.outerWidth();i.css("fontFamily",h.font+","+h.testFont);var k=function(){d.addClass("no-"+h.fontClass),h&&h.failure&&h.failure(),h.callback(new Error("FontSpy timeout")),i.remove()},l=function(){h.callback(),d.addClass(h.fontClass),h&&h.success&&h.success(),i.remove()},m=function(){setTimeout(n,h.delay),h.timeOut=h.timeOut-h.delay},n=function(){var a=i.outerWidth();j!==a?l():h.timeOut<0?k():m()};n()}}(this,jQuery),function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){var b="waitForImages",c=function(a){return a.srcset&&a.sizes}(new Image);a.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},a.expr.pseudos["has-src"]=function(b){return a(b).is('img[src][src!=""]')},a.expr.pseudos.uncached=function(b){return a(b).is(":has-src")?!b.complete:!1},a.fn.waitForImages=function(){var d,e,f,g=0,h=0,i=a.Deferred(),j=this,k=[],l=a.waitForImages.hasImageProperties||[],m=a.waitForImages.hasImageAttributes||[],n=/url\(\s*(['"]?)(.*?)\1\s*\)/g;if(a.isPlainObject(arguments[0])?(f=arguments[0].waitForAll,e=arguments[0].each,d=arguments[0].finished):1===arguments.length&&"boolean"===a.type(arguments[0])?f=arguments[0]:(d=arguments[0],e=arguments[1],f=arguments[2]),d=d||a.noop,e=e||a.noop,f=!!f,!a.isFunction(d)||!a.isFunction(e))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var b=a(this);f?b.find("*").addBack().each(function(){var b=a(this);b.is("img:has-src")&&!b.is("[srcset]")&&k.push({src:b.attr("src"),element:b[0]}),a.each(l,function(a,c){var d,e=b.css(c);if(!e)return!0;for(;d=n.exec(e);)k.push({src:d[2],element:b[0]})}),a.each(m,function(a,c){var d=b.attr(c);return d?void k.push({src:b.attr("src"),srcset:b.attr("srcset"),element:b[0]}):!0})}):b.find("img:has-src").each(function(){k.push({src:this.src,element:this})})}),g=k.length,h=0,0===g&&(d.call(j),i.resolveWith(j)),a.each(k,function(f,k){var l=new Image,m="load."+b+" error."+b;a(l).one(m,function n(b){var c=[h,g,"load"==b.type];return h++,e.apply(k.element,c),i.notifyWith(k.element,c),a(this).off(m,n),h==g?(d.call(j[0]),i.resolveWith(j[0]),!1):void 0}),c&&k.srcset&&(l.srcset=k.srcset,l.sizes=k.sizes),l.src=k.src}),i.promise()}}),function(a){a('[data-toggle="tooltip"]').tooltip(),a('[data-toggle="popover"]').popover()}(jQuery),$('a[data-toggle="tab"]').on("shown.bs.tab",function(a){$(this).parents(".nav-tabs").find(".active").removeClass("active"),$(this).addClass("active").parent().addClass("active")}),!$("html").hasClass("disable-onload-scroll")&&window.location.hash&&(window.scrollTo(0,0),$(window).on("load",function(){setTimeout(function(){var a=window.location.hash,b=$(window).width()<768?180:90;$("body").addClass("scrolling"),$("html, body").animate({scrollTop:$(a).offset().top-b},600,"easeOutQuad",function(){$("body").removeClass("scrolling")})},1)})),$("[data-title-border]").get(0)){var $pageHeaderTitleBorder=$('<span class="page-header-title-border"></span>'),$pageHeaderTitle=$("[data-title-border]"),$window=$(window);$pageHeaderTitle.before($pageHeaderTitleBorder);var setPageHeaderTitleBorderWidth=function(){$pageHeaderTitleBorder.width($pageHeaderTitle.width())};$window.afterResize(function(){setPageHeaderTitleBorderWidth()}),setPageHeaderTitleBorderWidth(),$pageHeaderTitleBorder.addClass("visible")}!function(a){var b={$wrapper:a(".footer-reveal"),init:function(){var a=this;a.build(),a.events()},build:function(){var b=this,c=b.$wrapper.outerHeight(!0),d=a(window).height()-a(".header-body").height();c>d?(a("#footer").removeClass("footer-reveal"),a(".main").css("margin-bottom",0)):(a("#footer").addClass("footer-reveal"),a(".main").css("margin-bottom",c))},events:function(){var b=this,c=a(window);c.on("load",function(){c.afterResize(function(){b.build()})})}};a(".footer-reveal").get(0)&&b.init()}(jQuery),function(a){a.fn.extend({textRotator:function(b){var c={fadeSpeed:500,pauseSpeed:100,child:null},b=a.extend(c,b);return this.each(function(){var c=b,d=a(this),e=a(d.children(),d);if(e.each(function(){a(this).hide()}),c.child)var f=c.child;else var f=a(d).children(":first");a(f).fadeIn(c.fadeSpeed,function(){a(f).delay(c.pauseSpeed).fadeOut(c.fadeSpeed,function(){var b=a(this).next();0==b.length&&(b=a(d).children(":first")),a(d).textRotator({child:b,fadeSpeed:c.fadeSpeed,pauseSpeed:c.pauseSpeed})})})})}})}(jQuery),function(a){var b={$wrapper:a(".notice-top-bar"),$body:a(".body"),init:function(){var a=this;a.build()},build:function(){var b=this;a(window).on("load",function(){setTimeout(function(){b.$body.css({"margin-top":b.$wrapper.outerHeight(),transition:"ease margin 300ms"}),a("#noticeTopBarContent").textRotator({fadeSpeed:500,pauseSpeed:5e3})},1e3)})}};a(".notice-top-bar").get(0)&&b.init()}(jQuery),function(a){a(".close-theme-switcher-bar").on("click",function(){a(this).closest(".header-top").css({height:0,"min-height":0,overflow:"hidden"})})}(jQuery),function(a){a('a[data-toggle="tab"]').on("shown.bs.tab",function(b){var c=a(a(b.target).attr("href"));c.get(0)&&c.find(".owl-carousel").trigger("refresh.owl.carousel")})}(jQuery),function(a){a.fn.hover3d=function(b){var c=a.extend({selector:null,perspective:1e3,sensitivity:20,invert:!1,shine:!1,hoverInClass:"hover-in",hoverOutClass:"hover-out",hoverClass:"hover-3d"},b);return a.browser.mobile?void 0:this.each(function(){function b(a){g.addClass(c.hoverInClass+" "+c.hoverClass),currentX=currentY=0,setTimeout(function(){g.removeClass(c.hoverInClass)},400)}function d(a){var b=g.innerWidth(),d=g.innerHeight(),e=Math.round(a.pageX-g.offset().left),f=Math.round(a.pageY-g.offset().top),i=c.invert?(b/2-e)/c.sensitivity:-(b/2-e)/c.sensitivity,j=c.invert?-(d/2-f)/c.sensitivity:(d/2-f)/c.sensitivity,k=e-b/2,l=f-d/2,m=Math.atan2(l,k),n=180*m/Math.PI-90;0>n&&(n+=360),g.css({transform:"perspective(1000px) rotateY("+i/2+"deg) rotateX("+j/2+"deg) translate3d("+i/2+"px, 0, 0) scale(1.05)"}),g.find(".thumb-info-action").css({transform:"perspective(1000px) rotateY("+i/5+"deg) rotateX("+j/5+"deg) translate3d("+i/5+"px, "+(j/5-15)+"px, 0)"});var o=j/5+"px";"50%"==g.find(".thumb-info-title").css("top")&&(o=j/5-47+"%"),g.find(".thumb-info-title").css({transform:"perspective(1000px) rotateY("+i/5+"deg) rotateX("+j/5+"deg) translate3d("+i/5+"px, "+o+", 0)"}),h.css("background","linear-gradient("+n+"deg, rgba(255,255,255,"+a.offsetY/d*.5+") 0%,rgba(255,255,255,0) 80%)")}function e(){g.addClass(c.hoverOutClass+" "+c.hoverClass),g.css({transform:"none"}),setTimeout(function(){g.removeClass(c.hoverOutClass+" "+c.hoverClass),currentX=currentY=0},400)}var f=a(this),g=f.find(c.selector);currentX=0,currentY=0,c.shine&&g.append('<div class="shine"></div>');var h=a(this).find(".shine");h.css({position:"absolute",top:0,left:0,bottom:0,right:0,transform:"translateZ(1px)","z-index":9}),f.on("mouseenter",function(){return b()}),f.on("mousemove",function(a){return d(a)}),f.on("mouseleave",function(){return e()})})}}(jQuery),function(a){a.isFunction(a.fn.hover3d)&&a(function(){a(".hover-effect-3d").each(function(){var b=a(this);b.hover3d({selector:".thumb-info"})})})}.apply(this,[jQuery]),jQuery(document).ready(function(a){function b(){c(a(".word-rotator.letters").find("b")),d(a(".word-rotator"))}function c(b){b.each(function(){var b=a(this),c=b.text().split(""),d=b.hasClass("is-visible");for(i in c)b.parents(".rotate-2").length>0&&(c[i]="<em>"+c[i]+"</em>"),c[i]=d?'<i class="in">'+c[i]+"</i>":"<i>"+c[i]+"</i>";var e=c.join("");b.html(e).css("opacity",1)})}function d(b){var c=l;b.each(function(){var b=a(this);if(b.hasClass("loading-bar"))c=m,setTimeout(function(){b.find(".word-rotator-words").addClass("is-loading")},n);else if(b.hasClass("clip")){var d=b.find(".word-rotator-words"),f=d.outerWidth()+10;d.css("width",f)}else if(!b.hasClass("type")){var g=b.find(".word-rotator-words b"),h=0;g.each(function(){var b=a(this).outerWidth();b>h&&(h=b)}),b.find(".word-rotator-words").css("width",h)}setTimeout(function(){e(b.find(".is-visible").eq(0))},c)})}function e(a){var b=j(a);if(a.parents(".word-rotator").hasClass("type")){var c=a.parent(".word-rotator-words");c.addClass("selected").removeClass("waiting"),setTimeout(function(){c.removeClass("selected"),a.removeClass("is-visible").addClass("is-hidden").children("i").removeClass("in").addClass("out")},q),setTimeout(function(){f(b,p)},r)}else if(a.parents(".word-rotator").hasClass("letters")){var d=a.children("i").length>=b.children("i").length?!0:!1;g(a.find("i").eq(0),a,d,o),h(b.find("i").eq(0),b,d,o)}else a.parents(".word-rotator").hasClass("clip")?a.parents(".word-rotator-words").animate({width:"2px"},s,function(){k(a,b),f(b)}):a.parents(".word-rotator").hasClass("loading-bar")?(a.parents(".word-rotator-words").removeClass("is-loading"),k(a,b),setTimeout(function(){e(b)},m),setTimeout(function(){a.parents(".word-rotator-words").addClass("is-loading")},n)):(k(a,b),setTimeout(function(){e(b)},l))}function f(a,b){a.parents(".word-rotator").hasClass("type")?(h(a.find("i").eq(0),a,!1,b),a.addClass("is-visible").removeClass("is-hidden")):a.parents(".word-rotator").hasClass("clip")&&a.parents(".word-rotator-words").animate({width:a.outerWidth()+10},s,function(){setTimeout(function(){e(a)},t)})}function g(b,c,d,f){if(b.removeClass("in").addClass("out"),b.is(":last-child")?d&&setTimeout(function(){e(j(c))},l):setTimeout(function(){g(b.next(),c,d,f)},f),b.is(":last-child")&&a("html").hasClass("no-csstransitions")){var h=j(c);k(c,h)}}function h(a,b,c,d){a.addClass("in").removeClass("out"),a.is(":last-child")?(b.parents(".word-rotator").hasClass("type")&&setTimeout(function(){b.parents(".word-rotator-words").addClass("waiting")},200),c||setTimeout(function(){e(b)},l),b.closest(".word-rotator").hasClass("type")||b.closest(".word-rotator-words").animate({width:b.outerWidth()})):setTimeout(function(){h(a.next(),b,c,d)},d)}function j(a){return a.is(":last-child")?a.parent().children().eq(0):a.next()}function k(a,b){if(a.removeClass("is-visible").addClass("is-hidden"),b.removeClass("is-hidden").addClass("is-visible"),!b.closest(".word-rotator").hasClass("clip")){var c=0,d=b.outerWidth()>a.outerWidth()?0:600;(b.closest(".word-rotator").hasClass("loading-bar")||b.closest(".word-rotator").hasClass("slide"))&&(c=3,d=0),setTimeout(function(){b.closest(".word-rotator-words").animate({width:b.outerWidth()+c})},d)}}var l=2500,m=3800,n=m-3e3,o=50,p=150,q=500,r=q+800,s=600,t=1500;b()});