	// do not delete the next two lines
	var strLocation = document.location;
	strLocation = strLocation.toString();

	//Menu object creation
	oM=new makeCM("oM") //Making the menu object. Argument: menuname

	var strDevServer = false;
	var strOtherServer = false;
	
	var strDevServerURL = "http://www2.aeinstitute.org";
	var strDevServerSSL = "https://www2.aeinstitute.org";
	//var strPrdServerURL = "http://www.aeinstitute.org";
	//var strPrdServerSSL = "https://www.aeinstitute.org";
	var strPrdServerURL = "http://content.aeinstitute.org";
	var strPrdServerSSL = "https://content.aeinstitute.org";
	
	if(document.URL.toLowerCase().indexOf("www2.aeinstitute.org") >= 0 ||
	   document.URL.toLowerCase().indexOf("hermes.aeinstitute.org") >= 0){
	   strDevServer = true;
	}
	
	if(document.URL.toLowerCase().indexOf("asce.yellowbrix.com") >= 0 ||
				document.URL.toLowerCase().indexOf("eb1.aeinstitute.org") >= 0){
		strOtherServer = true;
	}

	if(document.URL.toLowerCase().indexOf("https") == 0){
		if(strDevServer == true){
			oM.onlineRoot=strDevServerSSL;
			oM.offlineRoot=strDevServerSSL;
		}
		else if(strOtherServer == true){
			if(strDevServer == true){
				oM.onlineRoot=strDevServerSSL;
				oM.offlineRoot=strDevServerSSL;
			}
			else{
				oM.onlineRoot=strPrdServerSSL;
				oM.offlineRoot=strPrdServerSSL;
			}
		}
		else{
			oM.onlineRoot=strPrdServerSSL;
			oM.offlineRoot=strPrdServerSSL;
		}
	}
	else{
		if(strDevServer == true){
			oM.onlineRoot=strDevServerURL;
			oM.offlineRoot=strDevServerURL;
		}
		else if(strOtherServer == true){
			if(strDevServer == true){
				oM.onlineRoot=strDevServerURL;
				oM.offlineRoot=strDevServerURL;
			}
			else{
				oM.onlineRoot=strPrdServerURL;
				oM.offlineRoot=strPrdServerURL;
			}
		}
		else{
			oM.onlineRoot=strPrdServerURL;
			oM.offlineRoot=strPrdServerURL;
		}
	}

	oM.frames = 0

	//Menu properties   
	oM.pxBetween=0
	oM.fromLeft=0
	if(strLocation.indexOf("left_index") > 0){
		oM.fromTop=0;
		var strLeft = 0;
	}
	else{
		oM.fromTop=129;
		var strLeft = 200;   
	}
	oM.rows=1 
	oM.menuPlacement="left"
	oM.resizeCheck=1 
	oM.wait=1000 
	oM.fillImg=""
	oM.zIndex=300
	
	//Background bar properties
	oM.useBar=0
	oM.barWidth="menu"
	oM.barHeight="menu" 
	oM.barClass="clBar"
	oM.barX=0 
	oM.barY=0
	oM.barBorderX=0
	oM.barBorderY=0
	oM.barBorderClass=""

	//level properties
	//create menu properties (width, height, regClass, overClass, borderX, borderY, borderClass, rows, align, offsetX, offsetY, arrow, arrowWidth, arrowHeight)	
	oM.level[0]=new cm_makeLevel(156,20,"clT","clTover",0,0,"clBar",0,"left",strLeft,26,0,0,0);
	oM.level[1]=new cm_makeLevel(200,20,"clS","clSover",3,1,"clBorder",0,"left",0,0,"/images/menu_arrow.gif",5,5);
	//oM.level[1]=new cm_makeLevel(200,20,"clS","clSover",1,1,"clBorder", 0, "right", 0,0,0,0,0);
	
	//create menu ('menu number','parent number','text','link','image width','image height','image path')

	oM.makeMenu('m1','','Home','http://content.aeinstitute.org/inside/intro.html','','141','27',"/images/2007/home.jpg");
		
	oM.makeMenu('m2','','Inside AEI','http://content.aeinstitute.org/inside/index.html','','71','27',"/images/2007/inside.jpg");
		oM.makeMenu('mb1','m2','Introduction','http://content.aeinstitute.org/inside/intro.html');
		oM.makeMenu('mb6','m2','Enews','http://content.aeinstitute.org/enews/');
		//oM.makeMenu('mb2','m2','Organizational Chart','http://content.aeinstitute.org/files/pdf/org_chart.pdf');
		//oM.makeMenu('mb3','m2','Committees','http://www.aeinstitute.org/committees/');
		// oM.makeMenu('mb4','m2','Local Chapters','http://content.aeinstitute.org/committees/chapters.html');
		oM.makeMenu('mb5','m2','Bylaws','http://content.aeinstitute.org/static/bylaws.html');
		
	oM.makeMenu('m3','','','http://content.aeinstitute.org/members/membership.html','','84','27',"/images/2007/membership.jpg");
		oM.makeMenu('mem1','m3','Join AEI','http://content.aeinstitute.org/members/membership.html');
		oM.makeMenu('mem2','m3','AEI Fellows','http://content.aeinstitute.org/members/fellows.html');

oM.makeMenu('m4','','Committee','http://content.aeinstitute.org/inside/Committees.html','','80','27',"/images/2007/committee.jpg");

	oM.makeMenu('m5','','Upcoming Events','http://content.aeinstitute.org/events/index.html','','114','27',"/images/2007/upcoming.jpg");
		
	oM.makeMenu('m6','','Members Only','http://content.aeinstitute.org/members/members_only.html','','97','27',"/images/2007/members.jpg");
		oM.makeMenu('me1','m6','Change Your Contact Info','http://www.asce.org/lib/redirect/?redcode=mmbovw');	
		oM.makeMenu('me2','m6','Standards Balloting','https://secure.asce.org/ASCEWebsite/SECURE/SignIn/SignIn.aspx?ASCEURL=https%3A//eb1.asce.org/ballot/AvailableBallots.cfm');			
		oM.makeMenu('me3','m6','MM&T Magazine','http://content.aeinstitute.org/members/mmt.html');			

	oM.makeMenu('m7','','Engineering Licensure','http://content.aeinstitute.org/engineering/index.html','','130','27',"/images/2007/engineering2.jpg"); 
		oM.makeMenu('mf1','m7','State Boards','http://content.aeinstitute.org/engineering/state.html');	
		oM.makeMenu('mf2','m7','P.E. Exam','http://content.aeinstitute.org/engineering/pe_exam.html');	

	oM.makeMenu('m8','','AE Education','http://content.aeinstitute.org/education/index.html','','98','27',"/images/2007/aei.jpg");
		oM.makeMenu('mg1','m8','ABET Criteria','http://content.aeinstitute.org/ABETCriteriaforAE.html');						
		oM.makeMenu('mg2','m8','AE Departments','http://content.aeinstitute.org/education/abet_ae.html');													
		oM.makeMenu('mg4','m8','Students','http://content.aeinstitute.org/education/students.html');															
	
	oM.makeMenu('m9','','Resources','http://content.aeinstitute.org/resources/index.html','','76','27',"/images/2007/resources.jpg");
		oM.makeMenu('mh1','m9','Publications','http://content.aeinstitute.org/resources/pubs.html');						
		//oM.makeMenu('mh2','m9','Speakers Bureau','http://content.aeinstitute.org/resources/speaker.html');			
		oM.makeMenu('mf3','m9','Related Sites','http://content.aeinstitute.org/resources/related.html');								
		oM.makeMenu('mf4','m9','Career Connections','http://careers.asce.org/search/results/?job_category=3845%2c4828&sn=25');								
		oM.makeMenu('mf5','m9','Internships','http://content.aeinstitute.org/resources/internships.html');	
		
	oM.makeMenu('m10','','FAQ','http://content.aeinstitute.org/static/faq.html','','133','27',"/images/2007/faq.jpg");
		
	oM.construct()

