<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>{rs:TITLE_SITE}{row:TREE} » {title}{/row}</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" href="{global:PATH}common/css.css" />
	<link rel="stylesheet" href="{global:PATH}common/calendar.css"/>
</head>
<body>
<div id="mainBox">
<div id="preloaderBg"></div>
<div id="preloader">{rs:INFO_LOADING}</div>
<script src="{global:PATH}js/jquery-1.4.2.js" language="JavaScript"></script>
<script src="{global:PATH}js/jquery.dropshadow.js" language="JavaScript"></script>
<script src="{global:PATH}js/Preloader.js"></script>
<script src="{global:PATH}js/calendar.js"></script>
<script>Calendar.DateFormat='{date_format}';</script>
<div id="top">
	<div class="left">
		<div class="right">
			<div id="logo"><a href="{global:PATH}"><img src="{global:PATH}img/top_bottom/logo.gif" width="257" height="38" alt="" border="0" align="middle" /></a></div>
			{if:a_login}
			<div id="topLinks">
				<a href="{global:PATH}" class="home">{rs:TITLE_HOME}</a>
				<a href="{global:PATH}logout/" class="logout">{rs:TITLE_LOG_OUT}</a>
				<div class="br"><img src="{global:PATH}img/spacer.gif" width="1" height="1" border="0"></div>
			</div>
			<div class="br"><img src="{global:PATH}img/spacer.gif" width="1" height="1" border="0"></div>
			{/if}
		</div>
	</div>
</div>

<div id="mainContentBox">
	<div id="mainContent">
		<div id="quickMenu">
			<a href="{global:PATH}settings/" id="quickSettings">{rs:TITLE_SETTINGS}</a>
			<div class="subMenu">
				<div class="window">
					<div class="top">
						<div class="topLeft">
							<div class="topRight">
								<div class="middleLeft">
									<div class="middleRight">
										<div class="bottom">
											<div class="bottomLeft">
												<div class="bottomRight">
													<a href="{global:PATH}settings/" class="item">{rs:TITLE_MAIN_SETTINGS}</a>
													<a href="{global:PATH}settings/smtp/" class="item">{rs:TITLE_SMTP_ACCOUNTS}</a>
													<a href="{global:PATH}settings/pop3/" class="item">{rs:TITLE_POP3_ACCOUNTS}</a>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<a href="{global:PATH}users/" id="quickUsers">{rs:TITLE_USERS}</a>
		</div>
		<div id="tree">
			<a href="{global:PATH}" class="toplinks">{rs:TITLE_MAIN_MENU}</a>
			{row:TREE}
			<span class="delimeter">&nbsp;»&nbsp;</span>
			{if:url}<a href="{global:PATH}{url}">{title}</a>{/if}
			{if:!url}{title}{/if}
			{/row}
		</div>
		<div class="br"><img src="{global:PATH}img/spacer.gif" width="1" height="1" border="0"></div>

		<div id="sectionLeft">
			{include:left/menu.tpl}
		</div>
		<div id="sectionRight">
			<div class="window" id="content">
				<div class="top">
					<div class="topLeft">
						<div class="topRight">
							<div class="windowHeader">
								{section:SHOW_SEARCH}
								<div class="searchFieldBox">
									<div class="labelBox">{rs:SEARCH}:</div>
									<div id="search_field" class="inputBox"><input type="text" name="_searchContainer" value="{search}"></div>
									<div class="br"><img src="{global:PATH}img/spacer.gif" width="1" height="1" border="0"></div>
								</div>
								{/section}
								{global:WINDOW_TITLE}
							</div>
			{section:ACCESS_DENIED}{ERROR}{/section}
			{section:USERS}{include:users/index.tpl}{/section}
			{section:USERS_EDIT}{include:users/form.tpl}{/section}
			{section:USERS_PERMISSION}{include:users/permission.tpl}{/section}
			{section:MAILING_GROUPS}{include:mailing_groups/index.tpl}{/section}
			{section:MAILING_GROUPS_EDIT}{include:mailing_groups/form.tpl}{/section}
			{section:SUBSCRIBERS}{include:subscribers/index.tpl}{/section}
			{section:SUBSCRIBERS_EDIT}{include:subscribers/form.tpl}{/section}
			{section:EXPORT_STEP_0}{include:export/step_0.tpl}{/section}
			{section:EXPORT_STEP_1}{include:export/step_1.tpl}{/section}
			{section:IMPORT_STEP_0}{include:import/step_0.tpl}{/section}
			{section:IMPORT_STEP_1}{include:import/step_1.tpl}{/section}
			{section:IMPORT_STEP_2}{include:import/step_2.tpl}{/section}
			{section:IMPORT_STEP_3}{include:import/step_3.tpl}{/section}
			{section:IMPORT_DONE}{include:import/done.tpl}{/section}
			{section:TEMPLATES}{include:templates/index.tpl}{/section}
			{section:TEMPLATES_EDIT}{include:templates/form.tpl}{/section}
			{section:BLACK_LIST}{include:black_list/index.tpl}{/section}
			{section:BLACK_LIST_EDIT}{include:black_list/form.tpl}{/section}
			{section:NEWSLETTERS}{include:newsletters/index.tpl}{/section}
			{section:NEWSLETTERS_EDIT}{include:newsletters/form.tpl}{/section}
			{section:NEWSLETTERS_SEND}{include:newsletters/send.tpl}{/section}
			{section:NEWSLETTER_SEND_ALL_0}{include:newsletters/send_all_0.tpl}{/section}
			{section:NEWSLETTER_SEND_ALL_1}{include:newsletters/send_all_1.tpl}{/section}
			{section:AUTORESPONDER}{include:autoresponder/index.tpl}{/section}
			{section:AUTORESPONDER_EDIT}{include:autoresponder/form.tpl}{/section}
			{section:CAMPAIGN_SCHEDULE}{include:campaign_schedule/index.tpl}{/section}
			{section:CAMPAIGN_SCHEDULE_EDIT}{include:campaign_schedule/form.tpl}{/section}
			{section:SUBSCRIBE_FORM_STEP_0}{include:subscribe_form/step_0.tpl}{/section}
			{section:SUBSCRIBE_FORM_RESULT}{include:subscribe_form/result.tpl}{/section}
			{section:SETTINGS}{include:settings/form.tpl}{/section}
			{section:SMTP}{include:smtp/index.tpl}{/section}
			{section:SMTP_EDIT}{include:smtp/form.tpl}{/section}
			{section:POP3}{include:pop3/index.tpl}{/section}
			{section:POP3_EDIT}{include:pop3/form.tpl}{/section}
			{section:IP_COUNTRY}{include:ipcountry/index.tpl}{/section}
			{section:MESSAGES}{include:messages/index.tpl}{/section}
			{section:MESSAGES_EDIT}{include:messages/form.tpl}{/section}
			{section:NEWSLETTERS_MESSAGES}{include:newsletters_messages/index.tpl}{/section}
			{section:NEWSLETTERS_MESSAGES_EDIT}{include:newsletters_messages/form.tpl}{/section}
			{section:SUBSCRIBE_PAGE}{include:subscribe_page/form.tpl}{/section}
			{section:CUSTOM_FIELDS}{include:custom_fields/index.tpl}{/section}
			{section:CUSTOM_FIELDS_EDIT}{include:custom_fields/form.tpl}{/section}
			{section:SYSTEM_EMAILS}{include:system_emails/form.tpl}{/section}

			{section:STATISTICS}{include:statistics/index.tpl}{/section}
			{section:STATISTICS_LINKS}{include:statistics_links/index.tpl}{/section}

			{section:STATISTICS_CAMPAIGNS}{include:statistics/campaigns/index.tpl}{/section}
			{section:STATISTICS_CAMPAIGNS_OVERVIEW}{include:statistics/campaigns/overview.tpl}{/section}
			{section:STATISTICS_CAMPAIGNS_DELIVERY_STATS}{include:statistics/campaigns/delivery_stats.tpl}{/section}
			{section:STATISTICS_CAMPAIGNS_CLICK_THROUGH}{include:statistics/campaigns/click_through.tpl}{/section}
			{section:STATISTICS_CAMPAIGNS_BOUNCED_EMAILS}{include:statistics/campaigns/bounced_emails.tpl}{/section}
			{section:STATISTICS_CAMPAIGNS_UNSUBSCRIBE_STATS}{include:statistics/campaigns/unsubscribe_stats.tpl}{/section}
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="br"><img src="{global:PATH}img/spacer.gif" width="1" height="1" border="0"></div>
	</div>
</div>

<div id="bottom">
	<div class="left">
		<div class="right">
			Copyright &copy; {rs:COPYRIGHT_YEAR} Mailing List Manager Pro™. All Rights Reserved.
		</div>
	</div>
</div>
</div>
{section:IMPORT_STEP_3}<script>Import.Start('{global:PATH}subscribers/import/import.php', {count});</script>{/section}
{section:EXPORT_STEP_1}<script>Export.Start('{global:PATH}subscribers/export/export.php', {count});</script>{/section}
{section:NEWSLETTER_SEND_ALL_0}<script>TSend.Start('{global:PATH}newsletters/task.php', {count}, {id});</script>{/section}
{section:NEWSLETTER_SEND_ALL_1}<script>TSend.Start('{global:PATH}newsletters/send.php', {count}, {id});</script>{/section}
<script>
	function onResize() {
		var height=$(window).height()-($("#top").outerHeight(true)+$("#bottom").outerHeight(true)+40+$("#mainContentBox").outerHeight(true)-$("#mainContentBox").height());
		if ($("#mainContent").height()<height) $("#mainContentBox").height(height);
		else $("#mainContentBox").height($("#mainContent").height());

		if ($("#loginContainer")) {
			var x=$("#mainContent").offset().left+Math.floor(($("#mainContentBox").width()-$("#loginContainer").outerWidth())/2);
			var y=$("#mainContent").offset().top+Math.floor(($("#mainContentBox").height()-$("#loginContainer").outerHeight())/2);
			$("#loginContainer").offset({left: x, top: y});
		}
	}

	{section:SHOW_SEARCH}
	$("input[name='_searchContainer']").keydown(function(event) {
  		if (event.keyCode == '13') $("#filterForm").submit();
	});
	{/section}

	$(window).resize(onResize);
	$("#quickSettings").hover(	function() {$("#quickMenu").find(".subMenu").show();$("#quickSettings").addClass('hover');},
					function() {
						$("#quickMenu").find(".subMenu").hover(	function() {$("#quickMenu").find(".subMenu").show();},
											function() {$("#quickMenu").find(".subMenu").hide();$("#quickSettings").removeClass('hover');});

					});
	$('#recordsList .table .line').hover(function() {
		 $(this).toggleClass("hover");

	});
	$('.button').hover(function() {
		 $(this).toggleClass("hover");

	});
	$("#variablesButton").hover(function() {
		$(this).toggleClass("hover");
	});
	$(window).load(onResize);
</script>
</body>
</html>