{include_php file="shared_handle:loadInvitation"}

<h1 class="underline">Accept an Invitation</h1>

{toc_next assign="next"}

<div><br />
Welcome "{$invitation.name}". {$competition.ownerName} ({$competition.ownerUsername}), 
who described you as "{$invitation.relation}" has invited you to join a Weight Loss War&trade;
titled "{$competition.title}", which will end on {$competition.endDate|date_format2:"l n/j/Y"}. 
Are you up to the challenge?<br />
<br />
{$competition.ownerName} selected {$competition.scoringMethod} as the final judging method and 
{if $competition.potMethod eq "Individual Charity"}
	{if $competition.individualPotAmount}
		${$competition.individualPotAmount|number_format:2}
	{else}
		no money
	{/if}
	to be put up by each competitor.
{elseif $competition.potMethod neq "Other-None"}
	{if $competition.individualPotAmount}
		a jackpot of ${$competition.individualPotAmount|number_format:2} provided by {$competition.potMethod}.
	{else}
		an unspecified jackpot.
	{/if}
{else}
	an unspecified jackpot.
{/if}
{if $competition.potDescription}
	The jackpot was further described as "{$competition.potDescription}".
{/if}

<div class="hBox" align="right" style="margin:0px;">
	<a href="?pg={$next}&cid={$competition.id}&icode={$smarty.request.icode}"><img src="{$skinFolder}images/btn_next.gif" border="0" /></a></div>