<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE document SYSTEM "http://commons.omniupdate.com/dtd/standard.dtd"> 
<!-- 
AZ Index Page									
-->
<xsl:stylesheet version="3.0" 
				xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
				xmlns:xs="http://www.w3.org/2001/XMLSchema" 
				xmlns:ou="http://omniupdate.com/XSL/Variables"
				xmlns:fn="http://omniupdate.com/XSL/Functions" 
				xmlns:ouc="http://omniupdate.com/XSL/Variables"
				exclude-result-prefixes="ou xsl xs fn ouc">
	
<xsl:import href="common.xsl"/>

	
	<xsl:template name="page-content">
		<xsl:comment> main </xsl:comment>
		<div id="main">

			<xsl:comment> container</xsl:comment>		
			<div class="container">
			
				<xsl:comment> breadcrumbs </xsl:comment>			
				<xsl:call-template name="breadcrumb">
					<xsl:with-param name="path" select="$ou:dirname"/>								
				</xsl:call-template>
				
					<!-- BEGIN LEFT COLUMN -->			
					<xsl:comment> two-columns </xsl:comment>								
					<div id="two-columns" class="g3">									

						<xsl:comment> sidebar </xsl:comment>			
						<aside id="sidebar">																						
								<xsl:comment> accordion-holder </xsl:comment>
								<nav class="accordion-holder">
									<h1><xsl:value-of select="$navigationTitle"/></h1>
									<xsl:comment> left navigation </xsl:comment>
									<xsl:call-template name="nav-builder">
										<xsl:with-param name="top-level" select="substring($navigationStart,1,string-length($navigationStart)-1)"/>
										<xsl:with-param name="path" select="$ou:dirname" />
										<xsl:with-param name="last_crumb" select="$ou:dirname" />
				             		</xsl:call-template>
								</nav>								
						</aside>
	
					<!-- END LEFT COLUMN -->
										
					<!-- MIDDLE CONTENT -->
					<xsl:comment> content </xsl:comment>
					<section id="content">				
						<div class="content-holder">	
						
						<xsl:variable name="archiveOptions" select="string-join(ou:pcfparam('archiveOptions'))"/>
						
						<h1><xsl:value-of select="if(contains($archiveOptions,'titlePrefix') and doc-available($props-path)) then(concat(ou:propsparam('sectionTitle',$props-path),': ')) else('')"/><xsl:value-of select="$pageTitle"/></h1>						
																	
							<xsl:choose>
								<xsl:when test="$ou:action != 'pub'">
								<xsl:variable name="include-path" select="concat($ou:httproot,$dirname,'archive.inc')"/>
								<xsl:variable name="include-path2" select="concat($ou:httproot,$dirname,'archivedisclaimer.inc')"/>	
									<xsl:if test="contains($archiveOptions,'disclaimer')">
										<xsl:value-of disable-output-escaping="yes" select="if(unparsed-text-available($include-path2)) then(unparsed-text($include-path2)) else('&lt;p class=&quot;omniupdate message error &quot;&gt;System Message: The archive disclaimer could not be displayed. Please check that &quot;archive.pcf&quot; is published.  &lt;/p&gt;')"/>
									</xsl:if>
									<xsl:value-of disable-output-escaping="yes" select="if(unparsed-text-available($include-path)) then(unparsed-text($include-path)) else('&lt;p class=&quot;omniupdate message error &quot;&gt;System Message: The archive links (gray bar) could not be displayed. Please check that &quot;archive.pcf&quot; is published.  &lt;/p&gt;')"/>	
								</xsl:when>
								<xsl:otherwise>	 	  	  	  
									<xsl:if test="contains($archiveOptions,'disclaimer')">
										<xsl:copy-of select="ou:virtInc(concat($dirname,'archivedisclaimer.inc'))"/>		
									</xsl:if>	
									<xsl:copy-of select="ou:virtInc(concat($dirname,'archive.inc'))"/>																									
								</xsl:otherwise>
							</xsl:choose>
	
						
						<xsl:apply-templates select="content/middle/maincontent/node()" mode="copy"/>
							
				
							
						</div>
					</section>	
					<!-- END MIDDLE CONTENT -->
					</div>
				
					<div class="cf"><!--clearfix--></div>
				
				
			</div><!-- end container -->
		</div><!-- end main -->

	</xsl:template>


</xsl:stylesheet>
