/**
 * includes navigation - to be used with /inc/nav-inside.cfm and /js/fw_menu.js
 */

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function fwLoadMenus() {
  if (window.fw_menu_0) return;
  window.fw_menu_0 = new Menu("About Us",127,20,"Verdana, Arial, Helvetica, sans-serif",11,"#2c6566","#FFFFFF","#efece2","#437F88");
  fw_menu_0.addMenuItem("Introduction","location='/WEIInternet/aboutus/index.cfm'");
  fw_menu_0.addMenuItem("Developing Assets","location='/WEIInternet/aboutus/assets.cfm'");
  fw_menu_0.addMenuItem("Our Founder","location='/WEIInternet/aboutus/founder.cfm'");
  fw_menu_0.addMenuItem("Board of Trustees","location='/WEIInternet/aboutus/trustees.cfm'");
  fw_menu_0.addMenuItem("Annual Report","location='/WEIInternet/aboutus/annualreport.cfm'");
  fw_menu_0.addMenuItem("In Honor of Staff","location='/WEIInternet/aboutus/honor.cfm'");
   fw_menu_0.hideOnMouseOut=true;
   
  window.fw_menu_1 = new Menu("Projects",135,20,"Verdana, Arial, Helvetica, sans-serif",11,"#2c6566","#FFFFFF","#efece2","#437F88");
  fw_menu_1.addMenuItem("Projects by Sector","location='/WEIInternet/projects/projectsbysector.cfm'");
  fw_menu_1.addMenuItem("Projects by Region","location='/WEIInternet/projects/projectsbyregion.cfm'");
   fw_menu_1.hideOnMouseOut=true;
   
  window.fw_menu_2 = new Menu("Results",1,0,"Verdana, Arial, Helvetica, sans-serif",11,"#2c6566","#FFFFFF","#efece2","#437F88");
   fw_menu_2.hideOnMouseOut=true;

  /*window.fw_menu_3 = new Menu("Feature Stories",1,0,"Verdana, Arial, Helvetica, sans-serif",11,"#2c6566","#FFFFFF","#efece2","#437F88");
   fw_menu_3.hideOnMouseOut=true;*/
   
  window.fw_menu_3 = new Menu("Features",108,20,"Verdana, Arial, Helvetica, sans-serif",11,"#2c6566","#FFFFFF","#efece2","#437F88");
  fw_menu_3.addMenuItem("Stories","location='/WEIInternet/features/stories.cfm'");
  fw_menu_3.addMenuItem("Slide Shows","location='/WEIInternet/features/slideshows.cfm'");
  fw_menu_3.addMenuItem("Videos","location='/WEIInternet/features/videos.cfm'");
  fw_menu_3.hideOnMouseOut=true;
   
  window.fw_menu_4 = new Menu("Press Room",108,20,"Verdana, Arial, Helvetica, sans-serif",11,"#2c6566","#FFFFFF","#efece2","#437F88");
  fw_menu_4.addMenuItem("What's New","location='/WEIInternet/pressroom/index.cfm'");
  fw_menu_4.addMenuItem("Media Contacts","location='/WEIInternet/pressroom/mediacontacts.cfm'");
  fw_menu_4.hideOnMouseOut=true;
   
  window.fw_menu_5 = new Menu("Newsletter",108,20,"Verdana, Arial, Helvetica, sans-serif",11,"#2c6566","#FFFFFF","#efece2","#437F88");
  fw_menu_5.addMenuItem("Join eNews!","location='http://visitor.constantcontact.com/optin.jsp?&m=1101781144345'");
  fw_menu_5.addMenuItem("Archive","location='/WEIInternet/newsletter/newsletterarchive.cfm'");
   fw_menu_5.hideOnMouseOut=true;
   
  window.fw_menu_6 = new Menu("Publications",300,20,"Verdana, Arial, Helvetica, sans-serif",11,"#2c6566","#FFFFFF","#efece2","#437F88");
  fw_menu_6.addMenuItem("Basic Education and Literacy","location='../publications/index.cfm?cat=basiced'");
    fw_menu_6.addMenuItem("Child Labor and Trafficking","location='/WEIInternet/publications/index.cfm?cat=childlabor'");
  fw_menu_6.addMenuItem("Civil Society Development","location='/WEIInternet/publications/index.cfm?cat=civilsocietydev'");
  fw_menu_6.addMenuItem("Integrated Health and Literacy","location='/WEIInternet/publications/index.cfm?cat=healthlit'");
  fw_menu_6.addMenuItem("Girls and Women's Education","location='/WEIInternet/publications/index.cfm?cat=girlsed'");
  fw_menu_6.addMenuItem("HIV and AIDS","location='/WEIInternet/publications/index.cfm?cat=hivaids'");
  fw_menu_6.addMenuItem("Training Materials","location='/WEIInternet/publications/index.cfm?cat=training'"); 
  fw_menu_6.addMenuItem("IDR Reports","location='/docs/Publications/idr/idr_pubs.htm'");

  window.fw_menu_7 = new Menu("Links",1,0);
   fw_menu_7.hideOnMouseOut=true;
     
  window.fw_menu_8 = new Menu("Work for Us",1,0);
   fw_menu_8.hideOnMouseOut=true;
   
  window.fw_menu_9 = new Menu("Contact",1,0);
   fw_menu_9.hideOnMouseOut=true;
   
  window.fw_menu_10 = new Menu("root",180,20,"Verdana, Arial, Helvetica, sans-serif",11,"#2c6566","#FFFFFF","#efece2","#437F88");
  fw_menu_10.addMenuItem("Online Giving","location='https://secure.groundspring.org/dn/index.php?aid=3328'");
  fw_menu_10.addMenuItem("Gift Catalog","location='/WEIInternet/donate/catalog.cfm'");  
  fw_menu_10.addMenuItem("Ways to Give","location='/WEIInternet/donate/index.cfm'");
  fw_menu_10.addMenuItem("Why Give","location='/WEIInternet/donate/whygive.cfm'");
  fw_menu_10.addMenuItem("Planned Giving","location='/WEIInternet/donate/plannedgiving.cfm'");
  fw_menu_10.addMenuItem("Privacy Policy","location='/WEIInternet/privacy.cfm'");
   fw_menu_10.hideOnMouseOut=true;
		fw_menu_10.restoreParam = 'restore_img.gif'
		
  fw_menu_10.writeMenus();
} // fwLoadMenus()

var winPop
function openPop(url, width, height) {
	if(winPop && !winPop.closed) winPop.close()
	winPop = window.open(url, "winPop", "location=no,scrollbars=no,width=" + width + ",height=" + height)
	return void(-1)
}
//-->
