//*----------------------------------------------
//* SIDE 1
//* Update Log
//* 2007-06-26 Change White Papers to Whitepapers
//* 2007-10-23 Remove Job Board 
//* 2008-03-08 Change New icon to Free
//* 2008-08-19 Change Vendor Enrolment to Media Kit
//* 2009-10-04 New Referral Network Section
//* 2010-07-22 Fix Referral Menu. It was missing.
//*----------------------------------------------
	var dir = location.href.substring(0,location.href.lastIndexOf('/')+1);
	var thefile = location.href.substring(dir.length,location.href.length+1);
	
 //alert(thefile);
//*----------------------------------------------
//*  GLOBAL LANGUAGE SUFFIX
//*----------------------------------------------
	lang = ".asp;";
	pdficon = "image=../images/pdf-icon-red.gif;imageposition=baseline;imagepadding=2;";
	webicon = "image=../images/web-icon.gif;imageposition=baseline;imagepadding=2;";
	iconnew = "image=../images/icon-new-rect.gif;imageposition=baseline;imagepadding=2;";
	iconfree = "image=../images/icon-free.gif;imageposition=baseline;imagepadding=2;";
//*----------------------------------------------
//*  JUMPTO  MENU
//*----------------------------------------------
	with(milonic=new menuname("QuickMenu")){	
  	style=quickMenuStyle; itemwidth=120; alwaysvisible=1; orientation="vertical"; position="relative";
	aI("text=Ask an Expert;url=res-askexpert-form.asp;");
	aI("text=Coaching Request;url=res-serv-coach-form.asp;");
//	aI("text=Vendor RFI;url=res-serv-rfi-form.asp;");
	aI("text=Ask for a Referral;url=ref-askreferral-form.asp;");
//	aI("text=Pay Invoice;url=contact-payinv-form.asp;");
	aI("text=Send an RFI;url=ref-rfi-form.asp;");	
	aI("text=Customer Service;url=contact.asp;");
//	aI(iconfree + "text=Guest Search<br><i>No&nbsp;Registration!</i>;url=dir-guest-login.asp;offbgcolor=#FEFEEF;");
//	aI("text=Search Directory;url=dir-search.asp;");
	}
 	
	drawMenus(); //* This is required for the following statement.
	
	//* this spacer will put some vertical space between the Quick and Side menus/
	document.write ('<img src="../images/spacer.gif" width=4 height=8 border=0>');

//*----------------------------------------------
//* DIR MENU
	pref="dir-";
//*----------------------------------------------
if (thefile.substring(0,"dir-".length) == "dir-" || thefile.substring(0,"dir-confirm".length) == "dir-confirm" )	{
	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=120;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Vendor Directory</b>;url=" + pref + "intro" + lang );
  	
	aI("text=Buyer’s Guide;url=" + pref + "buyersguide.asp;");
	aI("text=Order;url=" + pref + "prod-intro.asp;showmenu=order2;")
	aI("text=Buyer’s Coach;url=res-serv-coach.asp;");
	aI("text=Affiliate Program;url=" + pref + "affiliate-form.asp;");
//	aI("text=Vendor Enrolment;url=" + pref + "vendor-enrol-form.asp;");
	aI("text=Media Kit;url=" + pref + "mediakit-form.asp;");
  	aI("text=Login;url=" + pref + "login-form.asp;");
  	aI("text=Directory Menu;url=" + pref + "menu.asp;");
	} 
}

with(milonic=new menuname("order2")){
style=subMenuStyle;  
	aI("text=Free Online Searching;url=" + pref + "prod-freesearch.asp;");
	aI("text=Paid Online Searching;url=" + pref + "prod-form.asp?func=ps;");
	aI("text=Free PDF Download;url=" + pref + "prod-freepdf.asp;");
	aI("text=Purchase PDF Download;url=" + pref + "prod-form.asp?func=ppdf;");
	aI("text=Purchase Printed Edition;url=" + pref + "prod-form.asp?func=pprt;");
	aI("text=Shipping and Returns Policy;url=" + pref + "shipping.asp;");
}

//*----------------------------------------------
//* REFERRAL - SIDE MENU
	pref="ref-";
//*----------------------------------------------
if (thefile.substring(0,"ref-".length) == "ref-" )	{
	with(milonic=new menuname("SideMenu")){	
	style=sideMenuStyle;itemwidth=120;	alwaysvisible=1; orientation="vertical"; position="relative";
	aI("text=<b>Referral Network</b>;url=" + pref + "intro" + lang );
	aI("text=Ask for a Referral;url=" + pref + "askreferral-form.asp;");
	aI("text=B2B Hub Referrals;url=" + pref + "b2bhubs.asp")
	aI("text=Healthcare Payer Referrals;url=" + pref + "healthcare.asp;");
    aI("text=Association Referrals;url=" + pref + "assoc.asp;");
  	aI("text=Send an RFI;url=" + pref + "rfi-form.asp;");
  	aI("text=Ask an Expert;url=" + pref + "askexpert-form.asp;");		
	}
}		

//*----------------------------------------------
//* RESOURCE CENTER - SIDE MENU
	pref="res-";
//* countChar(thefile, "-") = 2  checks if filename has 2 hyphens (eg. comm-intro-e.asp)
//*----------------------------------------------

if (thefile.substring(0,"res-intro".length) == "res-intro" || thefile.substring(0,"res-confirm".length) == "res-confirm" )	{
	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=120;	alwaysvisible=1; orientation="vertical"; position="relative";
	aI("text=<b>Resource Center</b>;url=" + pref + "intro" + lang );
	aI("text=Services;url=" + pref + "serv-intro.asp;showmenu=services;");
	aI("text=Publications;url=" + pref + "pub-intro.asp;showmenu=pub;");
	aI("text=Links;url=" + pref + "links-intro.asp;showmenu=links;");
	aI("text=Ask an Expert;url=" + pref + "askexpert-form.asp;");
//	aI("text=Job Board;url=" + pref + "job-intro.asp;showmenu=jobboard;");
	}
}	//* end if	

if ( thefile.substring(0,"res-serv".length) == "res-serv" )	{
	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=120;	alwaysvisible=1; orientation="vertical"; position="relative";
	aI("text=<b>Resource Center</b>;url=" + pref + "intro.asp;" );
	aI("text=<b>Services</b>;url=" + pref + "serv-intro.asp;");
 	aI("text=Buyer’s Coach;url=" + pref + "serv-coach.asp");
 	aI("text=&nbsp; &nbsp;Coaching Request;url=" + pref + "serv-coach-form.asp;");
	aI("text=Seminars & Training;url=" + pref + "serv-seminars.asp;");
	aI("text=Vendor RFI;url=" + pref + "serv-rfi-form.asp;");
	aI("text=EC/EDI Technology Audit;url=" + pref + "serv-audit.asp;");
	}

}	//* end if

if ( thefile.substring(0,"res-pub".length) == "res-pub" )	{
	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=120;	alwaysvisible=1; orientation="vertical"; position="relative";
	aI("text=<b>Resource Center</b>;url=" + pref + "intro.asp;" );
	aI("text=<b>Publications</b>;url=" + pref + "pub-intro.asp;");	
	aI("text=Articles;url=" + pref + "pub-articles.asp;");
	aI("text=Newsletters;url=" + pref + "pub-newsletters.asp;");
	aI("text=Whitepapers;url=" + pref + "pub-whitepapers.asp;");
	aI("text=Add a Publication;url=" + pref + "pub-addpub-form.asp;");
	} 
}	//* end if

if ( thefile.substring(0,"res-links".length) == "res-links" )	{
	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=120;	alwaysvisible=1; orientation="vertical"; position="relative";
	aI("text=<b>Resource Center</b>;url=" + pref + "intro" + lang );
	aI("text=<b>Links</b>;url=" + pref + "links-intro" + lang );
	aI("text=User Groups;url=" + pref + "links-usergroups.asp;");
	aI("text=Associations;url=" + pref + "links-assoc.asp;");
	aI("text=B2B Hubs;url=" + pref + "links-b2bhubs.asp;");
	aI("text=Healthcare Payers;url=" + pref + "links-healthcare.asp;");
	aI("text=Coming Events;url=" + pref + "links-events.asp;");
	aI("text=Free Software;url=" + pref + "links-software.asp;");
	aI("text=Other Links;url=" + pref + "links-other.asp;");
	aI("text=Add a Link;url=" + pref + "links-addlink-form.asp;");
	}
}	//* end if

//* JOBS REMOVED 2007-10-23
if ( thefile.substring(0,"res-job".length) == "res-jobxxx" )	{
	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=120;	alwaysvisible=1; orientation="vertical"; position="relative";
	aI("text=<b>Resource Center</b>;url=" + pref + "intro.asp;" );
	aI("text=<b>Job Board</b>;url=" + pref + "job-intro.asp");
	aI("text=View Jobs;url=" + pref + "job-viewjobs.asp;");
	aI("text=View Candidates;url=" + pref + "job-viewcand.asp;");
	aI("text=Add a Job;url=" + pref + "job-addjob-form.asp;");
	aI("text=Add a Candidate;url=" + pref + "job-addcand-form.asp;");;
	} 
}	//* end if
 
//*----------------------------------------------
//* NEWS SIDE MENU
	pref="news-";
//*----------------------------------------------
if (thefile.substring(0,"news-".length) == "news-" || thefile.substring(0,"news-confirm".length) == "news-confirm" )	{
	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=120;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Update News Service</b>;url=" + pref + "intro.asp;");
  	aI("text=View Press Releases;url=" + pref + "view-press.asp;");
	aI("text=Submit a Release;url=" + pref + "subrel-form.asp;");
	aI("text=View Archives;url=" + pref + "archives.asp;");
	} 
} 

drawMenus();
 document.write ('<img src="../images/spacer.gif" width=4 height=12 border=0>');

//*----------------------------------------------
//* NEWS SIDE MENU	 
//*----------------------------------------------
if (thefile.substring(0,"contact".length) == "contact" )	{
	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=120;	alwaysvisible=1; orientation="vertical"; position="relative";

	} 
} 

drawMenus();
 document.write ('<img src="../images/spacer.gif" width=4 height=12 border=0>');