<script>
	var metadataId = $metadata.getMetadataId(['User','UserChanges','AppRole','RoleSubscription','UploadStats','Global'])
</script>
#if $httprequest.getParameters().get('theme') != 'off':
<table cellpadding='0' cellspacing='0' height='100%' width='100%'>
<tr>
	<td height='30px' valign="top">
		#include source = $getFileContents($templatePath+"/header.html")
	</td>
</tr>
<tr>
	<td style="vertical-align:top;height: 100%;" align="center">
        <table style="width:1260px;border-spacing: 0px;padding-left:2px;height:100%" cellpadding="0" cellspacing="0">
            <tr style="line-height:3px;vertical-align:bottom;height:2px;">
                <td style="width:12px;min-width:12px">&nbsp;</td>
                <td><img border="0" src="/static/images/top_shadow.png"/></td>
                <td style="width:13px;min-width:13px">&nbsp;</td>
            </tr>
            <tr>
                <td style="vertical-align:top;text-align:right;padding-top:8px"><img src="/static/images/leftMenuWrap.png"></td>
                <td style="background: transparent url(/static/images/topMenuBg.png) repeat-x;vertical-align:top;height: 100%;">
                    <table width="1233px" cellspacing="0" cellpadding="0" style="padding-top:8px;height:100%">
                    <tr><td>
                        #include source = $getFileContents($templatePath+"/menu.html")
                    </td></tr>
                    <tr><td height="100%" class="content_background" align="left">
                        #include source = $getFileContents($templatePath+"/layout.html")
                    </td></tr>
                    </table>
                </td>
                <td style="width:13px;min-width:13px;padding-top:8px;text-align:left;vertical-align:top"><img src="/static/images/rightMenuWrap.png"></td>
            </tr>
            <tr style="line-height:2px;height:1px;">
                <td style="width:12px;min-width:12px">&nbsp;</td>
                <td><img border="0" src="/static/images/bottom_shadow.png"/></td>
                <td style="width:13px;min-width:13px">&nbsp;</td>
            </tr>
            <tr>
                <td height='10px' colspan="3">
                    #include source = $getFileContents($templatePath+"/footer.html")
                </td>
            </tr>
        </table>
    </td>
</tr>
</table>
#else:
	#include source = $getFileContents($templatePath+"/layout.html")
#end if
