jQuery(function($) { "use strict"; //IE 8 feature for main menu var ie8_specific = function(){ if ($('.head').css('display') == 'none') { var elems = $('.dropdown_wrapper .dropbox_btn_wrapper, .dropdown_wrapper_top .dropbox_btn_wrapper_top'); $.each(elems, function(i, elem){ var subelems = $(elem).parent().find('.dropdown-content').children(); var cList; cList = $(''); if (subelems.length > 0) for (var p = 0; p < subelems.length; p++) { var subsubelems = $(subelems[p]).next().children(); var cList2; cList2 = $(''); if (subsubelems.length > 0) { for (var r = 0; r < subsubelems.length; r++) { var li2 = $("
  • ",{html: subsubelems[r].outerHTML}); li2.appendTo(cList2); } } var third = ""; if (cList2!=undefined) third = $(cList2).html();//cList2.outerHTML; //console.log(third, $(cList2).html()); var li = $("
  • ",{html: subelems[p].outerHTML + third}); li.appendTo(cList); } $('.ie8').append(elem); if (cList != undefined)$('.ie8').append(cList); }); } } var ie8_remove_slider = function(){ $('.simple_slider_wrapper').remove(); } //ie8_remove_slider(); ie8_specific(); });