<!--Row 1 -  logo and call to action -->
document.write('<tr>');
document.write('<td colspan="2"><a href="http://www.carnegiemnh.org/index.html"><img src="http://www.carnegiemnh.org/graphics/global/logo.gif" alt="Carnegie Museum of Natural History" width="480" height="59" align="left" longdesc="http://www.carnegiemnh.org" /></a></td>');
document.write('<td colspan="2" align="right" class="SideNav"><a href="http://members.carnegiemuseums.org/join" target="_blank" class="SideNav">Membership</a> | <a href="https://secure2.convio.net/cmp/site/SSurvey?JServSessionIdr012=kxi6t6bap1.app14a&ACTION_REQUIRED=URI_ACTION_USER_REQUESTS&SURVEY_ID=1800" target="_blank" class="SideNav">Sign up for eNews</a> | <a href="mailto:cmnhweb@carnegiemnh.org" class="SideNav">Contact Us</a> | <a href="http://www.naturalhistorystore.com/" target="_blank" class="SideNav">Online Store</a><br></td>');
document.write('</tr>');

<!--Row 2 -  nav -->
document.write('<tr>');
document.write('<td colspan="4" class="TopNav" background="http://www.carnegiemnh.org/graphics/global/black.jpg">');
document.write('<table width="960" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr>');
document.write('<td class="NavAqua"><a href="http://www.carnegiemnh.org/visit/index.html" class="NavWhite NavAqua">Plan Your Visit</a></td>');
document.write('<td class="ColumnGray"><img src="http://www.carnegiemnh.org/graphics/global/transparent.gif" width="1" height="25" alt="spacer" /></td>');          
document.write('<td class="NavCherry"><a href="http://www.carnegiemnh.org/exhibitions/index.html" class="NavWhite NavCherry">Now on View</a></td>');
document.write('<td class="ColumnGray"><img src="http://www.carnegiemnh.org/graphics/global/transparent.gif" width="1" height="1" alt="spacer" /></td>');
		document.write('<td class="NavPine"><a href="http://www.carnegiemnh.org/centers/index.html" class="NavWhite NavPine">Carnegie Centers</a></td>');
		document.write('<td class="ColumnGray"><img src="http://www.carnegiemnh.org/graphics/global/transparent.gif" width="1" height="1" alt="spacer" /></td>');
document.write('<td class="NavTurq"><a href="http://www.carnegiemnh.org/programs/index.html" class="NavWhite NavTurq">Learn with Us</a></td>');
document.write('<td class="ColumnGray"><img src="http://www.carnegiemnh.org/graphics/global/transparent.gif" width="1" height="1" alt="spacer" /></td>');
document.write('<td class="NavKiwi"><a href="http://www.carnegiemnh.org/science/index.html" class="NavWhite NavKiwi">Our Science</a></td>');
document.write('<td class="ColumnGray"><img src="http://www.carnegiemnh.org/graphics/global/transparent.gif" width="1" height="1" alt="spacer" /></td>');
document.write('<td class="NavPeach"><a href="http://www.carnegiemnh.org/press/index.html" class="NavWhite NavPeach">Press Room</a></td>');
document.write('<td class="ColumnGray"><img src="http://www.carnegiemnh.org/graphics/global/transparent.gif" width="1" height="1" alt="spacer" /></td>');
document.write('<td class="NavPlum"><a href="http://www.carnegiemnh.org/mission/index.html" class="NavWhite NavPlum">Our Mission</a></td>');

document.write('</tr>');
document.write('</table></td>');
document.write('</tr> ');

<!--Row 3 - banner image randomizer -->
document.write('<tr>');
document.write('<td colspan="4">');

<!-- // The Central Randomizer 1.3 (C) 1997 by Paul Houle 
		// http://www.honeylocust.com/javascript/randomizer.html (as of 2010)
		// old-school randomizer, original code provided by Susan Geyer 2006 for old home page
		// CK tweaked and commented 2010 for new Web site pre-Ektron
	
	// NAME IMAGE FILES WITH INTEGERS ONLY, e.g. 1.jpg, 2.jpg, 3.jpg, etc. DO NOT SKIP any numbers, as the code will look for an image name that matches
	// the number it has generated. E.g., if it generates a 2 and there's no 2.jpg, you will get a "red x" placeholder.
	
	
	// Set randomizer variables

		rnd.today=new Date();							// get machine date and time
		rnd.seed=rnd.today.getTime();					 
						
		function rnd() {								// random number generator seeded from machine time, which is always changing and therefore will always
		rnd.seed = (rnd.seed*9301+49297) % 233280;		// produce new numbers - mimicking a random effect (which is why it's called a pseudo-randomizer)
		return rnd.seed/(233280.0);						
		};
						
		function rand(number) {							// tells the function to operate around a certain integer, specified in line 34 in parens
		return Math.ceil(rnd()*number);					    
		};												
							
	
	<!-- Check for browser vendor & version
	
	// Hide the script from old browsers
					
		var ver = ""
		bName = navigator.appName;
		bVer = parseInt(navigator.appVersion);
						
		if	(bName == "Netscape" && bVer >= 3) ver = "n3";
		else if (bName == "Netscape" && bVer == 2) ver = "n2";
		else if (bName == "Microsoft Internet Explorer" && bVer >= 4) ver = "e4";
					
		
	// Set the random integer

		result = rand(5);								// change the no. in parens to no. of images. Note: if you set it to 4 and have 5 images, the 5th image will never be shown.
														// if you set it to 4 and have 3 images, the 4th image wil be a "red x" placeholder. No limit on how many.
														
		var whichOne = new String(result);				// populates the variable with the random integer generated in lines 9-16.
		
	//	if (whichOne.length == 1) whichOne = "0" + whichOne;		// Adds a leading zero to filenames; commenting it out doesn't appear to break anything.
		
	// Display images
	
		whichMain = "<img src='http://www.carnegiemnh.org/graphics/home/banners/" + whichOne + ".jpg' ALT='Carnegie Museum of Natural History' WIDTH='960' HEIGHT='224' BORDER='0'>"
		if(ver == "n3" || ver == "e4") document.write(whichMain);
		else document.write("<img src='http://www.carnegiemnh.org/graphics/home/banners/1.jpg' ALT='Carnegie Museum of Natural History' WIDTH='960' HEIGHT='224' BORDER='0'>")
						
		// end hiding -->
			// end central randomizer. -->

document.write('</td>');
document.write('</tr>');


<!--Row 5 - white spacer row -->        
document.write('<tr>');
document.write('<td colspan="4"><img src="http://www.carnegiemnh.org/graphics/global/transparent.gif" width="186" height="10" alt="spacer" /></td>');
document.write('</td>');
document.write('</tr>');

