<xsl:stylesheet version="1.1"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:media="http://search.yahoo.com/mrss/"
xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date">

<xsl:template match="item">
<xsl:choose>
<xsl:when test="position() = 1">
<tr valign="top">
<td rowspan="5" width="1">&#160;</td>
<td colspan="7">
<table cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<a href="{ link }"><img src="{ media:content[position()=1]/@url }" width="{ media:content[position()=1]/@width }" height="{ media:content[position()=1]/@height }"/></a>
</td>
<td width="5">&#160;</td>
<td valign="top">
<h4><a href="{ link }"><xsl:value-of select="title"/></a></h4>
<xsl:value-of select="description" disable-output-escaping="yes"/>
<xsl:text> </xsl:text><a href="{ link }">more</a>
<br />
</td>
</tr>
</table>
</td>
<td rowspan="5" width="1">&#160;</td>
</tr>
<tr><td colspan="7" height="3"></td></tr>
</xsl:when>
<xsl:otherwise>
<xsl:if test="position() = 2 or position() = 4">
<xsl:text disable-output-escaping="yes">&lt;tr valign="middle"&gt;</xsl:text>
<td valign="middle" width="{ media:content[position()=2]/@width }">
<a href="{ link }"><img src="{ media:content[position()=2]/@url }" width="{ media:content[position()=2]/@width }" height="{ media:content[position()=2]/@height }" align="left" /></a>
</td>
<td width="4">&#160;</td>
<td valign="middle" width="48%">
<strong><a href="{ link }"><xsl:value-of select="title"/></a></strong>
</td>
<td width="4">&#160;</td>
</xsl:if>
<xsl:if test="position() = 3 or position() = 5">
<td valign="middle" width="{ media:content[position()=2]/@width }">
<a href="{ link }"><img src="{ media:content[position()=2]/@url }" width="{ media:content[position()=2]/@width }" height="{ media:content[position()=2]/@height }" align="left" /></a>
</td>
<td width="4">&#160;</td>
<td valign="middle" width="48%">
<strong><a href="{ link }"><xsl:value-of select="title"/></a></strong>
</td>
<xsl:text disable-output-escaping="yes">&lt;/tr&gt;</xsl:text>
<tr><td colspan="7" height="3"></td></tr>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="channel">
<xsl:if test="subheader">
<h3><xsl:value-of select="subheader" disable-output-escaping="yes"/></h3>
</xsl:if>
<a href="http://www.thesmokinggun.com"><img src="http://www.thesmokinggun.com/graphics/myyahoo/tsg_logo_wide.gif" alt="The Smoking Gun" /></a>
<table cellpadding="1" cellspacing="1" border="0">
<xsl:apply-templates select="item"/>
</table>
</xsl:template>

<xsl:template match="/">
<xsl:apply-templates match="channel"/>
</xsl:template>

</xsl:stylesheet>
