/*** 
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/

var oM=new makeCM("oM")
oM.pxBetween =0
oM.fromTop=0
oM.fromLeft=0
oM.menuPlacement="left"
oM.wait=600
oM.fillImg=""
oM.zIndex=100 
oM.resizeCheck=1
oM.zIndex=100  

oM.onlineRoot=""
oM.offlineRoot="file:///D|/Share/Publications/Website/"

oM.rows=1

//Background bar properties
oM.useBar=1
oM.barWidth="100%" 
oM.barHeight="menu"
oM.barX=0
oM.barY=0
oM.barClass="clBar" 
oM.barBorderX=0
oM.barBorderY=2
oM.barBorderClass="clB3"


//Level properties
//Syntax for fast creation (advanced users only)
//oM.level[1]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)

oM.level[0]=new cm_makeLevel()
oM.level[0].width=120
oM.level[0].height=20
oM.level[0].regClass="clT" 
oM.level[0].overClass="clTover"  
oM.level[0].borderX=1
oM.level[0].borderY=0
oM.level[0].borderClass="clB3" 
oM.level[0].rows=0
oM.level[0].align="bottom"
oM.level[0].offsetX=0
oM.level[0].offsetY=0
oM.level[0].arrow=0
oM.level[0].arrowWidth=0
oM.level[0].arrowHeight=0
oM.level[0].slidepx=10

oM.level[1]=new cm_makeLevel()
oM.level[1].width=120
oM.level[1].height=null
oM.level[1].regClass="clT" 
oM.level[1].overClass="clTover" 
oM.level[1].borderX=1
oM.level[1].borderY=1
oM.level[1].borderClass="clB3"
oM.level[1].align="bottomright"
oM.level[1].rows=1
oM.level[1].arrow=
oM.level[1].arrowWidth=10
oM.level[1].arrowHeight=10
oM.level[1].slidepx=10

oM.level[2]=new cm_makeLevel()
oM.level[2].width=60
oM.level[2].height=22
oM.level[2].borderClass="clB3"
oM.level[2].regClass="clT" 
oM.level[2].borderX=3
oM.level[2].borderY=1
oM.level[2].rows=0
oM.level[2].borderX=5
oM.level[2].borderY=2
oM.level[2].offsetX=0
oM.level[2].offsetY=0
oM.level[2].overClass="clTover" 
oM.level[2].align="bottom"

/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/

/*################# MELINDA: LOOK HERE ###################

	oM.makeMenu('2sub14','top2','Contact Us','/about_us/contact.html','',200,30,'','','','')
                  ^This is the Button ID.  It must be unique for each menu item.  Follow the pattern for best results.

	oM.makeMenu('2sub14','top2','Contact Us','/about_us/contact.html','',200,30,'','','','')
                            ^This is the "Parent Menu" -- the next level up the menu

	oM.makeMenu('2sub14','top2','Contact Us','/about_us/contact.html','',200,30,'','','','')
                                    ^These are the words that show up in the menu

	oM.makeMenu('2sub14','top2','Contact Us','/about_us/contact.html','',200,30,'','','','')
                                                    ^This is the link that the menu item points to

	oM.makeMenu('2sub14','top2','Contact Us','/about_us/contact.html','',200,30,'','','','')
                                                                          ^This is the width of the menu item.

#########################################################*/


oM.makeMenu('top1','','Home','/index.html','',0,0,'','','','','bottom')

oM.makeMenu('top2','','About Us','','',0,0,'','','','','bottom')
	oM.makeMenu('2sub10','top2','Message from the President','/about_us/president.html','',200,30,'','','','','')
	oM.makeMenu('2sub11','top2','Mission','/about_us/mission.html','',200,30,'','','','','')
	oM.makeMenu('2sub12','top2','History','/about_us/history.html','',200,30,'','','','','')
	oM.makeMenu('2sub13','top2','Funding','/about_us/funding.html','',200,30,'','','','','')
	oM.makeMenu('2sub14','top2','Fact Sheet','/about_us/AAD_New_Fact_Sheet_2011.pdf','',200,30,'','','','','')
	oM.makeMenu('2sub15','top2','Staff/Contact Us','/about_us/contact.html','',200,30,'','','','')
	oM.makeMenu('2sub16','top2','Internships','/about_us/Internships.htm','',200,30,'','','','','')

oM.makeMenu('top3','','Our Members','','',0,0,'','','','','bottom')
	oM.makeMenu('3sub10','top3','Membership List','/members/list.html','',150,30,'','','','','')
	oM.makeMenu('3sub11','top3','Board of Directors','/members/board.html','',150,30,'','','','','')
	oM.makeMenu('3sub12','top3','Charter Membership','/members/charter.html','',150,30,'','','','','')
	oM.makeMenu('3sub13','top3','Committee Membership','/members/committee.htm','',150,30,'','','','','')

oM.makeMenu('top4','','Current Programs','','',0,0,'','','','','bottom')
	oM.makeMenu('4sub10','top4','Annual Meeting','/programs/Annual_Meeting/2011_annual_meeting.html','',200,30,'','','','','','')
	oM.makeMenu('4sub11','top4','Arthur Ross Discussions of American Diplomacy','/programs/Ross/Discussions_Series.html','',200,40,'','','','','','')
	oM.makeMenu('4sub12','top4','Diplomacy and Education: Teaching Resources','/programs/Diplomacy_and_Education/Teaching_Resources.html','',200,40,'','','','','','')
	oM.makeMenu('4sub13','top4','Diplomatic Professional Education and Training Project','/programs/DPET.html','',200,40,'','','','','','')
	oM.makeMenu('4sub14','top4','Foreign Affairs Budget Project','/programs/fab_project.html','',200,30,'','','','','','')
	oM.makeMenu('4sub15','top4','Foreign Service Institute Project','/programs/FSI.html','',200,40,'','','','','','')
	oM.makeMenu('4sub16','top4','Joseph J. Sisco Memorial Forum','/programs/Sisco_Forum/sisco.html','',200,30,'','','','','','')
	oM.makeMenu('4sub17','top4','Philip Merrill Fellowship<BR>SAIS Essay Contest','/programs/merrill.html','',200,40,'','','','','','')
	
oM.makeMenu('top5','','Past Programs','','',0,0,'','','','','bottom')
	oM.makeMenu('5sub10','top5','Diplomacy and Democracy','/programs/Diplomacy_Democratization.html','',200,30,'','','','','','')
	oM.makeMenu('5sub11','top5','Genocide Prevention Task Force','/programs/Genocide/Genocide_Task_Force.html','',200,30,'','','','','','')
	oM.makeMenu('5sub12','top5','Integrating Instruments<BR>of Power and Influence','/publications/Integrating_Instruments.html','',200,40,'','','','','','')
	oM.makeMenu('5sub13','top5','Leonard Marks Foundation<BR>Essay Contest','/programs/marks.html','',200,40,'','','','')
		
oM.makeMenu('top6','','Awards','','',0,0,'','','','','bottom')
	oM.makeMenu('6sub10','top6','2011 Awards Luncheon','/awards/Luncheon/2011_awards_luncheon.html','',250,40,'','','','','')
	oM.makeMenu('6sub11','top6','Walter and Leonore Annenberg<br>Excellence in Diplomacy Award','/awards/diplomacy.html','',250,40,'','','','','')
	oM.makeMenu('6sub12','top6','Arthur Ross Media Award','/awards/media.html','',250,30,'','','','')
	oM.makeMenu('6sub13','top6','Douglas Dillon Book Award','/awards/book.html','',250,30) 
	
oM.makeMenu('top7','','Publications','','',0,0,'','','','','bottom')
	oM.makeMenu('7sub10','top7','AAD in the News','/publications/article.html','',200,30,'','','','','')
	oM.makeMenu('7sub11','top7','The Diplomatic Pouch<BR>Academy Newsletter','/publications/archives.html','',200,40,'','','','','')
	oM.makeMenu('7sub13','top7','<i>First Line of Defense:<BR>Ambassadors, Embassies and<BR>American Interests Abroad</i>','/publications/fld.html','',200,60)
	oM.makeMenu('7sub14','top7','<i>COALITIONS:<BR>Building and Maintenance</i>','/publications/coalitions.html','',200,40)
	oM.makeMenu('7sub15','top7','<i>Commercial Diplomacy and the National Interest</i>','/publications/commercial_diplomacy.html','',200,40)
	oM.makeMenu('7sub16','top7','<i>Task Force Report</i>','programs/Ansary/TaskForceReport.htm','',200,40)

	
oM.makeMenu('top8','','Links','/links.html','',0,0,'','','','','bottom')

oM.construct()


//Extra test code to customize the CoolMenus.
var xx,yy
// oM.m["top0"].b.hideIt() //Hiding the first item.

function getCoords(e){
	xx=(bw.ns4 || bw.ns6)?e.pageX:event.x||event.clientX
  yy=(bw.ns4 || bw.ns6)?e.pageY:event.y||event.clientY
}

//Capturing onmousemove event
if(bw.ns4) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove=getCoords;
