 	//Fade Images Starts Here//
	
		var fadeimages=new Array()
		//SET IMAGE PATHS. Extend or contract array as needed
		fadeimages[0]=["webmedia/images/manu-image.jpg", "", ""] //plain image syntax
		fadeimages[1]=["webmedia/images/auto-bethuneimage.jpg", "", ""] //image with link syntax
		fadeimages[2]=["webmedia/images/chem-image.jpg", "", ""] //image with link and target syntax
		fadeimages[3]=["webmedia/images/hc-terareconimage.jpg", "", ""] //plain image syntax
		fadeimages[4]=["webmedia/images/hitech-mitsubishiimage.jpg", "", ""] //image with link syntax
		fadeimages[5]=["webmedia/images/semi-image.jpg", "", ""] //image with link and target syntax
		
        /*fadeimages[0]=["webmedia/images/imagechem.jpg", "", ""] //plain image syntax
		fadeimages[1]=["webmedia/images/imagehcterarecon.jpg", "", ""] //image with link syntax
		fadeimages[2]=["webmedia/images/imagehitechmitsubishi.jpg", "", ""] //image with link and target syntax
		fadeimages[3]=["webmedia/images/imagemanu.jpg", "", ""] //plain image syntax
		fadeimages[4]=["webmedia/images/imagesemi.jpg", "", ""] //image with link syntax
		fadeimages[5]=["webmedia/images/imageautobethune.jpg", "", ""] //image with link and target syntax*/
				
		var fadeimages2=new Array() //2nd array set example. Remove or add more sets as needed.
		//SET IMAGE PATHS. Extend or contract array as needed
		fadeimages2[0]=["photo1.jpg", "", ""] //plain image syntax
		fadeimages2[1]=["photo2.jpg", "", ""] //image with link syntax
		fadeimages2[2]=["photo3.jpg", "", ""] //image with link and target syntax
		 
		var fadebgcolor="white"
		 
		////NO need to edit beyond here/////////////
		 
		var fadearray=new Array() //array to cache fadeshow instances
		var fadeclear=new Array() //array to cache corresponding clearinterval pointers
		 
		var dom=(document.getElementById) //modern dom browsers
		var iebrowser=document.all
		 
		function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
		this.pausecheck=pause
		this.mouseovercheck=0
		this.delay=delay
		this.degree=10 //initial opacity degree (10%)
		this.curimageindex=0
		this.nextimageindex=1
		fadearray[fadearray.length]=this
		this.slideshowid=fadearray.length-1
		this.canvasbase="canvas"+this.slideshowid
		this.curcanvas=this.canvasbase+"_0"
		if (typeof displayorder!="undefined")
		theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
		this.theimages=theimages
		this.imageborder=parseInt(borderwidth)
		this.postimages=new Array() //preload images
		for (p=0;p<theimages.length;p++){
		this.postimages[p]=new Image()
		this.postimages[p].src=theimages[p][0]
		}
		 
		var fadewidth=fadewidth+this.imageborder*2
		var fadeheight=fadeheight+this.imageborder*2
		 
		if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
		document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);-moz-opacity:10;-khtml-opacity:10;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);-moz-opacity:10;background-color:'+fadebgcolor+'"></div></div>')
		else
		document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')
		 
		if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox
		this.startit()
		else{
		this.curimageindex++
		setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
		}
		}
		
		function fadepic(obj){
		if (obj.degree<100){
		obj.degree+=10
		if (obj.tempobj.filters&&obj.tempobj.filters[0]){
		if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
		obj.tempobj.filters[0].opacity=obj.degree
		else //else if IE5.5-
		obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
		}
		else if (obj.tempobj.style.MozOpacity)
		obj.tempobj.style.MozOpacity=obj.degree/101
		else if (obj.tempobj.style.KhtmlOpacity)
		obj.tempobj.style.KhtmlOpacity=obj.degree/100
		}
		else{
		clearInterval(fadeclear[obj.slideshowid])
		obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
		obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
		obj.populateslide(obj.tempobj, obj.nextimageindex)
		obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
		setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
		}
		}
		 
		fadeshow.prototype.populateslide=function(picobj, picindex){
		var slideHTML=""
		if (this.theimages[picindex][1]!="") //if associated link exists for image
		slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
		slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
		if (this.theimages[picindex][1]!="") //if associated link exists for image
		slideHTML+='</a>'
		picobj.innerHTML=slideHTML
		}
		 
		 
		fadeshow.prototype.rotateimage=function(){
		if (this.pausecheck==1) //if pause onMouseover enabled, cache object
		var cacheobj=this
		if (this.mouseovercheck==1)
		setTimeout(function(){cacheobj.rotateimage()}, 100)
		else if (iebrowser&&dom||dom){
		this.resetit()
		var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
		crossobj.style.zIndex++
		fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
		this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
		}
		else{
		var ns4imgobj=document.images['defaultslide'+this.slideshowid]
		ns4imgobj.src=this.postimages[this.curimageindex].src
		}
		this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
		}
		 
		fadeshow.prototype.resetit=function(){
		this.degree=10
		var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
		if (crossobj.filters&&crossobj.filters[0]){
		if (typeof crossobj.filters[0].opacity=="number") //if IE6+
		crossobj.filters(0).opacity=this.degree
		else //else if IE5.5-
		crossobj.style.filter="alpha(opacity="+this.degree+")"
		}
		else if (crossobj.style.MozOpacity)
		crossobj.style.MozOpacity=this.degree/101
		else if (crossobj.style.KhtmlOpacity)
		crossobj.style.KhtmlOpacity=obj.degree/100
		}
		 
		 
		fadeshow.prototype.startit=function(){
		var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
		this.populateslide(crossobj, this.curimageindex)
		if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
		var cacheobj=this
		var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
		crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
		crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
		}
		this.rotateimage()
		}
  //Fade Images Ends Here//


	function countryregional(obj)
	{
		location=obj.options[obj.selectedIndex].value
		//window.open(obj.options[obj.selectedIndex].value,'_blank');
	}


	//OnMouseclick Show or Hide Ends Here//

		function toggleLayer(whichLayer, wid)
		{
		changeimage(wid);
		
		if (document.getElementById)
		{
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		style2.display = style2.display? "":"block";
		}
		else if (document.all)
		{
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		style2.display = style2.display? "":"block";
		}
		else if (document.layers)
		{
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		style2.display = style2.display? "":"block";
		}
		
		
		}
		
		function changeimage(whichLayerid1) {
			
			//imagechange()
			var imgsrc = document.getElementById(whichLayerid1).src
			var iumgsrc1 = imgsrc.split('/')
			var iumgsrclen = iumgsrc1.length-1
			var iumgfname = iumgsrc1[iumgsrclen];
			//alert (iumgfname);
			if (iumgfname=="tab_manu_off.gif")
			{
			document.getElementById(whichLayerid1).src="webmedia/images/tab_manu_on.gif";
			}
			if (iumgfname=="tab_manu_on.gif")
			{
			document.getElementById(whichLayerid1).src="webmedia/images/tab_manu_off.gif";
			}
		
			if (iumgfname=="tab_service_off.gif")
			{
			document.getElementById(whichLayerid1).src="webmedia/images/tab_service_on.gif";
			}
			if (iumgfname=="tab_service_on.gif")
			{
			document.getElementById(whichLayerid1).src="webmedia/images/tab_service_off.gif";
			}
		}
		
		
		function hide(which) {
		var hide = new Array();
		hide = document.getElementsByName(which);
		for (i=0; i<hide.length; i++) {
		  hide[i].style.display = 'none';
		}
		}
		function show(which) {
		var hide = new Array();
		hide = document.getElementsByName(which);
		for (i=0; i<hide.length; i++) {
		  hide[i].style.display = 'inline';
		}
		}
		function manu(manuwh){
		hide('a');hide('b');show('a');
		changeimagemanu(manuwh);
		}
		function service(servwh){
		hide('a');hide('b');show('b');
		changeimageserv(servwh);
		}
		
		function changeimagemanu(whichid) {
			var imgsrc = document.getElementById(whichid).src
			var iumgsrc1 = imgsrc.split('/')
			var iumgsrclen = iumgsrc1.length-1
			var iumgfname = iumgsrc1[iumgsrclen];
			document.getElementById('1').src="webmedia/images/tab_service_off.gif";
			if (iumgfname=="tab_manu_off.gif")
			{
			document.getElementById(whichid).src="webmedia/images/tab_manu_on.gif";
			hide('b');show('a');
			}
			if (iumgfname=="tab_manu_on.gif")
			{
			document.getElementById(whichid).src="webmedia/images/tab_manu_off.gif";
			hide('a');
			}
		}
		function changeimageserv(whichid) {
			var imgsrc = document.getElementById(whichid).src
			var iumgsrc1 = imgsrc.split('/')
			var iumgsrclen = iumgsrc1.length-1
			var iumgfname = iumgsrc1[iumgsrclen];
			document.getElementById('0').src="webmedia/images/tab_manu_off.gif";
			if (iumgfname=="tab_service_off.gif")
			{
			document.getElementById(whichid).src="webmedia/images/tab_service_on.gif";
			hide('a');show('b');
			}
			if (iumgfname=="tab_service_on.gif")
			{
			document.getElementById(whichid).src="webmedia/images/tab_service_off.gif";
			hide('b');
			}	
		}
		
	//OnMouseclick Show or Hide Ends Here//
	
	
	
	
	//defines menus/submenus Here
	var omnexsystems_height, omnexsystems_width1, omnexsystems_width2, omnexsystems_width3, omnexsystems_width4, omnexsystems_width5, omnexsystems_width6, omnexsystems_width7;
	omnexsystems_height=104;
	omnexsystems_width0=205;
	omnexsystems_width1=271;
	omnexsystems_width2=421;
	omnexsystems_width3=630;
	omnexsystems_width4=728;
	omnexsystems_width5=314;
	omnexsystems_width6=468;
	omnexsystems_width7=535;
	function about(obj)
	{
	window.omnexsystems_showMenu(window.omnexsystems_menu_0,omnexsystems_width0,omnexsystems_height);
	}
	function consulting()
	{
	window.omnexsystems_showMenu(window.omnexsystems_menu_1,omnexsystems_width1,omnexsystems_height);
	}
	function training()
	{
	window.omnexsystems_showMenu(window.omnexsystems_menu_2,omnexsystems_width2,omnexsystems_height);
	}
	function leansixsigma()
	{
	window.omnexsystems_showMenu(window.omnexsystems_menu_3,omnexsystems_width3,omnexsystems_height);
	}
	function members()
	{
	window.omnexsystems_showMenu(window.omnexsystems_menu_4,omnexsystems_width4,omnexsystems_height);
	}
	function omnexsystemsLoadMenus()
	{
		if (window.omnexsystems_menu_0) return;
	
		//-------------------------------------
		//Horizontal inner Sub Menu Starts Here
		//-------------------------------------
	
		window.omnexsystems_menu_2_2_1 = new Menu("ISO 9000/TS 16949",230,17,"Arial,Verdana,Tahoma",10,"#000000","#000000","#F8F8E0","#E0D088");
		omnexsystems_menu_2_2_1.addMenuItem("4.0 Quality Management System","location='../solutions/ISO_9000_TS_16949/Quality_Management_System.html'");
		omnexsystems_menu_2_2_1.addMenuItem("5.0 Management Responsibility","location='../solutions/ISO_9000_TS_16949/Management_Responsibility.html'");
		omnexsystems_menu_2_2_1.addMenuItem("6.0 Resource Management","location='../solutions/ISO_9000_TS_16949/Resource_Management.html'");
		omnexsystems_menu_2_2_1.addMenuItem("7.0 Product Realization","location='../solutions/ISO_9000_TS_16949/Product_Realization.html'");
		omnexsystems_menu_2_2_1.addMenuItem("8.0 Measurement, Analysis & Improvement","location='../solutions/ISO_9000_TS_16949/Measurement_Analysis_Improvement.html'");
		omnexsystems_menu_2_2_1.fontWeight="bold";
		omnexsystems_menu_2_2_1.hideOnMouseOut=true;
		omnexsystems_menu_2_2_1.childMenuIcon="../js/arrows.gif";
	
		window.omnexsystems_menu_2_2_2 = new Menu("ISO 14001",185,17,"Arial,Verdana,Tahoma",10,"#000000","#000000","#F8F8E0","#E0D088");
		omnexsystems_menu_2_2_2.addMenuItem("4.2 Environmental Policy","location='../solutions/iso_14001/Environmental_Policy.html'");
		omnexsystems_menu_2_2_2.addMenuItem("4.3 Planning","location='../solutions/iso_14001/Planning.html'");
		omnexsystems_menu_2_2_2.addMenuItem("4.4 Implementation & operation","location='../solutions/iso_14001/Implementation_operation.html'");
		omnexsystems_menu_2_2_2.addMenuItem("4.5 Checking & Corrective Action","location='../solutions/iso_14001/Checking_Corrective_Action.html'");
		omnexsystems_menu_2_2_2.addMenuItem("4.6 Management Review","location='../solutions/iso_14001/Management_Review.html'");
		omnexsystems_menu_2_2_2.fontWeight="bold";
		omnexsystems_menu_2_2_2.hideOnMouseOut=true;
		omnexsystems_menu_2_2_2.childMenuIcon="../js/arrows.gif";
	
		window.omnexsystems_menu_2_2_3 = new Menu("ISO 17025",185,17,"Arial,Verdana,Tahoma",10,"#000000","#000000","#F8F8E0","#E0D088");
		omnexsystems_menu_2_2_3.addMenuItem("4.0 Management Requirements","location='../solutions/ISO_17025/Management_Requirements.html'");
		omnexsystems_menu_2_2_3.addMenuItem("5.0 Technical Requirements","location='../solutions/ISO_17025/Technical_Requirements.html'");
		omnexsystems_menu_2_2_3.fontWeight="bold";
		omnexsystems_menu_2_2_3.hideOnMouseOut=true;
		omnexsystems_menu_2_2_3.childMenuIcon="../js/arrows.gif";
	
		//--------------------------------
		//Horizontal Sub Menu Starts Here
		//--------------------------------
		window.omnexsystems_menu_0_1 = new Menu("Locations",100,17,"Arial,Verdana,Tahoma",10,"#000000","#000000","#F8F8E0","#E0D088");
		omnexsystems_menu_0_1.addMenuItem("US Headquarters","location='../about/directions.html'");
		omnexsystems_menu_0_1.addMenuItem("India","location='../india/index.html'");
		omnexsystems_menu_0_1.fontWeight="bold";
		omnexsystems_menu_0_1.hideOnMouseOut=true;
		omnexsystems_menu_0_1.childMenuIcon="../js/arrows.gif";
		
		window.omnexsystems_menu_1_1 = new Menu("EwIMS™ Editions",163,17,"Arial,Verdana,Tahoma",10,"#000000","#000000","#F8F8E0","#E0D088");
		omnexsystems_menu_1_1.addMenuItem("EwIMS™ Overview","location='../products/index.html'");
		omnexsystems_menu_1_1.addMenuItem("EwIMS™ Standard Edition","location='../products/Standard_Edition_Chart.html'");
		omnexsystems_menu_1_1.addMenuItem("EwIMS™ Professional Edition","location='../products/Professional_Edition_Chart.html'");
		omnexsystems_menu_1_1.addMenuItem("EwIMS™ Enterprise Edition","location='../products/Enterprise_Edition_Chart.html'");
		omnexsystems_menu_1_1.addMenuItem("Which Edition is for me?","location='../products/which_edition.html'");
		omnexsystems_menu_1_1.fontWeight="bold";
		omnexsystems_menu_1_1.hideOnMouseOut=true;
		omnexsystems_menu_1_1.childMenuIcon="../js/arrows.gif";
	
		window.omnexsystems_menu_1_2 = new Menu("Modules",240,17,"Arial,Verdana,Tahoma",10,"#000000","#000000","#F8F8E0","#E0D088");
		omnexsystems_menu_1_2.addMenuItem("Product Realization (APQP) - AQuA Pro","location='../products/AQuA_Pro.html'");
		omnexsystems_menu_1_2.addMenuItem("Audit Management - Audit Pro","location='../products/Audit_Pro.html'");
		omnexsystems_menu_1_2.addMenuItem("Continual Improvement - BOSS","location='../products/BOSS.html'");
		omnexsystems_menu_1_2.addMenuItem("Document Management - Document Pro","location='../products/Document_Pro.html'");
		omnexsystems_menu_1_2.addMenuItem("Performance Objectives & Training - HR Pro","location='../products/HR_Pro.html'");
		omnexsystems_menu_1_2.addMenuItem("Measurement Systems - MSA Pro","location='../products/MSA_Pro.html'");
		omnexsystems_menu_1_2.addMenuItem("Equipment Maintenance - TPM Pro","location='../products/TPM_Pro.html'");
		omnexsystems_menu_1_2.fontWeight="bold";
		omnexsystems_menu_1_2.hideOnMouseOut=true;
		omnexsystems_menu_1_2.childMenuIcon="../js/arrows.gif";
	
		window.omnexsystems_menu_1_3 = new Menu("Utilities",170,17,"Arial,Verdana,Tahoma",10,"#000000","#000000","#F8F8E0","#E0D088");
		omnexsystems_menu_1_3.addMenuItem("Data Exchanger","location='../products/Data_Exchange.html'");
		omnexsystems_menu_1_3.addMenuItem("Project Planner","location='../products/Project_Planner.html'");
		omnexsystems_menu_1_3.addMenuItem("Project Planner for Six Sigma","location='../products/sixsigma_project_planner.html'");
		omnexsystems_menu_1_3.addMenuItem("Visual Analysis","location='../products/Visual_Analysis.html'");
		omnexsystems_menu_1_3.fontWeight="bold";
		omnexsystems_menu_1_3.hideOnMouseOut=true;
		omnexsystems_menu_1_3.childMenuIcon="../js/arrows.gif";
	
		window.omnexsystems_menu_2_1 = new Menu("By Industry",130,17,"Arial,Verdana,Tahoma",10,"#000000","#000000","#F8F8E0","#E0D088");
		omnexsystems_menu_2_1.addMenuItem("Aerospace","location='../solutions/industry/Aerospace.html'");
		omnexsystems_menu_2_1.addMenuItem("Automotive","location='../solutions/industry/Automotive.html'");
		omnexsystems_menu_2_1.addMenuItem("Construction","location='../solutions/industry/Construction.html'");
		omnexsystems_menu_2_1.addMenuItem("Environment","location='../solutions/industry/Environment.html'");
		omnexsystems_menu_2_1.addMenuItem("Healthcare","location='../solutions/industry/Healthcare.html'");
		omnexsystems_menu_2_1.addMenuItem("Semiconductor","location='../solutions/industry/Semiconductor.html'");
		omnexsystems_menu_2_1.addMenuItem("Telecom","location='../solutions/industry/Telecommunications.html'");
		omnexsystems_menu_2_1.addMenuItem("Transportation","location='../solutions/industry/Transportation.html'");
		omnexsystems_menu_2_1.fontWeight="bold";
		omnexsystems_menu_2_1.hideOnMouseOut=true;
		omnexsystems_menu_2_1.childMenuIcon="../js/arrows.gif";
	
		window.omnexsystems_menu_2_2 = new Menu("By Standards",130,17,"Arial,Verdana,Tahoma",10,"#000000","#000000","#F8F8E0","#E0D088");
		omnexsystems_menu_2_2.addMenuItem(omnexsystems_menu_2_2_1,"location='../solutions/ISO_9000_TS_16949/ISO_9000_TS_16949.html'");
		omnexsystems_menu_2_2.addMenuItem(omnexsystems_menu_2_2_2,"location='../solutions/iso_14001/ISO_14001.html'");
		omnexsystems_menu_2_2.addMenuItem(omnexsystems_menu_2_2_3,"location='../solutions/ISO_17025/ISO_17025.html'");
		omnexsystems_menu_2_2.fontWeight="bold";
		omnexsystems_menu_2_2.hideOnMouseOut=true;
		omnexsystems_menu_2_2.childMenuIcon="../js/arrows.gif";
	
		window.omnexsystems_menu_2_3 = new Menu("By Process",240,17,"Arial,Verdana,Tahoma",10,"#000000","#000000","#F8F8E0","#E0D088");
		omnexsystems_menu_2_3.addMenuItem("Product Realization (APQP) - AQuA Pro","location='../products/AQuA_Pro.html'");
		omnexsystems_menu_2_3.addMenuItem("Audit Management - Audit Pro","location='../products/Audit_Pro.html'");
		omnexsystems_menu_2_3.addMenuItem("Continual Improvement - BOSS","location='../products/BOSS.html'");
		omnexsystems_menu_2_3.addMenuItem("Document Management - Document Pro","location='../products/Document_Pro.html'");
		omnexsystems_menu_2_3.addMenuItem("Performance Objectives & Training - HR Pro","location='../products/HR_Pro.html'");
		omnexsystems_menu_2_3.addMenuItem("Measurement Systems - MSA Pro","location='../products/MSA_Pro.html'");
		omnexsystems_menu_2_3.addMenuItem("Equipment Maintenance - TPM Pro","location='../products/TPM_Pro.html'");
		omnexsystems_menu_2_3.fontWeight="bold";
		omnexsystems_menu_2_3.hideOnMouseOut=true;
		omnexsystems_menu_2_3.childMenuIcon="../js/arrows.gif";
	
		window.omnexsystems_menu_5_2 = new Menu("Training",130,17,"Arial,Verdana,Tahoma",10,"#000000","#000000","#F8F8E0","#E0D088");
		omnexsystems_menu_5_2.addMenuItem("Directions","location='../about/directions.html'");
		omnexsystems_menu_5_2.addMenuItem("Schedule","location='../misc/training_schedule.html'");
		omnexsystems_menu_5_2.addMenuItem("Registration","location='../misc/Register.asp'");
		omnexsystems_menu_5_2.fontWeight="bold";
		omnexsystems_menu_5_2.hideOnMouseOut=true;
		omnexsystems_menu_5_2.childMenuIcon="../js/arrows.gif";
	
		window.omnexsystems_menu_5_3 = new Menu("Technical Support",130,17,"Arial,Verdana,Tahoma",10,"#000000","#000000","#F8F8E0","#E0D088");
		omnexsystems_menu_5_3.addMenuItem("Contact Support","location='../misc/support.asp'");
		omnexsystems_menu_5_3.fontWeight="bold";
		omnexsystems_menu_5_3.hideOnMouseOut=true;
		omnexsystems_menu_5_3.childMenuIcon="../js/arrows.gif";
	
	
		//--------------------------------
		//Horizontal Main Menu Starts Here
		//--------------------------------
	
		window.omnexsystems_menu_0 = new Menu("root",150,22,"Verdana,Arial,Tahoma",10,"#FFFFFF","#FFFFFF","#0c81b5","#0c81b5");
		omnexsystems_menu_0.addMenuItem("Contact Us","location=''");
		omnexsystems_menu_0.addMenuItem("Headquarters","location=''");
		omnexsystems_menu_0.addMenuItem("Employment","location=''");
		omnexsystems_menu_0.addMenuItem("Latest in Omnex","location=''");
		omnexsystems_menu_0.addMenuItem("Staff","location=''");
		omnexsystems_menu_0.addMenuItem("Client List","location=''");
		omnexsystems_menu_0.fontWeight="bold";
		omnexsystems_menu_0.hideOnMouseOut=true;
		omnexsystems_menu_0.childMenuIcon="../js/arrows.gif";
	
		window.omnexsystems_menu_1 = new Menu("root",250,22,"Verdana,Arial,Tahoma",10,"#FFFFFF","#FFFFFF","#0c81b5","#1167a0");
		omnexsystems_menu_1.addMenuItem("Management Systems","location=''");
		omnexsystems_menu_1.addMenuItem("Omnex's Outsourcing Solutions","location=''");
		omnexsystems_menu_1.addMenuItem("Operational Assessment & Improvement","location=''");
		omnexsystems_menu_1.addMenuItem("Product Launch","location=''");
		omnexsystems_menu_1.addMenuItem("Supplier Development","location=''");
		omnexsystems_menu_1.addMenuItem("Request Consulting Quote","location=''");
		omnexsystems_menu_1.fontWeight="bold";
		omnexsystems_menu_1.hideOnMouseOut=true;
		omnexsystems_menu_1.childMenuIcon="../js/arrows.gif";
	
		window.omnexsystems_menu_2 = new Menu("root",175,22,"Verdana,Arial,Tahoma",10,"#FFFFFF","#FFFFFF","#0c81b5","#1167a0");
		omnexsystems_menu_2.addMenuItem("Training Offerings","location=''");
		omnexsystems_menu_2.addMenuItem("Project-Based Workshops","location=''");
		omnexsystems_menu_2.addMenuItem("E-Learning","location=''");
		omnexsystems_menu_2.addMenuItem("U.S Training Schedule","location=''");
		omnexsystems_menu_2.addMenuItem("Register for Training","location=''");
		omnexsystems_menu_2.fontWeight="bold";
		omnexsystems_menu_2.hideOnMouseOut=true;
		omnexsystems_menu_2.childMenuIcon="../js/arrows.gif";
	
		window.omnexsystems_menu_3 = new Menu("root",200,22,"Verdana,Arial,Tahoma",10,"#FFFFFF","#FFFFFF","#0c81b5","#1167a0");
		omnexsystems_menu_3.addMenuItem("Breakaway Lean™","location=''");
		omnexsystems_menu_3.addMenuItem("Excelerated Six Sigma™","location=''");
		omnexsystems_menu_3.addMenuItem("Unified Lean/Six Sigma®","location=''");
		omnexsystems_menu_3.addMenuItem("Tips, Trends & Topics","location=''");
		omnexsystems_menu_3.fontWeight="bold";
		omnexsystems_menu_3.hideOnMouseOut=true;
		omnexsystems_menu_3.childMenuIcon="../js/arrows.gif";
	
		window.omnexsystems_menu_4 = new Menu("root",200,22,"Verdana,Arial,Tahoma",10,"#FFFFFF","#FFFFFF","#0c81b5","#1167a0");
		omnexsystems_menu_4.addMenuItem("Articles","location=''");
		omnexsystems_menu_4.addMenuItem("Newsletters","location=''");
		omnexsystems_menu_4.addMenuItem("Omnex Info","location=''");
		omnexsystems_menu_4.addMenuItem("Presentations","location=''");
		omnexsystems_menu_4.addMenuItem("Quality Reference Links Library","location=''");
		omnexsystems_menu_4.addMenuItem("Standards & Methods","location=''");
		omnexsystems_menu_4.addMenuItem("Webinars","location=''");
		omnexsystems_menu_4.addMenuItem("Whitepapers","location=''");
		omnexsystems_menu_4.fontWeight="bold";
		omnexsystems_menu_4.hideOnMouseOut=true;
		omnexsystems_menu_4.childMenuIcon="../js/arrows.gif";
	
		window.omnexsystems_menu_5 = new Menu("root",160,17,"Arial,Verdana,Tahoma",10,"#000000","#000000","#F8F8E0","#E0D088");
		omnexsystems_menu_5.addMenuItem("Professional Services","location='../solutions/consulting.html'");
		omnexsystems_menu_5.addMenuItem(omnexsystems_menu_5_3,"");
		omnexsystems_menu_5.addMenuItem(omnexsystems_menu_5_2,"");
		omnexsystems_menu_5.fontWeight="bold";
		omnexsystems_menu_5.hideOnMouseOut=true;
		omnexsystems_menu_5.childMenuIcon="../js/arrows.gif";
	
		window.omnexsystems_menu_6 = new Menu("root",110,17,"Arial,Verdana,Tahoma",10,"#000000","#000000","#F8F8E0","#E0D088");
		omnexsystems_menu_6.addMenuItem("Become a Partner","location='../partners.htm'");
		omnexsystems_menu_6.fontWeight="bold";
		omnexsystems_menu_6.hideOnMouseOut=true;
		omnexsystems_menu_6.childMenuIcon="../js/arrows.gif";
		omnexsystems_menu_6.writeMenus();
	
		//------------------------------
		//Horizontal Main Menu Ends Here
		//------------------------------
	}
	
	//Horizontal Menus/Submenus colors, borders, font size etc.
	function Menu(label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh)
	{
		this.version = "990702 [Menu; menu.js]";
		this.type = "Menu";
		this.menuWidth = mw;
		this.menuItemHeight = mh;
		this.fontSize = fs||12;
		this.fontWeight = "plain";
		this.fontFamily = fnt||"Arial, Verdana, Tahoma";
		this.fontColor = fclr||"#000000";
		this.fontColorHilite = fhclr||"#000000";
		this.bgColor = "#5686C0";
		this.menuBorder = 0;
		this.menuItemBorder = 1;
		this.menuItemBgColor = bg||"#2c68b0";
		this.menuLiteBgColor = "#5686C0";
		this.menuBorderBgColor = "#5686C0";//"#F8F8E0";
		this.menuHiliteBgColor = bgh||"#5686C0";
		this.menuContainerBgColor = "#5686C0";//"#F8F8E0";
		this.childMenuIcon = "arrows.gif";
		this.items = new Array();
		this.actions = new Array();
		this.childMenus = new Array();
	
		this.hideOnMouseOut = true;
	
		this.addMenuItem = addMenuItem;
		this.addMenuSeparator = addMenuSeparator;
		this.writeMenus = writeMenus;
		this.omnexsystems_showMenu = omnexsystems_showMenu;
		this.onMenuItemOver = onMenuItemOver;
		this.onMenuItemAction = onMenuItemAction;
		this.hideMenu = hideMenu;
		this.hideChildMenu = hideChildMenu;
	
		if (!window.menus) window.menus = new Array();
		this.label = label || "menuLabel" + window.menus.length;
		window.menus[this.label] = this;
		window.menus[window.menus.length] = this;
		if (!window.activeMenus) window.activeMenus = new Array();
	}
	function addMenuItem(label, action) {
		this.items[this.items.length] = label;
		this.actions[this.actions.length] = action;
	}
	
	function addMenuSeparator() {
		this.items[this.items.length] = "separator";
		this.actions[this.actions.length] = "";
		this.menuItemBorder = 0;
	}
	
	// For NS6. 
	function FIND(item) {
		if (document.all) return(document.all[item]);
		if (document.getElementById) return(document.getElementById(item));
		return(false);
	}
	
	function writeMenus(container) {
		if (window.triedToWriteMenus) return;
	
		if (!container && document.layers) {
			window.delayWriteMenus = this.writeMenus;
			var timer = setTimeout('delayWriteMenus()', 100);
			container = new Layer(100);
			clearTimeout(timer);
		} else if (document.all || document.hasChildNodes) {
			document.writeln('<SPAN ID="menuContainer"></SPAN>');
			container = FIND("menuContainer");
		}
	
		window.fwHideMenuTimer = null;
		if (!container) return;	
		window.triedToWriteMenus = true; 
		container.isContainer = true;
		container.menus = new Array();
		for (var i=0; i<window.menus.length; i++) 
			container.menus[i] = window.menus[i];
		window.menus.length = 0;
		var countMenus = 0;
		var countItems = 0;
		var top = 0;
		var content = '';
		var lrs = false;
		var theStat = "";
		var tsc = 0;
		if (document.layers) lrs = true;
		for (var i=0; i<container.menus.length; i++, countMenus++) {
			var menu = container.menus[i];
			if (menu.bgImageUp) {
				menu.menuBorder = 0;
				menu.menuItemBorder = 0;
			}
			if (lrs) {
				var menuLayer = new Layer(100, container);
				var lite = new Layer(100, menuLayer);
				lite.top = menu.menuBorder;
				lite.left = menu.menuBorder;
				var body = new Layer(100, lite);
				body.top = menu.menuBorder;
				body.left = menu.menuBorder;
			} else {
				content += ''+
				'<DIV ID="menuLayer'+ countMenus +'" STYLE="position:absolute;z-index:1;left:10;top:'+ (i * 100) +';visibility:hidden;">\n'+
				'  <DIV ID="menuLite'+ countMenus +'" STYLE="position:absolute;z-index:1;left:'+ menu.menuBorder +';top:'+ menu.menuBorder +';visibility:hide;" onMouseOut="mouseoutMenu();">\n'+
				'	 <DIV ID="menuFg'+ countMenus +'" STYLE="position:absolute;left:'+ menu.menuBorder +';top:'+ menu.menuBorder +';visibility:hide;">\n'+
				'';
			}
			var x=i;
			for (var i=0; i<menu.items.length; i++) {
				var item = menu.items[i];
				var childMenu = false;
				var defaultHeight = menu.fontSize+6;
				var defaultIndent = menu.fontSize;
				if (item.label) {
					item = item.label;
					childMenu = true;
				}
				menu.menuItemHeight = menu.menuItemHeight || defaultHeight;
				menu.menuItemIndent = menu.menuItemIndent || defaultIndent;
				var itemProps = 'font-family:' + menu.fontFamily +';font-weight:' + menu.fontWeight + ';fontSize:' + menu.fontSize + ';';
				if (menu.fontStyle) itemProps += 'font-style:' + menu.fontStyle + ';';
				if (document.all) 
					itemProps += 'font-size:' + menu.fontSize + ';" onMouseOver="onMenuItemOver(null,this);" onClick="onMenuItemAction(null,this);';
				else if (!document.layers) {
					itemProps += 'font-size:' + menu.fontSize + 'px;'; // zilla wants 12px.
				}
				var l;
				if (lrs) {
					l = new Layer(800,body);
				}
				var dTag	= '<DIV ID="menuItem'+ countItems +'" STYLE="position:absolute;left:0;top:'+ (i * menu.menuItemHeight) +';'+ itemProps +'">';
				var dClose = '</DIV>'
				if (menu.bgImageUp) {
					menu.menuBorder = 0;
					menu.menuItemBorder = 0;
					dTag	= '<DIV ID="menuItem'+ countItems +'" STYLE="background:url('+menu.bgImageUp+');position:absolute;left:0;top:'+ (i * menu.menuItemHeight) +';'+ itemProps +'">';
					if (document.layers) {
						dTag = '<LAYER BACKGROUND="'+menu.bgImageUp+'" ID="menuItem'+ countItems +'" TOP="'+ (i * menu.menuItemHeight) +'" style="' + itemProps +'">';
						dClose = '</LAYER>';
					}
				}
				var textProps = 'position:absolute;left:' + menu.menuItemIndent + ';top:1;';
				if (lrs) {
					textProps +=itemProps;
					dTag = "";
					dClose = "";
				}
	
				var dText	= '<DIV ID="menuItemText'+ countItems +'" STYLE="' + textProps + 'color:'+ menu.fontColor +';">'+ item +'&nbsp</DIV>\n<DIV ID="menuItemHilite'+ countItems +'" STYLE="' + textProps + 'top:1;color:'+ menu.fontColorHilite +';visibility:hidden;">'+ item +'&nbsp</DIV>';
				if (item == "separator") {
					content += ( dTag + '<DIV ID="menuSeparator'+ countItems +'" STYLE="position:absolute;left:1;top:2;"></DIV>\n<DIV ID="menuSeparatorLite'+ countItems +'" STYLE="position:absolute;left:1;top:2;"></DIV>\n' + dClose);
				} else if (childMenu) {
					content += ( dTag + dText + '<DIV ID="childMenu'+ countItems +'" STYLE="position:absolute;left:0;top:3;"><IMG SRC="'+ menu.childMenuIcon +'"></DIV>\n' + dClose);
				} else {
					content += ( dTag + dText + dClose);
				}
				if (lrs) {
					l.document.open("text/html");
					l.document.writeln(content);
					l.document.close();	
					content = '';
					theStat += "-";
					tsc++;
					if (tsc > 50) {
						tsc = 0;
						theStat = "";
					}
					status = theStat;
				}
				countItems++;  
			}
			if (lrs) {
				// focus layer
				var focusItem = new Layer(100, body);
				focusItem.visiblity="hidden";
				focusItem.document.open("text/html");
				focusItem.document.writeln("&nbsp;");
				focusItem.document.close();	
			} else {
			  content += '	  <DIV ID="focusItem'+ countMenus +'" STYLE="position:absolute;left:0;top:0;visibility:hide;" onClick="onMenuItemAction(null,this);">&nbsp;</DIV>\n';
			  content += '   </DIV>\n  </DIV>\n</DIV>\n';
			}
			i=x;
		}
		if (document.layers) {		
			container.clip.width = window.innerWidth;
			container.clip.height = window.innerHeight;
			container.onmouseout = mouseoutMenu;
			container.menuContainerBgColor = this.menuContainerBgColor;
			for (var i=0; i<container.document.layers.length; i++) {
				proto = container.menus[i];
				var menu = container.document.layers[i];
				container.menus[i].menuLayer = menu;
				container.menus[i].menuLayer.Menu = container.menus[i];
				container.menus[i].menuLayer.Menu.container = container;
				var body = menu.document.layers[0].document.layers[0];
				body.clip.width = proto.menuWidth || body.clip.width;
				body.clip.height = proto.menuHeight || body.clip.height;
				for (var n=0; n<body.document.layers.length-1; n++) {
					var l = body.document.layers[n];
					l.Menu = container.menus[i];
					l.menuHiliteBgColor = proto.menuHiliteBgColor;
					l.document.bgColor = proto.menuItemBgColor;
					l.saveColor = proto.menuItemBgColor;
					l.onmouseover = proto.onMenuItemOver;
					l.onclick = proto.onMenuItemAction;
					l.action = container.menus[i].actions[n];
					l.focusItem = body.document.layers[body.document.layers.length-1];
					l.clip.width = proto.menuWidth || body.clip.width + proto.menuItemIndent;
					l.clip.height = proto.menuItemHeight || l.clip.height;
					if (n>0) l.top = body.document.layers[n-1].top + body.document.layers[n-1].clip.height + proto.menuItemBorder;
					l.hilite = l.document.layers[1];
					if (proto.bgImageUp) l.background.src = proto.bgImageUp;
					l.document.layers[1].isHilite = true;
					if (l.document.layers[0].id.indexOf("menuSeparator") != -1) {
						l.hilite = null;
						l.clip.height -= l.clip.height / 2;
						l.document.layers[0].document.bgColor = proto.bgColor;
						l.document.layers[0].clip.width = l.clip.width -2;
						l.document.layers[0].clip.height = 1;
						l.document.layers[1].document.bgColor = proto.menuLiteBgColor;
						l.document.layers[1].clip.width = l.clip.width -2;
						l.document.layers[1].clip.height = 1;
						l.document.layers[1].top = l.document.layers[0].top + 1;
					} else if (l.document.layers.length > 2) {
						l.childMenu = container.menus[i].items[n].menuLayer;
						l.document.layers[2].left = l.clip.width -13;
						l.document.layers[2].top = (l.clip.height / 2) -4;
						l.document.layers[2].clip.left += 3;
						l.Menu.childMenus[l.Menu.childMenus.length] = l.childMenu;
					}
				}
				body.document.bgColor = proto.bgColor;
				body.clip.width  = l.clip.width +proto.menuBorder;
				body.clip.height = l.top + l.clip.height +proto.menuBorder;
				var focusItem = body.document.layers[n];
				focusItem.clip.width = body.clip.width;
				focusItem.Menu = l.Menu;
				focusItem.top = -30;
				focusItem.captureEvents(Event.MOUSEDOWN);
				focusItem.onmousedown = onMenuItemDown;
				menu.document.bgColor = proto.menuBorderBgColor;
				var lite = menu.document.layers[0];
				lite.document.bgColor = proto.menuLiteBgColor;
				lite.clip.width = body.clip.width +1;
				lite.clip.height = body.clip.height +1;
				menu.clip.width = body.clip.width + (proto.menuBorder * 3) ;
				menu.clip.height = body.clip.height + (proto.menuBorder * 3);
			}
		} else {
			if ((!document.all) && (container.hasChildNodes)) {
				container.innerHTML=content;
			} else {
				container.document.open("text/html");
				container.document.writeln(content);
				container.document.close();	
			}
			if (!FIND("menuLayer0")) return;
			var menuCount = 0;
			for (var x=0; x<container.menus.length; x++) {
				var menuLayer = FIND("menuLayer" + x);
				container.menus[x].menuLayer = "menuLayer" + x;
				menuLayer.Menu = container.menus[x];
				menuLayer.Menu.container = "menuLayer" + x;
				menuLayer.style.zIndex = 1;
				var s = menuLayer.style;
				s.top = s.pixelTop = 0;
				s.left = s.pixelLeft = -300;
	
				var menu = container.menus[x];
				menu.menuItemWidth = menu.menuWidth || menu.menuIEWidth || 140;
				menuLayer.style.backgroundColor = menu.menuBorderBgColor;
				var top = 0;
				for (var i=0; i<container.menus[x].items.length; i++) {
					var l = FIND("menuItem" + menuCount);
					l.Menu = container.menus[x];
					if (l.addEventListener) { // ns6
						l.style.width = menu.menuItemWidth;	
						l.style.height = menu.menuItemHeight;
						l.style.top = top;
						l.addEventListener("mouseover", onMenuItemOver, false);
						l.addEventListener("click", onMenuItemAction, false);
						l.addEventListener("mouseout", mouseoutMenu, false);
					} else { //ie
						l.style.pixelWidth = menu.menuItemWidth;	
						l.style.pixelHeight = menu.menuItemHeight;
						l.style.pixelTop = top;
					}
					top = top + menu.menuItemHeight+menu.menuItemBorder;
					l.style.fontSize = menu.fontSize;
					l.style.backgroundColor = menu.menuItemBgColor;
					l.style.visibility = "inherit";
					l.saveColor = menu.menuItemBgColor;
					l.menuHiliteBgColor = menu.menuHiliteBgColor;
					l.action = container.menus[x].actions[i];
					l.hilite = FIND("menuItemHilite" + menuCount);
					l.focusItem = FIND("focusItem" + x);
					l.focusItem.style.pixelTop = l.focusItem.style.top = -30;
					var childItem = FIND("childMenu" + menuCount);
					if (childItem) {
						l.childMenu = container.menus[x].items[i].menuLayer;
						childItem.style.pixelLeft = childItem.style.left = menu.menuItemWidth -11;
						childItem.style.pixelTop = childItem.style.top =(menu.menuItemHeight /2) -4;
						//childItem.style.pixelWidth = 30 || 7;
						//childItem.style.clip = "rect(0 7 7 3)";
						l.Menu.childMenus[l.Menu.childMenus.length] = l.childMenu;
					}
					var sep = FIND("menuSeparator" + menuCount);
					if (sep) {
						sep.style.clip = "rect(0 " + (menu.menuItemWidth - 3) + " 1 0)";
						sep.style.width = sep.style.pixelWidth = menu.menuItemWidth;	
						sep.style.backgroundColor = menu.bgColor;
						sep = FIND("menuSeparatorLite" + menuCount);
						sep.style.clip = "rect(1 " + (menu.menuItemWidth - 3) + " 2 0)";
						sep.style.width = sep.style.pixelWidth = menu.menuItemWidth;	
						sep.style.backgroundColor = menu.menuLiteBgColor;
						l.style.height = l.style.pixelHeight = menu.menuItemHeight/2;
						l.isSeparator = true
						top -= (menu.menuItemHeight - l.style.pixelHeight)
					} else {
						l.style.cursor = "hand"
					}
					menuCount++;
				}
				menu.menuHeight = top-1;
				var lite = FIND("menuLite" + x);
				var s = lite.style;
				s.height = s.pixelHeight = menu.menuHeight +(menu.menuBorder * 2);
				s.width = s.pixelWidth = menu.menuItemWidth + (menu.menuBorder * 2);
				s.backgroundColor = menu.menuLiteBgColor;
	
				var body = FIND("menuFg" + x);
				s = body.style;
				s.height = s.pixelHeight = menu.menuHeight + menu.menuBorder;
				s.width = s.pixelWidth = menu.menuItemWidth + menu.menuBorder;
				s.backgroundColor = menu.bgColor;
	
				s = menuLayer.style;
				s.width = s.pixelWidth  = menu.menuItemWidth + (menu.menuBorder * 4);
				s.height = s.pixelHeight  = menu.menuHeight+(menu.menuBorder*4);
			}
		}
		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;
		}
		document.onmouseup = mouseupMenu;
		window.fwWroteMenu = true;
		status = "";
	}
	
	function NS4resize() {
		if (NS4sIW < window.innerWidth || 
			NS4sIW > window.innerWidth || 
			NS4sIH > window.innerHeight || 
			NS4sIH < window.innerHeight ) 
		{
			window.location.reload();
		}
	}
	
	function onMenuItemOver(e, l) {
		omnexsystems_clearTimeout();
		l = l || this;
		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 (l.hilite) {
				l.document.bgColor = l.menuHiliteBgColor;
				l.zIndex = 1;
				l.hilite.visibility = "inherit";
				l.hilite.zIndex = 2;
				l.document.layers[1].zIndex = 1;
				l.focusItem.zIndex = this.zIndex +2;
			}
			if (l.Menu.bgImageOver) {
				l.background.src = l.Menu.bgImageOver;
			}
			l.focusItem.top = this.top;
			l.Menu.hideChildMenu(l);
		} else if (l.style && l.Menu) {
			if (a) {
				a.style.backgroundColor = a.saveColor;
				if (a.hilite) a.hilite.style.visibility = "hidden";
				if (a.Menu.bgImageUp) {
					a.style.background = "url(" + a.Menu.bgImageUp +")";;
				}
			} 
			if (l.isSeparator) return;
			l.style.backgroundColor = l.menuHiliteBgColor;
			l.zIndex = 1;  // magic IE 4.5 mac happy doohicky.	jba
			if (l.Menu.bgImageOver) {
				l.style.background = "url(" + l.Menu.bgImageOver +")";
			}
			if (l.hilite) {
				l.style.backgroundColor = l.menuHiliteBgColor;
				l.hilite.style.visibility = "inherit";
			}
			l.focusItem.style.top = l.focusItem.style.pixelTop = l.style.pixelTop;
			l.focusItem.style.zIndex = l.zIndex +1;
			l.Menu.hideChildMenu(l);
		} else {
			return; // not a menu - magic IE 4.5 mac happy doohicky.  jba
		}
		window.ActiveMenuItem = l;
	}
	
	function onMenuItemAction(e, l) {
		l = window.ActiveMenuItem;
		if (!l) return;
		hideActiveMenus();
		if (l.action) {
			eval("" + l.action);
		}
		window.ActiveMenuItem = 0;
	}
	
	function omnexsystems_clearTimeout()
	{
		if (fwHideMenuTimer) clearTimeout(fwHideMenuTimer);
		fwHideMenuTimer = null;
		fwDHFlag = false;
	}
	function omnexsystems_startTimeout()
	{
		fwStart = new Date();
		fwDHFlag = true;
		fwHideMenuTimer = setTimeout("fwDoHide()", 1000);
	}
	
	function fwDoHide()
	{
		if (!fwDHFlag) return;
		var elapsed = new Date() - fwStart;
		if (elapsed < 1000) {
			fwHideMenuTimer = setTimeout("fwDoHide()", 1100-elapsed);
			return;
		}
		fwDHFlag = false;
		hideActiveMenus();
		window.ActiveMenuItem = 0;
	}
	
	function omnexsystems_showMenu(menu, x, y, child) {
		if (!window.fwWroteMenu) return;
		omnexsystems_clearTimeout();
		if (document.layers) {
			if (menu) {
				var l = menu.menuLayer || menu;
				l.left = 1;
				l.top = 1;
				hideActiveMenus();
				if (this.visibility) l = this;
				window.ActiveMenu = l;
			} else {
				var l = child;
			}
			if (!l) return;
			for (var i=0; i<l.layers.length; i++) { 			   
	
				if (!l.layers[i].isHilite) 
					l.layers[i].visibility = "inherit";
				if (l.layers[i].document.layers.length > 0) 
					omnexsystems_showMenu(null, "relative", "relative", l.layers[i]);
			}
			if (l.parentLayer) {
				if (x != "relative") 
					l.parentLayer.left = x || window.pageX || 0;
				if (l.parentLayer.left + l.clip.width > window.innerWidth) 
					l.parentLayer.left -= (l.parentLayer.left + l.clip.width - window.innerWidth);
				if (y != "relative") 
					l.parentLayer.top = y || window.pageY || 0;
				if (l.parentLayer.isContainer) {
					l.Menu.xOffset = window.pageXOffset;
					l.Menu.yOffset = window.pageYOffset;
					l.parentLayer.clip.width = window.ActiveMenu.clip.width +2;
					l.parentLayer.clip.height = window.ActiveMenu.clip.height +2;
					if (l.parentLayer.menuContainerBgColor) l.parentLayer.document.bgColor = l.parentLayer.menuContainerBgColor;
				}
			}
			l.visibility = "inherit";
			if (l.Menu) l.Menu.container.visibility = "inherit";
		} else if (FIND("menuItem0")) {
			var l = menu.menuLayer || menu;	
			hideActiveMenus();
			if (typeof(l) == "string") {
				l = FIND(l);
			}
			window.ActiveMenu = l;
			var s = l.style;
			s.visibility = "inherit";
			if (x != "relative") 
				s.left = s.pixelLeft = x || (window.pageX + document.body.scrollLeft) || 0;
			if (y != "relative") 
				s.top = s.pixelTop = y || (window.pageY + document.body.scrollTop) || 0;
			l.Menu.xOffset = document.body.scrollLeft;
			l.Menu.yOffset = document.body.scrollTop;
		}
		if (menu) {
			window.activeMenus[window.activeMenus.length] = l;
		}
	}
	
	function onMenuItemDown(e, l) {
		var a = window.ActiveMenuItem;
		if (document.layers) {
			if (a) {
				a.eX = e.pageX;
				a.eY = e.pageY;
				a.clicked = true;
			}
		}
	}
	
	function mouseupMenu(e)
	{
		hideMenu(true, e);
		hideActiveMenus();
		return true;
	}
	
	function mouseoutMenu()
	{
		hideMenu(false, false);
		return true;
	}
	
	
	function hideMenu(mouseup, e) {
		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 (mouseup && a.action && a.clicked && window.ActiveMenu) {
				if (a.eX <= e.pageX+15 && a.eX >= e.pageX-15 && a.eY <= e.pageY+10 && a.eY >= e.pageY-10) {
					setTimeout('window.ActiveMenu.Menu.onMenuItemAction();', 2);
				}
			}
			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.Menu.bgImageUp) {
					a.style.background = "url(" + a.Menu.bgImageUp +")";;
				}
			}
		}
		if (!mouseup && window.ActiveMenu) {
			if (window.ActiveMenu.Menu) {
				if (window.ActiveMenu.Menu.hideOnMouseOut) {
					omnexsystems_startTimeout();
				}
				return(true);
			}
		}
		return(true);
	}
	
	function PxToNum(pxStr)
	{ // pxStr == 27px, we want 27.
		if (pxStr.length > 2) {
			n = Number(pxStr.substr(0, pxStr.length-2));
			return(n);
		}
		return(0);
	}
	
	function hideChildMenu(hcmLayer) {
		omnexsystems_clearTimeout();
		var l = hcmLayer;
		for (var i=0; i < l.Menu.childMenus.length; i++) {
			var theLayer = l.Menu.childMenus[i];
			if (document.layers) {
				theLayer.visibility = "hidden";
			} else {
				theLayer = FIND(theLayer);
				theLayer.style.visibility = "hidden";
			}
			theLayer.Menu.hideChildMenu(theLayer);
		}
	
		if (l.childMenu) {
			var childMenu = l.childMenu;
			if (document.layers) {
				l.Menu.omnexsystems_showMenu(null,null,null,childMenu.layers[0]);
				childMenu.zIndex = l.parentLayer.zIndex +1;
				childMenu.top = l.top + l.parentLayer.top + l.Menu.menuLayer.top + l.Menu.menuItemHeight/3;
				if (childMenu.left + childMenu.clip.width > window.innerWidth) {
					childMenu.left = l.parentLayer.left - childMenu.clip.width + l.Menu.menuLayer.left + 15;
					l.Menu.container.clip.left -= childMenu.clip.width;
				} else {
					childMenu.left = l.parentLayer.left + l.parentLayer.clip.width  + l.Menu.menuLayer.left -5;
				}
				var w = childMenu.clip.width+childMenu.left-l.Menu.container.clip.left;
				if (w > l.Menu.container.clip.width)  
					l.Menu.container.clip.width = w;
				var h = childMenu.clip.height+childMenu.top-l.Menu.container.clip.top;
				if (h > l.Menu.container.clip.height) l.Menu.container.clip.height = h;
				l.document.layers[1].zIndex = 0;
				childMenu.visibility = "inherit";
			} else if (FIND("menuItem0")) {
				childMenu = FIND(l.childMenu);
				var menuLayer = FIND(l.Menu.menuLayer);
				var s = childMenu.style;
				s.zIndex = menuLayer.style.zIndex+1;
				if (document.all) { // ie case.
					s.pixelTop = l.style.pixelTop + menuLayer.style.pixelTop + l.Menu.menuItemHeight/3;
					s.left = s.pixelLeft = (menuLayer.style.pixelWidth) + menuLayer.style.pixelLeft -5;
				} else { // zilla case
					var top = PxToNum(l.style.top) + PxToNum(menuLayer.style.top) + l.Menu.menuItemHeight/3;
					var left = (PxToNum(menuLayer.style.width)) + PxToNum(menuLayer.style.left) -5;
					s.top = top;
					s.left = left;
				}
				childMenu.style.visibility = "inherit";
			} else {
				return;
			}
			window.activeMenus[window.activeMenus.length] = childMenu;
		}
	}
	
	function hideActiveMenus() {
		if (!window.activeMenus) return;
		for (var i=0; i < window.activeMenus.length; i++) {
			if (!activeMenus[i]) continue;
			if (activeMenus[i].visibility && activeMenus[i].Menu) {
				activeMenus[i].visibility = "hidden";
				activeMenus[i].Menu.container.visibility = "hidden";
				activeMenus[i].Menu.container.clip.left = 0;
			} else if (activeMenus[i].style) {
				var s = activeMenus[i].style;
				s.visibility = "hidden";
				s.left = -200;
				s.top = -200;
			}
		}
		if (window.ActiveMenuItem) {
			hideMenu(false, false);
		}
		window.activeMenus.length = 0;
	}
	
	
	
	
	////////////////////////////////
	
	
	function newImage(arg)
	{
		if (document.images)
		{
			rslt = new Image();
			rslt.src = arg;
			return rslt;
		}
	}
	
	function changeImages()
	 {
		if (document.images && (preloadFlag == true))
		{
			for (var i=0; i<changeImages.arguments.length; i+=2)
			{
				document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
			}
		}
	}
	
	var preloadFlag = false;
	//***********************************/
	//reloads the window if Nav4 resized
	//***********************************/
	
	function MM_reloadPage(init)
	{
	  if (init==true) with (navigator)
		{
		if ((appName=="Netscape")&&(parseInt(appVersion)==4))
		{
				document.MM_pgW=innerWidth;
			document.MM_pgH=innerHeight;
			onresize=MM_reloadPage;
		}
		}
		else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
		{location.reload();}
	}
	MM_reloadPage(true);
	
	
	
	
function togLayer(whichLayer)
{
var elem, vis;
if( document.getElementById ) // this is the way the standards work
elem = document.getElementById( whichLayer );
else if( document.all ) // this is the way old msie versions work
elem = document.all[whichLayer];
else if( document.layers ) // this is the way nn4 works
elem = document.layers[whichLayer];
vis = elem.style;

// if the style.display value is blank we try to figure it out here
if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}

function togLayer1(whichLayer)
{
var elem, vis;
if( document.getElementById ) // this is the way the standards work
elem = document.getElementById( whichLayer );
else if( document.all ) // this is the way old msie versions work
elem = document.all[whichLayer];
else if( document.layers ) // this is the way nn4 works
elem = document.layers[whichLayer];

vis = elem.style;
// if the style.display value is blank we try to figure it out here
vis.display = 'none';
}



function Showhide(id)
{
    var Divname=new Array("id_chad","id_dave","id_gregory","id_Barber","id_arun","id_ravi","id_patiyasevi","id_michaelxu","id_edward","id_hay","id_mary");
    var displayer1;
    for(i=0;i<Divname.length;i++)
    {
    displayer1 = document.getElementById(Divname[i]);
    displayer1.style.display = 'none';
    }
    var displayer = document.getElementById(id);
    displayer.style.display = 'block';
}


function Showhideclient(id)
{
    var Divname=new Array("Aerospace","AEC","Automotive","Chemical","CV","CEITE","Food","HTTE","Industrial","Manufacturing","OilGas","Others","Semiconductor","SoftwareDD","Transportation");
    var displayer1;
    for(i=0;i<Divname.length;i++)
    {
    displayer1 = document.getElementById(Divname[i]);
    displayer1.style.display = 'none';
    }
    var displayer = document.getElementById(id);
    displayer.style.display = 'block';
}
