﻿<?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="DisplayVideo.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="Name" select="normalize-space(AjaxRequest/Params/Name)"></xsl:variable>
		<xsl:variable name="BrandID" select="normalize-space(AjaxRequest/Params/BrandID)"></xsl:variable>

		<xsl:call-template name="ProgramBio">
			<xsl:with-param name="TemplateURL" select="$TemplateURL"></xsl:with-param>
			<xsl:with-param name="HostName" select="$HostName"></xsl:with-param>
			<xsl:with-param name="Name" select="$Name"></xsl:with-param>
			<xsl:with-param name="BrandID" select="$BrandID"></xsl:with-param>
		</xsl:call-template>

	</xsl:template>
	<xsl:template name="ProgramBio">
		<xsl:param name="TemplateURL" select="'N/A'"></xsl:param>
		<xsl:param name="HostName" select="'N/A'"></xsl:param>
		<xsl:param name="Name" select="'N/A'"></xsl:param>
		<xsl:param name="BrandID" select="'N/A'"></xsl:param>

		<div class="marginRight20 marginLeft20">
			<table cellpadding="0" cesspacing="0" class="tableMaster padding30">
				<xsl:choose>
					<xsl:when test="$Name = 'coolcats'">
						<tr>
							<td class="textCenter">
								<img border="0" style="display:none;" onload="setWidthAndHeightImage(this, 450);" alt="cool cats" src="{$TemplateURL}web/images/ver_2_0/dragonkick/cool_cats.png"></img>
							</td>
							<td width="53%" class="verticallyMiddle">
								<div class="partiesHeaderText">
									Cool Cats (ages 4-5 pre-school/kindergarten)
								</div>
								<div class="marginTop10 contentSmallText">
									For over a decade we have taught children to be healthy, kind, and confident! Children develop basic Karate movements while learning positive character traits. Our Cool Cat classes are safe, fun, and an incredible life learning experience for your child.
								</div>
								<div align="right" class="marginRight10" style="margin-top:60px;">
									<div class="dragonButtonClass" onclick="loadDragonKickContactPopUp('{$BrandID}','{$Name}');" style="width:170px;">
										<span id="span_Contact" class="capitalFont">Request More Information</span>
									</div>
								</div>
							</td>
						</tr>
					</xsl:when>
					<xsl:when test="$Name = 'karatekids'">
						<tr>
							<td class="textCenter">
								<img border="0" style="display:none;" onload="setWidthAndHeightImage(this, 450);" alt="karate kids" src="{$TemplateURL}web/images/ver_2_0/dragonkick/karate_kids.png"></img>
							</td>
							<td width="53%" class="verticallyMiddle">
								<div class="partiesHeaderText">
									Karate Kids (ages 6-9)
								</div>
								<div class="marginTop10 contentSmallText">
									We develop confidence, discipline, and respect  through our highly acclaimed programs. The benefits are absolutely amazing: improved grades, focus, mental alertness, improved physical abilities, and goal setting. Our constant encouragement and positive motivation will increase your child's success in school, athletics, and in life.
								</div>
								<div align="right" class="marginRight10" style="margin-top:60px;">
									<div class="dragonButtonClass" onclick="loadDragonKickContactPopUp('{$BrandID}','{$Name}');" style="width:170px;">
										<span id="span_Contact" class="capitalFont">Request More Information</span>
									</div>
								</div>
							</td>
						</tr>
					</xsl:when>
					<xsl:when test="$Name = 'youthteen'">
						<tr>
							<td class="textCenter">
								<img class="marginTop25" border="0" style="display:none;" onload="setWidthAndHeightImage(this, 400);" alt="youth teen" src="{$TemplateURL}web/images/ver_2_0/dragonkick/youth_teen.png"></img>
							</td>
							<td width="53%" class="verticallyMiddle">
								<div class="partiesHeaderText">
									Youth/Teen (ages 10-14)
								</div>
								<div class="marginTop10 contentSmallText">
									We build character by developing confidence to stand up to negative peer pressure and bullies. Our classes will enhance coordination, increase strength and flexibility while learning how to defend one's self. Empower your teen today!
								</div>
								<div align="right" class="marginRight10" style="margin-top:60px;">
									<div class="dragonButtonClass" onclick="loadDragonKickContactPopUp('{$BrandID}','{$Name}');" style="width:170px;">
										<span id="span_Contact" class="capitalFont">Request More Information</span>
									</div>
								</div>
							</td>
						</tr>
					</xsl:when>
					<xsl:when test="$Name = 'adultmartial'">
						<tr>
							<td class="textCenter">
								<img border="0" style="display:none;" onload="setWidthAndHeightImage(this, 460);" alt="Adult Carate" src="{$TemplateURL}web/images/ver_2_0/dragonkick/Adult_Carate.png"></img>
							</td>
							<td width="46%" class="verticallyMiddle">
								<div class="partiesHeaderText">
									Adult Martial Arts:
								</div>
								<div class="marginTop10 contentSmallText">
									Be healthy, fit and learn self defense in a positive, safe environment while having a blast. Mom, dads, and professional working people enjoy coming to class getting into the best shape of their lives. Come on in and try a class! You will have a great time!
								</div>
								<div align="right" class="marginRight10" style="margin-top:60px;">
									<div class="dragonButtonClass" onclick="loadDragonKickContactPopUp('{$BrandID}','{$Name}');" style="width:170px;">
										<span id="span_Contact" class="capitalFont">Request More Information</span>
									</div>
								</div>
							</td>
						</tr>
					</xsl:when>
					<xsl:when test="$Name = 'kickboxing'">
						<tr>
							<td class="textCenter">
								<img border="0" style="display:none;" onload="setWidthAndHeightImage(this, 400);" alt="kickboxing" src="{$TemplateURL}web/images/ver_2_0/dragonkick/kickboxing.png"></img>
							</td>
							<td width="50%" class="verticallyMiddle">
								<div class="partiesHeaderText">
									Kickboxing (Teen/Adults)
								</div>
								<div class="marginTop10 contentSmallText">
									In this class learn the fundamentals of kickboxing while striking combat pads. Tone your muscles, increase your flexibility, gain aerobic endurance, and learn practical self-defense while having fun in this energizing class!
								</div>
								<div align="right" class="marginRight10" style="margin-top:60px;">
									<div class="dragonButtonClass" onclick="loadDragonKickContactPopUp('{$BrandID}','{$Name}');" style="width:170px;">
										<span id="span_Contact" class="capitalFont">Request More Information</span>
									</div>
								</div>
							</td>
						</tr>
					</xsl:when>
					<xsl:when test="$Name = 'stars'">
						<tr>
							<td class="textCenter">
								<img border="0" style="display:none;" onload="setWidthAndHeightImage(this, 400);" alt="STARS" src="{$TemplateURL}web/images/ver_2_0/dragonkick/star-student-Katherine.png"></img>
							</td>
							<td width="53%" class="verticallyMiddle">
								<div class="partiesHeaderText">
									S.T.A.R.S. (ages 7-18 special needs)
								</div>
								<div class="marginTop10 contentSmallText">
									This lively class is for students with special needs and/or the physically challenged. Emphasis is on basic Karate motor skills and manners. Seeing these students in action is really amazing! Come try this FREE class!
								</div>
								<div align="right" class="marginRight10" style="margin-top:60px;">
									<div class="dragonButtonClass" onclick="loadDragonKickContactPopUp('{$BrandID}','{$Name}');" style="width:170px;">
										<span id="span_Contact" class="capitalFont">Request More Information</span>
									</div>
								</div>
							</td>
						</tr>
					</xsl:when>
					<xsl:when test="$Name = 'playitsafe'">
						<tr>
							<td class="textCenter">
								<img border="0" style="display:none;" onload="setWidthAndHeightImage(this, 400);" alt="Play It Safe" src="{$TemplateURL}web/images/ver_2_0/dragonkick/Tracie-Arlington.png"></img>
							</td>
							<td width="53%" class="verticallyMiddle">
								<div class="partiesHeaderText">
									"Play It Safe" (children of all ages)
								</div>
								<div class="marginTop10 contentSmallText">
									Have your child join in this fun, realistic self defense seminar. Students role play with a mock "Bully and Stranger" and learn to project confidence while being aware of their surroundings. This is an interactive class teaching self defense, and learning how to verbally diffuse situations.
								</div>
								<div align="right" class="marginRight10" style="margin-top:40px;">
									<div class="dragonButtonClass" onclick="loadDragonKickContactPopUp('{$BrandID}', '{$Name}');" style="width:170px;">
										<span id="span_Contact" class="capitalFont">Request More Information</span>
									</div>
								</div>
								<div align="center" style="margin-top:40px;">
									<xsl:call-template name="VideoDisplay">
										<xsl:with-param name="Format">
											<xsl:text>YouTube</xsl:text>
										</xsl:with-param>
										<xsl:with-param name="VideoKeyValue">
											<xsl:text>1wMHyrtr6UU</xsl:text>
										</xsl:with-param>
										<xsl:with-param name="videoWidth" select="360"></xsl:with-param>
										<xsl:with-param name="videoHeight" select="240"></xsl:with-param>
										<xsl:with-param name="autoPlay" select="0"></xsl:with-param>
									</xsl:call-template>
								</div>
							</td>
						</tr>
					</xsl:when>
					<xsl:when test="$Name = 'selfdefence' or $Name = 'selfdefense'">
						<tr>
							<td class="textCenter">
								<img class="marginTop15" border="0" style="display:none;" onload="setWidthAndHeightImage(this, 400);" alt="Senior Self-Defense" src="{$TemplateURL}web/images/ver_2_0/dragonkick/Sensei-Davis.png"></img>
							</td>
							<td width="53%" class="verticallyMiddle">
								<div class="partiesHeaderText">
									Senior Self-Defense (ages 55 and up)
								</div>
								<div class="marginTop10 contentSmallText">
									Project confidence, be aware, and learn simple self defense moves taught by Mary Davis in collaberation with the County of San Diego Aging and Independent Services seminars "Protect Yourself and Your Wallet."
								</div>
								<div align="right" class="marginRight10" style="margin-top:40px;">
									<div class="dragonButtonClass" onclick="loadDragonKickContactPopUp('{$BrandID}','{$Name}');" style="width:170px;">
										<span id="span_Contact" class="capitalFont">Request More Information</span>
									</div>
								</div>
								<div align="center" style="margin-top:40px;">
									<xsl:call-template name="VideoDisplay">
										<xsl:with-param name="Format">
											<xsl:text>YouTube</xsl:text>
										</xsl:with-param>
										<xsl:with-param name="VideoKeyValue">
											<xsl:text>HlRtG0__xLw</xsl:text>
										</xsl:with-param>
										<xsl:with-param name="videoWidth" select="360"></xsl:with-param>
										<xsl:with-param name="videoHeight" select="240"></xsl:with-param>
										<xsl:with-param name="autoPlay" select="0"></xsl:with-param>
									</xsl:call-template>
								</div>
							</td>
						</tr>
					</xsl:when>
					<xsl:otherwise>
						<tr>
							<td class="textCenter">
								<img class="marginTop25" border="0" style="display:none;" onload="setWidthAndHeightImage(this, 400);" alt="Tiger Tots" src="{$TemplateURL}web/images/ver_2_0/dragonkick/tiger_tots.png"></img>
							</td>
							<td width="53%" class="verticallyMiddle">
								<div class="partiesHeaderText">
									Tiger Tots (age 3)
								</div>
								<div class="marginTop10 contentSmallText">
									We are excited to offer a class designed for tots and parents focusing on listening and basic motor skills. This "Mommy and Me" style class is excellent for parent to child bonding.
								</div>
								<div align="right" class="marginRight10" style="margin-top:60px;">
									<div class="dragonButtonClass" onclick="loadDragonKickContactPopUp('{$BrandID}','tigertots');" style="width:170px;">
										<span id="span_Contact" class="capitalFont">Request More Information</span>
									</div>
								</div>
							</td>
						</tr>
					</xsl:otherwise>
				</xsl:choose>
			</table>
		</div>
	</xsl:template>
</xsl:stylesheet>
