﻿var McmZIdx=1,z=[],_a,_b=0,_c=[],_d=[],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);_c[a]=b;_d[a]=j;}}else if(h.indexOf("Hover")>-1){g.cells[i].className=h.replace("Hover"+j,f);_c[a]=null;_d[a]=null;}}}function mcmf5(a){var b=!mcmf1(_c[a]);var c=McMenuID.split(',');for(var i=0;i<c.length-1;i++){var d=c[i];var e=!mcmf1(_d[d])?_d[d]:"";if(!mcmf1(_c[d])){mcmf4(d,_c[d],false,e);}if(b&&(a!=d)&&(DMenuID[d]!="")){this.document.getElementById(DMenuID[d]).style.display='block';}}}function mcmf6(a){if(mcmf1(z)){return;}for(var i=z.length-1;i>-1;i--){if(mcmf1(a)||(a.id.indexOf(z[i]))!==0){this.document.getElementById(z[i]).style.display='none';z=[].concat(z.slice(0,i),z.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(){_b=0;this.clearTimeout(_a);}function mcmf10(a){if(_b>=MddMouseOutDelay[a]){mcmf9();mcmf6(this.document.getElementById(a));mcmf5(a);if(DMenuID[a]!=""){this.document.getElementById(DMenuID[a]).style.display='block';}}else{_b++;_a=this.setTimeout("mcmf10('"+a+"');",MddTimerSpeed[a]);}}function mcmf11(a){if('string'==typeof a.textContent)return a.textContent;if('string'==typeof a.innerText)return a.innerText;return a.innerHTML.replace(/<[^>]*>/g,'');}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++;z=z.concat(e);var h=d?MddShiftRT[a]:MddShiftDT[a];var i=d?MddShiftRL[a]:MddShiftDL[a];var j=DMenuID[a];var k=mcmf11(b).replace(/^\s\s*/,'').replace(/\s\s*$/,'').toLowerCase();if(d&&!((j=="")||(k=="admin")||(k=="host"))){if(e!=j){this.document.getElementById(j).style.display='none';g.marginLeft=i;g.marginTop=h;}}else{g.position='absolute';var l=mcmf2();var m=mcmf3();var n=m[0];var o=m[1];var p=l[0]+n;var q=l[1]+o;var r=mcmf7(b);var s=b.offsetWidth;var t=f.offsetWidth;var u=f.offsetHeight;var v=r+s+i;var w=mcmf8(b)+h;var x=w;if(c){if((v+t-9)>p){var y=r-t-i;if((p-v)<(y+t-n)){v=y;}}if((x+u-9)>q){x=q-u-h;if(x<0){x=0;}}}else{v=r+i;if(t<s){t=s;}if((d)&&((v+t-9)>p)){v=p-i-t;}x+=b.offsetHeight;}g.left=v+'px';g.top=x+'px';g.width=t+'px';}}mcmf5(a);mcmf4(a,b,true,"");}function McmMOut(a){mcmf10(a);}

