text: jQuery(document).ready(function(e){function t(){e(".sf-menu").superfish({delay:50,autoArrows:!0,animation:{opacity:"show"}}),e("nav > ul.sf-menu > li").each(function(){e(this).find(".sf-with-ul").append('<i class="fa fa-angle-down"></i>')})}function a(){e("#portfolio-carousel").owlCarousel({items:4,navigation:!1,pagination:!1,autoPlay:!0,navigationText:["",""]})}function i(){e(".bxslider").bxSlider({adaptiveHeight:!0,controls:!1,auto:!0,mode:"fade"})}function n(){e(".flexslider").flexslider({controlNav:!1,animation:"slide",prevText:"",nextText:""})}function o(){e(".fancybox").fancybox({padding:5,titlePosition:"over"})}function s(){e("#flickr-feed").jflickrfeed({limit:8,qstrings:{id:"44802888@N04"},itemTemplate:'<li><a href="{{image_b}}" class="fancybox"><img src="{{image_s}}" alt="{{title}}" /></a></li>'})}e(window).resize(function(){e(window).width()>=768&&e(".responsive_menu").hide()}),t(),a(),i(),n(),o(),e("#Grid").mixitup({effects:["fade","grayscale"],easing:"snap",transitionSpeed:400}),s(),e("#bg2").parallax("50%",.3),e("#branch-bg").parallax("50%",.3),e("#contact-bg").parallax("80%",.3),e(".pageTitle").parallax("50%",.3),e(".menu-toggle-btn").click(function(){e(".responsive_menu").slideToggle()}),e(".contact-form #submit").click(function(){var t=e("input[name=name]").val(),a=e("input[name=email]").val(),i=e("input[name=subject]").val(),n=e("textarea[name=message]").val(),o=!0;""==t&&(e("input[name=name]").css("border-color","red"),o=!1),""==a&&(e("input[name=email]").css("border-color","red"),o=!1),""==i&&(e("input[name=subject]").css("border-color","red"),o=!1),""==n&&(e("textarea[name=message]").css("border-color","red"),o=!1),o&&(post_data={userName:t,userEmail:a,userSubject:i,userMessage:n},e.post("contact.php",post_data,function(t){e("#result").hide().html('<div class="success">'+t+"</div>").slideDown(),e(".widget-inner input").val(""),e(".widget-inner textarea").val("")}).fail(function(t){e("#result").hide().html('<div class="error">'+t.statusText+"</div>").slideDown()}))}),e(".contact-form input, .contact-form textarea").keyup(function(){e(".contact-form input, .contact-form textarea").css("border-color",""),e("#result").slideUp()})});