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