<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:strip-space elements="*"/>
	<xsl:output method="html" indent="yes" encoding="utf-8"/>

	<xsl:template match="VIEW-CONTENT">
		<xsl:apply-templates select="SEND-EMAIL"/>
	</xsl:template>

	<xsl:template match="SEND-EMAIL">
		<script src="/js/Wizard/Publish/Trial.js?{$version}.{$build}" type="text/javascript"></script>
		<table cellpadding="0" cellspacing="0" border="0" style="width: 100%; height: 100%;">
			<tr>
				<td style="vertical-align: middle;">
					<div align="center">
						<div class="sb-publish-panel">
							<xsl:apply-templates select="STATUS" mode="publish"/>
							<div style="width:0px; height:8px;"><span></span></div>
							<table cellpadding="0" cellspacing="8" border="0" width="100%">
								<tr>
									<td>
										<span class="sb-text">
											<xsl:value-of select="/SITEBUILDER-PAGE/LOCALE/PUBLISH-SCREEN-MESSAGE" disable-output-escaping="yes"/>
										</span>
									</td>
								</tr>
								<tr>
									<td align="center">
										<table cellpadding="0" cellspacing="0" border="0" width="150px;">
											<tr>
												<td>
													<a target="_blank" id="visitSiteLink" style="display: none;">
														<xsl:attribute name="href"><xsl:value-of select="CONTROL[@NAME='visitSite']/@HREF"/></xsl:attribute>
														<xsl:value-of select="CONTROL[@NAME='visitSite']/@TITLE"/>
													</a>
													<a target="_blank" style="text-decoration: none;">
														<xsl:attribute name="href"><xsl:value-of select="CONTROL[@NAME='visitSite']/@HREF"/></xsl:attribute>
														<xsl:call-template name="LARGE-BUTTON-CONTROL">
															<xsl:with-param name="style">width:150px;</xsl:with-param>
															<xsl:with-param name="title"><xsl:value-of select="CONTROL[@NAME='visitSite']/@TITLE"/></xsl:with-param>
															<xsl:with-param name="icon">icons/visit_site.png</xsl:with-param>
															<xsl:with-param name="action">clickLinkIE('visitSiteLink');</xsl:with-param>
														</xsl:call-template>
													</a>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
							<div style="width:0px; height:15px;"><span></span></div>
							<hr class="sb-publish-hr"/>
							<div style="width:0px; height:10px;"><span></span></div>
							<table style="width: 100%; table-layout: fixed;" border="0" cellpadding="0" cellspacing="0">
								<tr style="vertical-align: baseline;">
									<td style="width: 50%;">
										<xsl:apply-templates select="CONTROL[@NAME='email']" mode="TITLE-LEFT">
											<xsl:with-param name="controlClass">sb-control-input-input</xsl:with-param>
											<xsl:with-param name="controlStyle">width: 100%;</xsl:with-param>
											<xsl:with-param name="require">on</xsl:with-param>
										</xsl:apply-templates>
									</td>
								</tr>
							</table>
							<div style="width:0px; height:10px;"><span></span></div>
							<table style="width: 100%; table-layout: fixed;" border="0" cellpadding="0" cellspacing="0">
								<tr style="vertical-align: baseline;">
									<td style="width: 50%;"></td>
									<td style="width: 50%;">
										<xsl:call-template name="BUTTON-CONTROL">
											<xsl:with-param name="style">width:100px;</xsl:with-param>
											<xsl:with-param name="title"><xsl:value-of select="/SITEBUILDER-PAGE/LOCALE/SEND"/></xsl:with-param>
											<xsl:with-param name="icon">send.gif</xsl:with-param>
											<xsl:with-param name="action">sendMail1();</xsl:with-param>
										</xsl:call-template>
									</td>
								</tr>
							</table>
						</div>
					</div>
				</td>
			</tr>
		</table>
	</xsl:template>

</xsl:stylesheet>