// 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.isIE7x = (this.isIE && this.versionMajor == 7);
   this.isIE6down = (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.isIE6down){
		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","Overview, News & Events","/index.shtml")
topsections[2] = new sectionrecord("about","About RBMS","/about/index.shtml","yes")
topsections[3] = new sectionrecord("manual","Manual","/rbms_manual/index.shtml","yes")
topsections[4] = new sectionrecord("history","History","/history/index.shtml","yes")
topsections[5] = new sectionrecord("diversity","Diversity","/committees/diversity/index.shtml","yes")
topsections[6] = new sectionrecord("committees","Committees","/committees/index.shtml","yes")
topsections[7] = new sectionrecord("conferences","Conferences","/conferences/index.shtml","yes")
topsections[8] = new sectionrecord("workshops","Workshops","/workshops/index.shtml","yes")
topsections[9] = new sectionrecord("publications","Publications","/publications/index.shtml","yes")
topsections[10] = new sectionrecord("standards","Standards","/standards/index.shtml","yes")
topsections[11] = new sectionrecord("resources","Resources","/resources/index.shtml","yes")



	var aboutsections = new Array()

	aboutsections.longname = "About RBMS"
	aboutsections[1] = new sectionrecord("mission","Mission","/about/index.shtml#mission")
	aboutsections[2] = new sectionrecord("ethics","Code of Ethics","/about/index.shtml#ethics")
	aboutsections[3] = new sectionrecord("diversity","Commitment to Diversity","/about/index.shtml#diversity")
	aboutsections[4] = new sectionrecord("history","Historical Sketch","/about/index.shtml#history")
	aboutsections[5] = new sectionrecord("organization","Organization Structure (RBMS Manual)","/about/index.shtml#organization")
	aboutsections[6] = new sectionrecord("membership","Membership Information","/about/membership.shtml")
	aboutsections[7] = new sectionrecord("involved","Getting Involved","/about/index.shtml#involved")
	aboutsections[8] = new sectionrecord("contact","Contact Information","/about/index.shtml#contact")
	aboutsections[9] = new sectionrecord("archives","RBMS Archives","/about/index.shtml#archives")
	aboutsections[10] = new sectionrecord("manual","RBMS Manual","/rbms_manual/index.shtml")

	var publicationssections = new Array()

	publicationssections.longname = "Publications"
	publicationssections[1] = new sectionrecord("yob","Your Old Books","/yob.shtml")
	publicationssections[2] = new sectionrecord("vocab","Controlled Vocabularies","/committees/bibliographic_standards/controlled_vocabularies/hierarchical_list.htm")


	var committeessections = new Array()

	committeessections.longname = "Committees"
	committeessections[1] = new sectionrecord("bsc","Bibliographic Standards Committee","/committees/bibliographic_standards/index.shtml")
	committeessections[2] = new sectionrecord("budget","Budget and Development Committee","/committees/budget_and_development/index.shtml")
	committeessections[3] = new sectionrecord("conference","Conference Development Committee","/committees/conference_development/index.shtml")
	committeessections[4] = new sectionrecord("diversity","Diversity Committee","/committees/diversity/index.shtml")
	committeessections[5] = new sectionrecord("exec","Executive Committee","/committees/executive/index.shtml")
	committeessections[6] = new sectionrecord("eac","Exhibition Awards Committee","/committees/exhibition_awards/index.shtml")
	committeessections[7] = new sectionrecord("membership","Membership and Professional Development","/committees/membership_and_professional/index.shtml")
	committeessections[8] = new sectionrecord("newsletter","Newsletter","/committees/newsletter/index.shtml")
	committeessections[9] = new sectionrecord("publications","Publications Committee","/committees/publications/index.shtml")
	committeessections[10] = new sectionrecord("security","Security Committee","/committees/security/index.shtml")
	committeessections[11] = new sectionrecord("seminars","Seminars Committee","/committees/seminars/index.shtml")
	committeessections[12] = new sectionrecord("program","Conference Program Planning Committee","/committees/conference_development/index.shtml")

	committeessections[13] = new sectionrecord("nominating","Nominating Committee","/committees/nominating/index.shtml")
	committeessections[14] = new sectionrecord("precon","Preconference Program Planning","/committees/preconf_program_planning/index.shtml")
	committeessections[15] = new sectionrecord("precon-local","Preconference Local Arrangements","/committees/preconf_local_arrangements/index.shtml")
	committeessections[16] = new sectionrecord("core","Core Competencies Task Force","/committees/task_force/core_competencies/index.shtml")
	committeessections[17] = new sectionrecord("disc-coll","Collection Development Discussion Group","/discussion_groups/collection_development/index.shtml")
	committeessections[18] = new sectionrecord("disc-cura","Curators and Conservators Discussion Group","/discussion_groups/curators_and_conservators/index.shtml")
	committeessections[19] = new sectionrecord("disc-manu","Manuscripts and Other Formats Discussion Group","/discussion_groups/manuscripts_and_other_formats/index.shtml")
	committeessections[20] = new sectionrecord("disc-marc","MARC for Special Collections Discussion Group","/discussion_groups/marc_for_special_collections/index.shtml")
	committeessections[21] = new sectionrecord("disc-publ","Public Services Discussion Group","/discussion_groups/public_services/index.shtml")
	committeessections[22] = new sectionrecord("disc","Discussion Groups","/discussion_groups/index.shtml")

	committeessections[23] = new sectionrecord("digitization","Digitization of Special Collections Task Force","/committees/task_force/digitization/index.shtml")
	committeessections[24] = new sectionrecord("access","ALA/SAA Joint Statement on Access Review Task Force","/committees/task_force/alasaa_joint_access/index.shtml")
	committeessections[25] = new sectionrecord("interlibrary_loan", "Guidelines for Interlibrary Loan and Borrowing and Lending Special Collections Material for Exhibition Task Force", "/committees/task_force/interlibrary_loan")
	

	
function fixchars(name){

name = name.replace(/&/g,"&")
name = name.replace(/’/g,"\u0027")
name = name.replace(/“/g,"\u0022")
name = name.replace(/”/g,"\u0022")

return name

}



function showheader(currenttopsection){

document.write('<a href="/index.shtml"><img style="margin-bottom:-3px;" width="275" height="125" alt="Rare Books and Manuscript Section" src="/images/rbms_header_l_nt.gif" /></a>')

}


function showtree(topsection, sublevel1, sublevel2, sublevel3){

document.write('<div style="float: right; padding: 6px 0px 6px 5px; border-left-style:solid; border-width: medium;"><!-- AddThis Button BEGIN --><a class="addthis_button" href="http://addthis.com/bookmark.php?v=250&amp;username=rbmseditor"><img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="80" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=rbmseditor" />')
document.write('</script><!-- AddThis Button END --></div><form style="float: right; padding-right: 5px; padding-top: 5px;" method=GET action="http://www.google.com/search">')
document.write('Search the RBMS website: ')
document.write('<input type=hidden name=ie value=UTF-8>')
document.write('<input type=hidden name=oe value=UTF-8>')
document.write('<input type=hidden name=domains value="http://rbms.info">')
document.write('<input type=hidden name=sitesearch value="http://rbms.info">')
document.write('<input type=text name=q style="font-size: 10px;" size=15 maxlength=255 value="">')
document.write(' <input style="font-size: 10px;" type="submit" border="0" value="GO" name="GO">')
document.write('</form>')


document.write('<div id="navtree"><a href="/index.shtml">Home</a>  >>  ')

	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>')
		
		}
		else{
		
			if (i == showtree.arguments.length-1){
		
			//document.write(' &nbsp;>>&nbsp; ' + findsectionproperty(showtree.arguments[i-1], "longname", showtree.arguments[i]))
			//}
			//else{
	
			document.write('  &nbsp;>>&nbsp;  <a href="' + findsectionproperty(showtree.arguments[i-1], "url", showtree.arguments[i]) + '">' + findsectionproperty(showtree.arguments[i-1], "longname", showtree.arguments[i]) + '</a>')	
		
			}
		
		}
		
	}
	
document.write('</div>')

}



function showsidebarmenu(section, currentsublevel1, currentsublevel2, currentsublevel3){

eval('var sectionlist = ' + section + 'sections')

document.write('<h3>Contents</h3>')

document.write('<ul>')

showsidebarsections(section, currentsublevel1, currentsublevel2, currentsublevel3)
	
document.write('</ul>')

}



function showsidebarsections(section, currentsublevel1, currentsublevel2, currentsublevel3){

eval('var sectionlist = ' + section + 'sections')

	for (var i = 1; i < sectionlist.length; i++){
	
		if (sectionlist[i].shortname == currentsublevel1){
		document.write('<li id="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 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>')

}




function showfooter(){

document.write('<div style="float:right; text-align: right;"><a href="http://www.ala.org/copyright.html">Copyright © 2010, American Library Association</a><br />Site maintained by <a href="/about/questions.shtml">Jason Kovari</a>, RBMS Web Editor</div>')
document.write('<a href="/index.shtml">Rare Books and Manuscripts Section</a><br/><a href="http://acrl.org/">Association of College & Research Libraries</a><br/>A Division of the <a href="http://ala.org/">American Library Association</a>')





}






