var alarmWindowRef=null;var sapalarmWindowRef=null;var sapMetricWindowRef=null;var liveGraphWindowRef=null;var qinsightWindowRef=null;var customDashReference=null;var currentMainPage="0";var currentLivePage="0";var currentQInsightPage="0";function dashboardOnclick(){var a=window.parent.document.getElementById("treeRefreshDiv");
if(a!=null&&a!="undefined"){a.innerHTML="";}else{a.document.getElementById("treeRefreshDiv");if(a!=null&&a!="undefined"){a.innerHTML="";}}}function openSAPalarm(){try{if(document.getElementById("hidHomePageURL").value!="/final/monitor/EgAlarms.jsp"){var c=998;var a=(document.body.clientWidth/2)-(c/2);
var b=(document.body.clientHeight/2)-200;if(sapalarmWindowRef==null){sapalarmWindowRef=window.openWindow("/final/monitor/egSAPAlert.jsp?currentMainPage=NotAlarms","SAPAlarmWindow"+document.getElementById("usrSession").value,"width="+c+",height=500,left="+a+",top="+b+",scrollbars=1,scrollbars=yes,resizable,toolbar=no,status=no");
}else{if(sapalarmWindowRef!=null){try{if(sapalarmWindowRef.focus()==undefined){sapalarmWindowRef=null;sapalarmWindowRef=window.openWindow("/final/monitor/egSAPAlert.jsp?currentMainPage=NotAlarms","SAPAlarmWindow"+document.getElementById("usrSession").value,"width="+c+",height=500,left="+a+",top="+b+",scrollbars=1,scrollbars=yes,resizable,toolbar=no,status=no");
}else{setTimeout(sapalarmWindowRef.focus(),1);}}catch(d){sapalarmWindowRef=null;sapalarmWindowRef=window.openWindow("/final/monitor/egSAPAlert.jsp?currentMainPage=NotAlarms","SAPAlarmWindow"+document.getElementById("usrSession").value,"width="+c+",height=500,left="+a+",top="+b+",scrollbars=1,scrollbars=yes,resizable,toolbar=no,status=no");
}}}}else{if(currentMainPage=="0"){var c=998;var a=(document.body.clientWidth/2)-(c/2);var b=(document.body.clientHeight/2)-200;if(sapalarmWindowRef==null){sapalarmWindowRef=window.openWindow("/final/monitor/egSAPAlert.jsp?currentMainPage=NotAlarms","SAPAlarmWindow"+document.getElementById("usrSession").value,"width="+c+",height=500,left="+a+",top="+b+",scrollbars=1,scrollbars=yes,resizable,toolbar=no,status=no");
}else{if(sapalarmWindowRef!=null){try{if(sapalarmWindowRef.focus()==undefined){sapalarmWindowRef=null;sapalarmWindowRef=window.openWindow("/final/monitor/egSAPAlert.jsp?currentMainPage=NotAlarms","SAPAlarmWindow"+document.getElementById("usrSession").value,"width="+c+",height=500,left="+a+",top="+b+",scrollbars=1,scrollbars=yes,resizable,toolbar=no,status=no");
}else{setTimeout(sapalarmWindowRef.focus(),1);}}catch(d){sapalarmWindowRef=null;sapalarmWindowRef=window.openWindow("/final/monitor/egSAPAlert.jsp?currentMainPage=NotAlarms","SAPAlarmWindow"+document.getElementById("usrSession").value,"width="+c+",height=500,left="+a+",top="+b+",scrollbars=1,scrollbars=yes,resizable,toolbar=no,status=no");
}}}}}}catch(d){alert(d);}}function openSAPMetric(){try{if(document.getElementById("hidHomePageURL").value!="/final/monitor/egSAPMetric.jsp"){var c=998;var a=(document.body.clientWidth/2)-(c/2);var b=(document.body.clientHeight/2)-270;if(sapMetricWindowRef==null){sapMetricWindowRef=window.openWindow("/final/monitor/egSAPMetric.jsp?currentMainPage=NotAlarms","SAPMetricWindow"+document.getElementById("usrSession").value,"width="+c+",height=540,left="+a+",top="+b+",scrollbars=1,scrollbars=yes,resizable,toolbar=no,status=no");
}else{if(sapMetricWindowRef!=null){try{if(sapMetricWindowRef.focus()==undefined){sapMetricWindowRef=null;sapMetricWindowRef=window.openWindow("/final/monitor/egSAPMetric.jsp?currentMainPage=NotAlarms","SAPMetricWindow"+document.getElementById("usrSession").value,"width="+c+",height=540,left="+a+",top="+b+",scrollbars=1,scrollbars=yes,resizable,toolbar=no,status=no");
}else{setTimeout(sapMetricWindowRef.focus(),1);}}catch(d){sapMetricWindowRef=null;sapMetricWindowRef=window.openWindow("/final/monitor/egSAPMetric.jsp?currentMainPage=NotAlarms","SAPMetricWindow"+document.getElementById("usrSession").value,"width="+c+",height=540,left="+a+",top="+b+",scrollbars=1,scrollbars=yes,resizable,toolbar=no,status=no");
}}}}else{if(currentMainPage=="0"){var c=998;var a=(document.body.clientWidth/2)-(c/2);var b=(document.body.clientHeight/2)-270;if(sapMetricWindowRef==null){sapMetricWindowRef=window.open("/final/monitor/egSAPMetric.jsp?currentMainPage=NotAlarms","SAPMetricWindow"+document.getElementById("usrSession").value,"width="+c+",height=540,left="+a+",top="+b+",scrollbars=1,scrollbars=yes,resizable,toolbar=no,status=no");
}else{if(sapMetricWindowRef!=null){try{if(sapMetricWindowRef.focus()==undefined){sapMetricWindowRef=null;sapMetricWindowRef=window.open("/final/monitor/egSAPMetric.jsp?currentMainPage=NotAlarms","SAPMetricWindow"+document.getElementById("usrSession").value,"width="+c+",height=540,left="+a+",top="+b+",scrollbars=1,scrollbars=yes,resizable,toolbar=no,status=no");
}else{setTimeout(sapMetricWindowRef.focus(),1);}}catch(d){sapMetricWindowRef=null;sapMetricWindowRef=window.open("/final/monitor/egSAPMetric.jsp?currentMainPage=NotAlarms","SAPMetricWindow"+document.getElementById("usrSession").value,"width="+c+",height=540,left="+a+",top="+b+",scrollbars=1,scrollbars=yes,resizable,toolbar=no,status=no");
}}}}}}catch(d){alert(d);}}function removeSearchValue(){var a=Ext.getCmp("egsearches").getValue();var b=Ext.getCmp("searchCombo").getValue();var c=null;if(window.XMLHttpRequest){c=new XMLHttpRequest();if(c.overrideMimeType){c.overrideMimeType("text");}}else{if(window.ActiveXObject){try{c=new ActiveXObject("Msxml2.XMLHTTP");
}catch(f){try{c=new ActiveXObject("Microsoft.XMLHTTP");}catch(f){}}}}c.open("POST","/final/servlet/com.eg.EgSearchController?removesession=yes&searchType="+b+"&searchValue="+a,false);c.send(null);var g=null;if(opener!=null&&opener!=undefined){g=opener.window.parent.Ext.getCmp("egsearches");}else{if(window.parent!=null&&window.parent!=undefined){g=window.parent.Ext.getCmp("egsearches");
}}if(!Ext.isEmpty(g)&&g!=null&&g!="undefined"){if(opener!=null&&opener!=undefined){opener.window.parent.Ext.getCmp("egsearches").setValue("");opener.window.parent.serviceSearchval="";opener.window.parent.segmentSearchval="";opener.window.parent.zoneSearchval="";opener.window.parent.serverSearchval="";
}else{if(window.parent!=null&&window.parent!=undefined){window.parent.Ext.getCmp("egsearches").setValue("");window.parent.serviceSearchval="";window.parent.segmentSearchval="";window.parent.zoneSearchval="";window.parent.serverSearchval="";}}}var d=Ext.getCmp("egsearches");if(!Ext.isEmpty(d)&&d!=null&&d!="undefined"){d.setValue("");
}}function setValue(b){removeSessionsMethod();removeSearchValue();if(document.getElementById("hidHomePageURL").value=="/final/monitor/EgAlarms.jsp"){if(alarmWindowRef!=null){alarmWindowRef.close();alarmWindowRef=null;}}currentMainPage=b;enablelocalsearch();var a=document.getElementById("alarmsListDiv");
if(a!=null){closeDiv();}}function setValueForLive(a){currentLivePage=a;}function setValueForQInsight(a){currentQInsightPage=a;}function openalarm(){try{if(document.getElementById("hidHomePageURL").value!="/final/monitor/EgAlarms.jsp"){var c=998;var a=(document.body.clientWidth/2)-(c/2);var b=(document.body.clientHeight/2)-200;
if(alarmWindowRef==null){alarmWindowRef=window.open("/final/monitor/EgAlarms.jsp?currentMainPage=NotAlarms&newWindowAlarm=true","AlarmWindow"+document.getElementById("usrSession").value,"width="+c+",height=500,left="+a+",top="+b+",scrollbars=1,scrollbars=yes,resizable,toolbar=no,status=no");}else{if(alarmWindowRef!=null){try{if(alarmWindowRef.focus()==undefined){alarmWindowRef=null;
alarmWindowRef=window.open("/final/monitor/EgAlarms.jsp?currentMainPage=NotAlarms&newWindowAlarm=true","AlarmWindow"+document.getElementById("usrSession").value,"width="+c+",height=500,left="+a+",top="+b+",scrollbars=1,scrollbars=yes,resizable,toolbar=no,status=no");}else{setTimeout(alarmWindowRef.focus(),1);
}}catch(d){alarmWindowRef=null;alarmWindowRef=window.open("/final/monitor/EgAlarms.jsp?currentMainPage=NotAlarms&newWindowAlarm=true","AlarmWindow"+document.getElementById("usrSession").value,"width="+c+",height=400,left="+a+",top="+b+",scrollbars=1,scrollbars=yes,resizable,toolbar=no,status=no");}}}}else{if(currentMainPage=="0"){var c=998;
var a=(document.body.clientWidth/2)-(c/2);var b=(document.body.clientHeight/2)-200;if(alarmWindowRef==null){alarmWindowRef=window.open("/final/monitor/EgAlarms.jsp?currentMainPage=NotAlarms&newWindowAlarm=true","AlarmWindow"+document.getElementById("usrSession").value,"width="+c+",height=400,left="+a+",top="+b+",scrollbars=1,scrollbars=yes,resizable,toolbar=no,status=no");
}else{if(alarmWindowRef!=null){try{if(alarmWindowRef.focus()==undefined){alarmWindowRef=null;alarmWindowRef=window.open("/final/monitor/EgAlarms.jsp?currentMainPage=NotAlarms&newWindowAlarm=true","AlarmWindow"+document.getElementById("usrSession").value,"width="+c+",height=400,left="+a+",top="+b+",scrollbars=1,scrollbars=yes,resizable,toolbar=no,status=no");
}else{setTimeout(alarmWindowRef.focus(),1);}}catch(d){alarmWindowRef=null;alarmWindowRef=window.open("/final/monitor/EgAlarms.jsp?currentMainPage=NotAlarms&newWindowAlarm=true","AlarmWindow"+document.getElementById("usrSession").value,"width="+c+",height=400,left="+a+",top="+b+",scrollbars=1,scrollbars=yes,resizable,toolbar=no,status=no");
}}}}}}catch(d){alert(d);}}function liveGraph(){if(document.getElementById("hidHomePageURL").value!="/final/monitor/livegraph/EgLiveGraphHome.jsp"){if(liveGraphWindowRef==null){liveGraphWindowRef=parent.openWindow("/final/monitor/livegraph/EgLiveGraphHome.jsp?newWindow=true","liveGraph","toolbar=no,menubar=no,location=no,status=no,width=1000,height=700,left=10,top=10,screenx=0,screeny=0,resizable=yes,scrollbars=1,scrollbars=yes");
}else{if(liveGraphWindowRef!=null){try{if(liveGraphWindowRef.focus()==undefined){liveGraphWindowRef=null;liveGraphWindowRef=parent.openWindow("/final/monitor/livegraph/EgLiveGraphHome.jsp?newWindow=true","liveGraph","toolbar=no,menubar=no,location=no,status=no,width=1000,height=700,left=10,top=10,screenx=0,screeny=0,resizable=yes,scrollbars=1,scrollbars=yes");
}else{setTimeout(liveGraphWindowRef.focus(),1);}}catch(d){liveGraphWindowRef=null;liveGraphWindowRef=parent.openWindow("/final/monitor/livegraph/EgLiveGraphHome.jsp?newWindow=true","liveGraph","toolbar=no,menubar=no,location=no,status=no,width=1000,height=700,left=10,top=10,screenx=0,screeny=0,resizable=yes,scrollbars=1,scrollbars=yes");
}}}}else{if(currentLivePage=="0"){var c=998;var a=(document.body.clientWidth/2)-(c/2);var b=(document.body.clientHeight/2)-200;if(liveGraphWindowRef==null){liveGraphWindowRef=parent.openWindow("/final/monitor/livegraph/EgLiveGraphHome.jsp?newWindow=true","liveGraph","toolbar=no,menubar=no,location=no,status=no,width=1000,height=700,left=10,top=10,screenx=0,screeny=0,resizable=yes,scrollbars=1,scrollbars=yes");
}else{if(liveGraphWindowRef!=null){try{if(liveGraphWindowRef.focus()==undefined){liveGraphWindowRef=null;liveGraphWindowRef=parent.openWindow("/final/monitor/livegraph/EgLiveGraphHome.jsp?newWindow=true","liveGraph","toolbar=no,menubar=no,location=no,status=no,width=1000,height=700,left=10,top=10,screenx=0,screeny=0,resizable=yes,scrollbars=1,scrollbars=yes");
}else{setTimeout(liveGraphWindowRef.focus(),1);}}catch(d){liveGraphWindowRef=null;liveGraphWindowRef=parent.openWindow("/final/monitor/livegraph/EgLiveGraphHome.jsp?newWindow=true","liveGraph","toolbar=no,menubar=no,location=no,status=no,width=1000,height=700,left=10,top=10,screenx=0,screeny=0,resizable=yes,scrollbars=1,scrollbars=yes");
}}}}}}function quickInSight(){if(document.getElementById("hidHomePageURL").value!="/final/monitor/qinsight/EgQInsightHome.jsp"){if(qinsightWindowRef==null){qinsightWindowRef=parent.openWindow("/final/monitor/qinsight/EgQInsightHome.jsp?newWindow=true","quickIn","toolbar=no,menubar=no,location=no,status=no,width=1000,height=700,left=10,top=10,screenx=0,screeny=0,resizable=yes,scrollbars=1,scrollbars=yes");
}else{try{if(qinsightWindowRef.focus()==undefined){qinsightWindowRef=null;qinsightWindowRef=parent.openWindow("/final/monitor/qinsight/EgQInsightHome.jsp?newWindow=true","quickIn","toolbar=no,menubar=no,location=no,status=no,width=1000,height=700,left=10,top=10,screenx=0,screeny=0,resizable=yes,scrollbars=1,scrollbars=yes");
}else{setTimeout(qinsightWindowRef.focus(),1);}}catch(d){qinsightWindowRef=null;qinsightWindowRef=parent.openWindow("/final/monitor/qinsight/EgQInsightHome.jsp?newWindow=true","quickIn","toolbar=no,menubar=no,location=no,status=no,width=1000,height=700,left=10,top=10,screenx=0,screeny=0,resizable=yes,scrollbars=1,scrollbars=yes");
}}}else{if(currentQInsightPage=="0"){var c=998;var a=(document.body.clientWidth/2)-(c/2);var b=(document.body.clientHeight/2)-200;if(qinsightWindowRef==null){qinsightWindowRef=parent.openWindow("/final/monitor/qinsight/EgQInsightHome.jsp?newWindow=true","quickIn","toolbar=no,menubar=no,location=no,status=no,width=1000,height=700,left=10,top=10,screenx=0,screeny=0,resizable=yes,scrollbars=1,scrollbars=yes");
}else{if(qinsightWindowRef!=null){try{if(qinsightWindowRef.focus()==undefined){qinsightWindowRef=null;qinsightWindowRef=parent.openWindow("/final/monitor/qinsight/EgQInsightHome.jsp?newWindow=true","quickIn","toolbar=no,menubar=no,location=no,status=no,width=1000,height=700,left=10,top=10,screenx=0,screeny=0,resizable=yes,scrollbars=1,scrollbars=yes");
}else{setTimeout(qinsightWindowRef.focus(),1);}}catch(d){qinsightWindowRef=null;qinsightWindowRef=parent.openWindow("/final/monitor/qinsight/EgQInsightHome.jsp?newWindow=true","quickIn","toolbar=no,menubar=no,location=no,status=no,width=1000,height=700,left=10,top=10,screenx=0,screeny=0,resizable=yes,scrollbars=1,scrollbars=yes");
}}}}}}function customDashboard(){if(isDisableMydashboardPopout=="true"){var a=screen.width;var b=screen.height;if(a!=null&&a>700){a=a-20;}if(b!=null&&b>600){b=b-110;}if(customDashReference==null){customDashReference=parent.openWindow("/final/monitor/MyDashboard.jsp?newWindow=true","CustomDashboard","toolbar=no,menubar=no,location=no,status=no,width="+a+",height="+b+",left=10,top=10,screenx=0,screeny=0,resizable=yes,scrollbars=1,scrollbars=yes");
}else{try{if(customDashReference.focus().trim()=="undefined"){customDashReference=null;customDashReference=parent.openWindow("/final/monitor/MyDashboard.jsp?newWindow=true","CustomDashboard","toolbar=no,menubar=no,location=no,status=no,width="+a+",height="+b+",left=10,top=10,screenx=0,screeny=0,resizable=yes,scrollbars=1,scrollbars=yes");
}else{setTimeout(customDashReference.focus(),1);}}catch(c){customDashReference=null;customDashReference=parent.openWindow("/final/monitor/MyDashboard.jsp?newWindow=true","CustomDashboard","toolbar=no,menubar=no,location=no,status=no,width="+a+",height="+b+",left=10,top=10,screenx=0,screeny=0,resizable=yes,scrollbars=1,scrollbars=yes");
}}}else{document.getElementById("main").src="/final/monitor/MyDashboard.jsp";}}function showQuickLink(){var a=document.getElementById("quickLinkDiv");if(a!=null){a.style.display="block";}}function hideQuickLink(){var a=document.getElementById("quickLinkDiv");if(a!=null){a.style.display="none";}}function enablelocalsearch(){try{window.parent.globalsearch=false;
if(window.parent.lastTabQueryString!=null&&window.parent.lastTabQueryString!=undefined&&window.parent.lastTabQueryString!=""&&window.parent.lastTabQueryString.indexOf("fromPage=GlobalSearch")>0){window.parent.lastTabQueryString=window.parent.lastTabQueryString.substring(0,window.parent.lastTabQueryString.indexOf("fromPage=GlobalSearch"));
}}catch(a){globalsearch=false;}}function removeSessionsMethod(){var a=null;if(window.XMLHttpRequest){a=new XMLHttpRequest();if(a.overrideMimeType){a.overrideMimeType("text");}}else{if(window.ActiveXObject){try{a=new ActiveXObject("Msxml2.XMLHTTP");}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP");
}catch(b){}}}}a.open("GET","/final/monitor/egRemoveSession.jsp",false);a.send(null);}var mapEnabled=document.getElementById("mapLicense").value;var HomePage=document.getElementById("hidHomePage").value;var HomePageURL=document.getElementById("hidHomePageURL").value;var isCustomDashboardEnabled=document.getElementById("isCustomDashboardEnabled").value;
var menuForVM=document.getElementById("menuForVM").value;var hasVMs=document.getElementById("hasVMs").value;var enableServiceHealth=document.getElementById("enableServiceHealth").value;var enableEndUserDashboard=document.getElementById("enableEndUserDashboard").value;var usersByLocation=document.getElementById("usersByLocation").value;
var enableUEDSubMenu=document.getElementById("enableUEDSubMenu").value;var enableHighUEDSubMenu=document.getElementById("enableHighUEDSubMenu").value;var subMenuUEDStr=document.getElementById("subMenuUEDStr").value;var enableUEDSepMenu=document.getElementById("enableUEDSepMenu").value;var sepMenuUEDStr=document.getElementById("sepMenuUEDStr").value;
var enableCitrixCloudMenu=document.getElementById("enableCitrixCloudMenu").value;var enableVMUEDSubMenu=document.getElementById("enableVMUEDSubMenu").value;var subMenuVMUEDStr=document.getElementById("subMenuVMUEDStr").value;var subMenuHighUEDStr=document.getElementById("subMenuHighUEDStr").value;var enableSEUMDashboard=document.getElementById("enableSEUMDashboard").value;
var enableRUM=document.getElementById("enableRUM").value;var isSuperManager=document.getElementById("isSuperManager").value;var enableLogonSubMenu=document.getElementById("enableLogonSubMenu").value;var em_default_url=document.getElementById("em_default_url").value;var subMenuLogonStr=document.getElementById("subMenuLogonStr").value;
var enableLogonSimulator=document.getElementById("enableLogonSimulator").value;var menuSupportStr=document.getElementById("menuSupportStr").value;var enableSapAbapInMenu=document.getElementById("enableSapAbapInMenu").value;var enableSapPlatformInMenu=document.getElementById("enableSapPlatformInMenu").value;
var enableSapDashboardsInMenu=document.getElementById("enableSapDashboardsInMenu").value;function getstrMegaMonitor(T){var Q=document.getElementById("mapLicense").value;var x=document.getElementById("hidHomePage").value;var V=document.getElementById("hidHomePageURL").value;var Y=document.getElementById("isCustomDashboardEnabled").value;
var s=document.getElementById("menuForVM").value;var K=document.getElementById("menuForVMAlso").value;var b=document.getElementById("hasVMs").value;var p=document.getElementById("enableServiceHealth").value;var u=document.getElementById("enableEndUserDashboard").value;var n=document.getElementById("enableHighUserProfile").value;
var W=document.getElementById("usersByLocation").value;var g=document.getElementById("grpByUsrTypes").value;var a=document.getElementById("enableUEDSubMenu").value;var z=document.getElementById("enableHighUEDSubMenu").value;var F=document.getElementById("subMenuUEDStr").value;var S=document.getElementById("enableUEDSepMenu").value;
var e=document.getElementById("sepMenuUEDStr").value;var C=document.getElementById("enableCitrixCloudMenu").value;var A=document.getElementById("enableVMUEDSubMenu").value;var O=document.getElementById("subMenuVMUEDStr").value;var E=document.getElementById("subMenuHighUEDStr").value;var c=document.getElementById("enableSEUMDashboard").value;
var o=document.getElementById("enableRUM").value;var j=document.getElementById("hasRemoteControlEnabled").value;var v=document.getElementById("rcEnabled").value;var H=document.getElementById("isDdEnabled").value;var U=document.getElementById("enableLogonSubMenu").value;var q=document.getElementById("em_default_url").value;
var i=document.getElementById("subMenuLogonStr").value;var k=document.getElementById("enableLogonSimulator").value;var N=document.getElementById("menuSupportStr").value;var I=document.getElementById("enableSapAbapInMenu").value;var f=document.getElementById("enableSapPlatformInMenu").value;var r=document.getElementById("enableSapDashboardsInMenu").value;
var y=N.split(",");var l=document.getElementById("defaultUserType").value;var t=document.getElementById("defaultVDIDashType").value;var G=false;if(c!=null&&c!=undefined&&(c=="true"||c=="yes")){G=true;}var J=false;if(!Ext.isEmpty(W)&&W!=null&&W!=undefined&&(W=="true"||W=="yes")){J=true;}if(!T){var m="<ul id='menu'>";
m+="<li>";m+="<div class='dropdown_3columns' id='dropdownhidemonitor' style='left:-100px'>";}else{var m="";}m+="<div class='col_1_alter' style='border:0px solid green;height:200px;width:210px'>";m+="<div style='position:absolute;bottom:0px; right:0px;margin-right:10px;margin-bottom:10px;'><div class='menu_dashboard'></div></div>";
m+="<ul>";m+="<li class='headFont hoverLinkPadding'>"+_dashboards+"</li>";m+="<li>";m+="<ul>";if(V=="/final/servlet/com.eg.EgMonitorController?monCmd=dashboard"){currentMainPage="0";if(s=="false"){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/servlet/com.eg.EgMonitorController?monCmd=dashboard'>"+_home+"</a></li>";
}}else{if(V=="/final/monitor/EgAlarms.jsp"){if(s=="false"){currentMainPage="1";m+="<li><a target='main' onclick='setValue(1);setValueForLive(0);setValueForQInsight(0);' href='/final/monitor/EgAlarms.jsp'>"+_home+"</a></li>";m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/servlet/com.eg.EgMonitorController?monCmd=dashboard'>"+_dashboard+"</a></li>";
}}else{if(V!="/final/monitor/EgAlarms.jsp"&&V!="/final/servlet/com.eg.EgMonitorController?monCmd=dashboard"){if(s=="false"){currentMainPage="0";m+="<li><a id='monitor_homepage_anch' target='main' onclick='setValue(1);setValueForLive(1);setValueForQInsight(1)' href='"+V+"'>"+_home+"</a></li>";m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/servlet/com.eg.EgMonitorController?monCmd=dashboard'>"+_dashboard+"</a></li>";
}}}}if(Y!=null&&Y=="true"){if(s=="false"&&unauthuserpage.hasMyDashboardEnabled=="true"){m+="<li class='forSubMenu'><a  href='javascript:void(0)'>"+_CustomDashboard+"<image src='/final/images/"+egTheme+"/arrow.gif' hspace='10'></a>";m+="<ul class='subMenu new_subMenu'>";m+="<li><a target='main' onclick='javascript:customDashboard();setValue(0);' href='javascript:void(0)' >Dashboards</a></li>";
m+="<li><a href='/final/monitor/EgTemplateList.jsp' target='main' >"+_templates+"</a></li>";m+="</ul>";m+="</li>";}}if(s=="false"&&y.indexOf("Business")>-1&&isSuperManager=="false"){m+="<li><a target='main' onclick='enablelocalsearch();setValue(0);setValueForLive(0);setValueForQInsight(0);'  href='/final/servlet/com.eg.EgMonitorController?monCmd=serviceList&from=MainDashboard&action=service&isServiceBusiDash=true&isFromMenu=true'>"+_serviceBusiDash+"</a></li>";
}if(G&&s=="false"&&y.indexOf("Synthetic Monitoring")>-1){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='"+q+"'>"+_seumDashSimulations+"</a></li>";}else{if((G||!G)&&s=="false"&&y.indexOf("Simulations")>-1){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='"+q+"'>"+_seumDashSimulations+"</a></li>";
}else{if(s=="false"&&G){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='"+q+"'>"+_seumDashSimulations+"</a></li>";}}}if(s=="false"&&unauthuserpage.hasQuickInsightEnabled=="true"&&isSuperManager=="false"){if(o!=null&&o!=undefined&&(o=="true"||o=="yes")&&y.indexOf("Web")>-1){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/realUserMonitorsDashboard.jsp'>"+_realUserDash+"</a></li>";
}}if(G&&s=="false"&&y.indexOf("Microsoft")>-1){m+="<li><a target='main' href='/final/monitor/microsoftDashboard.jsp?iniName=eg_msdashboard&userBased=true&fromMenu=true&showConfig=true&active_view=overview_view&firstTimeHit=true'>"+_microsoft+"</a></li>";}if(s=="true"){m+="<li><a target='main' onclick='javascript:customDashboard();setValue(0);' href='javascript:void(0)' >"+_CustomDashboard+"</a></li>";
}if(y.indexOf("Citrix/VDI")>-1||y.indexOf("Citrix")>-1||y.indexOf("VDI")>-1){if(s=="false"&&K=="false"){if(y.indexOf("Citrix/VDI")>-1){m+="<li class='forSubMenu'><a href='javascript:void(0)'>"+_citrixVdi+"<image src='/final/images/"+egTheme+"/arrow.gif' hspace='10'></a>";}else{if(y.indexOf("Citrix")>-1){m+="<li class='forSubMenu'><a href='javascript:void(0)'>"+_citrix+"<image src='/final/images/"+egTheme+"/arrow.gif' hspace='10'></a>";
}else{if(y.indexOf("VDI")>-1){m+="<li class='forSubMenu'><a href='javascript:void(0)'>"+_vdi+"<image src='/final/images/"+egTheme+"/arrow.gif' hspace='10'></a>";}}}}if(s=="false"&&K=="false"){m+="<ul class='subMenu'>";}if(y.indexOf("Netscaler Request Flow")>-1){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/netScaler.jsp?isFromMenu=true'>"+_citrixNetscaler+"</a></li>";
}if(s=="false"&&K=="false"&&unauthuserpage.hasQuickInsightEnabled=="true"){if((u!=null&&u!=undefined&&(u=="true"||u=="yes"))||J){if(a!=null&&a!=undefined&&(a.toLowerCase()=="true"||a.toLowerCase()=="yes")){if(F!=null&&F!=undefined){var B=F.split(",");var d=true;if(l!=""&&l!=null&&l!=undefined&&B.indexOf(l)>-1){if(J&&(g!=null&&g.indexOf(l)>-1)){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+l+"&fromMenu=true&endUserDashOverview=true'>"+_endUserDash+"</a></li>";
}else{m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+l+"&fromMenu=true'>"+_endUserDash+"</a></li>";}}else{if(B.indexOf("VDI")>-1&&B.indexOf("XenApp")==-1&&B.indexOf("XenApp7")==-1){if(J&&(g!=null&&g.indexOf("VDI")>-1)){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType=VDI&fromMenu=true&endUserDashOverview=true'>"+_endUserDash+"</a></li>";
}else{m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType=VDI&fromMenu=true'>"+_endUserDash+"</a></li>";}}else{if(B.indexOf("XenApp")>-1||B.indexOf("XenApp7")>-1){var R="XenApp7";if(B.indexOf("XenApp7")==-1&&B.indexOf("XenApp")>-1){R="XenApp";
}if(d){if(J&&(g!=null&&g.indexOf(R)>-1)){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+R+"&fromMenu=true&endUserDashOverview=true'>"+_endUserDash+"</a></li>";}else{m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+R+"&fromMenu=true'>"+_endUserDash+"</a></li>";
}d=false;}}}}}m+="</li>";}else{if(F!=null&&F!=undefined){if(J&&(g!=null&&g.indexOf(F)>-1)){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+F+"&fromMenu=true&endUserDashOverview=true'>"+_endUserDash+"</a></li>";
}else{m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+F+"&fromMenu=true'>"+_endUserDash+"</a></li>";}}}if(n!=null&&n!=undefined&&(n=="true"||n=="yes")){if(z!=null&&z!=undefined&&(z.toLowerCase()=="true"||z.toLowerCase()=="yes")){m+="<li class='forSubMenu'><a href='javascript:void(0)'>"+_endHighUserDash+"<image src='/final/images/"+egTheme+"/arrow.gif' hspace='10'></a>";
m+="<ul class='subMenu'>";if(E!=null&&E!=undefined){var B=E.split(",");var d=true;for(var M=0;M<B.length;M++){var R=B[M];if(R!=null&&R!=undefined){if(R=="VDI"){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+R+"&fromMenu=true&showKeyUser=true'>"+_endHighUserDashSubVDI+"</a></li>";
}else{if(R=="XenApp"||R=="XenApp7"){if(d){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+R+"&fromMenu=true&showKeyUser=true'>"+_endHighUserDashSubXenApp+"</a></li>";d=false;}}else{if(R=="Terminal"){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+R+"&fromMenu=true&showKeyUser=true'>"+_endHighUserDashSubTerminal+"</a></li>";
}else{if(R=="ESX"){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+R+"&fromMenu=true&showKeyUser=true'>"+_endHighUserDashSubEsx+"</a></li>";}}}}}}}m+="</ul>";m+="</li>";}else{if(E!=null&&E!=undefined){if(E=="VDI"){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+E+"&fromMenu=true&showKeyUser=true'>"+_endHighUserDash+"</a></li>";
}else{if(E=="XenApp"){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType=XenApp&fromMenu=true&showKeyUser=true'>"+_endHighUserDash+"</a></li>";}else{if(E=="XenApp7"){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType=XenApp7&fromMenu=true&showKeyUser=true'>"+_endHighUserDash+"</a></li>";
}else{if(E=="Terminal"){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType=Terminal&fromMenu=true&showKeyUser=true'>"+_endHighUserDash+"</a></li>";}else{if(E=="ESX"){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType=ESX&fromMenu=true&showKeyUser=true'>"+_endHighUserDash+"</a></li>";
}}}}}}}}}}else{if(s=="true"||K=="true"){if((u!=null&&u!=undefined&&(u=="true"||u=="yes"))||J){if(a!=null&&a!=undefined&&(a.toLowerCase()=="true"||a.toLowerCase()=="yes")){if(F!=null&&F!=undefined){var B=F.split(",");var d=true;if(l!=""&&l!=null&&l!=undefined&&B.indexOf(l)>-1){if(J&&(g!=null&&g.indexOf(l)>-1)){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+l+"&fromMenu=true&endUserDashOverview=true'>"+_endUserDash+"</a></li>";
}else{m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+l+"&fromMenu=true'>"+_endUserDash+"</a></li>";}}else{if(B.indexOf("VDI")>-1&&B.indexOf("XenApp")==-1&&B.indexOf("XenApp7")==-1){if(J&&(g!=null&&g.indexOf("VDI")>-1)){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType=VDI&fromMenu=true&endUserDashOverview=true'>"+_endUserDash+"</a></li>";
}else{m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType=VDI&fromMenu=true'>"+_endUserDash+"</a></li>";}}else{if(B.indexOf("XenApp")>-1||B.indexOf("XenApp7")>-1){var R="XenApp7";if(B.indexOf("XenApp7")==-1&&B.indexOf("XenApp")>-1){R="XenApp";
}if(d){if(J&&(g!=null&&g.indexOf(R)>-1)){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+R+"&fromMenu=true&endUserDashOverview=true'>"+_endUserDash+"</a></li>";}else{m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+R+"&fromMenu=true'>"+_endUserDash+"</a></li>";
}d=false;}}}}}m+="</li>";}else{if(F!=null&&F!=undefined){if(J&&(g!=null&&g.indexOf(F)>-1)){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+F+"&fromMenu=true&endUserDashOverview=true'>"+_endUserDash+" "+_Dependencies+"</a></li>";
}else{m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+F+"&fromMenu=true'>"+_endUserDash+" "+_Dependencies+"</a></li>";}}}if(n!=null&&n!=undefined&&(n=="true"||n=="yes")){if(z!=null&&z!=undefined&&(z.toLowerCase()=="true"||z.toLowerCase()=="yes")){m+="<li class='forSubMenu'><a href='javascript:void(0)'>"+_endHighUserDash+"<image src='/final/images/"+egTheme+"/arrow.gif' hspace='10'></a>";
m+="<ul class='subMenu'>";if(E!=null&&E!=undefined){var B=E.split(",");var d=true;for(var M=0;M<B.length;M++){var R=B[M];if(R!=null&&R!=undefined){if(R=="VDI"){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+R+"&fromMenu=true&showKeyUser=true'>"+_endHighUserDashSubVDI+"</a></li>";
}else{if(R=="XenApp"||R=="XenApp7"){if(d){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+R+"&fromMenu=true&showKeyUser=true'>"+_endHighUserDashSubXenApp+"</a></li>";d=false;}}else{if(R=="Terminal"){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+R+"&fromMenu=true&showKeyUser=true'>"+_endHighUserDashSubTerminal+"</a></li>";
}else{if(R=="ESX"){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+R+"&fromMenu=true&showKeyUser=true'>"+_endHighUserDashSubEsx+"</a></li>";}}}}}}}m+="</ul>";m+="</li>";}else{if(E!=null&&E!=undefined){if(E=="VDI"){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType="+E+"&fromMenu=true&showKeyUser=true'>"+_endHighUserDash+"</a></li>";
}else{if(E=="XenApp"){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType=XenApp&fromMenu=true&showKeyUser=true'>"+_endHighUserDash+"</a></li>";}else{if(E=="XenApp7"){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType=XenApp7&fromMenu=true&showKeyUser=true'>"+_endHighUserDash+"</a></li>";
}else{if(E=="Terminal"){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType=Terminal&fromMenu=true&showKeyUser=true'>"+_endHighUserDash+"</a></li>";}else{if(E=="ESX"){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType=ESX&fromMenu=true&showKeyUser=true'>"+_endHighUserDash+"</a></li>";
}}}}}}}}}}}if(C!=null&&(C=="true"||C=="yes")&&y.indexOf("Citrix Infrastructure")>-1){m+="<li><a target='main' onclick='' href='/final/monitor/EgCitrixDashCloud.jsp?activeView=homePage'>Citrix Performance Overview</a></li>";}if(y.indexOf("Virtual Apps")>-1){m+="<li><a target='main' href='/final/monitor/citrixDashboard.jsp?iniName=eg_citrixdashboard&userBased=true&fromMenu=true&showConfig=true&dashboard_name=Citrix_Dashboard&dashboard_type=VirtualAppsDashboard'>"+_VirtualApps+"</a></li>";
}if(y.indexOf("Virtual Desktops")>-1){m+="<li><a target='main' href='/final/monitor/citrixDashboard.jsp?iniName=eg_citrixdashboard&userBased=true&fromMenu=true&showConfig=true&dashboard_name="+t+"&dashboard_type=VirtualDesktopsDashboard'>"+_VirtualDesktops+"</a></li>";}if(s=="false"&&K=="false"){m+="</ul>";
m+="</li>";}}var h="";if(S!=null&&S!=undefined&&(S.toLowerCase()=="true"||S.toLowerCase()=="yes")){if(e!=null&&e!=undefined){var B=e.split(",");var d=true;for(var M=0;M<B.length;M++){var R=B[M];if(R!=null&&R!=undefined){if(R=="VCDataStore"){h="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType=VCDataStore&fromMenu=true'>"+_endUserDashSubVCDataStore+"</a></li>";
}}}}}var D=false;if((u!=null&&u!=undefined&&(u=="true"||u=="yes"))||J){if((s=="false"&&K=="false")&&A!=null&&A!=undefined&&(A.toLowerCase()=="true"||A.toLowerCase()=="yes")){if(O!=null&&O!=undefined&&O=="ESX"&&y.indexOf("Virtualization")>-1){D=true;m+="<li class='forSubMenu'><a href='javascript:void(0)'>"+_virtualization+"<image src='/final/images/"+egTheme+"/arrow.gif' hspace='10'></a>";
m+="<ul class='subMenu'>";if(isSuperManager=="false"){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/vmwareDashboard.jsp?monCmdComeFrom=vmdashboard'>"+_virtualHostCluster+"</a></li>";}m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/endUserDashboard.jsp?access=allusers&userType=ESX&fromMenu=true'>"+_virtual+" "+_vms+"</a></li>";
m+=h;m+="</ul>";m+="</li>";}}}if(isSuperManager=="false"&&!D&&y.indexOf("Virtualization")>-1&&(s=="false"&&K=="false")){if(h!=null&&h.trim().length>0){m+="<li class='forSubMenu'><a href='javascript:void(0)'>"+_virtualization+"<image src='/final/images/"+egTheme+"/arrow.gif' hspace='10'></a>";m+="<ul class='subMenu'>";
m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/vmwareDashboard.jsp?monCmdComeFrom=vmdashboard'>"+_virtualHostCluster+"</a></li>";m+=h;m+="</ul>";m+="</li>";}else{m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/vmwareDashboard.jsp?monCmdComeFrom=vmdashboard'>"+_virtualization+"</a></li>";
}}if(s=="true"||K=="true"){m+="<li><a target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/vmwareDashboard.jsp?monCmdComeFrom=vmdashboard&onlyVM=true'>"+_userVirtualization+"</a></li>";}if(isSuperManager=="false"){if(r!=null&&r!=undefined&&(r.toLowerCase()=="true"||r.toLowerCase()=="yes")){m+="<li class='forSubMenu'><a href='javascript:void(0)'>"+_sap+"<image src='/final/images/"+egTheme+"/arrow.gif' hspace='10'></a>";
m+="<ul class='subMenu'>";if(I!=null&&I!=undefined&&(I.toLowerCase()=="true"||I.toLowerCase()=="yes")){m+="<li><a target='main' target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/ABAPDashboard.jsp'>"+_sapABAP+"</a></li>";}if(f!=null&&f!=undefined&&(f.toLowerCase()=="true"||f.toLowerCase()=="yes")){m+="<li><a target='main' target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/EgSapPlatformDashboard.jsp'>"+_sapPlatformDash+"</a></li>";
}m+="</ul>";m+="</li>";}}m+="</ul>";m+="</li>";m+="</ul>";m+="</div>";if(s=="false"){m+="<div class='col_1' style='height:200px;width:210px'>";m+="<div style='position:absolute;bottom:0px; right:0px;margin-right:10px;margin-bottom:10px;'><div class='menu_groups'></div></div>";m+="<ul>";m+="<li class='headFont hoverLinkPadding'>Groups</li>";
m+="<li>";m+="<ul>";m+="<li><a target='main' onclick='enablelocalsearch();setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/servlet/com.eg.EgMonitorController?monCmd=zoneList&from=MainDashboard&action=zone&isFromMenu=true'>"+_zones+"</a></li>";if(Q=="true"&&y.indexOf("Zones Map")>-1){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/monitor/zoneMap.jsp?isFromMenu=true'>"+_zones+" "+_map+"</a></li>";
}m+="<li><a target='main' onclick='enablelocalsearch();setValue(0);setValueForLive(0);setValueForQInsight(0);'  href='/final/servlet/com.eg.EgMonitorController?monCmd=serviceList&from=MainDashboard&action=service&isFromMenu=true'>"+_services+"</a></li>";if(y.indexOf("Service Groups")>-1){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);'  href='/final/servlet/com.eg.EgMonitorController?monCmd=serviceList&from=MainDashboard&action=serviceGroup&isFromMenu=true'>"+_serviceGroups+"</a></li>";
}if(p!=null&&p!=undefined&&(p=="true"||p=="yes")){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/monitor/serviceHealthMain.jsp?isFromMenu=true'>"+_serviceHealth+"</a></li>";}m+="<li><a target='main' onclick='enablelocalsearch();setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/servlet/com.eg.EgMonitorController?monCmd=segmentList&from=MainDashboard&action=segment&isFromMenu=true'>"+_segments+"</a></li>";
m+="</ul>";m+="</li>";m+="</ul>";m+="</div>";}var X="col_1";if(s=="false"){X="col_1_alter";}m+="<div class='"+X+"' style='height:200px;width:210px'>";m+="<div style='position:absolute;bottom:0px; right:0px;margin-right:10px;margin-bottom:10px;'><div class='menu_hostsAppliications'></div></div>";m+="<ul>";
m+="<li class='headFont hoverLinkPadding'>Hosts/Applications</li>";m+="<li>";m+="<ul>";if(s=="false"){if(isListView!=null&&(isListView=="No"||isListView=="no"||isListView=="false")){m+="<li><a target='main' onclick='enablelocalsearch();setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=TreeMenu&action=component&searchIndComps=checked&isFromMenu=true&view=metric&viewId=components&viewPageTitle=Components&viewTreeTitle=Component'>"+_servers+"</a></li>";
m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/servlet/com.eg.EgMonitorController?monCmd=boxList&from=MainDashboard&action=box&isFromMenu=true&view=metric&viewId=system&viewPageTitle=Systems&viewTreeTitle=System'>"+_systems+"</a></li>";if(y.indexOf("Network Devices")>-1){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=TreeMenu&action=component&menuName=network&searchIndComps=checked&isFromMenu=true&view=metric&viewId=network&viewPageTitle=Network Devices&viewTreeTitle=Network'>"+_networkDevices+"</a></li>";
}}else{m+="<li><a target='main' onclick='enablelocalsearch();setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=TreeMenu&action=component&searchIndComps=checked&isFromMenu=true'>"+_servers+"</a></li>";m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/servlet/com.eg.EgMonitorController?monCmd=boxList&from=MainDashboard&action=box&isFromMenu=true'>"+_systems+"</a></li>";
if(y.indexOf("Network Devices")>-1){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=MainDashboard&action=component&menuName=network&searchIndComps=checked&isFromMenu=true'>"+_networkDevices+"</a></li>";
}}if(y.indexOf("Aggregates")>-1&&(document.getElementById("aggEnabled").value=="True"||document.getElementById("aggEnabled").value=="true")){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=MainDashboard&action=component&menuName=agg&searchIndComps=checked&isFromMenu=true'>"+_aggregates+"</a></li>";
}if(y.indexOf("Virtual Components")>-1){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/monitor/EgDispvmwareHosts.jsp?isFromMenu=true'>"+_virtual+" "+_servers+"</a></li>";}}if(b=="true"){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/servlet/com.eg.EgMonitorController?monCmd=dashboard&action=uservms'>"+_userVirtualMachine+"</a></li>";
}if(y.indexOf("Public Clouds")>-1&&s=="false"){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/monitor/EgDispCloudHosts.jsp?isFromMenu=true'>"+_clouds+"</a></li>";}m+="</ul>";m+="</li>";m+="</ul>";m+="</div>";var X="col_1_alter";if(s=="false"){X="col_1";
}m+="<div class='"+X+"' style='height:200px;width:210px'>";m+="<div style='position:absolute;bottom:0px; right:0px;margin-right:10px;margin-bottom:10px;'><div class='menu_alarms'></div></div>";m+="<ul>";m+="<li class='headFont hoverLinkPadding'>"+_alarms+"</li>";m+="<li>";m+="<ul>";m+="<li><a target='main' onclick='setValue(currentMainPage);openalarm();' href='javascript:void(0)'>"+_current+"</a></li>";
if(unauthuserpage.hasAlarmHistoryEnabled=="true"){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/monitor/EgSiteInfraView.jsp?disphist=yes'>"+_history+"</a></li>";m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/monitor/EgSiteInfraView.jsp?disphist=ack'>"+_AckHist+"</a></li>";
m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/monitor/EgSiteInfraView.jsp?disphist=delAlarm'>"+_Delete+"</a></li>";}if(isSuperManager=="false"&&s=="false"){if(isSapMenuEnable){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);openSAPalarm();' href='javascript:void(0)'>"+_sap+" "+_sapalerts+"</a></li>";
}}m+="</ul>";m+="</li>";m+="</ul>";m+="</div>";if(s=="false"){if(hasGraphmenuEnabled=="true"){m+="<div class='col_1_alter' style='height:200px;width:210px'>";m+="<div style='position:absolute;bottom:0px; right:0px;margin-right:10px;margin-bottom:10px;'><div class='menu_graphs'></div></div>";m+="<ul>";
m+="<li class='headFont hoverLinkPadding'>Graphs</li>";m+="<li>";m+="<ul>";if(unauthuserpage.hasMeasuregraphEnabled=="true"){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/monitor/EgGraphGenerator.jsp' target='main'>"+_measure+"</a></li>";}if(hideTrend=="false"&&unauthuserpage.hasSummarygraphEnabled=="true"){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/monitor/EgBarGraphGenerator.jsp' target='main'>"+_summary+"</a></li>";
}if(hideTrend=="false"&&unauthuserpage.hasTrendgraphEnabled=="true"){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/monitor/EgTrendGraphGenerator.jsp' target='main'>"+_trend+"</a></li>";}if(isSuperManager=="false"&&unauthuserpage.hasLivegraphEnabled=="true"){m+="<li><a target='main' onClick='setValue(0);setValueForLive(currentLivePage);setValueForQInsight(0);liveGraph();' href='javascript:void(0)'>"+_live+"</a></li>";
}m+="</ul>";m+="</li>";m+="</ul>";m+="</div>";}var P="col_1";if(hasGraphmenuEnabled=="false"){P="col_1_alter";}m+="<div class='"+P+"' style='height:200px;width:210px'>";m+="<div style='position:absolute;bottom:0px; right:0px;margin-right:10px;margin-bottom:10px;'><div class='menu_misc'></div></div>";
m+="<ul>";m+="<li class='headFont hoverLinkPadding'>"+_Misc+"</li>";m+="<li>";m+="<ul>";if(isSuperManager=="false"&&j=="true"&&v=="true"){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/monitor/ControlAgents.jsp'style='border-top-width:1px'>"+_remControl+"</a></li>";
}if(H=="true"&&unauthuserpage.hasDetailedDiagnosisEnabled=="true"){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/monitor/EgDispDD.jsp'>"+_DD+"</a></li>";}m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/monitor/KBSearch.jsp'>"+_KBSearch+"</a></li>";
var L=document.getElementById("UViewOpt").value;if(L=="true"){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/monitor/EgMonitoruserView.jsp?monCmd=userView&fromMenu=true'>"+_userView+"</a></li>";}if(isSuperManager=="true"){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/servlet/com.eg.EgMonitorController?monCmd=measures&from=MainDashboard&action=components'>"+_measures+"</a></li>";
}else{if(s=="false"){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);' href='/final/servlet/com.eg.EgMonitorController?monCmd=measures&from=MainDashboard&action=components'>"+_measures+"</a></li>";if(isSapMenuEnable){m+="<li><a target='main' onclick='setValue(0);setValueForLive(0);setValueForQInsight(0);openSAPMetric();' href='javascript:void(0)'>"+_sap+" "+_sapmetric+"</a></li>";
}}}if(isSuperManager=="false"){m+="<li><a target='main' onClick='javascript:quickInSight();setValueForQInsight(currentQInsightPage);setValue(0);' href='javascript:void(0);' >"+_qinsight+"</a></li>";}m+="<li><a target='main' target='main' onclick='javascript:dashboardOnclick();setValue(0);' href='/final/monitor/KioskDashboard.jsp'>Kiosk Mode</a></li>";
m+="</ul>";m+="</li>";m+="</ul>";m+="</div>";}if(!T){m+="</div>";m+="</li>";m+="</ul>";}return m;}