<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:CmsScripts="http://" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0">

<!-- Include Elements -->
<xsl:include href="../element/content.xsl"/>	
<xsl:include href="../element/footer.xsl"/>
<xsl:include href="../element/header.xsl"/>
<xsl:include href="../element/leftnav.xsl"/>
<xsl:include href="../element/meta.xsl"/>
<xsl:include href="../element/portlets.xsl"/>
<xsl:include href="../element/topnav.xsl"/>	

<!-- Ouput Instructions -->
<xsl:output method="html" indent="no" />

<!-- Navigation Page Identifier -->
<xsl:param name="navid" />

<!-- Strutural Parameters -->
<xsl:param name="leftnav" select="string('on')" />
<xsl:param name="leftnavtype" select="string('toc')" />
<xsl:param name="leftnavimg" select="string('on')"/>
<xsl:param name="rightnav" select="string('long')"/>
<xsl:param name="rightnavimg" select="string('off')" />
<xsl:param name="gatewaytype" select="string('us')" />

<!-- Path Parameters -->
<xsl:param name="csspath" select="string('../css/')" />
<xsl:param name="imgpath" select="string('../resource/images/')" />
<xsl:param name="mediapath" select="string('../resource/media/')" />
<xsl:param name="respath" select="string('../resource/')" />
<xsl:param name="scriptpath" select="string('../js/')" />

<!-- Service Parameters -->
<xsl:param name="wsUrl"/>



<!-- Lookup Indexes -->
<xsl:key name="orgs" match="organization" use="@identifier" />
<xsl:key name="items" match="item" use="@identifier" />
<xsl:key name="resources" match="resource" use="@identifier" />

<xsl:variable name="resource" select="/manifest/resources/resource[key('items',$navid)/@identifierref = @identifier]/@href" />

<!-- Page -->
<xsl:template match="/">
<xsl:text disable-output-escaping="yes">&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;</xsl:text><xsl:text>&#xA;</xsl:text>

<xsl:element name="html"><xsl:text>&#xA;</xsl:text>
<xsl:element name="head"><xsl:text>&#xA;</xsl:text>
<xsl:element name="title"><xsl:text disable-output-escaping="yes"></xsl:text></xsl:element><xsl:text>&#xA;</xsl:text>
	
	<xsl:element name="META">
		<xsl:attribute name="NAME">description</xsl:attribute>
		<xsl:attribute name="CONTENT"><xsl:text></xsl:text></xsl:attribute>
		</xsl:element><xsl:text>&#xA;</xsl:text>
	<xsl:element name="META">
		<xsl:attribute name="NAME">keywords</xsl:attribute>
		<xsl:attribute name="CONTENT"><xsl:text></xsl:text></xsl:attribute>
	</xsl:element><xsl:text>&#xA;</xsl:text>
	
	<xsl:call-template name="links" />
	<xsl:element name="style">
		P{height: 0px;}
		.ImageLink {height: 0px;}
	</xsl:element>
</xsl:element><xsl:text>&#xA;</xsl:text>

<!-- Body -->
<xsl:element name="body">
	<xsl:text>&#xA;</xsl:text>
	<xsl:apply-templates select="manifest" />
</xsl:element><xsl:text>&#xA;</xsl:text>
</xsl:element>
</xsl:template>

<xsl:template match="manifest">

<!-- Top Navigation -->
<xsl:call-template name="mlnav">
	<xsl:with-param name="gateway" select="string('on')" />
</xsl:call-template>

<!-- Top Story -->
<xsl:element name="table">
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="cellpadding">0</xsl:attribute>
<xsl:attribute name="cellspacing">0</xsl:attribute>
<xsl:attribute name="width">776</xsl:attribute>
<xsl:attribute name="style">TABLE-LAYOUT: fixed;</xsl:attribute>
	<xsl:text>&#xA;</xsl:text>
<xsl:element name="tr">
	<xsl:text>&#xA;</xsl:text>
	<xsl:element name="td">
		<xsl:text>&#xA;</xsl:text>
	<xsl:element name="table">
		<xsl:attribute name="border">0</xsl:attribute>
		<xsl:attribute name="cellpadding">0</xsl:attribute>
		<xsl:attribute name="cellspacing">0</xsl:attribute>
		<xsl:attribute name="height">220</xsl:attribute>
		<xsl:attribute name="width">776</xsl:attribute>
		<xsl:attribute name="style">border-bottom: solid 4px #003366; TABLE-LAYOUT: fixed;</xsl:attribute>
			<xsl:text>&#xA;</xsl:text>
		<xsl:element name="tr">
			<xsl:text>&#xA;</xsl:text>
		
		
		
		<xsl:element name="td">
		<xsl:attribute name="style">background-color:orange;</xsl:attribute>
		<xsl:attribute name="height">220</xsl:attribute>
		<xsl:attribute name="valign">top</xsl:attribute>
		<xsl:attribute name="width">561</xsl:attribute>
			<xsl:text>&#xA;</xsl:text>
				
				
				<!--							
				<xsl:call-template  name="billboard">
						<xsl:with-param name="billboards-navid" select="key('items',$navid)/item[contains(title,'Billboards')]/@identifier"/>
				</xsl:call-template>
				-->
				
				<xsl:call-template name="renderportlet">
					<xsl:with-param name="portletnode" select="document(concat($respath,$resource))/nodexml/pageportlets/portlet[@typeid='901.14']" />
					<!--<xsl:with-param name="httpAcceptFlash" select="$httpAcceptFlash"/>-->
				</xsl:call-template>
				
				
				
		</xsl:element>
		
		
		<xsl:element name="td">
		<xsl:attribute name="width">215</xsl:attribute>
		<xsl:attribute name="valign">top</xsl:attribute>
		<xsl:attribute name="style">border-top: solid 4px #003366;</xsl:attribute>
			<xsl:text>&#xA;</xsl:text>
				<!--
				<xsl:call-template  name="products-and-services">
						<xsl:with-param name="products-and-services-navid" select="key('items',$navid)/item[contains(title,'Products and Services')]/@identifier"/>
				</xsl:call-template>
				-->
				<xsl:call-template name="renderportlet">
					<xsl:with-param name="portletnode" select="document(concat($respath,$resource))/nodexml/pageportlets/portlet[@typeid='901.15']" />
				</xsl:call-template>
		</xsl:element>
		
		
		
		</xsl:element><xsl:text>&#xA;</xsl:text>
	</xsl:element><xsl:text>&#xA;</xsl:text>
</xsl:element><xsl:text>&#xA;</xsl:text>
</xsl:element><xsl:text>&#xA;</xsl:text>
<xsl:element name="tr">
	<xsl:text>&#xA;</xsl:text>
<xsl:element name="td">
<xsl:attribute name="valign">top</xsl:attribute>
	<xsl:text>&#xA;</xsl:text>
	<xsl:element name="table">
	<xsl:attribute name="border">0</xsl:attribute>
		<xsl:attribute name="cellpadding">0</xsl:attribute>
		<xsl:attribute name="cellspacing">0</xsl:attribute>
		<xsl:text>&#xA;</xsl:text>
			
			
			<xsl:element name="tr">
			<xsl:text>&#xA;</xsl:text>
			
			<!--This is where the left hand cell content goes.-->
			<xsl:element name="td">
			<xsl:attribute name="height">100%</xsl:attribute>
			<xsl:attribute name="valign">top</xsl:attribute>
			<xsl:attribute name="width"></xsl:attribute>
			<xsl:attribute name="style">background-color:#DDD5BD;width:215px</xsl:attribute>
			<xsl:text>&#xA;</xsl:text>
			
			<!--<xsl:variable name="webService">
				<xsl:choose>
					<xsl:when test="$navid='12345'">
						<xsl:value-of select="CmsScripts:GetContent('http://localhost/abc/homepage.aspx')"/>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="CmsScripts:GetContent('http://localhost/zyz/lastpage.aspx')"/>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:variable>
			<xsl:value-of select="$webService" disable-output-escaping="yes"/> -->
			<xsl:variable name="ws" select="'http://localhost/abc/WebService.asmx/GetHTML?strURL='" />
			<xsl:variable name="url" select="'http://www.yahoo.com'" />
			
			<xsl:value-of select="document(concat($ws,$url))" />			

			</xsl:element><xsl:text>&#xA;</xsl:text>
			
			
			
			
			<xsl:element name="td">
				<xsl:attribute name="width">345</xsl:attribute>
				<xsl:attribute name="style">padding-left: 10px; padding-top: 10px;</xsl:attribute>
				<xsl:attribute name="height">100%</xsl:attribute>
				<xsl:attribute name="valign">top</xsl:attribute>
				<xsl:text>&#xA;</xsl:text>
				
				<xsl:element name="div">
					<xsl:attribute name="style">padding-right:9px;</xsl:attribute>
				<xsl:attribute name="class">homeMiddleColumn</xsl:attribute>
				<xsl:text>&#xA;</xsl:text>
					
					<xsl:call-template name="renderportlet">
						<xsl:with-param name="portletnode" select="document(concat($respath,$resource))/nodexml/pageportlets/portlet[@typeid='901.13']" />
						<xsl:with-param name="highlights" select="/manifest/organizations//child::*/item[contains(title,'Highlights')]/@identifier" />
					</xsl:call-template>	
					
					<!--
					<xsl:call-template  name="Highlights">
						<xsl:with-param name="highlights-navid" select="key('items',$navid)/item[contains(title,'Highlights')]/@identifier"/>
					</xsl:call-template>
					-->
				
				</xsl:element>
				
				<xsl:text>&#xA;</xsl:text>
			</xsl:element>
			
			
			
			
			<xsl:element name="td">
				<xsl:attribute name="height">100%</xsl:attribute>
				<xsl:attribute name="style">BACKGROUND-COLOR: #f0f0f0; padding-bottom: 10px; padding-top: 10px;</xsl:attribute>
				<xsl:attribute name="valign">top</xsl:attribute>
				<xsl:attribute name="width">221</xsl:attribute>
				<xsl:text>&#xA;</xsl:text>
					<xsl:element name="div">
						
						<xsl:attribute name="id">OBDom</xsl:attribute>
						<xsl:attribute name="class">OB</xsl:attribute>
						<xsl:text>&#xA;</xsl:text>
							<!--
							<xsl:call-template  name="OurBusinesses">
								<xsl:with-param name="OurBusinesses-navid" select="key('items',$navid)/item[contains(title,'Our Businesses')]/@identifier"/>
							</xsl:call-template>
							//-->
							
							<xsl:call-template name="renderportlet">
							<xsl:with-param name="portletnode" select="document(concat($respath,$resource))/nodexml/pageportlets/portlet[@typeid='901.12']" />
							</xsl:call-template>
														
					</xsl:element>
			
					<xsl:element name="div">
						<xsl:attribute name="id">OBInt</xsl:attribute>
						<xsl:attribute name="class">OB</xsl:attribute>
						<xsl:attribute name="style">display: none;</xsl:attribute>
						<xsl:text>&#xA;</xsl:text>
							<!--
							<xsl:call-template  name="OurBusinesses">
								<xsl:with-param name="OurBusinesses-navid" select="key('items',$navid)/item[contains(title,'Our Businesses')]/@identifier"/>
							</xsl:call-template>
							-->
							
							<xsl:call-template name="renderportlet">
							<xsl:with-param name="portletnode" select="document(concat($respath,$resource))/nodexml/pageportlets/portlet[@typeid='901.16']" />
							</xsl:call-template>
							
					</xsl:element>
			</xsl:element><xsl:text>&#xA;</xsl:text>
			
			
			</xsl:element><xsl:text>&#xA;</xsl:text>
		</xsl:element><xsl:text>&#xA;</xsl:text>
</xsl:element><xsl:text>&#xA;</xsl:text>
</xsl:element><xsl:text>&#xA;</xsl:text>
</xsl:element><xsl:text>&#xA;</xsl:text>


<!-- Page Footer -->
<xsl:element name="div">
	<xsl:attribute name="id">Container</xsl:attribute>
	<xsl:text>&#xA;</xsl:text>
	<xsl:call-template name="pagefooter" />	
</xsl:element><xsl:text>&#xA;</xsl:text>

</xsl:template>


</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios/><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->