


// Browser Detect  v2.1.6
// documentation: http://www.dithered.com/javascript/browser_detect/index.html
// license: http://creativecommons.org/licenses/by/1.0/
// code by Chris Nott (chris[at]dithered[dot]com)


function BrowserDetect() {
   var ua = navigator.userAgent.toLowerCase(); 

   // browser engine name
   this.isGecko       = (ua.indexOf('gecko') != -1 && ua.indexOf('safari') == -1);
   this.isAppleWebKit = (ua.indexOf('applewebkit') != -1);

   // browser name
   this.isKonqueror   = (ua.indexOf('konqueror') != -1); 
   this.isSafari      = (ua.indexOf('safari') != - 1);
   this.isOmniweb     = (ua.indexOf('omniweb') != - 1);
   this.isOpera       = (ua.indexOf('opera') != -1); 
   this.isIcab        = (ua.indexOf('icab') != -1); 
   this.isAol         = (ua.indexOf('aol') != -1); 
   this.isIE          = (ua.indexOf('msie') != -1 && !this.isOpera && (ua.indexOf('webtv') == -1) ); 
   this.isMozilla     = (this.isGecko && ua.indexOf('gecko/') + 14 == ua.length);
   this.isFirebird    = (ua.indexOf('firebird/') != -1);
   this.isNS          = ( (this.isGecko) ? (ua.indexOf('netscape') != -1) : ( (ua.indexOf('mozilla') != -1) && !this.isOpera && !this.isSafari && (ua.indexOf('spoofer') == -1) && (ua.indexOf('compatible') == -1) && (ua.indexOf('webtv') == -1) && (ua.indexOf('hotjava') == -1) ) );
   
   // spoofing and compatible browsers
   this.isIECompatible = ( (ua.indexOf('msie') != -1) && !this.isIE);
   this.isNSCompatible = ( (ua.indexOf('mozilla') != -1) && !this.isNS && !this.isMozilla);
   
   // rendering engine versions
   this.geckoVersion = ( (this.isGecko) ? ua.substring( (ua.lastIndexOf('gecko/') + 6), (ua.lastIndexOf('gecko/') + 14) ) : -1 );
   this.equivalentMozilla = ( (this.isGecko) ? parseFloat( ua.substring( ua.indexOf('rv:') + 3 ) ) : -1 );
   this.appleWebKitVersion = ( (this.isAppleWebKit) ? parseFloat( ua.substring( ua.indexOf('applewebkit/') + 12) ) : -1 );
   
   // browser version
   this.versionMinor = parseFloat(navigator.appVersion); 
   
   // correct version number
   if (this.isGecko && !this.isMozilla) {
      this.versionMinor = parseFloat( ua.substring( ua.indexOf('/', ua.indexOf('gecko/') + 6) + 1 ) );
   }
   else if (this.isMozilla) {
      this.versionMinor = parseFloat( ua.substring( ua.indexOf('rv:') + 3 ) );
   }
   else if (this.isIE && this.versionMinor >= 4) {
      this.versionMinor = parseFloat( ua.substring( ua.indexOf('msie ') + 5 ) );
   }
   else if (this.isKonqueror) {
      this.versionMinor = parseFloat( ua.substring( ua.indexOf('konqueror/') + 10 ) );
   }
   else if (this.isSafari) {
      this.versionMinor = parseFloat( ua.substring( ua.lastIndexOf('safari/') + 7 ) );
   }
   else if (this.isOmniweb) {
      this.versionMinor = parseFloat( ua.substring( ua.lastIndexOf('omniweb/') + 8 ) );
   }
   else if (this.isOpera) {
      this.versionMinor = parseFloat( ua.substring( ua.indexOf('opera') + 6 ) );
   }
   else if (this.isIcab) {
      this.versionMinor = parseFloat( ua.substring( ua.indexOf('icab') + 5 ) );
   }
   
   this.versionMajor = parseInt(this.versionMinor); 
   
   // dom support
   this.isDOM1 = (document.getElementById);
   this.isDOM2Event = (document.addEventListener && document.removeEventListener);
   
   // css compatibility mode
   this.mode = document.compatMode ? document.compatMode : 'BackCompat';

   // platform
   this.isWin    = (ua.indexOf('win') != -1);
   this.isWin32  = (this.isWin && ( ua.indexOf('95') != -1 || ua.indexOf('98') != -1 || ua.indexOf('nt') != -1 || ua.indexOf('win32') != -1 || ua.indexOf('32bit') != -1 || ua.indexOf('xp') != -1) );
   this.isMac    = (ua.indexOf('mac') != -1);
   this.isUnix   = (ua.indexOf('unix') != -1 || ua.indexOf('sunos') != -1 || ua.indexOf('bsd') != -1 || ua.indexOf('x11') != -1)
   this.isLinux  = (ua.indexOf('linux') != -1);
   
   // specific browser shortcuts
   this.isNS4x = (this.isNS && this.versionMajor == 4);
   this.isNS40x = (this.isNS4x && this.versionMinor < 4.5);
   this.isns47x = (this.isNS4x && this.versionMinor >= 4.7);
   this.isNS4up = (this.isNS && this.versionMinor >= 4);
   this.isNS6x = (this.isNS && this.versionMajor == 6);
   this.isNS6up = (this.isNS && this.versionMajor >= 6);
   this.isNS7x = (this.isNS && this.versionMajor == 7);
   this.isNS7up = (this.isNS && this.versionMajor >= 7);
   
   this.isIE4x = (this.isIE && this.versionMajor == 4);
   this.isIE4up = (this.isIE && this.versionMajor >= 4);
   this.isIE5x = (this.isIE && this.versionMajor == 5);
   this.isIE55 = (this.isIE && this.versionMinor == 5.5);
   this.isIE5up = (this.isIE && this.versionMajor >= 5);
   this.isIE6x = (this.isIE && this.versionMajor == 6);
   this.isIE6up = (this.isIE && this.versionMajor >= 6);
   
   this.isIE4xMac = (this.isIE4x && this.isMac);
}
var browser = new BrowserDetect();

// End Browser Detect script




function customizesylesheets(){

	if (screen.width < 1024){
	document.write('<link rel="stylesheet" type="text/css" href="/css/size800.css" />')
	}
	
	
	if (browser.isIE){
		if (screen.width < 1024){
		document.write('<link rel="stylesheet" type="text/css" href="/css/iefixes800.css" />')
		}
		else{
		document.write('<link rel="stylesheet" type="text/css" href="/css/iefixes1000.css" />')
		}
	}
	
	
	if (!(browser.isGecko || browser.isIE5up || browser.isSafari)){
	
	document.write('<link rel="stylesheet" type="text/css" href="/css/unsupported.css" />')
	
	document.write('<p><b>Attention:</b> If you are having difficulties viewing this site, please consider using the latest version of <a href="http://mozilla.org/">Mozilla/Firefox</a>, <a href="http://channels.netscape.com/ns/browsers/default.jsp">Netscape</a>, <a href="http://www.microsoft.com/windows/ie/default.mspx">Internet Explorer</a>, or <a href="http://www.apple.com/safari/">Safari</a>.</p>')
	
	}
	


}




function sectionrecord(shortname, longname, url, subsectionexists){

this.shortname = shortname
this.longname = longname
this.url = url
this.subsectionexists = subsectionexists

}




function findsectionproperty (sectionname, propertyname, subsectionshortname){

eval('var sectionlist = ' + sectionname + 'sections')

	for (var i = 1; i < sectionlist.length; i++){
	
		if (sectionlist[i].shortname == subsectionshortname){
		eval ("var propertyvalue = sectionlist[i]." + propertyname)
		}
		
	}

return propertyvalue

}




var topsections = new Array()

topsections[1] = new sectionrecord("home","Home","http://rmc.library.cornell.edu/index.html")
topsections[2] = new sectionrecord("services","Research Services","http://rmc.library.cornell.edu/services/services_overview.html","yes")
topsections[3] = new sectionrecord("collections","Collections","http://rmc.library.cornell.edu/collections/rmccollections.html","yes")
topsections[4] = new sectionrecord("programs","Programs","http://rmc.library.cornell.edu/programs/programs.html","yes")
topsections[5] = new sectionrecord("news","News","http://rmc.library.cornell.edu/news/news.html","yes")
topsections[6] = new sectionrecord("about","About Us","http://rmc.library.cornell.edu/about/about.html","yes")
topsections[7] = new sectionrecord("search","Search the RMC Website","http://rmc.library.cornell.edu/search/search.html","yes")


	var servicessections = new Array()
	
	servicessections.longname = "Research Services"

	servicessections[1] = new sectionrecord("overview","Research Services Overview","http://rmc.library.cornell.edu/services/services_overview.html")
	servicessections[2] = new sectionrecord("reference","Reference","http://rmc.library.cornell.edu/services/reference.php")
	servicessections[3] = new sectionrecord("registration","Registration &amp; Guidelines for Use","http://rmc.library.cornell.edu/services/registration.html")
	servicessections[4] = new sectionrecord("Instruction","Instructional Programs","http://rmc.library.cornell.edu/programs/instruction.html")
	servicessections[5] = new sectionrecord("visitorinformation","Information for Visitors","http://rmc.library.cornell.edu/services/visitor_information.html")
	servicessections[6] = new sectionrecord("reproductions","Reproductions &amp; Permissions","http://rmc.library.cornell.edu/services/reproductions.html","yes")
	servicessections[7] = new sectionrecord("materialssearch","How to Find Rare Books &amp; Manuscripts","http://rmc.library.cornell.edu/services/materials_search.html")
	servicessections[8] = new sectionrecord("krochhours","Kroch Library Hours","http://www.library.cornell.edu/fallhours")

	
		var reproductionssections = new Array()
	
		reproductionssections.longname = "Research Services"

		reproductionssections[1] = new sectionrecord("repropricelist","Reproduction Services Price List","http://rmc.library.cornell.edu/services/repro_pricelist.html")
		reproductionssections[2] = new sectionrecord("reproorder","Request a Reproduction","http://rmc.library.cornell.edu/services/repro_request.php")
	


	var collectionssections = new Array()
	
	collectionssections.longname = "Collections"

	collectionssections[1] = new sectionrecord("collectionsoverview","Collections Overview","http://rmc.library.cornell.edu/collections/rmccollections.html")
	collectionssections[2] = new sectionrecord("-","","")
	collectionssections[3] = new sectionrecord("amerhist","American History &amp; Culture","http://rmc.library.cornell.edu/collections/amerhist.html","yes")
	collectionssections[4] = new sectionrecord("amerindhist","American Indian History &amp; Culture","http://rmc.library.cornell.edu/collections/amerindhist.html","yes")
	collectionssections[5] = new sectionrecord("archandplanning","Architecture &amp; Planning","http://rmc.library.cornell.edu/collections/archandplanning.html")
	collectionssections[6] = new sectionrecord("cuhist","Cornell University History","http://rmc.library.cornell.edu/collections/cuhist.html","yes")
	collectionssections[7] = new sectionrecord("eastasianhist","East Asian History &amp; Culture","http://rmc.library.cornell.edu/collections/eastasianhist.html")
	collectionssections[8] = new sectionrecord("eurohist","European History &amp; Culture","http://rmc.library.cornell.edu/collections/eurohist.html","yes")
	collectionssections[9] = new sectionrecord("foodwine","Food, Wine &amp; Culinary History","http://rmc.library.cornell.edu/collections/food_wine.html","yes")
	collectionssections[10] = new sectionrecord("icelandichist","Icelandic History &amp; Culture","http://rmc.library.cornell.edu/collections/icelandic.html")
	collectionssections[11] = new sectionrecord("latinamerhist","Latin American History &amp; Culture","http://rmc.library.cornell.edu/collections/latinamerhist.html")
	collectionssections[12] = new sectionrecord("literatureandtheater","Literature &amp; Theater","http://rmc.library.cornell.edu/collections/literatureandtheater.html","yes")
	collectionssections[13] = new sectionrecord("media","Media &amp; Digital Collections","http://rmc.library.cornell.edu/collections/media.html","yes")
	collectionssections[14] = new sectionrecord("music"," Music","http://rmc.library.cornell.edu/collections/music.html","yes")
	collectionssections[15] = new sectionrecord("naturalhist","Natural History","http://rmc.library.cornell.edu/collections/naturalhist.html","yes")
	collectionssections[16] = new sectionrecord("photosandvisual","Photographs &amp; Visual Materials","http://rmc.library.cornell.edu/collections/photosandvisual.html")
	collectionssections[17] = new sectionrecord("popculture","Popular Culture","http://rmc.library.cornell.edu/collections/popculture.html")
	collectionssections[18] = new sectionrecord("scienceandtech","Science &amp; Technology","http://rmc.library.cornell.edu/collections/scienceandtech.html")
	collectionssections[19] = new sectionrecord("sexandgender","Sexuality &amp; Gender","http://rmc.library.cornell.edu/collections/sexandgender.html","yes")
	collectionssections[20] = new sectionrecord("seasiahist","Southeast Asian History &amp; Culture","http://rmc.library.cornell.edu/collections/seasiahist.html")
	collectionssections[21] = new sectionrecord("travelandtour","Travel &amp; Tourism","http://rmc.library.cornell.edu/collections/travelandtour.html")
	collectionssections[22] = new sectionrecord("-","","")
	collectionssections[23] = new sectionrecord("digitalcollections","Digital Collections","http://rmc.library.cornell.edu/collections/digitalcollections.html","yes")
	collectionssections[24] = new sectionrecord("guides","Guides for Archival and Manuscript Collections","http://rmc.library.cornell.edu/collections/guides.html")
	collectionssections[25] = new sectionrecord("collectionhistory","Collection History","http://rmc.library.cornell.edu/about/collection_history.html")
	collectionssections[26] = new sectionrecord("colldevpolicies","Collection Development Policies","http://rmc.library.cornell.edu/about/coldev_policies.html")
	
	
		var amerhistsections = new Array()
	
		amerhistsections.longname = "American History &amp; Culture"

		amerhistsections[1] = new sectionrecord("agriculture","Agriculture","http://rmc.library.cornell.edu/collections/agriculture.html")
		amerhistsections[2] = new sectionrecord("civilwar","Civil War","http://rmc.library.cornell.edu/collections/civilwar.html")
		amerhistsections[3] = new sectionrecord("gettysburg","Gettysburg Address","http://rmc.library.cornell.edu/gettysburg/")
		amerhistsections[4] = new sectionrecord("hiphop","Hip Hop Collection","http://rmc.library.cornell.edu/hiphop/index.html")
		amerhistsections[5] = new sectionrecord("politicalamericana","Cornell University Collection of Political Americana","http://cidc.library.cornell.edu/political/")
		amerhistsections[6] = new sectionrecord("reghist","Regional History","http://rmc.library.cornell.edu/collections/reghist.html")
		amerhistsections[7] = new sectionrecord("samuelmay","Samuel J. May Anti-Slavery Collection","http://digital.library.cornell.edu/m/mayantislavery/")
		amerhistsections[8] = new sectionrecord("sexandgender","Sexuality and Gender","http://rmc.library.cornell.edu/collections/sexandgender.html")
		amerhistsections[9] = new sectionrecord("womensstudies","Women's Studies","http://rmc.library.cornell.edu/collections/ws.html")
		
		var amerindhistsections = new Array()
	
		amerindhistsections.longname = "American Indian History &amp; Culture"

		amerindhistsections[1] = new sectionrecord("hfl","HFL Native American Collection","http://rmc.library.cornell.edu/collections/HFL.html","yes")
		
		
			var hflsections = new Array()
	
			hflsections.longname = "HFL Native American Collection"

			hflsections[1] = new sectionrecord("fielding","Fidelia Fielding Diaries","http://rmc.library.cornell.edu/collections/fielding.html")
		
		
		var cuhistsections = new Array()
	
		cuhistsections.longname = "Cornell University History"

	cuhistsections[1] = new sectionrecord("apa","Alpha Phi Alpha Fraternity: A Centennial Celebration","http://rmc.library.cornell.edu/alpha/index.html")
		cuhistsections[2] = new sectionrecord("ezra","Ezra Cornell","http://historical.library.cornell.edu/ezra/")
		cuhistsections[3] = new sectionrecord("vetarchives","Archives of the College of Veterinary Medicine","http://www.vet.cornell.edu/library/archives/")
		cuhistsections[4] = new sectionrecord("libhist","Cornell University Library History","http://rmc.library.cornell.edu/collections/culibhist.html")
		cuhistsections[5] = new sectionrecord("cuinfodatabase","Cornell University Information Database","http://www.people.cornell.edu/pages/cre8/cudb/")
		
		
		var eurohistsections = new Array()
	
		eurohistsections.longname = "European History &amp; Culture"

		eurohistsections[1] = new sectionrecord("dante","The Fiske Dante Collection","http://rmc.library.cornell.edu/collections/dante.html")
		eurohistsections[2] = new sectionrecord("petrarch","The Fiske Petrarch Collection","http://rmc.library.cornell.edu/collections/petrarch.html")
		eurohistsections[3] = new sectionrecord("france","Eighteenth-Century France","http://rmc.library.cornell.edu/collections/france.html","yes")
		eurohistsections[4] = new sectionrecord("medieval","Medieval &amp; Renaissance Manuscripts","http://rmc.library.cornell.edu/collections/medieval.html")
		eurohistsections[5] = new sectionrecord("rhaeto","The Rhaeto-Romance Collection","http://rmc.library.cornell.edu/collections/rhaeto.html")
		eurohistsections[6] = new sectionrecord("witchcraft","The Cornell Witchcraft Collection","http://rmc.library.cornell.edu/collections/witchcraft.html")
		
			
			var francesections = new Array()
	
			francesections.longname = "Eighteenth-Century France"

			francesections[1] = new sectionrecord("frenchrev","French Revolution","http://rmc.library.cornell.edu/collections/frenchrev.html")
			francesections[2] = new sectionrecord("lafayette","Lafayette","http://rmc.library.cornell.edu/collections/lafayette.html")
			francesections[3] = new sectionrecord("lavoisier","Lavoisier","http://rmc.library.cornell.edu/collections/lavoisier.html")
			
		
		var foodwinesections = new Array()
	
		foodwinesections.longname = "Food, Wine &amp; Culinary History"

		foodwinesections[1] = new sectionrecord("rarecookery","Rare Cookery Book Collection","http://rmc.library.cornell.edu/collections/rarecookery.html")
		foodwinesections[2] = new sectionrecord("winegrape","Eastern Wine and Grape Archive ","http://rmc.library.cornell.edu/collections/winegrape.html","yes")
		foodwinesections[3] = new sectionrecord("menus","Menu Collection","http://rmc.library.cornell.edu/collections/menus.html")
		foodwinesections[4] = new sectionrecord("foodarchive","Archival Collections on Food History","http://rmc.library.cornell.edu/collections/foodarchive.html")
		
			var winegrapesections = new Array()
	
			winegrapesections.longname = "Eastern Wine and Grape Press Releases"

			winegrapesections[1] = new sectionrecord("pr1","Press Release - 12/7/2005","http://rmc.library.cornell.edu/collections/winegrape_pr1.html")
		
		
		var literatureandtheatersections = new Array()
	
		literatureandtheatersections.longname = "Literature &amp; Theater"

		literatureandtheatersections[1] = new sectionrecord("anglolit","Anglo-American Literature","http://rmc.library.cornell.edu/collections/anglolit.html")
		literatureandtheatersections[2] = new sectionrecord("dante","The Fiske Dante Collection","http://rmc.library.cornell.edu/collections/dante.html")
		literatureandtheatersections[3] = new sectionrecord("petrarch","The Fiske Petrarch Collection","http://rmc.library.cornell.edu/collections/petrarch.html")
		literatureandtheatersections[4] = new sectionrecord("joyce","James Joyce","http://rmc.library.cornell.edu/collections/joyce.html")
		literatureandtheatersections[5] = new sectionrecord("shaw","George Bernard Shaw","http://rmc.library.cornell.edu/collections/shaw.html")
		literatureandtheatersections[6] = new sectionrecord("ebwhite","E. B. White","http://rmc.library.cornell.edu/collections/ebwhite.html")
		literatureandtheatersections[7] = new sectionrecord("wordsworth","William Wordsworth","http://rmc.library.cornell.edu/collections/wordsworth.html")

		
		var mediasections = new Array()
	
		mediasections.longname = "Media &amp; Digital Collections"
		
		mediasections[1] = new sectionrecord("goldsen","Rose Goldsen Archive of New Media Art","http://rmc.library.cornell.edu/collections/goldsen.html")
		
		
		var musicsections = new Array()
	
		musicsections.longname = "Music"
		
		musicsections[1] = new sectionrecord("hiphop","Hip Hop Collection","http://rmc.library.cornell.edu/hiphop/index.html")
		
		
		var naturalhistsections = new Array()
	
		naturalhistsections.longname = "Natural History"

		naturalhistsections[1] = new sectionrecord("ornith","Ornithology","http://rmc.library.cornell.edu/collections/ornith.html")
				
	
		var sexandgendersections = new Array()
		
		sexandgendersections.longname = "Sexuality &amp; Gender"
		
		sexandgendersections[1] = new sectionrecord("humansexuality","Human Sexuality Collection","http://rmc.library.cornell.edu/HSC/","yes")	
		sexandgendersections[2] = new sectionrecord("womensstudies","Women's Studies","http://rmc.library.cornell.edu/collections/ws.html")
		
		var humansexualitysections = new Array()
		
		humansexualitysections.longname = "Human Sexuality Collection"
		
		humansexualitysections[1] = new sectionrecord("overview","Overview","http://rmc.library.cornell.edu/HSC/")
		humansexualitysections[2] = new sectionrecord("hsccontents","What's in the HSC","http://rmc.library.cornell.edu/HSC/collections.html","yes")
		humansexualitysections[3] = new sectionrecord("use","Using the HSC","http://rmc.library.cornell.edu/HSC/using.html","yes")
		humansexualitysections[4] = new sectionrecord("zwickler","Zwickler Memorial Research Grants","http://rmc.library.cornell.edu/HSC/zwickler.html","yes")
		humansexualitysections[5] = new sectionrecord("abouthsc","About the HSC","http://rmc.library.cornell.edu/HSC/mission.html","yes")
		humansexualitysections[6] = new sectionrecord("donate","Donating to the HSC","http://rmc.library.cornell.edu/HSC/donatingtohsc.html")
		
		
		var hsccontentssections = new Array()
		
		hsccontentssections.longname = "What's in the HSC"
		
		hsccontentssections[1] = new sectionrecord("manuscripts","Manuscripts","http://rmc.library.cornell.edu/EAD/browselists/humsx.html")
		hsccontentssections[2] = new sectionrecord("books","Books","http://rmc.library.cornell.edu/HSC/bks.html")
		hsccontentssections[3] = new sectionrecord("periodicals","Periodicals","http://rmc.library.cornell.edu/HSC/per.html")
		
		
		var usesections = new Array()
		
		usesections.longname = "Using the HSC"
		
		usesections[1] = new sectionrecord("researchguide","Sexuality Research Guide","http://rmc.library.cornell.edu/HSC/hsc_guide.html")
		
		
		var zwicklersections = new Array()
		
		zwicklersections.longname = "Zwickler Memorial Research Grants"
		
		zwicklersections[1] = new sectionrecord("news","Zwickler Grant News","http://rmc.library.cornell.edu/HSC/zwicklernews.html")
		
		
		var abouthscsections = new Array()
		
		abouthscsections.longname = "About the HSC"
		
		abouthscsections[1] = new sectionrecord("mission","Mission &amp; History","http://rmc.library.cornell.edu/HSC/mission.html")
		abouthscsections[2] = new sectionrecord("mariposa","Mariposa Education and Research Foundation","http://rmc.library.cornell.edu/HSC/mariposa.html")
		abouthscsections[3] = new sectionrecord("advisory","Advisory Committee","http://rmc.library.cornell.edu/HSC/advisory.html")
		abouthscsections[4] = new sectionrecord("news","News","http://rmc.library.cornell.edu/HSC/news.html")
		
		
	
		var digitalcollectionssections = new Array()
		
		digitalcollectionssections.longname = "Digital Collections"
	
		digitalcollectionssections[1] = new sectionrecord("photohub","CU Archives Photo Hub Search","http://rmc.library.cornell.edu/photohub/keyword_search.php")



	var programssections = new Array()
	
	programssections.longname = "Programs"

	programssections[1] = new sectionrecord("programsoverview","Programs Overview","http://rmc.library.cornell.edu/programs/programs.html")
	programssections[2] = new sectionrecord("exhibitions","Exhibitions","http://rmc.library.cornell.edu/programs/exhibitions/current_exhibitions.html","yes")
	programssections[3] = new sectionrecord("instruction","Instructional Programs","http://rmc.library.cornell.edu/programs/instruction.html")
	programssections[4] = new sectionrecord("fundingforresearch","Funding for Research","http://rmc.library.cornell.edu/programs/fundingforresearch.html","yes")
	programssections[5] = new sectionrecord("toursandevents","Upcoming Events","http://rmc.library.cornell.edu/programs/tours_events.html")
	programssections[6] = new sectionrecord("archivesandrecordsmgmt","University Archives &amp; Records Management","http://rmc.library.cornell.edu/collections/cuhist.html")
	
	
			var exhibitionssections = new Array()

			exhibitionssections[1] = new sectionrecord("currentexhibitions","Current & Future Exhibitions","http://rmc.library.cornell.edu/programs/exhibitions/current_exhibitions.html")
			exhibitionssections[2] = new sectionrecord("previousexhibitions","Previous Exhibitions","http://rmc.library.cornell.edu/programs/exhibitions/previous_exhibitions.html","yes")
			
				
				var previousexhibitionssections = new Array()
				
				previousexhibitionssections[1] = new sectionrecord("darwin","Charles Darwin: After the <i>Origin</i>","http://rmc.library.cornell.edu/darwin/")	
				previousexhibitionssections[2] = new sectionrecord("ewga","Song of the Vine: A History of Wine","http://rmc.library.cornell.edu/ewga/")				
				previousexhibitionssections[3] = new sectionrecord("lafayette","LaFayette: Citizen of Two Worlds","http://rmc.library.cornell.edu/lafayette/")
				previousexhibitionssections[4] = new sectionrecord("ezra","&ldquo;I Would Found an Institution&rdquo;: The Ezra Cornell Bicentennial","http://rmc.library.cornell.edu/ezra/")
				previousexhibitionssections[5] = new sectionrecord("hrc","25 Years of Political Influence: The Records of the Human Rights Campaign","http://rmc.library.cornell.edu/HRC/")
				previousexhibitionssections[6] = new sectionrecord("poe","Nevermore: The Edgar Allan Poe Collection of Susan Jaffe Tane","http://rmc.library.cornell.edu/poe/")
				previousexhibitionssections[7] = new sectionrecord("baldwin","Baldwin Memorial Stairway","http://rmc.library.cornell.edu/baldwin/")
				previousexhibitionssections[8] = new sectionrecord("footsteps","In the Founders' Footsteps: Builders of the Cornell University Library","http://rmc.library.cornell.edu/footsteps/")
				previousexhibitionssections[9] = new sectionrecord("vanished","Vanished Worlds, Enduring People: Cornell University Library's Native American Collection","http://nac.library.cornell.edu/")
				previousexhibitionssections[10] = new sectionrecord("apa","Alpha Phi Alpha Fraternity: A Centennial Celebration","http://rmc.library.cornell.edu/alpha/index.html")
				previousexhibitionssections[11] = new sectionrecord("lolita","Nabokov at Cornell: Celebrating Lolita's Fiftieth Anniversary","http://rmc.library.cornell.edu/lolita/")
				previousexhibitionssections[12] = new sectionrecord("joyce","From Dublin to Ithaca: Cornell's James Joyce Collection","http://rmc.library.cornell.edu/joyce/")
				previousexhibitionssections[13] = new sectionrecord("fiske","The Passionate Collector: Willard Fiske and his Libraries","http://rmc.library.cornell.edu/collector/")
				previousexhibitionssections[14] = new sectionrecord("vote","Get Out the Vote!","http://rmc.library.cornell.edu/vote/")
				previousexhibitionssections[15] = new sectionrecord("bailey","Liberty Hyde Bailey: A Man for All Seasons","http://rmc.library.cornell.edu/bailey/")
				previousexhibitionssections[16] = new sectionrecord("cornellolympians","Cornell Olympic Medalists","http://rmc.library.cornell.edu/programs/exhibitions/previous_exhibitions.html#cornellolympians")
				previousexhibitionssections[17] = new sectionrecord("tianjin","600 Years of Urban Planning and Development in and around Tianjin","http://wason.library.cornell.edu/Tianjin/")
				previousexhibitionssections[18] = new sectionrecord("earlybw","Early Black Women at Cornell: Part and Apart, 1890s-1930s","http://rmc.library.cornell.edu/earlyblackwomen/")
				previousexhibitionssections[19] = new sectionrecord("cornellpresidents","Legacy of Leadership | Cornell's Presidents","http://rmc.library.cornell.edu/presidents/")
				previousexhibitionssections[20] = new sectionrecord("pastimes","Pastimes &amp; Paradigms","http://rmc.library.cornell.edu/games/")
				previousexhibitionssections[21] = new sectionrecord("artifex","Artifex","http://rmc.library.cornell.edu/baskin/")
				previousexhibitionssections[22] = new sectionrecord("abolitionism","&#8220;I will be heard!&#8221;","http://rmc.library.cornell.edu/abolitionism/")
				previousexhibitionssections[23] = new sectionrecord("mozart","Mozart and the Keyboard Culture of His Time","http://rmc.library.cornell.edu/mozart/default.htm")
				previousexhibitionssections[24] = new sectionrecord("medievalbook","From Manuscript to Print","http://rmc.library.cornell.edu/medievalbook/default.htm")
				previousexhibitionssections[25] = new sectionrecord("breadalone","Not by Bread Alone","http://rmc.library.cornell.edu/food/default.htm")
				previousexhibitionssections[26] = new sectionrecord("womenlit","Women in the Literary Marketplace","http://rmc.library.cornell.edu/womenLit/default.htm")
				previousexhibitionssections[27] = new sectionrecord("asiatreasures","Treasures of the Asia Collections","http://rmc.library.cornell.edu/asiaTreasures/default.htm")
				previousexhibitionssections[28] = new sectionrecord("homeec","From Domesticity to Modernity","http://rmc.library.cornell.edu/homeEc/default.html")
				previousexhibitionssections[29] = new sectionrecord("vote","Vote!","http://rmc.library.cornell.edu/exhibits/vote/vote.html")
				previousexhibitionssections[30] = new sectionrecord("sagas","Living and Reliving the Icelandic Sagas","http://rmc.library.cornell.edu/exhibits/sagas/saga1.html")
				previousexhibitionssections[31] = new sectionrecord("naturegarland","Nature&#8217;s Garland","http://rmc.library.cornell.edu/exhibits/nature_garland/garland.htm")
				previousexhibitionssections[32] = new sectionrecord("tianjin","William Wordsworth and the Romantic Imagination","http://rmc.library.cornell.edu/exhibits/wdw/wordsworth.htm")
				previousexhibitionssections[33] = new sectionrecord("lurie","Alison Lurie","http://rmc.library.cornell.edu/programs/exhibitions/lurie.html")
				previousexhibitionssections[34] = new sectionrecord("beautifulbirds","Beautiful Birds","http://rmc.library.cornell.edu/programs/exhibitions/beautifulbirds.html")
				previousexhibitionssections[35] = new sectionrecord("artofthebook","The Art of the Book","http://rmc.library.cornell.edu/programs/exhibitions/artofthebook.html")
				previousexhibitionssections[36] = new sectionrecord("lrjackson","Laura (Riding) Jackson &amp; the Promise of Language","http://rmc.library.cornell.edu/programs/exhibitions/lrjackson.html")
				previousexhibitionssections[37] = new sectionrecord("nabokov","Vladimir Nabokov Centenary","http://rmc.library.cornell.edu/programs/exhibitions/nabokov.html")
				previousexhibitionssections[38] = new sectionrecord("ammons","A. R. Ammons","http://rmc.library.cornell.edu/programs/exhibitions/ammons.html")
				previousexhibitionssections[39] = new sectionrecord("music","The Well-Tempered Collection","http://rmc.library.cornell.edu/programs/exhibitions/music.html")
				previousexhibitionssections[40] = new sectionrecord("letters","I Take This Pen in Hand","http://rmc.library.cornell.edu/programs/exhibitions/letters.html")
				previousexhibitionssections[41] = new sectionrecord("shaw","The Instinct of an Artist","http://rmc.library.cornell.edu/programs/exhibitions/previous_exhibitions.html#shaw")
				previousexhibitionssections[42] = new sectionrecord("prize","The Prize","http://rmc.library.cornell.edu/programs/exhibitions/prize.html")
				previousexhibitionssections[43] = new sectionrecord("cals125","125 Years of Achievement","http://rmc.library.cornell.edu/Aap-exhibit/")
				previousexhibitionssections[44] = new sectionrecord("libraryfounding","A Legacy of Ideas","http://rmc.library.cornell.edu/programs/exhibitions/previous_exhibitions.html#libraryfounding")
				previousexhibitionssections[45] = new sectionrecord("ezra","Invention &amp; Enterprise","http://rmc.library.cornell.edu/ezra-exhibit/entrance.html")
				previousexhibitionssections[46] = new sectionrecord("abbe","The Artistry of Elfriede Abbe","http://rmc.library.cornell.edu/programs/exhibitions/previous_exhibitions.html#abbe")
				previousexhibitionssections[47] = new sectionrecord("paper","Paper, Leather, Clay, &amp; Stone","http://rmc.library.cornell.edu/Paper-exhibit/default.html")
				previousexhibitionssections[48] = new sectionrecord("rhaeto","The Rhaeto-Romance Collection","http://rmc.library.cornell.edu/programs/exhibitions/rhaeto.html")
				previousexhibitionssections[49] = new sectionrecord("gender","Women Challenging Gender","http://rmc.library.cornell.edu/programs/exhibitions/previous_exhibitions.html#gender")
				
				
			var fundingforresearchsections = new Array()

			fundingforresearchsections[1] = new sectionrecord("johnnolenresearchfund","The John Nolen Research Fund","http://rmc.library.cornell.edu/programs/john_nolen_research_fund.html")
			fundingforresearchsections[2] = new sectionrecord("deansfellowshiphomeec","Dean's Fellowship in the History of Home Economics and Human Nutrition","http://www.human.cornell.edu/che/Fellowship/index.cfm")
			fundingforresearchsections[3] = new sectionrecord("test","The Phil Zwickler Memorial Research Grants","http://rmc.library.cornell.edu/HSC/zwickler.htm")
			fundingforresearchsections[4] = new sectionrecord("grantbudgettaxinfo","Budget and Tax Information for Research Grant Applicants","http://rmc.library.cornell.edu/programs/grantbudgettaxinfo.html")



	var newssections = new Array()
	
	newssections.longname = "News"

	newssections[1] = new sectionrecord("newsoverview","News Overview","http://rmc.library.cornell.edu/news/news.html")
	newssections[2] = new sectionrecord("newacquisitions","New Acquisitions","http://rmc.library.cornell.edu/news/new_acquisitions.html")
	newssections[3] = new sectionrecord("currentexhibitions","Current & Future Exhibitions","http://rmc.library.cornell.edu/programs/exhibitions/current_exhibitions.html")
	newssections[4] = new sectionrecord("upcomingevents","Upcoming Events","http://rmc.library.cornell.edu/programs/tours_events.html")
	newssections[5] = new sectionrecord("rmcinnews","News Archive","http://rmc.library.cornell.edu/news/press_releases.html")
	newssections[6] = new sectionrecord("culibnews","Cornell University Library News","http://news.library.cornell.edu/com/")
	
	
		var newsarchivesections = new Array()

		newsarchivesections[1] = new sectionrecord("previousexhibitions","Previous Exhibitions","http://rmc.library.cornell.edu/programs/exhibitions/previous_exhibitions.html")
		newsarchivesections[2] = new sectionrecord("previouspressreleases","Previous RMC News Coverage","http://rmc.library.cornell.edu/news/previous_press_releases.html")
	
	

	var aboutsections = new Array()
	
	aboutsections.longname = "About Us"

	aboutsections[1] = new sectionrecord("aboutkroch","The Carl A. Kroch Library","http://rmc.library.cornell.edu/about/about.html")
	aboutsections[2] = new sectionrecord("staffdir","Staff Directory","http://rmc.library.cornell.edu/about/primary_staff.html","yes")
	aboutsections[3] = new sectionrecord("collectionhistory","Collection History","http://rmc.library.cornell.edu/about/collection_history.html")
	aboutsections[4] = new sectionrecord("faq","Frequently Asked Questions","http://rmc.library.cornell.edu/about/faq.html")
	aboutsections[5] = new sectionrecord("givingopportunities","Making a Gift to RMC","http://rmc.library.cornell.edu/about/giving_opportunities.html")
	aboutsections[6] = new sectionrecord("adminpolicies","Administrative Policies &amp; Procedures","http://rmc.library.cornell.edu/about/admin_policies.html","yes")
	aboutsections[7] = new sectionrecord("colophon","Website Colophon","http://rmc.library.cornell.edu/about/colophon.html")
	

		var staffdirsections = new Array()

		staffdirsections[1] = new sectionrecord("primarystaff","Primary Staff Contacts","http://rmc.library.cornell.edu/about/primary_staff.html")
		staffdirsections[2] = new sectionrecord("stafflist","Complete Staff List","http://rmc.library.cornell.edu/about/staff_list.html")
		
				
		var adminpoliciessections = new Array()
		
		adminpoliciessections.longname = "Administrative Policies &amp; Procedures"

		adminpoliciessections[1] = new sectionrecord("colldevpolicies","Collection Development Policies","http://rmc.library.cornell.edu/about/coldev_policies.html")
		adminpoliciessections[2] = new sectionrecord("transferguidelines","Policy on Transfer of General Collection Materials","http://www.library.cornell.edu/colldev/RMCTransGuidelines.html")
		adminpoliciessections[3] = new sectionrecord("transferform","Archives Transfer Report Form","http://rmc.library.cornell.edu/about/archives_transfer_report.html")
		adminpoliciessections[4] = new sectionrecord("memofunderstanding","Memorandum of Understanding","http://rmc.library.cornell.edu/about/mou.html")
		adminpoliciessections[5] = new sectionrecord("techservmanual","Technical Services Manual","http://rmc.library.cornell.edu/about/techserv_manual.php")
		adminpoliciessections[6] = new sectionrecord("registration","Registration &amp; Guidelines for Use","http://rmc.library.cornell.edu/services/registration.html")
		adminpoliciessections[7] = new sectionrecord("nonrmcroomusepolicies","Room Use for Events","http://rmc.library.cornell.edu/about/nonrmc_roomuse_policies.html")
		adminpoliciessections[8] = new sectionrecord("privacy","Privacy Statement","http://rmc.library.cornell.edu/about/privacy_statement.html")
		adminpoliciessections[9] = new sectionrecord("nationalpolicies","National Policy Documents","http://rmc.library.cornell.edu/about/national_policies.html")
		adminpoliciessections[10] = new sectionrecord("cornellcopyrightpolicies","University Copyright Policy","http://www.copyright.cornell.edu")
		adminpoliciessections[11] = new sectionrecord("studentalumnirecordspolicies","Student &amp; Alumni Records","http://www.policy.cornell.edu/vol4_7.cfm")
		adminpoliciessections[12] = new sectionrecord("acceptinggifts","Accepting University Gifts","http://www.policy.cornell.edu/vol3_1.cfm")



	var searchsections = new Array()
	
	searchsections.longname = "Search"

	searchsections[1] = new sectionrecord("searchrmc","Search the RMC Website","http://rmc.library.cornell.edu/search/search.html")
	searchsections[2] = new sectionrecord("sitemap","RMC Website Map","http://rmc.library.cornell.edu/search/sitemap.html")





function fixchars(name){

name = name.replace(/&amp;/g,"&")
name = name.replace(/&#8217;/g,"\u0027")
name = name.replace(/&#8220;/g,"\u0022")
name = name.replace(/&#8221;/g,"\u0022")

return name

}



function showheader(currenttopsection){



document.write('<div id="cu-identity">')
document.write('<div id="cu-logo">')
document.write('<a id="insignia-link" href="http://www.cornell.edu/"><img src="/images/unit_signature_unstyled.gif" alt="Cornell University" width="435" height="88" border="0" /></a>')
document.write('<div id="unit-signature-links">')
document.write('<a id="cornell-link" href="http://www.cornell.edu/">Cornell University</a>')
document.write('<a id="unit-link1" href="http://www.library.cornell.edu/">Library</a>')
document.write('<a id="unit-link2" href="http://rmc.library.cornell.edu/">Division of Rare and Manuscript Collections</a>')
document.write('</div>')
document.write('</div>')	

document.write('<div id="search-form">')
document.write('<form action="http://www.library.cornell.edu/search/cul_gsa" enctype="application/x-www-form-urlencoded" method="post">')
document.write('<div id="search-input">')
document.write('<label for="search-form-query">Search: </label>')
document.write('<input id="search-form-query" name="qp" size="20" type="text" />')
document.write('<input id="search-form-submit" name="submit" type="submit" value="go" />')
document.write('</div>')
document.write('<div id="search-filters">')
document.write('<input id="search-filters1" checked="checked" name="sitesearch" type="radio" value="library" />')
document.write('<label for="search-filters1">Library pages</label>')
document.write('<input id="search-filters2" name="sitesearch" type="radio" value="cornell" />')
document.write('<label for="search-filters2">Cornell</label>')
document.write('</div>')
document.write('</form>')
document.write('</div>')

document.write('</div>')

document.write('<p id="navbar">')

	for (var i = 1; i < topsections.length; i++){
	
		if (topsections[i].shortname == currenttopsection){
		document.write('<span class="selectednavtab"><a href="' + topsections[i].url + '">' + topsections[i].longname + '</a></span>')
		}
		else{
		document.write('<span class="unselectednavtab"><a href="' + topsections[i].url + '">' + topsections[i].longname + '</a></span>')
		}
	
	}

document.write('</p>')


}




function showtree(topsection, sublevel1, sublevel2, sublevel3){

var pagetitle = ""

document.write('<form style="float: right;" name="querybox" action="http://www.library.cornell.edu/script/opac-redirect.php" method="get" autocomplete="OFF">')
document.write('<a href="http://catalog.library.cornell.edu/">Library Catalog</a>: ')
document.write('<input style="font-size: 10px;" size=10 maxlength="100" name="Search_Arg" id=searchInput>')
document.write('<select style="font-size: 10px; margin-left: 5px;" name="Search_Code" size="1">')
document.write('<option selected value="TALL">Title</option>')
document.write('<option value="NAME_">Author</option>')
document.write('<option value="SUBJ_">Subject</option>')
document.write('<option value="FT*">Keyword</option>')
document.write('</select>')
document.write(' <input style="font-size: 10px;" type="submit" border="0" value="Go" name="Go"></form>')

document.write('<div id="navtree">Current Page: ')

	for (var i = 0; i < showtree.arguments.length; i++){
	
		if (i == 0){
		document.write('<a href="' + findsectionproperty("top", "url", showtree.arguments[i]) + '">' + findsectionproperty("top", "longname", showtree.arguments[i]) + '</a>')
		
		pagetitle =  "RMC - " + findsectionproperty("top", "longname", showtree.arguments[i])
		
		}
		else{
		
			pagetitle = pagetitle + " > " + findsectionproperty(showtree.arguments[i-1], "longname", showtree.arguments[i])
		
			if (i == showtree.arguments.length-1){
		
			document.write(' <img style="vertical-align: text-top; padding: 0px;" src="http://rmc.library.cornell.edu/images/rightarrow2.gif" width="15" height="13" alt="" /> ' + findsectionproperty(showtree.arguments[i-1], "longname", showtree.arguments[i]))
			}
			else{
	
			document.write(' <img style="vertical-align: text-top; padding: 0px;" src="http://rmc.library.cornell.edu/images/rightarrow2.gif" width="15" height="13" alt="" /> <a href="' + findsectionproperty(showtree.arguments[i-1], "url", showtree.arguments[i]) + '">' + findsectionproperty(showtree.arguments[i-1], "longname", showtree.arguments[i]) + '</a>')	
		
			}
		
		}
		
	}
	

document.write('</div>')

document.title = fixchars(pagetitle)


}





function showsidebarsections(section, currentsublevel1, currentsublevel2, currentsublevel3){

eval('var sectionlist = ' + section + 'sections')

	for (var i = 1; i < sectionlist.length; i++){
	
	
		if (sectionlist[i].shortname == "-"){
		document.write('</ul><hr size="1" width="84%" color="#E5DBB8" style="margin-top: 2px; margin-bottom: 0px; padding: 0px;"/><ul>')
		}
		
		else{
	
			if (sectionlist[i].shortname == currentsublevel1){
			document.write('<li class="selectedtocitem"><a href="' + sectionlist[i].url + '">' + sectionlist[i].longname + '</a></li>')
			
				if (sectionlist[i].subsectionexists){
				
				document.write('<ul class="sidebartocsublist">')
				
				showsidebarsections(sectionlist[i].shortname, currentsublevel2, currentsublevel3)
				
				document.write('</ul>')
				}
				
			}
			else{
			document.write('<li id="unselectedtocitem"><a href="' + sectionlist[i].url + '">' + sectionlist[i].longname + '</a></li>')
			}
			
		}
	
	}

}




function showsidebarmenu(section, currentsublevel1, currentsublevel2, currentsublevel3){


eval('var sectionlist = ' + section + 'sections')

document.write('<h3 style="margin-bottom: 5px;">' + sectionlist.longname + ' Contents</h3>')



document.write('<ul style="margin-bottom: 5px;">')

showsidebarsections(section, currentsublevel1, currentsublevel2, currentsublevel3)
	
document.write('</ul>')



}



function showsections(section, omitsection){

eval('var sectionlist = ' + section + 'sections')

document.write('<ul>')


	for (var i = 1; i < sectionlist.length; i++){
		if (sectionlist[i].shortname != omitsection && sectionlist[i].shortname != "-"){
		document.write('<li><a href="' + sectionlist[i].url + '">' + sectionlist[i].longname + '</a></li>')
		}		
	}
	
document.write('</ul>')

}



function showrelatedsections(section, currentsection){

eval('var sectionlist = ' + section + 'sections')


document.write('<h3>Other ' + sectionlist.longname + ' Sections</h3>')
document.write('<ul>')


	for (var i = 1; i < sectionlist.length; i++){
		
		if (sectionlist[i].shortname != currentsection && sectionlist[i].shortname != "-"){
		document.write('<li><a href="' + sectionlist[i].url + '">' + sectionlist[i].longname + '</a></li>')
		}
		
	}
	
document.write('</ul>')

}




function showsitemap(section){

document.write('<ul>')

if(!section){
var section = "top"
var markupopen = "<b>"
var markupclose = "</b>"
}
else{
var markupopen = ""
var markupclose = ""
}

eval('var sectionlist = ' + section + 'sections')
	
	for (var i = 1; i < sectionlist.length; i++){
	
		if (sectionlist[i].shortname != "-"){
	
		document.write('<li><a href="' + sectionlist[i].url + '">' + markupopen + sectionlist[i].longname + markupclose + '</a></li>')
			
			if (sectionlist[i].subsectionexists){
				
			showsitemap(sectionlist[i].shortname)
				
			}
		}
	
	}
	
document.write('</ul>')

}



var sidebarimages=new Array()

sidebarimages[0]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/RavennaInteriorTemple.jpg" height="331" width="250" alt="Ravenna, Interior, Templeca" /></a><br/>Ravenna, Interior, Templeca. ca. 1865.<br/>Fratelli Alinari.<br/><br/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>A. D. White Architectural Photographs</p>'

sidebarimages[1]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/Brzarafromthebridge.jpg" height="350" width="250" alt="Brart from the bridge" /></a><br/>Br&uacute;ar&aacute; (up) from the bridge.<br/>Frederick W. W. Howell, ca. 1898.<br/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>Howell Icelandic Collection</p>'

sidebarimages[2]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/lhb_camera_250.jpg" height="220" width="250" alt="Liberty Hyde Bailey&#8217;s Camera" /></a><br/>Liberty Hyde Bailey&#8217;s Camera.<br/>Betax No. 3 lens by Wollensak, USA, on a field view camera.<br clear="left"/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>Cornell University Archives</p>'

sidebarimages[3]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/AmaryllisCurvifolio.jpg" height="395" width="250" alt="Amaryllis Curvifolio" /></a><br/><i>Amaryllis curvifolio</i>, from Pierre Joseph Redout&eacute;&#8217;s Les <i>liliac&eacute;es</i>, 1802-1816.<br clear="left"/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>History of Science Collections</p>'

sidebarimages[4]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/AbbevilleSaintVulfran.jpg" height="309" width="250" alt="Saint Vulfran" /></a><br/>Bisson Freres<br/>Abbeville. Saint Vulfran, ca. 1488-ca. 1599.<br/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>A. D. White Architectural Photographs</p>'

sidebarimages[5]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/H_P_01.jpg" height="339" width="250" alt="Eleanor Roosevelt" /></a><br/>Eleanor Roosevelt at the 1937 Farm and Home Week pageant.<br/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>Cornell University Archives</p>'

sidebarimages[6]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/LavoisierTravelCase_250.jpg" height="228" width="250" alt="Travel Case" /></a><br/>Madame Lavoisier&#8217;s traveling case, late-eighteenth century.<br clear="left"/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>History of Science Collections</p>'

sidebarimages[7]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/lombard_gradual.jpg" height="312" width="250" alt="Lombard Gradual" /></a><br/>Lombard Gradual.<br/>Northern Italy, mid-fifteenth century.<br/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>Rare Book Collections</p>'

sidebarimages[8]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/shah_nameh.jpg" height="415" width="250" alt="Royal Figure Playing Chess" /></a><br/>Royal figure playing chess, from the Shah Nameh by Firdusi.<br/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>Rare Book Collections</p>'

sidebarimages[9]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/jadebook.jpg" height="264" width="250" alt="Jade Book" /></a><br/>Yu shu.<br/>The Jade Book of Emperor Kangxi, 1661.<br/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>The Wason Collection on East Asia</p>'

sidebarimages[10]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/Widow_3_26_1926.jpg" height="314" width="250" alt="The Widow" /></a><br/>The Widow, Cornell&#8217;s Humor Magazine, March, 1926.<br/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>Cornell University Archives</p>'

sidebarimages[11]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/sojourner_truth.jpg" height="314" width="250" alt="Sojourner Truth" /></a><br/>Sojourner Truth, 1850.<br/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>Samuel J. May Anti-Slavery Collection</p>'

sidebarimages[12]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/RT_S_01.jpg" height="194" width="250" alt="Home Economics Students" /></a><br/>Students from Cornell&#8217;s College of Home Economics learn how to maintain a car in a 1938 class.<br/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>Cornell University Archives</p>'

sidebarimages[13]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/nightbloomingcereus_250.jpg" height="319" width="250" alt="Night-Blooming Cereus" /></a><br/><i>Night-Blooming Cereus</i>, Hand-colored lithograph from Robert J. Thornton&#8217;s <i>Temple of Flora</i>, 1799.<br/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>History of Science Collections</p>'

sidebarimages[14]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/Holt_S0674.jpg" height="305" width="250" alt="Guardian Figure" /></a><br/>Guardian figure.<br/>Peliatan, Bali. 1956. <br/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>Claire Holt Slides of Indonesian Art</p>'

sidebarimages[15]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/comstock_butterflies.jpg" height="497" width="250" alt="Comstock Wood Engraving" /></a><br/>Anna Botsford Comstock, Wood engraving.<br/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>Cornell University Archives</p>'

sidebarimages[16]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/gaywolves.jpg" height="389" width="250" alt="Gay Wolves Punchboard" /></a><br/>Gay Wolves Punchboard, ca. 1940.<br/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>John S. Minton Punchboard Collection</p>'

sidebarimages[17]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/frenchrev3_250.jpg" height="369" width="250" alt="La Nation Francaise" /></a><br/>"La Nation Francaise Assistee de M. De laFayette."<br/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>Cornell French Revolution Collection</p>'

sidebarimages[18]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/witchcraft_250.jpg" height="411" width="250" alt="Ulrich Molitor" /></a><br/>Ulrich Molitor. De Lamiis et Phitonicis Mulieribus, 1493.<br/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>The Cornell Witchcraft Collection</p>'

sidebarimages[19]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/RMC2004_7120_250.jpg" height="358" width="250" alt="Moenntarri Warrior" /></a><br/>"Moenntarri Warrior in the costume of the dog danse". Wied, Maximilian, Prinz von. Travels in the interior of North America during the years 1832-1834; illustrations by Karl Bodmer.<br/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>Huntington Free Library Native American Collection</p>'

sidebarimages[20]='<p><a href="javascript:cycleimage()" title="Click to View Another Image"><img src="/images/actup.jpg" height="284" width="250" alt="ACT UP Demonstration" /></a><br/>ACT UP Demonstration, New York City.<br/><img src="/images/ornrule1.gif" width="80" height="22" style="margin: 0px;" /><br/>Human Sexuality Collection</p>'




var imagenumber



function showcollectionimage(){


	if (screen.width < 1024){
	document.write('<div id="sidebarcollectionitem"><p>From one of the many <a href="http://rmc.library.cornell.edu/collections/rmccollections.html">collections</a> in Cornell&#8217;s Rare and Manuscript Division:</p><p><img src="/images/RMC2004_7120_185.jpg" width="185" alt="Moenntarri Warrior" /><br/>"Moenntarri Warrior in the costume of the dog danse". Wied, Maximilian, Prinz von. Travels in the interior of North America during the years 1832-1834; illustrations by Karl Bodmer.<br/><img src="/images/ornrule2.gif" width="80" height="22" style="margin: 0px;" /><br/>Huntington Free Library Native American Collection</p></div>')
	}
	
	else{

	imagenumber = Math.round(Math.random()*(sidebarimages.length-1))

	document.write('<div id="sidebarcollectionitem"><p>From one of the many <a href="http://rmc.library.cornell.edu/collections/rmccollections.html">collections</a> in Cornell&#8217;s Rare and Manuscript Division:</p>' + sidebarimages[imagenumber] + '</div>')

	}

}




function cycleimage(){

if(imagenumber < sidebarimages.length-1){
imagenumber++
}
else{
imagenumber = 0
}

document.getElementById("sidebarcollectionitem").innerHTML = '<p>From one of the many <a href="http://rmc.library.cornell.edu/collections/rmccollections.html">collections</a> in Cornell&#8217;s Rare and Manuscript Division:</p>' + sidebarimages[imagenumber]

}



 
function showcurrentexhibition(){

	if (screen.width < 1024){
	document.write('<div id="adinsert" style="width: 185px;"><h3 style="font-size: 11px; padding-top: 4px; margin-top: 0px;">Current Exhibition</h3><a href="http://rmc.library.cornell.edu/lincoln"><img style="padding-bottom: 5px;" src="/lincoln/exhibition/images/lincoln_ad_255.jpg" width="185" alt="The Lincoln Presidency" /></a><br/><a href="http://rmc.library.cornell.edu/programs/exhibitions/current_exhibitions.html">More Exhibitions</a></div>')
	}
	
	else{
	
	document.write('<div id="adinsert" style="width: 255px;"><h3 style="padding-top: 4px; margin-top: 0px;">Current Exhibition</h3>')
	document.write('<a href="http://rmc.library.cornell.edu/lincoln/"><img style="padding-bottom: 5px;" src="/lincoln/exhibition/images/lincoln_ad_255.jpg" width="255" height="388" alt="The Lincoln Presidency" /></a><br/><a href="http://rmc.library.cornell.edu/programs/exhibitions/current_exhibitions.html">More Exhibitions</a>')
	
	document.write('</div>')
	
	}
}




function showrelevantwebsites(){

// document.write('<div id="sidebarbottom"><h3>Related Cornell Websites</h3><ul><li><a href="http://catalog.library.cornell.edu/">Cornell Library Catalog</a></li><li><a href="http://www.library.cornell.edu/">Cornell Library Gateway</a></li><li><a href="http://www.cornell.edu/">Cornell University Home</a></li></ul></div>')

}




function showspecialnotice() {

//document.write('<h3>Notice:</h3>')

//document.write('<p><b>The Division will close at 3 p.m. on Friday, July 15.</b></p>')

}




function showfooter(){

document.write('&copy; 2009 <a href="/">Division of Rare &amp; Manuscript Collections</a>, 2B Carl A. Kroch Library, <a href="http://www.cornell.edu/">Cornell University</a>, Ithaca, NY 14853.<br/>')
document.write('Phone: (607) 255-3530. Fax: (607) 255-9524.')
document.write('<p>For reference questions, please complete our <a href="/services/reference.php">reference form</a>.')
document.write(' For questions or comments about this website, send E-mail to <a href="mailto:rmcweb@cornell.edu">rmcweb@cornell.edu</a>.</p>')

}



function refformvalidator(theForm){

	if (theForm.QuestionSubject.value == ""){
    alert("Please enter the subject of your question in the \"Subject of Your Question\" field.")
    theForm.QuestionSubject.focus()
    return (false)
  	}

	if (theForm.Question.value == ""){
    alert("Please enter your question in the \"Your Question\" field.")
    theForm.Question.focus()
    return (false)
  	}

	if (theForm.Name.value == ""){
	alert("Please enter your first AND last name in the \"Name\" field.")
	theForm.Name.focus()
	return (false)
	}
	
	space = new RegExp(" ")

	if (!space.test(theForm.Name.value)){
	alert("Please enter your first AND last name in the \"Name\" field.")
	theForm.Name.focus()
	return (false)
	}

	if (theForm.Name.value.length < 6){
	alert("please enter at least 6 characters in the \"name\" field.")
	theform.name.focus()
	return (false)
	}
	
	if (theform.email.value == ""){
    alert("Please enter your E-mail address (e.g., abc1@cornell.edu) in the \"E-mail\" field.");
    theForm.Email.focus()
    return (false)
  	}

	if(theForm.Email.value.indexOf("@") == "-1" || theForm.Email.value.indexOf(".") == "-1"){
    alert("Please enter your COMPLETE E-mail address (e.g., abc1@cornell.edu) in the \"E-mail\" field.");
    theForm.Email.focus()
    return (false)
  	}

	if(theForm.Address.value ==""){
    alert("Please enter your address in the \"Address\" field.");
    theForm.Address.focus()
    return (false)
  	}
	
var statuschecked = false

	for (i=0;i<6;i++) {
		if (theForm.Status[i].checked) statuschecked = true
	}
	
	if (!statuschecked){
    alert("Please select your status.")
    return (false)
  	}

theForm.subject.value = "RMC Reference Form: " +  theForm.QuestionSubject.value + ":"

return (true);

}





