"use strict";function recordRating(n,t,i){$.ajax({url:"/Product/Rate",data:JSON.stringify({id:n,rating:t}),contentType:"application/json",processData:!1,type:"POST",success:function(n){$(i).parent().text(n.Message).attr("style","direction: ltr")}})}function getRandomInt(n,t){return Math.floor(Math.random()*(t-n+1))+n}$.fn.andSelf=function(){return this.addBack.apply(this,arguments)};jQuery.fn.slideFadeToggle=function(n,t,i){return this.animate({opacity:"toggle",height:"toggle"},n,t,i)};jQuery.fn.slideFadeIn=function(n,t,i){return this.animate({opacity:"show",height:"show"},n,t,i)};jQuery.fn.slideFadeOut=function(n,t,i){return this.animate({opacity:"hide",height:"hide"},n,t,i)};$(document).ready(function(){var i=$("body"),t=$("#to-top"),r=$(".thumbnail"),n=$(".navigation"),u=$("ul.sf-menu");$().sticky&&$(".header.fixed").sticky({topSpacing:0});$().superfish&&u.superfish();$("ul.sf-menu a").click(function(){i.scrollspy("refresh")});$(".menu-toggle").on("click",function(){n.hasClass("opened")?n.removeClass("opened").addClass("closed"):n.removeClass("closed").addClass("opened")});$(".menu-toggle-close").on("click",function(){n.hasClass("opened")?n.removeClass("opened").addClass("closed"):n.removeClass("closed").addClass("opened")});$().selectpicker&&$(".selectpicker").selectpicker();$().prettyPhoto&&$('a[data-gal^="prettyPhoto"]').prettyPhoto({theme:"dark_square"});$(window).scroll(function(){$(this).scrollTop()>1?t.css({bottom:"15px"}):t.css({bottom:"-100px"})});t.click(function(){return $("html, body").animate({scrollTop:"0px"},800),!1});r.hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")});$(".shop-categories .arrow").click(function(){$(this).parent().parent().find("ul.children").removeClass("active");$(this).parent().parent().find(".fa-angle-up").addClass("fa-angle-down").removeClass("fa-angle-up");$(this).parent().find("ul.children").is(":visible")||($(this).find(".fa-angle-down").addClass("fa-angle-up").removeClass("fa-angle-down"),$(this).parent().find("ul.children").addClass("active"));$(this).parent().parent().find("ul.children").each(function(){$(this).hasClass("active")?$(this).slideFadeIn():$(this).slideFadeOut()})});$(".shop-categories ul.children").each(function(){$(this).hasClass("active")||$(this).hide()});$(".multiple-items").slick({autoplay:!0,infinite:!0,slidesToShow:3,slidesToScroll:1});$(".multiple-items-5").slick({autoplay:!0,infinite:!0,slidesToShow:5,slidesToScroll:1});$(".home-slick").slick({slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:5e3,dots:!0,infinite:!0,speed:1e3,fade:!0});$(".center-slick").slick({autoplay:!0,autoplaySpeed:5e3,dots:!0,infinite:!0,centerMode:!0,slidesToShow:3,responsive:[{breakpoint:600,settings:{centerMode:!0,centerPadding:"40px",slidesToShow:1}}]});$(".slider-for").slick({autoplay:!0,slidesToShow:1,slidesToScroll:1,arrows:!1,fade:!0,asNavFor:".slider-nav"});$(".slider-nav").slick({slidesToShow:3,slidesToScroll:1,asNavFor:".slider-for",dots:!0,centerMode:!0,focusOnSelect:!0})});$(window).on("load",function(){var t=$(".owl-carousel"),n;location.hash!=""&&(n="#"+window.location.hash.substr(1),n.length&&body.delay(0).animate({scrollTop:$(n).offset().top},{duration:1200,easing:"easeInOutExpo"}));t.trigger("refresh");t.trigger("refresh.owl.carousel")});if($(window).resize(function(){$(".owl-carousel").trigger("refresh");$(".owl-carousel").trigger("refresh.owl.carousel");$().isotope&&isotopeContainer.isotope("reLayout");$().sticky&&$(".header.fixed").sticky("update")}),$(window).scroll(function(){$(".owl-carousel").trigger("refresh");$(".owl-carousel").trigger("refresh.owl.carousel");$().sticky&&$(".header.fixed").sticky("update")}),$().owlCarousel){var owl=$(".owl-carousel");owl.on("changed.owl.carousel",function(){$().prettyPhoto&&$("a[data-gal^='prettyPhoto']").prettyPhoto({theme:"dark_square"})});$("#related-slider, #technology-slider").owlCarousel({startPosition:getRandomInt(0,5),autoplay:!1,autoplayHoverPause:!0,loop:!0,margin:10,dots:!0,nav:!0,navText:["<i class='fa fa-angle-left'><\/i>","<i class='fa fa-angle-right'><\/i>"],responsiveRefreshRate:100,responsive:{0:{items:1},479:{items:3},768:{items:3},991:{items:3},1024:{items:3}}})}