!function($){"use strict";var t=$("body");$(document).ready(function(){$.fn.SelectBox=function(){var t=$(this),e=t.find("select");t.prepend('<ul class="select-clone custom-list"></ul>');var a=e.data("placeholder")?e.data("placeholder"):e.find("option:eq(0)").text(),i=t.find(".select-clone");t.prepend('<input class="value-holder" type="text" disabled="disabled" placeholder="'+a+'">');var n=t.find(".value-holder");e.find("option").each(function(){$(this).attr("value")&&i.append('<li data-value="'+$(this).val()+'">'+$(this).text()+"</li>")}),t.click(function(){i.slideToggle(100),t.toggleClass("active")}),i.find("li").click(function(){n.val($(this).text()),e.find('option[value="'+$(this).attr("data-value")+'"]').attr("selected","selected"),t.hasClass("links")&&(window.location.href=e.val())}),t.bind("clickoutside",function(t){i.slideUp(100)}),t.hasClass("links")&&e.change(function(){window.location.href=e.val()})},$(".calendar").each(function(){var t=$(this).find("input"),e=t.data("dateformat")?t.data("dateformat"):"m/d/y",a=$(this).find(".fa"),i=t.datepicker("widget");t.datepicker({dateFormat:e,minDate:0,beforeShow:function(){t.addClass("active")},onClose:function(){t.removeClass("active"),i.hide(),i.parent().is("body")||i.detach().appendTo($("body"))}}),a.click(function(){t.focus()})}),$(".select-box").each(function(){$(this).SelectBox()}),$("#clients-slider").owlCarousel({autoPlay:!0}),$(function(){$("nav ul li a").bind("click",function(t){var e=$(this);$("html, body").stop().animate({scrollTop:$(e.attr("href")).offset().top-69},1200,"easeInOutExpo"),t.preventDefault()})}),$(".toggleMenu").click(function(){$(".navigation nav").slideToggle(300)}),$(window).resize(function(){$(window).width()>768&&$(".navigation nav").removeAttr("style")})});var e=!1;t.on("touchmove",function(){e=!0}),t.on("touchstart",function(){e=!1})}(jQuery);