﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
	<xsl:import href="../Modules/CustomBrand/LifeSpaceProFooter.xslt"/>
	<xsl:output method="xml" indent="yes"/>

	<xsl:template match="/">
		<xsl:variable name="TemplateURL" select="normalize-space(AjaxRequest/TemplateURL)"></xsl:variable>
		<xsl:variable name="HostName" select="normalize-space(AjaxRequest/HostName)"></xsl:variable>
		<xsl:variable name="Origin" select="normalize-space(AjaxRequest/Params/Origin)"></xsl:variable>

		<div style="padding-top:10px;">
			<xsl:choose>
				<xsl:when test="$Origin='lifespacepro'">
					<xsl:call-template name="LifeSpacePro">
						<xsl:with-param name="HostName" select="$HostName"></xsl:with-param>
						<xsl:with-param name="TemplateURL" select="$TemplateURL"></xsl:with-param>
					</xsl:call-template>
				</xsl:when>
				<xsl:otherwise>
					<xsl:call-template name="LifeSpaceFooter">
						<xsl:with-param name="HostName" select="$HostName"></xsl:with-param>
						<xsl:with-param name="TemplateURL" select="$TemplateURL"></xsl:with-param>
						<xsl:with-param name="Origin" select="$Origin"></xsl:with-param>
					</xsl:call-template>
				</xsl:otherwise>
			</xsl:choose>
		</div>
	</xsl:template>

	<xsl:template name="LifeSpaceFooter">
		<xsl:param name="HostName" select="'N/A'"></xsl:param>
		<xsl:param name="TemplateURL" select="'N/A'"></xsl:param>
		<xsl:param name="Origin" select="'N/A'"></xsl:param>

		<table class="tableMaster" cellpadding="0" cellspacing="0">
			<tr>
				<td width="25%">
					<div class="FooterContentHeader BottomBorder">
						LifeSpace
					</div>
					<xsl:choose>
						<xsl:when test="$Origin='challengepro'">
							<a href="http://{$HostName}/ListChallenges.aspx" class="BottomBorder FooterContentText"
								onmouseover="document.getElementById('spanLS_FooterChallenge').style.color='#FFFFFF';"
								onmouseout="document.getElementById('spanLS_FooterChallenge').style.color='#A7A9AC';">
								<span id="spanLS_FooterChallenge" style="color: #A7A9AC;">
									JOIN A CHALLENGE
								</span>
							</a>
						</xsl:when>
						<xsl:otherwise>
							<a href="http://{$HostName}" class="BottomBorder FooterContentText"
								onmouseover="document.getElementById('spanLS_FooterHome').style.color='#FFFFFF';"
								onmouseout="document.getElementById('spanLS_FooterHome').style.color='#A7A9AC';">
								<span id="spanLS_FooterHome" style="color: #A7A9AC;">
									HOME
								</span>
							</a>
						</xsl:otherwise>
					</xsl:choose>

					<a href="http://{$HostName}/StartAGoal.aspx" class="BottomBorder FooterContentText"
						onmouseover="document.getElementById('spanLS_FooterWorks').style.color='#FFFFFF';"
						onmouseout="document.getElementById('spanLS_FooterWorks').style.color='#A7A9AC';">
						<span id="spanLS_FooterWorks" style="color: #A7A9AC;">
							HOW IT WORKS
						</span>
					</a>
					<a href="http://{$HostName}/GoalPlans.aspx" class="BottomBorder FooterContentText"
						onmouseover="document.getElementById('spanLS_FooterPlans').style.color='#FFFFFF';"
						onmouseout="document.getElementById('spanLS_FooterPlans').style.color='#A7A9AC';">
						<span id="spanLS_FooterPlans" style="color: #A7A9AC;">
							GOAL PLANS
						</span>
					</a>
					<xsl:choose>
						<xsl:when test="$Origin='challengepro'">
							<a href="http://{$HostName}/Pro.aspx" class="BottomBorder FooterContentText"
								onmouseover="document.getElementById('spanLS_FooterPro').style.color='#FFFFFF';"
								onmouseout="document.getElementById('spanLS_FooterPro').style.color='#A7A9AC';">
								<span id="spanLS_FooterPro" style="color: #A7A9AC;">
									LIFESPACE PRO
								</span>
							</a>
						</xsl:when>
						<xsl:otherwise>
							<a href="http://{$HostName}/CorporateSignup.aspx" class="BottomBorder FooterContentText"
								onmouseover="document.getElementById('spanLS_FooterBusiness').style.color='#FFFFFF';"
								onmouseout="document.getElementById('spanLS_FooterBusiness').style.color='#A7A9AC';">
								<span id="spanLS_FooterBusiness" style="color: #A7A9AC;">
									LIFESPACE BUSINESS
								</span>
							</a>
						</xsl:otherwise>
					</xsl:choose>
					<a href="http://{$HostName}/Coaches.aspx" class="BottomBorder FooterContentText"
						onmouseover="document.getElementById('spanLS_FooterIsCoach').style.color='#FFFFFF';"
						onmouseout="document.getElementById('spanLS_FooterIsCoach').style.color='#A7A9AC';">
						<span id="spanLS_FooterIsCoach" style="color: #A7A9AC;">
							ARE YOU A COACH?
						</span>
					</a>
					<xsl:choose>
						<xsl:when test="$Origin='challengepro'">
							<a href="http://{$HostName}/Contact.aspx" class="BottomBorder FooterContentText"
								onmouseover="document.getElementById('spanLS_FooterContact_Pro').style.color='#FFFFFF';"
								onmouseout="document.getElementById('spanLS_FooterContact_Pro').style.color='#A7A9AC';">
								<span id="spanLS_FooterContact_Pro" style="color: #A7A9AC;">
									CONTACT
								</span>
							</a>
						</xsl:when>
						<xsl:otherwise>
							<a href="mailto:AccountServices@LifeSpace.com" class="BottomBorder FooterContentText"
								onmouseover="document.getElementById('spanLS_FooterContact').style.color='#FFFFFF';"
								onmouseout="document.getElementById('spanLS_FooterContact').style.color='#A7A9AC';">
								<span id="spanLS_FooterContact" style="color: #A7A9AC;">
									CONTACT
								</span>
							</a>
						</xsl:otherwise>
					</xsl:choose>
					<a href="http://{$HostName}/Publication.aspx?ID=527229&amp;Ref=Login" class="BottomBorder FooterContentText"
						   onmouseover="document.getElementById('spanLS_FooterPrivacyPolicy').style.color='#FFFFFF';"
						   onmouseout="document.getElementById('spanLS_FooterPrivacyPolicy').style.color='#A7A9AC';">
						<span id="spanLS_FooterPrivacyPolicy" style="color: #A7A9AC;">
							Privacy Policy
						</span>
					</a>
					<a href="http://{$HostName}/Publication.aspx?ID=527235&amp;Ref=Login" class="BottomBorder FooterContentText"
							onmouseover="document.getElementById('spanLS_FooterTerms').style.color='#FFFFFF';"
							onmouseout="document.getElementById('spanLS_FooterTerms').style.color='#A7A9AC';">
						<span id="spanLS_FooterTerms" style="color: #A7A9AC;">
							Terms of Use
						</span>
					</a>
					<div class="paddingTop10 FooterContentText">
						<a href="mailto:coaches@LifeSpace.com" style="width:120px;"
							onmouseover="document.getElementById('spanLS_FooterHelp').style.color='#FFFFFF';"
							onmouseout="document.getElementById('spanLS_FooterHelp').style.color='#A7A9AC';">
							<span id="spanLS_FooterHelp" style="color: #A7A9AC;">
								HELP &amp; SUPPORT
							</span>
						</a>
					</div>

				</td>
				<td width="25%" nowrap="nowrap">
					<div class="FooterContentHeader BottomBorder">
						The tour
					</div>
					<a href="http://{$HostName}/StartAGoal.aspx" class="BottomBorder FooterContentText"
						onmouseover="document.getElementById('spanLS_FooterStartGoal').style.color='#FFFFFF';"
						onmouseout="document.getElementById('spanLS_FooterStartGoal').style.color='#A7A9AC';">
						<span id="spanLS_FooterStartGoal" style="color: #A7A9AC;">
							START A GOAL
						</span>
					</a>
					<a href="http://{$HostName}/YourSuperpage.aspx" class="BottomBorder FooterContentText"
							onmouseover="document.getElementById('spanLS_FooterProgress').style.color='#FFFFFF';"
							onmouseout="document.getElementById('spanLS_FooterProgress').style.color='#A7A9AC';">
						<span id="spanLS_FooterProgress" style="color: #A7A9AC;">
							TRACK YOUR PROGRESS
						</span>
					</a>
					<a href="http://{$HostName}/GetConnected.aspx" class="BottomBorder FooterContentText"
							onmouseover="document.getElementById('spanLS_FooterConnected').style.color='#FFFFFF';"
							onmouseout="document.getElementById('spanLS_FooterConnected').style.color='#A7A9AC';">
						<span id="spanLS_FooterConnected" style="color: #A7A9AC;">
							GET CONNECTED
						</span>
					</a>
					<div class="paddingTop10 FooterContentText">
						<a href="http://{$HostName}/GetYours.aspx" style="width:120px;"
							onmouseover="document.getElementById('spanLS_FooterGetYours').style.color='#FFFFFF';"
							onmouseout="document.getElementById('spanLS_FooterGetYours').style.color='#A7A9AC';">
							<span id="spanLS_FooterGetYours" style="color: #A7A9AC;">
								GET YOURS
							</span>
						</a>
						<br></br>
						<br></br>
						<br></br>
						<a href="/homerun/touchdown.aspx">
							<img src="/homerun/homerun.png" alt="homerun"></img>
						</a>
					</div>
				</td>
				<td width="25%">
					<div class="FooterContentHeader" style="padding-top:10px;padding-bottom:10px;width:200px;border-bottom:1px solid #BCBEC0;">
						Follow us
					</div>
					<div style="margin-top:20px;margin-bottom:10px;">
						<a target="_blank" href="http://facebook.com/LifeSpace">
							<img class="verticallyMiddle marginRight10" src="{$TemplateURL}Web/Images/Ver_2_0/icon_facebook.png" border="0"
							alt=""></img>
							<span class="verticallyMiddle FollowUsText">
								on Facebook
							</span>
						</a>
					</div>
					<div style="margin-top:10px;margin-bottom:10px;">
						<a target="_blank" href="http://twitter.com/LifeSpace">
							<img class="verticallyMiddle marginRight10" src="{$TemplateURL}Web/Images/Ver_2_0/icon_twitter.png" border="0"
							alt=""></img>
							<span class="verticallyMiddle FollowUsText">
								on Twitter
							</span>
						</a>
					</div>
				</td>
				<td class="textRight" style="padding-left:20px;">
					<table class="tableMaster marginTop20" cellpadding="0" cellspacing="0">
						<tr>
							<td class="JoinLSMessage textCenter paddingBottom10" style="vertical-align:bottom;">
								Join LifeSpace –It's Free
							</td>
						</tr>
						<tr>
							<td class="textCenter getStarted verticallyMiddle" onclick="DisplaySignUpPopUp('signup','getstarted','');">
								<span>
									Get Started!
								</span>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</xsl:template>
</xsl:stylesheet>