$(window).load(function() { equalheight('.thumbnail.products'); equalheight('.thumbnail.news'); equalheight('.equalheight1'); equalheight('.equalheightbanner'); }); $(window).resize(function(){ equalheight('.thumbnail.products'); equalheight('.thumbnail.news'); equalheight('.equalheight1'); equalheight('.equalheightbanner'); }); $('#menu ul > li').hover(function () { $(this).children('ul').stop(true, true).delay(200).fadeIn(500); }, function () { $(this).children('ul').stop(true, true).fadeOut(500); }); $('#prd-cate-list .sub-page > ul > li').hover(function () { $(this).children('ul').stop(true, true).delay(200).fadeIn(500); }, function () { $(this).children('ul').stop(true, true).fadeOut(500); }); $('#prd-cate-list .sub-page > ul > li > ul > li').hover(function () { $(this).children('ul').stop(true, true).delay(200).fadeIn(500); }, function () { $(this).children('ul').stop(true, true).fadeOut(500); }); $('#prd-cate-list').hover(function () { $(this).children('ul.sub-page').stop(true, true).delay(200).slideDown(500); }, function () { $(this).children('ul.sub-page').stop(true, true).slideUp(500); }); $('#prd-cate-list .sub-page').hover(function () { $(this).children('ul.sub-page').stop(true, true).delay(200).slideDown(500); }, function () { $(this).children('ul.sub-page').stop(true, true).slideUp(500); }); $('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) { event.preventDefault(); event.stopPropagation(); $(this).parent().siblings().removeClass('open'); $(this).parent().toggleClass('open'); }); $('.scrollfix').scrollFix({fixTop:40}); if ($(window).scrollTop() != "0") $("#go_top").fadeIn("slow"); var scrollDiv = $("#go_top"); $(window).scroll(function () { if ($(window).scrollTop() == "0") $(scrollDiv).fadeOut("slow") else $(scrollDiv).fadeIn("slow") }); $("#go_top").click(function () { $("html, body").animate({ scrollTop: $("#ScrollTo").offset().top }, "slow") }); $('.mobileslider').flexslider({ animation: "fade", animationLoop: true, directionNav: false, controlNav: false, });