var menuList = new Array();
var menuImage_ac = new Array();
var menuImage_mo = new Array();


function menuDef() {
	this.name;
	this.url;
	this.height;
	this.statusText;
}



function createMenuList(num, name, height, url, statusText) {
	menuList[num] = new menuDef();
	menuList[num].name = name;
	if (url != null) {
		menuList[num].url =  url;
	}	
	menuList[num].height = height;
	if (statusText == null) {
		menuList[num].statusText = 'http://www.fringebenefits.org/' + url
	} else {	
		menuList[num].statusText = statusText;
	}	
}


if (submenu =='ho') {
	createMenuList(0,'m_main_home',25,'index.html');
	createMenuList(1,'m_main_whyteach',25,'whyteachtolerance.html');
	createMenuList(2,'m_main_cootieshots',25,'cootie.html');
	createMenuList(3,'m_main_howwework',25,'how.html');
	createMenuList(4,'m_main_tools',25,'tools.html');
	createMenuList(5,'m_main_aboutus',25,'about.html');
	createMenuList(6,'m_main_contactus',25,'contactus.html');
	createMenuList(7,'m_main_support',25,'supportus.html');
	createMenuList(8,'m_main_sitemap',25,'sitemap.html');
	createMenuList(9,'m_main_donatenow',21,'donatenow.html');
} 

else if (submenu=="why") {
	createMenuList(0,'m_main_home',25,'index.html');
	createMenuList(1,'m_main_whyteach',25,'whyteachtolerance.html');
	createMenuList(2,'m_main_cootieshots',25,'cootie.html');
	createMenuList(3,'m_main_howwework',25,'how.html');
	createMenuList(4,'m_main_tools',25,'tools.html');
	createMenuList(5,'m_main_aboutus',25,'about.html');
	createMenuList(6,'m_main_contactus',25,'contactus.html');
	createMenuList(7,'m_main_support',25,'supportus.html');
	createMenuList(8,'m_main_sitemap',25,'sitemap.html');
	createMenuList(9,'m_main_donatenow',21,'donatenow.html');
}

else if (submenu=="ct") {
	createMenuList(0,'m_main_home',25,'index.html');
	createMenuList(1,'m_main_whyteach',25,'whyteachtolerance.html');
	createMenuList(2,'m_ct_cootie',26,'cootie.html');
	createMenuList(3,'m_ct_curriculum',23,'cootie_curriculum.html');
	createMenuList(4,'m_ct_making',23,'cootie_making.html');
	createMenuList(5,'m_ct_history',23,'cootie_history.html');
	createMenuList(6,'m_ct_nonfb',23,'cootie_nonfb.html');
	createMenuList(7,'m_ct_quotes',21,'cootie_quotes.html');
	createMenuList(8,'m_why_submenubottom',7);
	createMenuList(9,'m_main_howwework',25,'how.html');
	createMenuList(10,'m_main_tools',25,'tools.html');
	createMenuList(11,'m_main_aboutus',25,'about.html');
	createMenuList(12,'m_main_contactus',25,'contactus.html');
	createMenuList(13,'m_main_support',25,'supportus.html');
	createMenuList(14,'m_main_sitemap',25,'sitemap.html');
	createMenuList(15,'m_main_donatenow',21,'donatenow.html');
}

else if (submenu =='how') {
	createMenuList(0,'m_main_home',25,'index.html');
	createMenuList(1,'m_main_whyteach',25,'whyteachtolerance.html');
	createMenuList(2,'m_main_cootieshots',25,'cootie.html');
	createMenuList(3,'m_hw_howwework',26,'how.html');
	createMenuList(4,'m_hw_plays',23,'how_playsontour.html');
	createMenuList(5,'m_hw_workshops',23,'how_workshops.html');
	createMenuList(6,'m_hw_institutes',23,'how_institutes.html');
	createMenuList(7,'m_hw_residencies',23,'how_residencies.html');
	createMenuList(8,'m_hw_skills',23,'how_skillssharing.html');
	createMenuList(9,'m_hw_thinktank',23,'how_theatrethinktank.html');
	createMenuList(10,'m_hw_other',21,'how_otherprograms.html');
	createMenuList(11,'m_why_submenubottom',7);
	createMenuList(12,'m_main_tools',25,'tools.html');
	createMenuList(13,'m_main_aboutus',25,'about.html');
	createMenuList(14,'m_main_contactus',25,'contactus.html');
	createMenuList(15,'m_main_support',25,'supportus.html');
	createMenuList(16,'m_main_sitemap',25,'sitemap.html');
	createMenuList(17,'m_main_donatenow',21,'donatenow.html');
} 

else if (submenu =='tools') {
	createMenuList(0,'m_main_home',25,'index.html');
	createMenuList(1,'m_main_whyteach',25,'whyteachtolerance.html');
	createMenuList(2,'m_main_cootieshots',25,'cootie.html');
	createMenuList(3,'m_main_howwework',25,'how.html');
	createMenuList(4,'m_to_tools',24,'tools.html');
	createMenuList(5,'m_to_curricmat',23,'tools_curriculum.html');
	createMenuList(6,'m_to_books',23,'tools_books.html');
	createMenuList(7,'m_to_glossary',23,'tools_glossary.html');
	createMenuList(8,'m_to_other',23,'tools_otherresources.html');
	createMenuList(9,'m_to_submenubottom',7);
	createMenuList(10,'m_main_aboutus',25,'about.html');
	createMenuList(11,'m_main_contactus',25,'contactus.html');
	createMenuList(12,'m_main_support',25,'supportus.html');
	createMenuList(13,'m_main_sitemap',25,'sitemap.html');
	createMenuList(14,'m_main_donatenow',21,'donatenow.html');
} 

else if (submenu =='ab') {
	createMenuList(0,'m_main_home',25,'index.html');
	createMenuList(1,'m_main_whyteach',25,'whyteachtolerance.html');
	createMenuList(2,'m_main_cootieshots',25,'cootie.html');
	createMenuList(3,'m_main_howwework',25,'how.html');
	createMenuList(4,'m_main_tools',25,'tools.html');
	createMenuList(5,'m_ab_aboutus',26,'about.html');
	createMenuList(6,'m_ab_supporters',23,'about_supporters.html');
	createMenuList(7,'m_ab_whoweare',23,'about_whoweare.html');
	createMenuList(8,'m_ab_mission',23,'about_mission.html');
	createMenuList(9,'m_ab_friends',23,'about_friends.html');
	createMenuList(10,'m_ab_testimonials',23,'about_testimonials.html');
	createMenuList(11,'m_ab_press',23,'about_pressclips.html');
	createMenuList(12,'m_ab_updates',21,'about_updates.html');
	createMenuList(13,'m_ab_submenubottom',7);
	createMenuList(14,'m_main_contactus',25,'contactus.html');
	createMenuList(15,'m_main_support',25,'supportus.html');
	createMenuList(16,'m_main_sitemap',25,'sitemap.html');
	createMenuList(17,'m_main_donatenow',21,'donatenow.html');

}


function imgMOon(imgName) {
	document[imgName].src = eval(imgName+"_mo.src");
}

function imgMOoff(imgName) {
	document[imgName].src = eval(imgName+"_ac.src");
}

function imgNumMOon(imgNum) {
	document[menuList[imgNum].name].src = menuImage_mo[imgNum].src;
}

function imgNumMOoff(imgNum) {
	document[menuList[imgNum].name].src = menuImage_ac[imgNum].src;
}



document.write('<TABLE cellpadding=0 cellspacing=0 border=0 width=792>');
document.write('<TR><TD colspan=3><img src="images/top.gif" width="792" height="71" alt="" border="0"></TD></TR>');




document.write('<TR><TD valign="top" background="images/menu/m_menubottom.gif">');

// The Left menu buttons
document.write('<TABLE cellpadding=0 cellspacing=0 border=0 width=180 background="images/menu/m_menubottom.gif">');
document.write('<TR><TD height="6" bgcolor="#FFFFFF"><img src="images/menu/m_menutop.gif" border="0" width="180" height="6"></TD></TR>');

for (var i=0; i<menuList.length; i++) {
	
	if (menuList[i].url == null) {
		document.write('<TR><TD><img src="images/menu/' + menuList[i].name + '.gif" border="0" width="180" height="' + menuList[i].height + '"></TD></TR>');
	} else if (selected == i) {
		document.write('<TR><TD><img src="images/menu/' + menuList[i].name + '_se.gif" border="0" width="180" height="' + menuList[i].height + '"></TD></TR>');
	} else {
		menuImage_ac[i] = new Image();
		menuImage_ac[i].src = "images/menu/" + menuList[i].name + "_ac.gif";
		menuImage_mo[i] = new Image();
		menuImage_mo[i].src = "images/menu/" + menuList[i].name + "_mo.gif";
		document.write('<TR><TD><A target="_top" href="'+menuList[i].url+'" onMouseOver="javascript:imgNumMOon(' + i + ')" onmouseout="javascript:imgNumMOoff(' + i + ')"><img src="images/menu/' + menuList[i].name + '_ac.gif" width="180" height="' + menuList[i].height + '" border="0" name="' + menuList[i].name + '"></A></TD></TR>');
	}
}
document.write('</TABLE></TD>'); //End left menu buttons


document.write('<TD height=56 bgcolor="#FFFFFF" valign="top">');


document.write('<TABLE cellpadding=0 cellspacing=0 border=0">');

document.write('<TR><TD colspan=2><img src="images/body_top.gif" width="588" height="6" alt="" border="0"></TD></TR>');

if (header!=null && header != '') {
	document.write('<TR><TD colspan=2 height=50><img src="' + header + '" width="588" height="50" alt="" border="0"></TD></TR>');
} 

document.write('<TR><TD><img src="images/pixel.gif" width=20 height=1></TD>');
document.write('<TD width=568>');



