<h2>The requested document ({$requestedDocument|default:$smarty.session.last404}) was not found on this site.</h2>
{if $requestedDocument}
{assign var="docName" value=$requestedDocument|default:$smarty.session.last404}
{message type="error" value="The page you requested ($docName) was not found. Attempting search..."}
{store_messages}
<form name="AutoSearchForm" method="post" action="index.php" style="margin:0px;">
<input type="hidden" name="pg" value="home">
<input type="hidden" name="showSearch" value="true">
<input type="hidden" name="no_expire" value="true">
<input type="hidden" name="no_expire_keep_alive" value="showSearch">
<input type="hidden" name="searchQuery" value="{$docName}">
</form>
<script language="JavaScript">
document.forms.AutoSearchForm.submit();
</script>
{/if}