<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" xmlns:HTML="http://www.w3.org/Profiles/XHTML-transitional">

<!-- File last modified: 22 Nov 1999, dwr -->

	<xsl:template><xsl:value-of/></xsl:template>
	
	<xsl:template match="/">
		<HTML>
			<HEAD>
				<TITLE>
					<xsl:value-of select="ead/frontmatter/titlepage/titleproper"/>
				</TITLE>
		<STYLE>
			 BODY			{ margin:1em; background-color: #ffffeb; width: 30em; 
								font-family: Arial, Helvetica, sans-serif; 
								font-size: small; }
			 H1				{ color: #888833; text-align: center }
			 H2				{ color: #888833; text-align: center }
			 H4				{ color: #888833; text-align: center }
			.H4				{ color: #7700AA; font-weight: bold; font-size: medium; }
			 HR				{ color: #888833; }
			.para			{ padding-bottom: 12; }
			.heading		{ color: #888833; }
			.item			{ margin-left:1em; text-align: left; vertical-align: top; }
			.serieslabel	{ color: #7700AA; font-size: medium; padding-top: 10; }
			.smalllabel		{ color: #888833; font-size: x-small; }
			.smalltitle		{ color: #888833; font-size: x-small; text-align: center; }
			.smallitem		{ margin-left:1em; text-align: left; vertical-align: top; 
								font-size: xx-small; }
			.note			{ font-style: italic; text-align: right; }
		</STYLE>
			</HEAD>
			<BODY>
				<xsl:apply-templates select="ead"/>
			</BODY>
		</HTML>
	</xsl:template>


<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<!-- EAD -->
	<xsl:template match="ead">
		<xsl:apply-templates/>
	</xsl:template>

<!-- EADHEADER -->
	<xsl:template match="eadheader"/>

<!-- FRONTMATTER -->
	<xsl:template match="frontmatter">
		<xsl:apply-templates/>
		<HR/>
	</xsl:template>

<!-- TITLEPAGE -->
	<xsl:template match="titlepage">
		<xsl:apply-templates/>
	</xsl:template>
	<xsl:template match="titleproper">
		<H1>
			<xsl:apply-templates/>
		</H1>
	</xsl:template>
	
<!-- NUM -->
	<xsl:template match="num">
		<H2>
			<xsl:apply-templates/>
		</H2>
	</xsl:template>

<!-- PUBLISHER -->
	<xsl:template match="publisher">
		<H4>
			<xsl:apply-templates/>
		</H4>
	</xsl:template>

<!-- TITLEPAGE/DATE -->
	<xsl:template match="titlepage/date">
		<DIV class="smalltitle">
			<P><xsl:apply-templates/></P>
		</DIV>
	</xsl:template>
	
<!-- TITLEPAGE/LISTS -->
	<xsl:template match="titlepage/list">
	<CENTER><TABLE CELLPADDING="10">
		<TR VALIGN="top">
			<xsl:apply-templates/>
		</TR></TABLE></CENTER>
	</xsl:template>
	
<!-- DEFITEM LIST (AUTHOR INFO/RESPOSITORY ADDRESS)-->
	<xsl:template match="titlepage/list/defitem">
		<TD>
			<xsl:apply-templates/>
		</TD>
	</xsl:template>
	<xsl:template match="titlepage/list/defitem/label">
		<DIV class="smalllabel">
			<xsl:apply-templates/>
		</DIV>
	</xsl:template>
	<xsl:template match="titlepage/list/defitem/item">
		<DIV class="smallitem">
			<xsl:apply-templates/>
		</DIV>
	</xsl:template>
	
<!-- DIV/PREFACE -->
	<xsl:template match="div">
		<A NAME="aa1">
			<xsl:apply-templates/>
		</A>
	</xsl:template>
	
	
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<!-- ARCHDESC -->
	<xsl:template match="archdesc">
		<xsl:apply-templates/>
	</xsl:template>


<!-- HEAD -->
	<xsl:template match="head">
		<DIV class="H4">
			<xsl:apply-templates/>
		</DIV>
		<P></P>
	</xsl:template>


<!-- LABEL -->
	<xsl:template match="@label">
		<DIV class="heading">
			<xsl:apply-templates/>
		</DIV>
	</xsl:template>


<!-- HIGH-LEVEL DID/DESCRIPTIVE SUMMARY -->
	<xsl:template match="archdesc/did">
		<A NAME="a1">
			<xsl:apply-templates/>
		</A>
		<P></P>
		<HR/>
	</xsl:template>
	
	<xsl:template match="archdesc/did/physdesc | archdesc/did/unittitle | archdesc/did/unitid | repository | archdesc/did/abstract | origination">
		<xsl:apply-templates select="@label"/>
		<DIV class="item">
			<xsl:apply-templates/>
		</DIV>
	</xsl:template>
	
	<xsl:template match="unittitle/unitdate | origination/persname">
		<xsl:apply-templates/>
	</xsl:template>


<!-- BIOGHIST/BIOGRAPHICAL NOTE -->
	<xsl:template match="bioghist">
		<A NAME="a2">
			<xsl:apply-templates/>
		</A>
		<HR/>
	</xsl:template>

	<xsl:template match="bioghist/chronlist">
		<P></P>
		<TABLE CELLSPACING="5">
			<xsl:apply-templates/>
		</TABLE>
	</xsl:template>
	
	<xsl:template match="chronitem">
		<TR>
			<P>
				<TD NOWRAP="1" VALIGN="TOP">
					<xsl:apply-templates select="date"/>
				</TD>
				<TD>
					<xsl:choose>
						<xsl:when test="eventgrp">
							<xsl:apply-templates select="eventgrp/event"/>
						</xsl:when>
						<xsl:otherwise>					
							<xsl:apply-templates select="event"/>
						</xsl:otherwise>
					</xsl:choose>
				</TD>
			</P>
		</TR>
	</xsl:template>
	
	<xsl:template match="chronitem/date">
		<xsl:apply-templates/>
	</xsl:template>
	
	<xsl:template match="eventgrp/event">
		<DIV><xsl:attribute name = "STYLE">
			padding-bottom: 5;
		</xsl:attribute>
			<xsl:apply-templates/><BR/>
		</DIV>
	</xsl:template>
	
	<xsl:template match="chronitem/event">
		<xsl:apply-templates/>
	</xsl:template>


<!-- SCOPECONTENT/COLLECTION DESCRIPTION -->
	<xsl:template match="scopecontent">
		<A NAME="a3">
			<xsl:apply-templates/>
		</A>
		<HR/>
		
		
<!-- CUSTODHIST, ACQIINFO / HISTORY OF OWNERSHIP, PROVENANCE  (appear after SCOPECONTENT) -->		
		<xsl:choose>
			<xsl:when test="//custodhist">
				<A NAME="a4"><DIV class="H4">
					<xsl:value-of select="//custodhist/head"/>
				</DIV></A>
				<P></P>
					<xsl:apply-templates select="//custodhist/p"/>							
				<HR/>
			</xsl:when>
		</xsl:choose>
		<xsl:choose>
			<xsl:when test="//acqinfo">
				<A NAME="a5"><DIV class="H4">
					<xsl:value-of select="//acqinfo/head"/>
				</DIV></A>
				<P></P>
					<xsl:apply-templates select="//acqinfo/p"/>
				<HR/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>


<!-- CONTROLACCESS/SUBJECTS -->
	<xsl:template match="controlaccess">
		<A NAME="a6">
			<xsl:apply-templates/>
		</A>
	<HR/>
	</xsl:template>
	
	<xsl:template match="controlaccess/controlaccess">
		<xsl:apply-templates/>
	</xsl:template>
	
	<xsl:template match="controlaccess/controlaccess">
		<DIV class="heading">
			<xsl:value-of select="head"/>
		</DIV>
			<xsl:apply-templates select="subject | persname | corpname | geogname | genreform | occupation"/>
		<P></P>
	</xsl:template>

	<xsl:template match="subject | controlaccess/persname | corpname | geogname | genreform | occupation">
		<DIV class="item">
			<xsl:value-of/>
		</DIV>
	</xsl:template>


<!-- ADMININFO/INFORMATION FOR USERS -->
	<xsl:template match="admininfo">
	<xsl:choose>
		<xsl:when test="accessrestrict | userestrict | altformavail | prefercite">
			<A NAME="a7">
				<xsl:apply-templates/>
			</A>
			<HR/>
		</xsl:when>
	</xsl:choose>
	</xsl:template>

	<xsl:template match="admininfo/custodhist | admininfo/acqinfo"/>

	<xsl:template match="admininfo/accessrestrict | admininfo/userestrict | admininfo/altformavail | admininfo/prefercite">
		<DIV class="heading">
			<xsl:value-of select="head"/>
		</DIV>
		<DIV class="item">
			<xsl:apply-templates select="p"/>
		</DIV>

	</xsl:template>


<!-- RELATED MATERIAL -->
	<xsl:template match="add[@type='relatedmaterial']">
		<xsl:apply-templates/>
	</xsl:template>
	
	<xsl:template match="add/relatedmaterial">
		<A NAME="a8">
			<xsl:apply-templates/>
		</A>
		<HR/>
	</xsl:template>


<!-- COLLECTION ARRANGEMENT -->
	<xsl:template match="arrangement">
		<A NAME="a9">
			<xsl:apply-templates/>
		</A>
		<HR/>
	</xsl:template>
	
	
<!-- ORGANIZATION/SERIES LIST -->
	<xsl:template match="organization">
		<A NAME="a10">
			<TABLE CELLSPACING="0" WIDTH="95%">
				<xsl:apply-templates/>
			</TABLE>
		</A>
		<P></P>
		<HR/>
	</xsl:template>
	
	<xsl:template match="organization/list | organization/list/defitem/item | defitem/item/list | item/list/defitem/item | list/item/list">
		<xsl:apply-templates/>
	</xsl:template>
	
	<xsl:template match="organization/list/defitem">
		<xsl:choose>
			<xsl:when test="item/list/defitem">
				<TR><TD VALIGN="top">
					<xsl:apply-templates select="label"/>
				</TD></TR>	
				<TR><TD>
					<xsl:apply-templates select="item"/>
				</TD></TR>
			</xsl:when>
			<xsl:otherwise>	
				<TR><TD VALIGN="top">
					<xsl:apply-templates select="label"/>
				</TD>
				<TD ALIGN="RIGHT">
					<xsl:apply-templates select="item"/>
				</TD></TR>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	
	<xsl:template match="defitem/item/list/defitem">
		<xsl:choose>
			<xsl:when test="item/list/defitem">
				<TR><TD><DIV><xsl:attribute name = "STYLE">
						margin-left: <xsl:eval>Section(this);</xsl:eval>em;
					</xsl:attribute>
					<xsl:apply-templates select="label"/>
				</DIV></TD></TR>	
				<TR><TD>
					<xsl:apply-templates select="item"/>
				</TD></TR>
			</xsl:when>
			<xsl:when test="item/list/item">
					<xsl:apply-templates />
			</xsl:when>
			<xsl:otherwise>	
				<TR><TD><DIV class="hlabel"><xsl:attribute name = "STYLE">
						margin-left: <xsl:eval>Section(this);</xsl:eval>em;
						</xsl:attribute>
						<xsl:apply-templates select="label"/></DIV></TD>
				<TD NOWRAP="1" ALIGN="RIGHT"><xsl:apply-templates select="item"/></TD></TR>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	
	<xsl:template match="item/list/item ">
		<TR><TD><DIV><xsl:attribute name = "STYLE">
				margin-left: <xsl:eval>Section(this);</xsl:eval>em;
			</xsl:attribute>
				<xsl:apply-templates />
		</DIV></TD></TR>
	</xsl:template>
	
	<xsl:template match="item/list/defitem ">
		<TR><TD><DIV class="hlabel"><xsl:attribute name = "STYLE">
				margin-left: <xsl:eval>Section(this);</xsl:eval>em;
			</xsl:attribute>
				<xsl:apply-templates select="label"/></DIV></TD>
		<TD NOWRAP="1" ALIGN="RIGHT"><xsl:apply-templates select="item"/></TD></TR>
	</xsl:template>


<!-- DSC/CONTAINER LIST -->
	<xsl:template match="dsc">
		<A NAME="a11">
			<xsl:apply-templates select="head"/>
		</A>
		<xsl:choose>
			<xsl:when test="//did/unitdate">
				<TABLE CELLSPACING="0">
					<TR>
						<TD NOWRAP="1" ALIGN="left">
							<DIV class="heading">Date</DIV>
						</TD>
						<TD>
							<DIV class="heading">Description</DIV>
						</TD>
						<TD NOWRAP="1" ALIGN="left">
							<DIV class="heading">Box</DIV>
						</TD>
						<TD NOWRAP="1" ALIGN="center">
							<DIV class="heading">Folder<br/>or<br/>Item No.</DIV>
						</TD>
					</TR>
					<xsl:apply-templates select="c01"/>
				</TABLE>
			</xsl:when>
			<xsl:otherwise>
				<TABLE CELLSPACING="0">
					<TR>
						<TD>
							<DIV class="heading">Description</DIV>
						</TD>
						<TD NOWRAP="1" ALIGN="center">
							<DIV class="heading">Box<br/>or<br/>Drawer</DIV>
						</TD>
						<TD NOWRAP="1" ALIGN="center">
							<DIV class="heading">Folder<br/>or<br/>Item No.</DIV>
						</TD>
					</TR>
					<xsl:apply-templates select="c01"/>
				</TABLE>
			</xsl:otherwise>
		</xsl:choose>
		<HR/>
	</xsl:template>
	
	<xsl:template match="c01|c02|c03|c04|c05|c06">
		<xsl:apply-templates/>
	</xsl:template>
	
	<xsl:template match="c01/did|c02/did|c03/did|c04/did|c05/did|c06/did">
	<xsl:choose>
		<TR>
			<xsl:when test="..[@level $eq$ 'series']">
				<xsl:if test="//did/unitdate">
					<TD><xsl:value-of select="unitdate"/></TD>
				</xsl:if>
				<TD>
					<DIV class="serieslabel">
						<xsl:attribute name = "STYLE">
							margin-left: <xsl:eval>formatOneTag(this)-1</xsl:eval>em;
						</xsl:attribute>
						<xsl:choose>
							<xsl:when test="unittitle[@id]">
								<a>
									<xsl:attribute name="name">#<xsl:value-of select="unittitle/@id"/></xsl:attribute><xsl:value-of select="unittitle"/>
								</a>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="unittitle"/>
							</xsl:otherwise>
						</xsl:choose>
					</DIV>
				</TD>
				<TD NOWRAP="1" ALIGN="CENTER" VALIGN="center">
					<xsl:apply-templates select="container[@type='box']"/>
				</TD>
				<TD NOWRAP="1" ALIGN="CENTER" VALIGN="center">
					<xsl:apply-templates select="container[@type='folder']"/>
					<xsl:apply-templates select="unitid"/>
				</TD>
					<xsl:apply-templates select="abstract"/>	 
			</xsl:when>
			
			<xsl:when test="..[@level $eq$ 'subseries']">
				<xsl:if test="//did/unitdate">
					<TD><xsl:value-of select="unitdate"/></TD>
				</xsl:if>
				<TD>
					<DIV class="heading">
						<xsl:attribute name = "STYLE">
							margin-left: <xsl:eval>formatOneTag(this)-1</xsl:eval>em;
						</xsl:attribute>
						<xsl:choose>
							<xsl:when test="unittitle[@id]">
								<a>
									<xsl:attribute name="name">#<xsl:value-of select="unittitle/@id"/></xsl:attribute><xsl:value-of select="unittitle"/>
								</a>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="unittitle"/>
							</xsl:otherwise>
						</xsl:choose>
					</DIV>
				</TD>
				<TD NOWRAP="1" ALIGN="CENTER" VALIGN="TOP">
					<xsl:apply-templates select="container[@type='box']"/>
				</TD>
				<TD NOWRAP="1" ALIGN="CENTER" VALIGN="TOP">
					<xsl:apply-templates select="container[@type='folder']"/>
					<xsl:apply-templates select="unitid"/>
				</TD>
					<xsl:apply-templates select="abstract"/>	 
			</xsl:when>
			
			<xsl:otherwise>	
				<xsl:if test="//did/unitdate">
					<TD NOWRAP="1" ALIGN="LEFT" VALIGN="TOP">
						<xsl:apply-templates select="unitdate"/>
					</TD>
				</xsl:if>
				<TD>
					<xsl:apply-templates select="unittitle"/>
				</TD>
				<TD NOWRAP="1" ALIGN="CENTER" VALIGN="TOP">
					<xsl:apply-templates select="container[@type='box']"/>
					<xsl:apply-templates select="container[@type='map-case']"/>
				</TD>
				<TD NOWRAP="1" ALIGN="CENTER" VALIGN="TOP">
					<xsl:apply-templates select="container[@type='folder']"/>
					<xsl:apply-templates select="unitid"/>
				</TD>
				<xsl:apply-templates select="abstract"/>
				<xsl:apply-templates select="physdesc"/>
			</xsl:otherwise>
		</TR>
	</xsl:choose>
	</xsl:template>
	
	<xsl:template match="container[@type='box'] | container[@type='map-case'] | container[@type='folder']">
		<xsl:apply-templates/>
	</xsl:template>
	
	<xsl:template match="c01/did/unitid | c02/did/unitid | c03/did/unitid | c04/did/unitid | c05/did/unitid | c06/did/unitid">
			<xsl:apply-templates/>
	</xsl:template>
	
	<xsl:template match="did/unitdate">
		<xsl:apply-templates/>
	</xsl:template>
	
	<xsl:template match="c01/did/unittitle | c02/did/unittitle | c03/did/unittitle | c04/did/unittitle | c05/did/unittitle | c06/did/unittitle">
		<DIV>
		<xsl:attribute name = "STYLE">
		margin-left: <xsl:eval>formatTwoTag(this)</xsl:eval>em;
		text-indent: -1em;
		</xsl:attribute>
			<xsl:choose>
				<xsl:when test="@id">
					<a>
						<xsl:attribute name="name">#<xsl:value-of select="@id"/></xsl:attribute><xsl:apply-templates/>
					</a>
				</xsl:when>
				<xsl:otherwise>
					<xsl:apply-templates/>	
				</xsl:otherwise>
			</xsl:choose>
		</DIV>
	</xsl:template>
	
	
	<xsl:template match="c01/did/abstract | c02/did/abstract | c03/did/abstract | c04/did/abstract | c05/did/abstract | c06/did/abstract">
		<TR>
		<xsl:choose>
			<xsl:when test="//did/unitdate">
				<TD/>
			</xsl:when>
		</xsl:choose>
		<TD><DIV>
		<xsl:attribute name = "STYLE">
			margin-left: <xsl:eval>formatTwoTag(this)</xsl:eval>em;
		</xsl:attribute>
			<xsl:value-of select="@label"/> <xsl:apply-templates/>
		</DIV></TD></TR>
	</xsl:template>

	<xsl:template match="c01/did/physdesc | c02/did/physdesc | c03/did/physdesc | c04/did/physdesc | c05/did/physdesc | c06/did/physdesc">
		<TR>
		<xsl:choose>
			<xsl:when test="//did/unitdate">
				<TD/>
			</xsl:when>
		</xsl:choose>
		<TD><DIV>
		<xsl:attribute name = "STYLE">
			margin-left: <xsl:eval>formatTwoTag(this)</xsl:eval>em;
		</xsl:attribute>
			<xsl:value-of select="@label"/> <xsl:apply-templates/>
		</DIV></TD></TR>
	</xsl:template>
	
	<xsl:template match="c02/odd">
		<TR>
		<xsl:choose>
			<xsl:when test="//did/unitdate">
				<TD/>
			</xsl:when>
		</xsl:choose>
		<TD>
			<BLOCKQUOTE>
				<xsl:apply-templates select="list"/>
			</BLOCKQUOTE>
		</TD></TR>
	</xsl:template>
	
	<xsl:template match="odd/list">
		<xsl:choose>
			<xsl:when test=".[@type $eq$ 'deflist']">
				<TABLE>
					<xsl:apply-templates select="defitem"/>
				</TABLE>
			</xsl:when>
		</xsl:choose>
	</xsl:template>

	<xsl:template match="odd/list/defitem">
		<TR><TD>
			<xsl:apply-templates select="label"/>:
		</TD>
		<TD>
			<xsl:apply-templates select="item"/>
		</TD></TR>
	</xsl:template>


<!-- ADDITIONAL INFORMATION -->
<!-- (beware of conflicts with add type="relatedmaterial" above) -->

	<xsl:template match="add[@type='addinfo']">
		<A NAME="a12">
			<xsl:apply-templates select="head"/>
		</A>
			<xsl:apply-templates select="add"/>
		<HR/>
	</xsl:template>
	
	<xsl:template match="add/add">
		<DIV class="heading">
			<xsl:value-of select="head" />
		</DIV>
		<DIV class="item">
			<xsl:apply-templates select="list | p" />
		</DIV>
	</xsl:template>
	
	<xsl:template match="add/list">
		<xsl:apply-templates select="head" />
		<xsl:choose>
			<xsl:when test=".[@type $eq$ 'simple']">
				<UL>
					<xsl:apply-templates select="item"/>
				</UL>
			</xsl:when>
			<xsl:when test=".[@type $eq$ 'ordered']">
				<OL>
					<xsl:apply-templates select="item"/>
				</OL>
			</xsl:when>
			<xsl:when test=".[@type $eq$ 'deflist']">
				<P></P>
				<TABLE>
					<xsl:apply-templates select="defitem"/>
				</TABLE>
				<P></P>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	
	<xsl:template match="list/head">
		<U>
			<xsl:apply-templates/>
		</U>
	</xsl:template>
		
	<xsl:template match="add/list/item">
		<LI>
			<xsl:apply-templates/>
		</LI>
	</xsl:template>

	<xsl:template match="add/list/defitem">
		<TR><TD>
			<xsl:apply-templates select="label"/>
		</TD>
		<TD>
			<xsl:apply-templates select="item"/>
		</TD></TR>
	</xsl:template>
	
	
	
 <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
 
 <!-- LOW LEVEL ELEMENTS -->
	<xsl:template match="lb">
		<xsl:apply-templates/>
		<BR/>
	</xsl:template>
	
	<xsl:template match="p">
		<DIV class="para"><xsl:apply-templates/></DIV></xsl:template>
		
	<xsl:template match="note">
			<DIV class="note"><xsl:value-of/></DIV>
	</xsl:template>
	
	<xsl:template match="title">
		<I><xsl:apply-templates/></I></xsl:template>

	<xsl:template match="extref">
		<xsl:choose>
			<xsl:when test=".[@show $eq$ 'new']">
<a target="_blank"><xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute><xsl:apply-templates/></a></xsl:when>
			<xsl:otherwise>
<a target="_top"><xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute><xsl:apply-templates/></a></xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	
	<xsl:template match="ref">
		<a>
			<xsl:attribute name="href">#<xsl:value-of select="@target"/></xsl:attribute><xsl:apply-templates/>
		</a>
	</xsl:template>
	
	<xsl:template match="emph[@render='bold']">
		<B><xsl:apply-templates/></B></xsl:template>
	<xsl:template match="emph[@render='italic']">
		<I><xsl:apply-templates/></I></xsl:template>
	<xsl:template match="emph[@render='underline']">
		<U><xsl:apply-templates/></U></xsl:template>
	<xsl:template match="emph[@render='super']">
		<SUP><xsl:apply-templates/></SUP></xsl:template>


<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<!-- SCRIPTS -->
	<xsl:script><![CDATA[
	    function formatTwoTag(e) {
	        var str = e.parentNode.parentNode.nodeName;
			var ostr = str.substring(1, str.length);
			return ostr;
	    }
		
		function formatOneTag(e) {
			var str = e.parentNode.nodeName;
			var ostr = str.substring(1, str.length);
			return ostr;
	    }
		
		function Section(e) {
			var i = 0
			test = e
			while (test.parentNode != null)
			{
				i = i + 1;
				test = test.parentNode
			}
			i = Math.ceil((i - 7)/2);
			
			return i;
		}
  ]]></xsl:script>
  
</xsl:stylesheet>
