


//START MENUS FUNCTION	
function makeMenus() {

// begin sub-section menu bar in section's color 
if(section == "about"){
	document.write ("<tr bgcolor='#FF9933'>");
	document.write ("<td colspan=5 width='740' height='33' align='left'><a name='top'><img src='"+relPath+"images/about/about_hdr.gif' alt='About Us'  height='33' border='0'></a><img src='"+relPath+"images/spacer.gif' width='56' height='1' border='0'>");
	document.write ("<a href='"+relPath+"contact/index.html' onMouseOver='rollOn(&#34;sub1&#34;)' onMouseOut='rollOff(&#34;sub1&#34;)'><img src='"+relPath+"images/about/sub1.gif' name='sub1' alt='who we are'  height='33' border='0'></a>");
	document.write ("<a href='"+relPath+"support/index.html' onMouseOver='rollOn(&#34;sub2&#34;)' onMouseOut='rollOff(&#34;sub2&#34;)'><img src='"+relPath+"images/about/sub2.gif' name='sub2' alt='support the peabody'  height='33' border='0'></a>");
	document.write ("<a href='"+relPath+"members/index.html' onMouseOver='rollOn(&#34;sub3&#34;)' onMouseOut='rollOff(&#34;sub3&#34;)'><img src='"+relPath+"images/about/sub3.gif' name='sub3' alt='join us'  height='33' border='0'></a>");
	document.write ("<a href='"+relPath+"visit/index.html' onMouseOver='rollOn(&#34;sub4&#34;)' onMouseOut='rollOff(&#34;sub4&#34;)'><img src='"+relPath+"images/about/sub4.gif' name='sub4' alt='visit the peabody'  height='33' border='0'></a></td>");
	document.write ("<td width=100%><img src='"+relPath+"images/spacer.gif' width='1' height='1' border='0'></td>");
	document.write ("</tr>");
	
}else if(section == "exhib"){
	document.write ("<tr bgcolor='#CC3333'>");
	document.write ("<td colspan=5 width='740' height='33' align='left'><a name='top'><img src='"+relPath+"images/exhib/exhib_hdr.gif' alt='Exhibitions & Programs'  height='33' border='0'></a><img src='"+relPath+"images/spacer.gif' width='56' height='1' border='0'>");
	document.write ("<a href='"+relPath+"events/index.html' onMouseOver='rollOn(&#34;sub1&#34;)' onMouseOut='rollOff(&#34;sub1&#34;)'><img src='"+relPath+"images/exhib/sub1.gif' name='sub1' alt='events'  height='33' border='0'></a>");
	document.write ("<a href='"+relPath+"exhibits/index.html' onMouseOver='rollOn(&#34;sub2&#34;)' onMouseOut='rollOff(&#34;sub2&#34;)'><img src='"+relPath+"images/exhib/sub2.gif' name='sub2' alt='exhibitions'  height='33' border='0'></a>");
	document.write ("<a href='"+relPath+"education/index.html' onMouseOver='rollOn(&#34;sub3&#34;)' onMouseOut='rollOff(&#34;sub3&#34;)'><img src='"+relPath+"images/exhib/sub3.gif' name='sub3' alt='education'  height='33' border='0'></a>");
	document.write ("<a href='"+relPath+"explore/index.html' onMouseOver='rollOn(&#34;sub4&#34;)' onMouseOut='rollOff(&#34;sub4&#34;)'><img src='"+relPath+"images/exhib/sub4.gif' name='sub4' alt='explorations'  height='33' border='0'></a></td>");
	document.write ("<td width=100%><img src='"+relPath+"images/spacer.gif' width='1' height='1' border='0'></td>");
	document.write ("</tr>");
	
}else if(section == "rsrch"){
	document.write ("<tr bgcolor='#21AC21'>");
	document.write ("<td colspan=5 width='740' height='33' align='left'><a name='top'><img src='"+relPath+"images/rsrch/rsrch_hdr.gif' alt='Research & Collections'  height='33' border='0'></a><img src='"+relPath+"images/spacer.gif' width='56' height='1' border='0'>");
	document.write ("<a href='"+relPath+"collections/index.html' onMouseOver='rollOn(&#34;sub1&#34;)' onMouseOut='rollOff(&#34;sub1&#34;)'><img src='"+relPath+"images/rsrch/sub1.gif' name='sub1' alt='the collections'  height='33' border='0'></a>");
	document.write ("<a href='"+relPath+"databases/index.html' onMouseOver='rollOn(&#34;sub2&#34;)' onMouseOut='rollOff(&#34;sub2&#34;)'><img src='"+relPath+"images/rsrch/sub2.gif' name='sub2' alt='searchable databases'  height='33' border='0'></a>");
	document.write ("<a href='"+relPath+"scipubs/index.html' onMouseOver='rollOn(&#34;sub3&#34;)' onMouseOut='rollOff(&#34;sub3&#34;)'><img src='"+relPath+"images/rsrch/sub3.gif' name='sub3' alt='scientific publications'  height='33' border='0'></a>");
	document.write ("<a href='"+relPath+"archives/index.html' onMouseOver='rollOn(&#34;sub4&#34;)' onMouseOut='rollOff(&#34;sub4&#34;)'><img src='"+relPath+"images/rsrch/sub4.gif' name='sub4' alt='archives'  height='33' border='0'></a></td>");
	document.write ("<td width=100%><img src='"+relPath+"images/spacer.gif' width='1' height='1' border='0'></td>");
	document.write ("</tr>");
}
// end sub-section menu bar 


// begin global menu bar in grey 

document.write("<tr bgcolor='#D3CFC2'>");
document.write("<td><a href='' onMouseOver='rollOn(&#34;glob1&#34;)' onMouseOut='rollOff(&#34;glob1&#34;)'><img src='"+relPath+"images/global/about_grey.gif' alt='about us' width='150' height='14' border='0'></a></td>");
document.write("<td colspan=3><a href='' onMouseOver='rollOn(&#34;glob2&#34;)' onMouseOut='rollOff(&#34;glob2&#34;)'><img src='"+relPath+"images/global/exhib_grey.gif' alt='exhibitions & programs' width='150' height='14' border='0'></a></td>");
document.write("<td><a href='' onMouseOver='rollOn(&#34;glob3&#34;)' onMouseOut='rollOff(&#34;glob3&#34;)'><img src='"+relPath+"images/global/rsrch_grey.gif' alt='research and collections' width='150' height='14' border='0'></a>");
document.write("<a href='' onMouseOver='rollOn(&#34;glob4&#34;)' onMouseOut='rollOff(&#34;glob4&#34;)'><img src='"+relPath+"images/global/store_grey.gif' alt='the museum store' width='150' height='14' border='0'></a></td>");
document.write("<td><img src='"+relPath+"images/spacer.gif' width='1' height='14' border='0'></td>");
document.write("</tr>");
document.write("<!--++++++ global menus ++++++-->");
document.write("<tr bgcolor='#D3CFC2'>");
document.write("<td width=150 height='65' align=left valign='bottom'><img src='"+imgPath+"glob1.gif' name='glob1' width='150' height='64' border=0 ");
document.write("usemap='#glob_menu_about'");
document.write("></td><td colspan=3 width=150 align=left valign='bottom'><img src='"+imgPath+"glob2.gif' name='glob2' width='150' height='64' border=0 ");
document.write("usemap='#glob_menu_exhib'");
document.write("></td>");
document.write("<td valign='bottom' width=440 align='left'><img src='"+imgPath+"glob3.gif' name='glob3' width='150' height='64' border=0 ");
document.write("usemap='#glob_menu_rsrch'");
document.write("><a href='http://www.peabodystore.com/' onMouseOver='rollOn(&#34;glob4&#34;)' onMouseOut='rollOff(&#34;glob4&#34;)'><img src='"+imgPath+"glob4.gif' name='glob4' width='150' height='64' border=0><img src='"+relPath+"images/spacer.gif' width='140' height='1' border=0></a></td>");
document.write("<td width=100%>&nbsp;</td>");
document.write("</tr>");
document.write("<!--++++++ end of global menus ++++++-->");
// end of grey global menu section 

document.write("<tr><td><img src='" + relPath + "images/spacer.gif' width=1 height=53 border=0></td><td colspan=3><img src='" + relPath + "images/spacer.gif' width=1 height=53 border=0></td><td align='left'>");

// header image for sub-sub-page goes here, e.g. 'education' 
document.write("<a href='"+relPath+"/"+subsection+"'>"+"<img src='"+relPath+"images/" + subsection + "/" + subsection + "_hdr.gif' alt='" + subsection + "' height='53' border='0'></a></td><td></td></tr>");
}
//END MENUS FUNCTION	
	
	
	
//START MAKE SPACER FUNCTION
function makeSpacer(width,height) {
document.write('<img src="' + relPath + 'images/spacer.gif" width=' + width + ' height=' + height + ' border=0>');
}
//END MAKE SPACER FUNCTION	
	
	
	
//START MAKE FOOTER FUNCTION	
function makeFooter() {
 // <![CDATA[
  var ua= navigator.userAgent;
  var OPERA= (ua.indexOf("Opera") > 0);
  var OMNI= (ua.indexOf("Omni") > 0);
  var MAC= (navigator.platform.indexOf("PPC") > 0);
  var WIN= (navigator.platform=="Win32");
  
  var IE6, IE5_6, IE5_5, IE5, N4, N5, NS6, NS6_1, MOZ, MAC_IE5;

  if(!OPERA && !OMNI){
  
     IE6= (ua.indexOf("MSIE 6") > 0);
     
     // IE 5.5 and IE 5.6 are similar. IE 5.6 is released on WindowsXP
     IE5_6= (ua.indexOf("MSIE 5.6") > 0);
     IE5_5= (ua.indexOf("MSIE 5.5") > 0 || IE5_6);
     
     // IE5 is true for IE5.5, IE5.6, and IE6.
     IE5= (ua.indexOf("MSIE 5") > 0  || IE6);
     
     N4= (document.layers);
     NS6= N5= (ua.indexOf("Gecko") > 0);
     NS6_1= (N5 && ua.indexOf("6.1") != -1);
     MOZ= N5 && !(ua.indexOf("Netscape") > 0);
     MAC_IE5= (MAC && IE5);
	 
     MAC_N4= (MAC && N4);
}

 // ]]>

var flashcount = 0;
//CREATE TEST STRINGS TO TEST FOR FLASH VERSION 5 UP TO FLASH VERSION 20
for (i = 5; i <= 20; i++) {
	flashstring = 'Flash ' + i;
	shockstring = 'ShockwaveFlash.ShockwaveFlash.' + i;
	if(WM_pluginDetect(flashstring, 'swf','application/x-shockwave-flash',shockstring)) {
		flashcount++;
	}
}

	if((flashcount>0)&&(!MAC_N4)) 
{
	document.write('<tr>');
	document.write('<td colspan=5><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="740" height="150">');
	document.write('<param name="movie" value="'+relPath+'subpage.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="'+relPath+'subpage.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="740" height="150"></embed></object>');
	document.write('</td>');
	document.write('</tr>');
} else {
	document.write('<tr>');
	document.write('<td><img src="'+relPath+'images/sub_menu/about.gif" name="about" alt="about us" width="150" height="76" border="0" usemap="#sub_menu_about"></td>');
	document.write('<td colspan=3><img src="'+relPath+'images/sub_menu/exhib.gif" name="exhib" alt="exhibits & events" width="150" height="76" border="0" usemap="#sub_menu_exhib"></td>');
	document.write('<td><img src="'+relPath+'images/sub_menu/rsrch.gif" name="rsrch" alt="reasearch & collections" width="150" height="76" border="0" usemap="#sub_menu_rsrch"><a href="http://www.peabodystore.com/" onMouseOver="rollOn(&quot;store&quot;)" onMouseOut="rollOff(&quot;store&quot;)"><img src="'+relPath+'images/sub_menu/store.gif" name="store" alt="the museum store" width="150" height="76" border="0"><img src="'+relPath+'images/spacer.gif" width="10" height="1" border=0></a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td colspan=5>');
	document.write('<table cellpadding=0 cellspacing=0 border=0 width=740>');
	document.write('<tr>');
	document.write('<td rowspan=2 align=left><img src="'+relPath+'images/sub_menu/menu_bottom.gif" alt="peabody museum, yale university" width="485" height="74"><img src="'+relPath+'images/spacer.gif" width="150" height="1" border="0"></td>');
	document.write('<td valign=top align=left><img src="'+relPath+'images/sub_menu/search.gif" alt="search this site" width="115" height="17"></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td valign=top><form name="gs" method="GET" action="http://google.yale.edu/search"><input name="q" type="text" size="15" /><input type="hidden" name="site" value="Peabody_Museum"><input type="image" src="'+relPath+'images/sub_menu/go.gif" height="21" width="21" name="btnG" value="Search"><input type="hidden" name="sort" value="date:D:L:d1"><input type="hidden" name="output" value="xml_no_dtd"><input type="hidden" name="oe" value="UTF-8"><input type="hidden" name="ie" value="UTF-8"><input type="hidden" name="proxyreload" value="1"><input type="hidden" name="client" value="peabody_frontend"><input type="hidden" name="proxystylesheet" value="peabody_frontend"></form></td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('</td>');
	document.write('</tr>');
}
}
//END MAKE FOOTER FUNCTION



//START MAKE MAP FUNCTION	
function makeMap() {
document.write("<map name='sub_menu_about'>");
	document.write("<area shape='rect' coords='0,12,148,34' href='"+relPath+"contact/index.html' onMouseOver='rollOn(&#34;about&#34;)' onMouseOut='rollOff(&#34;about&#34;)'>");
	document.write("<area shape='rect' coords='0,34,148,46' href='"+relPath+"support/index.html' onMouseOver='rollOn(&#34;about&#34;)' onMouseOut='rollOff(&#34;about&#34;)'>");
	document.write("<area shape='rect' coords='0,46,148,58' href='"+relPath+"members/index.html' onMouseOver='rollOn(&#34;about&#34;)' onMouseOut='rollOff(&#34;about&#34;)'>");
	document.write("<area shape='rect' coords='0,58,148,75' href='"+relPath+"visit/index.html' onMouseOver='rollOn(&#34;about&#34;)' onMouseOut='rollOff(&#34;about&#34;)'>");
document.write("</map>");
document.write("<map name='sub_menu_exhib'>");
	document.write("<area shape='rect' coords='0,0,148,34' href='"+relPath+"events/index.html' onMouseOver='rollOn(&#34;exhib&#34;)' onMouseOut='rollOff(&#34;exhib&#34;)'>");
	document.write("<area shape='rect' coords='0,34,148,46' href='"+relPath+"exhibits/index.html' onMouseOver='rollOn(&#34;exhib&#34;)' onMouseOut='rollOff(&#34;exhib&#34;)'>");
	document.write("<area shape='rect' coords='0,46,148,58' href='"+relPath+"education/index.html' onMouseOver='rollOn(&#34;exhib&#34;)' onMouseOut='rollOff(&#34;exhib&#34;)'>");
	document.write("<area shape='rect' coords='0,58,148,75' href='"+relPath+"explore/index.html' onMouseOver='rollOn(&#34;exhib&#34;)' onMouseOut='rollOff(&#34;exhib&#34;)'>");
document.write("</map>");
document.write("<map name='sub_menu_rsrch'>");
	document.write("<area shape='rect' coords='0,0,148,34' href='"+relPath+"collections/index.html' onMouseOver='rollOn(&#34;rsrch&#34;)' onMouseOut='rollOff(&#34;rsrch&#34;)'>");
	document.write("<area shape='rect' coords='0,34,148,46' href='"+relPath+"databases/index.html' onMouseOver='rollOn(&#34;rsrch&#34;)' onMouseOut='rollOff(&#34;rsrch&#34;)'>");
	document.write("<area shape='rect' coords='0,46,148,58' href='"+relPath+"scipubs/index.html' onMouseOver='rollOn(&#34;rsrch&#34;)' onMouseOut='rollOff(&#34;rsrch&#34;)'>");
	document.write("<area shape='rect' coords='0,58,148,75' href='"+relPath+"archives/index.html' onMouseOver='rollOn(&#34;rsrch&#34;)' onMouseOut='rollOff(&#34;rsrch&#34;)'>");
document.write("</map>");
document.write("<map name='glob_menu_about'>");
	document.write("<area shape='rect' coords='0,0,148,19' href='"+relPath+"contact/index.html' onMouseOver='rollOn(&#34;glob1&#34;)' onMouseOut='rollOff(&#34;glob1&#34;)'>");
	document.write("<area shape='rect' coords='0,19,148,33' href='"+relPath+"support/index.html' onMouseOver='rollOn(&#34;glob1&#34;)' onMouseOut='rollOff(&#34;glob1&#34;)'>");
	document.write("<area shape='rect' coords='0,33,148,47' href='"+relPath+"members/index.html' onMouseOver='rollOn(&#34;glob1&#34;)' onMouseOut='rollOff(&#34;glob1&#34;)'>");
	document.write("<area shape='rect' coords='0,47,148,63' href='"+relPath+"visit/index.html' onMouseOver='rollOn(&#34;glob1&#34;)' onMouseOut='rollOff(&#34;glob1&#34;)'>");
document.write("</map>");
document.write("<map name='glob_menu_exhib'>");
	document.write("<area shape='rect' coords='0,0,148,19' href='"+relPath+"events/index.html' onMouseOver='rollOn(&#34;glob2&#34;)' onMouseOut='rollOff(&#34;glob2&#34;)'>");
	document.write("<area shape='rect' coords='0,19,148,33' href='"+relPath+"exhibits/index.html' onMouseOver='rollOn(&#34;glob2&#34;)' onMouseOut='rollOff(&#34;glob2&#34;)'>");
	document.write("<area shape='rect' coords='0,33,148,47' href='"+relPath+"education/index.html' onMouseOver='rollOn(&#34;glob2&#34;)' onMouseOut='rollOff(&#34;glob2&#34;)'>");
	document.write("<area shape='rect' coords='0,47,148,63' href='"+relPath+"explore/index.html' onMouseOver='rollOn(&#34;glob2&#34;)' onMouseOut='rollOff(&#34;glob2&#34;)'>");
document.write("</map>");
document.write("<map name='glob_menu_rsrch'>");
	document.write("<area shape='rect' coords='0,0,148,19' href='"+relPath+"collections/index.html' onMouseOver='rollOn(&#34;glob3&#34;)' onMouseOut='rollOff(&#34;glob3&#34;)'>");
	document.write("<area shape='rect' coords='0,19,148,33' href='"+relPath+"databases/index.html' onMouseOver='rollOn(&#34;glob3&#34;)' onMouseOut='rollOff(&#34;glob3&#34;)'>");
	document.write("<area shape='rect' coords='0,33,148,47' href='"+relPath+"scipubs/index.html' onMouseOver='rollOn(&#34;glob3&#34;)' onMouseOut='rollOff(&#34;glob3&#34;)'>");
	document.write("<area shape='rect' coords='0,47,148,63' href='"+relPath+"archives/index.html' onMouseOver='rollOn(&#34;glob3&#34;)' onMouseOut='rollOff(&#34;glob3&#34;)'>");
document.write("</map>");
}
//END MAKE MAP FUNCTION


//END TOP OF PAGE SCRIPTS
