<div class="window" id="leftMenu">
	<div class="top">
		<div class="topLeft">
			<div class="topRight">
				<div class="middleLeft">
					<div class="middleRight">
						<div class="bottom">
							<div class="bottomLeft">
								<div class="bottomRight">
									<div class="item">
										<div id="menuMailingGroups"{if:is_mailing_groups} class="active"{/if}>{rs:TITLE_MAILING_GROUPS}</div>
										<div class="subMenu{if:is_mailing_groups} show{/if}">
											<a href="{global:PATH}mailing_groups/">{rs:ALL} {rs:TITLE_MAILING_GROUPS}</a>
											<a href="{global:PATH}mailing_groups/?edit=0">{rs:ACTION_ADD} {rs:MAILING_GROUP}</a>
										</div>
									</div>
									<div class="item">
										<div id="menuSubscribers"{if:is_subscribers} class="active"{/if}>{rs:TITLE_SUBSCRIBERS}</div>
										<div class="subMenu{if:is_subscribers} show{/if}">
											<a href="{global:PATH}subscribers/">{rs:ALL} {rs:TITLE_SUBSCRIBERS}</a>
											<a href="{global:PATH}subscribers/custom_fields/">{rs:TITLE_CUSTOM_FIELDS}</a>
											<a href="{global:PATH}subscribers/import/">{rs:ACTION_IMPORT}</a>
											<a href="{global:PATH}subscribers/export/">{rs:ACTION_EXPORT}</a>
											<a href="{global:PATH}black_list/">{rs:TITLE_BLACK_LIST}</a>
										</div>
									</div>
									<div class="item">
										<a href="{global:PATH}template/" id="menuTemplates"{if:is_templates} class="active"{/if}>{rs:TITLE_TEMPLATES}</a>
									</div>
									<div class="item">
										<div id="menuNewsletters"{if:is_newsletters} class="active"{/if}>{rs:TITLE_NEWSLETTERS}</div>
										<div class="subMenu{if:is_newsletters} show{/if}">
											<a href="{global:PATH}newsletters/">{rs:ALL} {rs:TITLE_NEWSLETTERS}</a>
											<a href="{global:PATH}newsletters/outbox/">{rs:TITLE_OUTBOX}</a>
											<a href="{global:PATH}newsletters/sent/">{rs:TITLE_SENT}</a>
											<a href="{global:PATH}newsletters/undelivered/">{rs:TITLE_UNDELIVERED}</a>
											<a href="{global:PATH}newsletters/deleted/">{rs:TITLE_DELETED}</a>
										</div>
									</div>
									<div class="item">
										<div id="menuAutoresponder"{if:is_autoresponder} class="active"{/if}>{rs:TITLE_AUTORESPONDER}</div>
										<div class="subMenu{if:is_autoresponder} show{/if}">
											<a href="{global:PATH}autoresponder/">{rs:ALL} {rs:TITLE_AUTORESPONDERS}</a>
											<a href="{global:PATH}autoresponder/outbox/">{rs:TITLE_OUTBOX}</a>
											<a href="{global:PATH}autoresponder/sent/">{rs:TITLE_SENT}</a>
											<a href="{global:PATH}autoresponder/undelivered/">{rs:TITLE_UNDELIVERED}</a>
											<a href="{global:PATH}autoresponder/deleted/">{rs:TITLE_DELETED}</a>
										</div>
									</div>
									<div class="item">
										<div id="menuCampaignSchedule"{if:is_campaign_schedule} class="active"{/if}>{rs:TITLE_CAMPAIGN_SCHEDULE}</div>
										<div class="subMenu{if:is_campaign_schedule} show{/if}">
											<a href="{global:PATH}campaign_schedule/">{rs:ALL} {rs:TITLE_CAMPAIGN_SCHEDULES}</a>
											<a href="{global:PATH}campaign_schedule/outbox/">{rs:TITLE_OUTBOX}</a>
											<a href="{global:PATH}campaign_schedule/sent/">{rs:TITLE_SENT}</a>
											<a href="{global:PATH}campaign_schedule/undelivered/">{rs:TITLE_UNDELIVERED}</a>
											<a href="{global:PATH}campaign_schedule/deleted/">{rs:TITLE_DELETED}</a>
										</div>
									</div>
									<div class="item">
										<div id="menuDesign"{if:is_design} class="active"{/if}>{rs:TITLE_DESIGN}</div>
										<div class="subMenu{if:is_design} show{/if}">
											<a href="{global:PATH}design/subscribe_page/">{rs:TITLE_SUBSCRIPTION_PAGE}</a>
											<a href="{global:PATH}design/subscribe_form/">{rs:TITLE_SUBSCRIPTION_FORM}</a>
											<a href="{global:PATH}design/system_emails/">{rs:TITLE_SYSTEM_EMAILS}</a>
										</div>
									</div>
									<div class="item noline"{if:is_statistics} class="active"{/if}>
										<a href="{global:PATH}statistics/" id="menuStatistics">{rs:TITLE_STATISTICS}</a>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
	$("#leftMenu").find("div[id*='menu']").click(function() {
		$(this).parent().find(".subMenu").toggleClass("show");
		onResize();
	});
</script>