

// 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://nac.library.cornell.edu/exhibition/css/size800.css" />')
	}
	
	
	if (!(browser.isGecko || browser.isIE5up || browser.isSafari)){
	
	document.write('<link rel="stylesheet" type="text/css" href="http://nac.library.cornell.edu/exhibition/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>')
	
	}
	
	
	if (browser.isIE5up){
	
	document.write('<link rel="stylesheet" type="text/css" href="http://nac.library.cornell.edu/exhibition/css/ie.css" />')
	
	}

}




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://nac.library.cornell.edu/index.html")
topsections[2] = new sectionrecord("exhibition","Exhibition","http://nac.library.cornell.edu/exhibition/introduction/index.html","yes")
topsections[3] = new sectionrecord("events","Events","http://nac.library.cornell.edu/exhibition/events.html")
topsections[4] = new sectionrecord("news","News","http://nac.library.cornell.edu/exhibition/news.html")
topsections[5] = new sectionrecord("credits","Credits","http://nac.library.cornell.edu/exhibition/credits.html")
topsections[6] = new sectionrecord("colophon","Colophon","http://nac.library.cornell.edu/exhibition/colophon.html")




	var exhibitionsections = new Array()
	
	exhibitionsections.longname = "Exhibition"

	exhibitionsections[1] = new sectionrecord("introduction","Introduction","http://nac.library.cornell.edu/exhibition/introduction/index.html")
	exhibitionsections[2] = new sectionrecord("mayaruins","Maya Ruins","http://nac.library.cornell.edu/exhibition/mayaruins/index.html")
	exhibitionsections[3] = new sectionrecord("illustratedworks","Illustrated Works","http://nac.library.cornell.edu/exhibition/illustratedworks/index.html","yes")
	exhibitionsections[4] = new sectionrecord("transatlanticworld","A Transatlantic World","http://nac.library.cornell.edu/exhibition/transatlanticworld/index.html","yes")
	exhibitionsections[5] = new sectionrecord("continuingencounters","Continuing Encounters","http://nac.library.cornell.edu/exhibition/continuingencounters/index.html","yes")
	exhibitionsections[6] = new sectionrecord("encroachment","European Encroachment, Native Resistance","http://nac.library.cornell.edu/exhibition/encroachment/index.html","yes")
	exhibitionsections[7] = new sectionrecord("language","Language and Education","http://nac.library.cornell.edu/exhibition/language/index.html","yes")
	exhibitionsections[8] = new sectionrecord("writtenword","The Written Word","http://nac.library.cornell.edu/exhibition/writtenword/index.html","yes")
	exhibitionsections[9] = new sectionrecord("anthropologists","Anthropologists &amp; Native Americans","http://nac.library.cornell.edu/exhibition/anthropologists/index.html","yes")
	exhibitionsections[10] = new sectionrecord("northeast","Northeast","http://nac.library.cornell.edu/exhibition/northeast/index.html","yes")
	exhibitionsections[11] = new sectionrecord("slideshow","Sideshow to Powwow","http://nac.library.cornell.edu/exhibition/slideshow/index.html","yes")
	


		var illustratedworkssections = new Array()
	
		illustratedworkssections.longname = "Illustrated Works"

		illustratedworkssections[1] = new sectionrecord("catlin","George Catlin&#8217;s <i>Album unique</i>","http://nac.library.cornell.edu/exhibition/illustratedworks/index.html")
		illustratedworkssections[2] = new sectionrecord("bodmer","Prince Maximilian &amp; Karl Bodmer","http://nac.library.cornell.edu/exhibition/illustratedworks/illustratedworks_2.html")
		illustratedworkssections[3] = new sectionrecord("mckenney","Thomas McKenney","http://nac.library.cornell.edu/exhibition/illustratedworks/illustratedworks_3.html")
		illustratedworkssections[4] = new sectionrecord("curtis","Edward S. Curtis","http://nac.library.cornell.edu/exhibition/illustratedworks/illustratedworks_4.html")
		
		
		var transatlanticworldsections = new Array()
	
		transatlanticworldsections.longname = "A Transatlantic World"

		transatlanticworldsections[1] = new sectionrecord("2","de Bry. <I>America</I>, 1591","http://nac.library.cornell.edu/exhibition/transatlanticworld/transatlanticworld_2.html")
		transatlanticworldsections[2] = new sectionrecord("3","de las Casas, 1621","http://nac.library.cornell.edu/exhibition/transatlanticworld/transatlanticworld_3.html")
		transatlanticworldsections[3] = new sectionrecord("4","Cort&eacute;s, 1524","http://nac.library.cornell.edu/exhibition/transatlanticworld/transatlanticworld_4.html")
		transatlanticworldsections[4] = new sectionrecord("5","de G&oacute;mara, 1554","http://nac.library.cornell.edu/exhibition/transatlanticworld/transatlanticworld_5.html")
		transatlanticworldsections[5] = new sectionrecord("6","O&ntilde;ate in New Mexico, 1610","http://nac.library.cornell.edu/exhibition/transatlanticworld/transatlanticworld_6.html")
		transatlanticworldsections[6] = new sectionrecord("7","Wafer &amp; the Cuna, 1699","http://nac.library.cornell.edu/exhibition/transatlanticworld/transatlanticworld_7.html")
		
		
		var continuingencounterssections = new Array()
	
		continuingencounterssections.longname = "Continuing Encounters"

		continuingencounterssections[1] = new sectionrecord("2","Beverley. <I>History of Virginia</I>","http://nac.library.cornell.edu/exhibition/continuingencounters/continuingencounters_2.html")
		continuingencounterssections[2] = new sectionrecord("3","Fr&eacute;zier. <I>Voyage</I>, 1712-14","http://nac.library.cornell.edu/exhibition/continuingencounters/continuingencounters_3.html")
		continuingencounterssections[3] = new sectionrecord("4","Hennepin. <I>Discovery</I>, 1698","http://nac.library.cornell.edu/exhibition/continuingencounters/continuingencounters_4.html")
		continuingencounterssections[4] = new sectionrecord("5","Jewitt. <I>Narrative</I>, 1815","http://nac.library.cornell.edu/exhibition/continuingencounters/continuingencounters_5.html")
		continuingencounterssections[5] = new sectionrecord("6","de Lahontan. <I>Voyages</I>, 1703","http://nac.library.cornell.edu/exhibition/continuingencounters/continuingencounters_6.html")
		continuingencounterssections[6] = new sectionrecord("7","Allan. <I>Letter to Maine Indians</I>, 1780 ","http://nac.library.cornell.edu/exhibition/continuingencounters/continuingencounters_7.html")
		continuingencounterssections[7] = new sectionrecord("8","Venegas. <I>California</I>, 1767","http://nac.library.cornell.edu/exhibition/continuingencounters/continuingencounters_8.html")
		
		
		var encroachmentsections = new Array()
	
		encroachmentsections.longname = "European Encroachment, Native Resistance"

		encroachmentsections[1] = new sectionrecord("2","Geronimo, 1896","http://nac.library.cornell.edu/exhibition/encroachment/encroachment_2.html")
		encroachmentsections[2] = new sectionrecord("3","Delaware Peace Treaty, 1765","http://nac.library.cornell.edu/exhibition/encroachment/encroachment_3.html")
		encroachmentsections[3] = new sectionrecord("4","Bullhead's Primer, 1890","http://nac.library.cornell.edu/exhibition/encroachment/encroachment_4.html")
		encroachmentsections[4] = new sectionrecord("5","Supreme Court v. Georgia, 1832","http://nac.library.cornell.edu/exhibition/encroachment/encroachment_5.html")
		encroachmentsections[5] = new sectionrecord("6","Gardner &amp; Red Cloud, 1872","http://nac.library.cornell.edu/exhibition/encroachment/encroachment_6.html")
				
		
		var languagesections = new Array()
	
		languagesections.longname = "Language and Education"

		languagesections[1] = new sectionrecord("2","<I>Primer for Mohawk Children</I>, 1781 ","http://nac.library.cornell.edu/exhibition/language/language_2.html")
		languagesections[2] = new sectionrecord("3","de Molina. <I>Vocabulary</I>, 1555 ","http://nac.library.cornell.edu/exhibition/language/language_3.html")
		languagesections[3] = new sectionrecord("4","<I>Dakota Word Book</I>","http://nac.library.cornell.edu/exhibition/language/language_4.html")
		
		
		var writtenwordsections = new Array()
	
		writtenwordsections.longname = "The Written Word"

		writtenwordsections[1] = new sectionrecord("2","Eliot Bible, 1685","http://nac.library.cornell.edu/exhibition/writtenword/writtenword_2.html")
		writtenwordsections[2] = new sectionrecord("3","Quauhquechola Book of Marriages","http://nac.library.cornell.edu/exhibition/writtenword/writtenword_3.html")
		writtenwordsections[3] = new sectionrecord("4","Cherokee Song Book, 1846","http://nac.library.cornell.edu/exhibition/writtenword/writtenword_4.html")
		writtenwordsections[4] = new sectionrecord("5","Fidelia Fielding Diaries, 1902-04","http://nac.library.cornell.edu/exhibition/writtenword/writtenword_5.html")
		writtenwordsections[5] = new sectionrecord("6","<I>Kamloops Wawa</I> ","http://nac.library.cornell.edu/exhibition/writtenword/writtenword_6.html")
		writtenwordsections[6] = new sectionrecord("7","Dakota hymnal, 1885","http://nac.library.cornell.edu/exhibition/writtenword/writtenword_7.html")
		writtenwordsections[7] = new sectionrecord("8","Quechua Catechism","http://nac.library.cornell.edu/exhibition/writtenword/writtenword_8.html")
		writtenwordsections[8] = new sectionrecord("9","Cherokee <I>Beetle Bailey </I>","http://nac.library.cornell.edu/exhibition/writtenword/writtenword_9.html")
		writtenwordsections[9] = new sectionrecord("10","de la Brosse. <I>Prayer Book</I>, 1767","http://nac.library.cornell.edu/exhibition/writtenword/writtenword_10.html")

		
		
		var anthropologistssections = new Array()
		
		anthropologistssections.longname = "Anthropologists &amp; Native Americans"

		anthropologistssections[1] = new sectionrecord("2","Davis Field Notes &amp; Sketchbooks","http://nac.library.cornell.edu/exhibition/anthropologists/anthropologists_2.html")
		anthropologistssections[2] = new sectionrecord("3","Cushing &amp; the Zuni ","http://nac.library.cornell.edu/exhibition/anthropologists/anthropologists_3.html")
		anthropologistssections[3] = new sectionrecord("4","Lothrop. Chile notes, 1929","http://nac.library.cornell.edu/exhibition/anthropologists/anthropologists_4.html")
		anthropologistssections[4] = new sectionrecord("5","Moore Notebooks (Florida), 1893","http://nac.library.cornell.edu/exhibition/anthropologists/anthropologists_5.html")
		
		
		var northeastsections = new Array()
		
		northeastsections.longname = "Northeast"

		northeastsections[1] = new sectionrecord("2","Apess autobiography, 1831","http://nac.library.cornell.edu/exhibition/northeast/northeast_2.html")
		northeastsections[2] = new sectionrecord("3","1796 Missionary Report ","http://nac.library.cornell.edu/exhibition/northeast/northeast_3.html")
		northeastsections[3] = new sectionrecord("4","Joseph Brant Letter, 1799","http://nac.library.cornell.edu/exhibition/northeast/northeast_4.html")
		northeastsections[4] = new sectionrecord("5","Colden. <I>History of the 5 Nations</I>, 1747","http://nac.library.cornell.edu/exhibition/northeast/northeast_5.html")
		northeastsections[5] = new sectionrecord("6","Jesse Cornplanter","http://nac.library.cornell.edu/exhibition/northeast/northeast_6.html")
		northeastsections[6] = new sectionrecord("7","1907 Pauline Johnson Tour","http://nac.library.cornell.edu/exhibition/northeast/northeast_7.html")
		northeastsections[7] = new sectionrecord("8","Pontiac","http://nac.library.cornell.edu/exhibition/northeast/northeast_8.html")
		northeastsections[8] = new sectionrecord("9","Pendleton Blanket","http://nac.library.cornell.edu/exhibition/northeast/northeast_9.html")
		
		
		var slideshowsections = new Array()
		
		slideshowsections.longname = "Sideshow to Powwow"

		slideshowsections[1] = new sectionrecord("2","Buffalo Bill ","http://nac.library.cornell.edu/exhibition/slideshow/slideshow_2.html")
		slideshowsections[2] = new sectionrecord("3","Sitting Bull","http://nac.library.cornell.edu/exhibition/slideshow/slideshow_3.html")
		slideshowsections[3] = new sectionrecord("4","Cheyenne Frontier Show","http://nac.library.cornell.edu/exhibition/slideshow/slideshow_4.html")
		slideshowsections[4] = new sectionrecord("5","Catlin's Indian Gallery","http://nac.library.cornell.edu/exhibition/slideshow/slideshow_5.html")
		slideshowsections[5] = new sectionrecord("6","Gallup Inter-tribal Ceremonial","http://nac.library.cornell.edu/exhibition/slideshow/slideshow_6.html")
		slideshowsections[6] = new sectionrecord("7","2005 Cornell Powwow &amp; Smokedance","http://nac.library.cornell.edu/exhibition/slideshow/slideshow_7.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(/&eacute;/g,"\u00E9")
name = name.replace(/&Eacute;/g,"\u00C9")
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")
name = name.replace(/&ntilde;/g,"\u00F1")
name = name.replace(/&Ntilde;/g,"\u00D1")
name = name.replace(/<i>/g,"")
name = name.replace(/<\/i>/g,"")
name = name.replace(/<I>/g,"")
name = name.replace(/<\/I>/g,"")

return name

}


	

function showexhibitionheader(currenttopsection, prelaunch){





document.write('<div id="cu-identity">')
document.write('<div id="cu-logo">')
document.write('<a href="http://www.cornell.edu/"><img src="images/cu_logo_unstyled.gif" alt="Cornell University" width="180" height="45" border="0" /></a>')
document.write('</div>')
document.write('<div id="cu-search">')
document.write('<a href="http://www.cornell.edu/search/">Search Cornell</a>')
document.write('</div>')
document.write('</div>')




document.write('<p id="exhibitionnavbar">')


if(prelaunch){

document.write('<span class="selectednavtab">&nbsp;<span>')

}

else{

	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 = "Vanished Worlds, Enduring People - " + 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"><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"><a href="' + sectionlist[i].url + '">' + sectionlist[i].longname + '</a></li>')
			}
			
		}
	
	}

}




function showsidebarmenu(section, currentsublevel1, currentsublevel2, currentsublevel3){


eval('var sectionlist = ' + section + 'sections')

document.write('<h1>Exhibition Contents</h1>')



document.write('<ul style="margin-top: 5px;">')

showsidebarsections(section, currentsublevel1, currentsublevel2, currentsublevel3)
	
document.write('</ul>')


}







function showfooter(){

document.write('<a href="http://campusgw.library.cornell.edu/"><img class="imageinsertleft" src="http://rmc.library.cornell.edu/lolita/images/library_black_65.gif" width="233" height="65" 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('This exhibition is presented with support from Evalyn Milman &#146;60 and Stephen Milman &#146;58.')
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 feedback about this website, contact <a href="mailto:rmcweb@cornell.edu">rmcweb@cornell.edu</a>.</p>')
document.write('<p>Hirshland Exhibition Gallery, Level 2B, Kroch Library. Gallery Hours: Mon-Fri 9am-5pm, and on most <a href="http://rmc.library.cornell.edu">Saturdays</a> 1pm-5pm.')

}







var newWindow


function makeViewerWindow(imagename, wintitle) {
	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='http://nac.library.cornell.edu/exhibition/css/viewer.css' rel='stylesheet' type='text/css'></head>"
	newContent += "<body><table border='0' cellspacing='0' cellpadding='0' width='100%' height='100%'>"
	
		if (!wintitle){
		newContent += "<tr><td class='viewertop' align='center' valign='center'>Exhibition Item</td></tr>"
		
		}
		else{
		newContent += "<tr><td class='viewertop' align='center' valign='center'>" + wintitle + "</td></tr>"
		}
	
	newContent += "<tr><td class='viewer' align='center' valign='center'><img src='http://nac.library.cornell.edu/exhibition/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()
	
}

