

// 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="http://rmc.library.cornell.edu/collector/css/size800.css" />')
	}
	
	if (browser.isMac){
	document.write('<link rel="stylesheet" type="text/css" href="http://rmc.library.cornell.edu/collector/css/mac.css" />')
	}
	
	if (!(browser.isGecko || browser.isIE5up || browser.isSafari)){
	
	document.write('<link rel="stylesheet" type="text/css" href="http://rmc.library.cornell.edu/collector/css/unsupported.css" />')
	
	document.write('<p><b>Attention:</b> This website does not support your current web browser, so it may not function and/or display as intented.<br/> Please consider using the latest version of <a href="http://mozilla.org/products/firefox/" target="_new">Firefox</a>, <a href="http://mozilla.org/products/mozilla1.x/" target="_new">Mozilla</a>, <a href="http://channels.netscape.com/ns/browsers/default.jsp" target="_new">Netscape</a>, <a href="http://www.microsoft.com/windows/ie/default.mspx" target="_new">Internet Explorer</a>, or <a href="http://www.apple.com/safari/" target="_new">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/collector/index.html")
topsections[2] = new sectionrecord("exhibition","Exhibition","http://rmc.library.cornell.edu/collector/introduction/index.html","yes")
topsections[3] = new sectionrecord("links","Links","http://rmc.library.cornell.edu/collector/links.html")
topsections[4] = new sectionrecord("credits","Credits","http://rmc.library.cornell.edu/collector/credits.html")
topsections[5] = new sectionrecord("colophon","Colophon","http://rmc.library.cornell.edu/collector/colophon.html")
topsections[6] = new sectionrecord("events","Events","http://rmc.library.cornell.edu/collector/events.html")



	var exhibitionsections = new Array()
	
	exhibitionsections.longname = "Exhibition"

	exhibitionsections[1] = new sectionrecord("introduction","Introduction","http://rmc.library.cornell.edu/collector/introduction/index.html","yes")
	exhibitionsections[2] = new sectionrecord("earlyyears","Early Years","http://rmc.library.cornell.edu/collector/earlyyears/index.html","yes")
	exhibitionsections[3] = new sectionrecord("firstlibrarian","Cornell&#8217;s First University Librarian","http://rmc.library.cornell.edu/collector/firstlibrarian/index.html","yes")
	exhibitionsections[4] = new sectionrecord("jenniemcgraw","Jennie McGraw","http://rmc.library.cornell.edu/collector/jenniemcgraw/index.html","yes")
	exhibitionsections[5] = new sectionrecord("voyagesnorth","Voyages North","http://rmc.library.cornell.edu/collector/voyagesnorth/index.html","yes")
	exhibitionsections[6] = new sectionrecord("fiskeiceland","Fiske and Iceland","http://rmc.library.cornell.edu/collector/fiskeiceland/index.html","yes")
	exhibitionsections[7] = new sectionrecord("icelandlegacy","Icelandic Legacy","http://rmc.library.cornell.edu/collector/icelandlegacy/index.html","yes")
	exhibitionsections[8] = new sectionrecord("dante","Dante Alighieri","http://rmc.library.cornell.edu/collector/dante/index.html","yes")
	exhibitionsections[9] = new sectionrecord("villalandor","The Villa Landor","http://rmc.library.cornell.edu/collector/villalandor/index.html","yes")
	exhibitionsections[10] = new sectionrecord("rhaetoromance","Rhaeto-Romance","http://rmc.library.cornell.edu/collector/rhaetoromance/index.html","yes")
	exhibitionsections[11] = new sectionrecord("petrarch","Francesco Petrarca","http://rmc.library.cornell.edu/collector/petrarch/index.html","yes")
	exhibitionsections[12] = new sectionrecord("egypt","Egypt","http://rmc.library.cornell.edu/collector/egypt/index.html","yes")
	exhibitionsections[13] = new sectionrecord("willcase","The Will Case","http://rmc.library.cornell.edu/collector/willcase/index.html","yes")
	exhibitionsections[14] = new sectionrecord("chess","Chess","http://rmc.library.cornell.edu/collector/chess/index.html","yes")
	
	
	
		var introductionsections = new Array()
	
		introductionsections.longname = "Introduction"

		introductionsections[1] = new sectionrecord("1","The Collector","http://rmc.library.cornell.edu/collector/introduction/introduction_1.html")
		introductionsections[2] = new sectionrecord("2","The Collections","http://rmc.library.cornell.edu/collector/introduction/introduction_2.html")
		introductionsections[3] = new sectionrecord("3","Olaus Magnus","http://rmc.library.cornell.edu/collector/introduction/introduction_3.html")
		
		
		
		var earlyyearssections = new Array()
	
		earlyyearssections.longname = "Early Years"

		earlyyearssections[1] = new sectionrecord("1","Parents","http://rmc.library.cornell.edu/collector/earlyyears/earlyyears_1.html")
		earlyyearssections[2] = new sectionrecord("2","Hamilton College","http://rmc.library.cornell.edu/collector/earlyyears/earlyyears_2.html")
		earlyyearssections[3] = new sectionrecord("3","Travels","http://rmc.library.cornell.edu/collector/earlyyears/earlyyears_3.html")
		earlyyearssections[4] = new sectionrecord("4","Selling Books","http://rmc.library.cornell.edu/collector/earlyyears/earlyyears_4.html")
		earlyyearssections[5] = new sectionrecord("5","Cornell Professor","http://rmc.library.cornell.edu/collector/earlyyears/earlyyears_5.html")
		earlyyearssections[6] = new sectionrecord("6","Cornell Press","http://rmc.library.cornell.edu/collector/earlyyears/earlyyears_6.html")
		earlyyearssections[7] = new sectionrecord("7","Ithaca","http://rmc.library.cornell.edu/collector/earlyyears/earlyyears_7.html")
		
		
		var firstlibrariansections = new Array()
	
		firstlibrariansections.longname = "Cornell&#8217;s First University Librarian"

		firstlibrariansections[1] = new sectionrecord("1","Cornell&#8217;s First Library","http://rmc.library.cornell.edu/collector/firstlibrarian/firstlibrarian_1.html")
		firstlibrariansections[2] = new sectionrecord("2","Library Bulletin","http://rmc.library.cornell.edu/collector/firstlibrarian/firstlibrarian_2.html")
		firstlibrariansections[3] = new sectionrecord("3","Samuel May Collection","http://rmc.library.cornell.edu/collector/firstlibrarian/firstlibrarian_3.html")
		firstlibrariansections[4] = new sectionrecord("4","Jared Sparks Collection","http://rmc.library.cornell.edu/collector/firstlibrarian/firstlibrarian_4.html")
		firstlibrariansections[5] = new sectionrecord("5","Goldwin Smith Collection","http://rmc.library.cornell.edu/collector/firstlibrarian/firstlibrarian_5.html")



		var jenniemcgrawsections = new Array()

		jenniemcgrawsections.longname = "Jennie McGraw"

		jenniemcgrawsections[1] = new sectionrecord("1","Travel Scrapbook","http://rmc.library.cornell.edu/collector/jenniemcgraw/jenniemcgraw_1.html")
		jenniemcgrawsections[2] = new sectionrecord("2","Tennyson Letter","http://rmc.library.cornell.edu/collector/jenniemcgraw/jenniemcgraw_2.html")
		jenniemcgrawsections[3] = new sectionrecord("3","Jennie McGraw","http://rmc.library.cornell.edu/collector/jenniemcgraw/jenniemcgraw_3.html")
		jenniemcgrawsections[4] = new sectionrecord("4","Judge Boardman","http://rmc.library.cornell.edu/collector/jenniemcgraw/jenniemcgraw_4.html")
		jenniemcgrawsections[5] = new sectionrecord("5","Fiske-McGraw Mansion","http://rmc.library.cornell.edu/collector/jenniemcgraw/jenniemcgraw_5.html")



		var voyagesnorthsections = new Array()

		voyagesnorthsections.longname = "Voyages North"

		voyagesnorthsections[1] = new sectionrecord("1","Saga Steads","http://rmc.library.cornell.edu/collector/voyagesnorth/voyagesnorth_1.html")
		voyagesnorthsections[2] = new sectionrecord("2","Eggert &Oacute;lafsson","http://rmc.library.cornell.edu/collector/voyagesnorth/voyagesnorth_2.html")
		voyagesnorthsections[3] = new sectionrecord("3","Olaus in Dutch (1652)","http://rmc.library.cornell.edu/collector/voyagesnorth/voyagesnorth_3.html")
		voyagesnorthsections[4] = new sectionrecord("4","Pays Septentrionaux","http://rmc.library.cornell.edu/collector/voyagesnorth/voyagesnorth_4.html")
		voyagesnorthsections[5] = new sectionrecord("5","Relation de L'Islande","http://rmc.library.cornell.edu/collector/voyagesnorth/voyagesnorth_5.html")
		voyagesnorthsections[6] = new sectionrecord("6","Norse America","http://rmc.library.cornell.edu/collector/voyagesnorth/voyagesnorth_6.html")
		
		
		
		var fiskeicelandsections = new Array()

		fiskeicelandsections.longname = "Fiske and Iceland"

		fiskeicelandsections[1] = new sectionrecord("1","Cumbrae Passage","http://rmc.library.cornell.edu/collector/fiskeiceland/fiskeiceland_1.html")
		fiskeicelandsections[2] = new sectionrecord("2","J&oacute;n Sigur&eth;sson to Rafn","http://rmc.library.cornell.edu/collector/fiskeiceland/fiskeiceland_2.html")
		fiskeicelandsections[3] = new sectionrecord("3","Fiske to Rafn","http://rmc.library.cornell.edu/collector/fiskeiceland/fiskeiceland_3.html")
		fiskeicelandsections[4] = new sectionrecord("4","Egypt and Iceland","http://rmc.library.cornell.edu/collector/fiskeiceland/fiskeiceland_4.html")
		fiskeicelandsections[5] = new sectionrecord("5","Gr&iacute;mseyjar l&yacute;sing","http://rmc.library.cornell.edu/collector/fiskeiceland/fiskeiceland_5.html")
		fiskeicelandsections[6] = new sectionrecord("6","Grímsey: b&oacute;kin","http://rmc.library.cornell.edu/collector/fiskeiceland/fiskeiceland_6.html")
		fiskeicelandsections[7] = new sectionrecord("7","Iceland Diary","http://rmc.library.cornell.edu/collector/fiskeiceland/fiskeiceland_7.html")
		fiskeicelandsections[8] = new sectionrecord("8","Americans in Iceland","http://rmc.library.cornell.edu/collector/fiskeiceland/fiskeiceland_8.html")
		fiskeicelandsections[9] = new sectionrecord("9","Fiske to George Harris","http://rmc.library.cornell.edu/collector/fiskeiceland/fiskeiceland_9.html")
		fiskeicelandsections[10] = new sectionrecord("10","Matth&iacute;as to Fiske","http://rmc.library.cornell.edu/collector/fiskeiceland/fiskeiceland_10.html")
		


		var icelandlegacysections = new Array()

		icelandlegacysections.longname = "Icelandic Legacy"

		icelandlegacysections[1] = new sectionrecord("1","J&oacute;nsb&oacute;k (ca. 1550)","http://rmc.library.cornell.edu/collector/icelandlegacy/icelandlegacy_1.html")
		icelandlegacysections[2] = new sectionrecord("2","Grallari (1607)","http://rmc.library.cornell.edu/collector/icelandlegacy/icelandlegacy_2.html")
		icelandlegacysections[3] = new sectionrecord("3","Dav&iacute;&eth;sps&aacute;lmar (17th c.)","http://rmc.library.cornell.edu/collector/icelandlegacy/icelandlegacy_3.html")
		icelandlegacysections[4] = new sectionrecord("4","&Oacute;lafs saga (1689)","http://rmc.library.cornell.edu/collector/icelandlegacy/icelandlegacy_4.html")
		icelandlegacysections[5] = new sectionrecord("5","Gisli the Outlaw (1866)","http://rmc.library.cornell.edu/collector/icelandlegacy/icelandlegacy_5.html")
		
		
		var dantesections = new Array()

		dantesections.longname = "Dante Alighieri"

		dantesections[1] = new sectionrecord("1","Commedia (1472)","http://rmc.library.cornell.edu/collector/dante/dante_1.html")
		dantesections[2] = new sectionrecord("2","Purgatorio leaf","http://rmc.library.cornell.edu/collector/dante/dante_2.html")
		dantesections[3] = new sectionrecord("3","Commedia (1506)","http://rmc.library.cornell.edu/collector/dante/dante_3.html")
		dantesections[4] = new sectionrecord("4","Commedia (1515)","http://rmc.library.cornell.edu/collector/dante/dante_4.html")
		dantesections[5] = new sectionrecord("5","Amoroso convivio","http://rmc.library.cornell.edu/collector/dante/dante_5.html")
		dantesections[6] = new sectionrecord("6","Vita nuova (1513)","http://rmc.library.cornell.edu/collector/dante/dante_6.html")
		dantesections[7] = new sectionrecord("7","Vita di Dante (1576)","http://rmc.library.cornell.edu/collector/dante/dante_7.html")
		
		
		
		var villalandorsections = new Array()

		villalandorsections.longname = "The Villa Landor"

		villalandorsections[1] = new sectionrecord("1","Villa Gherardesca","http://rmc.library.cornell.edu/collector/villalandor/villalandor_1.html")
		villalandorsections[2] = new sectionrecord("2","Walter Savage Landor","http://rmc.library.cornell.edu/collector/villalandor/villalandor_2.html")
		villalandorsections[3] = new sectionrecord("3","Furnishings","http://rmc.library.cornell.edu/collector/villalandor/villalandor_3.html")
		villalandorsections[4] = new sectionrecord("4","Restorations","http://rmc.library.cornell.edu/collector/villalandor/villalandor_4.html")
		villalandorsections[5] = new sectionrecord("5","Villa &amp; Gardens","http://rmc.library.cornell.edu/collector/villalandor/villalandor_5.html")
		villalandorsections[6] = new sectionrecord("6","Inside the Villa","http://rmc.library.cornell.edu/collector/villalandor/villalandor_6.html")
		villalandorsections[7] = new sectionrecord("7","Library","http://rmc.library.cornell.edu/collector/villalandor/villalandor_7.html")
		villalandorsections[8] = new sectionrecord("8","Clemens Family","http://rmc.library.cornell.edu/collector/villalandor/villalandor_8.html")
		
		
		var rhaetoromancesections = new Array()

		rhaetoromancesections.longname = "Rhaeto-Romance"

		rhaetoromancesections[1] = new sectionrecord("1","Sacra Bibla (1679)","http://rmc.library.cornell.edu/collector/rhaetoromance/rhaetoromance_1.html")
		rhaetoromancesections[2] = new sectionrecord("2","Martyrologium (1718)","http://rmc.library.cornell.edu/collector/rhaetoromance/rhaetoromance_2.html")
		rhaetoromancesections[3] = new sectionrecord("3","Leges Criminallas (1760) ","http://rmc.library.cornell.edu/collector/rhaetoromance/rhaetoromance_3.html")
		rhaetoromancesections[4] = new sectionrecord("4","Arithmetica (1766-1767)","http://rmc.library.cornell.edu/collector/rhaetoromance/rhaetoromance_4.html")
		rhaetoromancesections[5] = new sectionrecord("5","Chanzuns (19th cent.)","http://rmc.library.cornell.edu/collector/rhaetoromance/rhaetoromance_5.html")
		rhaetoromancesections[6] = new sectionrecord("6","Proverbi Friulani","http://rmc.library.cornell.edu/collector/rhaetoromance/rhaetoromance_6.html")
		
		
		var petrarchsections = new Array()

		petrarchsections.longname = "Francesco Petrarca"

		petrarchsections[1] = new sectionrecord("1","Trionfi, sonnetti (1450)","http://rmc.library.cornell.edu/collector/petrarch/petrarch_1.html")
		petrarchsections[2] = new sectionrecord("2","Trionfi (ca. early 16th c.)","http://rmc.library.cornell.edu/collector/petrarch/petrarch_2.html")
		petrarchsections[3] = new sectionrecord("3","Volgari opere (1525)","http://rmc.library.cornell.edu/collector/petrarch/petrarch_3.html")
		petrarchsections[4] = new sectionrecord("4","Il Petrarca (1546)","http://rmc.library.cornell.edu/collector/petrarch/petrarch_4.html")
		petrarchsections[5] = new sectionrecord("5","Il Petrarca (1547)","http://rmc.library.cornell.edu/collector/petrarch/petrarch_5.html")
		petrarchsections[6] = new sectionrecord("6","De Remediis (1490)","http://rmc.library.cornell.edu/collector/petrarch/petrarch_6.html")
		
		
		
		var egyptsections = new Array()

		egyptsections.longname = "Egypt"

		egyptsections[1] = new sectionrecord("1","Honeymoon on the Nile","http://rmc.library.cornell.edu/collector/egypt/egypt_1.html")
		egyptsections[2] = new sectionrecord("2","1889 Voyage","http://rmc.library.cornell.edu/collector/egypt/egypt_2.html")
		egyptsections[3] = new sectionrecord("3","Kilmat Araby","http://rmc.library.cornell.edu/collector/egypt/egypt_3.html")
		egyptsections[4] = new sectionrecord("4","Postal Matters in Egypt","http://rmc.library.cornell.edu/collector/egypt/egypt_4.html")
		

		
		var willcasesections = new Array()

		willcasesections.longname = "The Will Case"

		willcasesections[1] = new sectionrecord("1","Wedding","http://rmc.library.cornell.edu/collector/willcase/willcase_1.html")
		willcasesections[2] = new sectionrecord("2","Fiske to his Mother","http://rmc.library.cornell.edu/collector/willcase/willcase_2.html")
		willcasesections[3] = new sectionrecord("3","Fiske to Boardman","http://rmc.library.cornell.edu/collector/willcase/willcase_3.html")
		willcasesections[4] = new sectionrecord("4","Boardman to Fiske","http://rmc.library.cornell.edu/collector/willcase/willcase_4.html")
		willcasesections[5] = new sectionrecord("5","The Mansion is Sold","http://rmc.library.cornell.edu/collector/willcase/willcase_5.html")
		willcasesections[6] = new sectionrecord("6","Supreme Court Judgment","http://rmc.library.cornell.edu/collector/willcase/willcase_6.html")
		
		
		
		var chesssections = new Array()

		chesssections.longname = "Chess"

		chesssections[1] = new sectionrecord("1","Fiske Playing Chess","http://rmc.library.cornell.edu/collector/chess/chess_1.html")
		chesssections[2] = new sectionrecord("2","1857 Chess Congress","http://rmc.library.cornell.edu/collector/chess/chess_2.html")
		chesssections[3] = new sectionrecord("3","Chess in Iceland","http://rmc.library.cornell.edu/collector/chess/chess_3.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")
name = name.replace(/&eth;/g,"\u00F0")
name = name.replace(/&aacute;/g,"\u00E1")
name = name.replace(/&Aacute;/g,"\u00C1")
name = name.replace(/&iacute;/g,"\u00ED")
name = name.replace(/&oacute;/g,"\u00F3")
name = name.replace(/&Oacute;/g,"\u00D3")
name = name.replace(/&yacute;/g,"\u00FD")
name = name.replace(/&Yacute;/g,"\u00DD")

return name

}



function showexhibitionheader(currenttopsection){

document.write('<p id="exhibitionnavbar">')

	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>')
		document.title = "The Passionate Collector: Willard Fiske and his Libraries - " + fixchars(topsections[i].longname)
		}
		else{
		document.write('<span class="unselectednavtab"><a href="' + topsections[i].url + '">' + topsections[i].longname + '</a></span>')
		}
	
	}

document.write('</p>')

}




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" /><ul>')
		}
		
		else{
	
			if (sectionlist[i].shortname == currentsublevel1){
			document.write('<li class="selectedtocitem"><img src="../images/bullet_selected.gif" align="middle" width="25" height="18" hspace="0" vspace="0" /> <a href="' + sectionlist[i].url + '">' + sectionlist[i].longname + '</a></li>')
			document.title = document.title + " > " + fixchars(sectionlist[i].longname)
			
				if (sectionlist[i].subsectionexists){
				
				document.write('<ul class="sidebartocsublist">')
				
				showsidebarsections(sectionlist[i].shortname, currentsublevel2, currentsublevel3)
				
				document.write('</ul>')
				}
				
			}
			else{
			document.write('<li id="unselectedtocitem"><img src="../images/bullet_unselected.gif" align="middle" width="25" height="18" hspace="0" vspace="2" /> <a href="' + sectionlist[i].url + '">' + sectionlist[i].longname + '</a></li>')
			}
			
		}
	
	}

}




function showsidebarmenu(section, currentsublevel1, currentsublevel2, currentsublevel3){


eval('var sectionlist = ' + section + 'sections')

document.write('<img src="../images/toc_title.gif" width="200" height="70" vspace="5" />')



document.write('<ul style="margin-top: 5px;">')

showsidebarsections(section, currentsublevel1, currentsublevel2, currentsublevel3)
	
document.write('</ul>')


}




function showsplashtoc(state){



eval('var sectionlist = exhibitionsections')

//document.write('<h1>The Exhibition</h1>')


document.write('<ul>')


	for (var i = 1; i < sectionlist.length; i++){
	document.write('<li><a href="' + sectionlist[i].url + '">' + sectionlist[i].longname + '</a></li>')		
	}
	
document.write('</ul>')



}





function showfooter(){

document.write('<a href="http://campusgw.library.cornell.edu/"><img class="imageinsertleft" src="http://rmc.library.cornell.edu/collector/images/CUL_small_right_red.gif" width="115" height="79" alt="Cornell University Library Gateway" /></a>')
document.write('&copy; 2005 <a href="http://rmc.library.cornell.edu/">Division of Rare &amp; Manuscript Collections</a>.</p>')
document.write('<p>For reference questions, please complete our <a href="http://rmc.library.cornell.edu/services/reference.html">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>')

}




var newWindow


function makeViewerWindow(imagename) {
	if (!newWindow || newWindow.closed) {
		
		newWindow = window.open("","Viewer","status,height=700,width=600,top=0,left=0,scrollbars=yes,resizable=yes")
	}
	
	if (!newWindow.opener) {
		newWindow.opener = window
	}
	
	// assemble content for new window
	var newContent = "<html><head><title>Image Viewer</title><link href='../css/viewer.css' rel='stylesheet' type='text/css'></head>"
	newContent += "<body><table border='0' cellspacing='0' cellpadding='0' width='100%' height='100%'>"
	// parent.document.title.substring(parent.document.title.lastIndexOf(">") + 2,parent.document.title.length)
	newContent += "<tr><td class='viewertop' align='center' valign='center'>Exhibition Item</td></tr>"
	newContent += "<tr><td class='viewer' align='center' valign='center'><img src='../images/570pxw/" + imagename + "' vspace='10'></td></tr>"
	newContent += "<tr><td class='viewerbottom' align='center' valign='center'><a href='javascript:window.close()'>Close this window</a></td></tr></table></body></html>"
	
	// write HTML to new window document
	newWindow.document.write(newContent)
	newWindow.document.close() // close layout stream
	
	newWindow.focus()
	
}

