I only want the "Recently Popular | Top Today" etc bar to display on my sub cats, not my cats or homepage. At the moment it is part of nav.tpl - is there anything I can do apart from having a long series of if statements checking the $pagename or something?

Current example

Here is the relevant part of nav.tpl:

Code:
{if $pagename neq "story" or $pagename neq "index"}
	{if $Voting_Method eq 1}
		<ul id="popular">
			<li>{if $setmeka eq "" || $setmeka eq "recent"}{#PLIGG_Visual_Recently_Pop#}{else}<a href="{$index_url_recent}">{#PLIGG_Visual_Recently_Pop#}</a>{/if}</li>
			<li>{if $setmeka eq "today"}{#PLIGG_Visual_Top_Today#}{else}<a href="{$index_url_today}">{#PLIGG_Visual_Top_Today#}</a>{/if}</li>
			<li>{if $setmeka eq "yesterday"}{#PLIGG_Visual_Yesterday#}{else}<a href="{$index_url_yesterday}">{#PLIGG_Visual_Yesterday#}</a>{/if}</li>
			<li>{if $setmeka eq "week"}{#PLIGG_Visual_This_Week#}{else}<a href="{$index_url_week}">{#PLIGG_Visual_This_Week#}</a>{/if}</li>
			<li>{if $setmeka eq "month"}{#PLIGG_Visual_This_Month#}{else}<a href="{$index_url_month}">{#PLIGG_Visual_This_Month#}</a>{/if}</li>
		</ul>
	{/if}
{/if}

If you follow the link you will see this currently doesn't work as intended, because it should only render those lines of code if the $pagename is NOT story or index - when clearly it is displaying on those pages.

Anyone got any ideas?