// JavaScript Document

<!--

if (navigator.appName.indexOf("Mic") != -1) {
    var menus = [
    new ypSlideOutMenu("aboutMenu", "down", 590, 153, 125, 80*5.8,30000),
    new ypSlideOutMenu("aboutMenuSub4", "left", 470, 237, 125, 40*6.5,20000),
    new ypSlideOutMenu("aboutMenuSub5", "left", 470, 258, 125, 40*6.5,20000),
    new ypSlideOutMenu("giftMenu", "down", 70, 153, 125, 80*5.8,10000),
	new ypSlideOutMenu("giftMenuSub8", "right", 195, 320, 125, 80*5.8,20000),
	new ypSlideOutMenu("advisorMenu", "down", 170, 153, 125, 80*5.8,10000),
	new ypSlideOutMenu("donorMenu", "down", 287, 153, 125, 80*5.8,10000),
	new ypSlideOutMenu("donorMenuSub1", "right", 410, 175, 125, 40*5.8,20000),
	new ypSlideOutMenu("donorMenuSub2", "right", 410, 195, 125, 40*5.8,20000),
	new ypSlideOutMenu("nonprofitMenu", "down", 405, 153, 125, 80*5.8,20000),
	new ypSlideOutMenu("nonprofitMenuSub2", "right", 530, 175, 125, 80*5.8,20000),
	new ypSlideOutMenu("nonprofitMenuSub3", "right", 530, 235, 125, 80*5.8,20000),
	new ypSlideOutMenu("scholarshipMenu", "down", 490, 153, 125, 80*5.8,20000),
	new ypSlideOutMenu("scholarshipMenuSub4", "right", 615, 217, 125, 40*5.8,20000)	
  ]
  }
  else {
    var menus = [
    new ypSlideOutMenu("aboutMenu", "down", 590, 153, 125, 80*5.8,30000),
    new ypSlideOutMenu("aboutMenuSub4", "right", 465, 237, 125, 40*6.5,20000),
    new ypSlideOutMenu("aboutMenuSub5", "right", 465, 258, 125, 40*6.5,20000),
    new ypSlideOutMenu("giftMenu", "down", 70, 153, 125, 80*5.8,10000),
	new ypSlideOutMenu("giftMenuSub8", "right", 195, 320, 125, 40*5.8,20000),
	new ypSlideOutMenu("advisorMenu", "down", 170, 153, 125, 80*5.8,10000),
	new ypSlideOutMenu("donorMenu", "down", 287, 153, 125, 80*5.8,10000),
	new ypSlideOutMenu("donorMenuSub1", "right", 410, 175, 125, 40*5.8,20000),
	new ypSlideOutMenu("donorMenuSub2", "right", 410, 195, 125, 40*5.8,20000),
	new ypSlideOutMenu("nonprofitMenu", "down", 405, 153, 125, 80*5.8,20000),
	new ypSlideOutMenu("nonprofitMenuSub2", "right", 530, 175, 125, 40*5.8,20000),
	new ypSlideOutMenu("nonprofitMenuSub3", "right", 530, 225, 125, 40*5.8,20000),
	new ypSlideOutMenu("scholarshipMenu", "down", 490, 153, 125, 80*5.8,20000),
	new ypSlideOutMenu("scholarshipMenuSub4", "right", 615, 217, 125, 80*5.8,20000)	
  ]
  }

  for (var i = 0; i < menus.length; i++) {
    menus[i].onactivate = new Function("document.getElementById('act" + i + "').className='active';");
    menus[i].ondeactivate = new Function("document.getElementById('act" + i + "').className='';");
  }

ypSlideOutMenu.writeCSS();


writeMenus(aboutMenu, aboutMenuLinks,'aboutMenu','');
writeMenus(aboutMenuSub4, aboutMenuLinksSub4,'aboutMenuSub4','aboutMenu');
writeMenus(aboutMenuSub5, aboutMenuLinksSub5,'aboutMenuSub5','aboutMenu');

writeMenus(giftMenu, giftMenuLinks,'giftMenu','');
writeMenus(giftMenuSub8, giftMenuLinksSub8,'giftMenuSub8','giftMenu');

writeMenus(advisorMenu, advisorMenuLinks,'advisorMenu','');

writeMenus(donorMenu, donorMenuLinks,'donorMenu','');
writeMenus(donorMenuSub1, donorMenuLinksSub1,'donorMenuSub1','donorMenu');
writeMenus(donorMenuSub2, donorMenuLinksSub2,'donorMenuSub2','donorMenu');

writeMenus(nonprofitMenu, nonprofitMenuLinks,'nonprofitMenu','');
writeMenus(nonprofitMenuSub2, nonprofitMenuLinksSub2,'nonprofitMenuSub2','nonprofitMenu');
writeMenus(nonprofitMenuSub3, nonprofitMenuLinksSub3,'nonprofitMenuSub3','nonprofitMenu');

writeMenus(scholarshipMenu, scholarshipMenuLinks,'scholarshipMenu','');
writeMenus(scholarshipMenuSub4, scholarshipMenuLinksSub4,'scholarshipMenuSub4','scholarshipMenu');


// -->
