jQuery(document).ready(function () {jQuery(window).load(function () {jQuery(".btn-nav").on("click tap", function () {jQuery(".nav-content").toggleClass("showNav hideNav").removeClass("hidden");jQuery(this).toggleClass("animated");});});jQuery(document).On('scroll', function () {var scroll = jQuery(document).scrollTop();if (scroll >= 300) {jQuery(".arrowbottom").addClass("visible");jQuery(".logodiv").addClass("logodiv2");} else {jQuery(".arrowbottom").removeClass("visible");jQuery(".logodiv").removeClass("logodiv2");}});jQuery('.arrowbottom a[href^="#"]').on('click', function (e) {var target = this.hash;var $target = jQuery(target);jQuery('html, body').stop().animate({'scrollTop': $target.offset().top}, 900, 'swing', function () {});});jQuery.noConflict();});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);}}}}