<table width="100%" cellspacing="0" cellpadding="0" style="padding-top:4px">
<tr>
    <td>
        #raw
        <textarea id="menu_jstl" style="display:none;">
            {macro getFolderMenu(subFolder)}
                <ul style="text-align:left">
                {for folder in subFolder.getList('Folder.Folder')}
                    {var folderStr = getFolderMenu(folder)}
                    {if folderStr.indexOf("</li>") != -1 }
                    <li>
                        <a href="#">${folder.getValue('SheetName')}</a>
                        ${folderStr}
                    </li>
                    {/if}
                {/for}
                {for sheet in subFolder.getList('Folder.SheetMetadata')}
                    {if sheet}
                        ${getSheetMenu(sheet,false)}
                    {/if}
                {/for}
                {for shortCut in subFolder.getList('Folder.ShortCut')}
                    {if shortCut}
                        ${getShortCutMenu(shortCut)}
                    {/if}
                {/for}
                </ul>
            {/macro}

            {macro getSheetMenu(sheet,isRoot)}
            	{if sheet.getValue("IsHidden") != 1.0}
                <li>
                    <a href = '/${application.getValue("SheetId")}/1/${sheet.getValue("SheetId")}/${sheet.getValue("StartActivityId")}/${sheet.getValue("SheetId")}?mimetype=text/html&__method=POST'>${sheet.getValue('PublicName')}</a>
                </li>
                {/if}
                {if isRoot}
                    <li>
                        <div class="separator"></div>
                    </li>
                {/if}
                {for report in sheet['SheetMetadata.SearchDefinition']}
                    {if report}
                        <li>
                            <a href = '/${application.getValue("SheetId")}/1/${sheet.getValue("SheetId")}/report/${report_index}?mimetype=text/html'>${report}</a>
                        </li>
                    {/if}
                {/for}
            {/macro}
            {macro getShortCutMenu(shortCut)}
                {var sheet = shortCut.get("SheetMetadata")}

                {for grid in shortCut.getValue("GridView")}
                        {var gridview = "&form="+grid}
                {/for}
                <li>
                    <a href = '/${application.getValue("SheetId")}/1/${sheet.getValue("SheetId")}/${sheet.getValue("StartActivityId")}/${sheet.getValue("SheetId")}?mimetype=text/html&__method=POST&ShortCut=${shortCut.getValue("SheetName")}${gridview}'>${shortCut.getValue("SheetName")}</a>
                </li>
            {/macro}

            <ul style="padding-left: 0px;">
                <li>
                    <a href="/${application.getValue("SheetId")}/1/home" style="padding-right:14px;padding-left:10px">
                        <img src="/static/images/home.png"/>
                    </a>
                </li>
                <li>
                    <div class="separator"></div>
                </li>
                {for folder in application.getList('Application.Folder')}
                    {var folderStr = getFolderMenu(folder)}
                    {if folderStr.indexOf("</li>") != -1 }
                    <li style="height: 35px;">
                        <a href="#">${folder.getValue('SheetName')}</a>
                        ${folderStr}
                    </li>
                    <li>
                        <div class="separator"></div>
                    </li>
                    {/if}
                {/for}

                {for sheet in application.getList('AppRef.SheetMetadata')}
                    {if sheet}
                        ${getSheetMenu(sheet,true)}
                        {for shortCut in sheet.getList('SheetMetadata.ShortCut')}
                            {if shortCut}
                                ${getShortCutMenu(shortCut)}
                            {/if}
                        {/for}
                    {/if}
                {/for}
            </ul>
            <br style='clear: left' />
        </textarea>
        #end raw
        <div id='myslidemenu' class='jqueryslidemenu'>
        </div>
    </td>
 </tr>
 </table>