 $('.carousel .vertical .item').each(function() {var next = $(this).next();if (!next.length) {next = $(this).siblings(':first');} next.children(':first-child').clone().appendTo($(this));for (var i = 1;i < 2;i++) {next = next.next();if (!next.length) {next = $(this).siblings(':first');} next.children(':first-child').clone().appendTo($(this));}});jQuery(document).ready(function() {jQuery('.product_in_trig').owlCarousel({loop: true, items: 6, responsiveClass: true, autoplay: true, autoplayTimeout: 3000, margin: 10, loop: true, navText: "", responsive: {0: {items: 1, nav: false}, 320: {items: 2, nav: false}, 480: {items: 2, nav: false}, 640: {items: 4, nav: false}, 1000: {items: 6, nav: true}}});});jQuery(document).ready(function() {jQuery(".scr_class").mCustomScrollbar({});});jQuery(document).ready(function() {jQuery("[data-fancybox]").fancybox({});});jQuery(document).on('scroll', function () {var scroll = jQuery(document).scrollTop();if (scroll >= 200) {jQuery(".header_container").addClass("header_container2");} else {jQuery(".header_container").removeClass("header_container2");}});jQuery(document).ready(function() {jQuery(document).on('scroll', function() {var scroll = jQuery(document).scrollTop();if (scroll >= 500) {jQuery(".scroll-top").show();} else {jQuery(".scroll-top").hide();}});jQuery('.scroll-top').each(function() {jQuery(this).click(function(e) {e.preventDefault();jQuery('html, body').animate({scrollTop: 0}, 2000);return true;});});jQuery.noConflict();});jQuery(document).ready(function() {var hash = window.location.hash;var anchor = jQuery('a[href$="' + hash + '"]');if (anchor.length > 0) {anchor.click();}});jQuery(document).ready(function() {setTimeout(function() {jQuery("html, body").animate({scrollTop: jQuery(window.location.hash).parent().offset().top -100}, 1000);}, 300);});jQuery(document).ready(function() {jQuery(window).on("scroll", function() {if(jQuery(window).scrollTop() > 50) {jQuery(".new_header_wrapper").addClass("active");} else {jQuery(".new_header_wrapper").removeClass("active");}});});function ChangeSub(id,mytype,cat_values){if(cat_values!=null){cat_values = decodeURI(cat_values);mycat_values = JSON.parse(unescape(cat_values));}var selected_cat = document.getElementById("cat_value"+id).value;if(mytype=="cat"){var subcat_lists = "";document.getElementById("subcat_value"+id).options.length = 0;document.getElementById("item_value"+id).options.length = 0;if (mycat_values!="{}"){subcat_lists = mycat_values[selected_cat];}else{subcat_lists = dependency_value1[selected_cat];}for (key in subcat_lists){var option = document.createElement("option");option.text = key;option.value = key;var select = document.getElementById("subcat_value"+id);select.appendChild(option);}}else if(mytype=="subcat"){document.getElementById("item_value"+id).options.length = 0;var selected_subcat = document.getElementById("subcat_value"+id).value;var item_lists = "";if (JSON.stringify(mycat_values)!="{}"){item_lists = mycat_values[selected_cat][selected_subcat];}else{item_lists = dependency_value1[selected_cat][selected_subcat];}var ln = item_lists.length, jh = 0;if(ln > 0){for ( ;jh <ln;jh++){var option = document.createElement("option");option.text = item_lists[jh];option.value = item_lists[jh];select = document.getElementById("item_value"+id);select.appendChild(option);}}}}