﻿var McmZIdx=1,y=[],z,_a=0,_b=[],_c=[],DMenuID=[],McMenuID='',MddShiftRT=[],MddShiftRL=[],MddShiftDT=[],MddShiftDL=[],MddTimerSpeed=[],MddMouseOutDelay=[];function mcmf1(a){return((a===null)||(a===undefined));}function mcmf2(){var a=0,b=0;if(typeof(this.window.innerWidth)=='number'){a=this.window.innerWidth;b=this.window.innerHeight;}else if(this.document.documentElement&&(this.document.documentElement.clientWidth||this.document.documentElement.clientHeight)){a=this.document.documentElement.clientWidth;b=this.document.documentElement.clientHeight;}else if(this.document.body&&(this.document.body.clientWidth||this.document.body.clientHeight)){a=this.document.body.clientWidth;b=this.document.body.clientHeight;}return[a,b];}function mcmf3(){var a=0,b=0;if(typeof(this.window.pageYOffset)=='number'){b=this.window.pageYOffset;a=this.window.pageXOffset;}else if(this.document.body&&(this.document.body.scrollLeft||this.document.body.scrollTop)){b=this.document.body.scrollTop;a=this.document.body.scrollLeft;}else if(this.document.documentElement&&(this.document.documentElement.scrollLeft||this.document.documentElement.scrollTop)){b=this.document.documentElement.scrollTop;a=this.document.documentElement.scrollLeft;}return[a,b];}function mcmf4(a,b,c,d){var e=b.getElementsByTagName("*")[0];var f=(d=="")?e.className.substring(e.className.lastIndexOf("_")):d;var g=e.rows[0];for(var i=0;i<g.cells.length;i++){var h=g.cells[i].className;var j=h.substring(h.lastIndexOf("_"));if(c){if((h.indexOf("Hover_")==-1)&&(h.indexOf("Active_")==-1)){g.cells[i].className=h.replace(j,"Hover"+f);_b[a]=b;_c[a]=j;}}else if(h.indexOf("Hover")>-1){g.cells[i].className=h.replace("Hover"+j,f);_b[a]=null;_c[a]=null;}}}function mcmf5(a){var b=!mcmf1(_b[a]);var c=McMenuID.split(',');for(var i=0;i<c.length-1;i++){var d=c[i];var e=!mcmf1(_c[d])?_c[d]:"";if(!mcmf1(_b[d])){mcmf4(d,_b[d],false,e);}if(b&&(a!=d)&&(DMenuID[d]!="")){this.document.getElementById(DMenuID[d]).style.display='block';}}}function mcmf6(a){if(mcmf1(y)){return;}for(var i=y.length-1;i>-1;i--){if(mcmf1(a)||(a.id.indexOf(y[i]))!==0){this.document.getElementById(y[i]).style.display='none';y=[].concat(y.slice(0,i),y.slice(i+1));}}}function mcmf7(a){return mcmf1(a)?0:a.offsetLeft+mcmf7(a.offsetParent);}function mcmf8(a){return mcmf1(a)?0:a.offsetTop+mcmf8(a.offsetParent);}function mcmf9(){_a=0;this.clearTimeout(z);}function mcmf10(a){if(_a>=MddMouseOutDelay[a]){mcmf9();mcmf6(this.document.getElementById(a));mcmf5(a);if(DMenuID[a]!=""){this.document.getElementById(DMenuID[a]).style.display='block';}}else{_a++;z=this.setTimeout("mcmf10('"+a+"');",MddTimerSpeed[a]);}}function McmMOver(a,b,c,d){mcmf9();if(mcmf1(b)){return;}mcmf6(b);var e=b.id+"_";if(!mcmf1(this.document.getElementById(e))){var f=this.document.getElementById(e);var g=f.style;g.display='block';g.zIndex=McmZIdx++;y=y.concat(e);var h=d?MddShiftRT[a]:MddShiftDT[a];var i=d?MddShiftRL[a]:MddShiftDL[a];var j=DMenuID[a];var pt=b.innerText.replace(/^\s\s*/, '').replace(/\s\s*$/, '').toLowerCase();if (d && !((j=='')||(pt=='admin')||(pt=='host'))){if (e!= j){this.document.getElementById(j).style.display='none';g.marginLeft=i;g.marginTop=h;}}else{g.position='absolute';var k=mcmf2();var l=mcmf3();var m=l[0];var n=l[1];var o=k[0]+m;var p=k[1]+n;var q=mcmf7(b);var r=b.offsetWidth;var s=f.offsetWidth;var t=f.offsetHeight;var u=q+r+i;var v=mcmf8(b)+h;var w=v;if(c){if((u+s-9)>o){var x=q-s-i;if((o-u)<(x+s-m)){u=x;}}if((w+t-9)>p){w=p-t-h;if(w<0){w=0;}}}else{u=q+i;if(s<r){s=r;}if((d)&&((u+s-9)>o)){u=o-i-s;}w+=b.offsetHeight;}g.left=u+'px';g.top=w+'px';g.width=s+'px';}}mcmf5(a);mcmf4(a,b,true,"");}function McmMOut(a){mcmf10(a);}
