var bn=navigator.platform
var ie=navigator.appName
var leftmargin=0
if(ie.indexOf("Microsoft Internet Explorer")!=-1)
leftmargin=-3;

_menuCloseDelay=100           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over
_followSpeed=5                // Follow scrolling speed
_followRate=40                // Follow scrolling Rate
_subOffsetTop=5               // Sub menu top offset
_subOffsetLeft=0              // Sub menu left offset
_scrollAmount=3               // Only needed for Netscape 4.x
_scrollDelay=20               // Only needed for Netcsape 4.x


with(menuStyle=new mm_style()){
onbgcolor="#666666";
oncolor="#ffffff";
offbgcolor="#000000";
offcolor="#ffffff";
bordercolor="#296488";
borderstyle="solid";
borderwidth=0;
separatorcolor="#2D729D";
separatorsize="1";
padding=2;
fontsize="10px";
fontstyle="bold";
fontfamily="verdana,san-serif,Arial,Helvetica";
pagecolor="black";
pagebgcolor="#82B6D7";
headercolor="#000000";
headerbgcolor="#ffffff";
//subimage="../images/arrow.gif";
subimagepadding="5";
}

with(submenuStyle=new mm_style()){
separatorsize="0";
padding=0;
fontsize="10px";
fontweight="bold"
fontstyle="bold";
fontfamily="verdana,Arial,Helvetica,san-serif";
pagecolor="white";
pagebgcolor="#000000";
headercolor="#ffffff";
headerbgcolor="#ffffff";
//subimage="../images/arrow.gif";
subimagepadding="5";
}

//Membership
with(milonic=new menuname("mem")){ 
style=submenuStyle;
overflow="scroll";
left=-195;
top=-48;
aI("text=<img src='../../images/joining_off.png' alt='Joining HEDNA' title='Joining HEDNA' name='myimage18' id='myimage18' onmouseover='menu_highlight(\"myimage18\",\"joining_on.png\")' onmouseout='menu_drop(\"myimage18\",\"joining_off.png\")'>;url=../../membership/joining_hedna.cfm;");
aI("text=<img src='../../images/benefits_off.png' alt='Benefits' title='Benefits' name='myimage19' id='myimage19' onmouseover='menu_highlight(\"myimage19\",\"benefits_on.png\")' onmouseout='menu_drop(\"myimage19\",\"benefits_off.png\")'>;url=../../membership/benefits.cfm;");
aI("text=<img src='../../images/elections_off.png' alt='Board and Elections' title='Board and Elections' name='myimage20' id='myimage20' onmouseover='menu_highlight(\"myimage20\",\"elections_on.png\")' onmouseout='menu_drop(\"myimage20\",\"elections_off.png\")'>;url=../../membership/board_and_elections.cfm;");
aI("text=<img src='../../images/current_off.png' alt='Current Members' title='Current Members' name='myimage21' id='myimage21' onmouseover='menu_highlight(\"myimage21\",\"current_on.png\")' onmouseout='menu_drop(\"myimage21\",\"current_off.png\")'>;url=../../membership/profiles.cfm;");
aI("text=<img src='../../images/code_of_conduct_off.png' alt='Code of conduct' title='Code of conduct' name='myimage22' id='myimage22' onmouseover='menu_highlight(\"myimage22\",\"code_of_conduct_on.png\")' onmouseout='menu_drop(\"myimage22\",\"code_of_conduct_off.png\")'>;url=../../membership/code_of_conduct.cfm;");
}

//Networking
with(milonic=new menuname("net")){
orientation="vertical";
style=submenuStyle;
overflow="scroll";
left=-195;
top=-54;
aI("text=<img src='../images/latest_news_off.png' alt='Latest News' title='Latest News' name='myimage43' id='myimage43' onmouseover='menu_highlight(\"myimage43\",\"latest_news_on.png\")' onmouseout='menu_drop(\"myimage43\",\"latest_news_off.png\")'>;url=../networking/latest_news.cfm;");
aI("text=<img src='../../images/events_off.png' alt='Events' title='Events' name='myimage23' id='myimage23' onmouseover='menu_highlight(\"myimage23\",\"events_on.png\")' onmouseout='menu_drop(\"myimage23\",\"events_off.png\")'>;url=../../networking/events.cfm;");
aI("text=<img src='../../images/marketing_opp_off.png' alt='Marketing Opportunities' title='Marketing Opportunities' name='myimage25' id='myimage25' onmouseover='menu_highlight(\"myimage25\",\"marketing_opp_on.png\")' onmouseout='menu_drop(\"myimage25\",\"marketing_opp_off.png\")'>;url=../../networking/marketing_opportunities.cfm");
aI("text=<img src='../../images/strategic_off.png' alt='Strategic Alliances' title='Strategic Alliances' name='myimage26' id='myimage26' onmouseover='menu_highlight(\"myimage26\",\"strategic_on.png\")' onmouseout='menu_drop(\"myimage26\",\"strategic_off.png\")'>;url=../../networking/strategic_alliances.cfm");
<!--aI("text=<img src='../../images/learning_sessions_off.png' alt='Learning Sessions' title='Learning Sessions' name='myimage27' id='myimage27' onmouseover='menu_highlight(\"myimage27\",\"learning_sessions_on.png\")' onmouseout='menu_drop(\"myimage27\",\"learning_sessions_off.png\")'>;url=../../networking/learning_sessions.cfm");-->
aI("text=<img src='../../images/industry_calendar_off.png' alt='Industry Calendar' title='Industry Calendar' name='myimage28' id='myimage28' onmouseover='menu_highlight(\"myimage28\",\"industry_calendar_on.png\")' onmouseout='menu_drop(\"myimage28\",\"industry_calendar_off.png\")'>;url=../../networking/industry_calendar.cfm");
<!--aI("text=<img src='../images/singapore_2009_off.png' alt='Prague 2010' title='Prague 2010' name='myimage41' id='myimage41' onmouseover='menu_highlight(\"myimage41\",\"singapore_2009_on.png\")' onmouseout='menu_drop(\"myimage41\",\"singapore_2009_off.png\")'>;url=../2010_hedna_spring_meeting/");-->
}

//Library
with(milonic=new menuname("lib")){
orientation="vertical";
style=submenuStyle;
overflow="scroll";
left=-195;
top=-75;
//aI("text=<img src='../../images/committees_off.png' alt='Committees' title='Committees' name='myimage31' id='myimage31' onmouseover='menu_highlight(\"myimage31\",\"committees_on.png\")' onmouseout='menu_drop(\"myimage31\",\"committees_off.png\")'>;url=../../library/committees.cfm;showmenu=stand2");
aI("text=<img src='../../images/white_papers_off.png' alt='White Paper' title='White Paper' name='myimage32' id='myimage32' onmouseover='menu_highlight(\"myimage32\",\"white_papers_on.png\")' onmouseout='menu_drop(\"myimage32\",\"white_papers_off.png\")'>;url=../../library/white_papers.cfm");
aI("text=<img src='../../images/industry_issues_off.png' alt='Industry Issues & Updates' title='Industry Issues & Updates' name='myimage33' id='myimage33' onmouseover='menu_highlight(\"myimage33\",\"industry_issues_on.png\")' onmouseout='menu_drop(\"myimage33\",\"industry_issues_off.png\")'>;url=../../library/industry_issues_and_updates.cfm;showmenu=proce2");
aI("text=<img src='../../images/available_hotel_off.png' alt='Available Hotel Chains' title='Available Hotel Chains' name='myimage34' id='myimage34' onmouseover='menu_highlight(\"myimage34\",\"available_hotel_on.png\")' onmouseout='menu_drop(\"myimage34\",\"available_hotel_off.png\")'>;url=../../library/available_hotel_chains.cfm");
}

//Press Room
with(milonic=new menuname("press")){
orientation="vertical";
style=submenuStyle;
overflow="scroll";
left=-195;
top=-39;
aI("text=<img src='../images/hedna_members_only_off.png' alt='HEDNA Members Only' title='HEDNA Members Only' name='myimage40' id='myimage40' onmouseover='menu_highlight(\"myimage40\",\"hedna_members_only_on.png\")' onmouseout='menu_drop(\"myimage40\",\"hedna_members_only_off.png\")'>;url=https://hedna.ebiz.uapps.net/solutionsite/;target='_blank'");
}

var scrheight=0;scrwidth=0;
var bw=navigator.userAgent;
var bn=navigator.platform;
var ie=false;
var fx=false
var os="Win";
var ns=false;
var sf=false;
var op=false;
var mz=false;

////Library-2 level-1
with(milonic=new menuname("stand2")){
style=submenuStyle;
overflow="scroll";
//left=+370;
//top=+210;
scrheight =(window.screen.height);
scrwidth =(window.screen.width);

if(bn.indexOf("Win32")==-1){os="Mac";}
if(bw.indexOf("Opera")!=-1)
{	
	if(parseInt(scrwidth)=="800"  && parseInt(scrheight)=="600")
	{
		top=210;
		left=left+254;
	}
	if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{
		top=210;
		left=left+305;
	}
	if(parseInt(scrwidth)=="1152" && parseInt(scrheight)=="864")
	{
		top=210;
		left=left+369;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="720")
	{
		top=210;
		left=left+433;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="768")
	{
		top=210;
		left=left+433;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="800")
	{
		top=210;
		left=left+433;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="960")
	{
		top=210;
		left=left+433;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="1024")
	{
		top=210;
		left=left+433;	
	}	
	op=true;
	
}
else if(bw.indexOf("MSIE")!=-1)
{			
	if(parseInt(scrwidth)=="800"  && parseInt(scrheight)=="600")
	{
		top=210;
		left=left+254;
	}
	if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{
		top=210;
		left=left+306;
	}
	if(parseInt(scrwidth)=="1152" && parseInt(scrheight)=="864")
	{		
		top=210;
		left=left+370;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="720")
	{
		top=210;
		left=left+434;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="768")
	{
		top=210;
		left=left+434;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="800")
	{
		top=210;
		left=left+434;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="960")
	{
		top=210;
		left=left+434;	
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="1024")
	{
		top=210;
		left=left+434;	
	}	
	ie=true;
}
else if(bw.indexOf("Firefox")!=-1)
{
	scrheight =(window.screen.height);
	scrwidth =(window.screen.width);

	if(parseInt(scrwidth)=="800"  && parseInt(scrheight)=="600")
	{
		top=210;
		left=left+254;
	}
	if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{
		top=210;
		left=left+308;
	}
	if(parseInt(scrwidth)=="1152" && parseInt(scrheight)=="864")
	{
		top=210;
		left=left+372;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="720")
	{
		top=210;
		left=left+436;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="768")
	{
		top=210;
		left=left+436;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="800")
	{
		top=210;
		left=left+436;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="960")
	{
		top=210;
		left=left+436;	
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="1024")
	{
		top=210;
		left=left+436;	
	}
	fx=true;
}
aI("text=<img src='../../images/standards_off.png' alt='Standards' title='Standards' name='myimage35' id='myimage35' onmouseover='menu_highlight(\"myimage35\",\"standards_on.png\")' onmouseout='menu_drop(\"myimage35\",\"standards_off.png\")'>;url=../../library/committees_standards.cfm");
aI("text=<img src='../../images/distibution_off.png' alt='Distribution Management' title='Distribution Management' name='myimage36' id='myimage36' onmouseover='menu_highlight(\"myimage36\",\"distibution_on.png\")' onmouseout='menu_drop(\"myimage36\",\"distibution_off.png\")'>;url=../../library/distribution_management.cfm");
aI("text=<img src='../../images/archived_off.png' alt='Archived' title='Archived' name='myimage37' id='myimage37' onmouseover='menu_highlight(\"myimage37\",\"archived_on.png\")' onmouseout='menu_drop(\"myimage37\",\"archived_off.png\")'>;url=../../library/archived.cfm");
}

////Library-2 level-2
with(milonic=new menuname("proce2")){
style=submenuStyle;
overflow="scroll";
//left=+370;
//top=+270;

scrheight =(window.screen.height);
scrwidth =(window.screen.width);

if(bn.indexOf("Win32")==-1){os="Mac";}
if(bw.indexOf("Opera")!=-1)
{	
	if(parseInt(scrwidth)=="800"  && parseInt(scrheight)=="600")
	{
		top=270;
		left=left+254;
	}
	if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{
		top=270;
		left=left+305;
	}
	if(parseInt(scrwidth)=="1152" && parseInt(scrheight)=="864")
	{
		top=270;
		left=left+369;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="720")
	{
		top=270;
		left=left+433;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="768")
	{
		top=270;
		left=left+433;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="800")
	{
		top=270;
		left=left+433;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="960")
	{
		top=270;
		left=left+433;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="1024")
	{
		top=270;
		left=left+433;	
	}	
	op=true;
	
}
else if(bw.indexOf("MSIE")!=-1)
{			
	if(parseInt(scrwidth)=="800"  && parseInt(scrheight)=="600")
	{
		top=270;
		left=left+254;
	}
	if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{
		top=270;
		left=left+306;
	}
	if(parseInt(scrwidth)=="1152" && parseInt(scrheight)=="864")
	{
		
		top=270;
		left=left+370;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="720")
	{
		top=270;
		left=left+434;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="768")
	{
		top=270;
		left=left+434;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="800")
	{
		top=270;
		left=left+434;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="960")
	{
		top=270;
		left=left+434;	
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="1024")
	{
		top=270;
		left=left+434;	
	}	
	ie=true;
}
else if(bw.indexOf("Firefox")!=-1)
{
	scrheight =(window.screen.height);
	scrwidth =(window.screen.width);

	if(parseInt(scrwidth)=="800"  && parseInt(scrheight)=="600")
	{
		top=270;
		left=left+254;
	}
	if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{
		top=270;
		left=left+308;
	}
	if(parseInt(scrwidth)=="1152" && parseInt(scrheight)=="864")
	{
		top=270;
		left=left+372;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="720")
	{
		top=270;
		left=left+436;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="768")
	{
		top=270;
		left=left+436;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="800")
	{
		top=270;
		left=left+436;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="960")
	{
		top=270;
		left=left+436;	
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="1024")
	{
		top=270;
		left=left+436;	
	}
	fx=true;
}

aI("text=<img src='../../images/procedures_off.png' alt='Procedures' title='Procedures' name='myimage38' id='myimage38' onmouseover='menu_highlight(\"myimage38\",\"procedures_on.png\")' onmouseout='menu_drop(\"myimage38\",\"procedures_off.png\")'>;url=../../library/procedures.cfm");
aI("text=<img src='../../images/standards_off.png' alt='Standards' title='Standards' name='myimage39' id='myimage39' onmouseover='menu_highlight(\"myimage39\",\"standards_on.png\")' onmouseout='menu_drop(\"myimage39\",\"standards_off.png\")'>;url=../../library/industry_standards.cfm");
}

function menu_highlight(imgname,imgsrc)
{
	document.images[imgname].src='../../images/'+imgsrc;
}

function menu_drop(imgname,imgsrc)
{
	document.images[imgname].src='../../images/'+imgsrc;
}

drawMenus();
