<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet SYSTEM "http://commons.omniupdate.com/dtd/standard.dtd">
<xsl:stylesheet version="2.0" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:ou="http://omniupdate.com/XSL/Variables"
	exclude-result-prefixes="ou">
	

<xsl:import href="home.xsl" />
<xsl:import href="interior.xsl" />
<xsl:import href="breadcrumb.xsl" />
<xsl:import href="left-nav.xsl" />

<xsl:output 
	method="html"
	indent="yes" 
	encoding="UTF-8" 
	omit-xml-declaration="yes"  />

<!-- Initialize OU Variables -->
<xsl:param name="ou:action" />
<xsl:param name="ou:dirname" />
<xsl:param name="ou:filename" />
<xsl:param name="ou:httproot" />
<xsl:param name="ou:path" />
<xsl:param name="ou:title" />
<xsl:param name="ou:root" />
<xsl:param name="ou:site" />
<xsl:param name="ou:dirVar" />

<xsl:param name="domain">web3.sxu.edu</xsl:param>
<xsl:variable name="pagetype" select="document/config/parameter[@name='pagetype']"/>
<xsl:variable name="rightnav" select="document/config/parameter[@name='rightnav']"/>
<xsl:param name="uses-code-behind" select="document/config/parameter[@name='uses-code-behind']"/>
<xsl:param name="codebehind-type" select="document/config/parameter[@name='codebehind-type']"/>
<!-- Parameters used by imported stylesheets -->
<xsl:param name="dirname">
	<xsl:choose>
		<xsl:when test="string-length($ou:dirname) = 1">
			<xsl:value-of select="$ou:dirname" />
		</xsl:when>
		<xsl:otherwise>
			<xsl:value-of select="concat($ou:dirname,'/')" />
		</xsl:otherwise>
	</xsl:choose>
</xsl:param>


<xsl:template match="/">
<xsl:if test="$ou:action='pub'">
<!--<xsl:if test="$codebehind-type='asp'">-->
<xsl:text disable-output-escaping="yes">&lt;%@</xsl:text>LANGUAGE="VBSCRIPT" CODEPAGE="65001"<xsl:text disable-output-escaping="yes">%&gt;</xsl:text>
<!--</xsl:if>-->
</xsl:if>
<xsl:text disable-output-escaping="yes">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;</xsl:text>

<xsl:text disable-output-escaping="yes">&lt;</xsl:text>html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"<xsl:text disable-output-escaping="yes">&gt;</xsl:text>

<head runat="server">

<xsl:if test="$pagetype ='home'">
<xsl:if test="$ou:action='pub'">
<xsl:comment>#include virtual="<xsl:value-of select="document/config/parameter[@name='codebehind']"/>"</xsl:comment> 
</xsl:if>
</xsl:if>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<xsl:choose>
	<xsl:when test="$pagetype ='home'">
		<title><xsl:value-of select="document/title" /></title>
	</xsl:when>
	<xsl:otherwise>
		<title><xsl:value-of select="document/title" /> | Saint Xavier University</title>
	</xsl:otherwise>
</xsl:choose>

<link href='https://fonts.googleapis.com/css?family=Open+Sans:regular,bold&amp;v1' rel='stylesheet' type='text/css' />
<link href='https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700,700italic|PT+Serif:400,400italic,700,700italic' rel='stylesheet' type='text/css' />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">//</script>
<script src="/includes/js/jquery-ui/js/jquery-ui-1.8.16.custom.min.js" type="text/javascript">//</script>
<script src="/includes/js/jquery.megamenu.js" type="text/javascript">//</script>
<script src="/includes/js/nivo-slider/jquery.nivo.slider.js" type="text/javascript">//</script>
<script src="/includes/js/sxu.js" type="text/javascript">//</script>
	
	<script src="/includes/js/high-charts/highcharts.js" type="text/javascript"></script>

<link rel="shortcut icon" href="http://web3.sxu.edu/images/favicon/favicon.ico" />

<link rel="stylesheet" type="text/css" href="/includes/styles/jquery.megamenu.css" />
<link rel="stylesheet" type="text/css" href="/includes/js/nivo-slider/nivo-slider.css" />
<link rel="stylesheet" type="text/css" href="/includes/js/nivo-slider/themes/default/default.css" />
<link rel="stylesheet" type="text/css" href="/includes/styles/layout.css" />
<link rel="stylesheet" type="text/css" href="/includes/js/jquery-ui/css/blitzer/jquery-ui-1.8.16.custom.css" />
 <script type="text/javascript" src="https://www.google.com/jsapi"></script>
 <script type="text/javascript">
google.load("feeds", "1") //Load Google Ajax Feed API (version 1)
</script>





	<link rel="stylesheet" href="/includes/js/carousel/css/anythingslider.css" type="text/css" media="screen" />
      	<script type="text/javascript" src="/includes/js/carousel/js/jquery.easing.1.2.js"></script>
	<script src="/includes/js/carousel/js/jquery.anythingslider.js" type="text/javascript" charset="utf-8"></script>
	
	   <link rel="stylesheet" href="/includes/js/prettyPhoto/css/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" />
     <script src="/includes/js/prettyPhoto/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
	
	
   
   
   
   <script type="text/javascript">

	

		$(function () {

			$('#slider1').anythingSlider({
				width : 960,          // Override the default CSS width
				height: 347,
				resizeContents      : true,
				delay               : 7000,
				easing: 'easeInOutExpo'
			});
		});
	</script>




<script>

  $(document).ready(function(){
  
     $('.ox-regioneditbutton.').removeClass('nivo-imageLink');
  
  
  }); // end ready


</script>
<script type="text/javascript">

$(function(){

    var url = window.location.pathname, 
        urlRegExp = new RegExp(url.replace(/\/$/,'') + "$"); // create regexp to match current url pathname and remove trailing slash if present as it could collide with the link in navigation in case trailing slash wasn't present there
        // now grab every link from the navigation
        $('.menu a').each(function(){
            // and test its normalized href against the url pathname regexp
            if(urlRegExp.test(this.href.replace(/\/$/,''))){
                $(this).addClass('active');
            }
        });

});
</script>


	<!-- Google Analytics -->
	<xsl:if test="$ou:action='pub'">
		<xsl:comment> com.omniupdate.div label="analytics" path="/includes/analytics.inc" </xsl:comment>
		<xsl:comment>#include virtual="/_resources/includes/analytics.inc" </xsl:comment>
		<xsl:comment> /com.omniupdate.div </xsl:comment>
	</xsl:if>
	
	   <meta name="google-translate-customization" content="776160ec0a41740f-ff0c19529a8175e8-g48f063cd62addbf6-b"></meta>

	
</head>




	      <body>
	<xsl:choose>
	   <xsl:when test="$pagetype ='home'">
	    <div id="wrapperHome">
	          
 

  <div id="skip"><a href="/_resources/xsl/default.xsl#content">Skip to Content</a></div>
  <div id="header">
    <div id="topBanner">
    
    <xsl:comment> com.omniupdate.div label="header" path="/_resources/includes/header.inc"</xsl:comment>
      <xsl:comment> #include virtual="/_resources/includes/header.inc"</xsl:comment>
      <xsl:comment> /com.omniupdate.div </xsl:comment>
      
      <div id="searchDiv">
      <xsl:comment> com.omniupdate.div label="searchDiv" path="/_resources/includes/searchDiv.inc"</xsl:comment>
      <xsl:comment> #include virtual="/_resources/includes/searchDiv.inc"</xsl:comment>
      <xsl:comment> /com.omniupdate.div </xsl:comment>
      </div>
      
      <h2>Success with purpose.</h2>
      
     
      
      <ul id="topNav" class="navBar">
      <xsl:comment> com.omniupdate.div label="topnavbar" path="/_resources/includes/topnavbar.inc"</xsl:comment>
      <xsl:comment> #include virtual="/_resources/includes/topnavbar.inc"</xsl:comment>
      <xsl:comment> /com.omniupdate.div </xsl:comment>
      </ul>
      
      <ul id="mainNav" class="megamenu">
      <xsl:comment> com.omniupdate.div label="mainNav" path="/_resources/includes/mainNav.inc"</xsl:comment>
      <xsl:comment> #include virtual="/_resources/includes/mainNav.inc"</xsl:comment>
      <xsl:comment> /com.omniupdate.div </xsl:comment>
      </ul>
      
      <xsl:choose>
      <xsl:when test="document/config/parameter[@name='banner']/option[@value='one']/@selected = 'true'">
        <div class="staticHeader">
            	<xsl:copy-of select="document/banner-option-one/node()" />
        </div>
      </xsl:when>
      
      <xsl:when test="document/config/parameter[@name='banner']/option[@value='two']/@selected='true'">
    
        <div id="slideWrap">
           <ul id="slider1">
           <xsl:choose>
        	<xsl:when test="$ou:action = 'edt'">
        		<xsl:copy-of select="document/banner-option-two/img | document/banner-option-two/comment()" />
        	</xsl:when>
        	<xsl:otherwise>
        		<xsl:copy-of select="document/banner-option-two/node()" />
        	</xsl:otherwise>
           </xsl:choose>
           </ul>
          </div>
       
       <xsl:if test="$ou:action = 'edt'">
        <div id="slider-edit-button" style="margin-top: -340px;z-index: 500; position: relative"><xsl:comment>no empty div</xsl:comment></div>
        </xsl:if>
      </xsl:when>
       
      <xsl:when test="document/config/parameter[@name='banner']/option[@value='three']/@selected='true'">
      <div class="staticHeader">
        <div id="videoSummary">
           <xsl:copy-of select="document/banner-option-three-col1/node()" />
        </div>
        <div id="video">
           <xsl:copy-of select="document/banner-option-three-col2/node()" />
        </div>
      </div>
      </xsl:when>
      
      </xsl:choose>
    
      
      
      <div id="apply">
      <xsl:comment>no empty elements</xsl:comment>
      <xsl:if test="document/config/parameter[@name='apply']/option[@value='yes']/@selected='true'">
      <xsl:copy-of select="document/apply-SXU/node()" />
     </xsl:if>
       </div>
    </div>
  </div>
  <div id="content">
	<xsl:choose>
	   <xsl:when test="$pagetype ='home'">
	      <xsl:call-template name="home" />
	      
	  </xsl:when>
        <xsl:when test="$pagetype ='interior'">
      <xsl:call-template name="interior" />
  </xsl:when>
  <xsl:otherwise></xsl:otherwise>
</xsl:choose>



    <br style="clear:both;" />
    	         	
    	         	<div id="socialMedia">
	         
		        	<ul>
				      <xsl:comment> com.omniupdate.div label="socialMedia" path="/_resources/includes/socialMedia.inc"</xsl:comment>
				      <xsl:comment> #include virtual="/_resources/includes/socialMedia.inc"</xsl:comment>
				      <xsl:comment> /com.omniupdate.div </xsl:comment> 
				 </ul>
	      		</div>
    
    <div id="footer">
      <xsl:comment> com.omniupdate.div label="footer" path="/_resources/includes/footer.inc"</xsl:comment>
      <xsl:comment> #include virtual="/_resources/includes/footer.inc"</xsl:comment>
      <xsl:comment> /com.omniupdate.div </xsl:comment>
    </div>
  </div>
</div>
	  </xsl:when>
        <xsl:when test="$pagetype ='interior'">
          <div id="wrapper">
 

  <div id="skip"><a href="/_resources/xsl/default.xsl#content">Skip to Content</a></div>
  <div id="header">
    <div id="topBanner">
    
    <xsl:comment> com.omniupdate.div label="header" path="/_resources/includes/header.inc"</xsl:comment>
      <xsl:comment> #include virtual="/_resources/includes/header.inc"</xsl:comment>
      <xsl:comment> /com.omniupdate.div </xsl:comment>
      
      <div id="searchDiv">
      <xsl:comment> com.omniupdate.div label="searchDiv" path="/_resources/includes/searchDiv.inc"</xsl:comment>
      <xsl:comment> #include virtual="/_resources/includes/searchDiv.inc"</xsl:comment>
      <xsl:comment> /com.omniupdate.div </xsl:comment>
      </div>
      
      <h2>Success with purpose.</h2>
      
     
      
      <ul id="topNav" class="navBar">
      <xsl:comment> com.omniupdate.div label="topnavbar" path="/_resources/includes/topnavbar.inc"</xsl:comment>
      <xsl:comment> #include virtual="/_resources/includes/topnavbar.inc"</xsl:comment>
      <xsl:comment> /com.omniupdate.div </xsl:comment>
      </ul>
      
      <ul id="mainNav" class="megamenu">
      <xsl:comment> com.omniupdate.div label="mainNav" path="/_resources/includes/mainNav.inc"</xsl:comment>
      <xsl:comment> #include virtual="/_resources/includes/mainNav.inc"</xsl:comment>
      <xsl:comment> /com.omniupdate.div </xsl:comment>
      </ul>
      
      <xsl:choose>
      <xsl:when test="document/config/parameter[@name='banner']/option[@value='one']/@selected = 'true'">
        <div class="staticHeader">
            	<xsl:copy-of select="document/banner-option-one/node()" />
        </div>
      </xsl:when>
      
      <xsl:when test="document/config/parameter[@name='banner']/option[@value='two']/@selected='true'">
    
        <div id="slideWrap">
           <ul id="slider1">
           <xsl:choose>
        	<xsl:when test="$ou:action = 'edt'">
        		<xsl:copy-of select="document/banner-option-two/img | document/banner-option-two/comment()" />
        	</xsl:when>
        	<xsl:otherwise>
        		<xsl:copy-of select="document/banner-option-two/node()" />
        	</xsl:otherwise>
           </xsl:choose>
           </ul>
          </div>
       
       <xsl:if test="$ou:action = 'edt'">
        <div id="slider-edit-button" style="margin-top: -340px;z-index: 500; position: relative"><xsl:comment>no empty div</xsl:comment></div>
        </xsl:if>
      </xsl:when>
       
      <xsl:when test="document/config/parameter[@name='banner']/option[@value='three']/@selected='true'">
      <div class="staticHeader">
        <div id="videoSummary">
           <xsl:copy-of select="document/banner-option-three-col1/node()" />
        </div>
        <div id="video">
           <xsl:copy-of select="document/banner-option-three-col2/node()" />
        </div>
      </div>
      </xsl:when>
      
      </xsl:choose>
    
      
      
      <div id="apply">
      <xsl:comment>no empty elements</xsl:comment>
      <xsl:if test="document/config/parameter[@name='apply']/option[@value='yes']/@selected='true'">
      <xsl:copy-of select="document/apply-SXU/node()" />
     </xsl:if>
       </div>
    </div>
  </div>
  <div id="content">
	<xsl:choose>
	   <xsl:when test="$pagetype ='home'">
	      <xsl:call-template name="home" />
	      
	  </xsl:when>
        <xsl:when test="$pagetype ='interior'">
      <xsl:call-template name="interior" />
  </xsl:when>
  <xsl:otherwise></xsl:otherwise>
</xsl:choose>



    <br style="clear:both;" />
    	         	
    	         	<div id="socialMedia">
	         
		        	<ul>
				      <xsl:comment> com.omniupdate.div label="socialMedia" path="/_resources/includes/socialMedia.inc"</xsl:comment>
				      <xsl:comment> #include virtual="/_resources/includes/socialMedia.inc"</xsl:comment>
				      <xsl:comment> /com.omniupdate.div </xsl:comment> 
				 </ul>
	      		</div>
    
    <div id="footer">
      <xsl:comment> com.omniupdate.div label="footer" path="/_resources/includes/footer.inc"</xsl:comment>
      <xsl:comment> #include virtual="/_resources/includes/footer.inc"</xsl:comment>
      <xsl:comment> /com.omniupdate.div </xsl:comment>
    </div>
  </div>
</div>
  </xsl:when>
  <xsl:otherwise></xsl:otherwise>
</xsl:choose>

 
</body>


<xsl:text disable-output-escaping="yes">&lt;</xsl:text>/html<xsl:text disable-output-escaping="yes">&gt;</xsl:text>

</xsl:template>


<!-- NEW COPY FUNCTION  -->
<xsl:template match=" @* | node()[not(self::comment())] | text()" mode="copy" > 
  <xsl:copy>	
    <xsl:copy-of select="@*" />
    <xsl:apply-templates mode="copy" />
  </xsl:copy>
</xsl:template>

<!-- Allows the user to place comments around their ASP code -->
<xsl:template match="comment()" mode="copy" >
	<xsl:analyze-string select="." regex="^[\s\S]*&lt;%[\s\S]*?%&gt;[\s\S]*$">
		<xsl:matching-substring>
				<xsl:value-of disable-output-escaping="yes" select="."/>
		</xsl:matching-substring>
		<xsl:non-matching-substring>
				<xsl:text disable-output-escaping="yes">&lt;!--</xsl:text> <xsl:value-of select="." /> <xsl:text disable-output-escaping="yes">--&gt;</xsl:text>
		</xsl:non-matching-substring>
	</xsl:analyze-string>
</xsl:template>

</xsl:stylesheet>
