/*** 
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.
**/

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=0
oCMenu.fromTop=143 //changed by Barbara Jungwirth 3/27/03
if (pgID == "article") { //added by Josh Glenn for dhtml menu when 
			oCMenu.fromTop = 100;			// log in is not present on page	
		} else {
			if (pgID == "article2") { 
				oCMenu.fromTop = 100;			// logged in 
			} 
		}
//oCMenu.fromTop=320 
oCMenu.rows=0 
oCMenu.menuPlacement=0

oCMenu.offlineRoot="" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
oCMenu.fillImg="../images/spacer.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="menu"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX="menu"
oCMenu.barY="menu"
oCMenu.barBorderX=1
oCMenu.barBorderY=1
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be spesified in level 0
/*oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=120
oCMenu.level[0].height=25
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].style=""
oCMenu.level[0].borderX=1 
oCMenu.level[0].borderY=1
oCMenu.level[0].borderClass="clLevel0Border"
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].align="right" 
*/

oCMenu.level[0]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[0].width=173
oCMenu.level[0].height=22 //changed by BJ 3/28/03
//oCMenu.level[0].height=20
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].style=""
oCMenu.level[0].align="left"
oCMenu.level[0].offsetX=+(oCMenu.level[0].width+173); //changed by BJ 3/28/03
//oCMenu.level[0].offsetX=+(oCMenu.level[0].width+215);
oCMenu.level[0].offsetY=0
//oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].borderX=0 
oCMenu.level[0].borderY=0
oCMenu.level[0].rows=0

oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=173 //BJ 3/28/03
//oCMenu.level[1].width=200
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].borderX=0 
//oCMenu.level[0].height=22 //changed by Barbara Jungwirth 3/28/03
//oCMenu.level[1].height=20



/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
oCMenu.makeMenu('top0','','&nbsp;Home','http://www.thebodypro.com/index.shtml');

oCMenu.makeMenu('top1','','&nbsp;CME/CE Central','http://www.thebodypro.com/cme/')

oCMenu.makeMenu('top2','','&nbsp;Hot Topics','')
	oCMenu.makeMenu('sub20','top2','Antiretrovirals in Development','http://www.thebodypro.com/treat/newdrugs.html','','','36')
    oCMenu.makeMenu('sub21','top2','Cardiovascular Complications','http://www.thebodypro.com/treat/cardiac.html','','','36')
	oCMenu.makeMenu('sub22','top2','Hepatitis C/HIV Coinfection','http://www.thebodypro.com/treat/hepatit_c.html')
    oCMenu.makeMenu('sub23','top2','Initial HIV Therapy','http://www.thebodypro.com/treat/first.html')
    oCMenu.makeMenu('sub24','top2','Lipoatrophy (Wasting)','http://www.thebodypro.com/treat/wasting.html')
 oCMenu.makeMenu('sub25','top2','Lipodystrophy','http://www.thebodypro.com/treat/lipodystrophy.html')
    oCMenu.makeMenu('sub26','top2','Once-a-Day HIV Therapy','http://www.thebodypro.com/treat/onceaday.html')
	
oCMenu.makeMenu('top3','','&nbsp;Newsroom','http://www.thebodypro.com/newsroom.shtml')
	oCMenu.makeMenu('sub30','top3','Current News','http://www.thebodypro.com/newsroom.shtml')
	oCMenu.makeMenu('sub31','top3','News Archive','http://www.thebodypro.com/newsarc.html')

oCMenu.makeMenu('top4','','&nbsp;HIV Epidemiology','http://www.thebodypro.com/epidemic_link.html')
	oCMenu.makeMenu('sub40','top4','Global','http://www.thebodypro.com/treat/epidemic_intl.html')
	oCMenu.makeMenu('sub41','top4','Africa','http://www.thebodypro.com/treat/epidemic_africa.html')
	oCMenu.makeMenu('sub42','top4','Asia','http://www.thebodypro.com/treat/epidemic_asia.html')
	oCMenu.makeMenu('sub43','top4','Australia','http://www.thebodypro.com/treat/epidemic_other.html#australia')
	oCMenu.makeMenu('sub44','top4','Canada','http://www.thebodypro.com/treat/epidemic_canada.html')
	oCMenu.makeMenu('sub45','top4','Eastern Europe','http://www.thebodypro.com/treat/epidemic_eeurope.html')
	oCMenu.makeMenu('sub46','top4','Latin America/Caribbean','http://www.thebodypro.com/treat/epidemic_lamerica.html')
	oCMenu.makeMenu('sub47','top4','Middle East','http://www.thebodypro.com/treat/epidemic_other.html#mideast')
	oCMenu.makeMenu('sub48','top4','Oceania','http://www.thebodypro.com/treat/epidemic_other.html#oceania')
	oCMenu.makeMenu('sub49','top4','U.S.','http://www.thebodypro.com/treat/epidemic_america.html')
	oCMenu.makeMenu('sub410','top4','Western Europe','http://www.thebodypro.com/treat/epidemic_weurope.html')

oCMenu.makeMenu('top5','','&nbsp;HIV Transmission','http://www.thebodypro.com/prevention_link.html')
   	oCMenu.makeMenu('sub50','top5','Basic Science','http://www.thebodypro.com/treat/basics.html')
   	oCMenu.makeMenu('sub51','top5','Prevention &amp; Transmission','http://www.thebodypro.com/treat/transmission.html')
   	oCMenu.makeMenu('sub52','top5','HIV Testing','http://www.thebodypro.com/treat/testing.html')
   	oCMenu.makeMenu('sub53','top5','Harm Reduction/Needle Exchange','http://www.thebodypro.com/treat/harm_reduction.html','','','36')
   	oCMenu.makeMenu('sub54','top5','Post-Exposure Prophylaxis','http://www.thebodypro.com/treat/carework.html')
   	oCMenu.makeMenu('sub55','top5','Other Sexually Transmitted Diseases','http://www.thebodypro.com/treat/stds.html','','','36')
   	oCMenu.makeMenu('sub56','top5','Outside the United States','http://www.thebodypro.com/treat/intl_prev_link.html')
	
oCMenu.makeMenu('top6','','&nbsp;Treatment Library','http://www.thebodypro.com/treat_link.html')
	oCMenu.makeMenu('sub61','top6','Clinical Management of HIV','http://www.thebodypro.com/clinical_link.html')
	oCMenu.makeMenu('sub62','top6','Antiretrovirals','http://www.thebodypro.com/antiretroviral_link.html')
	oCMenu.makeMenu('sub63','top6','Complications of HIV','http://www.thebodypro.com/oi_link.html')
	oCMenu.makeMenu('sub65','top6','Research &amp; Development','http://www.thebodypro.com/research_link.html')
	oCMenu.makeMenu('sub66','top6','Clinical Trials','http://www.thebodypro.com/treat/open_trials.html')
	oCMenu.makeMenu('sub67','top6','Clinical Publications','http://www.thebodypro.com/treat/prof_publications.html')
	oCMenu.makeMenu('sub68','top6','Outside the United States','http://www.thebodypro.com/treat/intl_treat_link.html')
		
oCMenu.makeMenu('top7','','&nbsp;Ask Your Colleagues','http://www.thebodypro.com/Forums/AIDS/Treatment/')

oCMenu.makeMenu('top8','','&nbsp;Conference Coverage','http://www.thebodypro.com/confs/confcov_recent.html','','','','','','','','righttop')
	oCMenu.makeMenu('sub80','top8','IAS 2005','http://www.thebodypro.com/confs/ias2005/ias2005.html')
	oCMenu.makeMenu('sub81','top8','CROI 2005','http://www.thebodypro.com/confs/retro2005/retro2005.shtml')
	oCMenu.makeMenu('sub82','top8','ICAAC 2004','http://www.thebodypro.com/confs/icaac2004/icaac2004.shtml')
	oCMenu.makeMenu('sub83','top8','AIDS 2004','http://www.thebodypro.com/confs/aids2004/aids2004.shtml')
	oCMenu.makeMenu('sub84','top8','CROI 2004','http://www.thebodypro.com/confs/retro2004/retro2004.shtml')
	oCMenu.makeMenu('sub85','top8','2003 Conferences','http://www.thebodypro.com/confs/confcov_recent.html#2003')	
	oCMenu.makeMenu('sub86','top8','2002 Conferences','http://www.thebodypro.com/confs/confcov_recent.html#2002')
	oCMenu.makeMenu('sub87','top8','Upcoming Conferences','http://www.thebodypro.com/cdc/newconfs/upcoming.html')

oCMenu.makeMenu('top9','','&nbsp;AIDS Policy','http://www.thebodypro.com/policy_link.html','','','','','','','','righttop')
	oCMenu.makeMenu('sub90','top9','FDA Review and Approval of New Drugs','http://www.thebodypro.com/treat/fda.html','','','36')
	oCMenu.makeMenu('sub91','top9','Treatment Access and Drug Patents','http://www.thebodypro.com/treat/patents.html','','','36')
	oCMenu.makeMenu('sub92','top9','ADAP, Medicare and Medicaid','http://www.thebodypro.com/treat/adap.html','','','36')
	oCMenu.makeMenu('sub93','top9','Other Policy/Funding<BR>Issues in HIV','http://www.thebodypro.com/treat/miscpolicy.html','','','36')

oCMenu.makeMenu('top10','','&nbsp;Professional Development','http://www.thebodypro.com/professional_link.html','','','','','','','','righttop')
	oCMenu.makeMenu('sub100','top10','Professional Organizations','http://www.thebodypro.com/treat/prof_associations.html')
	oCMenu.makeMenu('sub101','top10','Clinical Publications','http://www.thebodypro.com/treat/prof_publications.html')
	oCMenu.makeMenu('sub102','top10','Training Resources','http://www.thebodypro.com/treat/professional.html')
	oCMenu.makeMenu('sub103','top10','Treatment Education','http://www.thebodypro.com/treat/treatment_ed.html')
	oCMenu.makeMenu('sub104','top10','News &amp; Analysis','http://www.thebodypro.com/treat/prof_news.html')


if(!(bw.ie5&&bw.mac)) oCMenu.construct(0);

if(bw.ie5&&bw.mac) oCMenu.construct(0);
