﻿<?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="../../../GenericTemplates/StringReplace.xslt"/>
	<xsl:output method="xml" indent="yes"/>
	
	<xsl:template match="/">
		<xsl:variable name="BrandID" select="normalize-space(AjaxRequest/Params/BrandID)"></xsl:variable>		
		<xsl:variable name="BrandName" select="normalize-space(AjaxRequest/Params/BrandName)"></xsl:variable>
		<xsl:variable name="DisplayName" select="normalize-space(AjaxRequest/User/UserData/DisplayName)"></xsl:variable>
		<xsl:variable name="Email" select="normalize-space(AjaxRequest/User/UserData/Email)"></xsl:variable>
		<xsl:variable name="TemplateURL" select="normalize-space(AjaxRequest/TemplateURL)"></xsl:variable>

		<xsl:variable name="StringBrandName">
			<xsl:call-template name="replaceCharsInString">
				<xsl:with-param name="stringIn" select="$BrandName"></xsl:with-param>
				<xsl:with-param name="charsIn">
					<xsl:text>'</xsl:text>
				</xsl:with-param>
				<xsl:with-param name="charsOut">
					<xsl:text>\'</xsl:text>
				</xsl:with-param>
			</xsl:call-template>
		</xsl:variable>
			
		<table class="tableMaster" cellpadding="0" cellspacing="0">
			<tr>
				<td>
					<div style="background:#FE9901;line-height:30px;" class="capitalFont TournamentShareHeader paddingLeft5">
						CONTACT US
					</div>
				</td>
				<td width="5px">
					&#xa0;
				</td>
				<td width="50%">
					<div style="background:#FE9901;line-height:30px;" class="capitalFont TournamentShareHeader paddingLeft5">
						CONTACT <xsl:value-of select="$BrandName"/> ONLINE FORM
					</div>
				</td>
			</tr>
			<tr>
				<td class="TournamentClubBackground">
					<div class="marginLeft20 marginTop20">
						<div class="actionCountText marginTop25">
							Online Contact
						</div>
						<div class="labelGoalActionsText marginBottom10">
							Please feel free to Contact Us anytime with Questions or Comments by completing the form to the right.
						</div>
						<div class="actionCountText">
							To Speak with a Live Representative
						</div>
						<div class="labelGoalActionsText marginBottom10">
							You can call us direct to speak with a Live Representative.
						</div>
						<div class="marginBottom20">
							<span class="actionCountText">Please call:</span>
							<span class="labelGoalActionsText"> 888-606-2888</span>
						</div>
						<div class="marginTop20">
							<table>
								<tr>
									<td width="150px">
										<div>
											<span class="labelGoalActionsText">Our </span>
											<span class="actionCountText">live chat </span>
											<span class="labelGoalActionsText">agents are</span>
										</div>
										<div>
											<span class="marginLeft5 labelGoalActionsText">available to assist you</span>
										</div>
										<div class="marginBottom20">
											<span class="actionCountText">Mon-Fri 9am-5pm EST.</span>
										</div>
										<div class="labelGoalActionsText textItalic">Click to chat wherever</div>
										<div class="labelGoalActionsText textItalic">
											you see this chat button!
										</div>
									</td>
									<td width="150px" class="verticallyMiddle onMouseOver">
										<div id="lpButDivID-1337617393499"></div>
										

									</td>
								</tr>
							</table>
						</div>
					</div>
				</td>
				<td width="5px">
					&#xa0;
				</td>
				<td width="50%" class="TournamentClubBackground">
					<div id='divSelectedTab_ContactTab' class='margin15' style='display:block;'>
						<table class="tableMaster" cellpadding="5" cellspacing="5">
							<tr>
								<td colspan="2">
									<span class="labelGoalTopicsText">
										Thank you for your interest in <xsl:value-of select="$BrandName"/>.
										We look forward to connecting with you soon. In order for us to better assist you, please provide the following information:
									</span>
								</td>
							</tr>
							<tr>
								<td width="30%">
									<span class="labelGoalActionsText">
										Name:
									</span>
								</td>
								<td width="70%">
									<div>
										<input type="text" id="txtUserName" style="width:300px;" class="text" maxlength="50"
											   value="{$DisplayName}" />
									</div>
								</td>
							</tr>
							<tr>
								<td>
									<span class="labelGoalActionsText">
										Phone:
									</span>
								</td>
								<td>
									<div>
										<input type="text" id="txtUserPhone" style="width:300px;" class="text" maxlength="50"
											   onBlur="numberOnly('txtUserPhone');"/>
									</div>
								</td>
							</tr>
							<tr>
								<td>
									<span class="labelGoalActionsText">
										E-mail:
									</span>
								</td>
								<td>
									<div>
										<input type="text" id ="txtUserEmail" style="width:300px;" class="text" maxlength="255"
											   onBlur='CheckEmail("txtUserEmail");' value ="{$Email}"/>
									</div>
								</td>
							</tr>
							<tr>
								<td>
									<span class="labelGoalActionsText">Questions/Comments:</span>
								</td>
								<td>
									<div>
										<textarea id="txtTypeCoaching" type="text" class="wideText" rows="5" style="width:300px;"
												  onFocus="removeWhiteSpace('txtTypeCoaching');">
										</textarea>
									</div>
								</td>
							</tr>
							<tr>
								<td></td>
								<td class="verticallyMiddle">
									<div class="onMouseOver divBrowseGradient spanBrowseGradientTextGray" style="width:85px;line-height:30px;"
												onmouseover="document.getElementById('img_Next').src='{$TemplateURL}Web/Images/Ver_2_0/BT_arrow_hover.png';"
												onmouseout="document.getElementById('img_Next').src='{$TemplateURL}Web/Images/Ver_2_0/BT_arrow.png';"
												 onClick="Brand_SaveClubContactInfo('{$BrandID}', 'txtUserName', 'txtUserPhone', '',
                                                           'txtUserEmail','txtTypeCoaching','{$StringBrandName}');">
										<img id="img_Next" src="{$TemplateURL}Web/Images/Ver_2_0/BT_arrow.png" style="padding-left:8px;" align="absmiddle" class="marginRight5"></img>
										<span>Submit</span>
									</div>
								</td>
							</tr>
						</table>
					</div>
					<div id="divSelectedTab_ContactTabHTML" class="textCenter margin15" style="display:none;">
						<p class="labelSize12">Thanks for submitting your information.</p>
						<p class="labelSize12">We look forward to speaking with you shortly!</p>
					</div>
				</td>				
			</tr>
		</table>
		<script type="text/javascript" charset="UTF-8" src="https://server.iad.liveperson.net/hc/3114710/?cmd=mTagRepstate&amp;site=3114710&amp;buttonID=1&amp;divID=lpButDivID-1337617393499&amp;bt=1&amp;c=1"></script>
	</xsl:template>
</xsl:stylesheet>
