<ul class="tabs">
    <!-- BEGIN DYNAMIC BLOCK: pluginTabs -->
    <li id="tab_{tabname}" {tabstyle} class="{pluginviewclass}"><a href="index.php?fuse=admin&amp;view=Snapins&amp;tab={tabname}&amp;plugin={pluginname}">{tabname}</a></li>
    <!-- END DYNAMIC BLOCK: pluginTabs -->
    <li class="{pluginsettingsclass}"><a href="index.php?fuse=admin&amp;view=SnapinSettings&amp;plugin={pluginname}">[l]Settings[/l]</a></li>
</ul>
<!-- BEGIN DYNAMIC BLOCK: pluginSettingNotes -->
<div style="margin-bottom: 10px; margin-top: 10px;" class="table-summary">
    <h2>Snapin Settings</h2>
        {SNAPINS_NOTES}
</div>
<!-- END DYNAMIC BLOCK: pluginSettingNotes -->
<form style="padding-top:10px;" name="form_plugin" method="post" action="index.php?fuse=admin&action=SnapinsUpdatePermission&plugin={SNAPINS_PLUGIN}">
    <table width="100%" class="body" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="100%">
                <table id="snapinsettings" style="padding-left:10px;" width="100%" border="0" cellpadding="2" cellspacing="2">
                        {SNAPINS_ITEM_VARIABLES}
                    <tr>
                        <td align="right" colspan="2">
                            <input type="submit" class="button" name="update_permissions" onclick="clearcookie();" value="[lh]UPDATE SETTINGS[/lh]" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>
<script type="text/javascript">

    function clearcookie() {
        $.cookie("viewinghiddentabs", null);
        return true;
    }

    //we need to get the saved hidden tabs that were made visible and show them in settings
    var t = $.cookie("viewinghiddentabs");
    if(t!=null){
        var ts = t.split(",");
        for (var x=0;x<ts.length;x++){
           $('#tab_'+ts[x]).show();
        }
    }

    $().ready(function(){
       $('#snapinsettings tr:visible:odd').css("background-color","#F8F8F8 ");
    });
</script>