jQuery(document).ready(function() {jQuery(".banner_slick").slick({dots: true, infinite: true, speed: 500, fade: true, cssEase: "linear", arrows: false, pauseOnHover: false, pauseOnFocus: false, autoplay: true, autoplaySpeed: 5000});jQuery(".bann_img") .find("img") .each(function(index) {var src = jQuery(this).attr("src");jQuery(".bann_img") .eq(index) .css("background-image", "url(" + src + ")");});jQuery(".testi_content .owl-carousel").owlCarousel({loop: true, margin: 20, autoplay: true, autoplayTimeout: 7000, responsiveClass: true, autoplayHoverPause: true, responsive: {0: {items: 1, nav: true}, 600: {items: 1, nav: true}, 1000: {items: 1, nav: true, loop: true}}});jQuery(".drop_list").on("click", function() {jQuery(".sub_menu").toggleClass("open_menu");});jQuery(".menu_toggle").on("click", function() {jQuery(".menu_section").toggleClass("show_menu");});});jQuery('.dropdown').hover(function() {jQuery(this).find('.dropdown-menu').stop(true, true).delay(200).fadeIn(500);}, function() {jQuery(this).find('.dropdown-menu').stop(true, true).delay(200).fadeOut(500);});jQuery(document).ready(function(){jQuery(window).scroll(function () {if (jQuery(this).scrollTop() > 50) {jQuery('#back-to-top').fadeIn();} else {jQuery('#back-to-top').fadeOut();}});jQuery('#back-to-top').click(function () {jQuery('#back-to-top').tooltip('hide');jQuery('body,html').animate({scrollTop: 0}, 800);return false;});jQuery('#back-to-top').tooltip('show');});jQuery(".icon_item").mouseenter(function() {var img = jQuery(this).attr("data-in");var img1 = jQuery(this).attr("data-out");jQuery("img", this).attr("src",img);}).mouseleave(function() {var img = jQuery(this).attr("data-in");var img1 = jQuery(this).attr("data-out");jQuery("img", this).attr("src",img1);});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);}}}}