var MenuArrow=new Image();MenuArrow.src=SubMenuArrowImage;var MenuArrowOnMouseOver=new Image();MenuArrowOnMouseOver.src=SubMenuArrowImageMouseOver;if(SubMenuColumnHeight<MenuArrow.style.height){SubMenuColumnHeight=MenuArrow.style.height}var MenuAutoCloseTimer;var MenuSpeedTimer;function HideAllSubMenus(){HideChildrenMenus(Menu,"HIDE_ALL")}document.onclick=HideAllSubMenus;function MenuVoiceOnMouseOverEffect(a,d,b,c){window.clearTimeout(MenuAutoCloseTimer);if(a){d.style.backgroundColor=SelectedVoiceBackgroundHighlighColor;document.getElementById("TextOf"+b).style.color=SelectedVoiceTextColor;document.getElementById("ArrowOf"+b).src=MenuArrowOnMouseOver.src}else{if(c=="null"){d.style.backgroundColor=SelectedVoiceBackgroundHighlighColor;document.getElementById("TextOf"+b).style.color=SelectedVoiceTextColor}else{document.getElementById("TextOf"+b).src=c}}}function MenuVoiceOnMouseOutEffect(a,d,c,b){window.clearTimeout(MenuSpeedTimer);if(MenuAutoClose>500){MenuAutoCloseTimer=window.setTimeout("HideAllSubMenus()",MenuAutoClose)}else{if(MenuAutoClose>0){MenuAutoCloseTimer=window.setTimeout("HideAllSubMenus()",500)}}if(a){d.style.backgroundColor=SubMenuBackgroundColor;document.getElementById("TextOf"+c).style.color=SubMenuTextColor;document.getElementById("ArrowOf"+c).src=MenuArrow.src}else{if(b=="null"){d.style.backgroundColor=MenuBackgroundColor;document.getElementById("TextOf"+c).style.color=MenuTextColor}else{document.getElementById("TextOf"+c).src=b}}}var spacer="border-width: 0px; visibility: hidden; height: 1px;";var Menu=new Array();var MVID=0;var MenuImages=new Array();var MenuImagesIndex=0;function MenuVoice(d,c,e,a,b){this.MenuVoiceText=d;this.MenuVoiceImage=c;this.onMouseOverImage=e;if(this.onMouseOverImage!=null){MenuImages[MenuImagesIndex]=new Image();MenuImages[MenuImagesIndex].src=this.onMouseOverImage;MenuImagesIndex++}if(MenuVoice.arguments.length>=4){this.onClickURL=a}else{this.onClickURL=null}if(MenuVoice.arguments.length==5){this.MenuVoiceColumnWidth=b}else{if(this.onMouseOverImage!=null){this.MenuVoiceColumnWidth=MenuImages[MenuImagesIndex-1].width}else{this.MenuVoiceColumnWidth=DefaultMenuColumnWidth}}this.MenuVoiceID="MV"+MVID;MVID++;this.SubMenu=new Array()}function SubMenuVoice(e,c,d,b,a){if(SubMenuVoice.arguments.length==5){return new MenuVoice(e,c,d,b,a)}else{return new MenuVoice(e,c,d,b,DefaultSubMenuColumnWidth)}}function GetParentMenuOfMenuVoice(c,b){var a,d;for(a=0;a<b.length;a++){if(b[a].MenuVoiceID==c){return b}else{d=GetParentMenuOfMenuVoice(c,b[a].SubMenu);if(d!=null){return d}}}return null}function ShowSubMenu(a){if(MenuSpeed>0){MenuSpeedTimer=window.setTimeout("onTimeoutShowSubMenu('"+a+"')",MenuSpeed)}else{onTimeoutShowSubMenu(a)}}function onTimeoutShowSubMenu(a){HideOtherSubMenus(a);if(document.getElementById("SubMenuOf"+a)){document.getElementById("SubMenuOf"+a).style.visibility="visible";document.getElementById("SubMenuOf"+a+"_SHADOW").style.visibility="visible"}}function HideOtherSubMenus(a){var b=GetParentMenuOfMenuVoice(a,Menu);HideChildrenMenus(b,a)}function HideChildrenMenus(c,a){for(var b=0;b<c.length;b++){if(c[b].MenuVoiceID!=a){HideChildrenMenus(c[b].SubMenu,null);if(c[b].SubMenu.length>0){document.getElementById("SubMenuOf"+c[b].MenuVoiceID).style.visibility="hidden";document.getElementById("SubMenuOf"+c[b].MenuVoiceID+"_SHADOW").style.visibility="hidden"}}}}var HTMLMenu="";function CreateSubMenu(f,c,b){var a;var d=f.SubMenu;var e="<table onselectstart='return false;' id='SubMenuOf"+f.MenuVoiceID+"' cellpadding='0' cellspacing='0' style='filter:progid:DXImageTransform.Microsoft.Alpha(Opacity="+SubMenuTransparency+", Style=0); border: "+SubMenuBorderWidth+"px solid "+SubMenuBorderColor+"; position: absolute; top: "+b+"px; left: "+c+"px; width: 1px; visibility: hidden;'>";var g="<table onselectstart='return false;' id='SubMenuOf"+f.MenuVoiceID+"_SHADOW' cellpadding='0' cellspacing='0' style='filter:progid:DXImageTransform.Microsoft.blur(pixelradius="+SubMenuShadowSize+", makeshadow=true, ShadowOpacity="+SubMenuShadowDarkness+"); border-width: 0px; position: absolute; top: "+b+"px; left: "+c+"px; width: 1px; visibility: hidden;'>";e+="<tr style='background-color:"+SubMenuBackgroundColor+";'><td style='width: 1px; height: 1px;'><img style='"+spacer+"' width='"+SubMenuLeftBorderSpace+"'></td><td style='width: 1px; height: 1px;'><img style='"+spacer+"' width='"+d[0].MenuVoiceColumnWidth+"'></td><td style='width: 1px; height: 1px;'><img style='"+spacer+"' width='"+SubMenuArrowWidth+"'></td></tr>";g+="<tr style='background-color: #C0C0C0;'><td style='width: 1px; height: 1px;'><img style='"+spacer+"' width='"+SubMenuLeftBorderSpace+"'></td><td style='width: 1px; height: 1px;'><img style='"+spacer+"' width='"+(d[0].MenuVoiceColumnWidth)+"'></td><td style='width: 1px; height: 1px;'><img style='"+spacer+"' width='"+SubMenuArrowWidth+"'></td></tr>";for(a=0;a<d.length;a++){e+="<tr onmouseout=\"MenuVoiceOnMouseOutEffect(true, this, '"+d[a].MenuVoiceID+"', null);\" style='background-color:"+SubMenuBackgroundColor+";";g+="<tr style='background-color: #C0C0C0;'>";if(d[a].onClickURL!=null){e+=" cursor: pointer;' onclick=\"location.href = '"+d[a].onClickURL+"'\""}else{e+=' cursor: default;\' onclick="StopEventPropagation(event);"'}if(d[a].SubMenu.length>0){CreateSubMenu(d[a],c+SubMenuLeftBorderSpace+d[0].MenuVoiceColumnWidth+SubMenuArrowWidth+(2*SubMenuBorderWidth)-SubSubMenuRecess,b+(a*SubMenuColumnHeight))}e+=" onmouseover=\"MenuVoiceOnMouseOverEffect(true, this, '"+d[a].MenuVoiceID+"', null); ShowSubMenu('"+d[a].MenuVoiceID+"')\">";e+="<td></td>";g+="<td></td>";if((SubMenuVoicesSeparator)&&(a>0)){e+="<td style='border-top: 1px solid "+SubMenuVoicesSeparatorColor+"; vertical-align: middle; font-size: 1px; height: "+SubMenuColumnHeight+"px;'>"}else{e+="<td style='vertical-align: middle; font-size: 1px; height: "+SubMenuColumnHeight+"px;'>"}g+="<td style='font-size: 1px; height: "+((a!=0)?SubMenuColumnHeight:(SubMenuColumnHeight))+"px;'></td>";e+="<div id='TextOf"+d[a].MenuVoiceID+"' style='"+SubMenuTextStyle+"'>"+d[a].MenuVoiceText+"<\div>";e+="</td>";e+="<td style='vertical-align: middle; font-size: 1px;'>";g+="<td></td>";if(d[a].SubMenu.length>0){e+="<img id='ArrowOf"+d[a].MenuVoiceID+"' src='"+MenuArrow.src+"'>"}else{e+="<img id='ArrowOf"+d[a].MenuVoiceID+"' src='"+MenuArrow.src+"' style='visibility: hidden;'>"}e+="</div></td>";e+="</tr>";g+="</tr>"}e+="</table>";g+="</table>";HTMLMenu=g+e+HTMLMenu}function StopEventPropagation(a){if(window.event){window.event.cancelBubble=true}else{a.stopPropagation()}}function CreateMenu(){var c,a;var b;var d=("<table onselectstart='return false;' style='width: 1px; border: "+MenuBorderWidth+"px; border-style: solid; border-color: "+MenuBorderColor+";' cellpadding='0' cellspacing='0'>");d+="<tr>";for(c=0;c<Menu.length;c++){d+=("<td style='width: 1px; height: 1px; background-color: "+MenuBackgroundColor+";'><img style='"+spacer+"' width='"+Menu[c].MenuVoiceColumnWidth+"'></td>")}d+="</tr>";d+="<tr>";for(c=0;c<Menu.length;c++){d+=("<td style='vertical-align: middle; font-size: 1px; color: #000000; font-family: Tahoma; height: "+MenuHeight+"px; background-color: "+MenuBackgroundColor+";");if(Menu[c].onClickURL!=null){d+=(" cursor: pointer;' onclick=\"location.href = '"+Menu[c].onClickURL+"'\"")}else{d+=' cursor: default;\' onclick="StopEventPropagation(event);"'}d+=" onmouseover=\"MenuVoiceOnMouseOverEffect(false, this, '"+Menu[c].MenuVoiceID+"', '"+Menu[c].onMouseOverImage+"');";if(Menu[c].SubMenu.length>0){b=0;for(a=0;a<c;a++){b+=(Menu[a].MenuVoiceColumnWidth+(2*MenuBorderWidth))}CreateSubMenu(Menu[c],b,MenuHeight+(2*MenuBorderWidth)+1)}d+=(" ShowSubMenu('"+Menu[c].MenuVoiceID+"')\"");d+=" onmouseout=\"MenuVoiceOnMouseOutEffect(false, this, '"+Menu[c].MenuVoiceID+"', '"+Menu[c].MenuVoiceImage+"');\"";d+=">";if(Menu[c].MenuVoiceImage!=null){d+=("<img src='"+Menu[c].MenuVoiceImage+"' id='TextOf"+Menu[c].MenuVoiceID+"' style='border-width: 0px;'>")}else{d+=("<div id='TextOf"+Menu[c].MenuVoiceID+"' style='"+MenuTextStyle+"'>"+Menu[c].MenuVoiceText+"<\div>")}d+="</td>"}d+="</tr>";d+="</table>";document.write(d+HTMLMenu)};