<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<html>
			<body TEXT="#ffffcc" LINK="#ffbb00" VLINK="#ffbb00" alink="#ffffb4" bgcolor="#000000">
				<div align="center">
					<center>
						<table bgcolor="#000000" border="1" width="600" bordercolorlight="#CCCCCC" bordercolordark="#666666" cellspacing="1">
							<tr>
								<td bgcolor="#000000" width="600" colspan="3" height="5">
									<p align="center">
										<font face="Arial" color="#ffbb00">
											<b>OUR MEMBERS</b>
										</font>
									</p>
								</td>
							</tr>
							<xsl:for-each select="memberlist/member">
								<xsl:sort select="rank"/>
								<xsl:sort select="id_name"/>
								<tr>
									<td colspan="2" width="200">
										<p align="left">
											<font face="Arial">
												<font color="#E60000">
													<b><xsl:value-of select="id_name"/>
													</b>
												</font>
										 (<xsl:value-of select="name"/>)</font>
										</p>
									</td>
									<td>
										<p align="right">
											<font face="Arial">
												<i>
													<font size="2" color="#ffbb00">Location: </font>
												</i>
											</font>
											<font face="Arial">
												<b><xsl:value-of select="location"/></b>
											</font>
										</p>
									</td>
								</tr>
								<tr>
									<xsl:choose>
										<xsl:when test="image = 'No'">
											<td rowspan="3" width="200">
												<p align="center">
													<font face="Arial">
														<img border="0" src="/images/bio/logo.jpg">
														</img>
													</font>
												</p>
											</td>
										</xsl:when>
										<xsl:otherwise>
											<td rowspan="3" width="200">
												<p align="center">
													<font face="Arial">
														<img border="0">
															<xsl:attribute name="src">
													images/bio/<xsl:value-of select="id_name"/>.jpg
												</xsl:attribute>
														</img>
													</font>
												</p>
											</td>
										</xsl:otherwise>
									</xsl:choose>
									<td width="200">
										<font face="Arial">
											<i>
												<font size="2" color="#FFCC66">Status: </font>
											</i>
											<font color="#ffffcc"><b><xsl:value-of select="rank"/></b></font>
										</font>
									</td>
									<xsl:choose>
										<xsl:when test="mail = 'None'">
											<td width="200">
												<font face="Arial">
													<xsl:value-of select="mail"/>
												</font>
											</td>
										</xsl:when>
										<xsl:otherwise>
											<td width="200">
												<a>
													<xsl:attribute name="href">
												mailto:<xsl:value-of select="mail"/>
													</xsl:attribute>
													<font face="Arial">
														<xsl:value-of select="mail"/>
													</font>
												</a>
											</td>
										</xsl:otherwise>
									</xsl:choose>
								</tr>
								<tr>
									<td width="200">
										<font face="Arial">
											<i>
												<font size="2" color="#ffbb00">Age: </font>
											</i>
											<xsl:value-of select="age"/>
										</font>
									</td>
									<xsl:choose>
										<xsl:when test="web = 'None'">
											<td width="200">
												<font face="Arial">None</font>
											</td>
										</xsl:when>
										<xsl:otherwise>
											<td width="200">
												<a>
													<xsl:attribute name="href">
													http://<xsl:value-of select="web"/>
													</xsl:attribute>
													<font face="Arial">Web Page</font>
												</a>
											</td>
										</xsl:otherwise>
									</xsl:choose>
								</tr>
								<tr>
									<td width="200">
										<font face="Arial">
											<i>
												<font size="2" color="#FFbb00">Previously: </font>
											</i>
											<xsl:value-of select="alias"/>
										</font>
									</td>
									<xsl:choose>
										<xsl:when test="icq = 'N/A'">
											<td align="left" width="200">
												<font face="Arial">
													<font color="#FFbb00" size="2"><i>ICQ: </i></font>None
												<br/><font color="#FFbb00" size="2"><i>MSN: </i></font><xsl:value-of select="msn"/>
												</font>
											</td>
										</xsl:when>
										<xsl:otherwise>
											<td align="left" width="200">
												<font face="Arial">
													<i>
														<font color="#FFbb00" size="2">ICQ: </font>
													</i>
													<xsl:value-of select="icq"/> &gt;  
												<img>
														<xsl:attribute name="src">
														http://web.icq.com/whitepages/online?icq=
														<xsl:value-of select="icq"/>&amp;img=1
													</xsl:attribute>
													</img>
													<br/><font color="#FFbb00" size="2"><i>MSN: </i></font><xsl:value-of select="msn"/>
												</font>
											</td>
										</xsl:otherwise>
									</xsl:choose>
								</tr>
								<tr>
									<td colspan="3">
										<p align="left">
											<font face="Arial">
												<i>
													<font color="#FFbb00" size="2">Games Played: </font>
												</i>
												<xsl:value-of select="games"/>
											</font>
										</p>
									</td>
								</tr>
								<tr>
									<td width="600" bgcolor="#222222" height="5" colspan="3"></td>
								</tr>
							</xsl:for-each>
						</table>
					</center>
				</div>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>
