function Menu(I,M,V,J,G,H,L,E,A,B,Q,T,U,D,O,N,F,C,R,P,K,S){this.version="020320 [Menu; mm_menu.js]";this.type="Menu";this.menuWidth=M;this.menuItemHeight=V;this.fontSize=G;this.fontWeight="plain";this.fontFamily=J;this.fontColor=H;this.fontColorHilite=L;this.bgColor="#555555";this.menuBorder=1;this.menuBgOpaque=C;this.menuItemBorder=1;this.menuItemIndent=P;this.menuItemBgColor=E;this.menuItemVAlign=Q;this.menuItemHAlign=B;this.menuItemPadding=T;this.menuItemSpacing=U;this.menuLiteBgColor="#ffffff";this.menuBorderBgColor="#777777";this.menuHiliteBgColor=A;this.menuContainerBgColor="#cccccc";this.childMenuIcon="arrows.gif";this.submenuXOffset=O;this.submenuYOffset=N;this.submenuRelativeToItem=F;this.vertical=R;this.items=new Array();this.actions=new Array();this.childMenus=new Array();this.hideOnMouseOut=true;this.hideTimeout=D;this.addMenuItem=addMenuItem;this.writeMenus=writeMenus;this.MM_showMenu=MM_showMenu;this.onMenuItemOver=onMenuItemOver;this.onMenuItemAction=onMenuItemAction;this.hideMenu=hideMenu;this.hideChildMenu=hideChildMenu;if(!window.menus){window.menus=new Array()}this.label=" "+I;window.menus[this.label]=this;window.menus[window.menus.length]=this;if(!window.activeMenus){window.activeMenus=new Array()}}function addMenuItem(A,B){this.items[this.items.length]=A;this.actions[this.actions.length]=B}function FIND(A){if(window.mmIsOpera){return(document.getElementById(A))}if(document.all){return(document.all[A])}if(document.getElementById){return(document.getElementById(A))}return(false)}function writeMenus(W){if(window.triedToWriteMenus){return }var o=navigator.userAgent.toLowerCase();window.mmIsOpera=o.indexOf("opera")!=-1;if(!W&&document.layers){window.delayWriteMenus=this.writeMenus;var T=setTimeout("delayWriteMenus()",500);W=new Layer(100);clearTimeout(T)}else{if(document.all||document.hasChildNodes||window.mmIsOpera){document.writeln("<span id=\"menuContainer\"></span>");W=FIND("menuContainer")}}window.mmHideMenuTimer=null;if(!W){return }window.triedToWriteMenus=true;W.isContainer=true;W.menus=new Array();for(var k=0;k<window.menus.length;k++){W.menus[k]=window.menus[k]}window.menus.length=0;var O=0;var L=0;var H=0;var J="";var C=false;var D="";var p=0;if(document.layers){C=true}for(var k=0;k<W.menus.length;k++,O++){var m=W.menus[k];if(m.bgImageUp||!m.menuBgOpaque){m.menuBorder=0;m.menuItemBorder=0}if(C){var j=new Layer(100,W);var K=new Layer(100,j);K.top=m.menuBorder;K.left=m.menuBorder;var P=new Layer(100,K);P.top=m.menuBorder;P.left=m.menuBorder}else{J+="<div id=\"menuLayer"+O+"\" style=\"position:absolute;z-index:1;left:10px;top:"+(k*100)+"px;visibility:hidden;color:"+m.menuBorderBgColor+";\">\n  <div id=\"menuLite"+O+"\" style=\"position:absolute;z-index:1;left:"+m.menuBorder+"px;top:"+m.menuBorder+"px;visibility:hide;\" onmouseout=\"mouseoutMenu();\">\n\t <div id=\"menuFg"+O+"\" style=\"position:absolute;left:"+m.menuBorder+"px;top:"+m.menuBorder+"px;visibility:hide;\">\n"}var Z=k;for(var k=0;k<m.items.length;k++){var R=m.items[k];var Y=false;var M=m.fontSize+2*m.menuItemPadding;if(R.label){R=R.label;Y=true}m.menuItemHeight=m.menuItemHeight||M;var V="";if(m.fontFamily!=""){V+="font-family:"+m.fontFamily+";"}V+="font-weight:"+m.fontWeight+";fontSize:"+m.fontSize+"px;";if(m.fontStyle){V+="font-style:"+m.fontStyle+";"}if(document.all||window.mmIsOpera){V+="font-size:"+m.fontSize+"px;\" onmouseover=\"onMenuItemOver(null,this);\" onclick=\"onMenuItemAction(null,this);"}else{if(!document.layers){V+="font-size:"+m.fontSize+"px;"}}var h;if(C){var Q=m.menuWidth;if(m.menuItemHAlign=="right"){Q-=m.menuItemPadding}h=new Layer(Q,P)}var e=0;var E=k*m.menuItemHeight;if(!m.vertical){e=k*m.menuWidth;E=0}var U="<div id=\"menuItem"+L+"\" style=\"position:absolute;left:"+e+"px;top:"+E+"px;"+V+"\">";var I="</div>";if(m.bgImageUp){U="<div id=\"menuItem"+L+"\" style=\"background:url("+m.bgImageUp+");position:absolute;left:"+e+"px;top:"+E+"px;"+V+"\">"}var G=0,H=0,f=0,A=0;G=1+m.menuItemPadding+m.menuItemIndent;f=G+m.menuWidth-2*m.menuItemPadding-m.menuItemIndent;if(m.menuItemVAlign=="top"){H=m.menuItemPadding}if(m.menuItemVAlign=="bottom"){H=m.menuItemHeight-m.fontSize-1-m.menuItemPadding}if(m.menuItemVAlign=="middle"){H=((m.menuItemHeight/2)-(m.fontSize/2)-1)}A=m.menuItemHeight-2*m.menuItemPadding;var d="position:absolute;left:"+G+"px;top:"+H+"px;";if(C){d+=V+"right:"+f+";bottom:"+A+";";U="";I=""}if(document.all&&!window.mmIsOpera){R="<div align=\""+m.menuItemHAlign+"\">"+R+"</div>"}else{if(C){R="<div style=\"text-align:"+m.menuItemHAlign+";\">"+R+"</div>"}else{var F=null;if(m.menuItemHAlign!="left"){if(window.mmIsOpera){var b=m.menuItemHAlign=="center"?-(m.menuWidth-2*m.menuItemPadding):(m.menuWidth-6*m.menuItemPadding);F="<div id=\"menuItemHilite"+L+"Shim\" style=\"position:absolute;top:1px;left:"+m.menuItemPadding+"px;width:"+b+"px;text-align:"+m.menuItemHAlign+";visibility:visible;\">"+R+"</div>";R="<div id=\"menuItemText"+L+"Shim\" style=\"position:absolute;top:1px;left:"+m.menuItemPadding+"px;width:"+b+"px;text-align:"+m.menuItemHAlign+";visibility:visible;\">"+R+"</div>"}else{F="<div id=\"menuItemHilite"+L+"Shim\" style=\"position:absolute;top:1px;left:1px;right:-"+(G+m.menuWidth-3*m.menuItemPadding)+"px;text-align:"+m.menuItemHAlign+";visibility:visible;\">"+R+"</div>";R="<div id=\"menuItemText"+L+"Shim\" style=\"position:absolute;top:1px;left:1px;right:-"+(G+m.menuWidth-3*m.menuItemPadding)+"px;text-align:"+m.menuItemHAlign+";visibility:visible;\">"+R+"</div>"}}else{F=null}}}if(document.all&&!window.mmIsOpera){R="<div id=\"menuItemShim"+L+"\" style=\"position:absolute;left:0px;top:0px;\">"+R+"</div>"}var B="<div id=\"menuItemText"+L+"\" style=\""+d+"color:"+m.fontColor+";\">"+R+"&nbsp</div>\n<div id=\"menuItemHilite"+L+"\" style=\""+d+"color:"+m.fontColorHilite+";visibility:hidden;\">"+(F||R)+"&nbsp</div>";if(Y){J+=(U+B+"<div id=\"childMenu"+L+"\" style=\"position:absolute;left:0px;top:3px;\"><img src=\""+m.childMenuIcon+"\"></div>\n"+I)}else{J+=(U+B+I)}if(C){h.document.open("text/html");h.document.writeln(J);h.document.close();J="";D+="-";p++;if(p>50){p=0;D=""}status=D}L++}if(C){var X=new Layer(100,P);X.visiblity="hidden";X.document.open("text/html");X.document.writeln("&nbsp;");X.document.close()}else{J+="\t  <div id=\"focusItem"+O+"\" style=\"position:absolute;left:0px;top:0px;visibility:hide;\" onclick=\"onMenuItemAction(null,this);\">&nbsp;</div>\n";J+="   </div>\n  </div>\n</div>\n"}k=Z}if(document.layers){W.clip.width=window.innerWidth;W.clip.height=window.innerHeight;W.onmouseout=mouseoutMenu;W.menuContainerBgColor=this.menuContainerBgColor;for(var k=0;k<W.document.layers.length;k++){proto=W.menus[k];var m=W.document.layers[k];W.menus[k].menuLayer=m;W.menus[k].menuLayer.Menu=W.menus[k];W.menus[k].menuLayer.Menu.container=W;var P=m.document.layers[0].document.layers[0];P.clip.width=proto.menuWidth||P.clip.width;P.clip.height=proto.menuHeight||P.clip.height;for(var g=0;g<P.document.layers.length-1;g++){var h=P.document.layers[g];h.Menu=W.menus[k];h.menuHiliteBgColor=proto.menuHiliteBgColor;h.document.bgColor=proto.menuItemBgColor;h.saveColor=proto.menuItemBgColor;h.onmouseover=proto.onMenuItemOver;h.onclick=proto.onMenuItemAction;h.mmaction=W.menus[k].actions[g];h.focusItem=P.document.layers[P.document.layers.length-1];h.clip.width=proto.menuWidth||P.clip.width;h.clip.height=proto.menuItemHeight||h.clip.height;if(g>0){if(h.Menu.vertical){h.top=P.document.layers[g-1].top+P.document.layers[g-1].clip.height+proto.menuItemBorder+proto.menuItemSpacing}else{h.left=P.document.layers[g-1].left+P.document.layers[g-1].clip.width+proto.menuItemBorder+proto.menuItemSpacing}}h.hilite=h.document.layers[1];if(proto.bgImageUp){h.background.src=proto.bgImageUp}h.document.layers[1].isHilite=true;if(h.document.layers.length>2){h.childMenu=W.menus[k].items[g].menuLayer;h.document.layers[2].left=h.clip.width-13;h.document.layers[2].top=(h.clip.height/2)-4;h.document.layers[2].clip.left+=3;h.Menu.childMenus[h.Menu.childMenus.length]=h.childMenu}}if(proto.menuBgOpaque){P.document.bgColor=proto.bgColor}if(proto.vertical){P.clip.width=h.clip.width+proto.menuBorder;P.clip.height=h.top+h.clip.height+proto.menuBorder}else{P.clip.height=h.clip.height+proto.menuBorder;P.clip.width=h.left+h.clip.width+proto.menuBorder;if(P.clip.width>window.innerWidth){P.clip.width=window.innerWidth}}var X=P.document.layers[g];X.clip.width=P.clip.width;X.Menu=h.Menu;X.top=-30;X.captureEvents(Event.MOUSEDOWN);X.onmousedown=onMenuItemDown;if(proto.menuBgOpaque){m.document.bgColor=proto.menuBorderBgColor}var K=m.document.layers[0];if(proto.menuBgOpaque){K.document.bgColor=proto.menuLiteBgColor}K.clip.width=P.clip.width+1;K.clip.height=P.clip.height+1;m.clip.width=P.clip.width+(proto.menuBorder*3);m.clip.height=P.clip.height+(proto.menuBorder*3)}}else{if((!document.all)&&(W.hasChildNodes)&&!window.mmIsOpera){W.innerHTML=J}else{W.document.open("text/html");W.document.writeln(J);W.document.close()}if(!FIND("menuLayer0")){return }var S=0;for(var Z=0;Z<W.menus.length;Z++){var j=FIND("menuLayer"+Z);W.menus[Z].menuLayer="menuLayer"+Z;j.Menu=W.menus[Z];j.Menu.container="menuLayer"+Z;j.style.zindex=1;var c=j.style;c.pixeltop=-300;c.pixelleft=-300;c.top="-300px";c.left="-300px";var m=W.menus[Z];m.menuItemWidth=m.menuWidth||m.menuIEWidth||140;if(m.menuBgOpaque){j.style.backgroundColor=m.menuBorderBgColor}var H=0;var G=0;m.menuItemLayers=new Array();for(var k=0;k<W.menus[Z].items.length;k++){var h=FIND("menuItem"+S);h.Menu=W.menus[Z];h.Menu.menuItemLayers[h.Menu.menuItemLayers.length]=h;if(h.addEventListener||window.mmIsOpera){h.style.width=m.menuItemWidth+"px";h.style.height=m.menuItemHeight+"px";h.style.pixelWidth=m.menuItemWidth;h.style.pixelHeight=m.menuItemHeight;h.style.top=H+"px";h.style.left=G+"px";if(h.addEventListener){h.addEventListener("mouseover",onMenuItemOver,false);h.addEventListener("click",onMenuItemAction,false);h.addEventListener("mouseout",mouseoutMenu,false)}if(m.menuItemHAlign!="left"){h.hiliteShim=FIND("menuItemHilite"+S+"Shim");h.hiliteShim.style.visibility="inherit";h.textShim=FIND("menuItemText"+S+"Shim");h.hiliteShim.style.pixelWidth=m.menuItemWidth-2*m.menuItemPadding-m.menuItemIndent;h.hiliteShim.style.width=h.hiliteShim.style.pixelWidth;h.textShim.style.pixelWidth=m.menuItemWidth-2*m.menuItemPadding-m.menuItemIndent;h.textShim.style.width=h.textShim.style.pixelWidth}}else{h.style.pixelWidth=m.menuItemWidth;h.style.pixelHeight=m.menuItemHeight;h.style.pixelTop=H;h.style.pixelLeft=G;if(m.menuItemHAlign!="left"){var a=FIND("menuItemShim"+S);a[0].style.pixelWidth=m.menuItemWidth-2*m.menuItemPadding-m.menuItemIndent;a[1].style.pixelWidth=m.menuItemWidth-2*m.menuItemPadding-m.menuItemIndent;a[0].style.width=a[0].style.pixelWidth+"px";a[1].style.width=a[1].style.pixelWidth+"px"}}if(m.vertical){H=H+m.menuItemHeight+m.menuItemBorder+m.menuItemSpacing}else{G=G+m.menuItemWidth+m.menuItemBorder+m.menuItemSpacing}h.style.fontSize=m.fontSize+"px";h.style.backgroundColor=m.menuItemBgColor;h.style.visibility="inherit";h.saveColor=m.menuItemBgColor;h.menuHiliteBgColor=m.menuHiliteBgColor;h.mmaction=W.menus[Z].actions[k];h.hilite=FIND("menuItemHilite"+S);h.focusItem=FIND("focusItem"+Z);h.focusItem.style.pixelTop=-30;h.focusItem.style.top="-30px";var N=FIND("childMenu"+S);if(N){h.childMenu=W.menus[Z].items[k].menuLayer;N.style.pixelLeft=m.menuItemWidth-11;N.style.left=N.style.pixelLeft+"px";N.style.pixelTop=(m.menuItemHeight/2)-4;N.style.top=N.style.pixelTop+"px";h.Menu.childMenus[h.Menu.childMenus.length]=h.childMenu}h.style.cursor="hand";S++}if(m.vertical){m.menuHeight=H-1-m.menuItemSpacing;m.menuWidth=m.menuItemWidth}else{m.menuHeight=m.menuItemHeight;m.menuWidth=G-1-m.menuItemSpacing}var K=FIND("menuLite"+Z);var c=K.style;c.pixelHeight=m.menuHeight+(m.menuBorder*2);c.height=c.pixelHeight+"px";c.pixelWidth=m.menuWidth+(m.menuBorder*2);c.width=c.pixelWidth+"px";if(m.menuBgOpaque){c.backgroundColor=m.menuLiteBgColor}var P=FIND("menuFg"+Z);c=P.style;c.pixelHeight=m.menuHeight+m.menuBorder;c.height=c.pixelHeight+"px";c.pixelWidth=m.menuWidth+m.menuBorder;c.width=c.pixelWidth+"px";if(m.menuBgOpaque){c.backgroundColor=m.bgColor}c=j.style;c.pixelWidth=m.menuWidth+(m.menuBorder*4);c.width=c.pixelWidth+"px";c.pixelHeight=m.menuHeight+(m.menuBorder*4);c.height=c.pixelHeight+"px"}}if(document.captureEvents){document.captureEvents(Event.MOUSEUP)}if(document.addEventListener){document.addEventListener("mouseup",onMenuItemOver,false)}if(document.layers&&window.innerWidth){window.onresize=NS4resize;window.NS4sIW=window.innerWidth;window.NS4sIH=window.innerHeight;setTimeout("NS4resize()",500)}document.onmouseup=mouseupMenu;window.mmWroteMenu=true;status=""}function NS4resize(){if(NS4sIW!=window.innerWidth||NS4sIH!=window.innerHeight){window.location.reload()}}function onMenuItemOver(C,B){MM_clearTimeout();B=B||this;var A=window.ActiveMenuItem;if(document.layers){if(A){A.document.bgColor=A.saveColor;if(A.hilite){A.hilite.visibility="hidden"}if(A.Menu.bgImageOver){A.background.src=A.Menu.bgImageUp}A.focusItem.top=-100;A.clicked=false}if(B.hilite){B.document.bgColor=B.menuHiliteBgColor;B.zIndex=1;B.hilite.visibility="inherit";B.hilite.zIndex=2;B.document.layers[1].zIndex=1;B.focusItem.zIndex=this.zIndex+2}if(B.Menu.bgImageOver){B.background.src=B.Menu.bgImageOver}B.focusItem.top=this.top;B.focusItem.left=this.left;B.focusItem.clip.width=B.clip.width;B.focusItem.clip.height=B.clip.height;B.Menu.hideChildMenu(B)}else{if(B.style&&B.Menu){if(A){A.style.backgroundColor=A.saveColor;if(A.hilite){A.hilite.style.visibility="hidden"}if(A.hiliteShim){A.hiliteShim.style.visibility="inherit"}if(A.Menu.bgImageUp){A.style.background="url("+A.Menu.bgImageUp+")"}}B.style.backgroundColor=B.menuHiliteBgColor;B.zIndex=1;if(B.Menu.bgImageOver){B.style.background="url("+B.Menu.bgImageOver+")"}if(B.hilite){B.hilite.style.visibility="inherit";if(B.hiliteShim){B.hiliteShim.style.visibility="visible"}}B.focusItem.style.pixelTop=B.style.pixelTop;B.focusItem.style.top=B.focusItem.style.pixelTop+"px";B.focusItem.style.pixelLeft=B.style.pixelLeft;B.focusItem.style.left=B.focusItem.style.pixelLeft+"px";B.focusItem.style.zIndex=B.zIndex+1;B.Menu.hideChildMenu(B)}else{return }}window.ActiveMenuItem=B}function onMenuItemAction(e,l){l=window.ActiveMenuItem;if(!l){return }hideActiveMenus();if(l.mmaction){eval(""+l.mmaction)}window.ActiveMenuItem=0}function MM_clearTimeout(){if(mmHideMenuTimer){clearTimeout(mmHideMenuTimer)}mmHideMenuTimer=null;mmDHFlag=false}function MM_startTimeout(){if(window.ActiveMenu){mmStart=new Date();mmDHFlag=true;mmHideMenuTimer=setTimeout("mmDoHide()",window.ActiveMenu.Menu.hideTimeout)}}function mmDoHide(){if(!mmDHFlag||!window.ActiveMenu){return }var A=new Date()-mmStart;var B=window.ActiveMenu.Menu.hideTimeout;if(A<B){mmHideMenuTimer=setTimeout("mmDoHide()",B+100-A);return }mmDHFlag=false;hideActiveMenus();window.ActiveMenuItem=0}function MM_showMenu(B,H,G,A,E){if(!window.mmWroteMenu){return }MM_clearTimeout();if(B){var D=FIND(E)||document.images[E]||document.links[E]||document.anchors[E];H=moveXbySlicePos(H,D);G=moveYbySlicePos(G,D)}if(document.layers){if(B){var C=B.menuLayer||B;C.top=C.left=1;hideActiveMenus();if(this.visibility){C=this}window.ActiveMenu=C}else{var C=A}if(!C){return }for(var F=0;F<C.layers.length;F++){if(!C.layers[F].isHilite){C.layers[F].visibility="inherit"}if(C.layers[F].document.layers.length>0){MM_showMenu(null,"relative","relative",C.layers[F])}}if(C.parentLayer){if(H!="relative"){C.parentLayer.left=H||window.pageX||0}if(C.parentLayer.left+C.clip.width>window.innerWidth){C.parentLayer.left-=(C.parentLayer.left+C.clip.width-window.innerWidth)}if(G!="relative"){C.parentLayer.top=G||window.pageY||0}if(C.parentLayer.isContainer){C.Menu.xOffset=window.pageXOffset;C.Menu.yOffset=window.pageYOffset;C.parentLayer.clip.width=window.ActiveMenu.clip.width+2;C.parentLayer.clip.height=window.ActiveMenu.clip.height+2;if(C.parentLayer.menuContainerBgColor&&C.Menu.menuBgOpaque){C.parentLayer.document.bgColor=C.parentLayer.menuContainerBgColor}}}C.visibility="inherit";if(C.Menu){C.Menu.container.visibility="inherit"}}else{if(FIND("menuItem0")){var C=B.menuLayer||B;hideActiveMenus();if(typeof (C)=="string"){C=FIND(C)}window.ActiveMenu=C;var I=C.style;I.visibility="inherit";if(H!="relative"){I.pixelLeft=H||(window.pageX+document.body.scrollLeft)||0;I.left=I.pixelLeft+"px"}if(G!="relative"){I.pixelTop=G||(window.pageY+document.body.scrollTop)||0;I.top=I.pixelTop+"px"}C.Menu.xOffset=document.body.scrollLeft;C.Menu.yOffset=document.body.scrollTop}}if(B){window.activeMenus[window.activeMenus.length]=C}MM_clearTimeout()}function onMenuItemDown(C,B){var A=window.ActiveMenuItem;if(document.layers&&A){A.eX=C.pageX;A.eY=C.pageY;A.clicked=true}}function mouseupMenu(A){hideMenu(true,A);hideActiveMenus();return true}function getExplorerVersion(){var C=parseFloat(navigator.appVersion);if(navigator.appName!="Microsoft Internet Explorer"){return C}var B=navigator.appVersion;var A=B.indexOf("MSIE ");if(A>=0){B=B.substring(A+5);C=parseFloat(B)}return C}function mouseoutMenu(){if((navigator.appName=="Microsoft Internet Explorer")&&(getExplorerVersion()<4.5)){return true}hideMenu(false,false);return true}function hideMenu(C,B){var A=window.ActiveMenuItem;if(A&&document.layers){A.document.bgColor=A.saveColor;A.focusItem.top=-30;if(A.hilite){A.hilite.visibility="hidden"}if(C&&A.mmaction&&A.clicked&&window.ActiveMenu){if(A.eX<=B.pageX+15&&A.eX>=B.pageX-15&&A.eY<=B.pageY+10&&A.eY>=B.pageY-10){setTimeout("window.ActiveMenu.Menu.onMenuItemAction();",500)}}A.clicked=false;if(A.Menu.bgImageOver){A.background.src=A.Menu.bgImageUp}}else{if(window.ActiveMenu&&FIND("menuItem0")){if(A){A.style.backgroundColor=A.saveColor;if(A.hilite){A.hilite.style.visibility="hidden"}if(A.hiliteShim){A.hiliteShim.style.visibility="inherit"}if(A.Menu.bgImageUp){A.style.background="url("+A.Menu.bgImageUp+")"}}}}if(!C&&window.ActiveMenu){if(window.ActiveMenu.Menu){if(window.ActiveMenu.Menu.hideOnMouseOut){MM_startTimeout()}return(true)}}return(true)}function hideChildMenu(F){MM_clearTimeout();var B=F;for(var D=0;D<B.Menu.childMenus.length;D++){var I=B.Menu.childMenus[D];if(document.layers){I.visibility="hidden"}else{I=FIND(I);I.style.visibility="hidden";if(I.Menu.menuItemHAlign!="left"){for(var C=0;C<I.Menu.menuItemLayers.length;C++){var M=I.Menu.menuItemLayers[C];if(M.textShim){M.textShim.style.visibility="inherit"}}}}I.Menu.hideChildMenu(I)}if(B.childMenu){var K=B.childMenu;if(document.layers){B.Menu.MM_showMenu(null,null,null,K.layers[0]);K.zIndex=B.parentLayer.zIndex+1;K.top=B.Menu.menuLayer.top+B.Menu.submenuYOffset;if(B.Menu.vertical){if(B.Menu.submenuRelativeToItem){K.top+=B.top+B.parentLayer.top}K.left=B.parentLayer.left+B.parentLayer.clip.width-(2*B.Menu.menuBorder)+B.Menu.menuLayer.left+B.Menu.submenuXOffset}else{K.top+=B.top+B.parentLayer.top;if(B.Menu.submenuRelativeToItem){K.left=B.Menu.menuLayer.left+B.left+B.clip.width+(2*B.Menu.menuBorder)+B.Menu.submenuXOffset}else{K.left=B.parentLayer.left+B.parentLayer.clip.width-(2*B.Menu.menuBorder)+B.Menu.menuLayer.left+B.Menu.submenuXOffset}}if(K.left<B.Menu.container.clip.left){B.Menu.container.clip.left=K.left}var H=K.clip.width+K.left-B.Menu.container.clip.left;if(H>B.Menu.container.clip.width){B.Menu.container.clip.width=H}var E=K.clip.height+K.top-B.Menu.container.clip.top;if(E>B.Menu.container.clip.height){B.Menu.container.clip.height=E}B.document.layers[1].zIndex=0;K.visibility="inherit"}else{if(FIND("menuItem0")){K=FIND(B.childMenu);var J=FIND(B.Menu.menuLayer);var L=K.style;L.zIndex=J.style.zIndex+1;if(document.all||window.mmIsOpera){L.pixelTop=J.style.pixelTop+B.Menu.submenuYOffset;if(B.Menu.vertical){if(B.Menu.submenuRelativeToItem){L.pixelTop+=B.style.pixelTop}L.pixelLeft=B.style.pixelWidth+J.style.pixelLeft+B.Menu.submenuXOffset;L.left=L.pixelLeft+"px"}else{L.pixelTop+=B.style.pixelTop;if(B.Menu.submenuRelativeToItem){L.pixelLeft=J.style.pixelLeft+B.style.pixelLeft+B.style.pixelWidth+(2*B.Menu.menuBorder)+B.Menu.submenuXOffset}else{L.pixelLeft=(J.style.pixelWidth-4*B.Menu.menuBorder)+J.style.pixelLeft+B.Menu.submenuXOffset}L.left=L.pixelLeft+"px"}}else{var G=parseInt(J.style.top)+B.Menu.submenuYOffset;var A=0;if(B.Menu.vertical){if(B.Menu.submenuRelativeToItem){G+=parseInt(B.style.top)}A=(parseInt(J.style.width)-4*B.Menu.menuBorder)+parseInt(J.style.left)+B.Menu.submenuXOffset}else{G+=parseInt(B.style.top);if(B.Menu.submenuRelativeToItem){A=parseInt(J.style.left)+parseInt(B.style.left)+parseInt(B.style.width)+(2*B.Menu.menuBorder)+B.Menu.submenuXOffset}else{A=(parseInt(J.style.width)-4*B.Menu.menuBorder)+parseInt(J.style.left)+B.Menu.submenuXOffset}}L.top=G+"px";L.left=A+"px"}K.style.visibility="inherit"}else{return }}window.activeMenus[window.activeMenus.length]=K}}function hideActiveMenus(){if(!window.activeMenus){return }for(var A=0;A<window.activeMenus.length;A++){if(!activeMenus[A]){continue}if(activeMenus[A].visibility&&activeMenus[A].Menu&&!window.mmIsOpera){activeMenus[A].visibility="hidden";activeMenus[A].Menu.container.visibility="hidden";activeMenus[A].Menu.container.clip.left=0}else{if(activeMenus[A].style){var B=activeMenus[A].style;B.visibility="hidden";B.left="-200px";B.top="-200px"}}}if(window.ActiveMenuItem){hideMenu(false,false)}window.activeMenus.length=0}function moveXbySlicePos(A,B){if(!document.layers){var E=navigator.platform?navigator.platform=="Win32":false;var F=document.all&&!E&&getExplorerVersion()==4.5;var D=B;var C=0;while(D){if(D.leftMargin&&!E){A+=parseInt(D.leftMargin)}if((D.offsetLeft!=C)&&D.offsetLeft){A+=parseInt(D.offsetLeft)}if(D.offsetLeft!=0){C=D.offsetLeft}D=F?D.parentElement:D.offsetParent}}else{if(B.x){A+=B.x}}return A}function moveYbySlicePos(F,A){if(!document.layers){var D=navigator.platform?navigator.platform=="Win32":false;var E=document.all&&!D&&getExplorerVersion()==4.5;var C=A;var B=0;while(C){if(C.topMargin&&!D){F+=parseInt(C.topMargin)}if((C.offsetTop!=B)&&C.offsetTop){F+=parseInt(C.offsetTop)}if(C.offsetTop!=0){B=C.offsetTop}C=E?C.parentElement:C.offsetParent}}else{if(A.y>=0){F+=A.y}}return F}