﻿var fix=1,delay=2e3,modd=0,bar=new menuBar;bar.addMenu(" Operations Management ");bar.addItem("Systemcentreservices.html","System Center");bar.addItem("Virtualization.html ","Virtualization");bar.addMenu(" Compliance Management ");bar.addItem(" eventintelligence.html"," Event Intelligence");bar.addMenu("  Service Management  ");bar.addItem("itassetmanagement.html","IT Asset Management");bar.addItem("itsm.html","IT Service Management");bar.addMenu("  Collaboration Management  ");bar.addItem("OCS.html ","Office Communications Server");bar.addItem("EnterpriseProjectManagement.html","Enterprise Project Management");bar.addMenu("  Partnerships  ");bar.addItem("partners.html","Our Partners");var blc="#640c14",blh="#ffffff",bla="#640c14",lc="#ffffff",lh="#996633",la="#ffffff";function menuBar(){this.jj=-1;this.kk=0;this.mO=[];this.addMenu=addMenu;this.addItem=addItem;this.writeBar=writeBar;this.writeDrop=writeDrop}function addMenu(a){this.mO[++this.jj]={};this.mO[this.jj].main=a;this.kk=0;this.mO[this.jj].link=[];this.mO[this.jj].name=[]}function addItem(a,b){this.mO[this.jj].link[this.kk]=a;this.mO[this.jj].name[this.kk++]=b}function writeBar(){for(var a=1;a<=this.mO.length;a++)document.write('<span id="navMenu'+a+'" class="mH">'+this.mO[a-1].main+"</span>")}function writeDrop(){for(var a=1;a<=this.mO.length;a++){document.write('<div id="dropMenu'+a+'" class="mD">\r\n');for(var b=0;b<this.mO[a-1].link.length;b++)document.write('<a class="mL" href="'+this.mO[a-1].link[b]+'">'+this.mO[a-1].name[b]+"</a>\r\n");document.write("</div>\r\n")}}if(fix)window.onscroll=sMenu;window.onload=iMenu;var onm=null,ponm=null,podm=null,ndm=bar.mO.length;function posY(){}function sMenu(){document.getElementById("mB").style.top=posY()+"px";for(i=1;i<=ndm;i++){menuName="dropMenu"+i;odm=document.getElementById(menuName);if(onm){var a=onm.offsetParent.offsetTop+onm.offsetParent.offsetHeight;odm.style.top=a+"px"}}}function iMenu(){if(document.getElementById){document.onclick=mHide;for(i=1;i<=ndm;i++){menuName="dropMenu"+i;navName="navMenu"+i;odm=document.getElementById(menuName);onm=document.getElementById(navName);odm.style.visibility="hidden";onm.onmouseover=mHov;onm.onmouseout=mOut}onm=null}return}function mHov(){if(modd)clearTimeout(modd);document.onclick=null;honm=document.getElementById(this.id);if(honm!=onm){honm.style.color=lh;honm.style.backgroundColor=blh}menuName="drop"+this.id.substring(3,this.id.length);odm=document.getElementById(menuName);if(podm==odm){mHide();return}if(podm!=null)mHide();onm=document.getElementById(this.id);if(ponm!=onm||podm==null){onm.style.color=la;onm.style.backgroundColor=bla}if(odm){xPos=onm.offsetParent.offsetLeft+onm.offsetLeft;yPos=onm.offsetParent.offsetTop+onm.offsetParent.offsetHeight;odm.style.left=xPos+"px";odm.style.top=yPos+"px";odm.style.visibility="visible";odm.onmouseover=omov;odm.onmouseout=omot;podm=odm;ponm=onm}}function omov(){if(modd)clearTimeout(modd)}function omot(){modd=setTimeout("mHide()",delay)}function mOut(){modd=setTimeout("mHide()",delay);document.onclick=mHide;oonm=document.getElementById(this.id);if(oonm!=onm){oonm.style.color=lc;oonm.style.backgroundColor=blc}}function mHide(){document.onclick=null;if(podm){podm.style.visibility="hidden";podm=null;ponm.style.color=lc;ponm.style.backgroundColor=blc}onm=null}if(fix){var ag=navigator.userAgent.toLowerCase(),isG=ag.indexOf("gecko")!=-1,isR=0;if(isG){t=ag.split("rv:");isR=parseFloat(t[1])}if(isR&&isR<1)setInterval("sMenu()",50)}