function bluring() { try{ if(event.srcElement.tagName=='A'||event.srcElement.tagName=='IMG') { document.body.focus(); } }catch( e ) { } } try{ document.onfocusin=bluring; }catch( e ) { } var rurl = location.href; var purl = getUrl(rurl); function getUrl(url_str) { var real_url; if (url_str.indexOf('/') > 0) { real_url = url_str.split('/'); real_url = real_url[0]+'//'+real_url[2]+'/'+real_url[3]+'/'; } return real_url; } function goLocate(go_url) { document.location = purl + go_url; } if(!document.__define_CObjectLoader__) { document.__define_CObjectLoader__ = true CObjectLoader(); function CObjectLoader() { CObjectLoader.load = function(loadStr) { document.write(loadStr); } } } document.addEventListener('DOMContentLoaded', function () { const menuLinks = document.querySelectorAll('.menu2 > li > a'); menuLinks.forEach(function (link) { link.addEventListener('click', function (e) { const sub = this.nextElementSibling; if (!sub || !sub.classList.contains('sub2')) return; e.preventDefault(); e.stopPropagation(); document.querySelectorAll('.sub2').forEach(function (el) { if (el !== sub) el.style.maxHeight = null; }); if (sub.style.maxHeight) { sub.style.maxHeight = null; } else { sub.style.maxHeight = sub.scrollHeight + 'px'; } }, true); }); });