document.write( 'mk 금융
' ); // IE9, 10 bug로 settimeout으로 상태 체크 !(function (fn) { var loop = 0; fn(fn, loop); })(function (fn, loop) { if (loop < 10) { loop++; setTimeout(function () { if (typeof fn == 'function') { var tg = document.querySelector('.gnb_top'), min = 880, max = 1100, w, setted; // gnb width min, max var divs = document.querySelectorAll('div'); try { for (var i = 0; i < divs.length; i++) { w = divs[i].offsetWidth; console.log(w + '|' + loop); if (w >= min && w <= max) { tg.style.width = w + 'px'; setted = true; break; } } } catch (e) { } if (!tg || !tg.style || !setted) { fn(fn, loop); } else tg.style.display = 'block'; } }, 100); } }); //-->