{if $searchable}<ul class="artefactchooser-tabs">
    <li{if !$smarty.request.s} class="current"{/if}><a href="{$browseurl}">{str tag=Browse section=view}</a></li>
    <li{if $smarty.request.s} class="current"{/if}><a href="{$searchurl}">{str tag=Search section=view}</a></li>
</ul>{/if}
<div id="artefactchooser-body">
    <div class="cb artefactchooser-splitter">
        <div id="artefactchooser-searchform"{if !$smarty.request.s} class="hidden"{/if}> {* Use a smarty var, not smarty.request *}
            <label><input type="text" class="text" id="artefactchooser-searchfield" name="search" value="{$smarty.request.search|escape}" tabindex="42">
            <input type="hidden" name="s" value="1">
            <input type="submit" class="submit" id="artefactchooser-searchsubmit" name="action_acsearch_id_{$blockinstance|escape}" value="&raquo;" tabindex="42"></label>
        </div>
        {if $artefacts}
        <table id="{$datatable}" class="artefactchooser-data">
            <tbody>
                {$artefacts}
            </tbody>
        </table>
        {$pagination}
        {else}
        <p class="noartefacts">{str tag=noartefactstochoosefrom section=view}</p>
        {/if}
        <div style="visibility: hidden;" id="ie-workaround"></div>
    </div>
</div>
