"use strict";
function isotopAutoSet(){
var e=jQuery.noConflict();
e(function (){
"use strict";
var t=e("#container .masonry");
e("#container .masonry").css("display", "block");
e("#container .loading").css("display", "none");
t.isotope({})
});
var t=jQuery.noConflict();
t(function (){
"use strict";
var e=t("#box_filter");
t("#container #box_filter").css("display", "block");
t("#container .loading").css("display", "none");
e.isotope({});
var n=t("#blog_filter_options .option-set"),
r=n.find("a");
r.on("click", function (){
var n=t(this);
if(n.hasClass("selected")){
return false
}
var r=n.parents(".option-set");
r.find(".selected").removeClass("selected");
n.addClass("selected");
var i={},
s=r.attr("data-option-key"),
o=n.attr("data-option-value");
o=o==="false" ? false:o;
i[s]=o;
if(s==="layoutMode"&&typeof changeLayoutMode==="function"){
changeLayoutMode(n, i)
}else{
e.isotope(i)
}
return false
})
});
var n=jQuery.noConflict();
n(function (){
"use strict";
var e=n("#portfolio_filter");
t("#portfolio_filter").css("display", "block");
t(".loading").css("display", "none");
e.isotope({});
var r=n("#portfolio_filter_options .option-set"),
i=r.find("a");
i.on("click", function (){
var t=n(this);
if(t.hasClass("selected")){
return false
}
var r=t.parents(".option-set");
r.find(".selected").removeClass("selected");
t.addClass("selected");
var i={},
s=r.attr("data-option-key"),
o=t.attr("data-option-value");
o=o==="false" ? false:o;
i[s]=o;
if(s==="layoutMode"&&typeof changeLayoutMode==="function"){
changeLayoutMode(t, i)
}else{
e.isotope(i)
}
return false
})
})
}
function callMegaMenu(){
"use strict";
var e, menucolumn;
if(jQuery(window).width() >=767&&jQuery(window).width() <=980){
menucolumn=2;
}else{
menucolumn=4;
}
if(jQuery(window).width() >=767){
e="hover";
jQuery(".mega-menu .mega, .contactmega").dcMegaMenu({
rowItems: 1,
speed: "fast",
effect: "fade",
event: e,
fullWidth: false,
mbarIcon: true
})
}}
jQuery(window).load(function (){
"use strict";
callMegaMenu()
});
jQuery(window).resize(function (){
"use strict";
callMegaMenu()
});
jQuery(document).ready(function (){
"use strict";
jQuery(".primary-sidebar .tagcloud,.widget_text .textwidget,.primary-sidebar .widget_shopping_cart_content,.primary-sidebar .textwidget,.site-footer .tnp,.site-footer .widget_nav_menu .menu").addClass("toggle-block");
jQuery(".primary-sidebar .calendar_wrap,.site-footer .calendar_wrap").addClass("toggle-block");
jQuery(".primary-sidebar .widget select").addClass("toggle-block");
jQuery(".postform").addClass("toggle-block");
jQuery(".primary-sidebar .price_slider_wrapper").addClass("toggle-block");
jQuery(".tagcloud").addClass("toggle-block");
jQuery(".primary-sidebar .widget ul,.primary-sidebar .menu-menu-container").addClass("toggle-block");
jQuery(".product-categories,ul.sidebar-category-inner").addClass("toggle-block");
jQuery(".primary-sidebar .woocommerce-product-search").addClass("toggle-block");
jQuery(".primary-sidebar .woocommerce-widget-layered-nav-dropdown").addClass("toggle-block");
(function ($, window, document, undefined){
$.fn.doubleTapToGo=function (params){
if(!('ontouchstart' in window) &&
!navigator.msMaxTouchPoints &&
!navigator.userAgent.toLowerCase().match(/windows phone os 7/i)) return false;
this.each(function (){
var curItem=false;
$(this).on('click', function (e){
var item=$(this);
if(item[0]!=curItem[0]){
e.preventDefault();
curItem=item;
}});
$(document).on('click touchstart MSPointerDown', function (e){
var resetItem=true,
parents=$(e.target).parents();
for (var i=0; i < parents.length; i++)
if(parents[i]==curItem[0])
resetItem=false;
if(resetItem)
curItem=false;
});
});
return this;
};})(jQuery, window, document);
jQuery('.category,.product,.gallery-item,.single-portfolio,.portfolios li, .portfolios li:hover .other-box ,.cms-banner-inner,.brand-carousel .product-block ,.counter,.service-content').doubleTapToGo();
jQuery('.mega_menu .block-title').on("click", function (){
jQuery('.product-categories').slideToggle("slow");
});
Shadowbox.init({
overlayOpacity: .8
}, setupDemos);
jQuery("br", ".liststyle_content").remove();
jQuery("select.orderby").customSelect();
jQuery("select.wppp-select").customSelect();
jQuery("ul li:empty").remove();
jQuery("br", ".brand_block").remove();
jQuery("br", ".pricing-content-inner").remove();
jQuery("br", "#vertical_tab .tabs").remove();
jQuery("p").each(function (){
var e=jQuery(this);
if(e.html().replace(/\s|&nbsp;/g, "").length==0) e.remove()
});
var e=jQuery.noConflict();
e(".nav-button").on("click", function (){
e(".nav-button, .primary-nav").toggleClass("open")
});
jQuery(".woocommerce-breadcrumb").appendTo(jQuery(".main_inner .page-title-inner"));
jQuery(".gridlist-toggle").prependTo(jQuery("#primary #content"));
jQuery(".woocommerce-result-count").wrap(" <div class='category-toolbar'> </div>");
jQuery(".woocommerce-ordering").appendTo(".category-toolbar");
jQuery(".gridlist-toggle").prependTo(".category-toolbar");
jQuery(".products .product-category").wrapInner(" <div class='container-inner'> </div>");
jQuery(".accordion.style5 .single_accordion").each(function (e){
jQuery(this).addClass("accord-" + (e + 1))
});
jQuery(".quantity.buttons_added").find("input.input-text").attr({type: "text"});
jQuery(".nav-menu:first > li").each(function (e){
jQuery(this).addClass("main-li")
});
jQuery("#woo-small-products p img").each(function (e){
jQuery(this).wrap("<div class='image-block'> </div>")
});
jQuery(".primary-sidebar .widget .widget-title,.content-sidebar .widget .widget-title,.site-footer .widget-title").each(function (e){
jQuery(this).wrap("<div class='title-outer'> </div>")
});
jQuery(".sub-container .inner-image").each(function (e){
jQuery(this).addClass("image-" + (e + 1))
});
jQuery(" .product-categories").addClass('sidebar-category-inner');
jQuery('.singleproduct-sidebar').insertBefore(".woocommerce-tabs");
jQuery(".woocommerce-product-gallery").wrap(" <div class='theme-container'> </div>");
jQuery(".single-product-full #content .product div.entry-summary").insertAfter(".woocommerce-product-gallery");
jQuery(".upsells, .related, .cross-sells").wrap(" <div class='theme-container'> </div>");
jQuery('.widget_nav_menu ul li').filter(function (){
return jQuery(this).text()=='';
}).remove();
jQuery(document).ready(function (){
"use strict";
jQuery("#horizontalTab").easyResponsiveTabs({
type: "default",
width: "auto",
fit: true,
closed: "accordion",
activate: function (e){
var t=jQuery(this);
var n=jQuery("#tabInfo");
var r=jQuery("span", n);
r.text(t.text());
n.show()
}})
});
jQuery(document).ready(function (){
"use strict";
jQuery("#categorytab").easyResponsiveTabs({
type: "default",
width: "auto",
fit: true,
closed: "accordion",
activate: function (e){
var t=jQuery(this);
var n=jQuery("#tabInfo");
var r=jQuery("span", n);
r.text(t.text());
n.show()
}})
});
(function (e){
"use strict";
var t;
var n=false;
var r=e("#to_top");
var i=e(window);
var s=e(document.body).children(0).position().top;
e("#to_top").on("click", function (t){
t.preventDefault();
e("html, body").animate({
scrollTop: 0
}, "slow")
});
i.scroll(function (){
window.clearTimeout(t);
t=window.setTimeout(function (){
if(i.scrollTop() <=s){
n=false;
r.fadeOut(500)
}else if(n==false){
n=true;
r.stop(true, true).show().on("click", function (){
r.fadeOut(500)
})
}}, 100)
})
})(jQuery);
(function (e){
"use strict";
e(".toogle_div a.tog").on("click", function (t){
var n=e(this).parent().find(".tab_content");
e(this).parent().find(".tab_content").not(n).slideUp();
if(e(this).hasClass("current")){
e(this).removeClass("current")
}else{
e(this).addClass("current")
}
n.stop(false, true).slideToggle().css({
display: "block"
});
t.preventDefault()
})
})(jQuery);
(function (e){
"use strict";
var t=e(".accordion .tab_content").hide();
e(".accordion a").on("click", function (){
t.slideUp();
e(this).parent().next().slideDown();
return false
})
})(jQuery);
(function (e){
"use strict";
e(".togg div.tog").on("click", function (t){
var n=e(this).parent().find(".tab_content");
e(this).parent().find(".tab_content").not(n).slideUp();
if(e(this).hasClass("current")){
e(this).removeClass("current")
}else{
e(this).addClass("current")
}
n.stop(false, true).slideToggle().css({
display: "block"
});
t.preventDefault()
})
})(jQuery);
(function (e){
"use strict";
e(".accordion a.tog").on("click", function (t){
var n=e(this).parent().find(".tab_content");
e(this).parent().parent().find(".tab_content").not(n).slideUp();
if(e(this).hasClass("current")){
e(this).removeClass("current")
}else{
e(this).parent().parent().find(".tog").removeClass("current");
e(this).addClass("current");
n.stop(false, true).slideToggle().css({
display: "block"
})
}
t.preventDefault()
})
})(jQuery);
(function (e){
"use strict";
e(".accordion.style5 .accord-1 a.tog").addClass("current");
e(".accordion.style5 .accord-1 a.tog").parent().find(".tab_content").stop(false, true).slideToggle().css({
display: "block"
});
e(".accordion.style5 .accord-1 a.tog").on("click", function (t){
var n=e(this).parent().find(".tab_content");
e(this).parent().parent().find(".tab_content").not(n).slideUp();
if(e(this).hasClass("current")){
e(this).removeClass("current");
e(".accordion.style5 .accord-1 a.tog").removeClass("current")
}else{
e(this).parent().parent().find(".tog").removeClass("current");
e(this).addClass("current");
n.stop(false, true).slideToggle().css({
display: "block"
})
}
t.preventDefault()
})
})(jQuery);
(function (e){
"use strict";
e(".tab ul.tabs li:first-child a").addClass("current");
e(".tab .tab_groupcontent div.tabs_tab").hide();
e(".tab .tab_groupcontent div.tabs_tab:first-child").css("display", "block");
e(".tab ul.tabs li a").on("click", function (t){
var n=e(this).parent().parent().parent(),
r=e(this).parent().index();
n.find("ul.tabs").find("a").removeClass("current");
e(this).addClass("current");
n.find(".tab_groupcontent").find("div.tabs_tab").not("div.tabs_tab:eq(" + r + ")").slideUp();
n.find(".tab_groupcontent").find("div.tabs_tab:eq(" + r + ")").slideDown();
t.preventDefault()
})
})(jQuery);
(function (e){
"use strict";
e(".animated").each(function (){
e(this).one("inview", function (t, n){
var r="";
var i=e(this),
s=i.data("animated")!==undefined ? i.data("animated"):"slideUp";
r=i.data("delay")!==undefined ? i.data("delay"):300;
if(n===true){
setTimeout(function (){
i.addClass(s);
i.css("opacity", 1)
}, r)
}else{
setTimeout(function (){
i.removeClass(s);
i.css("opacity", 0)
}, r)
}})
})
})(jQuery);
(function (e){
"use strict";
e(".active_progresbar > span").each(function (){
e(this).data("origWidth", e(this).width()).width(0).animate({
width: e(this).data("origWidth")
}, 1200)
})
})(jQuery);
jQuery("#commentform textarea").addClass("required");
jQuery("#commentform").validate();
jQuery("#shortcode_contactform").validate();
var n=jQuery.noConflict();
var $owl_carousel=jQuery.noConflict();
jQuery(".portfolio-carousel").each(function (){
"use strict";
if(n(this).attr("id")){
var e=n(this).attr("id").replace("_portfolio_carousel", "");
n(".portfolio-carousel").addClass("owl-carousel");
n(".portfolio-carousel").owlCarousel({
navigation: true,
pagination: false,
items: e,
itemsDesktop: [1199, e],
itemsDesktopSmall: [979, 3],
itemsTablet: [767, 2],
itemsMobile: [479, 1]
})
}});
jQuery(".style-2.blog-carousel,.style-1.blog-carousel").each(function (){
"use strict";
if(n(this).attr("id")){
var e=n(this).attr("id").replace("_blog_carousel", "");
n(".blog-carousel").addClass("owl-carousel");
n(".blog-carousel").owlCarousel({
navigation: true,
pagination: false,
autoPlay: false,
items: e,
itemsDesktop: [1199, 2],
itemsDesktopSmall: [979, 2],
itemsTablet: [600, 1],
itemsMobile: [479, 1]
})
}});
jQuery(".sidebar-blog-carousel").each(function (){
"use strict";
if(n(this).attr("id")){
var e=n(this).attr("id").replace("_sidebar_blog_carousel", "");
n(".sidebar-blog-carousel").addClass("owl-carousel");
n(".sidebar-blog-carousel").owlCarousel({
navigation: true,
pagination: false,
items: e,
itemsDesktop: [1199, e],
itemsDesktopSmall: [979, 2],
itemsTablet: [767, 2],
itemsMobile: [479, 1]
})
}});
jQuery(".cat-carousel").each(function (){
"use strict";
if(n(this).attr("id")){
var e=n(this).attr("id").replace("_cat_carousel", "");
n(".cat-carousel").addClass("owl-carousel");
n(".cat-carousel").owlCarousel({
navigation: true,
pagination: false,
items: e,
itemsLarge: [1400, e],
itemsDesktop: [1249, 3],
itemsDesktopSmall: [979, 3],
itemsTablet: [767, 2],
itemsMobile: [479, 1]
})
}});
jQuery(".brand-carousel").each(function (){
"use strict";
if(n(this).attr("id")){
var e=n(this).attr("id").replace("_brand_carousel", "");
n(".brand-carousel").addClass("owl-carousel");
n(".brand-carousel").owlCarousel({
navigation: true,
pagination: false,
items: e,
autoPlay: 3000,
itemsLarge: [1400, e],
itemsDesktop: [1199, 4],
itemsDesktopSmall: [979, 3],
itemsTablet: [600, 2],
itemsMobile: [479, 2]
})
}});
jQuery(".testimonial-carousel").each(function (){
"use strict";
if(n(this).attr("id")){
var e=n(this).attr("id").replace("_testimonial_carousel", "");
n(".testimonial-carousel").addClass("owl-carousel");
n(".testimonial-carousel").owlCarousel({
navigation: true,
pagination: false,
items: e,
itemsDesktop: [1199, e],
itemsDesktopSmall: [979, 1],
itemsTablet: [767, 1],
itemsMobile: [479, 1]
})
}});
var r=n(".upsells ul.products li").length;
if(r > 2){
n(".upsells ul.products").addClass("owl-carousel");
n(".upsells ul.products").owlCarousel({
navigation: true,
pagination: false,
items: 5,
itemsDesktop: [1199, 4],
itemsDesktopSmall: [979, 3],
itemsTablet: [640, 2],
itemsMobile: [479, 2]
})
}
var i=n(".cross-sells ul.products li").length;
if(i > 3){
n(".cross-sells ul.products").addClass("owl-carousel");
n(".cross-sells ul.products").owlCarousel({
navigation: true,
pagination: false,
items: 4,
itemsDesktop: [1199, 4],
itemsDesktopSmall: [979, 3],
itemsTablet: [640, 2],
itemsMobile: [479, 2]
})
}
var k=n(".related ul.products li").length;
if(k > 3){
n(".related ul.products").addClass("owl-carousel");
n(".related ul.products").owlCarousel({
navigation: true,
pagination: false,
items: 5,
itemsDesktop: [1199, 4],
itemsDesktopSmall: [979, 3],
itemsTablet: [640, 2],
itemsMobile: [479, 2]
})
}
jQuery(".team-carousel").each(function (){
"use strict";
if(n(this).attr("id")){
var e=n(this).attr("id").replace("_team_carousel", "");
n(".team-carousel").addClass("owl-carousel");
n(".team-carousel").owlCarousel({
navigation: true,
pagination: false,
items: e,
autoPlay: 3000,
itemsLarge: [1400, e],
itemsDesktop: [1199, 4],
itemsDesktopSmall: [979, 3],
itemsTablet: [767, 2],
itemsMobile: [479, 1]
})
}});
jQuery(".category-carousel").each(function (){
"use strict";
if(n(this).attr("id")){
var e=n(this).attr("id").replace("_category_carousel", "");
n(".category-carousel").addClass("owl-carousel");
n(".category-carousel").owlCarousel({
navigation: true,
pagination: false,
items: e,
autoPlay: false,
itemsLarge: [1400, e],
itemsDesktop: [1199, 5],
itemsDesktopSmall: [979, 4],
itemsTablet: [767, 3],
itemsMobile: [479, 2]
})
}});
jQuery(".woo-carousel").each(function (){
"use strict";
if(n(this).attr("id")){
var e=n(this).attr("id").replace("_woo_carousel", "");
var t=n(this).find("ul.products .product").length;
if(t > e){
n(this).find("ul.products").addClass("owl-carousel");
n(this).find("ul.products").owlCarousel({
navigation: true,
pagination: false,
items: e,
itemsLarge: [1600, e],
itemsDesktop: [1550, 4],
itemsDesktopSmall: [979, 3],
itemsTablet: [640, 2],
itemsMobile: [479, 2]
})
}}
});
jQuery(".woo-carousel").each(function (){
"use strict";
if(n(this).attr("id")){
var e=n(this).attr("id").replace("_woo_carousel", "");
var t=n(this).find("div.products .product").length;
if(t > e){
n(this).find("div.products").addClass("owl-carousel");
n(this).find("div.products").owlCarousel({
navigation: true,
pagination: false,
items: e,
itemsLarge: [1400, e],
itemsDesktop: [1199, 3],
itemsDesktopSmall: [979, 3],
itemsTablet: [640, 2],
itemsMobile: [479, 2]
})
}}
});
jQuery(".related_posts.blog-list").each(function (){
"use strict";
n(".related_posts.blog-list").addClass("owl-carousel");
n(".related_posts.blog-list").owlCarousel({
navigation: true,
pagination: false,
items: 2,
itemsLarge: [1400, 2],
itemsDesktop: [1199, 2],
itemsDesktopSmall: [979, 2],
itemsTablet: [767, 2],
itemsMobile: [479, 2],
afterAction: function (el){
this.$owlItems.removeClass('active');
this.$owlItems.eq(this.currentItem + 1).addClass('active');
}})
});
});
document.createElement("div");
document.createElement("section");
jQuery(window).load(function (){
"use strict";
isotopAutoSet()
});
jQuery(window).resize(function (){
"use strict";
isotopAutoSet()
});
function SidebarFooterToggle(){
"use strict";
jQuery('.primary-sidebar .title-outer,.site-footer .title-outer,.toggle-content .title-outer,.widget_accepted_payment_methods .title-outer, .widget_black_studio_tinymce').on("click", function (){
if(jQuery(this).parent().hasClass('toggled-on')){
jQuery(this).parent().removeClass('toggled-on');
jQuery(this).parent().addClass('toggled-off');
}else{
jQuery(this).parent().addClass('toggled-on');
jQuery(this).parent().removeClass('toggled-off');
}
return (false);
});
}
jQuery(document).ready(function (){
"use strict";
SidebarFooterToggle()
});
function menutreeview(){
"use strict";
jQuery('.primary-sidebar .product-categories,.site-footer .product-categories,.primary-sidebar .widget_nav_menu ul,.site-footer .widget_nav_menu ul,.primary-sidebar .widget_categories ul').addClass('treeview-list');
jQuery(".primary-sidebar .product-categories.treeview-list,.site-footer .product-categories.treeview-list,.primary-sidebar .widget_nav_menu ul.treeview-list,.site-footer .widget_nav_menu ul.treeview-list,.primary-sidebar .widget_categories .treeview-list").treeview({
animated: "slow",
collapsed: true,
unique: true
});
jQuery('.treeview-list a.active').parent().removeClass('expandable');
jQuery('.treeview-list a.active').parent().addClass('collapsable');
jQuery('.treeview-list .collapsable ul').css('display', 'block');
}
jQuery(document).ready(function (){
"use strict";
menutreeview()
});
function timecounter(){
"use strict";
jQuery('.countbox.hastime').each(function (){
var countTime=jQuery(this).attr('data-time');
jQuery(this).countdown(countTime, function (event){
jQuery(this).html('<span class="timebox day"><span class="timebox-inner"><strong>' + event.strftime('%D') + '</strong></span><span class="timebox-day">Days</span></span><span class="timebox hour"><span class="timebox-inner"><strong>' + event.strftime('%H') + '</strong></span><span class="timebox-hours">Hours</span></span><span class="timebox minute"><span class="timebox-inner"><strong>' + event.strftime('%M') + '</strong></span><span class="timebox-mins">Mins</span></span><span class="timebox second"><span class="timebox-inner"><strong>' + event.strftime('%S') + '</strong></span><span class="timebox-secs">Secs</span></span>'
);
});
});
}
jQuery(window).load(function (){
"use strict";
timecounter()
});
jQuery(window).resize(function (){
"use strict";
timecounter()
});
function mobilenavigationMenu(){
"use strict";
jQuery('.mobile-menu .mobile-menu-inner').addClass('treeview-list');
jQuery(".mobile-menu .mobile-menu-inner.treeview-list").treeview({
animated: "slow",
collapsed: true,
unique: true
});
}
jQuery(window).load(function (){
"use strict";
mobilenavigationMenu()
});
function leftPageMenu(){
"use strict";
jQuery("#secondary .widget_pages ul").addClass('page-list');
jQuery("#secondary .widget_pages ul.page-list").treeview({
animated: "slow",
collapsed: true,
unique: true
});
}
jQuery(window).load(function (){
"use strict";
leftPageMenu()
});
jQuery(window).load(function (){
"use strict";
jQuery('.aboutus .slides').owlCarousel({
items: 1,
autoPlay: 5000,
singleItem: true,
navigation: false,
pagination: true,
transitionStyle: 'fade'
});
jQuery('.banner-slider-container .slides').owlCarousel({
items: 1,
autoPlay: 3000,
singleItem: true,
navigation: false,
pagination: true,
transitionStyle: 'fade'
});
});
function preloadFunc(){
"use strict";
jQuery(".cross-sells").appendTo(".cart-collaterals");
jQuery(".product_list_widget li:last-child").addClass("last");
}
jQuery(document).ready(function (){
"use strict";
preloadFunc();
});
function mobileMenu(){
"use strict";
if(jQuery(window).width() < 768){
jQuery('.mega-menu .mega').attr('id', 'menu-menu');
jQuery('#menu-all-pages').removeClass('mega');
jQuery('.mega-menu > ul').removeClass('mega');
}else{
jQuery('.mega-menu .mega > ul').addClass('mega');
jQuery('.mega-menu .mega > ul').attr('id', 'menu-menu');
}
jQuery(".mobile-navigation").addClass('toggled-on');
jQuery('.menu-toggle').on("click", function (){
if(jQuery(this).parent().hasClass('active')){
jQuery(this).parent().removeClass('active');
}else{
jQuery('.menu-toggle').parent().removeClass('active');
jQuery(this).parent().addClass('active');
}});
jQuery('.close-menu').on("click", function (){
if(jQuery(this).parent().parent().hasClass('active')){
jQuery(this).parent().parent().removeClass('active');
}else{
jQuery('.close-menu').parent().parent().removeClass('active');
jQuery(this).parent().parent().addClass('active');
}});
}
jQuery(document).ready(function (){
"use strict";
mobileMenu();
});
function moreTab(){
"use strict";
var max_elem=5;
if(jQuery(window).width() > 1200){
var max_elem=10;
jQuery('#site-navigation').addClass('more');
jQuery('#site-navigation.more .mega > li').first().addClass('home_first');
var items=jQuery('#site-navigation.more .mega > li');
var surplus=items.slice(max_elem, items.length);
surplus.wrapAll('<li class="cat-item level-0 hiden_menu cat-parent"><ul class="children">');
jQuery('.hiden_menu').prepend('<a href="#" class="level-0  activSub">More</a>');
}
if((jQuery(window).width() >=767)&&(jQuery(window).width() <=1200)){
var max_elem=5;
jQuery('#site-navigation').addClass('more');
jQuery('#site-navigation.more .mega > li').first().addClass('home_first');
var items=jQuery('#site-navigation.more .mega > li');
var surplus=items.slice(max_elem, items.length);
surplus.wrapAll('<li class="cat-item level-0 hiden_menu cat-parent"><ul class="children">');
jQuery('.hiden_menu').prepend('<a href="#" class="level-0  activSub">More</a>');
}}
jQuery(document).ready(function (){
"use strict";
moreTab()
});
function StickyHeader(){
"use strict";
var num=147;
jQuery(window).bind('scroll', function (){
if(jQuery(window).scrollTop() > num){
jQuery('.header-fix').addClass('sticky-menu');
jQuery('.site-header-fix').addClass('header-style');
jQuery('.home-category').addClass('home-category-fix');
}else{
jQuery('.header-fix').removeClass('sticky-menu');
jQuery('.site-header-fix').removeClass('header-style');
jQuery('.home-category').removeClass('home-category-fix');
}})
}
jQuery(document).ready(function(){ "use strict";   StickyHeader()});
jQuery(window).resize(function(){  "use strict";   StickyHeader()});
jQuery(document).ready(function (){
"use strict";
jQuery(".header-toggle").on("click", function (){
jQuery(this).parent().toggleClass('active').parent().find('.search-overlay').fadeToggle('fast');
});
jQuery('.topbar-link').on("click", function (){
jQuery(".topbar-link-wrapper").slideToggle("medium");
});
});
jQuery(document).ready(function (){
"use strict";
jQuery('#accordion.style-1').find('.accordion-toggle').on("click", function (){
jQuery(this).next().slideToggle('fast');
jQuery(".style-1 .accordion-content").not(jQuery(this).next()).slideUp('fast');
});
});
jQuery(window).load(function (){
"use strict";
jQuery(".products .container-inner").find(".compare-button").each(function (i){
jQuery(this).appendTo(jQuery(this).parent().parent().parent().find(".product-button-hover"));
});
jQuery(".products .container-inner .product-detail-wrapper").find(".yith-wcqv-button").each(function (i){
jQuery(this).appendTo(jQuery(this).parent().parent().parent().find(".product-button-hover"));
});
jQuery(".products .container-inner").find(".yith-wcwl-add-to-wishlist").each(function (i){
jQuery(this).appendTo(jQuery(this).parent().parent().parent().find(".product-button-hover"));
});
jQuery(".products .container-inner").find(".add_to_cart_button,.product_type_external,.product_type_grouped,.product_type_simple,.product_type_variable").each(function (i){
jQuery(this).appendTo(jQuery(this).parent().parent().parent().find(".product-button-hover"));
});
});
jQuery(document).ready(function (){
"use strict";
jQuery(".add_to_cart_button").on("click", function (){
var rows=jQuery(".product-button-hover .add_to_cart_button");
setTimeout(function (){
rows.removeClass("added");
}, 6000);
});
});
jQuery(window).load(function (){
"use strict";
var delay=500;
setTimeout(function (){
jQuery("ul.products li span.product-loading").hide();
}, delay);
});
function singleproductcarousel(){
"use strict";
jQuery('.product .flex-control-thumbs').addClass('owl-carousel');
setTimeout(function (){
jQuery(".product .flex-control-thumbs").owlCarousel({
navigation: true,
pagination: false,
items: 4,
itemsDesktop: [1299, 3],
itemsDesktopSmall: [991, 3],
itemsTablet: [480, 2],
itemsMobile: [320, 2]
});
}, 300);
}
jQuery(window).load(function (){
"use strict";
singleproductcarousel();
});
jQuery(window).resize(function (){
"use strict";
isotopAutoSet()
});
jQuery(document).ready(function (){
jQuery(window).load(function (){
"use strict";
var preloaderFadeOutTime=30;
setTimeout(function (){
jQuery(".spinner-wrapper").hide();
}, preloaderFadeOutTime);
});
});
jQuery(document).ready(function (){
"use strict";
jQuery('.quantity').on('click', '.plus', function (e){
var input=jQuery(this).prev('input.qty');
var val=parseInt(input.val());
var step=input.attr('step');
step='undefined'!==typeof (step) ? parseInt(step):1;
input.val(val + step).change();
});
jQuery('.quantity').on('click', '.minus',
function (e){
var input=jQuery(this).next('input.qty');
var val=parseInt(input.val());
var step=input.attr('step');
step='undefined'!==typeof (step) ? parseInt(step):1;
if(val > 0){
input.val(val - step).change();
}});
});