AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 18.219.44.171


Current Path : /var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xsl/
Upload File :
Current File : /var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xsl/records_new.xsl

<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
	
	<xsl:template name="table_img">
		<xsl:param name="seasonin" />
		<xsl:param name="seasonout" />
		<xsl:param name="type_number" />
		<xsl:param name="url_type" />
		<xsl:param name="l_id" />
		<xsl:param name="url_link" />
		<xsl:param name="abrev_lang" />
		<xsl:param name="pos_row" />
		<xsl:param name="tble_name" />

			<xsl:if test="$tble_name = 'evolution'">
				<table cellpadding="0" cellspacing="0" border="0" width="100%" class="small_table">
					<tr>
						<td align="left">
							<!--
							<a href="{concat($url_type, $l_id)}" target="_blank">
								<xsl:value-of select="$abrev_lang" />
							</a>
							
								<a href="javascript:" onClick="open_window_browser('{concat($url_type,'-hugo-', $l_id)}')">
							-->

							<xsl:choose>
								<xsl:when test="$type_number = '3'">
									<xsl:variable name="currentseason" select="document('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/saisons.xml')//saison/items0/item[@from=$seasonin]/@seasonregid" />
									<a href="javascript:" onClick="open_window_browser_dynamic('{concat($url_type, $l_id, '&amp;currentseason=', $currentseason)}','{$url_link}')">
										<xsl:value-of select="$abrev_lang" />
									</a>
								</xsl:when>
								<xsl:otherwise>
									<a href="javascript:" onClick="open_window_browser_dynamic('{concat($url_type,$l_id)}','{$url_link}')">
										<xsl:value-of select="$abrev_lang" />
									</a>
								</xsl:otherwise>
							</xsl:choose>

							<xsl:if test="$pos_row = 1">
								<xsl:if test="$tble_name = 'main'">									
									<img src="img/flash.gif" width="0" height="0" onLoad="call_swf_video('{$l_id}', '{$lang}'), '{$abrev_lang}');" />
								</xsl:if>
							</xsl:if>
						</td>
						<td align="right">
							<xsl:if test="$type_number = '1'">
								<img src="create_on_demand_ls.php?id_register={$l_id}&amp;type=icon&amp;in={$seasonin}&amp;out={$seasonout}&amp;lang={$lang}" width="32" height="32" border="0" id="{$l_id}"/>
							</xsl:if>
							<xsl:if test="$type_number = '3'">
								<img id="a" src="/create_on_demand.php?id_register={$l_id}&amp;type=crest&amp;in={$seasonin}&amp;out={$seasonout}&amp;lang={$lang}" width="25" height="25"/>
							</xsl:if>
							<xsl:if test="$type_number = '5'">
								<img id="b" src="create_on_demand_ls.php?id_register={$l_id}&amp;type=icon&amp;in={$seasonin}&amp;out={$seasonout}&amp;lang={$lang}" width="32" height="32" border="0"/>
							</xsl:if>
							<xsl:if test="$type_number = '6'">
								<img id="c" src="create_on_demand_ls.php?id_register={$l_id}&amp;type=icon&amp;in={$seasonin}&amp;out={$seasonout}&amp;lang={$lang}" width="32" height="32" border="0"/>
							</xsl:if>
						</td>

					</tr>
				</table>
			</xsl:if>
			<xsl:if test="$tble_name != 'evolution'">
				<!--
				<a href="{concat($url_type, $l_id)}" target="_blank">
					<xsl:value-of select="$abrev_lang" />
				</a>
				-->

				<xsl:choose>
					<xsl:when test="$type_number = '3'">
						<xsl:variable name="currentseason" select="document('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/saisons.xml')//saison/items0/item[@from=$seasonin]/@seasonregid" />
						<a href="javascript:" onClick="open_window_browser_dynamic('{concat($url_type, $l_id, '&amp;currentseason=', $currentseason)}','{$url_link}')">
							<xsl:value-of select="$abrev_lang" />
						</a>
					</xsl:when>
					<xsl:otherwise>
						<a href="javascript:" onClick="open_window_browser_dynamic('{concat($url_type, $l_id)}','{$url_link}')">
							<xsl:value-of select="$abrev_lang" />
						</a>
					</xsl:otherwise>
				</xsl:choose>

				<xsl:if test="$pos_row = 1 and $type_number != 3">
					<xsl:if test="$tble_name = 'main'">
						<img src="img/flash.gif" width="0" height="0" onLoad="call_swf_video('{$l_id}', '{$lang}', '{$abrev_lang}');" />
					</xsl:if>
				</xsl:if>
			</xsl:if>



	</xsl:template>

	<xsl:template name="recordtable">
		<xsl:param name="title" />
		<xsl:param name="title_en" />
		<xsl:param name="title_sub" />
		<xsl:param name="title_sub_en" />
		<xsl:param name="tds" />
		<xsl:param name="tds_en" />
		<xsl:param name="rows" />
		<xsl:param name="table_w" />
		<xsl:param name="table_name" />
		<xsl:param name="url_link" />

		<xsl:variable name="type1_fr" select="'../../../lang_fr/index.php?page=2147483647&amp;status_type=1&amp;id_register='" />
		<xsl:variable name="type2_fr" select="'../../../lang_fr/index.php?page=342374&amp;id_partie='" />
		<xsl:variable name="type3_fr" select="'../../../lang_fr/index.php?page=27844&amp;id_equipe='" />
		<xsl:variable name="type4_fr" select="'../../../lang_fr/index.php?page=342874&amp;id_register='" />
		<xsl:variable name="type5_fr" select="'../../../lang_fr/index.php?page=2147483648&amp;status_type=2&amp;id_register='" />
		<xsl:variable name="type6_fr" select="'../../../lang_fr/index.php?page=2147483647&amp;status_type=3&amp;id_register='" />

		<xsl:variable name="type1_en" select="'../../../lang_en/index.php?page=2147483647&amp;status_type=1&amp;id_register='" />
		<xsl:variable name="type2_en" select="'../../../lang_en/index.php?page=342374&amp;id_partie='" />
		<xsl:variable name="type3_en" select="'../../../lang_en/index.php?page=27844&amp;id_equipe='" />
		<xsl:variable name="type4_en" select="'../../../lang_en/index.php?page=342874&amp;id_register='" />
		<xsl:variable name="type5_en" select="'../../../lang_en/index.php?page=2147483648&amp;status_type=2&amp;id_register='" />
		<xsl:variable name="type6_en" select="'../../../lang_en/index.php?page=2147483647&amp;status_type=3&amp;id_register='" />

		<xsl:if test="$title != ''">
			<tr>
				<xsl:if test="$lang = 'en'">
					<td colspan="{count($tds)}" class="bg_top_title">
						<xsl:value-of select="$title_en" />
					</td>
				</xsl:if>
				<xsl:if test="$lang = 'fr'">
					<td colspan="{count($tds)}" class="bg_top_title">
						<xsl:value-of select="$title" />
					</td>
				</xsl:if>
			</tr>
		</xsl:if>
		<xsl:if test="$title_sub != ''">
			<tr>
				<xsl:if test="$lang = 'en'">
					<td colspan="{count($tds)}" class="bg_sub_title">
						<xsl:value-of select="$title_sub_en" />
					</td>
				</xsl:if>
				<xsl:if test="$lang = 'fr'">
					<td colspan="{count($tds)}" class="bg_sub_title">
						<xsl:value-of select="$title_sub" />
					</td>
				</xsl:if>
			</tr>
		</xsl:if>
		<tr>
			<xsl:if test="$lang = 'en'">
				<xsl:for-each select="//mainrecord/head/td_en">
					<xsl:if test="position() = last()">
						<td align="left" class="head_record_border" title="{.}" style="cursor:default; width:auto;">
							<strong>
								<xsl:value-of select="@abrv" />
							</strong>
						</td>
					</xsl:if>
					<xsl:if test="position() != last()">
						<td align="left" class="head_record_last_cell_border" title="{.}" style="cursor:default; width:auto">
							<strong>
								<xsl:value-of select="@abrv" />
							</strong>
						</td>
					</xsl:if>
				</xsl:for-each>
			</xsl:if>
			<xsl:if test="$lang = 'fr'">
				<xsl:for-each select="$tds">
					<xsl:if test="position() = last()">
						<td align="left" class="head_record_border" title="{.}" style="cursor:default; width:auto;">
							<strong>
								<xsl:value-of select="@abrv" />
							</strong>
						</td>
					</xsl:if>
					<xsl:if test="position() != last()">
						<td align="left" class="head_record_last_cell_border" title="{.}" style="cursor:default; width:auto">
							<strong>
								<xsl:value-of select="@abrv" />
							</strong>
						</td>
					</xsl:if>
				</xsl:for-each>
			</xsl:if>
		</tr>
		<xsl:for-each select="$rows">
			<xsl:variable name="rowpos" select="position()" />
			<tr>
				<xsl:for-each select="./td">
					<xsl:if test="position() != last()">
						<xsl:choose>
							<xsl:when test="@colspan != ''">
								<td colspan="{@colspan}" align="left" class="record_table_border" title="{.}" style="width:auto; cursor:default">
									<xsl:choose>
										<xsl:when test="@lid != ''">

											<xsl:if test="$lang='en'">

												<xsl:if test="@lidtype = 1">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type1_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv_en" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

												<xsl:if test="@lidtype = 2">	
													<a href="javascript:" onClick="open_window_browser_dynamic('{concat($type2_en, @lid)}','{@url_link}')">
														<xsl:value-of select="@abrv" />
													</a>																									
												</xsl:if>
												<xsl:if test="@lidtype = 3">
													<xsl:call-template name="table_img">
														<xsl:with-param name="seasonin" select="@seasonin" />
														<xsl:with-param name="seasonout" select="@seasonout" />
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type3_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv_en" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>

													<!--<a href="javascript:" onClick="open_window_browser('{concat($type3_en, @lid)}')">
														<xsl:value-of select="@abrv_en" />
													</a>-->
												</xsl:if>
												<xsl:if test="@lidtype = 4">
													<a href="javascript:" onClick="open_window_browser_dynamic('{concat($type4_en, @lid)}','{$url_link}')">
														<xsl:value-of select="@abrv_en" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 5">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type5_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv_en" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>
												<xsl:if test="@lidtype = 6">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type6_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv_en" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

											</xsl:if>

											<xsl:if test="$lang='fr'">

												<xsl:if test="@lidtype = 1">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type1_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

												<xsl:if test="@lidtype = 2">			
													<a href="javascript:" onClick="open_window_browser_dynamic('{concat($type2_fr, @lid)}','{@url_link}')">
														<xsl:value-of select="@abrv" />
													</a>																						
												</xsl:if>
												<xsl:if test="@lidtype = 3">
													<xsl:call-template name="table_img">
														<xsl:with-param name="seasonin" select="@seasonin" />
														<xsl:with-param name="seasonout" select="@seasonout" />
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type3_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>

													<!--<a href="javascript:" onClick="open_window_browser('{concat($type3_fr, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>-->
												</xsl:if>
												<xsl:if test="@lidtype = 4">
													<a href="javascript:" onClick="open_window_browser_dynamic('{concat($type4_fr, @lid)}','{$url_link}')">
														<xsl:value-of select="@abrv" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 5">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type5_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>
												<xsl:if test="@lidtype = 6">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type6_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

											</xsl:if>
										</xsl:when>
										<xsl:otherwise>
											<xsl:if test="$lang='en'">
												<xsl:value-of select="@abrv_en" />
											</xsl:if>
											<xsl:if test="$lang='fr'">
												<xsl:value-of select="@abrv" />
											</xsl:if>
										</xsl:otherwise>
									</xsl:choose>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td align="left" class="record_table_border" title="{.}" style="width:auto; cursor:default">
									<xsl:choose>
										<xsl:when test="@lid != ''">
											<xsl:if test="$lang='en'">

												<xsl:if test="@lidtype=1">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type1_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

												<xsl:if test="@lidtype = 2">
													<a href="javascript:" onClick="open_window_browser_dynamic('{concat($type2_en, @lid)}','{@url_link}')">
														<xsl:value-of select="@abrv" />
													</a>																									
												</xsl:if>
												<xsl:if test="@lidtype = 3">
													<xsl:call-template name="table_img">
														<xsl:with-param name="seasonin" select="@seasonin" />
														<xsl:with-param name="seasonout" select="@seasonout" />
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type3_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>

													<!-- <a href="javascript:" onClick="open_window_browser('{concat($type3_en, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a> -->
												</xsl:if>
												<xsl:if test="@lidtype = 4">
													<a href="javascript:" onClick="open_window_browser_dynamic('{concat($type4_en, @lid)}','{$url_link}')">
														<xsl:value-of select="@abrv" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 5">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type5_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>
												<xsl:if test="@lidtype = 6">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type6_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

											</xsl:if>
											<xsl:if test="$lang='fr'">

												<xsl:if test="@lidtype=1">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type1_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

												<xsl:if test="@lidtype = 2">		
													<a href="javascript:" onClick="open_window_browser_dynamic('{concat($type2_fr, @lid)}','{@url_link}')">
														<xsl:value-of select="@abrv" />
													</a>																								
												</xsl:if>
												<xsl:if test="@lidtype = 3">
													<xsl:call-template name="table_img">
														<xsl:with-param name="seasonin" select="@seasonin" />
														<xsl:with-param name="seasonout" select="@seasonout" />
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type3_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>

													<!--<a href="javascript:" onClick="open_window_browser('{concat($type3_fr, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>-->
												</xsl:if>
												<xsl:if test="@lidtype = 4">
													<a href="javascript:" onClick="open_window_browser_dynamic('{concat($type4_fr, @lid)}','{$url_link}')">
														<xsl:value-of select="@abrv" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 5">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type5_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>
												<xsl:if test="@lidtype = 6">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type6_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

											</xsl:if>
										</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select="@abrv" />
										</xsl:otherwise>
									</xsl:choose>
								</td>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:if>
					<xsl:if test="position() = last()">
						<xsl:choose>
							<xsl:when test="@colspan != ''">
								<td colspan="{@colspan}" align="left" class="record_table_last_cell_border" title="{.}" style="width:auto; cursor:default">
									<xsl:choose>
										<xsl:when test="@lid != ''">
											<xsl:if test="$lang='en'">

												<xsl:if test="@lidtype = 1">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type1_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv_en" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

												<xsl:if test="@lidtype = 2">				
													<a href="javascript:" onClick="open_window_browser_dynamic('{concat($type2_en, @lid)}','{@url_link}')">
														<xsl:value-of select="@abrv" />
													</a>																					
												</xsl:if>
												<xsl:if test="@lidtype = 3">
													<xsl:call-template name="table_img">
														<xsl:with-param name="seasonin" select="@seasonin" />
														<xsl:with-param name="seasonout" select="@seasonout" />
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type3_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>

													<!-- <a href="javascript:" onClick="open_window_browser('{concat($type3_en, @lid)}')">
														<xsl:value-of select="@abrv_en" />
													</a> -->
												</xsl:if>
												<xsl:if test="@lidtype = 4">
													<a href="javascript:" onClick="open_window_browser_dynamic('{concat($type4_en, @lid)}','{$url_link}')">
														<xsl:value-of select="@abrv_en" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 5">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type5_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv_en" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>
												<xsl:if test="@lidtype = 6">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type6_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv_en" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

											</xsl:if>

											<xsl:if test="$lang='fr'">
												<xsl:if test="@lidtype = 1">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type1_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

												<xsl:if test="@lidtype = 2">			
													<a href="javascript:" onClick="open_window_browser_dynamic('{concat($type2_fr, @lid)}','{@url_link}')">
														<xsl:value-of select="@abrv" />
													</a>																						
												</xsl:if>
												<xsl:if test="@lidtype = 3">
													<xsl:call-template name="table_img">
														<xsl:with-param name="seasonin" select="@seasonin" />
														<xsl:with-param name="seasonout" select="@seasonout" />
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type3_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>

													<!--<a href="javascript:" onClick="open_window_browser('{concat($type3_fr, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>-->
												</xsl:if>
												<xsl:if test="@lidtype = 4">
													<a href="javascript:" onClick="open_window_browser_dynamic('{concat($type4_fr, @lid)}','{$url_link}')">
														<xsl:value-of select="@abrv" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 5">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type5_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>
												<xsl:if test="@lidtype = 6">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type6_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

											</xsl:if>
										</xsl:when>
										<xsl:otherwise>
											<xsl:if test="$lang='en'">
												<xsl:value-of select="@abrv_en" />
											</xsl:if>
											<xsl:if test="$lang='fr'">
												<xsl:value-of select="@abrv" />
											</xsl:if>
										</xsl:otherwise>
									</xsl:choose>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td align="left" class="record_table_last_cell_border" title="{.}" style="width:auto; cursor:default">
									<xsl:choose>
										<xsl:when test="@lid != ''">
											<xsl:if test="$lang='en'">
												<xsl:if test="@lidtype=1">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type1_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

												<xsl:if test="@lidtype = 2">
													<a href="javascript:" onClick="open_window_browser_dynamic('{concat($type2_en, @lid)}','{@url_link}')">
														<xsl:value-of select="@abrv" />
													</a>													
												</xsl:if>
												<xsl:if test="@lidtype = 3">
													<xsl:call-template name="table_img">
														<xsl:with-param name="seasonin" select="@seasonin" />
														<xsl:with-param name="seasonout" select="@seasonout" />
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type3_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>

													<!-- <a href="javascript:" onClick="open_window_browser('{concat($type3_en, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>-->
												</xsl:if>
												<xsl:if test="@lidtype = 4">
													<a href="javascript:" onClick="open_window_browser_dynamic('{concat($type4_en, @lid)}','{$url_link}')">
														<xsl:value-of select="@abrv" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 5">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type5_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>
												<xsl:if test="@lidtype = 6">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type6_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

											</xsl:if>
											<xsl:if test="$lang='fr'">
												<xsl:if test="@lidtype=1">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type1_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

												<xsl:if test="@lidtype = 2">
													<a href="javascript:" onClick="open_window_browser_dynamic('{concat($type2_fr, @lid)}','{@url_link}')">
														<xsl:value-of select="@abrv" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 3">
													<xsl:call-template name="table_img">
														<xsl:with-param name="seasonin" select="@seasonin" />
														<xsl:with-param name="seasonout" select="@seasonout" />
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type3_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>

													<!-- <a href="javascript:" onClick="open_window_browser('{concat($type3_fr, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a> -->
												</xsl:if>
												<xsl:if test="@lidtype = 4">
													<a href="javascript:" onClick="open_window_browser_dynamic('{concat($type4_fr, @lid)}','{$url_link}')">
														<xsl:value-of select="@abrv" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 5">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type5_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>
												<xsl:if test="@lidtype = 6">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type6_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="url_link" select="@url_link" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

											</xsl:if>
										</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select="@abrv" />
										</xsl:otherwise>
									</xsl:choose>
								</td>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:if>
				</xsl:for-each>
			</tr>
		</xsl:for-each>
	</xsl:template>
	<!--*SC**--> 
	 <!-- <xsl:template match="node()|@*">
        <xsl:copy>
            <xsl:apply-templates select="node()|@*"/>
		</xsl:copy>
	 </xsl:template> -->

   <!-- <xsl:template match="x:head">
        <xsl:copy>
            <xsl:apply-templates select="@*|node()"/>
            <script src="video_extension.js" type="text/javascript" 
                xmlns="http://www.w3.org/1999/xhtml"/>
            <link rel="stylesheet" href="video_extension.css" type="text/css" 
                xmlns="http://www.w3.org/1999/xhtml"/>
        </xsl:copy>
   </xsl:template>--> 
 
	<!--<xsl:template match="video">
        <div class="video-container" 
            xmlns="http://www.w3.org/1999/xhtml">
            <xsl:copy-of select="."/>
	<div class="video-ui">--> 
	<!-- additional markup not removed --> 
<!--</div>
		</div>
</xsl:template>--> 
 	 <!--***--> 
	
	
	<xsl:param name="pop_type" />
	<xsl:param name="lang" />
	<xsl:param name="actual_file" />
	<xsl:param name="thisseason" />
	<xsl:param name="img_year" />
	<xsl:param name="is_evolution" />
	<xsl:param name="is_relatifs" />
	<xsl:param name="is_subdirectory" />
	<xsl:param name="url_link" />
	<xsl:template match="/">

		<xsl:variable name="file_year" select="substring-before ($actual_file, '_')" />
		<xsl:variable name="selected_file_name" select="substring-after ($actual_file, '_')" />

		<div style="color:#ffffff;display:none;">
			file_year = <xsl:value-of select="$file_year" /><br />
			selected_file_name = <xsl:value-of select="$selected_file_name" /><br />
			thisseason = <xsl:value-of select="$thisseason" /><br />
			img_year = <xsl:value-of select="$img_year" /><br />
			is_evolution = <xsl:value-of select="$is_evolution" /><br />
			is_relatifs = <xsl:value-of select="$is_relatifs" /><br />			
		</div>
		
		<div class="row">
    		<div class="col-md-8 left_part">
				<script language="javascript" type="text/javascript">
					<![CDATA[
					$(function(){
					  $(".wrapper1").scroll(function(){
						$(".wrapper2").scrollLeft($(".wrapper1").scrollLeft());
					  });
					  $(".wrapper2").scroll(function(){
						$(".wrapper1").scrollLeft($(".wrapper2").scrollLeft());
					  });
					});
					]]>
					
				</script>
				
					
				<!-- MAIN RECORD -->

				<div class="main_wrapper">
					
					<xsl:if test="$lang = 'fr'">
						<!--<h2>Plus de buts par un joueur, en une saison</h2> //-->
					</xsl:if>
					<xsl:if test="$lang = 'en'">
						<!--<h2>Plus de buts par un joueur, en une saison</h2> //-->
					</xsl:if> 
					<!-- <div class="wrapper1">
						<div class="div1">
						</div>
					</div>-->
					<div class="wrapper2">
						<div class="div2 table-responsive">  
							<table class="record_font_color main_font_size table table-bordered tbl_main">
								<tr>
									<xsl:call-template name="recordtable">
										<xsl:with-param name="title" select="//mainrecord/title" />
										<xsl:with-param name="title_en" select="//mainrecord/title_en" />
										<xsl:with-param name="title_sub" select="//mainrecord/title_sub" />
										<xsl:with-param name="title_sub_en" select="//mainrecord/title_sub_en" /> 
										<xsl:with-param name="tds" select="//mainrecord/head/td" />
										<xsl:with-param name="tds_en" select="//mainrecord/head/td_en" />
										<xsl:with-param name="rows" select="//mainrecord/rows/row" />
										<xsl:with-param name="table_w" select="586" />
										<xsl:with-param name="table_name" select="'main'" />
									</xsl:call-template>
								</tr>
							</table>
						</div>
					</div>
				</div>
				<!-- MAIN RECORD END -->
					
					
					
			</div>
			<div class="col-md-4 right_part">					
					
					

					<a name="a4"></a>

					<!-- modification hugo remove most populaire records -->
					<!-- <xsl:if test="$lang = 'fr'">
						<div><img src="img/head_pop_fr.png" /></div>
					</xsl:if>
					<xsl:if test="$lang = 'en'">
						<div><img src="img/head_pop_en.png" /></div>
					</xsl:if>-->

					<!-- TABLEAU DES LIENS VERS LES RECORDS LES PLUS POPUPAIRES -->
					<!-- modification hugo remove most populaire records -->
					
					<!--<table width="100%" border="0" cellspacing="0" cellpadding="0">
					  <tr>
					    <td valign="top">
							<div id="most_pop_records"></div>
						</td>
					  </tr>
					  <tr>
					    <td valign="top">
							<xsl:if test="$lang = 'fr'">
								<a href="#top"><img src="img/top_large_fr.png" alt="" /></a>
							</xsl:if>
							<xsl:if test="$lang = 'en'">
								<a href="#top"><img src="img/top_large_en.png" alt="" /></a>
							</xsl:if>
					    </td>
					  </tr>
					</table>-->
					
					
                    <!-- TABLEAU PHOTO - VID�O - AUDIO -->
          <div id="new_gui"></div>          


                    <!-- <div id="record_movie"></div> flash container, to remove -->

					<div>
    					
						<xsl:if test="$is_evolution = 'true'">

    								
    								<div class="evolution_wrapper">
    								
                                    <!-- TABLEAU �VOLUTION -->
									<xsl:if test="$lang = 'fr'">
										<h3>Évolution du record</h3>
									</xsl:if>
									<xsl:if test="$lang = 'en'">
										<h3>Evolution of record</h3>
									</xsl:if>

                                    <div class="table-responsive">
										<table class="record_font_color small_table table table-bordered tbl_evolution">
											<tr>
									<xsl:choose>												
										<xsl:when test="$is_subdirectory = 'E'">
																	<xsl:call-template name="recordtable">													
																		<xsl:with-param name="title" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/evolution_v2/E/', $selected_file_name))//evolutionrecord/title" />
																		<xsl:with-param name="tds" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/evolution_v2/E/', $selected_file_name))//evolutionrecord/head/td" />
																		<xsl:with-param name="rows" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/evolution_v2/E/', $selected_file_name))//evolutionrecord/rows/row" />
																		<xsl:with-param name="table_w" select="345" />
																		<xsl:with-param name="table_name" select="'evolution'" />
																	</xsl:call-template>
										</xsl:when>
										<xsl:when test="$is_subdirectory = 'F'">
																	<xsl:call-template name="recordtable">													
																		<xsl:with-param name="title" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/evolution_v2/F/', $selected_file_name))//evolutionrecord/title" />
																		<xsl:with-param name="tds" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/evolution_v2/F/', $selected_file_name))//evolutionrecord/head/td" />
																		<xsl:with-param name="rows" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/evolution_v2/F/', $selected_file_name))//evolutionrecord/rows/row" />
																		<xsl:with-param name="table_w" select="345" />
																		<xsl:with-param name="table_name" select="'evolution'" />
																	</xsl:call-template>
										</xsl:when>	
										<xsl:when test="$is_subdirectory = 'L'">
																	<xsl:call-template name="recordtable">													
																		<xsl:with-param name="title" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/evolution_v2/L/', $selected_file_name))//evolutionrecord/title" />
																		<xsl:with-param name="tds" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/evolution_v2/L/', $selected_file_name))//evolutionrecord/head/td" />
																		<xsl:with-param name="rows" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/evolution_v2/L/', $selected_file_name))//evolutionrecord/rows/row" />
																		<xsl:with-param name="table_w" select="345" />
																		<xsl:with-param name="table_name" select="'evolution'" />
																	</xsl:call-template>
										</xsl:when>																				
							     <xsl:otherwise>
																	<xsl:call-template name="recordtable">													
																		<xsl:with-param name="title" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/evolution_v2/L/', $selected_file_name))//evolutionrecord/title" />
																		<xsl:with-param name="tds" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/evolution_v2/L/', $selected_file_name))//evolutionrecord/head/td" />
																		<xsl:with-param name="rows" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/evolution_v2/L/', $selected_file_name))//evolutionrecord/rows/row" />
																		<xsl:with-param name="table_w" select="345" />
																		<xsl:with-param name="table_name" select="'evolution'" />
																	</xsl:call-template>			      
							     </xsl:otherwise>						
									</xsl:choose>			
									<!--	
																	<xsl:call-template name="recordtable">													
																		<xsl:with-param name="title" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/evolution_v2/L/', $selected_file_name))//evolutionrecord/title" />
																		<xsl:with-param name="tds" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/evolution_v2/L/', $selected_file_name))//evolutionrecord/head/td" />
																		<xsl:with-param name="rows" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/evolution_v2/L/', $selected_file_name))//evolutionrecord/rows/row" />
																		<xsl:with-param name="table_w" select="345" />
																		<xsl:with-param name="table_name" select="'evolution'" />
																	</xsl:call-template>	-->					
											</tr>
										</table>
                                    </div>
									
									
								    </div>	
									

						</xsl:if>
						<xsl:if test="$thisseason != 'false'">
			
							<div class="saison_wrapper">
							
								<!-- TABLEAU EN SAISON -->
								<a name="a2"></a>
								
								<div>

								<div id="selected_season_lang">
									<xsl:if test="$lang = 'fr'">
										<h3>Saison en cours</h3>
									</xsl:if>
									<xsl:if test="$lang = 'en'">
										<h3>Current season</h3>
									</xsl:if>
								</div>

								<div class="table-responsive">
    								<table class="record_font_color small_table table table-bordered">
    									<tr>
    										<xsl:call-template name="recordtable">
    											<xsl:with-param name="tds" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/', $thisseason, '/', $thisseason, '_', $selected_file_name))//mainrecord/head/td" />
    											<xsl:with-param name="rows" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/', $thisseason, '/',  $thisseason, '_', $selected_file_name))//mainrecord/rows/row" />
    											<xsl:with-param name="table_w" select="345" />
    											<xsl:with-param name="table_name" select="'saison'" />
    										</xsl:call-template>
    									</tr>
    								</table>
								</div>
								
								</div>
								
							</div>	

						</xsl:if>

					</div>
					


					<xsl:if test="$is_relatifs = 'true'">
						<br style="line-height:10px;" />
						<!-- TABLEAU DES LIENS VERS DES RECORDS RELATIFS � CELUI AFFICHER -->
						<a name="a3"></a>

						<xsl:if test="$lang = 'fr'">
							<div><img src="img/head_rel_fr.png" /></div>
						</xsl:if>
						<xsl:if test="$lang = 'en'">
							<div><img src="img/head_rel_en.png" /></div>
						</xsl:if>

						<div style="overflow:auto;background-color:#021a30;">
							<xsl:if test="$lang = 'fr'">
								<xsl:for-each select="document( concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/relatifs/', $file_year, '/', $selected_file_name) )//suggestrecord">
									<div style="padding:2px 10px;">
										<a href="javascript:get_other_xml_name('{./@xmlfile}', '{$lang}')">
											<xsl:value-of select="." />
										</a>
									</div>
								</xsl:for-each>
							</xsl:if>

							<xsl:if test="$lang = 'en'">
								<xsl:for-each select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/relatifs/', $file_year, '/', $selected_file_name))//suggestrecord_en">
									<div style="padding:2px 10px;">
										<a href="javascript:get_other_xml_name('{./@xmlfile}', '{$lang}')">
											<xsl:value-of select="." />
										</a>
									</div>
								</xsl:for-each>
							</xsl:if>
						</div>

						<xsl:if test="$lang = 'fr'">
							<a href="#top"><img src="img/top_blue_fr.png" alt="" /></a>
						</xsl:if>
						<xsl:if test="$lang = 'en'">
							<a href="#top"><img src="img/top_blue_en.png" alt="" /></a>
						</xsl:if>
					</xsl:if>
					
					<div class="advertise_wrapper">
							<div id='div-gpt-ad-1452832437881-1'></div>            					
					</div>
					
					
            </div>
					
        </div>


	</xsl:template>

</xsl:stylesheet>