(function(){function F(G){return document.getElementById(G)}function D(H,G){F(H).style.display=G}function C(Q,R){Q=Q||0.1;R=R||16;var I=0;var P=0;var H=0;var N=0;var G=0;var L=0;if(document.documentElement){I=document.documentElement.scrollLeft||0;P=document.documentElement.scrollTop||0}if(document.body){H=document.body.scrollLeft||0;N=document.body.scrollTop||0}var G=window.scrollX||0;var L=window.scrollY||0;var O=Math.max(I,Math.max(H,G));var M=Math.max(P,Math.max(N,L));var J=1+Q;window.scrollTo(Math.floor(O/J),Math.floor(M/J));if(O>0||M>0){var K="MGJS.goTop("+Q+", "+R+")";window.setTimeout(K,R)}}function B(M,N,H,L,I,O){F(H).className=L;F(I).className=O;var G,J;J=M.split(",");for(var K=0;K<J.length;K++){var G=J[K];if(F(G)){D(G,"block")}}J=N.split(",");for(var K=0;K<J.length;K++){G=J[K];if(F(G)){D(G,"none")}}}function E(){F("comment").onkeydown=function(H){var G=null;if(window.event){G=window.event}else{G=H}if(G!=null&&G.ctrlKey&&G.keyCode==13){F("submit").click()}};F("submit").value+=" (Ctrl+Enter)"}function A(L,G,K){K=K||document;var H=(G=="*"&&K.all)?K.all:K.getElementsByTagName(G);var N=new Array();L=L.replace(/\-/g,"\\-");var M=new RegExp("(^|\\s)"+L+"(\\s|$)");var J;for(var I=0;I<H.length;I++){J=H[I];if(M.test(J.className)){N.push(J)}}return N}window["MGJS"]={};window["MGJS"]["$"]=F;window["MGJS"]["setStyleDisplay"]=D;window["MGJS"]["goTop"]=C;window["MGJS"]["switchTab"]=B;window["MGJS"]["loadCommentShortcut"]=E;window["MGJS"]["getElementsByClassName"]=A})()
