// mjf
// bTestSite is defined in mjf_sitelocaldata.js

var nMenuWidth=160;				// width of menus to appear. Set to zero to ignore
var sBaseSite= (bTestSite) ? "http://www.minisage.com/iym/" : "http://www.yearofmicrocredit.org/";
var sMenuDir= sBaseSite + "graphics/common/";

var submenuTopOffset = "offset=5";
var submenuLeftOffset = "offset=1";
// milonic
_menuCloseDelay=250;           	// The time delay for menus to remain visible on mouse out
_menuOpenDelay=50;             	// The time delay before menus open on mouse over
_subOffsetTop=-1;             	// Sub menu top offset from bottom of image associated with it
_subOffsetLeft=0;            	// Sub menu left offset  // 10

// top level flyout style
with(menuStyle=new mm_style()){
fontfamily="Arial";				// font / font family
fontsize="10px";				// font size
fontstyle="normal";				// font style
onbgcolor="#732D0A";			// hover background color
oncolor="#DAA504";				// hover text color
offbgcolor="#732D0A";			// normal (non-hover) background color
offcolor="#FFFFFF";				// normal (non-hover) text color
bordercolor="#FFFFFF";			// border color
separatorcolor="#FFFFFF";		// separator color
pagebgcolor="#732D0A"; 			// this is the (non-hover) background color of the menu item last clicked
pagecolor="#FFFFFF";  			// this is the (non-hover) text color of the menu item last clicked
padding=3;						// menu item cell padding
borderstyle="solid";
borderwidth=1;
separatorsize="1";
headercolor="#FF0000";
headerbgcolor="#FF0000";
subimage= sMenuDir + "arrows.gif";
subimageposition="bottom";
subimagepadding="6";
//overfilter="Fade(duration=0.1);Alpha(opacity=100);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="Fade(duration=0.1)";
ondecoration="underline"; 
}

// sub level flyout style
with(submenuStyle=new mm_style()){
//decoration="underline";
fontfamily="Arial";				// font / font family
fontsize="10px";				// font size
fontstyle="normal";				// font style
onbgcolor="#B0D7A0";			// hover background color
oncolor="#732D0A";				// hover text color
offbgcolor="#B0D7A0";			// normal (non-hover) background color
offcolor="#000000";				// normal (non-hover) text color
bordercolor="#FFFFFF";			// border color
separatorcolor="#FFFFFF";		// separator color
pagebgcolor="#B0D7A0"; 			// this is the (non-hover) background color of the menu item last clicked
pagecolor="#000000";  			// this is the (non-hover) text color of the menu item last clicked
padding=3;						// menu item cell padding
borderstyle="solid";
borderwidth=1;
separatorsize="1";
headercolor="#FF0000";
headerbgcolor="#FF0000";
subimage= sMenuDir + "arrows.gif";
subimageposition="bottom";
subimagepadding="6";
//overfilter="Fade(duration=0.1);Alpha(opacity=100);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="Fade(duration=0.1)";
ondecoration="underline";
}

// TOP LEVEL - WHY A YEAR?
with(milonic=new menuname("whyayear")){
style=menuStyle;
if (nMenuWidth) itemwidth=nMenuWidth;
top=_subOffsetTop;
left=_subOffsetLeft;
aI("text=HIGHLIGHTS;showmenu=Highlights Jumplinks;url=" + sBaseSite + "pages/whyayear/whyayear_highlights.asp;");
aI("text=Learn About the Year;url=" + sBaseSite + "pages/whyayear/whyayear_learnaboutyear.asp;");
aI("text=About Microfinance and Microcredit: FAQs;url=" + sBaseSite + "pages/whyayear/whyayear_aboutmicrofinance.asp;");
//aI("text=What Clients Say;url=" + sBaseSite + "pages/whyayear/whyayear_whatclientssay.asp;");
aI("text=What Clients Say;showmenu=What Clients Say;");
aI("text=Quote Collection;url=" + sBaseSite + "pages/whyayear/whyayear_quotecollection.asp;");
}

	// SUB LEVEL Highlights Jumplinks
	with(milonic=new menuname("Highlights Jumplinks")){
	style=submenuStyle;
		top=submenuTopOffset; 
		left=submenuLeftOffset; 
	aI("text=Blue Book Project;url=" + sBaseSite + "pages/whyayear/whyayear_highlights.asp#unbanked;");
	aI("text=Global Microentrepreneurship Awards;url=" + sBaseSite + "pages/whyayear/whyayear_highlights.asp#awards;");
	aI("text=Public Service Announcements;url=" + sBaseSite + "pages/whyayear/whyayear_highlights.asp#psas;");
	aI("text=Data Project;url=" + sBaseSite + "pages/whyayear/whyayear_highlights.asp#services;");
	}
	
	// SUB LEVEL What Clients Say
	with(milonic=new menuname("What Clients Say")){
	style=submenuStyle;
		top=submenuTopOffset; 
		left=submenuLeftOffset; 
	aI("text=Quoted;url=" + sBaseSite + "pages/whyayear/whyayear_whatclientssay.asp;");
	aI("text=Financial Diaries;url=" + sBaseSite + "pages/whyayear/whyayear_financialdiaries.asp;");
	aI("text=Global Microentrepreneurship Awards;url=" + sBaseSite + "pages/whyayear/whyayear_gmawards.asp;");
	}


// TOP LEVEL - WHO'S INVOLVED
with(milonic=new menuname("whosinvolved")){
style=menuStyle;
if (nMenuWidth) itemwidth=nMenuWidth;
top=_subOffsetTop;
left=_subOffsetLeft;
aI("text=Meet our Core Sponsors;url=" + sBaseSite + "pages/whosinvolved/whosinvolved_meetsponsors.asp;");
aI("text=Patrons Group;url=" + sBaseSite + "pages/whosinvolved/whosinvolved_patronsgroup.asp;");
aI("text=National Committees;url=" + sBaseSite + "pages/whosinvolved/whosinvolved_nationalcommittees.asp;");
aI("text=Microfinance Partners;url=" + sBaseSite + "pages/whosinvolved/whosinvolved_mfpartners.asp;");
aI("text=UN Agencies and Donors;url=" + sBaseSite + "pages/whosinvolved/whosinvolved_unagencies.asp;");
}

// TOP LEVEL - RESOURCE LIBRARY
with(milonic=new menuname("resourcelibrary")){
style=menuStyle;
if (nMenuWidth) itemwidth=nMenuWidth;
top=_subOffsetTop;
left=_subOffsetLeft;
aI("text=Recommended Reading;url=" + sBaseSite + "pages/reslib/reslib_recreading.asp;");
aI("text=Newsletter - Microfinance Matters;url=" + sBaseSite + "pages/reslib/reslib_newsletter.asp;");
aI("text=In the News;url=" + sBaseSite + "pages/reslib/reslib_inthenews.asp;");
aI("text=Visual and Interactive;url=" + sBaseSite + "pages/reslib/reslib_interactive.asp;");
aI("text=Logo;url=" + sBaseSite + "pages/reslib/reslib_logo.asp;");
aI("text=Country Profiles;url=" + sBaseSite + "pages/reslib/reslib_country_profiles.asp;");
}

// TOP LEVEL - GET INVOLVED
with(milonic=new menuname("getinvolved")){
style=menuStyle;
if (nMenuWidth) itemwidth=nMenuWidth;
top=_subOffsetTop;
left=_subOffsetLeft;
aI("text=What's Happening!;showmenu=Get Involved Search By;");
aI("text=Donate;url=" + sBaseSite + "pages/getinvolved/getinvolved_donate.asp;");
aI("text=Shop the Microentrepreneur Marketplace;url=" + sBaseSite + "pages/getinvolved/getinvolved_shopmarketplace.asp;");
aI("text=Global Microentrepreneurship Awards;url=" + sBaseSite + "pages/gma/gma_index.asp;");
//aI("text=Talk with Experts;url=" + sBaseSite + "pages/getinvolved/getinvolved_experts.asp;");
aI("text=Ecards;url=" + sBaseSite + "pages/getinvolved/getinvolved_ecards.asp;");
}

	// SUB LEVEL Get Involved: Search By
	with(milonic=new menuname("Get Involved Search By")){
	style=submenuStyle;
		top=submenuTopOffset; 
		left=submenuLeftOffset; 
	aI("text=Search by Map;url=" + sBaseSite + "pages/getinvolved/getinvolved_searchmap.asp;");
	aI("text=Search by Calendar;url=" + sBaseSite + "pages/getinvolved/getinvolved_searchcalendar.asp;");
	aI("text=Share Your Event / Activity;url=" + sBaseSite + "pages/getinvolved/getinvolved_shareevent.asp;");
	aI("text=How to Get Involved;url=" + sBaseSite + "pages/getinvolved/getinvolved_howto.asp;");
	aI("text=Great Ideas;url=" + sBaseSite + "pages/getinvolved/getinvolved_greatideas.asp;");
	aI("text=Inclusive Financial Sectors Forum;url=" + sBaseSite + "pages/getinvolved/getinvolved_forum2005.asp;");
	}
	

// TOP LEVEL - MEDIA OFFICE
with(milonic=new menuname("mediaoffice")){
style=menuStyle;
if (nMenuWidth) itemwidth=nMenuWidth;
top=_subOffsetTop;
left=_subOffsetLeft;
aI("text=Contact;url=" + sBaseSite + "pages/mediaoffice/mediaoffice_contact.asp;");
aI("text=Press Releases;url=" + sBaseSite + "pages/mediaoffice/mediaoffice_pressreleases.asp;");
aI("text=Resources;url=" + sBaseSite + "pages/mediaoffice/mediaoffice_resources.asp;");
}

// TOP LEVEL - MULTILINGUAL (animated gif)
with(milonic=new menuname("multilingual")){
style=menuStyle;
if (nMenuWidth) itemwidth=nMenuWidth;
top=_subOffsetTop;
left=_subOffsetLeft;  
aI("image=" + sBaseSite + "graphics/common/Spanish.gif;overimage=" + sBaseSite + "graphics/common/Spanish_over.gif;url=" + sBaseSite + "pages/multilingual/spanish.asp;");
aI("image=" + sBaseSite + "graphics/common/French.gif;overimage=" + sBaseSite + "graphics/common/French_over.gif;url=" + sBaseSite + "pages/multilingual/french.asp;");
aI("image=" + sBaseSite + "graphics/common/russian.gif;overimage=" + sBaseSite + "graphics/common/russian_over.gif;url=" + sBaseSite + "pages/multilingual/russian.asp;");
aI("image=" + sBaseSite + "graphics/common/Chinese.gif;overimage=" + sBaseSite + "graphics/common/Chinese_over.gif;url=" + sBaseSite + "pages/multilingual/chinese.asp;");
aI("image=" + sBaseSite + "graphics/common/Farsi.gif;overimage=" + sBaseSite + "graphics/common/Farsi_over.gif;url=" + sBaseSite + "pages/multilingual/farsi.asp;");
}
	
//drawMenus();  will do this in main body so we don't lose the page background (milonic bug)

