<!-- set up rotating banners; displayed on line 149 -->
        // 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 home page
		// CK tweaked and commented 2010 for new Web site pre-Ektron
	
	
		// 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";
					
	// 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 the random integer
		result = rand(3);								// 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 in testing.
	

<!-- set up breadcrumbs; displayed on line 159 -->
		// Original script from
		// Dynamic Javascript Breadcrumb Navigation by Adam DuVander
		// http://duvinci.com/projects/javascript/crumbs/
		// Released under Creative Commons License:
		// http://creativecommons.org/licenses/by/2.5/
		// tweaked and commented CK 2010
		

		var crumbsep = " > "; 						// separator between crumbs; can be any character
		var sectionsep = "/"; 						// function for splitting URL to generate crumbs; not visible as output on page
		var rootpath = "/"; 						// use "/" for root of domain; add directory if deeper than root (e.g. /cmnh)
		var rootname = "Home";						// designates alias for home page crumb

		var ucfirst = 1; 							// capitalizes directory names (e.g. media becomes Media)

		var folder = new Object; 					// function for compiling crumbs; not visible as output on page
		
		var objurl = new Object; 					// function for compiling crumbs; not visible as output on page
		
		objurl['atlas'] = '2nd PA Breeding Bird Atlas';  		// sets visible name for inconvenient foldernames; no limit on how many
													// format: objurl['bad name'] = 'Nice Name'; 

		var objtitle = (new String(document.title)); 										// strip museum name from <title> tag for shortened version in crumb
		objtitle = objtitle.replace('Carnegie Museum of Natural History: ', "")

	// Grab the page's URL and break it up into directory pieces, working backward through path
		var pageurl = (new String(document.location)); 										// document.location is Javascript for determining page address
		var protocol = pageurl.substring(0, pageurl.indexOf("//") + 2);
		pageurl = pageurl.replace(protocol, ""); 											// removes protocol from pageurl
		var rooturl = pageurl.substring(0, pageurl.indexOf(rootpath) + rootpath.length); 	// find rooturl
		if (rooturl.charAt(rooturl.length - 1) == "/") 										// removes trailing slash
		{
		  rooturl = rooturl.substring(0, rooturl.length - 1);
		}
		pageurl = pageurl.replace(rooturl, ""); 											// removes rooturl from pageurl
		if (pageurl.charAt(0) == '/') 														// removes beginning slash
		{
		  pageurl = pageurl.substring(1, pageurl.length);
		}

		var page_ar = pageurl.split(sectionsep);
		var currenturl = protocol + rooturl;
		var allbread = "<a class=\"Crumb\" href=\"" + currenturl + "\">" + rootname + "</a>" ; // start by posting root crumb; 
																					   // "class" in allbread variable formats root ("Home" crumb)
		for (i=0; i < page_ar.length-1; i++)				// cycle through path for rest of crumbs
		{
		  var displayname = "";
		  currenturl += "/" + page_ar[i];
		  if (objurl[page_ar[i]])
		  {
		    displayname = objurl[page_ar[i]];
		  }
		  else
		  {
		    if (ucfirst == 1)
		    {
		      displayname = page_ar[i].charAt(0).toUpperCase() + page_ar[i].substring(1);
 		   }
		    else
		    {
		      displayname = page_ar[i];
		    }
		  }
		  allbread += crumbsep + "<a class=\"Crumb\" href=\"" + currenturl + "\">" + displayname + "</a>"; 	// "class" in this line formats subfolders
		}


<!-- set up date; displayed on line 172 -->
		var months = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
		var dateNow = new Date();	//retrieves current date from the machine 
		var monthNow = months[dateNow.getMonth()]; //pulls the month from the machine date and assigns its text name
		var dayNow = dateNow.getDate();  //pulls the day from the machine date

		
<!--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="NavKiwiHot"><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">');

	// Display banner images	
		whichMain = "<img src='http://www.carnegiemnh.org/graphics/science/pnr/banners/" + whichOne + ".jpg' ALT='Carnegie Museum of Natural History' WIDTH='960' HEIGHT='150' 	BORDER='0'>"
		if(ver == "n3" || ver == "e4") document.write(whichMain);
		else document.write("<img src='http://www.carnegiemnh.org/graphics/science/pnr/banners/1.jpg' ALT='Carnegie Museum of Natural History' WIDTH='960' HEIGHT='150' BORDER='0'>")
			// end banner images -->

		document.write('</td>');
		document.write('</tr>');

<!--Row 4 Part 1: breadcrumbs -->
		document.write('<tr>');
		document.write('<td colspan="3" class="Crumb BGKiwi IndentLeft">You are here: ');

	// Display crumbs
		document.write(allbread + " > " + objtitle);
	// end breadcrumbs. -->
	
		document.write('</td>');

<!--Row 4 Part 2: date -->
		document.write('<td class="BGKiwi" align="right">');
		document.write('<span class="Crumb IndentRight"><strong>');

	// Display date
		document.write(monthNow + " " + dayNow + ", 2012");
	// end date. -->

		document.write('</strong></span>');			   
		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>');

