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

<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( output )
-->
<xsl:output method="html" media-type="text/html" doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN" indent="yes" />



<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( variables [network] )
-->
<xsl:variable name="network">School</xsl:variable>
<xsl:variable name="netAbbrevLow">sch</xsl:variable>
<xsl:variable name="netAbbrevCap">SCH</xsl:variable>
<xsl:variable name="base">http://school.discovery.com</xsl:variable>
<xsl:variable name="aplBase">http://animal.discovery.com</xsl:variable>
<xsl:variable name="primeBgcolor">#339933</xsl:variable>
<xsl:variable name="promoBgcolor">#f1f1f1</xsl:variable>
<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( variables [global] )
-->
<xsl:variable name="queryDisplay" select="//GSP/PARAM[@name = 'q']/@value" />
<xsl:variable name="query" select="//GSP/PARAM[@name = 'q']/@original_value" />
<xsl:variable name="spelling" select="//GSP/Spelling/Suggestion" />
<xsl:variable name="synonym" select="//GSP/Synonyms/OneSynonym" />
<xsl:variable name="keymatch" select="//GSP/GM" />
<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( variables [numbers] )
-->
<xsl:variable name="initTotal">50</xsl:variable>
<xsl:variable name="totalResults">
	<xsl:choose>
		<xsl:when test="//GSP/RES/M"><xsl:value-of select="//GSP/RES/M" /></xsl:when>
		<xsl:otherwise>0</xsl:otherwise>
	</xsl:choose>
</xsl:variable>
<xsl:variable name="pageResults">
	<xsl:choose>
		<xsl:when test="//GSP/PARAM[(@name = 'num') and (@value != '')]"><xsl:value-of select="//GSP/PARAM[@name = 'num']/@value" /></xsl:when>
		<xsl:otherwise><xsl:value-of select="10" /></xsl:otherwise>
	</xsl:choose>
</xsl:variable>
<xsl:variable name="prev" select="//GSP/RES/NB/PU" />
<xsl:variable name="next" select="//GSP/RES/NB/NU" />
<xsl:variable name="startAt" select="//GSP/RES/@SN" />
<xsl:variable name="endAt" select="//GSP/RES/@EN" />
<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( variables [counts] )
-->
<xsl:variable name="countStore">
	<xsl:choose>
		<xsl:when test="//GSP/RES"><xsl:value-of select="count(//GSP/RES/R/MT[@N = 'contentType' and (@V = 'ecommerce' or @V = 'ecommSchool')])" /></xsl:when>
		<xsl:otherwise>0</xsl:otherwise>
	</xsl:choose>
</xsl:variable>
<xsl:variable name="countFeatures" select="number($totalResults - $countStore)" />
<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( variables [url] )
-->
<xsl:variable name="restrict"><xsl:value-of select="//GSP/PARAM[@name = 'restrict']/@value" /></xsl:variable>
<xsl:variable name="showResultsStyle">
	<xsl:choose>
		<xsl:when test="$restrict = 'schContent' or $restrict = 'schContent'">features</xsl:when>
		<xsl:when test="$restrict = 'shopping' or $restrict = 'shopping|schShopping'">ecomm</xsl:when>
		<xsl:otherwise>all</xsl:otherwise>
	</xsl:choose>
</xsl:variable>
<xsl:variable name="site"><xsl:value-of select="//GSP/PARAM[@name = 'site']/@value" /></xsl:variable>
<xsl:variable name="client"><xsl:value-of select="//GSP/PARAM[@name = 'client']/@value" /></xsl:variable>
<xsl:variable name="output"><xsl:value-of select="//GSP/PARAM[@name = 'output']/@value" /></xsl:variable>
<xsl:variable name="filter">0</xsl:variable>
<xsl:variable name="baseURL">restrict=<xsl:value-of select="$restrict" /><xsl:text disable-output-escaping="yes">&amp;</xsl:text>site=<xsl:value-of select="$site" /><xsl:text disable-output-escaping="yes">&amp;</xsl:text>client=<xsl:value-of select="$client" /><xsl:text disable-output-escaping="yes">&amp;</xsl:text>output=<xsl:value-of select="$output" /><xsl:text disable-output-escaping="yes">&amp;</xsl:text>getfields=<xsl:text>*</xsl:text><xsl:text disable-output-escaping="yes">&amp;</xsl:text>filter=<xsl:value-of select="$filter" /></xsl:variable>
<xsl:variable name="proxystylesheet"><xsl:value-of select="$base" /><xsl:text>/schoolsearch/gglsearch.xsl</xsl:text></xsl:variable>



<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( begin )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [0] )
-->
<xsl:template match="/">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="pragma" content="no-cache" />

	<title><xsl:value-of select="$network" /> :: Search Results :: <xsl:value-of select="$queryDisplay" /></title>

<link rel="stylesheet" type="text/css" href="{$aplBase}/common/css/glbnetwrk.css" />
<link rel="stylesheet" type="text/css" href="{$aplBase}/utilities/css/aplglobal.css" />

<style type="text/css" media="screen">
<!--
body { background-color: rgb(255,255,255); color: rgb(0,0,0); margin: 0px 0px 0px 0px; }
a, img { border: 0px none }
-->
</style>

</head>

<body style="background-color: rgb(255,255,255); color: rgb(0,0,0); margin: 0px 0px 0px 0px;">

<!-- top hat -->
<table cellpadding="0" cellspacing="0" border="0" width="770">
<tr bgcolor="{$primeBgcolor}">
    <td colspan="2" width="605" height="25" align="left" valign="bottom"><div class="shim10"></div>
	<div><img src="{$base}/common/sgallery/{$netAbbrevLow}/{$netAbbrevLow}_bar.gif" width="605" height="25" border="0" alt="nav bar" usemap="#tophatnav" /><map name="tophatnav"><area shape="rect" coords="8,2,125,22" href="http://dsc.discovery.com" alt="Discovery Channel" target="_top" /><area shape="rect" coords="134,8,167,22" href="http://tlc.discovery.com" alt="The Learning Channel (TLC)" target="_top" /><area shape="rect" coords="177,2,268,22" href="http://{$base}" alt="Animal Planet" target="_top" /><area shape="rect" coords="279,2,375,22" href="http://travel.discovery.com" alt="Travel Channel" target="_top" /><area shape="rect" coords="382,2,492,22" href="http://health.discovery.com" alt="Discovery Health Channel" target="_top" /><area shape="rect" coords="498,2,600,22" href="http://shopping.discovery.com" alt="Discovery Store" target="_top" /></map></div></td>
</tr>
</table>


<table cellpadding="0" cellspacing="0" border="0" width="770">
<tr><td width="770" colspan="4" bgcolor="#339933"><img src="http://school.discovery.com/topnav/gallery/spacer.gif" width="1" height="10" border="0"/></td></tr>
<tr>
	<td width="1" bgcolor="#33CC00"><img src="http://school.discovery.com/topnav/gallery/spacer.gif" width="1" height="1"/><form name="excaliburSearch" method="get" onSubmit="return submitSelect()"/></td>
	<td bgcolor="#33CC00" width="345"><a href="http://school.discovery.com/schoolhome.html" target="_top"><img src="http://school.discovery.com/topnav/gallery/tophatlogo.gif" width="345" height="34" alt="DiscoverySchool.com" border="0"/></a></td>
	<td width="423" height="34" align="center" valign="middle" bgcolor="#33CC00"><script type="text/javascript" langage="JavaScript" src="http://school.discovery.com/topnav/schsrch.js"></script><img src="http://school.discovery.com/topnav/gallery/spacer.gif" width="39" height="1" border="0"/><img src="http://school.discovery.com/topnav/gallery/searchbutton.gif" width="54" height="12" hspace="0" border="0" vspace="0" alt="search"/><input name="query" size="10" maxlength="40" style="font-family: verdana,arial,helvetica; background-color: #FFFFFF; color: #336633; font-size: 8pt;"><select name="group" style="font-family: verdana,arial,helvetica; background-color: #FFFFFF; color: #336633; font-size: 8pt;"><option value="allschool">All DiscoverySchool</option><option value="students">Students</option><option value="teachers">Teachers</option><option value="parents">Parents</option></select><input type="image" src="http://school.discovery.com/topnav/gallery/gobutton.gif" width="35" height="13" hspace="0" border="0"/></input></td>
   <td width="1" bgcolor="#33CC00"><img src="http://school.discovery.com/topnav/gallery/spacer.gif" width="1" height="1"/></td>    
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="770" bgcolor="#FFFFFF">
 <tr>
  <td valign="top"><img src="http://school.discovery.com/topnav/gallery/globe.gif" width="80" height="32" border="0"/><img src="http://school.discovery.com/topnav/gallery/y.gif" width="87" height="32" border="0"/><a onmouseover="if (document.images) document.home.src='http://school.discovery.com/topnav/gallery/homeon.gif';" href="http://school.discovery.com" onmouseout="if (document.images) document.home.src='http://school.discovery.com/topnav/gallery/homeoff.gif';" target="_top"><img src="http://school.discovery.com/topnav/gallery/homeoff.gif" width="93" height="32" alt="Home" border="0" name="home"/></a><a onmouseover="if (document.images) document.students.src='http://school.discovery.com/topnav/gallery/studentson.gif';" href="http://school.discovery.com/students/index.html" onmouseout="if (document.images) document.students.src='http://school.discovery.com/topnav/gallery/studentsoff.gif';" target="_top"><img src="http://school.discovery.com/topnav/gallery/studentsoff.gif" width="131" height="32" alt="For Students" border="0" name="students"/></a><a onmouseover="if (document.images) document.teachers.src='http://school.discovery.com/topnav/gallery/teacherson.gif';" href="http://school.discovery.com/teachers/index.html" onmouseout="if (document.images) document.teachers.src='http://school.discovery.com/topnav/gallery/teachersoff.gif';" target="_top"><img src="http://school.discovery.com/topnav/gallery/teachersoff.gif" width="132" height="32" alt="For Teachers" border="0" name="teachers"/></a><a onmouseover="if (document.images) document.parents.src='http://school.discovery.com/topnav/gallery/parentson.gif';" href="http://school.discovery.com/parents/index.html" onmouseout="if (document.images) document.parents.src='http://school.discovery.com/topnav/gallery/parentsoff.gif';" target="_top"><img src="http://school.discovery.com/topnav/gallery/parentsoff.gif" width="132" height="32" alt="For Parents" border="0" name="parents"/></a><a onmouseover="if (document.images) document.store.src='http://school.discovery.com/topnav/gallery/store_on.gif';" href="http://teacherstore.discovery.com" onmouseout="if (document.images) document.store.src='http://school.discovery.com/topnav/gallery/store_off.gif';" target="_top"><img src="http://school.discovery.com/topnav/gallery/store_off.gif" width="89" height="32" alt="Store" border="0" name="store"/></a><img src="http://school.discovery.com/topnav/gallery/endblock.gif" width="26" height="32" alt="" border="0"/></td>
 </tr>
 <tr><td><img src="http://school.discovery.com/topnav/gallery/spacer.gif" width="1" height="10" border="0"/></td></tr>
</table>
<!-- end top hat -->


<!-- date -->
<div style="line-height: 23px;" class="date"><script type="text/javascript" language="JavaScript" src="http://{$base}/common/js/date.js"></script></div>
<!-- end date -->

<!-- master table -->
<table cellpadding="0" cellspacing="0" border="0" width="770">
<tr>
	<!-- column [ navagation ] -->
	<td width="160" align="left" valign="top">
	<table cellpadding="0" cellspacing="0" border="0" width="160" bgcolor="#663399">
 <tr><td bgcolor="#33CC00"><img src="http://school.discovery.com/gallery/odot.gif" width="1" height="15" border="0"/></td></tr>
 <!-- students -->
 <tr><td bgcolor="#99FF66"><a href="http://school.discovery.com/students/"><img src="http://school.discovery.com/gallery/leftnav/generic/gennav_forstudents.gif" width="160" height="25" alt="For Students" border="0"/></a></td></tr>
 <!-- teachers -->
 <tr><td bgcolor="#99FF66"><a href="http://school.discovery.com/teachers/"><img src="http://school.discovery.com/gallery/leftnav/generic/gennav_forteachers.gif" width="160" height="24" alt="For Teachers" border="0"/></a></td></tr>
 <!-- parents -->
 <tr><td bgcolor="#99FF66"><a href="http://school.discovery.com/parents/"><img src="http://school.discovery.com/gallery/leftnav/generic/gennav_forparents.gif" width="160" height="24" alt="For Parents" border="0"/></a></td></tr>
<!-- favorites -->
 <tr><td><img src="http://school.discovery.com/gallery/leftnav/teacher/tchnav_favorites.gif" width="160" height="24" alt="Favorites" border="0"/></td></tr>
 <tr><td><a onmouseover="if (document.images) document.bb.src='http://school.discovery.com/gallery/leftnav/teacher/tchnav_bb_ovr.gif';" href="http://school.discovery.com/brainboosters/" onmouseout="if (document.images) document.bb.src='http://school.discovery.com/gallery/leftnav/teacher/tchnav_bb.gif';"><img src="http://school.discovery.com/gallery/leftnav/teacher/tchnav_bb.gif" width="160" height="27" alt="Brain Boosters" border="0" name="bb"/></a></td></tr>
 <tr><td><a onmouseover="if (document.images) document.cag.src='http://school.discovery.com/gallery/leftnav/teacher/tchnav_cag_ovr.gif';" href="http://school.discovery.com/clipart/" onmouseout="if (document.images) document.cag.src='http://school.discovery.com/gallery/leftnav/teacher/tchnav_cag.gif';"><img src="http://school.discovery.com/gallery/leftnav/teacher/tchnav_cag.gif" width="160" height="22" alt="Clip Art Gallery" border="0" name="cag"/></a></td></tr>
 <tr><td><a onmouseover="if (document.images) document.puzz.src='http://school.discovery.com/gallery/leftnav/teacher/tchnav_puzz_ovr.gif';" href="http://puzzlemaker.school.discovery.com/" onmouseout="if (document.images) document.puzz.src='http://school.discovery.com/gallery/leftnav/teacher/tchnav_puzz.gif';"><img src="http://school.discovery.com/gallery/leftnav/teacher/tchnav_puzz.gif" width="160" height="22" alt="Puzzlemaker" border="0" name="puzz"/></a></td></tr>
 <tr><td><a onmouseover="if (document.images) document.sfc.src='http://school.discovery.com/gallery/leftnav/teacher/tchnav_sfc_ovr.gif';" href="http://school.discovery.com/sciencefaircentral/" onmouseout="if (document.images) document.sfc.src='http://school.discovery.com/gallery/leftnav/teacher/tchnav_sfc.gif';"><img src="http://school.discovery.com/gallery/leftnav/teacher/tchnav_sfc.gif" width="160" height="22" alt="Science Fair Central" border="0" name="sfc"/></a></td></tr>
 <tr><td bgcolor="#CC99FF"><img src="http://school.discovery.com/gallery/odot.gif" width="1" height="1" border="0"/></td></tr>
 <tr><td><img src="/gallery/odot.gif" width="1" height="600" border="0"/></td></tr>
<!-- end 160 table -->
</table></td>
	<!-- end column -->
	
	<!-- 5px spacer -->
	<td width="5"><div class="spread5"></div></td>
	<!-- end 5px spacer -->
	
	<!-- column [ content ] -->
	<td width="450" align="left" valign="top">
	
	<table cellpadding="0" cellspacing="0" border="0" width="450">
	<tr>
		<!-- left 1px grey column -->
		<td bgcolor="#cccccc" width="1" height="629"></td>
		<!-- end left 1px grey column -->
		
		<!-- content -->
		<td width="448" align="left" valign="top">
		<!-- results data -->
		<xsl:call-template name="resultData" />
		<!-- end results data -->
		
		<!-- suggestions -->
		<xsl:call-template name="suggestions" />
		<!-- end suggestions -->
		
		<!-- marketing position -->
		<xsl:call-template name="promo" />
		<!-- end marketing position -->
		
		<!-- result block(s) -->
		<xsl:choose>
			<xsl:when test="$showResultsStyle = 'all'">
				<xsl:call-template name="features">
					<xsl:with-param name="more">1</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="greySpacer" />
				<xsl:call-template name="shopping">
					<xsl:with-param name="more">1</xsl:with-param>
				</xsl:call-template>
			</xsl:when>
			<xsl:when test="$showResultsStyle = 'features'">
				<xsl:call-template name="features">
					<xsl:with-param name="more">0</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="buttonsPN" />
			</xsl:when>
			<xsl:when test="$showResultsStyle = 'ecomm'">
				<xsl:call-template name="shopping">
					<xsl:with-param name="more">0</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="buttonsPN" />
			</xsl:when>
		</xsl:choose>
		<!-- end result block(s) -->
		</td>
		<!-- end content -->
		
		<!-- right 1px grey column -->
		<td bgcolor="#cccccc" width="1" height="629"></td>
		<!-- end right 1px grey column -->
	</tr>
	<tr>
		<td colspan="3" bgcolor="#cccccc" height="1"></td>
	</tr>
	</table>
	</td>
	<!-- end column -->
	
	<!-- 5px spacer -->
	<td width="5"><div class="spread5"></div></td>
	<!-- end 5px spacer -->
	
	<!-- column [ right ] -->
	<td width="150" align="left" valign="top"></td>
	<!-- end column -->
</tr>
</table>
<!-- end master table -->


<!-- footer -->
<div class="pageWidth"><div align="center" class="credits">
<p>
	Picture(s): DCI |<br />	
</p>
<p>
	By visiting this site, you agree to the terms and conditions<br />
	of our <a href="{$base}/utilities/about/visitoragreement.html">Visitor Agreement</a>. Please read. <a href="{$base}/utilities/about/privacypolicy.html">Privacy Policy</a>.<br />
	<a href="{$base}/utilities/about/copyright.html">Copyright <xsl:call-template name="copy" /></a> 2003 Discovery Communications Inc.<br />
</p>
<p>
	Powered by <span style="color: rgb(21,133,254);">G</span><span style="color: rgb(252,19,41);">o</span><span style="color: rgb(255,213,89);">o</span><span style="color: rgb(21,133,254);">g</span><span style="color: rgb(130,212,71);">l</span><span style="color: rgb(252,19,41);">e</span><xsl:call-template name="trade" /><br />
</p>
</div></div>
<!-- end footer -->


<nuiad_html />


</body>
</html>
</xsl:template>
<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( end )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [0] )
-->



<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( begin )
call-template > name
returns search term, total results and time to retreive results in colored bar ( height = 25px )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [0.a] )
-->
<xsl:template name="resultData">
	<xsl:variable name="time" select="//GSP/TM" />
<table cellpadding="0" cellspacing="0" border="0" width="448">
<tr bgcolor="{$primeBgcolor}">
	<td width="214" height="25" align="left" valign="middle"><div style="margin: 5px 0px 5px 15px;"><div class="textWhite">Searched for: <b><xsl:value-of select="$queryDisplay" /></b></div></div></td>
	<td width="214" align="right" valign="middle"><div style="margin: 5px 15px 5px 0px;"><div class="textWhite">Results: <b><xsl:value-of select="format-number($totalResults,'###,###,###')" /></b> in <b><xsl:value-of select="round($time * 100.0) div 100.0" /></b> sec.</div></div></td>
</tr>
</table><br />
</xsl:template>
<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( end )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [0.a] )
-->



<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( begin )
call-template > name
displays a spelling or synonym suggestion ( if required )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [0.b] )
-->
<xsl:template name="suggestions">
	<xsl:if test="$spelling or $synonym">
		<div style="margin: 15px 15px 10px 15;"><div class="text">
			<!-- s p e l l i n g -->
			<xsl:if test="$spelling">
			<b class="bad">Did you mean:</b><xsl:text> </xsl:text><a href="/search?q={//GSP/Spelling/Suggestion[1]/@q}&amp;num={$initTotal}&amp;proxystylesheet={$proxystylesheet}&amp;{$baseURL}"><b class="heads"><xsl:value-of disable-output-escaping="yes" select="//GSP/Spelling/Suggestion[1]" /></b></a><br />
			</xsl:if>
			<!-- s y n o n y m s -->
			<xsl:if test="$synonym">
			<b class="bad">You could also try:</b><xsl:text> </xsl:text>
				<xsl:for-each select="//GSP/Synonyms/OneSynonym">
					<a href="/search?q={@q}&amp;num={$initTotal}&amp;proxystylesheet={$proxystylesheet}&amp;{$baseURL}"><b class="heads"><xsl:value-of disable-output-escaping="yes" select="." /></b></a><xsl:if test="position() != last()">,<xsl:text> </xsl:text></xsl:if>
				</xsl:for-each>
			<br />
			</xsl:if>
		</div></div>
	</xsl:if>
</xsl:template>
<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( end )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [0.b] )
-->



<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( begin )
call-template > name
displays a marketing table ( if required )
format:
	<b>%%Headline</b><br />
	%%Text block<br />
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [0.c] )
-->
<xsl:template name="promo">
	<xsl:if test="$keymatch">
		<div align="center"><table cellpadding="0" cellspacing="0" border="0" width="448">
		<tr bgcolor="{$promoBgcolor}">
			<td width="448" align="left" valign="top">
			<div style="margin: 5px 10px 5px 10px;"><div class="text">
				<div align="right"><div class="textGrey">Promotion</div></div>
				<xsl:value-of disable-output-escaping="yes" select="//GSP/GM/GD" />
				<div style="margin-left: 17px;">url:<xsl:call-template name="nbsp" /><span class="crdts"><a href="{//GSP/GM/GL}"><xsl:value-of select="substring(//GSP/GM/GL,8,70)" /><xsl:if test="string-length(//GSP/GM/GL) &gt; '70'"><xsl:text>...</xsl:text></xsl:if></a></span></div>
			</div></div></td>
		</tr>
		</table></div>
	</xsl:if>
</xsl:template>
<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( end )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [0.c] )
-->



<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( begin )
call-template > name
displays the features section of the results ( top 5 )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [0.d.0] )
-->
<xsl:template name="features">
	<xsl:param name="more" />
<!-- block [ features ] -->
<div class="mrgn15"><div class="text">
	<table cellpadding="0" cellspacing="0" border="0" width="428">
	<tr>
		<td width="214" height="25" align="left" valign="middle"><div class="heads"><div class="primeColor"><b>Features</b></div></div></td>
		<xsl:choose>
			<xsl:when test="$more = '1' and $countFeatures &gt; '5'"><td width="214" height="25" align="right" valign="middle"><div class="text">Top <b>5</b> results</div></td></xsl:when>
			<xsl:when test="$more = '0'"><td width="214" height="25" align="right" valign="middle"><div class="text"><b><xsl:value-of select="$startAt" /></b> to <b><xsl:value-of select="$endAt" /></b> of <b><xsl:value-of select="format-number($totalResults,'###,###,###')" /></b></div></td></xsl:when>
			<xsl:when test="$countFeatures = '0'"><td width="214" height="25" align="right" valign="middle"><div class="text"><b>no</b> results</div></td></xsl:when>
			<xsl:otherwise><td width="214" height="25" align="right" valign="middle"><div class="text">Top <b><xsl:value-of select="$countFeatures" /></b> results</div></td></xsl:otherwise>
		</xsl:choose>
	</tr>
	</table><br />
	
	<xsl:choose>
		<xsl:when test="$countFeatures &gt; '0'">
			<xsl:for-each select="//GSP/RES/R[not(MT/@V = 'ecommerce') and not(MT/@V = 'ecommSchool')]">
				<xsl:call-template name="featuresData" />
			</xsl:for-each>
		</xsl:when>
		<xsl:otherwise>
			<p style="margin: 25px 0px 25px 0px;">
				Sorry, no content was found for your search on [ <span class="primeColor"><xsl:value-of select="$queryDisplay" /></span> ]<br />
				Please try again.<br />
			</p>
		</xsl:otherwise>
	</xsl:choose>
	
	<xsl:if test="$more = '0'">
		<div align="right" class="text" style="margin-top: 10px;"><b><xsl:value-of select="$startAt" /></b> to <b><xsl:value-of select="$endAt" /></b> of <b><xsl:value-of select="format-number($totalResults,'###,###,###')" /></b></div>
	</xsl:if>
	
	<xsl:if test="$more = '1' and $countFeatures &gt; '5'">
		<div align="right"><a href="/search?q={$query}&amp;restrict=schContent&amp;proxystylesheet={$proxystylesheet}&amp;site={$site}&amp;client={$client}&amp;output={$output}&amp;getfields=*&amp;filter=0"><img src="http://media.animal.discovery.com/sgallery/more.gif" width="45" height="13" border="0" alt="more" /></a></div>
	</xsl:if>
</div></div>
<!-- end block -->
</xsl:template>
<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( end )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [0.d.0] )
-->



<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( begin )
call-template > name
counts number of features to display
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( sub T E M P L A T E [0.d.0.a] )
-->
<xsl:template name="featuresData">
	<xsl:choose>
		<xsl:when test="$showResultsStyle = 'all'">
			<xsl:if test="position() &lt;= '5'">
				<xsl:call-template name="featuresBlock" />
			</xsl:if>
		</xsl:when>
		<xsl:otherwise>
			<xsl:call-template name="featuresBlock" />
		</xsl:otherwise>
	</xsl:choose>
</xsl:template>
<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( end )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( sub T E M P L A T E [0.d.0.a] )
-->



<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( begin )
call-template > name
creates feature block results
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( sub T E M P L A T E [0.d.0.a.0] )
-->
<xsl:template name="featuresBlock">
<p>
	<b><xsl:value-of disable-output-escaping="yes" select="T" /></b><br />
	<xsl:choose>
		<xsl:when test="contains(S,'&lt;br&gt;')"><xsl:value-of disable-output-escaping="yes" select="concat(substring-before(S,'&lt;br&gt;'), substring-after(S,'&lt;br&gt;'))" /><br /></xsl:when>
		<xsl:otherwise><xsl:value-of disable-output-escaping="yes" select="S" /><br /></xsl:otherwise>
	</xsl:choose>
	<div class="shim5"></div>
	<table cellpadding="0" cellspacing="0" border="0" width="428">
	<xsl:if test="MT[@N = 'contentType']">
		<tr>
			<td width="40" align="right" valign="top"><div class="text">type:<xsl:call-template name="nbsp" /></div></td>
			<td width="388" align="left" valign="top"><div class="text"><xsl:value-of select="MT[@N = 'contentType']/@V" /></div></td>
		</tr>
	</xsl:if>
	<tr>
		<td width="40" align="right" valign="top"><div class="text">url:<xsl:call-template name="nbsp" /></div></td>
		<td width="388" align="left" valign="top"><div class="crdts"><a href="{U}"><xsl:value-of select="substring(U,8,70)" /><xsl:if test="string-length(U) &gt; '70'"><xsl:text>...</xsl:text></xsl:if></a></div></td>
	</tr>
	<xsl:if test="MT[@N = 'launchDate']">
		<xsl:variable name="monthNumber"><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,1,2)" /></xsl:variable>
		<xsl:choose>
			<xsl:when test="$monthNumber = '01'">
				<tr>
					<td width="40" align="right" valign="top"><div class="textGrey">date:<xsl:call-template name="nbsp" /></div></td>
					<td width="388" align="left" valign="top"><div class="textGrey">January<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,4,2)" />,<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,7,4)" /></div></td>
				</tr>
			</xsl:when>
			<xsl:when test="$monthNumber = '02'">
				<tr>
					<td width="40" align="right" valign="top"><div class="textGrey">date:<xsl:call-template name="nbsp" /></div></td>
					<td width="388" align="left" valign="top"><div class="textGrey">Febuary<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,4,2)" />,<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,7,4)" /></div></td>
				</tr>
			</xsl:when>
			<xsl:when test="$monthNumber = '03'">
				<tr>
					<td width="40" align="right" valign="top"><div class="textGrey">date:<xsl:call-template name="nbsp" /></div></td>
					<td width="388" align="left" valign="top"><div class="textGrey">March<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,4,2)" />,<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,7,4)" /></div></td>
				</tr>
			</xsl:when>
			<xsl:when test="$monthNumber = '04'">
				<tr>
					<td width="40" align="right" valign="top"><div class="textGrey">date:<xsl:call-template name="nbsp" /></div></td>
					<td width="388" align="left" valign="top"><div class="textGrey">April<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,4,2)" />,<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,7,4)" /></div></td>
				</tr>
			</xsl:when>
			<xsl:when test="$monthNumber = '05'">
				<tr>
					<td width="40" align="right" valign="top"><div class="textGrey">date:<xsl:call-template name="nbsp" /></div></td>
					<td width="388" align="left" valign="top"><div class="textGrey">May<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,4,2)" />,<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,7,4)" /></div></td>
				</tr>
			</xsl:when>
			<xsl:when test="$monthNumber = '06'">
				<tr>
					<td width="40" align="right" valign="top"><div class="textGrey">date:<xsl:call-template name="nbsp" /></div></td>
					<td width="388" align="left" valign="top"><div class="textGrey">June<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,4,2)" />,<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,7,4)" /></div></td>
				</tr>
			</xsl:when>
			<xsl:when test="$monthNumber = '07'">
				<tr>
					<td width="40" align="right" valign="top"><div class="textGrey">date:<xsl:call-template name="nbsp" /></div></td>
					<td width="388" align="left" valign="top"><div class="textGrey">July<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,4,2)" />,<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,7,4)" /></div></td>
				</tr>
			</xsl:when>
			<xsl:when test="$monthNumber = '08'">
				<tr>
					<td width="40" align="right" valign="top"><div class="textGrey">date:<xsl:call-template name="nbsp" /></div></td>
					<td width="388" align="left" valign="top"><div class="textGrey">August<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,4,2)" />,<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,7,4)" /></div></td>
				</tr>
			</xsl:when>
			<xsl:when test="$monthNumber = '09'">
				<tr>
					<td width="40" align="right" valign="top"><div class="textGrey">date:<xsl:call-template name="nbsp" /></div></td>
					<td width="388" align="left" valign="top"><div class="textGrey">September<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,4,2)" />,<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,7,4)" /></div></td>
				</tr>
			</xsl:when>
			<xsl:when test="$monthNumber = '10'">
				<tr>
					<td width="40" align="right" valign="top"><div class="textGrey">date:<xsl:call-template name="nbsp" /></div></td>
					<td width="388" align="left" valign="top"><div class="textGrey">October<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,4,2)" />,<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,7,4)" /></div></td>
				</tr>
			</xsl:when>
			<xsl:when test="$monthNumber = '11'">
				<tr>
					<td width="40" align="right" valign="top"><div class="textGrey">date:<xsl:call-template name="nbsp" /></div></td>
					<td width="388" align="left" valign="top"><div class="textGrey">November<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,4,2)" />,<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,7,4)" /></div></td>
				</tr>
			</xsl:when>
			<xsl:when test="$monthNumber = '12'">
				<tr>
					<td width="40" align="right" valign="top"><div class="textGrey">date:<xsl:call-template name="nbsp" /></div></td>
					<td width="388" align="left" valign="top"><div class="textGrey">December<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,4,2)" />,<xsl:call-template name="nbsp" /><xsl:value-of select="substring(MT[@N = 'launchDate']/@V,7,4)" /></div></td>
				</tr>
			</xsl:when>
		</xsl:choose>
	</xsl:if>
	<tr>
		<td width="40" align="right" valign="top"><div class="textGrey">size:<xsl:call-template name="nbsp" /></div></td>
		<td width="388" align="left" valign="top"><div class="textGrey"><xsl:value-of select="HAS/C/@SZ" /></div></td>
	</tr>
	</table>
</p>
</xsl:template>
<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( end )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( sub T E M P L A T E [0.d.0.a.0] )
-->

<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( begin )
call-template > name
displays the discovery store section of the results
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [0.d.2] )
-->
<xsl:template name="shopping">
	<xsl:param name="more" />
<!-- block [ shopping ] -->
<div class="mrgn15"><div class="text">
	<table cellpadding="0" cellspacing="0" border="0" width="428">
	<tr>
		<td width="214" height="25" align="left" valign="middle"><div class="heads"><div class="primeColor"><b>Teacher Store</b></div></div></td>
		<xsl:choose>
			<xsl:when test="$more = '1' and $countStore &gt; '3'"><td width="214" height="25" align="right" valign="middle"><div class="text">Top <b>3</b> results</div></td></xsl:when>
			<xsl:when test="$more = '0'"><td width="214" height="25" align="right" valign="middle"><div class="text"><b><xsl:value-of select="$startAt" /></b> to <b><xsl:value-of select="$endAt" /></b> of <b><xsl:value-of select="format-number($totalResults,'###,###,###')" /></b></div></td></xsl:when>
			<xsl:when test="$countStore = '0'"><td width="214" height="25" align="right" valign="middle"><div class="text"><b>no</b> results</div></td></xsl:when>
			<xsl:otherwise><td width="214" height="25" align="right" valign="middle"><div class="text">Top <b><xsl:value-of select="$countStore" /></b> results</div></td></xsl:otherwise>
		</xsl:choose>
	</tr>
	</table><br />
	
	<xsl:choose>
		<xsl:when test="$countStore &gt; '0'">
			<xsl:for-each select="//GSP/RES/R[MT/@N = 'contentType' and (MT/@V = 'ecommerce' or MT/@V = 'ecommSchool')]">
				<xsl:call-template name="shoppingData" />
			</xsl:for-each>
		</xsl:when>
		<xsl:otherwise>
			<p style="margin: 25px 0px 25px 0px;">
				Sorry, no store items were found for your search on [ <span class="primeColor"><xsl:value-of select="$queryDisplay" /></span> ]<br />
				Please try again.<br />
			</p>
		</xsl:otherwise>
	</xsl:choose>
	
	<xsl:if test="$more = '0'">
		<div align="right" class="text" style="margin-top: 10px;"><b><xsl:value-of select="$startAt" /></b> to <b><xsl:value-of select="$endAt" /></b> of <b><xsl:value-of select="format-number($totalResults,'###,###,###')" /></b></div>
	</xsl:if>
	
	<xsl:if test="$more = '1' and $countStore &gt; '3'">
		<div align="right"><a href="/search?q={$query}&amp;restrict=shopping&amp;proxystylesheet={$proxystylesheet}&amp;site={$site}&amp;client={$client}&amp;output={$output}&amp;getfields=*&amp;filter=0"><img src="http://media.animal.discovery.com/sgallery/more.gif" width="45" height="13" border="0" alt="more" /></a></div>
	</xsl:if>
</div></div>
<!-- end block -->
</xsl:template>
<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( end )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [0.d.2] )
-->



<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( begin )
call-template > name
counts number of shopping items to display
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( sub T E M P L A T E [0.d.2.a] )
-->
<xsl:template name="shoppingData">
	<xsl:choose>
		<xsl:when test="$showResultsStyle = 'all'">
			<xsl:if test="position() &lt;= '3'">
				<xsl:call-template name="shoppingBlock" />
			</xsl:if>
		</xsl:when>
		<xsl:otherwise>
			<xsl:call-template name="shoppingBlock" />
		</xsl:otherwise>
	</xsl:choose>
</xsl:template>
<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( end )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( sub T E M P L A T E [0.d.2.a] )
-->



<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( begin )
call-template > name
creates shopping results
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( sub T E M P L A T E [0.d.2.a.0] )
-->
<xsl:template name="shoppingBlock">
<p>
	<b><xsl:value-of disable-output-escaping="yes" select="MT[@N = 'title']/@V" /></b><br />
	<xsl:choose>
		<xsl:when test="MT[@N = 'description' and @V != '']"><xsl:value-of disable-output-escaping="yes" select="MT[@N = 'description']/@V" /><xsl:call-template name="nbsp" /><a href="{U}">more <xsl:call-template name="raquo" /></a><br /></xsl:when>
		<xsl:otherwise>
			<xsl:choose>
				<xsl:when test="contains(S,'&lt;br&gt;')"><xsl:value-of disable-output-escaping="yes" select="concat(substring-before(S,'&lt;br&gt;'), substring-after(S,'&lt;br&gt;'))" /><xsl:call-template name="nbsp" /><a href="{U}">more <xsl:call-template name="raquo" /></a><br /></xsl:when>
				<xsl:otherwise><xsl:value-of disable-output-escaping="yes" select="S" /><xsl:call-template name="nbsp" /><a href="{U}">more <xsl:call-template name="raquo" /></a><br /></xsl:otherwise>
			</xsl:choose>
		</xsl:otherwise>
	</xsl:choose>
	<xsl:if test="MT[@N = 'price']">
		<div class="shim5"></div>
		<div class="textGrey" style="margin-left: 5px;">price:<xsl:call-template name="nbsp" /><xsl:value-of disable-output-escaping="yes" select="MT[@N = 'price']/@V" /></div>
	</xsl:if>
</p>
</xsl:template>
<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( end )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( sub T E M P L A T E [0.d.2.a.0] )
-->



<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( begin )
call-template > name
creates grey horizontal line seperating multiple category result returns ( height = 21px )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [0.d.3] )
-->
<xsl:template name="greySpacer">
<!-- spacer -->
<div class="shim10"></div>
<div><img src="http://media.animal.discovery.com/common/sgallery/greypixel.gif" width="448" height="1" border="0" alt="grey.pixel" /></div>
<div class="shim10"></div>
<!-- end spacer -->
</xsl:template>
<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( end )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [0.d.3] )
-->



<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( begin )
call-template > name
creates ( previous | count | next ) buttons
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [0.d.4] )
-->
<xsl:template name="buttonsPN">
<div align="center" style="margin: 30px 0px 20px 0px;">
	<table cellpadding="0" cellspacing="0" border="0">
	<tr>
	<xsl:if test="($prev) or ($next)">
		<!-- button [ previous ] -->
		<xsl:choose>
			<xsl:when test="$prev"><td width="55" height="20" align="right" valign="middle"><a href="/search?q={$query}&amp;{$baseURL}&amp;proxystylesheet={$proxystylesheet}&amp;start={$startAt - $pageResults - 1}"><img src="http://media.animal.discovery.com/sgallery/prevon.gif" width="50" height="10" border="0" alt="previous" /></a><span class="spread5"></span></td></xsl:when>
			<xsl:otherwise><td width="55" height="20"></td></xsl:otherwise>
		</xsl:choose>
		<!-- end button -->
		
		<!-- number strip -->
		<xsl:variable name="modifiedEnd">
			<xsl:choose>
				<xsl:when test="$next"><xsl:value-of select="$totalResults" /></xsl:when>
				<xsl:otherwise><xsl:value-of select="$endAt" /></xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		
		<xsl:call-template name="numberStrip">
			<xsl:with-param name="start" select="0" />
			<xsl:with-param name="end" select="$modifiedEnd" />
			<xsl:with-param name="currentAt" select="($startAt)-1" />
		</xsl:call-template>
		<!-- end number strip -->
		
		<!-- button [ next ] -->
		<xsl:choose>
			<xsl:when test="$next"><td width="55" height="20" align="right" valign="middle"><span class="spread5"></span><a href="/search?q={$query}&amp;{$baseURL}&amp;proxystylesheet={$proxystylesheet}&amp;start={$startAt + $pageResults - 1}"><img src="http://media.animal.discovery.com/sgallery/nexton.gif" width="50" height="10" border="0" alt="next" /></a></td></xsl:when>
			<xsl:otherwise><td width="55" height="20"></td></xsl:otherwise>
		</xsl:choose>
		<!-- end button -->
	</xsl:if>
	</tr>
	</table>
</div>
</xsl:template>
<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( end )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [0.d.4] )
-->



<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( begin )
call-template > name
creates number strip
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [0.d.4.a] )
-->
<xsl:template name="numberStrip">
	<xsl:param name="start" select="'0'" />
	<xsl:param name="end" />
	<xsl:param name="currentAt" />
	
	<xsl:choose>
		<xsl:when test="($start)&lt;(($currentAt)-(10*($pageResults)))"></xsl:when>
		<xsl:when test="(($currentAt)&gt;=($start)) and (($currentAt)&lt;(($start)+($pageResults)))">
			<td align="center" valign="middle"><div class="mrgn5"><div class="text"><b><xsl:value-of select="(($start)div($pageResults))+1" /></b></div></div></td>
		</xsl:when>
		<xsl:otherwise>
			<td align="center" valign="middle"><div class="mrgn5"><div class="text"><a href="/search?q={$query}&amp;{$baseURL}&amp;proxystylesheet={$proxystylesheet}&amp;start={$start}"><b><xsl:value-of select="(($start)div($pageResults))+1" /></b></a></div></div></td>
		</xsl:otherwise>
	</xsl:choose>
	
	<!-- recursively iterate through strip -->
	<xsl:if test="((($start)+($pageResults))&lt;($end)) and ((($start)+($pageResults))&lt;(($currentAt)+(10*($pageResults))))">
		<xsl:call-template name="numberStrip">
			<xsl:with-param name="start" select="$start + $pageResults" />
			<xsl:with-param name="end" select="$end" />
			<xsl:with-param name="currentAt" select="$currentAt" />
		</xsl:call-template>
	</xsl:if>
	<!-- end iterate -->
</xsl:template>
<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( end )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [0.d.4.a] )
-->



<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( begin )
html entities
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [1] )
-->
<xsl:template name="nbsp">
  <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:template name="copy">
  <xsl:text disable-output-escaping="yes">&amp;copy;</xsl:text>
</xsl:template>

<xsl:template name="mdash">
  <xsl:text disable-output-escaping="yes">&amp;mdash;</xsl:text>
</xsl:template>

<xsl:template name="laquo">
  <xsl:text disable-output-escaping="yes">&amp;laquo;</xsl:text>
</xsl:template>

<xsl:template name="raquo">
  <xsl:text disable-output-escaping="yes">&amp;raquo;</xsl:text>
</xsl:template>

<xsl:template name="trade">
  <xsl:text disable-output-escaping="yes">&amp;trade;</xsl:text>
</xsl:template>
<!--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( end )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( T E M P L A T E [1] )
-->

</xsl:stylesheet>
