public function display(array $context)
    {
        // line 1
        echo "<script language=\"javascript\" type=\"text/javascript\">//<![CDATA[
if (typeof lang == 'undefined') { lang = {}; }
lang.EmailIntegration_ExportMachine_FailedToLoadDialog = \"";
        // line 3
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegration_ExportMachine_FailedToLoadDialog"), "'");
        echo "\";
//]]></script>
";
    }
    public function display(array $context)
    {
        // line 1
        echo "\t<div class=\"BodyContainer\">

\t<table id=\"Table13\" cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\">
\t\t<tr>
\t\t\t<td class=\"Heading1\">
\t\t\t\t";
        // line 6
        echo getLang("View");
        echo ": <a href=\"#\" style=\"color:#005FA3\" id=\"ViewsMenuButton\" class=\"PopDownMenu\">";
        echo twig_safe_filter((isset($context['ViewName']) ? $context['ViewName'] : null));
        echo " <img width=\"8\" height=\"5\" src=\"images/arrow_blue.gif\" border=\"0\" /></a>
\t\t\t</td>
\t\t</tr>
\t\t<tr>
\t\t<td class=\"Intro\">
\t\t\t<p>";
        // line 11
        echo getLang("ManageReturnsIntro");
        echo "</p>
\t\t\t<div id=\"ReturnsStatus\">
\t\t\t\t";
        // line 13
        echo twig_safe_filter((isset($context['Message']) ? $context['Message'] : null));
        echo "
\t\t\t</div>
\t\t\t<table id=\"IntroTable\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">
\t\t\t<tr>
\t\t\t<td class=\"Intro\" valign=\"top\">
\t\t\t\t<input type=\"button\" name=\"IndexDeleteButton\" value=\"";
        // line 18
        echo getLang("DeleteSelected");
        echo "\" id=\"IndexDeleteButton\" class=\"SmallButton\" onclick=\"ConfirmDeleteSelected()\" ";
        echo twig_safe_filter((isset($context['DisableDelete']) ? $context['DisableDelete'] : null));
        echo " />
\t\t\t</td>
\t\t\t<td class=\"SmallSearch\" align=\"right\">
\t\t\t\t<table id=\"Table16\" style=\"display:";
        // line 21
        echo twig_safe_filter((isset($context['DisplaySearch']) ? $context['DisplaySearch'] : null));
        echo "\">
\t\t\t\t<form name=\"frmReturns\" id=\"frmReturns\" action=\"index.php?ToDo=viewReturns";
        // line 22
        echo twig_safe_filter((isset($context['SortURL']) ? $context['SortURL'] : null));
        echo "\" method=\"get\">
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"text\" nowrap align=\"right\">
\t\t\t\t\t\t<input name=\"ToDo\" id=\"ToDo\" type=\"hidden\" value=\"viewReturns\" />
\t\t\t\t\t\t<input name=\"searchQuery\" id=\"searchQuery\" type=\"text\" value=\"";
        // line 26
        echo twig_safe_filter((isset($context['Query']) ? $context['Query'] : null));
        echo "\" id=\"SearchQuery\" class=\"SearchBox\" style=\"width:150px\" />&nbsp;
\t\t\t\t\t\t<select name=\"returnStatus\" id=\"returnStatus\">
\t\t\t\t\t\t\t<option value=\"0\">";
        // line 28
        echo getLang("AllStatuses");
        echo "</option>
\t\t\t\t\t\t\t";
        // line 29
        echo twig_safe_filter((isset($context['ReturnStatusList']) ? $context['ReturnStatusList'] : null));
        echo "
\t\t\t\t\t\t<input type=\"image\" name=\"SearchButton\" id=\"SearchButton\" src=\"images/searchicon.gif\" border=\"0\" style=\"padding-left: 10px; vertical-align: top;\" />
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td nowrap>
\t\t\t\t\t\t<a href=\"index.php?ToDo=searchReturns\">";
        // line 35
        echo getLang("AdvancedSearch");
        echo "</a>
\t\t\t\t\t\t<span style=\"display:";
        // line 36
        echo twig_safe_filter((isset($context['HideClearResults']) ? $context['HideClearResults'] : null));
        echo "\">| <a id=\"SearchClearButton\" href=\"index.php?ToDo=viewReturns\">";
        echo getLang("ClearResults");
        echo "</a></span>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t</form>
\t\t\t\t</table>
\t\t\t</td>
\t\t\t</tr>
\t\t\t</table>
\t\t</td>
\t\t</tr>
\t\t<tr>
\t\t<td style=\"display: ";
        // line 47
        echo twig_safe_filter((isset($context['DisplayGrid']) ? $context['DisplayGrid'] : null));
        echo "\">
\t\t\t<form name=\"frmReturns1\" id=\"frmReturns1\" method=\"post\" action=\"index.php?ToDo=deleteReturns\">
\t\t\t\t<div class=\"GridContainer\">
\t\t\t\t\t";
        // line 50
        echo twig_safe_filter((isset($context['ReturnsDataGrid']) ? $context['ReturnsDataGrid'] : null));
        echo "
\t\t\t\t</div>
\t\t\t</form>
\t\t</td></tr>
\t</table>
\t</div>
\t\t<div id=\"ViewsMenu\" class=\"DropDownMenu DropShadow\" style=\"display: none; width:200px\">
\t\t\t\t<ul>
\t\t\t\t\t";
        // line 58
        echo twig_safe_filter((isset($context['CustomSearchOptions']) ? $context['CustomSearchOptions'] : null));
        echo "
\t\t\t\t</ul>
\t\t\t\t<hr />
\t\t\t\t<ul>
\t\t\t\t\t<li><a href=\"index.php?ToDo=createReturnView\" style=\"background-image:url('images/view_add.gif'); background-repeat:no-repeat; background-position:5px 5px; padding-left:28px\">";
        // line 62
        echo getLang("CreateANewView");
        echo "</a></li>
\t\t\t\t\t<li style=\"display:";
        // line 63
        echo twig_safe_filter((isset($context['HideDeleteViewLink']) ? $context['HideDeleteViewLink'] : null));
        echo "\"><a onclick=\"\$('#ViewsMenu').hide(); ConfirmDeleteCustomSearch('";
        echo twig_safe_filter((isset($context['CustomSearchId']) ? $context['CustomSearchId'] : null));
        echo "')\" href=\"javascript:void(0)\" style=\"background-image:url('images/view_del.gif'); background-repeat:no-repeat; background-position:5px 5px; padding-left:28px\">";
        echo getLang("DeleteThisView");
        echo "</a></li>
\t\t\t\t</ul>
\t\t\t</div>
\t\t</div>
\t\t</div>
\t\t</div>
\t</div>

\t<script type=\"text/javascript\">
\t\tfunction ConfirmDeleteSelected()
\t\t{
\t\t\tif(\$('.DeleteCheck:checked').length == 0) {
\t\t\t\talert('";
        // line 75
        echo Interspire_Template_Extension::jsFilter(getLang("ChooseReturnsToDelete"), "'");
        echo "');
\t\t\t}
\t\t\telse {
\t\t\t\tif(confirm('";
        // line 78
        echo Interspire_Template_Extension::jsFilter(getLang("ConfirmDeleteReturns"), "'");
        echo "')) {
\t\t\t\t\t\$('#frmReturns1').submit();
\t\t\t\t}
\t\t\t}
\t\t}

\t\t\$(function(){
\t\t\t\$('.returnStatusSelect').each(function(){
\t\t\t\t// on dom ready, store the initial value of each return status select
\t\t\t\t\$(this).data('initialValue', \$(this).val());
\t\t\t}).live('change', function(){
\t\t\t\t// this replaces the ONCHANGE= that used to be on each select in manage.row template
\t\t\t\tvar \$\$ = \$(this),
\t\t\t\t\treturnId = \$\$.attr('id').replace('status_', '');

\t\t\t\tif (!returnId) {
\t\t\t\t\treturn false;
\t\t\t\t}

\t\t\t\tvar statusId = \$\$.val();
\t\t\t\tvar statusText = \$\$.find(':selected').text();
\t\t\t\tUpdateReturnStatus(returnId, statusId, statusText, \$\$.data('initialValue'))
\t\t\t});
\t\t});

\t\tfunction UpdateReturnStatus(returnid, statusid, statustext, initialstatus) {
\t\t\t// this fn could use rewriting to make better use of \$.data -- leaving alone for now and adding the .live() binding instead

\t\t\tif(confirm('";
        // line 106
        echo Interspire_Template_Extension::jsFilter(getLang("ConfirmReturnStatusChange"), "'");
        echo "' + ' ' + statustext.toLowerCase() + \"?\")) {
\t\t\t\t\$('#ajax_status_'+returnid).show();
\t\t\t\t\$.ajax({
\t\t\t\t\turl: 'remote.php?w=updateReturnStatus&returnId='+returnid+'&status='+statusid,
\t\t\t\t\tsuccess: function(response) {
\t\t\t\t\t\t\$('#ajax_status_'+returnid).hide();
\t\t\t\t\t\tif(response == 0) {
\t\t\t\t\t\t\talert('";
        // line 113
        echo Interspire_Template_Extension::jsFilter(getLang("FailedUpdateReturnStatus"), "'");
        echo "');
\t\t\t\t\t\t}
\t\t\t\t\t},
\t\t\t\t\terror: function() {
\t\t\t\t\t\talert('";
        // line 117
        echo Interspire_Template_Extension::jsFilter(getLang("FailedUpdateReturnStatus"), "'");
        echo "');
\t\t\t\t\t}
\t\t\t\t});
\t\t\t\t\$('#status_'+returnid).attr('lastStatus', statusid);
\t\t\t}
\t\t\telse {
\t\t\t\tif(\$('#status_'+returnid).attr('lastStatus')) {
\t\t\t\t\t\$('#status_'+returnid).val(\$('#status_'+returnid).attr('lastStatus'));
\t\t\t\t}
\t\t\t\telse {
\t\t\t\t\t\$('#status_'+returnid).val(initialstatus);
\t\t\t\t}
\t\t\t}
\t\t}

\t\tfunction ConfirmDeleteCustomSearch(id) {
\t\t\tif(confirm('";
        // line 133
        echo Interspire_Template_Extension::jsFilter(getLang("ConfirmDeleteCustomSearch"), "'");
        echo "')) {
\t\t\t\tdocument.location.href = \"index.php?ToDo=deleteCustomReturnSearch&searchId=\"+id;
\t\t\t}
\t\t}

\t\tfunction QuickReturnView(id) {
\t\t\tvar tr = document.getElementById(\"tr\"+id);
\t\t\tvar trQ = document.getElementById(\"trQ\"+id);
\t\t\tvar tdQ = document.getElementById(\"tdQ\"+id);
\t\t\tvar img = document.getElementById(\"expand\"+id);

\t\t\tif(img.src.indexOf(\"plus.gif\") > -1)
\t\t\t{
\t\t\t\timg.src = \"images/minus.gif\";

\t\t\t\tfor(i = 0; i < tr.childNodes.length; i++)
\t\t\t\t{
\t\t\t\t\tif(tr.childNodes[i].style != null)
\t\t\t\t\t\ttr.childNodes[i].style.backgroundColor = \"#dbf3d1\";
\t\t\t\t}

\t\t\t\ttrQ.style.display = \"\";
\t\t\t\t\$(trQ).find('.QuickView').load('remote.php?w=returnQuickView&returnId='+id, {}, function() {
\t\t\t\t\ttrQ.style.display = \"\";
\t\t\t\t});
\t\t\t}
\t\t\telse
\t\t\t{
\t\t\t\timg.src = \"images/plus.gif\";

\t\t\t\tfor(i = 0; i < tr.childNodes.length; i++)
\t\t\t\t{
\t\t\t\t\tif(tr.childNodes[i].style != null)
\t\t\t\t\t\ttr.childNodes[i].style.backgroundColor = \"\";
\t\t\t\t}
\t\t\t\ttrQ.style.display = \"none\";
\t\t\t}
\t\t}

\t\tfunction UpdateReturnNotes(id) {
\t\t\tvar returnNotes = \$('#ReturnNotes' + id),
\t\t\t\tsubmitButton = returnNotes.find('input[type=button]');

\t\t\tsubmitButton
\t\t\t\t.attr('disabled', 'disabled');

\t\t\t\$.ajax({
\t\t\t\turl: 'remote.php?w=updateReturnNotes',
\t\t\t\ttype: 'POST',
\t\t\t\tdata: {
\t\t\t\t\treturnId: id,
\t\t\t\t\treturnNotes: returnNotes.find('textarea[name=returnNotes]').val()
\t\t\t\t},
\t\t\t\tcomplete: function() {
\t\t\t\t\tsubmitButton.removeAttr('disabled');
\t\t\t\t},
\t\t\t\tsuccess: function(msg) {
\t\t\t\t\tif (msg == 1) {
\t\t\t\t\t\tdisplay_success('ReturnsStatus', '";
        // line 191
        echo Interspire_Template_Extension::jsFilter(getLang("ReturnNotesUpdated"), "'");
        echo "');
\t\t\t\t\t\treturn;
\t\t\t\t\t}

\t\t\t\t\talert('";
        // line 195
        echo Interspire_Template_Extension::jsFilter(getLang("ReturnNotesUpdateError"), "'");
        echo "');
\t\t\t\t},
\t\t\t\terror: function() {
\t\t\t\t\tdisplay_error('ReturnsStatus', '";
        // line 198
        echo Interspire_Template_Extension::jsFilter(getLang("ReturnNotesUpdateError"), "'");
        echo "');
\t\t\t\t}
\t\t\t});
\t\t}

\t\tfunction ConfirmIssueCredit(amount) {
\t\t\tif(confirm('";
        // line 204
        echo Interspire_Template_Extension::jsFilter(getLang("ConfirmReturnIssueCredit"), "'");
        echo "'.replace('%s', amount))) {
\t\t\t\treturn true;
\t\t\t}
\t\t\treturn false;
\t\t}
</script>
";
    }
    public function display(array $context)
    {
        // line 1
        echo "\t<p class=\"HelpInfo\">";
        echo getLang("EbayHelp");
        echo "</p>
\t<div class=\"BodyContainer\">
\t\t<input id=\"currentTab\" name=\"currentTab\" value=\"0\" type=\"hidden\">
\t\t<input id=\"ebaystore\" name=\"EbayStore\" value=\"\" type=\"hidden\">
\t\t<table class=\"OuterPanel\">
\t\t<tr>
\t\t\t<td class=\"Heading1\">
\t\t\t\t";
        // line 8
        echo getLang("Ebay");
        echo "\t\t\t</td>
\t\t</tr>
\t\t<tr>
\t\t\t<td>
\t\t\t\t<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Intro\">
\t\t\t\t\t\t\t";
        // line 16
        echo twig_safe_filter((isset($context['Message']) ? $context['Message'] : null));
        echo "
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</td>
\t\t</tr>
\t\t<tr>
\t\t\t<td>
\t\t\t\t<ul id=\"tabnav\">
\t\t\t\t\t<li style=\"";
        // line 25
        echo twig_safe_filter((isset($context['ShowTab']) ? $context['ShowTab'] : null));
        echo "\"><a href=\"#\" id=\"tab0\" onclick=\"ShowTab(0);return false;\">";
        echo getLang("LiveEbayListing");
        echo "</a></li>
\t\t\t\t\t<li style=\"";
        // line 26
        echo twig_safe_filter((isset($context['ShowTab']) ? $context['ShowTab'] : null));
        echo "\"><a href=\"#\" id=\"tab1\" onclick=\"ShowTab(1);return false;\">";
        echo getLang("EbayListingTemplate");
        echo "</a></li>
\t\t\t\t\t<li><a href=\"#\" class=\"active\" id=\"tab2\" onclick=\"ShowTab(2);return false;\">";
        // line 27
        echo getLang("EbaySellingSettings");
        echo "</a></li>
\t\t\t\t</ul>
\t\t\t</td>
\t\t</tr>
\t\t<tr>
\t\t\t<td>
\t\t\t\t<div id=\"div0\" style=\"padding-top: 10px;";
        // line 33
        echo twig_safe_filter((isset($context['ShowTab']) ? $context['ShowTab'] : null));
        echo "\">
\t\t\t\t\t<table id=\"IntroTable\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td colspan=\"2\" class=\"Intro\">
\t\t\t\t\t\t\t\t";
        // line 37
        echo twig_safe_filter((isset($context['ManageEbayLiveListingIntro']) ? $context['ManageEbayLiveListingIntro'] : null));
        echo "
\t\t\t\t\t\t\t\t";
        // line 38
        echo twig_safe_filter((isset($context['EbayLiveListingMessage']) ? $context['EbayLiveListingMessage'] : null));
        echo "
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td class=\"Intro\" style=\"";
        // line 42
        echo twig_safe_filter((isset($context['ShowListingOptions']) ? $context['ShowListingOptions'] : null));
        echo "\">
\t\t\t\t\t\t\t\t<form id=\"ebaylistingaction\" method=\"post\">
\t\t\t\t\t\t\t\t\t<select class=\"Field250\" name=\"ListingActionSelect\" id=\"ListingActionSelect\" ";
        // line 44
        echo twig_safe_filter((isset($context['DisableListingActionDropdown']) ? $context['DisableListingActionDropdown'] : null));
        echo ">
\t\t\t\t\t\t\t\t\t\t<option value=\"\">";
        // line 45
        echo getLang("ChooseAnAction");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t<option value=\"removelistingref\">";
        // line 46
        echo getLang("RemoveListingsAction");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t<option value=\"endlistingfromebay\">";
        // line 47
        echo getLang("EndListingsFromEbayAction");
        echo "</option>
\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t<input type=\"button\" style=\"width: 40px;\" class=\"FormButton\" value=\"Go\" name=\"EbayLiveListingActionButton\" id=\"ebayLiveListingActionButton\" ";
        // line 49
        echo twig_safe_filter((isset($context['DisableListingActionDropdown']) ? $context['DisableListingActionDropdown'] : null));
        echo ">
\t\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t<td class=\"SmallSearch\" align=\"right\">
\t\t\t\t\t\t\t\t<table id=\"Table16\" style=\"";
        // line 53
        echo twig_safe_filter((isset($context['DisplayListingSearch']) ? $context['DisplayListingSearch'] : null));
        echo "\">
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t<form action=\"index.php?ToDo=viewEbay&currentTab=0";
        // line 55
        echo twig_safe_filter((isset($context['SortURL']) ? $context['SortURL'] : null));
        echo "\" method=\"get\" onsubmit=\"return ValidateForm(CheckSearchForm('listing'))\">
\t\t\t\t\t\t\t\t\t\t<td nowrap>
\t\t\t\t\t\t\t\t\t\t\t<select class=\"Field150\" name=\"listingType\" id=\"ListingType\">
\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"\">";
        // line 58
        echo getLang("AllListingTypes");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"FixedPriceItem\">";
        // line 59
        echo getLang("FixedPriceItem");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"Chinese\">";
        // line 60
        echo getLang("Chinese");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t<td nowrap>
\t\t\t\t\t\t\t\t\t\t\t<select class=\"Field150\" name=\"listingStatus\" id=\"ListingStatus\">
\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"\">";
        // line 65
        echo getLang("AllListingStatuses");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"active\">";
        // line 66
        echo getLang("Active");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"pending\">";
        // line 67
        echo getLang("Pending");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"sold\">";
        // line 68
        echo getLang("Sold");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"unsold\">";
        // line 69
        echo getLang("Unsold");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"won\">";
        // line 70
        echo getLang("Won");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t<td nowrap>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"ToDo\" value=\"viewEbay\">
\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"currentTab\" value=\"0\">
\t\t\t\t\t\t\t\t\t\t\t<input name=\"searchQueryListing\" id=\"searchQueryListing\" type=\"text\" value=\"";
        // line 76
        echo twig_safe_filter((isset($context['ListingQuery']) ? $context['ListingQuery'] : null));
        echo "\" id=\"SearchQuery\" class=\"Button\" size=\"20\" />&nbsp;
\t\t\t\t\t\t\t\t\t\t\t<input type=\"image\" name=\"SearchButton\" id=\"SearchButton\" style=\"padding-left: 10px; vertical-align: top;\" src=\"images/searchicon.gif\" border=\"0\" />
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t<td align=\"right\" style=\"padding-right:55pt\" colspan=\"3\">
\t\t\t\t\t\t\t\t\t\t\t<a id=\"SearchClearButton\" href=\"index.php?ToDo=viewEbay&currentTab=0\">";
        // line 83
        echo getLang("ClearResults");
        echo "</a>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t<td></td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t</table>
\t\t\t\t\t<form id=\"deleteebaylivelisting\" method=\"post\" action=\"index.php?ToDo=deleteLocalEbayListing\">
\t\t\t\t\t\t<div class=\"GridContainer\">
\t\t\t\t\t\t\t";
        // line 95
        echo twig_safe_filter((isset($context['EbayListingDataGrid']) ? $context['EbayListingDataGrid'] : null));
        echo "
\t\t\t\t\t\t</div>
\t\t\t\t\t</form>
\t\t\t\t</div>
\t\t\t\t<div id=\"div1\" style=\"padding-top: 10px;";
        // line 99
        echo twig_safe_filter((isset($context['ShowTab']) ? $context['ShowTab'] : null));
        echo "\">
\t\t\t\t\t<table id=\"IntroTable\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td colspan=\"2\" class=\"Intro\" >
\t\t\t\t\t\t\t\t<div style=\"padding-bottom:5px;\">";
        // line 103
        echo getLang("ManageEbayTemplateIntro");
        echo "</div>
\t\t\t\t\t\t\t\t";
        // line 104
        echo twig_safe_filter((isset($context['EbayListingTemplateMessage']) ? $context['EbayListingTemplateMessage'] : null));
        echo "
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t<input type=\"button\" name=\"IndexAddButton\" value=\"";
        // line 109
        echo getLang("AddEbayTemplate");
        echo "\" id=\"IndexCreateButton\" class=\"SmallButton\" onclick=\"document.location.href='index.php?ToDo=addEbayTemplate'\" /> &nbsp;
\t\t\t\t\t\t\t\t<input type=\"button\" name=\"IndexDeleteButton\" value=\"";
        // line 110
        echo getLang("DeleteSelected");
        echo "\" id=\"IndexDeleteButton\" class=\"SmallButton\" ";
        echo twig_safe_filter((isset($context['DisableTemplateDelete']) ? $context['DisableTemplateDelete'] : null));
        echo " />
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t<td class=\"SmallSearch\" align=\"right\">
\t\t\t\t\t\t\t\t<table id=\"Table16\" style=\"";
        // line 113
        echo twig_safe_filter((isset($context['DisplayTemplateSearch']) ? $context['DisplayTemplateSearch'] : null));
        echo "\">
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t<form action=\"index.php?ToDo=viewEbay&currentTab=1";
        // line 115
        echo twig_safe_filter((isset($context['SortURL']) ? $context['SortURL'] : null));
        echo "\" method=\"get\" onsubmit=\"return ValidateForm(CheckSearchForm('Template'))\">
\t\t\t\t\t\t\t\t\t\t<td nowrap>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"ToDo\" value=\"viewEbay\">
\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"currentTab\" value=\"1\">
\t\t\t\t\t\t\t\t\t\t\t<input name=\"searchQueryTemplate\" id=\"searchQueryTemplate\" type=\"text\" value=\"";
        // line 119
        echo twig_safe_filter((isset($context['TemplateQuery']) ? $context['TemplateQuery'] : null));
        echo "\" id=\"SearchQuery\" class=\"Button\" size=\"20\" />&nbsp;
\t\t\t\t\t\t\t\t\t\t\t<input type=\"image\" name=\"SearchButton\" id=\"SearchButton\" style=\"padding-left: 10px; vertical-align: top;\" src=\"images/searchicon.gif\" border=\"0\" />
\t\t\t\t\t\t\t\t\t\t\t&nbsp;<a id=\"SearchClearButton\" href=\"index.php?ToDo=viewEbay&currentTab=1\" style=\"position:relative; top:-3px\">";
        // line 121
        echo getLang("ClearResults");
        echo "</a>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t</table>
\t\t\t\t\t<form id=\"deleteebaytemplate\" action=\"index.php?ToDo=DeleteEbayTemplate\" method=\"post\">
\t\t\t\t\t\t<div class=\"GridContainer\">
\t\t\t\t\t\t\t";
        // line 131
        echo twig_safe_filter((isset($context['EbayTemplateDataGrid']) ? $context['EbayTemplateDataGrid'] : null));
        echo "
\t\t\t\t\t\t</div>
\t\t\t\t\t</form>
\t\t\t\t</div>
\t\t\t\t<div id=\"div2\" style=\"padding-top: 10px;\">
\t\t\t\t\t<form action=\"index.php?ToDo=";
        // line 136
        echo twig_safe_filter((isset($context['FormActionEbayConf']) ? $context['FormActionEbayConf'] : null));
        echo "\" method=\"post\" onsubmit=\"return Ebay.CheckManageEbayForm();\">
\t\t\t\t\t\t<table width=\"100%\" class=\"IntroTable\">
\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<td class=\"Intro\">
\t\t\t\t\t\t\t\t\t";
        // line 140
        echo getLang("EbaySettingsIntro");
        echo "\t\t\t\t\t\t\t\t\t";
        // line 141
        echo twig_safe_filter((isset($context['EbayConfigMessage']) ? $context['EbayConfigMessage'] : null));
        echo "
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<td style=\"padding-top: 3px;\">

\t\t\t\t\t\t\t\t\t\t<input type=\"submit\" name=\"SubmitButton1\" value=\"";
        // line 147
        echo getLang("Save");
        echo "\" class=\"FormButton\" />&nbsp;
\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"CancelButton1\" value=\"";
        // line 148
        echo getLang("Cancel");
        echo "\" class=\"FormButton\" />

\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t</table>
\t\t\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 155
        echo getLang("Ebay");
        echo "</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 159
        echo getLang("EbayDevId");
        echo ":
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"ebaydevid\" name=\"EbayDevId\" class=\"Field250\" value=\"";
        // line 162
        echo twig_safe_filter((isset($context['EbayDevId']) ? $context['EbayDevId'] : null));
        echo "\">
\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d0');\" onmouseover=\"ShowHelp('d0', '";
        // line 163
        echo getLang("EbayDevId");
        echo "', '";
        echo getLang("EbayDevIdHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" style=\"margin-top: 5px;\" />
\t\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d0\"></div>
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 169
        echo getLang("EbayAppId");
        echo ":
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"ebayappid\" name=\"EbayAppId\" class=\"Field250\" value=\"";
        // line 172
        echo twig_safe_filter((isset($context['EbayAppId']) ? $context['EbayAppId'] : null));
        echo "\">
\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d1');\" onmouseover=\"ShowHelp('d1', '";
        // line 173
        echo getLang("EbayAppId");
        echo "', '";
        echo getLang("EbayAppIdHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" style=\"margin-top: 5px;\" />
\t\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d1\"></div>
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 179
        echo getLang("EbayCertId");
        echo ":
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"ebaycertid\" name=\"EbayCertId\" class=\"Field250\" value=\"";
        // line 182
        echo twig_safe_filter((isset($context['EbayCertId']) ? $context['EbayCertId'] : null));
        echo "\">
\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d2');\" onmouseover=\"ShowHelp('d2', '";
        // line 183
        echo getLang("EbayCertId");
        echo "', '";
        echo getLang("EbayCertIdHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" style=\"margin-top: 5px;\" />
\t\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d2\"></div>
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 189
        echo getLang("EbayUserToken");
        echo ":
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"ebayusertoken\" name=\"EbayUserToken\" class=\"Field250\" value=\"";
        // line 192
        echo twig_safe_filter((isset($context['EbayUserToken']) ? $context['EbayUserToken'] : null));
        echo "\">
\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d3');\" onmouseover=\"ShowHelp('d3', '";
        // line 193
        echo getLang("EbayUserToken");
        echo "', '";
        echo getLang("EbayUserTokenHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" style=\"margin-top: 5px;\" />
\t\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d3\"></div>
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 199
        echo getLang("EbayDefaultSite");
        echo ":
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t<select name=\"EbayDefaultSite\" id=\"ebaydefaultsite\" class=\"Field250\">
\t\t\t\t\t\t\t\t\t\t";
        // line 203
        echo twig_safe_filter((isset($context['EbayDefaultSite']) ? $context['EbayDefaultSite'] : null));
        echo "
\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d4');\" onmouseover=\"ShowHelp('d4', '";
        // line 205
        echo getLang("EbayDefaultSite");
        echo "', '";
        echo getLang("EbayDefaultSiteHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" style=\"margin-top: 5px;\" />
\t\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d4\"></div>
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 211
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "EbayTestMode", array(), "any"), "1");
        echo ":
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t<select name=\"EbayTestMode\" id=\"EbayTestMode\" class=\"Field250\">
\t\t\t\t\t\t\t\t\t\t<option id=\"productionSite\" ";
        // line 215
        echo twig_safe_filter((isset($context['DisableProd']) ? $context['DisableProd'] : null));
        echo " value=\"production\" ";
        if ((isset($context['EbayTestMode']) ? $context['EbayTestMode'] : null) == "production") {
            echo "selected=\"selected\"";
        }
        echo ">";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "EbayModeProduction", array(), "any"), "1");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t<option value=\"sandbox\" ";
        // line 216
        if ((isset($context['EbayTestMode']) ? $context['EbayTestMode'] : null) == "sandbox") {
            echo "selected=\"selected\"";
        }
        echo ">";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "EbayModeSandbox", array(), "any"), "1");
        echo "</option>
\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d4');\" onmouseover=\"ShowHelp('d4', '";
        // line 218
        echo Interspire_Template_Extension::jsFilter(getLang("EbayTestMode"), "'");
        echo "', '";
        echo Interspire_Template_Extension::jsFilter(getLang("EbayTestModeHelp"), "'");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" style=\"margin-top: 5px;\" />
\t\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d4\"></div>
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 224
        echo getLang("EbayStore");
        echo ":
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t";
        // line 227
        echo twig_safe_filter((isset($context['EbayStoreDisplay']) ? $context['EbayStoreDisplay'] : null));
        echo "
\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d5');\" onmouseover=\"ShowHelp('d5', '";
        // line 228
        echo getLang("EbayStore");
        echo "', '";
        echo getLang("EbayStoreHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" style=\"margin-top: 5px;\" />
\t\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d5\"></div>
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<td class=\"Gap\"></td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t</table>
\t\t\t\t\t</form>
\t\t\t\t</div>
\t\t\t</td>
\t\t</tr>
\t</table>
</div>
</form>
<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/disabled/jquery.disabled.js?";
        // line 243
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"../javascript/fsm.js?";
        // line 244
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"script/ebay.js?";
        // line 245
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"script/ebay.endlisting.js?";
        // line 246
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\">//<![CDATA[
\$(document).ready(function() {
\tShowTab(";
        // line 249
        echo twig_safe_filter((isset($context['CurrentTab']) ? $context['CurrentTab'] : null));
        echo ");

\t\$('#checkstore').click(function() {
\t\tEbay.GetEbayStore();
\t\treturn false;
\t});

\t\$('#IndexDeleteButton').click(function() {
\t\tif (\$('.EbayTemplate:checked').length < 1) {
\t\t\talert (\"";
        // line 258
        echo getLang("ChooseTemplate");
        echo "\")
\t\t\treturn false;
\t\t}

\t\tif (confirm(\"";
        // line 262
        echo getLang("ConfirmDeleteTemplate");
        echo "\")) {
\t\t\t\$('#deleteebaytemplate').submit();
\t\t}
\t});
\t\$(\"#ListingType\").val('";
        // line 266
        echo twig_escape_filter($this->env, (isset($context['ListingType']) ? $context['ListingType'] : null), "1");
        echo "');
\t\$(\"#ListingStatus\").val('";
        // line 267
        echo twig_escape_filter($this->env, (isset($context['ListingStatus']) ? $context['ListingStatus'] : null), "1");
        echo "');


\t";
        // line 270
        if ((isset($context['updateCache']) ? $context['updateCache'] : null)) {
            echo "\t\tEbay.StartAjaxEbayUpdate();
\t";
        }
        // line 272
        echo "});

Ebay.EventsInit();

lang.EbayEnterDevId = '";
        // line 277
        echo Interspire_Template_Extension::jsFilter(getLang("EbayEnterDevId"), "'");
        echo "';
lang.EbayEnterAppID = '";
        // line 278
        echo Interspire_Template_Extension::jsFilter(getLang("EbayEnterAppID"), "'");
        echo "';
lang.EbayEnterCertID = '";
        // line 279
        echo Interspire_Template_Extension::jsFilter(getLang("EbayEnterCertID"), "'");
        echo "';
lang.EbayEnterUserToken = '";
        // line 280
        echo Interspire_Template_Extension::jsFilter(getLang("EbayEnterUserToken"), "'");
        echo "';
lang.EbayEnterDefaultSiteId = '";
        // line 281
        echo Interspire_Template_Extension::jsFilter(getLang("EbayEnterDefaultSiteId"), "'");
        echo "';
lang.ChooseActionFirst = '";
        // line 282
        echo Interspire_Template_Extension::jsFilter(getLang("ChooseActionFirst"), "'");
        echo "';
lang.LoadDialogFailed = '";
        // line 283
        echo Interspire_Template_Extension::jsFilter(getLang("LoadDialogFailed"), "'");
        echo "';
lang.UnknownErrorRetrieveData = '";
        // line 284
        echo Interspire_Template_Extension::jsFilter(getLang("UnknownErrorRetrieveData"), "'");
        echo "';
lang.ChooseListing = '";
        // line 285
        echo Interspire_Template_Extension::jsFilter(getLang("ChooseListing"), "'");
        echo "';
lang.ConfirmRemoveListing = '";
        // line 286
        echo Interspire_Template_Extension::jsFilter(getLang("ConfirmRemoveListing"), "'");
        echo "';
lang.ConfirmRemoveListings = '";
        // line 287
        echo Interspire_Template_Extension::jsFilter(getLang("ConfirmRemoveListings"), "'");
        echo "';
lang.ConfirmEndListing = '";
        // line 288
        echo Interspire_Template_Extension::jsFilter(getLang("ConfirmEndListing"), "'");
        echo "';
lang.ConfirmCancelEbaySettings = '";
        // line 289
        echo getLang("ConfirmCancelEbaySettings");
        echo "';
lang.SelectAllEndReason = '";
        // line 290
        echo Interspire_Template_Extension::jsFilter(getLang("SelectAllEndReason"), "'");
        echo "';
lang.EbaySandboxOnly = '";
        // line 291
        echo Interspire_Template_Extension::jsFilter(getLang("EbaySandboxOnly"), "'");
        echo "';

function CheckSearchForm(section) {
\tif (\$('#searchQuery' + section).val() == '') {
\t\talert(\"";
        // line 295
        echo getLang("EnterSearchTerm");
        echo "\");
\t\t\$('#searchQuery' + section).focus()
\t\treturn false;
\t}
\treturn true;
}
//]]></script>";
    }
    public function display(array $context)
    {
        // line 1
        $context['util'] = $this->env->loadTemplate("macros/util.tpl", true);
        // line 2
        $context['form'] = $this->env->loadTemplate("macros/forms.tpl", true);
        echo "<form enctype=\"multipart/form-data\" action=\"index.php?ToDo=saveUpdatedSettings\" name=\"frmSettings\" id=\"frmSettings\" method=\"post\">
\t<input id=\"currentTab\" name=\"currentTab\" value=\"0\" type=\"hidden\" />
\t<div class=\"BodyContainer\">
\t<table cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\" style=\"margin-left: 4px; margin-top: 8px;\">
\t<tr>
\t\t<td class=\"Heading1\">";
        // line 8
        echo getLang("StoreSettings");
        echo "</td>
\t</tr>
\t<tr>
\t\t<td class=\"Intro\" style=\"padding-bottom:10px\">
\t\t\t<p>";
        // line 12
        echo getLang("SettingsIntro");
        echo "</p>
\t\t\t";
        // line 13
        echo twig_safe_filter((isset($context['Message']) ? $context['Message'] : null));
        echo "
\t\t\t<p>
\t\t\t\t<input type=\"submit\" disabled=\"disabled\" value=\"";
        // line 15
        echo getLang("Save");
        echo "\" class=\"FormButton\" />
\t\t\t\t<input type=\"reset\" value=\"";
        // line 16
        echo getLang("Cancel");
        echo "\" class=\"FormButton\" onclick=\"ConfirmCancel()\" />
\t\t\t</p>
\t\t</td>
\t</tr>
\t<tr>
\t\t<td>
\t\t\t<ul id=\"tabnav\">
\t\t\t\t<li><a href=\"#\" class=\"active\" id=\"tab0\" onclick=\"ShowTab(0)\">";
        // line 23
        echo getLang("WebsiteSettingsTab");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab1\" onclick=\"ShowTab(1)\">";
        // line 24
        echo getLang("LocalizationSettingsTab");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab8\" onclick=\"ShowTab(8)\">";
        // line 25
        echo getLang("ImageSettings");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab2\" onclick=\"ShowTab(2)\">";
        // line 26
        echo getLang("DisplaySettingsTab");
        echo "</a></li>
\t\t\t\t<li style=\"display: ";
        // line 27
        echo twig_safe_filter((isset($context['HideBackupSettings']) ? $context['HideBackupSettings'] : null));
        echo "\"><a href=\"#\" id=\"tab3\" onclick=\"ShowTab(3)\">";
        echo getLang("BackupSettingsTab");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab4\" onclick=\"ShowTab(4)\">";
        // line 28
        echo getLang("SearchSettingsTab");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab5\" onclick=\"ShowTab(5)\" style=\"";
        // line 29
        echo twig_safe_filter((isset($context['HideLoggingSettingsTab']) ? $context['HideLoggingSettingsTab'] : null));
        echo "\" >";
        echo getLang("LoggingSettingsTab");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab6\" onclick=\"ShowTab(6)\" style=\"";
        // line 30
        echo twig_safe_filter((isset($context['HideVendorOptions']) ? $context['HideVendorOptions'] : null));
        echo "\">";
        echo getLang("VendorSettingsTab");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab7\" onclick=\"ShowTab(7)\">";
        // line 31
        echo getLang("MiscellaneousSettingsTab");
        echo "</a></li>
\t\t\t</ul>
\t\t</td>
\t</tr>
\t<tr>
\t\t<td>
\t\t\t<div id=\"div0\" style=\"padding-top: 10px;\">
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 40
        echo getLang("SiteSettings");
        echo "</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"StoreName\">";
        // line 44
        echo getLang("StoreName");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"text\" name=\"StoreName\" id=\"StoreName\" value=\"";
        // line 47
        echo twig_safe_filter((isset($context['StoreName']) ? $context['StoreName'] : null));
        echo "\" class=\"Field250\" />
\t\t\t\t\t\t<img onmouseout=\"HideHelp('d1');\" onmouseover=\"ShowHelp('d1', '";
        // line 48
        echo getLang("StoreName");
        echo "', '";
        echo getLang("StoreNameHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"d1\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"StoreName\">";
        // line 54
        echo getLang("StoreAddress");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<textarea name=\"StoreAddress\" id=\"StoreAddress\" class=\"Field250\" rows=\"4\">";
        // line 57
        echo twig_safe_filter((isset($context['StoreAddress']) ? $context['StoreAddress'] : null));
        echo "</textarea>
\t\t\t\t\t\t<img onmouseout=\"HideHelp('d38');\" onmouseover=\"ShowHelp('d38', '";
        // line 58
        echo getLang("StoreAddress");
        echo "', '";
        echo getLang("StoreAddressHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"d38\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"StoreName\">";
        // line 64
        echo getLang("DownForMaintenance");
        echo "?</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"checkbox\" name=\"DownForMaintenance\" id=\"DownForMaintenance\" value=\"ON\" ";
        // line 67
        echo twig_safe_filter((isset($context['IsDownForMaintenance']) ? $context['IsDownForMaintenance'] : null));
        echo " /> <label for=\"DownForMaintenance\">";
        echo getLang("YesDownForMaintenance");
        echo "</label>
\t\t\t\t\t\t<img onmouseout=\"HideHelp('dmaintenance');\" onmouseover=\"ShowHelp('dmaintenance', '";
        // line 68
        echo getLang("DownForMaintenance");
        echo "', '";
        echo getLang("DownForMaintenanceHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"dmaintenance\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr id=\"DownForMaintenanceMessageRow\" style=\"display:none; \">
\t\t\t\t\t<td class=\"FieldLabel\">

\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<textarea name=\"DownForMaintenanceMessage\" id=\"DownForMaintenanceMessage\" class=\"Field250\" rows=\"4\">";
        // line 77
        echo twig_safe_filter((isset($context['DownForMaintenanceMessage']) ? $context['DownForMaintenanceMessage'] : null));
        echo "</textarea>
\t\t\t\t\t\t<img onmouseout=\"HideHelp('d38');\" onmouseover=\"ShowHelp('d38', '";
        // line 78
        echo getLang("StoreAddress");
        echo "', '";
        echo getLang("StoreAddressHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"d38\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td colspan=\"2\" class=\"EmptyRow\">
\t\t\t\t\t\t&nbsp;
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 88
        echo getLang("SiteSecuritySettings");
        echo "</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"StoreName\">";
        // line 92
        echo getLang("UseSSLDuringCheckout");
        echo "?</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<label for=\"NoSSL\"><input type=\"radio\" name=\"UseSSL\" id=\"NoSSL\" value=\"0\" ";
        // line 95
        echo twig_safe_filter((isset($context['NoSSLChecked']) ? $context['NoSSLChecked'] : null));
        echo " /> ";
        echo getLang("DontUseSSL");
        echo "</label>
\t\t\t\t\t\t<img onmouseout=\"HideHelp('d37');\" onmouseover=\"ShowHelp('d37', '";
        // line 96
        echo getLang("UseSSLDuringCheckout");
        echo "', '";
        echo getLang("UseSSLDuringCheckoutHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"d37\"></div>
\t\t\t\t\t\t<br />
\t\t\t\t\t\t<label for=\"UseNormalSSL\"><input type=\"radio\" name=\"UseSSL\" id=\"UseNormalSSL\" value=\"1\" ";
        // line 99
        echo twig_safe_filter((isset($context['UseNormalSSLChecked']) ? $context['UseNormalSSLChecked'] : null));
        echo " /> ";
        echo getLang("UseInstalledSSL");
        echo "</label>
\t\t\t\t\t\t<img onmouseout=\"HideHelp('sslhelp');\" onmouseover=\"ShowHelp('sslhelp', '";
        // line 100
        echo getLang("SSL");
        echo "', '";
        echo getLang("UseInstalledSSLHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"sslhelp\"></div>
\t\t\t\t\t\t<br />
\t\t\t\t\t\t<label for=\"UseSharedSSL\"><input type=\"radio\" name=\"UseSSL\" id=\"UseSharedSSL\" value=\"2\" ";
        // line 103
        echo twig_safe_filter((isset($context['UseSharedSSLChecked']) ? $context['UseSharedSSLChecked'] : null));
        echo " /> ";
        echo getLang("UseSharedSSL");
        echo "</label>
\t\t\t\t\t\t<img onmouseout=\"HideHelp('sharedsslhelp');\" onmouseover=\"ShowHelp('sharedsslhelp', '";
        // line 104
        echo getLang("SharedSSL");
        echo "', '";
        echo getLang("UseSharedSSLHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"sharedsslhelp\"></div>
\t\t\t\t\t\t<div class=\"NodeJoin\">
\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" alt=\"\" /> <input type=\"text\" class=\"Field250\" id=\"SharedSSLPath\" name=\"SharedSSLPath\" value=\"";
        // line 107
        echo twig_safe_filter((isset($context['SharedSSLPath']) ? $context['SharedSSLPath'] : null));
        echo "\" />
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<br />
\t\t\t\t\t\t<label for=\"UseSubdomainSSL\"><input type=\"radio\" name=\"UseSSL\" id=\"UseSubdomainSSL\" value=\"3\" ";
        // line 110
        echo twig_safe_filter((isset($context['UseSubdomainSSLChecked']) ? $context['UseSubdomainSSLChecked'] : null));
        echo " /> ";
        echo getLang("UseSubdomainSSL");
        echo "</label>
\t\t\t\t\t\t<img onmouseout=\"HideHelp('subdomainsslhelp');\" onmouseover=\"ShowHelp('subdomainsslhelp', '";
        // line 111
        echo getLang("SubdomainSSL");
        echo "', '";
        echo getLang("UseSubdomainSSLHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"subdomainsslhelp\"></div>
\t\t\t\t\t\t<div class=\"NodeJoin\">
\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" alt=\"\" /> <input type=\"text\" class=\"Field250\" id=\"SubdomainSSLPath\" name=\"SubdomainSSLPath\" value=\"";
        // line 114
        echo twig_safe_filter((isset($context['SubdomainSSLPath']) ? $context['SubdomainSSLPath'] : null));
        echo "\"/>
\t\t\t\t\t\t</div>

\t\t\t\t\t\t<br />
\t\t\t\t\t\t<div style='display:inline; padding-left:20px'><font size=1><a href='javascript:void(0)' onclick='TestSSL()' style='color:gray'>How do I know if my website supports SSL?</a></font></div>
\t\t\t\t\t\t<div style=\"margin-top:3px; padding-left:20px\"><a style=\"color:gray\" href=\"#\" onclick=\"LaunchHelp(715)\">";
        // line 119
        echo getLang("SSLWontLoad");
        echo "</a></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>

\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"StoreName\">";
        // line 125
        echo getLang("UseControlPanelSSL");
        echo "?</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"checkbox\" name=\"ForceControlPanelSSL\" id=\"UseControlPanelSSL\" value=\"ON\" ";
        // line 128
        echo twig_safe_filter((isset($context['IsControlPanelSSLEnabled']) ? $context['IsControlPanelSSLEnabled'] : null));
        echo " /> <label for=\"UseControlPanelSSL\">";
        echo getLang("YesUseControlPanelSSL");
        echo "</label>
\t\t\t\t\t\t<img onmouseout=\"HideHelp('dadminssl');\" onmouseover=\"ShowHelp('dadminssl', '";
        // line 129
        echo getLang("UseControlPanelSSL");
        echo "', '";
        echo Interspire_Template_Extension::jsFilter(getLang("UseControlPanelSSLHelp"), "'");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"dadminssl\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>

\t\t\t\t<tr>
\t\t\t\t\t<td colspan=\"2\" class=\"EmptyRow\">
\t\t\t\t\t\t&nbsp;
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 140
        echo getLang("AdvancedStoreSettings");
        echo "</td>
\t\t\t\t</tr>
\t\t\t\t<tr style=\"";
        // line 142
        echo twig_safe_filter((isset($context['HideStoreUrlField']) ? $context['HideStoreUrlField'] : null));
        echo "\">
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"ShopPath\">";
        // line 144
        echo getLang("ShopPath");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"text\" name=\"ShopPath\" id=\"ShopPath\" value=\"";
        // line 147
        echo twig_safe_filter((isset($context['ShopPathNormal']) ? $context['ShopPathNormal'] : null));
        echo "\" class=\"Field250\" />
\t\t\t\t\t\t<img onmouseout=\"HideHelp('d2');\" onmouseover=\"ShowHelp('d2', '";
        // line 148
        echo getLang("ShopPath");
        echo "', '";
        echo getLang("ShopPathHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"d2\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"CharacterSet\">";
        // line 154
        echo getLang("CharacterSet");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<select id=\"CharacterSet\" name=\"CharacterSet\" class=\"Field250\">
\t\t\t\t\t\t\t<option value=\"UTF-8\" ";
        // line 158
        echo twig_safe_filter((isset($context['CharacterSet_Selected_utf8']) ? $context['CharacterSet_Selected_utf8'] : null));
        echo ">";
        echo getLang("SettingsCharset_utf8");
        echo "</option>
\t\t\t\t\t\t\t<option value=\"ISO-8859-1\" ";
        // line 159
        echo twig_safe_filter((isset($context['CharacterSet_Selected_iso88591']) ? $context['CharacterSet_Selected_iso88591'] : null));
        echo ">";
        echo getLang("SettingsCharset_iso88591");
        echo "</option>
\t\t\t\t\t\t\t<option value=\"ISO-8859-15\" ";
        // line 160
        echo twig_safe_filter((isset($context['CharacterSet_Selected_iso885915']) ? $context['CharacterSet_Selected_iso885915'] : null));
        echo ">";
        echo getLang("SettingsCharset_iso885915");
        echo "</option>
\t\t\t\t\t\t\t<option value=\"cp866\" ";
        // line 161
        echo twig_safe_filter((isset($context['CharacterSet_Selected_cp866']) ? $context['CharacterSet_Selected_cp866'] : null));
        echo ">";
        echo getLang("SettingsCharset_cp866");
        echo "</option>
\t\t\t\t\t\t\t<option value=\"cp1251\" ";
        // line 162
        echo twig_safe_filter((isset($context['CharacterSet_Selected_cp1251']) ? $context['CharacterSet_Selected_cp1251'] : null));
        echo ">";
        echo getLang("SettingsCharset_cp1251");
        echo "</option>
\t\t\t\t\t\t\t<option value=\"cp1252\" ";
        // line 163
        echo twig_safe_filter((isset($context['CharacterSet_Selected_cp1252']) ? $context['CharacterSet_Selected_cp1252'] : null));
        echo ">";
        echo getLang("SettingsCharset_cp1252");
        echo "</option>
\t\t\t\t\t\t\t<option value=\"KOI8-R\" ";
        // line 164
        echo twig_safe_filter((isset($context['CharacterSet_Selected_koi8r']) ? $context['CharacterSet_Selected_koi8r'] : null));
        echo ">";
        echo getLang("SettingsCharset_koi8r");
        echo "</option>
\t\t\t\t\t\t\t<option value=\"Shift_JIS\" ";
        // line 165
        echo twig_safe_filter((isset($context['CharacterSet_Selected_shiftjis']) ? $context['CharacterSet_Selected_shiftjis'] : null));
        echo ">";
        echo getLang("SettingsCharset_shiftjis");
        echo "</option>
\t\t\t\t\t\t\t<option value=\"EUC-JP\" ";
        // line 166
        echo twig_safe_filter((isset($context['CharacterSet_Selected_eucjp']) ? $context['CharacterSet_Selected_eucjp'] : null));
        echo ">";
        echo getLang("SettingsCharset_eucjp");
        echo "</option>
\t\t\t\t\t\t</select>

\t\t\t\t\t\t<img onmouseout=\"HideHelp('d3');\" onmouseover=\"ShowHelp('d3', '";
        // line 169
        echo getLang("CharacterSet");
        echo "', '";
        echo getLang("CharacterSetHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"d3\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr style=\"";
        // line 173
        echo twig_safe_filter((isset($context['HidePathFields']) ? $context['HidePathFields'] : null));
        echo "\">
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"DownloadDirectory\">";
        // line 175
        echo getLang("DownloadDirectory");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"text\" name=\"DownloadDirectory\" id=\"DownloadDirectory\" value=\"";
        // line 178
        echo twig_safe_filter((isset($context['DownloadDirectory']) ? $context['DownloadDirectory'] : null));
        echo "\" class=\"Field250\" />
\t\t\t\t\t\t<img onmouseout=\"HideHelp('d6');\" onmouseover=\"ShowHelp('d6', '";
        // line 179
        echo getLang("DownloadDirectory");
        echo "', '";
        echo getLang("DownloadDirectoryHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"d6\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr style=\"";
        // line 183
        echo twig_safe_filter((isset($context['HidePathFields']) ? $context['HidePathFields'] : null));
        echo "\">
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"ImageDirectory\">";
        // line 185
        echo getLang("ImageDirectory");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t<input type=\"text\" name=\"ImageDirectory\" id=\"ImageDirectory\" value=\"";
        // line 188
        echo twig_safe_filter((isset($context['ImageDirectory']) ? $context['ImageDirectory'] : null));
        echo "\" class=\"Field250\" />
\t\t\t\t\t\t<img onmouseout=\"HideHelp('d7');\" onmouseover=\"ShowHelp('d7', '";
        // line 189
        echo getLang("ImageDirectory");
        echo "', '";
        echo getLang("ImageDirectoryHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"d7\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"StoreName\">";
        // line 195
        echo getLang("AllowPurchasing");
        echo "?</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"checkbox\" name=\"AllowPurchasing\" id=\"AllowPurchasing\" value=\"ON\" ";
        // line 198
        echo twig_safe_filter((isset($context['IsPurchasingEnabled']) ? $context['IsPurchasingEnabled'] : null));
        echo " /> <label for=\"AllowPurchasing\">";
        echo getLang("YesAllowPurchasing");
        echo "</label>
\t\t\t\t\t\t<img onmouseout=\"HideHelp('dpurchasing');\" onmouseover=\"ShowHelp('dpurchasing', '";
        // line 199
        echo getLang("AllowPurchasing");
        echo "', '";
        echo getLang("AllowPurchasingHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"dpurchasing\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td colspan=\"2\" class=\"EmptyRow\">
\t\t\t\t\t\t&nbsp;
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr style=\"";
        // line 208
        echo twig_safe_filter((isset($context['HideLicenseKey']) ? $context['HideLicenseKey'] : null));
        echo "\">
\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 209
        echo getLang("LicenseSettings");
        echo "</td>
\t\t\t\t</tr>
\t\t\t\t<tr style=\"";
        // line 211
        echo twig_safe_filter((isset($context['HideLicenseKey']) ? $context['HideLicenseKey'] : null));
        echo "\">
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"serverStamp\">";
        // line 213
        echo getLang("LicenseKey");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"text\" name=\"serverStamp\" id=\"serverStamp\" value=\"cctvvs\" class=\"Field250\" />
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr style=\"";
        // line 219
        echo twig_safe_filter((isset($context['HideLicenseKey']) ? $context['HideLicenseKey'] : null));
        echo "\">
\t\t\t\t\t<td colspan=\"2\" class=\"EmptyRow\">
\t\t\t\t\t\t&nbsp;
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 225
        echo getLang("EmailSettings");
        echo "</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"AdminEmail\">";
        // line 229
        echo getLang("AdminEmail");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"text\" name=\"AdminEmail\" id=\"AdminEmail\" value=\"";
        // line 232
        echo twig_safe_filter((isset($context['AdminEmail']) ? $context['AdminEmail'] : null));
        echo "\" class=\"Field250\" />
\t\t\t\t\t\t<img onmouseout=\"HideHelp('d8');\" onmouseover=\"ShowHelp('d8', '";
        // line 233
        echo getLang("AdminEmail1");
        echo "', '";
        echo getLang("AdminEmailHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"d8\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"OrderEmail\">";
        // line 239
        echo getLang("OrderEmail");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"text\" name=\"OrderEmail\" id=\"OrderEmail\" value=\"";
        // line 242
        echo twig_safe_filter((isset($context['OrderEmail']) ? $context['OrderEmail'] : null));
        echo "\" class=\"Field250\" />
\t\t\t\t\t\t<img onmouseout=\"HideHelp('d9');\" onmouseover=\"ShowHelp('d9', '";
        // line 243
        echo getLang("OrderEmail");
        echo "', '";
        echo getLang("OrderEmailHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"d9\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\" valign=\"top\">
\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span> <label for=\"LowInventoryEmails\">";
        // line 249
        echo getLang("LowInventoryEmails");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t<label> <input type=\"checkbox\" name=\"LowInventoryEmails\" onclick=\"if(this.checked) { \$('.LowInventoryNotificationToggle').show(); } else { \$('.LowInventoryNotificationToggle').hide(); }\" value=\"1\" ";
        // line 252
        echo twig_safe_filter((isset($context['LowInventoryEmailsEnabledCheck']) ? $context['LowInventoryEmailsEnabledCheck'] : null));
        echo " /> ";
        echo getLang("YesEnableLowInventoryEmails");
        echo "</label>
\t\t\t\t\t\t<img onmouseout=\"HideHelp('lowinventory');\" onmouseover=\"ShowHelp('lowinventory', '";
        // line 253
        echo getLang("LowInventoryEmails");
        echo "', '";
        echo getLang("LowInventoryEmailsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"lowinventory\"></div>
\t\t\t\t\t\t<div style=\"margin-top: 3px; display: ";
        // line 255
        echo twig_safe_filter((isset($context['HideLowInventoryNotification']) ? $context['HideLowInventoryNotification'] : null));
        echo "\" class=\"LowInventoryNotificationToggle\">
\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" style=\"vertical-align: middle;\" />
\t\t\t\t\t\t\t";
        // line 257
        echo getLang("EmailAddress");
        echo ": <input type=\"text\" name=\"LowInventoryNotificationAddress\" id=\"LowInventoryNotificationAddress\" class=\"Field250\" value=\"";
        echo twig_safe_filter((isset($context['LowInventoryNotificationAddress']) ? $context['LowInventoryNotificationAddress'] : null));
        echo "\" />
\t\t\t\t\t\t</div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\" valign=\"top\">
\t\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span> <label for=\"ForwardInvoiceEmails\">";
        // line 263
        echo getLang("ForwardInvoiceEmails");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<label> <input type=\"checkbox\" name=\"ForwardInvoiceEmailsCheck\" onclick=\"if(this.checked) { \$('.ForwardInvoiceEmailsToggle').show(); } else { \$('.ForwardInvoiceEmailsToggle').hide(); }\" value=\"1\" ";
        // line 266
        echo twig_safe_filter((isset($context['ForwardInvoiceEmailsCheck']) ? $context['ForwardInvoiceEmailsCheck'] : null));
        echo " /> ";
        echo getLang("YesEnableForwardInvoiceEmails");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('invoiceemailshelp');\" onmouseover=\"ShowHelp('invoiceemailshelp', '";
        // line 267
        echo getLang("ForwardInvoiceEmails");
        echo "', '";
        echo getLang("ForwardInvoiceEmailsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"invoiceemailshelp\"></div>
\t\t\t\t\t\t\t<div style=\"margin-top: 3px; display: ";
        // line 269
        echo twig_safe_filter((isset($context['HideForwardInvoiceEmails']) ? $context['HideForwardInvoiceEmails'] : null));
        echo "\" class=\"ForwardInvoiceEmailsToggle\">
\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" style=\"vertical-align: middle;\" />
\t\t\t\t\t\t\t\t<input type=\"text\" name=\"ForwardInvoiceEmails\" id=\"ForwardInvoiceEmails\" class=\"Field250\" value=\"";
        // line 271
        echo twig_safe_filter((isset($context['ForwardInvoiceEmails']) ? $context['ForwardInvoiceEmails'] : null));
        echo "\" /><br />
\t\t\t\t\t\t\t\t<span class=\"Disabled\" style='text-decoration: none; padding-left: 25px;'>";
        // line 272
        echo getLang("ForwardOrderInvoicesDesc");
        echo "</span>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span>
\t\t\t\t\t\t\t";
        // line 279
        echo getLang("UseSMTPServer");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label for=\"MailUsePHP\">
\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"MailUseSMTP\" id=\"MailUsePHP\" value=\"0\" onclick=\"ToggleMailSettings()\" ";
        // line 283
        echo twig_safe_filter((isset($context['MailUsePHPChecked']) ? $context['MailUsePHPChecked'] : null));
        echo " />
\t\t\t\t\t\t\t\t";
        // line 284
        echo getLang("UseDefaultMailSettings");
        echo "\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('ssK6vhkyjO');\" onmouseover=\"ShowHelp('ssK6vhkyjO', '";
        // line 286
        echo getLang("UseDefaultMailSettings");
        echo "', '";
        echo getLang("UseDefaultMailSettingsHelp");
        echo "');\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\"><div style=\"display:none\" id=\"ssK6vhkyjO\"></div>
\t\t\t\t\t\t\t<br />
\t\t\t\t\t\t\t<label for=\"MailUseSMTP\">
\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"MailUseSMTP\" id=\"MailUseSMTP\" onclick=\"ToggleMailSettings()\" value=\"1\" ";
        // line 289
        echo twig_safe_filter((isset($context['MailUseSMTPChecked']) ? $context['MailUseSMTPChecked'] : null));
        echo " />
\t\t\t\t\t\t\t\t";
        // line 290
        echo getLang("SpecifyOwnSMTPDetails");
        echo "\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('ssv0NUivAU');\" onmouseover=\"ShowHelp('ssv0NUivAU', '";
        // line 292
        echo getLang("SpecifyOwnSMTPDetails");
        echo "', '";
        echo getLang("SpecifyOwnSMTPDetailsHelp");
        echo "');\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" /><div style=\"display:none\" id=\"ssv0NUivAU\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr class=\"SMTPOptions\" style=\"display: ";
        // line 295
        echo twig_safe_filter((isset($context['HideMailSMTPSettings']) ? $context['HideMailSMTPSettings'] : null));
        echo "\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span>
\t\t\t\t\t\t\t";
        // line 298
        echo getLang("SMTPHostname");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<img width=\"20\" height=\"20\" src=\"images/nodejoin.gif\"/>
\t\t\t\t\t\t\t<input type=\"text\" name=\"MailSMTPServer\" id=\"MailSMTPServer\" value=\"";
        // line 302
        echo twig_safe_filter((isset($context['MailSMTPServer']) ? $context['MailSMTPServer'] : null));
        echo "\" class=\"Field250 smtpSettings\"> <img onmouseout=\"HideHelp('ssdR2a1s2Y');\" onmouseover=\"ShowHelp('ssdR2a1s2Y', '";
        echo getLang("SMTPHostname");
        echo "', '";
        echo getLang("SMTPHostnameHelp");
        echo "');\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" /><div style=\"display:none\" id=\"ssdR2a1s2Y\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr class=\"SMTPOptions\" style=\"display: ";
        // line 306
        echo twig_safe_filter((isset($context['HideMailSMTPSettings']) ? $context['HideMailSMTPSettings'] : null));
        echo "\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span>
\t\t\t\t\t\t\t";
        // line 309
        echo getLang("SMTPUsername");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<img width=\"20\" height=\"20\" src=\"images/blank.gif\"/>
\t\t\t\t\t\t\t<input type=\"text\" name=\"MailSMTPUsername\" id=\"MailSMTPUsername\" value=\"";
        // line 313
        echo twig_safe_filter((isset($context['MailSMTPUsername']) ? $context['MailSMTPUsername'] : null));
        echo "\" class=\"Field250 smtpSettings\"> <img onmouseout=\"HideHelp('ssL1nZ3ajD');\" onmouseover=\"ShowHelp('ssL1nZ3ajD', '";
        echo getLang("SMTPUsername");
        echo "', '";
        echo getLang("SMTPUsernameHelp");
        echo "');\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" /><div style=\"display:none\" id=\"ssL1nZ3ajD\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr class=\"SMTPOptions\" style=\"display: ";
        // line 316
        echo twig_safe_filter((isset($context['HideMailSMTPSettings']) ? $context['HideMailSMTPSettings'] : null));
        echo "\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span>
\t\t\t\t\t\t\t";
        // line 319
        echo getLang("SMTPPassword");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<img width=\"20\" height=\"20\" src=\"images/blank.gif\"/>
\t\t\t\t\t\t\t<input type=\"password\" autocomplete=\"off\" name=\"MailSMTPPassword\" id=\"MailSMTPPassword\" value=\"";
        // line 323
        echo twig_safe_filter((isset($context['MailSMTPPassword']) ? $context['MailSMTPPassword'] : null));
        echo "\" class=\"Field250 smtpSettings\"> <img onmouseout=\"HideHelp('ss7ELh2UVn');\" onmouseover=\"ShowHelp('ss7ELh2UVn', '";
        echo getLang("SMTPPassword");
        echo "', '";
        echo getLang("SMTPPasswordHelp");
        echo "');\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" /><div style=\"display:none\" id=\"ss7ELh2UVn\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr class=\"SMTPOptions\" style=\"display: ";
        // line 326
        echo twig_safe_filter((isset($context['HideMailSMTPSettings']) ? $context['HideMailSMTPSettings'] : null));
        echo "\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span>
\t\t\t\t\t\t\t";
        // line 329
        echo getLang("SMTPPort");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<img width=\"20\" height=\"20\" src=\"images/blank.gif\"/>
\t\t\t\t\t\t\t<input type=\"text\" name=\"MailSMTPPort\" id=\"MailSMTPPort\" value=\"";
        // line 333
        echo twig_safe_filter((isset($context['MailSMTPPort']) ? $context['MailSMTPPort'] : null));
        echo "\" class=\"Field250 smtpSettings\"> <img onmouseout=\"HideHelp('ssKz8SUyDX');\" onmouseover=\"ShowHelp('ssKz8SUyDX', '";
        echo getLang("SMTPPort");
        echo "', '";
        echo getLang("SMTPPortHelp");
        echo "');\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" /><div style=\"display:none\" id=\"ssKz8SUyDX\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr class=\"SMTPOptions\" style=\"display: ";
        // line 336
        echo twig_safe_filter((isset($context['HideMailSMTPSettings']) ? $context['HideMailSMTPSettings'] : null));
        echo "\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<img width=\"20\" height=\"20\" src=\"images/blank.gif\"/>
\t\t\t\t\t\t\t<input type=\"button\" name=\"cmdTestSMTP\" value=\"";
        // line 342
        echo getLang("TestSMTPSettings");
        echo "\" id=\"TestSMTPSettings\" class=\"SmallButton\" onclick=\"startSMTPTest();\" style=\"width: 150px;\" />
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td colspan=\"2\" class=\"EmptyRow\">
\t\t\t\t\t\t&nbsp;
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 351
        echo getLang("SearchEngineOptimization");
        echo "</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span>  <label for=\"MetaDesc\">";
        // line 355
        echo getLang("SearchEngineFriendlyURLs");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<select name=\"EnableSEOUrls\" id=\"EnableSEOUrls\" class=\"Field250\">
\t\t\t\t\t\t\t<option value=\"2\" ";
        // line 359
        echo twig_safe_filter((isset($context['IsEnableSEOUrlsAuto']) ? $context['IsEnableSEOUrlsAuto'] : null));
        echo ">";
        echo getLang("SearchEngineFriendlyURLsAuto");
        echo "</option>
\t\t\t\t\t\t\t<option value=\"1\" ";
        // line 360
        echo twig_safe_filter((isset($context['IsEnableSEOUrlsEnabled']) ? $context['IsEnableSEOUrlsEnabled'] : null));
        echo ">";
        echo getLang("SearchEngineFriendlyURLsEnabled");
        echo "</option>
\t\t\t\t\t\t\t<option value=\"0\" ";
        // line 361
        echo twig_safe_filter((isset($context['IsEnableSEOUrlsDisabled']) ? $context['IsEnableSEOUrlsDisabled'] : null));
        echo ">";
        echo getLang("SearchEngineFriendlyURLsDisabled");
        echo "</option>
\t\t\t\t\t\t</select>
\t\t\t\t\t\t<img onmouseout=\"HideHelp('seo1');\" onmouseover=\"ShowHelp('seo1', '";
        // line 363
        echo getLang("SearchEngineFriendlyURLs");
        echo ":', '";
        echo getLang("SearchEngineFriendlyURLsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"seo1\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span>  <label for=\"redirectWWW\">";
        // line 369
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "RedirectWWW", array(), "any"), "1");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<select name=\"RedirectWWW\" id=\"RedirectWWW\" class=\"Field250\">
\t\t\t\t\t\t\t<option value=\"1\" ";
        // line 373
        echo twig_safe_filter((isset($context['RedirectToWWWSelected']) ? $context['RedirectToWWWSelected'] : null));
        echo ">";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "RedirectToWWW", array(), "any"), "1");
        echo "</option>
\t\t\t\t\t\t\t<option value=\"2\" ";
        // line 374
        echo twig_safe_filter((isset($context['RedirectToNoWWWSelected']) ? $context['RedirectToNoWWWSelected'] : null));
        echo ">";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "RedirectToNoWWW", array(), "any"), "1");
        echo "</option>
\t\t\t\t\t\t\t<option value=\"0\" ";
        // line 375
        echo twig_safe_filter((isset($context['RedirectNoPreferenceSelected']) ? $context['RedirectNoPreferenceSelected'] : null));
        echo ">";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "RedirectNoPreference", array(), "any"), "1");
        echo "</option>
\t\t\t\t\t\t</select>
\t\t\t\t\t\t";
        // line 377
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("RedirectWWW", "RedirectWWWHelp", ), "method"), "1");
        echo "
\t\t\t\t\t</td>
\t\t\t\t</td>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span> ";
        // line 382
        echo getLang("HomePagePageTitle");
        echo ":
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"text\" id=\"HomePagePageTitle\" name=\"HomePagePageTitle\" class=\"Field250\" value=\"";
        // line 385
        echo twig_safe_filter((isset($context['HomePagePageTitle']) ? $context['HomePagePageTitle'] : null));
        echo "\" />
\t\t\t\t\t\t<img onmouseout=\"HideHelp('pagetitle');\" onmouseover=\"ShowHelp('pagetitle', '";
        // line 386
        echo getLang("HomePagePageTitle");
        echo "', '";
        echo getLang("HomePagePageTitleHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t<div style=\"display:none\" id=\"pagetitle\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span>  <label for=\"MetaKeywords\">";
        // line 392
        echo getLang("MetaKeywords");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"text\" name=\"MetaKeywords\" id=\"MetaKeywords\" value=\"";
        // line 395
        echo twig_safe_filter((isset($context['MetaKeywords']) ? $context['MetaKeywords'] : null));
        echo "\" class=\"Field250\" />
\t\t\t\t\t\t<img onmouseout=\"HideHelp('d4');\" onmouseover=\"ShowHelp('d4', '";
        // line 396
        echo getLang("MetaKeywords");
        echo "', '";
        echo getLang("SettingsMetaKeywordsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"d4\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span>  <label for=\"MetaDesc\">";
        // line 402
        echo getLang("MetaDescription");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"text\" name=\"MetaDesc\" id=\"MetaDesc\" value=\"";
        // line 405
        echo twig_safe_filter((isset($context['MetaDesc']) ? $context['MetaDesc'] : null));
        echo "\" class=\"Field250\" />
\t\t\t\t\t\t<img onmouseout=\"HideHelp('d5');\" onmouseover=\"ShowHelp('d5', '";
        // line 406
        echo getLang("MetaDescription");
        echo "', '";
        echo getLang("SettingsMetaDescriptionHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"d5\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td colspan=\"2\" class=\"EmptyRow\">
\t\t\t\t\t\t&nbsp;
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr style=\"";
        // line 415
        echo twig_safe_filter((isset($context['HideDatabaseDetails']) ? $context['HideDatabaseDetails'] : null));
        echo "\">
\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 416
        echo getLang("DatabaseSettings");
        echo "</td>
\t\t\t\t</tr>
\t\t\t\t<tr style=\"";
        // line 418
        echo twig_safe_filter((isset($context['HideDatabaseDetails']) ? $context['HideDatabaseDetails'] : null));
        echo "\">
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span> ";
        // line 420
        echo getLang("DatabaseType");
        echo ":
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"text\" value=\"";
        // line 423
        echo twig_safe_filter((isset($context['dbType']) ? $context['dbType'] : null));
        echo "\" class=\"Field250\" disabled readonly />
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr style=\"";
        // line 426
        echo twig_safe_filter((isset($context['HideDatabaseDetails']) ? $context['HideDatabaseDetails'] : null));
        echo "\">
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span> ";
        // line 428
        echo getLang("DatabaseUser");
        echo ":
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"text\" value=\"";
        // line 431
        echo twig_safe_filter((isset($context['dbUser']) ? $context['dbUser'] : null));
        echo "\" class=\"Field250\" disabled readonly />
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr style=\"";
        // line 434
        echo twig_safe_filter((isset($context['HideDatabaseDetails']) ? $context['HideDatabaseDetails'] : null));
        echo "\">
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span> ";
        // line 436
        echo getLang("DatabasePassword");
        echo ":
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"text\" value=\"\" class=\"Field250\" disabled readonly />
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr style=\"";
        // line 442
        echo twig_safe_filter((isset($context['HideDatabaseDetails']) ? $context['HideDatabaseDetails'] : null));
        echo "\">
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span> ";
        // line 444
        echo getLang("DatabaseHostname");
        echo ":
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"text\" value=\"";
        // line 447
        echo twig_safe_filter((isset($context['dbServer']) ? $context['dbServer'] : null));
        echo "\" class=\"Field250\" disabled readonly />
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr style=\"";
        // line 450
        echo twig_safe_filter((isset($context['HideDatabaseDetails']) ? $context['HideDatabaseDetails'] : null));
        echo "\">
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span> ";
        // line 452
        echo getLang("DatabaseTablePrefix");
        echo ":
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"text\" value=\"";
        // line 455
        echo twig_safe_filter((isset($context['tablePrefix']) ? $context['tablePrefix'] : null));
        echo "\" class=\"Field250\" disabled readonly />
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr style=\"";
        // line 458
        echo twig_safe_filter((isset($context['HideDatabaseDetails']) ? $context['HideDatabaseDetails'] : null));
        echo "\">
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span> ";
        // line 460
        echo getLang("DatabaseVersion");
        echo ":
\t\t\t\t\t</td>
\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t";
        // line 463
        echo twig_safe_filter((isset($context['dbVersion']) ? $context['dbVersion'] : null));
        echo "
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</div>
\t\t\t<div id=\"div1\" style=\"padding-top: 10px;\">
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 471
        echo getLang("LanguageSettings");
        echo "</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"Lanauge\">";
        // line 475
        echo getLang("Language");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<select name=\"Language\" id=\"Lanauge\" class=\"Field100\">
\t\t\t\t\t\t\t";
        // line 479
        echo twig_safe_filter((isset($context['LanguageOptions']) ? $context['LanguageOptions'] : null));
        echo "
\t\t\t\t\t\t</select>
\t\t\t\t\t\t<img onmouseout=\"HideHelp('lang_setting');\" onmouseover=\"ShowHelp('lang_setting', '";
        // line 481
        echo getLang("Language");
        echo "', '";
        echo getLang("LanguageHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"lang_setting\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td colspan=\"2\" class=\"EmptyRow\">
\t\t\t\t\t\t&nbsp;
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 491
        echo getLang("PhysicalDimensionSettings");
        echo "</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"WeightMeasurement\">";
        // line 495
        echo getLang("WeightMeasurement");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<select name=\"WeightMeasurement\" id=\"WeightMeasurement\" class=\"Field100\">
\t\t\t\t\t\t\t<option value=\"LBS\" ";
        // line 499
        echo twig_safe_filter((isset($context['IsPounds']) ? $context['IsPounds'] : null));
        echo ">";
        echo getLang("Pounds");
        echo "</option>
\t\t\t\t\t\t\t<option value=\"Ounces\" ";
        // line 500
        echo twig_safe_filter((isset($context['IsOunces']) ? $context['IsOunces'] : null));
        echo ">";
        echo getLang("Ounces");
        echo "</option>
\t\t\t\t\t\t\t<option value=\"KGS\" ";
        // line 501
        echo twig_safe_filter((isset($context['IsKilos']) ? $context['IsKilos'] : null));
        echo ">";
        echo getLang("Kilograms");
        echo "</option>
\t\t\t\t\t\t\t<option value=\"Grams\" ";
        // line 502
        echo twig_safe_filter((isset($context['IsGrams']) ? $context['IsGrams'] : null));
        echo ">";
        echo getLang("Grams");
        echo "</option>
\t\t\t\t\t\t\t<option value=\"Tonnes\" ";
        // line 503
        echo twig_safe_filter((isset($context['IsTonnes']) ? $context['IsTonnes'] : null));
        echo ">";
        echo getLang("Tonnes");
        echo "</option>
\t\t\t\t\t\t</select>
\t\t\t\t\t\t<img onmouseout=\"HideHelp('d17');\" onmouseover=\"ShowHelp('d17', '";
        // line 505
        echo getLang("WeightMeasurement");
        echo "', '";
        echo getLang("WeightMeasurementHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"d17\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"LengthMeasurement\">";
        // line 511
        echo getLang("LengthMeasurement");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t<select name=\"LengthMeasurement\" id=\"LengthMeasurement\" class=\"Field100\">
\t\t\t\t\t\t\t<option value=\"Inches\" ";
        // line 515
        echo twig_safe_filter((isset($context['IsInches']) ? $context['IsInches'] : null));
        echo ">";
        echo getLang("Inches");
        echo "</option>
\t\t\t\t\t\t\t<option value=\"Centimeters\" ";
        // line 516
        echo twig_safe_filter((isset($context['IsCentimeters']) ? $context['IsCentimeters'] : null));
        echo ">";
        echo getLang("Centimeters");
        echo "</option>
\t\t\t\t\t\t</select>
\t\t\t\t\t\t<img onmouseout=\"HideHelp('d18');\" onmouseover=\"ShowHelp('d18', '";
        // line 518
        echo getLang("LengthMeasurement");
        echo "', '";
        echo getLang("LengthMeasurementHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"d18\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"DimensionsDecimalToken\">";
        // line 524
        echo getLang("DimensionsDecimalToken");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"text\" name=\"DimensionsDecimalToken\" value=\"";
        // line 527
        echo twig_escape_filter($this->env, (isset($context['DimensionsDecimalToken']) ? $context['DimensionsDecimalToken'] : null), "1");
        echo "\" id=\"DimensionsDecimalToken\" class=\"Field40\" maxlenght=\"1\" />
\t\t\t\t\t\t<img onmouseout=\"HideHelp('decimaltoken');\" onmouseover=\"ShowHelp('decimaltoken', '";
        // line 528
        echo getLang("DimensionsDecimalToken");
        echo "', '";
        echo getLang("DimensionsDecimalTokenHelp");
        echo "');\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display: none;\" id=\"decimaltoken\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"DimensionsThousandsToken\">";
        // line 534
        echo getLang("DimensionsThousandsToken");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"text\" name=\"DimensionsThousandsToken\" value=\"";
        // line 537
        echo twig_escape_filter($this->env, (isset($context['DimensionsThousandsToken']) ? $context['DimensionsThousandsToken'] : null), "1");
        echo "\" id=\"DimensionsThousandsToken\" class=\"Field40\" maxlenght=\"1\" />
\t\t\t\t\t\t<img onmouseout=\"HideHelp('thousandstoken');\" onmouseover=\"ShowHelp('thousandstoken', '";
        // line 538
        echo getLang("DimensionsThousandsToken");
        echo "', '";
        echo getLang("DimensionsThousandsTokenHelp");
        echo "');\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display: none;\" id=\"thousandstoken\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"DimensionsDecimalPlaces\">";
        // line 544
        echo getLang("DimensionsDecimalPlaces");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"text\" name=\"DimensionsDecimalPlaces\" value=\"";
        // line 547
        echo twig_safe_filter((isset($context['DimensionsDecimalPlaces']) ? $context['DimensionsDecimalPlaces'] : null));
        echo "\" id=\"DimensionsDecimalPlaces\" class=\"Field40\" maxlenght=\"1\" />
\t\t\t\t\t\t<img onmouseout=\"HideHelp('decimalplaces');\" onmouseover=\"ShowHelp('decimalplaces', '";
        // line 548
        echo getLang("DimensionsDecimalPlaces");
        echo "', '";
        echo getLang("DimensionsDecimalPlacesHelp");
        echo "');\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display: none;\" id=\"decimalplaces\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"ShippingFactoringDimension\">";
        // line 554
        echo getLang("ShippingFactoringDimension");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<select name=\"ShippingFactoringDimension\" id=\"ShippingFactoringDimension\" class=\"Field120\">
\t\t\t\t\t\t\t<option value=\"depth\" ";
        // line 558
        echo twig_safe_filter((isset($context['ShippingFactoringDimensionDepthSelected']) ? $context['ShippingFactoringDimensionDepthSelected'] : null));
        echo ">";
        echo getLang("ShippingFactoringDimensionDepth");
        echo "</option>
\t\t\t\t\t\t\t<option value=\"height\" ";
        // line 559
        echo twig_safe_filter((isset($context['ShippingFactoringDimensionHeightSelected']) ? $context['ShippingFactoringDimensionHeightSelected'] : null));
        echo ">";
        echo getLang("ShippingFactoringDimensionHeight");
        echo "</option>
\t\t\t\t\t\t\t<option value=\"width\" ";
        // line 560
        echo twig_safe_filter((isset($context['ShippingFactoringDimensionWidthSelected']) ? $context['ShippingFactoringDimensionWidthSelected'] : null));
        echo ">";
        echo getLang("ShippingFactoringDimensionWidth");
        echo "</option>
\t\t\t\t\t\t</select>
\t\t\t\t\t\t<img onmouseout=\"HideHelp('dshipfactdimension');\" onmouseover=\"ShowHelp('dshipfactdimension', '";
        // line 562
        echo getLang("ShippingFactoringDimension");
        echo "', '";
        echo getLang("ShippingFactoringDimensionHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t<div style=\"display:none\" id=\"dshipfactdimension\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td colspan=\"2\" class=\"EmptyRow\">
\t\t\t\t\t\t&nbsp;
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 572
        echo getLang("DateSettings");
        echo "</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"StoreTimezone\">";
        // line 576
        echo getLang("StoreTimeZone");
        echo ":</label><a name=\"StoreTimezone\" />
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<select name=\"StoreTimeZone\" id=\"StoreTimeZone\" class=\"Field300\">
\t\t\t\t\t\t\t";
        // line 580
        echo twig_safe_filter((isset($context['TimeZoneOptions']) ? $context['TimeZoneOptions'] : null));
        echo "
\t\t\t\t\t\t</select>
\t\t\t\t\t\t<img onmouseout=\"HideHelp('tz_h');\" onmouseover=\"ShowHelp('tz_h', '";
        // line 582
        echo getLang("StoreTimeZone");
        echo "', '";
        echo getLang("StoreTimeZoneHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"tz_h\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; ";
        // line 588
        echo getLang("EnableDSTCorrection");
        echo "?
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label for=\"StoreDSTCorrection\"><input ";
        // line 591
        echo twig_safe_filter((isset($context['IsDSTCorrectionEnabled']) ? $context['IsDSTCorrectionEnabled'] : null));
        echo " type=\"checkbox\" name=\"StoreDSTCorrection\" id=\"StoreDSTCorrection\" value=\"1\" />";
        echo getLang("YesEnableDSTCorrection");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('dst');\" onmouseover=\"ShowHelp('dst', '";
        // line 592
        echo getLang("EnableDSTCorrection");
        echo "?', '";
        echo getLang("EnableDSTCorrectionHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"dst\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"DisplayDateFormat\">";
        // line 598
        echo getLang("DisplayDateFormat");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"text\" name=\"DisplayDateFormat\" id=\"DisplayDateFormat\" value=\"";
        // line 601
        echo twig_safe_filter((isset($context['DisplayDateFormat']) ? $context['DisplayDateFormat'] : null));
        echo "\" class=\"Field100\" />
\t\t\t\t\t\t<img onmouseout=\"HideHelp('d19');\" onmouseover=\"ShowHelp('d19', '";
        // line 602
        echo getLang("DisplayDateFormat");
        echo "', '";
        echo getLang("DisplayDateFormatHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"d19\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"ExportDateFormat\">";
        // line 608
        echo getLang("ExportDateFormat");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"text\" name=\"ExportDateFormat\" id=\"ExportDateFormat\" value=\"";
        // line 611
        echo twig_safe_filter((isset($context['ExportDateFormat']) ? $context['ExportDateFormat'] : null));
        echo "\" class=\"Field100\" />
\t\t\t\t\t\t<img onmouseout=\"HideHelp('d20');\" onmouseover=\"ShowHelp('d20', '";
        // line 612
        echo getLang("ExportDateFormat");
        echo "', '";
        echo getLang("ExportDateFormatHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"d20\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"ExtendedDisplayDateFormat\">";
        // line 618
        echo getLang("ExtendedDisplayDateFormat");
        echo ":</label>
\t\t\t\t\t</td>
\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t<input type=\"text\" name=\"ExtendedDisplayDateFormat\" id=\"ExtendedDisplayDateFormat\" value=\"";
        // line 621
        echo twig_safe_filter((isset($context['ExtendedDisplayDateFormat']) ? $context['ExtendedDisplayDateFormat'] : null));
        echo "\" class=\"Field100\" />
\t\t\t\t\t\t<img onmouseout=\"HideHelp('d21');\" onmouseover=\"ShowHelp('d21', '";
        // line 622
        echo getLang("ExtendedDisplayDateFormat");
        echo "', '";
        echo getLang("ExtendedDisplayDateFormatHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t<div style=\"display:none\" id=\"d21\"></div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</div>

\t\t\t<div id=\"div8\" style=\"padding-top: 10px;\">
\t\t\t<input type=\"hidden\" name=\"AutoResizeImages\" id=\"AutoResizeImages\" value=\"no\" />
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 633
        echo getLang("ProductThumbnailSizes");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> ";
        // line 637
        echo getLang("StorewideThumbnail");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"ProductImagesStorewideThumbnail_width\" id=\"ProductImagesStorewideThumbnail_width\" value=\"";
        // line 640
        echo twig_safe_filter((isset($context['ProductImagesStorewideThumbnail_width']) ? $context['ProductImagesStorewideThumbnail_width'] : null));
        echo "\" class=\"Field40 SetOriginalImageSizeValue\" />&nbsp;x&nbsp;&nbsp;<input type=\"text\" name=\"ProductImagesStorewideThumbnail_height\" id=\"ProductImagesStorewideThumbnail_height\" value=\"";
        echo twig_safe_filter((isset($context['ProductImagesStorewideThumbnail_height']) ? $context['ProductImagesStorewideThumbnail_height'] : null));
        echo "\" class=\"Field40 SetOriginalImageSizeValue\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('productimage_storewidethumbnail');\" onmouseover=\"ShowHelp('productimage_storewidethumbnail', '";
        // line 641
        echo getLang("StorewideThumbnail");
        echo "', '";
        echo getLang("StorewideThumbnailHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"productimage_storewidethumbnail\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> ";
        // line 648
        echo getLang("ProductPageImage");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"ProductImagesProductPageImage_width\" id=\"ProductImagesProductPageImage_width\" value=\"";
        // line 651
        echo twig_safe_filter((isset($context['ProductImagesProductPageImage_width']) ? $context['ProductImagesProductPageImage_width'] : null));
        echo "\" class=\"Field40 SetOriginalImageSizeValue\" />&nbsp;x&nbsp;&nbsp;<input type=\"text\" name=\"ProductImagesProductPageImage_height\" id=\"ProductImagesProductPageImage_height\" value=\"";
        echo twig_safe_filter((isset($context['ProductImagesProductPageImage_height']) ? $context['ProductImagesProductPageImage_height'] : null));
        echo "\" class=\"Field40 SetOriginalImageSizeValue\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('productimage_productpageimage');\" onmouseover=\"ShowHelp('productimage_productpageimage', '";
        // line 652
        echo getLang("ProductPageImage");
        echo "', '";
        echo getLang("ProductPageImageHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"productimage_productpageimage\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> ";
        // line 659
        echo getLang("ProductPageGalleryThumbnail");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"ProductImagesGalleryThumbnail_width\" id=\"ProductImagesGalleryThumbnail_width\" value=\"";
        // line 662
        echo twig_safe_filter((isset($context['ProductImagesGalleryThumbnail_width']) ? $context['ProductImagesGalleryThumbnail_width'] : null));
        echo "\" class=\"Field40 SetOriginalImageSizeValue\" />&nbsp;x&nbsp;&nbsp;<input type=\"text\" name=\"ProductImagesGalleryThumbnail_height\" id=\"ProductImagesGalleryThumbnail_height\" value=\"";
        echo twig_safe_filter((isset($context['ProductImagesGalleryThumbnail_height']) ? $context['ProductImagesGalleryThumbnail_height'] : null));
        echo "\" class=\"Field40 SetOriginalImageSizeValue\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('productimage_productpagegallerythumbnail');\" onmouseover=\"ShowHelp('productimage_productpagegallerythumbnail', '";
        // line 663
        echo getLang("ProductPageGalleryThumbnail");
        echo "', '";
        echo getLang("ProductPageGalleryThumbnailHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"productimage_productpagegallerythumbnail\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> ";
        // line 670
        echo getLang("ProductPageZoomImage");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"ProductImagesZoomImage_width\" id=\"ProductImagesZoomImage_width\" value=\"";
        // line 673
        echo twig_safe_filter((isset($context['ProductImagesZoomImage_width']) ? $context['ProductImagesZoomImage_width'] : null));
        echo "\" class=\"Field40 SetOriginalImageSizeValue\" />&nbsp;x&nbsp;&nbsp;<input type=\"text\" name=\"ProductImagesZoomImage_height\" id=\"ProductImagesZoomImage_height\" value=\"";
        echo twig_safe_filter((isset($context['ProductImagesZoomImage_height']) ? $context['ProductImagesZoomImage_height'] : null));
        echo "\" class=\"Field40 SetOriginalImageSizeValue\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('productimage_zoomimage');\" onmouseover=\"ShowHelp('productimage_zoomimage', '";
        // line 674
        echo getLang("ProductPageZoomImage");
        echo "', '";
        echo getLang("ProductPageZoomImageHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"productimage_zoomimage\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; ";
        // line 680
        echo getLang("ReprocessImages");
        echo "\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t<a href=\"#\" id=\"ReprocessImages\">";
        // line 683
        echo getLang("ReprocessImagesLink");
        echo "</a>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('productimage_reprocessimages');\" onmouseover=\"ShowHelp('productimage_reprocessimages', '";
        // line 684
        echo getLang("ReprocessImages");
        echo "', '";
        echo getLang("ReprocessImagesHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"productimage_reprocessimages\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; ";
        // line 691
        echo getLang("ShowTinyThumbnails");
        echo "\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"checkbox\" name=\"ProductImagesTinyThumbnailsEnabled\" id=\"ProductImagesTinyThumbnailsEnabled\" value=\"ON\" ";
        // line 694
        echo twig_safe_filter((isset($context['IsProductImagesTinyThumbnailsEnabled']) ? $context['IsProductImagesTinyThumbnailsEnabled'] : null));
        echo " /> <label for=\"ProductImagesTinyThumbnailsEnabled\">";
        echo getLang("YesShowTinyThumbnails");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('productimage_tinythumbnailsenabled');\" onmouseover=\"ShowHelp('productimage_tinythumbnailsenabled', '";
        // line 695
        echo getLang("ShowTinyThumbnails");
        echo "', '";
        echo getLang("ShowTinyThumbnailsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"productimage_tinythumbnailsenabled\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; ";
        // line 702
        echo getLang("EnableImageZoom");
        echo "\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"checkbox\" name=\"ProductImagesImageZoomEnabled\" id=\"ProductImagesImageZoomEnabled\" value=\"ON\" ";
        // line 705
        echo twig_safe_filter((isset($context['IsProductImagesImageZoomEnabled']) ? $context['IsProductImagesImageZoomEnabled'] : null));
        echo " /> <label for=\"ProductImagesImageZoomEnabled\">";
        echo getLang("YesEnableImageZoom");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('productimage_enableimagezoom');\" onmouseover=\"ShowHelp('productimage_enableimagezoom', '";
        // line 706
        echo getLang("EnableImageZoom");
        echo "', '";
        echo getLang("EnableImageZoomHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"productimage_enableimagezoom\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"ProductImageMode\">";
        // line 713
        echo getLang("ProductImageMode");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<select name=\"ProductImageMode\" id=\"ProductImageMode\" class=\"Field300\">
\t\t\t\t\t\t\t\t<option value=\"popup\" ";
        // line 717
        echo twig_safe_filter((isset($context['ProductImageModePopup']) ? $context['ProductImageModePopup'] : null));
        echo ">";
        echo getLang("ProductImageModePopup");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"lightbox\" ";
        // line 718
        echo twig_safe_filter((isset($context['ProductImageModeLightbox']) ? $context['ProductImageModeLightbox'] : null));
        echo ">";
        echo getLang("ProductImageModeLightbox");
        echo "</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('imagemodehelp');\" onmouseover=\"ShowHelp('imagemodehelp', '";
        // line 720
        echo getLang("ProductImageMode");
        echo "', '";
        echo getLang("ProductImageModeHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"imagemodehelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> Default Product Image:
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<label><input type=\"radio\" class=\"DefaultProductImage\" name=\"DefaultProductImage\" value=\"none\" ";
        // line 730
        echo twig_safe_filter((isset($context['DefaultProductImageNoneChecked']) ? $context['DefaultProductImageNoneChecked'] : null));
        echo " /> ";
        echo getLang("DefaultProductImageNone");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('DefaultProductImageHelp');\" onmouseover=\"ShowHelp('DefaultProductImageHelp', '";
        // line 731
        echo getLang("DefaultProductImage");
        echo "', '";
        echo getLang("DefaultProductImageHelp");
        echo "')\" src=\"images/help.gif\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"DefaultProductImageHelp\"></div>
\t\t\t\t\t\t\t<label style=\"display: block;\"><input type=\"radio\" class=\"DefaultProductImage\" name=\"DefaultProductImage\" value=\"template\" ";
        // line 733
        echo twig_safe_filter((isset($context['DefaultProductImageTemplateChecked']) ? $context['DefaultProductImageTemplateChecked'] : null));
        echo " />  ";
        echo getLang("DefaultProductImageTemplate");
        echo " (<a href=\"";
        echo twig_safe_filter((isset($context['AppPath']) ? $context['AppPath'] : null));
        echo "/templates/";
        echo twig_safe_filter((isset($context['template']) ? $context['template'] : null));
        echo "/images/ProductDefault.gif\" target=\"_blank\">templates/";
        echo twig_safe_filter((isset($context['template']) ? $context['template'] : null));
        echo "/images/ProductDefault.gif</a>)</label>
\t\t\t\t\t\t\t<label style=\"display: block;\"><input type=\"radio\" class=\"DefaultProductImage\" name=\"DefaultProductImage\" value=\"custom\" ";
        // line 734
        echo twig_safe_filter((isset($context['DefaultProductImageCustomChecked']) ? $context['DefaultProductImageCustomChecked'] : null));
        echo " /> ";
        echo getLang("DefaultProductImageCustom");
        echo "</label>
\t\t\t\t\t\t\t<div id=\"DefaultProductImageCustomContainer\" style=\"margin-top: 5px;\">
\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" alt=\"\" style=\"vertical-align: top;\" /> <input type=\"file\" name=\"DefaultProductImageCustom\" id=\"DefaultProductImageCustom\" />
\t\t\t\t\t\t\t\t<span style=\"";
        // line 737
        echo twig_safe_filter((isset($context['HideCurrentDefaultProductImage']) ? $context['HideCurrentDefaultProductImage'] : null));
        echo "\" id=\"DefaultProductImageCustomCurrent\">&nbsp;&nbsp;&nbsp; ";
        echo getLang("CurrentDefaultImage");
        echo ": <a href=\"";
        echo twig_safe_filter((isset($context['AppPath']) ? $context['AppPath'] : null));
        echo "/";
        echo twig_safe_filter((isset($context['DefaultProductImage']) ? $context['DefaultProductImage'] : null));
        echo "\" target=\"_blank\">";
        echo twig_safe_filter((isset($context['DefaultProductImage']) ? $context['DefaultProductImage'] : null));
        echo "</span>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 743
        echo getLang("CategoryAndBrandImages");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"CategoryPerRow\">";
        // line 747
        echo getLang("CatItemPerRow");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"CategoryPerRow\" id=\"CategoryPerRow\" value=\"";
        // line 750
        echo twig_safe_filter((isset($context['CategoryPerRow']) ? $context['CategoryPerRow'] : null));
        echo "\" class=\"Field40\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d_catper');\" onmouseover=\"ShowHelp('d_catper', '";
        // line 751
        echo getLang("CatItemPerRow");
        echo "', '";
        echo getLang("CatItemPerRowHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d_catper\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"BrandPerRow\">";
        // line 757
        echo getLang("BrandItemPerRow");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"BrandPerRow\" id=\"BrandPerRow\" value=\"";
        // line 760
        echo twig_safe_filter((isset($context['BrandPerRow']) ? $context['BrandPerRow'] : null));
        echo "\" class=\"Field40\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d_brandper');\" onmouseover=\"ShowHelp('d_brandper', '";
        // line 761
        echo getLang("BrandItemPerRow");
        echo "', '";
        echo getLang("BrandItemPerRowHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d_brandper\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"CategoryImageWidth\">";
        // line 767
        echo getLang("CatImageDimSetting");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"CategoryImageWidth\" id=\"CategoryImageWidth\" value=\"";
        // line 770
        echo twig_safe_filter((isset($context['CategoryImageWidth']) ? $context['CategoryImageWidth'] : null));
        echo "\" class=\"Field40\" /> x <input type=\"text\" name=\"CategoryImageHeight\" id=\"CategoryImageHeight\" value=\"";
        echo twig_safe_filter((isset($context['CategoryImageHeight']) ? $context['CategoryImageHeight'] : null));
        echo "\" class=\"Field40\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d_catdim');\" onmouseover=\"ShowHelp('d_catdim', '";
        // line 771
        echo getLang("CatImageDimSetting");
        echo "', '";
        echo getLang("CatImageDimSettingHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d_catdim\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"BrandImageWidth\">";
        // line 777
        echo getLang("BrandImageDimSetting");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"BrandImageWidth\" id=\"BrandImageWidth\" value=\"";
        // line 780
        echo twig_safe_filter((isset($context['BrandImageWidth']) ? $context['BrandImageWidth'] : null));
        echo "\" class=\"Field40\" /> x <input type=\"text\" name=\"BrandImageHeight\" id=\"BrandImageHeight\" value=\"";
        echo twig_safe_filter((isset($context['BrandImageHeight']) ? $context['BrandImageHeight'] : null));
        echo "\" class=\"Field40\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d_branddim');\" onmouseover=\"ShowHelp('d_branddim', '";
        // line 781
        echo getLang("BrandImageDimSetting");
        echo "', '";
        echo getLang("BrandImageDimSettingHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d_branddim\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"CategoryDefaultImage\">";
        // line 787
        echo getLang("CatImageDefaultSetting");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"file\" id=\"CategoryDefaultImage\" name=\"CategoryDefaultImage\" class=\"Field\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d_catdimg');\" onmouseover=\"ShowHelp('d_catdimg', '";
        // line 791
        echo getLang("CatImageDefaultSetting");
        echo "', '";
        echo getLang("CatImageDefaultSettingHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d_catdimg\"></div>";
        // line 792
        echo twig_safe_filter((isset($context['CatImageDefaultSettingMessage']) ? $context['CatImageDefaultSettingMessage'] : null));
        echo "
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"BrandDefaultImage\">";
        // line 797
        echo getLang("BrandImageDefaultSetting");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"file\" id=\"BrandDefaultImage\" name=\"BrandDefaultImage\" class=\"Field\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d_brandimg');\" onmouseover=\"ShowHelp('d_brandimg', '";
        // line 801
        echo getLang("BrandImageDefaultSetting");
        echo "', '";
        echo getLang("BrandImageDefaultSettingHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d_brandimg\"></div>";
        // line 802
        echo twig_safe_filter((isset($context['BrandImageDefaultSettingMessage']) ? $context['BrandImageDefaultSettingMessage'] : null));
        echo "
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t</table>
\t\t\t</div>

\t\t\t<div id=\"div2\" style=\"padding-top: 10px;\">
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 812
        echo getLang("DisplaySettings");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"HomeFeaturedProducts\">";
        // line 816
        echo getLang("HomeFeaturedProducts");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"HomeFeaturedProducts\" id=\"HomeFeaturedProducts\" value=\"";
        // line 819
        echo twig_safe_filter((isset($context['HomeFeaturedProducts']) ? $context['HomeFeaturedProducts'] : null));
        echo "\" class=\"Field40\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d23');\" onmouseover=\"ShowHelp('d23', '";
        // line 820
        echo getLang("HomeFeaturedProducts");
        echo "', '";
        echo getLang("HomeFeaturedProductsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d23\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"HomeNewProducts\">";
        // line 826
        echo getLang("HomeNewProducts");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"HomeNewProducts\" id=\"HomeNewProducts\" value=\"";
        // line 829
        echo twig_safe_filter((isset($context['HomeNewProducts']) ? $context['HomeNewProducts'] : null));
        echo "\" class=\"Field40\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d25');\" onmouseover=\"ShowHelp('d25', '";
        // line 830
        echo getLang("HomeNewProducts");
        echo "', '";
        echo getLang("HomeNewProductsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d25\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"HomeBlogPosts\">";
        // line 836
        echo getLang("HomeBlogPosts");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"HomeBlogPosts\" id=\"HomeBlogPosts\" value=\"";
        // line 839
        echo twig_safe_filter((isset($context['HomeBlogPosts']) ? $context['HomeBlogPosts'] : null));
        echo "\" class=\"Field40\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d27');\" onmouseover=\"ShowHelp('d27', '";
        // line 840
        echo getLang("HomeBlogPosts");
        echo "', '";
        echo getLang("HomeBlogPostsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d27\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"CategoryProductsPerPage\">";
        // line 846
        echo getLang("CategoryProductsPerPage");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"CategoryProductsPerPage\" id=\"CategoryProductsPerPage\" value=\"";
        // line 849
        echo twig_safe_filter((isset($context['CategoryProductsPerPage']) ? $context['CategoryProductsPerPage'] : null));
        echo "\" class=\"Field40\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d28');\" onmouseover=\"ShowHelp('d28', '";
        // line 850
        echo getLang("CategoryProductsPerPage");
        echo "', '";
        echo getLang("CategoryProductsPerPageHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d28\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr style=\"";
        // line 854
        echo twig_escape_filter($this->env, (isset($context['HideIfReviewsDisabled']) ? $context['HideIfReviewsDisabled'] : null), "1");
        echo "\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"ProductReviewsPerPage\">";
        // line 856
        echo getLang("ProductReviewsPerPage");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"ProductReviewsPerPage\" id=\"ProductReviewsPerPage\" value=\"";
        // line 859
        echo twig_safe_filter((isset($context['ProductReviewsPerPage']) ? $context['ProductReviewsPerPage'] : null));
        echo "\" class=\"Field40\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d30');\" onmouseover=\"ShowHelp('d30', '";
        // line 860
        echo getLang("ProductReviewsPerPage");
        echo "', '";
        echo getLang("ProductReviewsPerPageHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d30\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"TagCartQuantityBoxes\">";
        // line 866
        echo getLang("CartQuantityBoxes");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"TagCartQuantityBoxes\" id=\"TagCartQuantityBoxes\" class=\"Field200\">
\t\t\t\t\t\t\t\t<option value=\"dropdown\"  ";
        // line 870
        echo twig_safe_filter((isset($context['IsDropdown']) ? $context['IsDropdown'] : null));
        echo ">";
        echo getLang("DropdownList");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"textbox\"  ";
        // line 871
        echo twig_safe_filter((isset($context['IsTextbox']) ? $context['IsTextbox'] : null));
        echo ">";
        echo getLang("TextBox");
        echo "</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d32');\" onmouseover=\"ShowHelp('d32', '";
        // line 873
        echo getLang("CartQuantityBoxes");
        echo "', '";
        echo getLang("CartQuantityBoxesHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d32\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"FastCartAction\">";
        // line 879
        echo getLang("FastCartLabel");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"FastCartAction\" id=\"FastCartAction\" class=\"Field200\">
\t\t\t\t\t\t\t\t<option value=\"popup\" ";
        // line 883
        echo twig_safe_filter((isset($context['IsShowPopWindow']) ? $context['IsShowPopWindow'] : null));
        echo ">";
        echo getLang("FastCartOption1ShowPopWindow");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"cart\" ";
        // line 884
        echo twig_safe_filter((isset($context['IsShowCartPage']) ? $context['IsShowCartPage'] : null));
        echo ">";
        echo getLang("FastCartOption2ShowCartPage");
        echo "</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('FastCartHelp');\" onmouseover=\"ShowHelp('FastCartHelp', '";
        // line 886
        echo Interspire_Template_Extension::jsFilter(getLang("FastCartLabel"), "'");
        echo "', '";
        echo Interspire_Template_Extension::jsFilter(getLang("FastCartHelp"), "'");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"FastCartHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"ProductBreadcrumbs\">";
        // line 892
        echo getLang("ProductBreadcrumbs");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t";
        // line 895
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['form']) ? $context['form'] : null), "select", array("ProductBreadcrumbs", (isset($context['ProductBreadcrumbOptions']) ? $context['ProductBreadcrumbOptions'] : null), (isset($context['ProductBreadcrumbs']) ? $context['ProductBreadcrumbs'] : null), array(), ), "method"), "1");
        echo "
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('ProductBreadcrumbsHelp');\" onmouseover=\"ShowHelp('ProductBreadcrumbsHelp', '";
        // line 896
        echo getLang("ProductBreadcrumbs");
        echo "', '";
        echo getLang("ProductBreadcrumbsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"ProductBreadcrumbsHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"ShowAddToCartQtyBox\">";
        // line 902
        echo getLang("ShowAddToCartQtyBox");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"ShowAddToCartQtyBox\" id=\"ShowAddToCartQtyBox\" value=\"ON\" ";
        // line 905
        echo twig_safe_filter((isset($context['IsShownAddToCartQtyBox']) ? $context['IsShownAddToCartQtyBox'] : null));
        echo " /> <label for=\"ShowAddToCartQtyBox\">";
        echo getLang("YesShowAddToCartQtyBox");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d31');\" onmouseover=\"ShowHelp('d31', '";
        // line 906
        echo getLang("ShowAddToCartQtyBox");
        echo "', '";
        echo getLang("ShowAddToCartQtyBoxHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d31\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"TagCloudsEnabled\">";
        // line 913
        echo getLang("TagCloudsEnabled");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"TagCloudsEnabled\" id=\"TagCloudsEnabled\" value=\"ON\" ";
        // line 916
        echo twig_safe_filter((isset($context['IsTagCloudsEnabled']) ? $context['IsTagCloudsEnabled'] : null));
        echo " /> <label for=\"TagCloudsEnabled\">";
        echo getLang("YesTagCloudsEnabled");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d31');\" onmouseover=\"ShowHelp('d31', '";
        // line 917
        echo getLang("TagCloudsEnabled");
        echo "', '";
        echo getLang("TagCloudsEnabledHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d31\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"CaptchaEnabled\">";
        // line 923
        echo getLang("CaptchaEnabled");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"CaptchaEnabled\" id=\"CaptchaEnabled\" value=\"ON\" ";
        // line 926
        echo twig_safe_filter((isset($context['IsCaptchaEnabled']) ? $context['IsCaptchaEnabled'] : null));
        echo " /> <label for=\"CaptchaEnabled\">";
        echo getLang("YesCaptchaEnabled");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d32');\" onmouseover=\"ShowHelp('d32', '";
        // line 927
        echo getLang("CaptchaEnabled");
        echo "', '";
        echo getLang("CaptchaEnabledHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d32\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"SearchSuggest\">";
        // line 933
        echo getLang("EnableSearchSuggest");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"SearchSuggest\" id=\"SearchSuggest\" value=\"ON\" ";
        // line 936
        echo twig_safe_filter((isset($context['IsSearchSuggest']) ? $context['IsSearchSuggest'] : null));
        echo " /> <label for=\"SearchSuggest\">";
        echo getLang("YesSearchSuggest");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d35');\" onmouseover=\"ShowHelp('d35', '";
        // line 937
        echo getLang("SearchSuggest");
        echo "', '";
        echo getLang("SearchSuggestHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d35\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"ShowThumbsInCart\">";
        // line 943
        echo getLang("ShowThumbsInCart");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"ShowThumbsInCart\" id=\"ShowThumbsInCart\" value=\"ON\" ";
        // line 946
        echo twig_safe_filter((isset($context['IsShowThumbsInCart']) ? $context['IsShowThumbsInCart'] : null));
        echo " /> <label for=\"ShowThumbsInCart\">";
        echo getLang("YesShowThumbsInCart");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d33');\" onmouseover=\"ShowHelp('d33', '";
        // line 947
        echo getLang("ShowThumbsInCart");
        echo "', '";
        echo getLang("ShowThumbsInCartHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d33\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"ShowCartSuggestions\">";
        // line 953
        echo getLang("ShowCartSuggestions");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"ShowCartSuggestions\" id=\"ShowCartSuggestions\" value=\"ON\" ";
        // line 956
        echo twig_safe_filter((isset($context['IsShowCartSuggestions']) ? $context['IsShowCartSuggestions'] : null));
        echo " /> <label for=\"ShowCartSuggestions\">";
        echo getLang("YesShowCartSuggestions");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d34');\" onmouseover=\"ShowHelp('d34', '";
        // line 957
        echo getLang("ShowCartSuggestions");
        echo "', '";
        echo getLang("ShowCartSuggestionsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d34\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr style=\"";
        // line 961
        echo twig_escape_filter($this->env, (isset($context['HideIfReviewsDisabled']) ? $context['HideIfReviewsDisabled'] : null), "1");
        echo "\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"AutoApproveReviews\">";
        // line 963
        echo getLang("AutoApproveReviews");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"AutoApproveReviews\" id=\"AutoApproveReviews\" value=\"ON\" ";
        // line 966
        echo twig_safe_filter((isset($context['IsAutoApproveReviews']) ? $context['IsAutoApproveReviews'] : null));
        echo " /> <label for=\"AutoApproveReviews\">";
        echo getLang("YesAutoApproveReviews");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('AutoApproveRevHelp');\" onmouseover=\"ShowHelp('AutoApproveRevHelp', '";
        // line 967
        echo getLang("AutoApproveReviews");
        echo "', '";
        echo getLang("AutoApproveReviewsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"AutoApproveRevHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"EnableCustomersAlsoViewed\">";
        // line 973
        echo getLang("EnableCustomersAlsoViewed");
        echo "?</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"EnableCustomersAlsoViewed\" id=\"EnableCustomersAlsoViewed\" value=\"ON\" ";
        // line 976
        echo twig_safe_filter((isset($context['IsCustomersAlsoViewedEnabled']) ? $context['IsCustomersAlsoViewedEnabled'] : null));
        echo " onclick=\"if(this.checked) { \$('.HideIfCustomersAlsoViewedDisabled').show(); } else { \$('.HideIfCustomersAlsoViewedDisabled').hide(); }\" /> <label for=\"EnableCustomersAlsoViewed\">";
        echo getLang("YesEnableCustomersAlsoViewed");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('EnableCustomersAlsoViewedHelp');\" onmouseover=\"ShowHelp('EnableCustomersAlsoViewedHelp', '";
        // line 977
        echo Interspire_Template_Extension::jsFilter(getLang("EnableCustomersAlsoViewed"), "'");
        echo "', '";
        echo Interspire_Template_Extension::jsFilter(getLang("EnableCustomersAlsoViewedHelp"), "'");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"EnableCustomersAlsoViewedHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr class=\"HideIfCustomersAlsoViewedDisabled\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"CustomersAlsoViewedCount\">";
        // line 983
        echo getLang("CustomersAlsoViewedCount");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"CustomersAlsoViewedCount\" id=\"CustomersAlsoViewedCount\" value=\"";
        // line 986
        echo twig_escape_filter($this->env, (isset($context['CustomersAlsoViewedCount']) ? $context['CustomersAlsoViewedCount'] : null), "1");
        echo "\" class=\"Field40\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('CustomersAlsoViewedCountHelp');\" onmouseover=\"ShowHelp('CustomersAlsoViewedCountHelp', '";
        // line 987
        echo Interspire_Template_Extension::jsFilter(getLang("CustomersAlsoViewedCount"), "'");
        echo "', '";
        echo Interspire_Template_Extension::jsFilter(getLang("CustomersAlsoViewedCountHelp"), "'");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"CustomersAlsoViewedCountHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"QuickSearch\">";
        // line 993
        echo getLang("EnableQuickSearch");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"QuickSearch\" id=\"QuickSearch\" value=\"ON\" ";
        // line 996
        echo twig_safe_filter((isset($context['IsQuickSearch']) ? $context['IsQuickSearch'] : null));
        echo " /> <label for=\"QuickSearch\">";
        echo getLang("YesQuickSearch");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d43');\" onmouseover=\"ShowHelp('d43', '";
        // line 997
        echo getLang("EnableQuickSearch");
        echo "', '";
        echo getLang("QuickSearchHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d43\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"ShowInventory\">";
        // line 1003
        echo getLang("ShowInventory");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"ShowInventory\" id=\"ShowInventory\" value=\"ON\" ";
        // line 1006
        echo twig_safe_filter((isset($context['IsShowInventory']) ? $context['IsShowInventory'] : null));
        echo " onclick=\"if(this.checked) { \$('.HideIfShowInventoryDisabled').show(); } else { \$('.HideIfShowInventoryDisabled').hide(); }\" /> <label for=\"ShowInventory\">";
        echo getLang("YesShowInventory");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('ShowInvHelp');\" onmouseover=\"ShowHelp('ShowInvHelp', '";
        // line 1007
        echo getLang("ShowInventory");
        echo "', '";
        echo getLang("ShowInventoryHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"ShowInvHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr class=\"HideIfShowInventoryDisabled\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"ShowPreOrderInventory\">";
        // line 1013
        echo getLang("ShowPreOrderInventory");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"ShowPreOrderInventory\" id=\"ShowPreOrderInventory\" value=\"ON\" ";
        // line 1016
        echo twig_safe_filter((isset($context['IsShowPreOrderInventory']) ? $context['IsShowPreOrderInventory'] : null));
        echo " /> <label for=\"ShowPreOrderInventory\">";
        echo getLang("YesShowPreOrderInventory");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('ShowPreOrderInventoryHelp');\" onmouseover=\"ShowHelp('ShowPreOrderInventoryHelp', '";
        // line 1017
        echo Interspire_Template_Extension::jsFilter(getLang("ShowPreOrderInventory"), "'");
        echo "', '";
        echo Interspire_Template_Extension::jsFilter(getLang("ShowPreOrderInventoryHelp"), "'");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"ShowPreOrderInventoryHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"ShowCartSuggestions\">";
        // line 1023
        echo getLang("EnableWishlist");
        echo "?</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"EnableWishlist\" id=\"EnableWishlist\" value=\"ON\" ";
        // line 1026
        echo twig_safe_filter((isset($context['IsWishlistEnabled']) ? $context['IsWishlistEnabled'] : null));
        echo " /> <label for=\"EnableWishlist\">";
        echo getLang("YesEnableWishlist");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('ShowWishlistHelp');\" onmouseover=\"ShowHelp('ShowWishlistHelp', '";
        // line 1027
        echo getLang("EnableWishlist");
        echo "?', '";
        echo getLang("EnableWishlistHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"ShowWishlistHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"EnableProductComparisons\">";
        // line 1033
        echo getLang("EnableProductComparisons");
        echo "?</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"EnableProductComparisons\" id=\"EnableProductComparisons\" value=\"1\" ";
        // line 1036
        echo twig_safe_filter((isset($context['IsEnableProductComparisons']) ? $context['IsEnableProductComparisons'] : null));
        echo " /> <label for=\"EnableProductComparisons\">";
        echo getLang("YesEnableProductComparisons");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('EnableProductComparisonsHelp');\" onmouseover=\"ShowHelp('EnableProductComparisonsHelp', '";
        // line 1037
        echo getLang("EnableProductComparisons");
        echo "', '";
        echo getLang("EnableProductComparisonsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"EnableProductComparisonsHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"EnableAccountCreation\">";
        // line 1043
        echo getLang("EnableAccountCreation");
        echo "?</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"EnableAccountCreation\" id=\"EnableAccountCreation\" value=\"ON\" ";
        // line 1046
        echo twig_safe_filter((isset($context['IsEnableAccountCreation']) ? $context['IsEnableAccountCreation'] : null));
        echo " /> <label for=\"EnableAccountCreation\">";
        echo getLang("YesEnableAccountCreation");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('AccountCreationHelp');\" onmouseover=\"ShowHelp('AccountCreationHelp', '";
        // line 1047
        echo getLang("EnableAccountCreation");
        echo "?', '";
        echo getLang("EnableAccountCreationHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"AccountCreationHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"BulkDiscountEnabled\">";
        // line 1053
        echo getLang("BulkDiscountEnabled");
        echo "?</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"BulkDiscountEnabled\" id=\"BulkDiscountEnabled\" value=\"ON\" ";
        // line 1056
        echo twig_safe_filter((isset($context['IsBulkDiscountEnabled']) ? $context['IsBulkDiscountEnabled'] : null));
        echo " /> <label for=\"BulkDiscountEnabled\">";
        echo getLang("YesBulkDiscountEnabled");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('bulkdiscountenabled');\" onmouseover=\"ShowHelp('bulkdiscountenabled', '";
        // line 1057
        echo getLang("BulkDiscountEnabled");
        echo "', '";
        echo getLang("BulkDiscountEnabledHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"bulkdiscountenabled\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"EnableProductTabs\">";
        // line 1063
        echo getLang("EnableProductTabs");
        echo "?</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"EnableProductTabs\" id=\"EnableProductTabs\" value=\"ON\" ";
        // line 1066
        echo twig_safe_filter((isset($context['IsProductTabsEnabled']) ? $context['IsProductTabsEnabled'] : null));
        echo " /> <label for=\"EnableProductTabs\">";
        echo getLang("YesEnableProductTabs");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('EnableProductTabsHelp');\" onmouseover=\"ShowHelp('EnableProductTabsHelp', '";
        // line 1067
        echo getLang("EnableProductTabs");
        echo "', '";
        echo getLang("EnableProductTabsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"EnableProductTabsHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1072
        echo getLang("ControlPanelDisplaySettings");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"ShowCartSuggestions\">";
        // line 1076
        echo getLang("UseWYSIWYGEditor");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"UseWYSIWYG\" id=\"UseWYSIWYG\" value=\"ON\" ";
        // line 1079
        echo twig_safe_filter((isset($context['IsWYSIWYGEnabled']) ? $context['IsWYSIWYGEnabled'] : null));
        echo " /> <label for=\"UseWYSIWYG\">";
        echo getLang("YesEnableWYSIWYGEditor");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d39');\" onmouseover=\"ShowHelp('d39', '";
        // line 1080
        echo getLang("UseWYSIWYGEditor");
        echo "', '";
        echo getLang("UseWYSIWYGEditorHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d39\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"ShowCartSuggestions\">";
        // line 1086
        echo getLang("ShowProductThumbnails");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"ShowThumbsInControlPanel\" id=\"ShowThumbsInControlPanel\" value=\"ON\" ";
        // line 1089
        echo twig_safe_filter((isset($context['IsProductThumbnailsEnabled']) ? $context['IsProductThumbnailsEnabled'] : null));
        echo " /> <label for=\"ShowThumbsInControlPanel\">";
        echo getLang("YesShowProductThumbnails");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d42');\" onmouseover=\"ShowHelp('d42', '";
        // line 1090
        echo getLang("ShowProductThumbnails");
        echo "', '";
        echo getLang("ShowProductThumbnailsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d42\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>

\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1098
        echo getLang("CategorySettings");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"CategoryListMode\">";
        // line 1102
        echo getLang("CategoryListMode");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label><input type=\"radio\" name=\"CategoryListingMode\" value=\"single\" ";
        // line 1105
        echo twig_safe_filter((isset($context['CategoryListModeSingle']) ? $context['CategoryListModeSingle'] : null));
        echo " /> ";
        echo getLang("CategoryListModeSingle");
        echo "</label> <img onmouseout=\"HideHelp('categorylistmodehelp');\" onmouseover=\"ShowHelp('categorylistmodehelp', '";
        echo getLang("CategoryListMode");
        echo "', '";
        echo getLang("CategoryListModeHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"categorylistmodehelp\"></div>
\t\t\t\t\t\t\t<br />
\t\t\t\t\t\t\t<label><input type=\"radio\" name=\"CategoryListingMode\" value=\"emptychildren\" ";
        // line 1108
        echo twig_safe_filter((isset($context['CategoryListModeEmptyChildren']) ? $context['CategoryListModeEmptyChildren'] : null));
        echo " /> ";
        echo getLang("CategoryListModeEmptyChildren");
        echo "</label><br />
\t\t\t\t\t\t\t<label><input type=\"radio\" name=\"CategoryListingMode\" value=\"children\" ";
        // line 1109
        echo twig_safe_filter((isset($context['CategoryListModeChildren']) ? $context['CategoryListModeChildren'] : null));
        echo " /> ";
        echo getLang("CategoryListModeChildren");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"CategoryDisplayMode\">";
        // line 1114
        echo getLang("CategoryDisplayMode");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"CategoryDisplayMode\" id=\"CategoryDisplayMode\" class=\"Field200\">
\t\t\t\t\t\t\t\t<option value=\"grid\" ";
        // line 1118
        echo twig_safe_filter((isset($context['CategoryDisplayModeGrid']) ? $context['CategoryDisplayModeGrid'] : null));
        echo ">";
        echo getLang("CategoryDisplayModeGrid");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"list\" ";
        // line 1119
        echo twig_safe_filter((isset($context['CategoryDisplayModeList']) ? $context['CategoryDisplayModeList'] : null));
        echo ">";
        echo getLang("CategoryDisplayModeList");
        echo "</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"CategoryListStyle\">";
        // line 1125
        echo getLang("CategoryListStyle");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"CategoryListStyle\" id=\"CategoryListStyle\" class=\"Field200 showByValue\">
\t\t\t\t\t\t\t\t<option value=\"flyout\" ";
        // line 1129
        if ((isset($context['CategoryListStyle']) ? $context['CategoryListStyle'] : null) == "flyout") {
            echo "selected=\"selected\"";
        }
        echo ">";
        echo getLang("CategoryListStyleFlyout");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"static\" ";
        // line 1130
        if ((isset($context['CategoryListStyle']) ? $context['CategoryListStyle'] : null) == "static") {
            echo "selected=\"selected\"";
        }
        echo ">";
        echo getLang("CategoryListStyleStatic");
        echo "</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('CategoryListStyleHelp');\" onmouseover=\"ShowHelp('CategoryListStyleHelp', '";
        // line 1132
        echo Interspire_Template_Extension::jsFilter(getLang("CategoryListStyle"), "'");
        echo "', '";
        echo $this->getEnvironment()->getExtension('interspire')->jsFilter(nl2br($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "CategoryListStyleHelp", array(), "any")));
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"CategoryListStyleHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr class=\"showByValue_CategoryListStyle showByValue_CategoryListStyle_flyout\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"categoryFlyoutDropShadow\">";
        // line 1138
        echo getLang("categoryFlyoutDropShadow");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"categoryFlyoutDropShadow\" id=\"categoryFlyoutDropShadow\" value=\"1\" ";
        // line 1141
        if ($this->getAttribute((isset($context['ISC_CFG']) ? $context['ISC_CFG'] : null), "categoryFlyoutDropShadow", array(), "any")) {
            echo "checked=\"checked\"";
        }
        echo " /> <label for=\"categoryFlyoutDropShadow\">";
        echo getLang("YescategoryFlyoutDropShadow");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('categoryFlyoutDropShadowHelp');\" onmouseover=\"ShowHelp('categoryFlyoutDropShadowHelp', '";
        // line 1142
        echo getLang("categoryFlyoutDropShadow");
        echo "', '";
        echo getLang("categoryFlyoutDropShadowHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"categoryFlyoutDropShadowHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"CategoryListDepth\">";
        // line 1148
        echo getLang("CategoryListDepth");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"CategoryListDepth\" id=\"CategoryListDepth\" value=\"";
        // line 1151
        echo twig_safe_filter((isset($context['CategoryListDepth']) ? $context['CategoryListDepth'] : null));
        echo "\" class=\"Field40\" /> <label for=\"CategoryListDepth\">";
        echo getLang("CategoryListDepthUnit");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('CategoryListDepthHelp');\" onmouseover=\"ShowHelp('CategoryListDepthHelp', '";
        // line 1152
        echo getLang("CategoryListDepth");
        echo "', '";
        echo getLang("CategoryListDepthHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"CategoryListDepthHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr class=\"showByValue_CategoryListStyle showByValue_CategoryListStyle_flyout\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"categoryFlyoutMouseOutDelay\">";
        // line 1158
        echo getLang("categoryFlyoutMouseOutDelay");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"categoryFlyoutMouseOutDelay\" id=\"categoryFlyoutMouseOutDelay\" value=\"";
        // line 1161
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['ISC_CFG']) ? $context['ISC_CFG'] : null), "categoryFlyoutMouseOutDelay", array(), "any"), "1");
        echo "\" class=\"Field40\" /> <label for=\"categoryFlyoutMouseOutDelay\">";
        echo getLang("categoryFlyoutMouseOutDelayUnit");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('categoryFlyoutMouseOutDelayHelp');\" onmouseover=\"ShowHelp('categoryFlyoutMouseOutDelayHelp', '";
        // line 1162
        echo getLang("categoryFlyoutMouseOutDelay");
        echo "', '";
        echo getLang("categoryFlyoutMouseOutDelayHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"categoryFlyoutMouseOutDelayHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>

\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1170
        echo getLang("ProductSettings");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"ShowCartSuggestions\">";
        // line 1174
        echo getLang("ShowProductPrice");
        echo "?</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"ShowProductPrice\" id=\"ShowProductPrice\" value=\"ON\" ";
        // line 1177
        echo twig_safe_filter((isset($context['IsProductPriceShown']) ? $context['IsProductPriceShown'] : null));
        echo " /> <label for=\"ShowProductPrice\">";
        echo getLang("YesShowProductPrice");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"ShowCartSuggestions\">";
        // line 1182
        echo getLang("ShowProductSKU");
        echo "?</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"ShowProductSKU\" id=\"ShowProductSKU\" value=\"ON\" ";
        // line 1185
        echo twig_safe_filter((isset($context['IsProductSKUShown']) ? $context['IsProductSKUShown'] : null));
        echo " /> <label for=\"ShowProductSKU\">";
        echo getLang("YesShowProductSKU");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"ShowCartSuggestions\">";
        // line 1190
        echo getLang("ShowProductWeight");
        echo "?</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"ShowProductWeight\" id=\"ShowProductWeight\" value=\"ON\" ";
        // line 1193
        echo twig_safe_filter((isset($context['IsProductWeightShown']) ? $context['IsProductWeightShown'] : null));
        echo " /> <label for=\"ShowProductWeight\">";
        echo getLang("YesShowProductWeight");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"ShowCartSuggestions\">";
        // line 1198
        echo getLang("ShowProductBrand");
        echo "?</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"ShowProductBrand\" id=\"ShowProductBrand\" value=\"ON\" ";
        // line 1201
        echo twig_safe_filter((isset($context['IsProductBrandShown']) ? $context['IsProductBrandShown'] : null));
        echo " /> <label for=\"ShowProductBrand\">";
        echo getLang("YesShowProductBrand");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"ShowCartSuggestions\">";
        // line 1206
        echo getLang("ShowProductShipping");
        echo "?</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"ShowProductShipping\" id=\"ShowProductShipping\" value=\"ON\" ";
        // line 1209
        echo twig_safe_filter((isset($context['IsProductShippingShown']) ? $context['IsProductShippingShown'] : null));
        echo " /> <label for=\"ShowProductShipping\">";
        echo getLang("YesShowProductShipping");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"ShowProductRating\">";
        // line 1214
        echo getLang("ShowProductRating");
        echo "?</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"ShowProductRating\" id=\"ShowProductRating\" value=\"ON\" ";
        // line 1217
        echo twig_safe_filter((isset($context['IsProductRatingShown']) ? $context['IsProductRatingShown'] : null));
        echo " /> <label for=\"ShowProductRating\">";
        echo getLang("YesShowProductRating");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"ShowAddToCartLink\">";
        // line 1222
        echo getLang("ShowAddToCartLink");
        echo "?</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"ShowAddToCartLink\" id=\"ShowAddToCartLink\" value=\"ON\" ";
        // line 1225
        echo twig_safe_filter((isset($context['IsAddToCartLinkShown']) ? $context['IsAddToCartLinkShown'] : null));
        echo " /> <label for=\"ShowAddToCartLink\">";
        echo getLang("YesShowAddToCartLink");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> ";
        // line 1230
        echo getLang("TagCloudFontSize");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label>";
        // line 1233
        echo getLang("From");
        echo " <input type=\"text\" name=\"TagCloudMinSize\" id=\"TagCloudMinSize\" value=\"";
        echo twig_safe_filter((isset($context['TagCloudMinSize']) ? $context['TagCloudMinSize'] : null));
        echo "\" class=\"Field50\" />%</label>
\t\t\t\t\t\t\t<label>";
        // line 1234
        echo getLang("SearchTo");
        echo " <input type=\"text\" name=\"TagCloudMaxSize\" id=\"TagCloudMaxSize\" value=\"";
        echo twig_safe_filter((isset($context['TagCloudMaxSize']) ? $context['TagCloudMaxSize'] : null));
        echo "\" class=\"Field50\" />%</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('tagsizehelp');\" onmouseover=\"ShowHelp('tagsizehelp', '";
        // line 1235
        echo getLang("TagCloudFontSize");
        echo "', '";
        echo getLang("TagCloudFontSizeHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"tagsizehelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> ";
        // line 1241
        echo getLang("DefaultPreOrderMessage");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"DefaultPreOrderMessage\" id=\"DefaultPreOrderMessage\" value=\"";
        // line 1244
        echo twig_safe_filter((isset($context['DefaultPreOrderMessage']) ? $context['DefaultPreOrderMessage'] : null));
        echo "\" class=\"Field250\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('DefaultPreOrderMessageHelp');\" onmouseover=\"ShowHelp('DefaultPreOrderMessageHelp', '";
        // line 1245
        echo Interspire_Template_Extension::jsFilter(getLang("DefaultPreOrderMessage"), "'");
        echo "', '";
        echo Interspire_Template_Extension::jsFilter(getLang("DefaultPreOrderMessageHelp"), "'");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"DefaultPreOrderMessageHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>

\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1253
        echo getLang("SocialSettings");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"ShowAddThisLink\">";
        // line 1257
        echo getLang("ShowAddThisLink");
        echo "?</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"ShowAddThisLink\" id=\"ShowAddThisLink\" value=\"1\" ";
        // line 1260
        echo twig_safe_filter((isset($context['IsAddThisLinkShown']) ? $context['IsAddThisLinkShown'] : null));
        echo " /> <label for=\"ShowAddThisLink\">";
        echo getLang("YesShowAddThisLink");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('daddthis');\" onmouseover=\"ShowHelp('daddthis', '";
        // line 1261
        echo getLang("ShowAddThisLink");
        echo "', '";
        echo getLang("ShowAddThisLinkHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"daddthis\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"FacebookLikeButtonEnabled\">";
        // line 1267
        echo getLang("ShowFacebookLikeButton");
        echo "?</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<label for=\"FacebookLikeButtonEnabled\"><input type=\"checkbox\" name=\"FacebookLikeButtonEnabled\" id=\"FacebookLikeButtonEnabled\" value=\"1\" ";
        // line 1270
        if ((isset($context['FacebookLikeButtonEnabled']) ? $context['FacebookLikeButtonEnabled'] : null)) {
            echo "checked=\"checked\"";
        }
        echo " />";
        echo getLang("YesShowFacebookLikeButton");
        echo "</label>
\t\t\t\t\t\t\t";
        // line 1271
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ShowFacebookLikeButton", "ShowFacebookLikeButtonHelp", ), "method"), "1");
        echo "
\t\t\t\t\t\t\t<div class=\"NodeJoin\" id=\"facebookLikeOptions\" ";
        // line 1272
        if ((isset($context['FacebookLikeButtonEnabled']) ? $context['FacebookLikeButtonEnabled'] : null) == false) {
            echo "style=\"display: none;\"";
        }
        echo ">
\t\t\t\t\t\t\t\t<div style=\"float: left;\">
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" style=\"vertical-align: middle;\" alt=\"\" />
\t\t\t\t\t\t\t\t\t\t<label for=\"FacebookLikeButtonStyle\">";
        // line 1276
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "LayoutStyle", array(), "any"), "1");
        echo ":</label>
\t\t\t\t\t\t\t\t\t\t<select name=\"FacebookLikeButtonStyle\" id=\"FacebookLikeButtonStyle\">
\t\t\t\t\t\t\t\t\t\t\t<option value=\"standard\" ";
        // line 1278
        echo twig_escape_filter($this->env, (isset($context['FacebookLikeButtonStylestandard']) ? $context['FacebookLikeButtonStylestandard'] : null), "1");
        echo ">";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "StyleStandard", array(), "any"), "1");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t\t<option value=\"countonly\" ";
        // line 1279
        echo twig_escape_filter($this->env, (isset($context['FacebookLikeButtonStylecountonly']) ? $context['FacebookLikeButtonStylecountonly'] : null), "1");
        echo ">";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "StyleCountOnly", array(), "any"), "1");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" style=\"vertical-align: middle;\" alt=\"\" />
\t\t\t\t\t\t\t\t\t\t<label for=\"FacebookLikeButtonPosition\">";
        // line 1284
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ButtonPosition", array(), "any"), "1");
        echo ":</label>
\t\t\t\t\t\t\t\t\t\t<select name=\"FacebookLikeButtonPosition\" id=\"FacebookLikeButtonPosition\">
\t\t\t\t\t\t\t\t\t\t\t<option value=\"above\" ";
        // line 1286
        echo twig_escape_filter($this->env, (isset($context['FacebookLikeButtonPositionabove']) ? $context['FacebookLikeButtonPositionabove'] : null), "1");
        echo ">";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Above", array(), "any"), "1");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t\t<option value=\"below\" ";
        // line 1287
        echo twig_escape_filter($this->env, (isset($context['FacebookLikeButtonPositionbelow']) ? $context['FacebookLikeButtonPositionbelow'] : null), "1");
        echo ">";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Below", array(), "any"), "1");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t\t";
        // line 1289
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ButtonPosition", "ButtonPositionHelp", ), "method"), "1");
        echo "
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" style=\"vertical-align: middle;\" alt=\"\" />
\t\t\t\t\t\t\t\t\t\t<label for=\"FacebookLikeButtonVerb\">";
        // line 1293
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "TextToDisplay", array(), "any"), "1");
        echo ":</label>
\t\t\t\t\t\t\t\t\t\t<select name=\"FacebookLikeButtonVerb\" id=\"FacebookLikeButtonVerb\">
\t\t\t\t\t\t\t\t\t\t\t<option value=\"like\" ";
        // line 1295
        echo twig_escape_filter($this->env, (isset($context['FacebookLikeButtonVerblike']) ? $context['FacebookLikeButtonVerblike'] : null), "1");
        echo ">";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Like", array(), "any"), "1");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t\t<option value=\"recommend\" ";
        // line 1296
        echo twig_escape_filter($this->env, (isset($context['FacebookLikeButtonVerbrecommend']) ? $context['FacebookLikeButtonVerbrecommend'] : null), "1");
        echo ">";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Recommend", array(), "any"), "1");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" style=\"vertical-align: middle;\" alt=\"\" />
\t\t\t\t\t\t\t\t\t\t<label for=\"FacebookLikeButtonShowFaces\">";
        // line 1301
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowFaces", array(), "any"), "1");
        echo "?</label>
\t\t\t\t\t\t\t\t\t\t<label>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"FacebookLikeButtonShowFaces\" id=\"FacebookLikeButtonShowFaces\" value=\"1\" ";
        // line 1303
        if ((isset($context['FacebookLikeButtonShowFacesEnabled']) ? $context['FacebookLikeButtonShowFacesEnabled'] : null)) {
            echo "checked=\"checked\"";
        }
        echo " />
\t\t\t\t\t\t\t\t\t\t\t";
        // line 1304
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "YesShowFaces", array(), "any"), "1");
        echo "
\t\t\t\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" style=\"vertical-align: middle;\" alt=\"\" />
\t\t\t\t\t\t\t\t\t\t<label for=\"FacebookLikeButtonAdminIds\"><span class=\"Required\">*</span> ";
        // line 1309
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "FacebookAdminIds", array(), "any"), "1");
        echo ":</label>
\t\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"FacebookLikeButtonAdminIds\" id=\"FacebookLikeButtonAdminIds\" value=\"";
        // line 1310
        echo twig_escape_filter($this->env, (isset($context['FacebookLikeButtonAdminIds']) ? $context['FacebookLikeButtonAdminIds'] : null), "1");
        echo "\" />
\t\t\t\t\t\t\t\t\t\t";
        // line 1311
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("FacebookAdminIds", "FacebookAdminIdsHelp", ), "method"), "1");
        echo "
\t\t\t\t\t\t\t\t\t\t<div style=\"padding-left:114px\" class=\"FieldHelp\">
\t\t\t\t\t\t\t\t\t\t\t";
        // line 1313
        echo getLang("FacebookAdminIdsLearnMore");
        echo "\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<br class=\"Clear\"/>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>

\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1325
        echo getLang("RSSSettings");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"RSSNewProducts\">";
        // line 1329
        echo getLang("RSSNewProductsEnabled");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"RSSNewProducts\" id=\"RSSNewProducts\" value=\"ON\" ";
        // line 1332
        echo twig_safe_filter((isset($context['IsRSSNewProductsEnabled']) ? $context['IsRSSNewProductsEnabled'] : null));
        echo " /> <label for=\"RSSNewProducts\">";
        echo getLang("YesRSSNewProductsEnabled");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('rss1');\" onmouseover=\"ShowHelp('rss1', '";
        // line 1333
        echo getLang("RSSNewProductsEnabled");
        echo "', '";
        echo getLang("RSSNewProductsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"rss1\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"RSSPopularProducts\">";
        // line 1340
        echo getLang("RSSPopularProductsEnabled");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"RSSPopularProducts\" id=\"RSSPopularProducts\" value=\"ON\" ";
        // line 1343
        echo twig_safe_filter((isset($context['IsRSSPopularProductsEnabled']) ? $context['IsRSSPopularProductsEnabled'] : null));
        echo " /> <label for=\"RSSPopularProducts\">";
        echo getLang("YesRSSPopularProductsEnabled");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('rss2');\" onmouseover=\"ShowHelp('rss2', '";
        // line 1344
        echo getLang("RSSPopularProductsEnabled");
        echo "', '";
        echo getLang("RSSPopularProductsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"rss2\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"RSSFeaturedProducts\">";
        // line 1351
        echo getLang("RSSFeaturedProductsEnabled");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"RSSFeaturedProducts\" id=\"RSSFeaturedProducts\" value=\"ON\" ";
        // line 1354
        echo twig_safe_filter((isset($context['IsRSSFeaturedProductsEnabled']) ? $context['IsRSSFeaturedProductsEnabled'] : null));
        echo " /> <label for=\"RSSFeaturedProducts\">";
        echo getLang("YesRSSFeaturedProductsEnabled");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('rssfp');\" onmouseover=\"ShowHelp('rssfp', '";
        // line 1355
        echo getLang("RSSFeaturedProductsEnabled");
        echo "', '";
        echo getLang("RSSFeaturedProductsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"rssfp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"RSSCategories\">";
        // line 1362
        echo getLang("RSSCategoriesEnabled");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"RSSCategories\" id=\"RSSCategories\" value=\"ON\" ";
        // line 1365
        echo twig_safe_filter((isset($context['IsRSSCategoriesEnabled']) ? $context['IsRSSCategoriesEnabled'] : null));
        echo " /> <label for=\"RSSCategories\">";
        echo getLang("YesRSSCategoriesEnabled");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('rss3');\" onmouseover=\"ShowHelp('rss3', '";
        // line 1366
        echo getLang("RSSCategoriesEnabled");
        echo "', '";
        echo getLang("RSSCategoriesHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"rss3\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"RSSProductSearches\">";
        // line 1373
        echo getLang("RSSProductSearchesEnabled");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"RSSProductSearches\" id=\"RSSProductSearches\" value=\"ON\" ";
        // line 1376
        echo twig_safe_filter((isset($context['IsRSSProductSearchesEnabled']) ? $context['IsRSSProductSearchesEnabled'] : null));
        echo " /> <label for=\"RSSProductSearches\">";
        echo getLang("YesRSSProductSearchesEnabled");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('rss4');\" onmouseover=\"ShowHelp('rss4', '";
        // line 1377
        echo getLang("RSSProductSearchesEnabled");
        echo "', '";
        echo getLang("RSSProductSearchesHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"rss4\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"RSSLatestBlogEntries\">";
        // line 1384
        echo getLang("RSSLatestBlogEntriesEnabled");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"RSSLatestBlogEntries\" id=\"RSSLatestBlogEntries\" value=\"ON\" ";
        // line 1387
        echo twig_safe_filter((isset($context['IsRSSLatestBlogEntriesEnabled']) ? $context['IsRSSLatestBlogEntriesEnabled'] : null));
        echo " /> <label for=\"RSSLatestBlogEntries\">";
        echo getLang("YesRSSLatestBlogEntriesEnabled");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('rss5');\" onmouseover=\"ShowHelp('rss5', '";
        // line 1388
        echo getLang("RSSLatestBlogEntriesEnabled");
        echo "', '";
        echo getLang("RSSLatestBlogEntriesHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"rss5\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"RSSSyndicationIcons\">";
        // line 1395
        echo getLang("RSSSyndicationIconsEnabled");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"RSSSyndicationIcons\" id=\"RSSSyndicationIcons\" value=\"ON\" ";
        // line 1398
        echo twig_safe_filter((isset($context['IsRSSSyndicationIconsEnabled']) ? $context['IsRSSSyndicationIconsEnabled'] : null));
        echo " /> <label for=\"RSSSyndicationIcons\">";
        echo getLang("YesRSSSyndicationIconsEnabled");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('rss6');\" onmouseover=\"ShowHelp('rss6', '";
        // line 1399
        echo getLang("RSSSyndicationIconsEnabled");
        echo "', '";
        echo getLang("RSSSyndicationIconsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"rss6\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"RSSItemsLimit\">";
        // line 1406
        echo getLang("RSSItemsLimit");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"RSSItemsLimit\" id=\"RSSItemsLimit\" value=\"";
        // line 1409
        echo twig_safe_filter((isset($context['RSSItemsLimit']) ? $context['RSSItemsLimit'] : null));
        echo "\" class=\"Field40\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('rss7');\" onmouseover=\"ShowHelp('rss7', '";
        // line 1410
        echo getLang("RSSItemsLimit");
        echo "', '";
        echo getLang("RSSItemsLimitHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"rss7\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"RSSCacheTime\">";
        // line 1417
        echo getLang("RSSCacheTime");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"RSSCacheTime\" id=\"RSSCacheTime\" value=\"";
        // line 1420
        echo twig_safe_filter((isset($context['RSSCacheTime']) ? $context['RSSCacheTime'] : null));
        echo "\" class=\"Field40\" />";
        echo getLang("RSSMinutes");
        echo "\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('rss8');\" onmouseover=\"ShowHelp('rss8', '";
        // line 1421
        echo getLang("RSSCacheTime");
        echo "', '";
        echo getLang("RSSCacheTimeHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"rss8\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t</table>
\t\t\t</div>

\t\t\t<div id=\"div3\" style=\"padding-top: 10px;  display: ";
        // line 1429
        echo twig_safe_filter((isset($context['HideBackupSettings']) ? $context['HideBackupSettings'] : null));
        echo "\">
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1432
        echo getLang("BackupSettings");
        echo "</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"BackupsLocal\">";
        // line 1437
        echo getLang("EnableLocalBackups");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"BackupsLocal\" id=\"BackupsLocal\" onclick=\"ToggleLocalBackups();\" value=\"ON\" ";
        // line 1440
        echo twig_safe_filter((isset($context['IsBackupsLocalEnabled']) ? $context['IsBackupsLocalEnabled'] : null));
        echo " /> <label for=\"BackupsLocal\">";
        echo getLang("YesEnableLocalBackups");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('backups1');\" onmouseover=\"ShowHelp('backups1', '";
        // line 1441
        echo getLang("EnableLocalBackups");
        echo "', '";
        echo getLang("EnableLocalBackupsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"backups1\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr id=\"BackupsRemoteFTPContainer\" style=\"display: %%FTPBackupsHide%%\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"BackupsRemoteFTP\">";
        // line 1448
        echo getLang("EnableRemoteFTPBackups");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"BackupsRemoteFTP\" id=\"BackupsRemoteFTP\" onclick=\"ToggleFTPBackups();\" value=\"ON\" ";
        // line 1451
        echo twig_safe_filter((isset($context['IsBackupsRemoteFTPEnabled']) ? $context['IsBackupsRemoteFTPEnabled'] : null));
        echo " /> <label for=\"BackupsRemoteFTP\">";
        echo getLang("YesEnableRemoteFTPBackups");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('backups2');\" onmouseover=\"ShowHelp('backups2', '";
        // line 1452
        echo getLang("EnableRemoteFTPBackups");
        echo "', '";
        echo getLang("EnableRemoteFTPBackupsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"backups2\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr id=\"BackupsRemoteFTPSettings\" style=\"display: none;\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; ";
        // line 1458
        echo getLang("FTPServerDetails");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<table>
\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t<td><span class=\"Required\">*</span> ";
        // line 1463
        echo getLang("FTPHostName");
        echo ":</td>
\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"BackupsRemoteFTPHost\" id=\"BackupsRemoteFTPHost\" value=\"";
        // line 1465
        echo twig_safe_filter((isset($context['BackupsRemoteFTPHost']) ? $context['BackupsRemoteFTPHost'] : null));
        echo "\" class=\"Field150\" />
\t\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('backups3');\" onmouseover=\"ShowHelp('backups3', '";
        // line 1466
        echo getLang("FTPServerDetails");
        echo "', '";
        echo getLang("FTPServerDetailsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"backups3\"></div>
\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t<td><span class=\"Required\">*</span> ";
        // line 1471
        echo getLang("FTPUsername");
        echo ":</td>
\t\t\t\t\t\t\t\t\t<td><input type=\"text\" name=\"BackupsRemoteFTPUser\" id=\"BackupsRemoteFTPUser\" value=\"";
        // line 1472
        echo twig_safe_filter((isset($context['BackupsRemoteFTPUser']) ? $context['BackupsRemoteFTPUser'] : null));
        echo "\" class=\"Field150\" /></td>
\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t<td><span class=\"Required\">*</span> ";
        // line 1475
        echo getLang("FTPPassword");
        echo ":</td>
\t\t\t\t\t\t\t\t\t<td><input type=\"password\" autocomplete=\"off\" name=\"BackupsRemoteFTPPass\" id=\"BackupsRemoteFTPPass\" value=\"";
        // line 1476
        echo twig_safe_filter((isset($context['BackupsRemoteFTPPass']) ? $context['BackupsRemoteFTPPass'] : null));
        echo "\" class=\"Field150\" /></td>
\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t<td>&nbsp;&nbsp; ";
        // line 1479
        echo getLang("FTPPath");
        echo ":</td>
\t\t\t\t\t\t\t\t\t<td><input type=\"text\" name=\"BackupsRemoteFTPPath\" id=\"BackupsRemoteFTPPath\" value=\"";
        // line 1480
        echo twig_safe_filter((isset($context['BackupsRemoteFTPPath']) ? $context['BackupsRemoteFTPPath'] : null));
        echo "\" class=\"Field150\" /></td>
\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t<td>&nbsp;</td>
\t\t\t\t\t\t\t\t\t<td><input type=\"button\" value=\"";
        // line 1484
        echo getLang("TestFTPSettings");
        echo "\" class=\"SmallButton\" onclick=\"DoTestFTPSettings()\" id=\"TestFTPSettings\" /> &nbsp;&nbsp;<img src=\"images/ajax-loader.gif\" style=\"vertical-align: middle; display: none;\" id=\"TestFTPSettingsLoading\" alt=\"\" />
\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td colspan=\"2\" class=\"EmptyRow\">
\t\t\t\t\t\t\t&nbsp;
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1495
        echo getLang("AutomaticBackups");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"BackupsAutomatic\">";
        // line 1499
        echo getLang("EnableAutomaticBackups");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"BackupsAutomatic\" id=\"BackupsAutomatic\" onclick=\"ToggleAutomaticBackups();\" value=\"ON\" ";
        // line 1502
        echo twig_safe_filter((isset($context['IsBackupsAutomaticEnabled']) ? $context['IsBackupsAutomaticEnabled'] : null));
        echo " /> <label for=\"BackupsAutomatic\">";
        echo getLang("YesEnableAutomaticBackups");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('backups4');\" onmouseover=\"ShowHelp('backups4', '";
        // line 1503
        echo getLang("EnableAutomaticBackups");
        echo "', '";
        echo getLang("EnableAutomaticBackupsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"backups4\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr class=\"BackupsAutomaticContainer\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"BackupsAutomaticPath\">";
        // line 1509
        echo getLang("BackupCronPath");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" class=\"Field250\" name=\"BackupsAutomaticPath\" id=\"BackupsAutomaticPath\" value=\"";
        // line 1512
        echo twig_safe_filter((isset($context['BackupsAutomaticPath']) ? $context['BackupsAutomaticPath'] : null));
        echo "\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('backups6');\" onmouseover=\"ShowHelp('backups6', '";
        // line 1513
        echo getLang("BackupCronPath");
        echo "', '";
        echo getLang("BackupCronPathHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"backups6\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr class=\"BackupsAutomaticContainer\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"BackupsAutomaticMethod\">";
        // line 1519
        echo getLang("AutomaticBackupMethod");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"BackupsAutomaticMethod\" id=\"BackupsAutomaticMethod\" class=\"Field250\">
\t\t\t\t\t\t\t\t<option value=\"local\" ";
        // line 1523
        echo twig_safe_filter((isset($context['IsBackupsAutomaticMethodLocal']) ? $context['IsBackupsAutomaticMethodLocal'] : null));
        echo " id=\"BackupsAutomaticLocal\">";
        echo getLang("AutomaticBackupLocal");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"ftp\" ";
        // line 1524
        echo twig_safe_filter((isset($context['IsBackupsAutomaticMethodFTP']) ? $context['IsBackupsAutomaticMethodFTP'] : null));
        echo " id=\"BackupsAutomaticFTP\">";
        echo getLang("AutomaticBackupRemoteFTP");
        echo "</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('backups5');\" onmouseover=\"ShowHelp('backups5', '";
        // line 1526
        echo getLang("AutomaticBackupMethod");
        echo "', '";
        echo getLang("AutomaticBackupMethodHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"backups5\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr class=\"BackupsAutomaticContainer\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; ";
        // line 1532
        echo getLang("BackupSettings");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"BackupsAutomaticDatabase\" id=\"BackupsAutomaticDatabase\" value=\"ON\" ";
        // line 1535
        echo twig_safe_filter((isset($context['IsBackupsAutomaticDatabaseEnabled']) ? $context['IsBackupsAutomaticDatabaseEnabled'] : null));
        echo " /> ";
        echo getLang("SettingsBackupDatabase");
        echo "</label><br />
\t\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"BackupsAutomaticImages\" id=\"BackupsAutomaticImages\" value=\"ON\" ";
        // line 1536
        echo twig_safe_filter((isset($context['IsBackupsAutomaticImagesEnabled']) ? $context['IsBackupsAutomaticImagesEnabled'] : null));
        echo " /> ";
        echo getLang("SettingsBackupProductImages");
        echo "</label><br />
\t\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"BackupsAutomaticDownloads\" id=\"BackupsAutomaticDownloads\" value=\"ON\" ";
        // line 1537
        echo twig_safe_filter((isset($context['IsBackupsAutomaticDownloadsEnabled']) ? $context['IsBackupsAutomaticDownloadsEnabled'] : null));
        echo " /> ";
        echo getLang("SettingsBackupDigitalProducts");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</div>

\t\t\t<div id=\"div4\" style=\"padding-top: 10px;\">
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1546
        echo getLang("SearchSettings");
        echo "</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"SearchOptimisation\">";
        // line 1551
        echo getLang("SearchOptimisation");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"SearchOptimisation\" id=\"SearchOptimisation\" class=\"Field200\">
\t\t\t\t\t\t\t\t";
        // line 1555
        echo twig_safe_filter((isset($context['SearchOptimisationOptions']) ? $context['SearchOptimisationOptions'] : null));
        echo "
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('search8');\" onmouseover=\"ShowHelp('search8', '";
        // line 1557
        echo getLang("SearchOptimisation");
        echo "', '";
        echo getLang("SearchOptimisationHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"search8\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"SearchDefaultProductSort\">";
        // line 1563
        echo getLang("SearchDefaultProductSort");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"SearchDefaultProductSort\" id=\"SearchDefaultProductSort\" class=\"Field200\">
\t\t\t\t\t\t\t\t";
        // line 1567
        echo twig_safe_filter((isset($context['SearchDefaultProductSortOptions']) ? $context['SearchDefaultProductSortOptions'] : null));
        echo "
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('search1');\" onmouseover=\"ShowHelp('search1', '";
        // line 1569
        echo getLang("SearchDefaultProductSort");
        echo "', '";
        echo getLang("SearchDefaultProductSortHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"search1\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"SearchDefaultContentSort\">";
        // line 1575
        echo getLang("SearchDefaultContentSort");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"SearchDefaultContentSort\" id=\"SearchDefaultContentSort\" class=\"Field200\">
\t\t\t\t\t\t\t\t";
        // line 1579
        echo twig_safe_filter((isset($context['SearchDefaultContentSortOptions']) ? $context['SearchDefaultContentSortOptions'] : null));
        echo "
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('search2');\" onmouseover=\"ShowHelp('search2', '";
        // line 1581
        echo getLang("SearchDefaultContentSort");
        echo "', '";
        echo getLang("SearchDefaultContentSortHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"search2\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"SearchProductDisplayMode\">";
        // line 1587
        echo getLang("SearchProductDisplayMode");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"SearchProductDisplayMode\" id=\"SearchProductDisplayMode\" class=\"Field200\">
\t\t\t\t\t\t\t\t";
        // line 1591
        echo twig_safe_filter((isset($context['SearchProductDisplayModeOptions']) ? $context['SearchProductDisplayModeOptions'] : null));
        echo "
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('search6');\" onmouseover=\"ShowHelp('search6', '";
        // line 1593
        echo getLang("SearchProductDisplayMode");
        echo "', '";
        echo getLang("SearchProductDisplayModeHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"search6\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"SearchResultsPerPage\">";
        // line 1599
        echo getLang("SearchResultsPerPage");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"SearchResultsPerPage\" id=\"SearchResultsPerPage\" value=\"";
        // line 1602
        echo twig_safe_filter((isset($context['SearchResultsPerPage']) ? $context['SearchResultsPerPage'] : null));
        echo "\" class=\"Field40\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('search7');\" onmouseover=\"ShowHelp('search7', '";
        // line 1603
        echo getLang("SearchResultsPerPage");
        echo "', '";
        echo getLang("SearchResultsPerPageHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"search7\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</div>

\t\t\t<div id=\"div5\" style=\"padding-top: 10px; ";
        // line 1610
        echo twig_safe_filter((isset($context['HideLoggingSettingsTab']) ? $context['HideLoggingSettingsTab'] : null));
        echo "\">
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1613
        echo getLang("SystemLogging");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; ";
        // line 1617
        echo getLang("EnableSystemLogging");
        echo "?
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label style=\"padding-left: 4px;\" for=\"EnableSystemLogging\"><input ";
        // line 1620
        echo twig_safe_filter((isset($context['IsSystemLoggingEnabled']) ? $context['IsSystemLoggingEnabled'] : null));
        echo " type=\"checkbox\" name=\"SystemLogging\" id=\"EnableSystemLogging\" value=\"ON\" onclick=\"ToggleSystemLogging()\" />";
        echo getLang("YesEnableSystemLogging");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('logging1');\" onmouseover=\"ShowHelp('logging1', '";
        // line 1621
        echo getLang("EnableSystemLogging");
        echo "?', '";
        echo getLang("EnableSystemLoggingHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"logging1\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr class=\"SystemLoggingToggle\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; ";
        // line 1627
        echo getLang("ActionsToLog");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style=\"padding-left: 28px\">
\t\t\t\t\t\t\t<select name=\"SystemLogTypes[]\" id=\"SystemLogTypes\" multiple=\"multiple\" size=\"10\" class=\"Field250 ISSelectReplacement\">
\t\t\t\t\t\t\t\t<option value=\"general\" ";
        // line 1631
        echo twig_safe_filter((isset($context['IsGeneralLoggingEnabled']) ? $context['IsGeneralLoggingEnabled'] : null));
        echo ">";
        echo getLang("ActionsToLogGeneral");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"payment\" ";
        // line 1632
        echo twig_safe_filter((isset($context['IsPaymentLoggingEnabled']) ? $context['IsPaymentLoggingEnabled'] : null));
        echo ">";
        echo getLang("ActionsToLogPayment");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"shipping\" ";
        // line 1633
        echo twig_safe_filter((isset($context['IsShippingLoggingEnabled']) ? $context['IsShippingLoggingEnabled'] : null));
        echo ">";
        echo getLang("ActionsToLogShipping");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"notification\" ";
        // line 1634
        echo twig_safe_filter((isset($context['IsNotificationLoggingEnabled']) ? $context['IsNotificationLoggingEnabled'] : null));
        echo ">";
        echo getLang("ActionsToLogNotification");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"sql\" ";
        // line 1635
        echo twig_safe_filter((isset($context['IsSQLLoggingEnabled']) ? $context['IsSQLLoggingEnabled'] : null));
        echo ">";
        echo getLang("ActionsToLogSQL");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"php\" ";
        // line 1636
        echo twig_safe_filter((isset($context['IsPHPLoggingEnabled']) ? $context['IsPHPLoggingEnabled'] : null));
        echo ">";
        echo getLang("ActionsToLogPHP");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"accounting\" ";
        // line 1637
        echo twig_safe_filter((isset($context['IsAccountingLoggingEnabled']) ? $context['IsAccountingLoggingEnabled'] : null));
        echo ">";
        echo getLang("ActionsToLogAccounting");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"emailintegration\" ";
        // line 1638
        echo twig_safe_filter((isset($context['IsEmailIntegrationLoggingEnabled']) ? $context['IsEmailIntegrationLoggingEnabled'] : null));
        echo ">";
        echo getLang("ActionsToLogEmailIntegration");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"ebay\" ";
        // line 1639
        echo twig_safe_filter((isset($context['IsEbayLoggingEnabled']) ? $context['IsEbayLoggingEnabled'] : null));
        echo ">";
        echo getLang("ActionsToLogEbay");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"shoppingcomparison\" ";
        // line 1640
        echo twig_safe_filter((isset($context['IsShoppingComparisonLoggingEnabled']) ? $context['IsShoppingComparisonLoggingEnabled'] : null));
        echo ">";
        echo getLang("ActionsToLogShoppingComparison");
        echo "</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr class=\"SystemLoggingToggle\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; ";
        // line 1646
        echo getLang("TypesOfMessages");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style=\"padding-left: 28px\">
\t\t\t\t\t\t\t<select name=\"SystemLogSeverity[]\" id=\"SystemLogSeverity\" multiple=\"multiple\" size=\"7\" class=\"Field250 ISSelectReplacement\">
\t\t\t\t\t\t\t\t<option value=\"errors\" ";
        // line 1650
        echo twig_safe_filter((isset($context['IsLoggingSeverityErrors']) ? $context['IsLoggingSeverityErrors'] : null));
        echo ">";
        echo getLang("TypesOfMessagesErrors");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"warnings\" ";
        // line 1651
        echo twig_safe_filter((isset($context['IsLoggingSeverityWarnings']) ? $context['IsLoggingSeverityWarnings'] : null));
        echo ">";
        echo getLang("TypesOfMessagesWarnings");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"success\" ";
        // line 1652
        echo twig_safe_filter((isset($context['IsLoggingSeveritySuccesses']) ? $context['IsLoggingSeveritySuccesses'] : null));
        echo ">";
        echo getLang("TypesOfMessagesSuccesses");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"notices\" ";
        // line 1653
        echo twig_safe_filter((isset($context['IsLoggingSeverityNotices']) ? $context['IsLoggingSeverityNotices'] : null));
        echo ">";
        echo getLang("TypesOfMessagesNotices");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"debug\" ";
        // line 1654
        echo twig_safe_filter((isset($context['IsLoggingSeverityDebug']) ? $context['IsLoggingSeverityDebug'] : null));
        echo ">";
        echo getLang("TypesOfMessagesDebug");
        echo "</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr class=\"SystemLoggingToggle\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"SystemLogMaxLength\">";
        // line 1660
        echo getLang("RestrictLogTo");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style=\"padding-left: 28px\">
\t\t\t\t\t\t\t<input type=\"text\" name=\"SystemLogMaxLength\" id=\"SystemLogMaxLength\" value=\"";
        // line 1663
        echo twig_safe_filter((isset($context['SystemLogMaxLength']) ? $context['SystemLogMaxLength'] : null));
        echo "\" class=\"Field40\" /> ";
        echo getLang("MostRecentEntries");
        echo "\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('logging2');\" onmouseover=\"ShowHelp('logging2', '";
        // line 1664
        echo getLang("RestrictLogTo");
        echo "', '";
        echo getLang("RestrictLogToHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"logging2\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; ";
        // line 1670
        echo getLang("HidePHPErrors");
        echo "?
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label style=\"padding-left: 4px;\" for=\"HidePHPErrors\"><input ";
        // line 1673
        echo twig_safe_filter((isset($context['IsHidePHPErrorsEnabled']) ? $context['IsHidePHPErrorsEnabled'] : null));
        echo " type=\"checkbox\" name=\"HidePHPErrors\" id=\"HidePHPErrors\" value=\"1\" />";
        echo getLang("YesHidePHPErrors");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('logging22');\" onmouseover=\"ShowHelp('logging22', '";
        // line 1674
        echo getLang("HidePHPErrors");
        echo "?', '";
        echo getLang("HidePHPErrorsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"logging22\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; ";
        // line 1680
        echo getLang("EnableDebugMode");
        echo "?
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label style=\"padding-left: 4px;\" for=\"DebugMode\"><input ";
        // line 1683
        echo twig_safe_filter((isset($context['IsDebugModeEnabled']) ? $context['IsDebugModeEnabled'] : null));
        echo " type=\"checkbox\" name=\"DebugMode\" id=\"DebugMode\" value=\"1\" />";
        echo getLang("YesEnableDebugMode");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('logging23');\" onmouseover=\"ShowHelp('logging23', '";
        // line 1684
        echo getLang("EnableDebugMode");
        echo "?', '";
        echo getLang("EnableDebugModeHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"logging23\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>

\t\t\t\t<table width=\"100%\" class=\"Panel\" style=\"display: ";
        // line 1690
        echo twig_safe_filter((isset($context['HideStaffLogs']) ? $context['HideStaffLogs'] : null));
        echo "\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1692
        echo getLang("AdministratorLogging");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; ";
        // line 1696
        echo getLang("EnableAdministratorLogging");
        echo "?
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label style=\"padding-left: 4px;\" for=\"EnableAdministratorLogging\"><input ";
        // line 1699
        echo twig_safe_filter((isset($context['IsAdministratorLoggingEnabled']) ? $context['IsAdministratorLoggingEnabled'] : null));
        echo " type=\"checkbox\" name=\"AdministratorLogging\" id=\"EnableAdministratorLogging\" value=\"ON\" onclick=\"ToggleAdministratorLogging()\" /> ";
        echo getLang("YesEnableAdministratorLogging");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('logging3');\" onmouseover=\"ShowHelp('logging3', '";
        // line 1700
        echo getLang("EnableAdministratorLogging");
        echo "?', '";
        echo getLang("EnableAdministratorLoggingHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"logging3\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr class=\"AdministratorLoggingToggle\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"AdministratorLogMaxLength\">";
        // line 1706
        echo getLang("RestrictLogTo");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<span style=\"padding-left: 28px;\"><input type=\"text\" name=\"AdministratorLogMaxLength\" id=\"AdministratorLogMaxLength\" value=\"";
        // line 1709
        echo twig_safe_filter((isset($context['AdministratorLogMaxLength']) ? $context['AdministratorLogMaxLength'] : null));
        echo "\" class=\"Field40\" /> ";
        echo getLang("MostRecentEntries");
        echo "\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('RestrictLogHelp');\" onmouseover=\"ShowHelp('RestrictLogHelp', '";
        // line 1711
        echo getLang("RestrictLogTo");
        echo "', '";
        echo getLang("RestrictLogToHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"RestrictLogHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t</table>
\t\t\t</div>

\t\t\t<div id=\"div6\" style=\"padding-top: 10px; display: none\">
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1722
        echo getLang("VendorSettings");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; ";
        // line 1726
        echo getLang("VendorLogoUploading");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label>
\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"VendorLogoUploading\" id=\"VendorLogoUploading\" value=\"1\" ";
        // line 1730
        echo twig_safe_filter((isset($context['VendorLogoUploadingChecked']) ? $context['VendorLogoUploadingChecked'] : null));
        echo " onclick=\"\$(this).parent().siblings('.CheckToggle').toggle();\" /> ";
        echo getLang("YesAllowVendorLogoUploading");
        echo "\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('VendorLogoUploadingHelp');\" onmouseover=\"ShowHelp('VendorLogoUploadingHelp', '";
        // line 1732
        echo getLang("VendorLogoUploading");
        echo "', '";
        echo getLang("VendorLogoUploadingHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"VendorLogoUploadingHelp\"></div>
\t\t\t\t\t\t\t<div style=\"";
        // line 1734
        echo twig_safe_filter((isset($context['HideVendorLogoUploading']) ? $context['HideVendorLogoUploading'] : null));
        echo "\" class=\"CheckToggle\">
\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" alt=\"\" />
\t\t\t\t\t\t\t\t";
        // line 1736
        echo getLang("MaximumImageDimensions");
        echo ":
\t\t\t\t\t\t\t\t<input type=\"text\" name=\"VendorLogoSizeW\" id=\"VendorLogoSizeW\" value=\"";
        // line 1737
        echo twig_safe_filter((isset($context['VendorLogoSizeW']) ? $context['VendorLogoSizeW'] : null));
        echo "\" class=\"Field40\" />
\t\t\t\t\t\t\t\tx
\t\t\t\t\t\t\t\t<input type=\"text\" name=\"VendorLogoSizeH\" id=\"VendorLogoSizeH\" value=\"";
        // line 1739
        echo twig_safe_filter((isset($context['VendorLogoSizeH']) ? $context['VendorLogoSizeH'] : null));
        echo "\" class=\"Field40\" />
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\" style=\"vertical-align: top\">
\t\t\t\t\t\t\t&nbsp;&nbsp; ";
        // line 1745
        echo getLang("VendorPhotoUploading");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label>
\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"VendorPhotoUploading\" id=\"VendorPhotoUploading\" value=\"1\" ";
        // line 1749
        echo twig_safe_filter((isset($context['VendorPhotoUploadingChecked']) ? $context['VendorPhotoUploadingChecked'] : null));
        echo " onclick=\"\$(this).parent().siblings('.CheckToggle').toggle();\" /> ";
        echo getLang("YesAllowVendorPhotoUploading");
        echo "\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('VendorPhotoUploadingHelp');\" onmouseover=\"ShowHelp('VendorPhotoUploadingHelp', '";
        // line 1751
        echo getLang("VendorPhotoUploading");
        echo "', '";
        echo getLang("VendorPhotoUploadingHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"VendorPhotoUploadingHelp\"></div>
\t\t\t\t\t\t\t<div style=\"";
        // line 1753
        echo twig_safe_filter((isset($context['HideVendorPhotoUploading']) ? $context['HideVendorPhotoUploading'] : null));
        echo "\" class=\"CheckToggle\">
\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" alt=\"\" />
\t\t\t\t\t\t\t\t";
        // line 1755
        echo getLang("MaximumImageDimensions");
        echo ":
\t\t\t\t\t\t\t\t<input type=\"text\" name=\"VendorPhotoSizeW\" id=\"VendorPhotoSizeW\" value=\"";
        // line 1756
        echo twig_safe_filter((isset($context['VendorPhotoSizeW']) ? $context['VendorPhotoSizeW'] : null));
        echo "\" class=\"Field40\" />
\t\t\t\t\t\t\t\tx
\t\t\t\t\t\t\t\t<input type=\"text\" name=\"VendorPhotoSizeH\" id=\"VendorPhotoSizeH\" value=\"";
        // line 1758
        echo twig_safe_filter((isset($context['VendorPhotoSizeH']) ? $context['VendorPhotoSizeH'] : null));
        echo "\" class=\"Field40\" />
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</div>

\t\t\t<div id=\"div7\" style=\"padding-top: 10px;\">
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1768
        echo getLang("CustomerGroupsSettings");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"GuestCustomerGroup\">";
        // line 1772
        echo getLang("GuestCustomerGroup");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"GuestCustomerGroup\" id=\"GuestCustomerGroup\" size=\"5\" class=\"Field250\">
\t\t\t\t\t\t\t\t<option value=\"0\">";
        // line 1776
        echo getLang("GuestCustomerGroupNone");
        echo "</option>
\t\t\t\t\t\t\t\t";
        // line 1777
        echo twig_safe_filter((isset($context['CustomerGroupOptions']) ? $context['CustomerGroupOptions'] : null));
        echo "
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('GuestCustomerGroupHelp');\" onmouseover=\"ShowHelp('GuestCustomerGroupHelp', '";
        // line 1779
        echo getLang("GuestCustomerGroup");
        echo "', '";
        echo getLang("GuestCustomerGroupHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"GuestCustomerGroupHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t<br />
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1787
        echo getLang("GoogleMapsSettings");
        echo "</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp; <label for=\"BackupsLocal\">";
        // line 1792
        echo getLang("GoogleMapsAPIKey");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"GoogleMapsAPIKey\" id=\"GoogleMapsAPIKey\" value=\"";
        // line 1795
        echo twig_safe_filter((isset($context['GoogleMapsAPIKey']) ? $context['GoogleMapsAPIKey'] : null));
        echo "\" class=\"Field250\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('gmapapikey');\" onmouseover=\"ShowHelp('gmapapikey', '";
        // line 1796
        echo getLang("GoogleMapsAPIKey");
        echo "', '";
        echo getLang("GoogleMapsAPIKeyHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"gmapapikey\"></div>
\t\t\t\t\t\t\t<div style=\"padding-top:2px\">
\t\t\t\t\t\t\t\t<a href=\"http://www.google.com/apis/maps/signup.html\" target=\"_blank\" style=\"color:gray\">";
        // line 1799
        echo getLang("GoogleMapsAPILinkText");
        echo "</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t<br />
\t\t\t\t<table width=\"100%\" class=\"Panel\" style=\"";
        // line 1805
        echo twig_safe_filter((isset($context['HideProxyFields']) ? $context['HideProxyFields'] : null));
        echo "\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1807
        echo getLang("HTTPProxySettings");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span> <label for=\"HTTPProxyServer\">";
        // line 1811
        echo getLang("HTTPProxyServer");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"HTTPProxyServer\" id=\"HTTPProxyServer\" value=\"";
        // line 1814
        echo twig_safe_filter((isset($context['HTTPProxyServer']) ? $context['HTTPProxyServer'] : null));
        echo "\" class=\"Field250\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('hp1');\" onmouseover=\"ShowHelp('hp1', '";
        // line 1815
        echo getLang("HTTPProxyServer");
        echo "', '";
        echo getLang("HTTPProxyServerHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"hp1\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span> <label for=\"HTTPProxyPort\">";
        // line 1821
        echo getLang("HTTPProxyPort");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" name=\"HTTPProxyPort\" id=\"HTTPProxyPort\" value=\"";
        // line 1824
        echo twig_safe_filter((isset($context['HTTPProxyPort']) ? $context['HTTPProxyPort'] : null));
        echo "\" class=\"Field250\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('hp2');\" onmouseover=\"ShowHelp('hp2', '";
        // line 1825
        echo getLang("HTTPProxyPort");
        echo "', '";
        echo getLang("HTTPProxyPortHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"hp2\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span> <label for=\"HTTPSSLVerifyPeer\">";
        // line 1831
        echo getLang("HTTPSSLVerifyPeer");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t<input ";
        // line 1834
        echo twig_safe_filter((isset($context['IsHTTPSSLVerifyPeerEnabled']) ? $context['IsHTTPSSLVerifyPeerEnabled'] : null));
        echo " type=\"checkbox\" name=\"HTTPSSLVerifyPeer\" id=\"HTTPSSLVerifyPeer\" value=\"ON\" /> <label for=\"HTTPSSLVerifyPeer\">";
        echo getLang("YesHTTPSSLVerifyPeer");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('hp3');\" onmouseover=\"ShowHelp('hp3', '";
        // line 1835
        echo getLang("HTTPSSLVerifyPeer");
        echo "', '";
        echo getLang("HTTPSSLVerifyPeerHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"hp3\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t<br />
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1843
        echo getLang("OrderSettings");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t";
        // line 1845
        if ((!$this->getAttribute((isset($context['ISC_CFG']) ? $context['ISC_CFG'] : null), "HideDeletedOrdersActionSetting", array(), "any"))) {
            echo "\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t\t<span class=\"Required\">*</span> <label for=\"DeletedOrdersAction\">";
            // line 1848
            echo getLang("DeletedOrders");
            echo ":</label>
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t<label><input type=\"radio\" name=\"DeletedOrdersAction\" value=\"delete\" ";
            // line 1851
            if ((isset($context['DeletedOrdersAction']) ? $context['DeletedOrdersAction'] : null) == "delete") {
                echo "checked=\"checked\"";
            }
            echo " /> ";
            echo getLang("DeletedOrdersAction_Delete");
            echo "</label> <img onmouseout=\"HideHelp('DeletedOrdersActionHelp');\" onmouseover=\"ShowHelp('DeletedOrdersActionHelp', '";
            echo Interspire_Template_Extension::jsFilter(getLang("DeletedOrders"), "'");
            echo "', '";
            echo Interspire_Template_Extension::jsFilter(getLang("DeletedOrdersActionHelp"), "'");
            echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" /><div style=\"display:none\" id=\"DeletedOrdersActionHelp\"></div><br />
\t\t\t\t\t\t\t\t<label><input type=\"radio\" name=\"DeletedOrdersAction\" value=\"purge\" ";
            // line 1852
            if ((isset($context['DeletedOrdersAction']) ? $context['DeletedOrdersAction'] : null) == "purge") {
                echo "checked=\"checked\"";
            }
            echo " /> ";
            echo getLang("DeletedOrdersAction_Purge");
            echo "</label><br />
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t";
        }
        // line 1855
        echo "\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span> <label for=\"StartingOrderNumber\">";
        // line 1858
        echo getLang("StartingOrderNumber");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input id=\"StartingOrderNumber\" name=\"StartingOrderNumber\" value=\"";
        // line 1861
        echo twig_safe_filter((isset($context['StartingOrderNumber']) ? $context['StartingOrderNumber'] : null));
        echo "\" type=\"text\" class=\"Field70\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('hStartingOrderNumber');\" onmouseover=\"ShowHelp('hStartingOrderNumber', '";
        // line 1862
        echo getLang("StartingOrderNumber");
        echo "', '";
        echo getLang("StartingOrderNumberHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"hStartingOrderNumber\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">&nbsp;</span> <label for=\"AbandonOrderLifetime\">";
        // line 1868
        echo getLang("AbandonOrderLifetime");
        echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"AbandonOrderLifetime\" id=\"AbandonOrderLifetime\" class=\"Field70\">
\t\t\t\t\t\t\t\t";
        // line 1872
        echo twig_safe_filter((isset($context['AbandonOrderLifetimeOptions']) ? $context['AbandonOrderLifetimeOptions'] : null));
        echo "
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('hAbandonOrder');\" onmouseover=\"ShowHelp('hAbandonOrder', '";
        // line 1874
        echo getLang("AbandonOrderLifetime");
        echo "', '";
        echo getLang("AbandonOrderLifetimeHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"hAbandonOrder\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t";
        // line 1879
        if ((isset($context['ShowPCISettings']) ? $context['ShowPCISettings'] : null)) {
            echo "\t\t\t\t<br />
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
            // line 1883
            echo getLang("PCISettingsPanel");
            echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<label for=\"PCIPasswordMinLen\">";
            // line 1887
            echo getLang("PCIPasswordMinLen");
            echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input id=\"PCIPasswordMinLen\" name=\"PCIPasswordMinLen\" value=\"";
            // line 1890
            echo twig_safe_filter((isset($context['PCIPasswordMinLen']) ? $context['PCIPasswordMinLen'] : null));
            echo "\" type=\"text\" class=\"Field40\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('hPCIPasswordMinLen');\" onmouseover=\"ShowHelp('hPCIPasswordMinLen', '";
            // line 1891
            echo getLang("PCIPasswordMinLen");
            echo "', '";
            echo getLang("PCIPasswordMinLenHelp");
            echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"hPCIPasswordMinLen\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<label for=\"PCIPasswordHistoryCount\">";
            // line 1897
            echo getLang("PCIPasswordHistoryCount");
            echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input id=\"PCIPasswordHistoryCount\" name=\"PCIPasswordHistoryCount\" value=\"";
            // line 1900
            echo twig_safe_filter((isset($context['PCIPasswordHistoryCount']) ? $context['PCIPasswordHistoryCount'] : null));
            echo "\" type=\"text\" class=\"Field40\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('hPCIPasswordHistoryCount');\" onmouseover=\"ShowHelp('hPCIPasswordHistoryCount', '";
            // line 1901
            echo getLang("PCIPasswordHistoryCount");
            echo "', '";
            echo getLang("PCIPasswordHistoryCountHelp");
            echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"hPCIPasswordHistoryCount\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<label for=\"PCIPasswordExpiryTimeDay\">";
            // line 1907
            echo getLang("PCIPasswordExpiryTimeDay");
            echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input id=\"PCIPasswordExpiryTimeDay\" name=\"PCIPasswordExpiryTimeDay\" value=\"";
            // line 1910
            echo twig_safe_filter((isset($context['PCIPasswordExpiryTimeDay']) ? $context['PCIPasswordExpiryTimeDay'] : null));
            echo "\" type=\"text\" class=\"Field40\" /> days
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('hPCIPasswordExpiryTimeDay');\" onmouseover=\"ShowHelp('hPCIPasswordExpiryTimeDay', '";
            // line 1911
            echo getLang("PCIPasswordExpiryTimeDay");
            echo "', '";
            echo getLang("PCIPasswordExpiryTimeDayHelp");
            echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"hPCIPasswordExpiryTimeDay\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<label for=\"PCILoginAttemptCount\">";
            // line 1917
            echo getLang("PCILoginAttemptCount");
            echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input id=\"PCILoginAttemptCount\" name=\"PCILoginAttemptCount\" value=\"";
            // line 1920
            echo twig_safe_filter((isset($context['PCILoginAttemptCount']) ? $context['PCILoginAttemptCount'] : null));
            echo "\" type=\"text\" class=\"Field40\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('hPCILoginAttemptCount');\" onmouseover=\"ShowHelp('hPCILoginAttemptCount', '";
            // line 1921
            echo getLang("PCILoginAttemptCount");
            echo "', '";
            echo getLang("PCILoginAttemptCountHelp");
            echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"hPCILoginAttemptCount\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<label for=\"PCILoginLockoutTimeMin\">";
            // line 1927
            echo getLang("PCILoginLockoutTimeMin");
            echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input id=\"PCILoginLockoutTimeMin\" name=\"PCILoginLockoutTimeMin\" value=\"";
            // line 1930
            echo twig_safe_filter((isset($context['PCILoginLockoutTimeMin']) ? $context['PCILoginLockoutTimeMin'] : null));
            echo "\" type=\"text\" class=\"Field40\" /> minutes
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<label for=\"PCILoginIdleTimeMin\">";
            // line 1935
            echo getLang("PCILoginIdleTimeMin");
            echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input id=\"PCILoginIdleTimeMin\" name=\"PCILoginIdleTimeMin\" value=\"";
            // line 1938
            echo twig_safe_filter((isset($context['PCILoginIdleTimeMin']) ? $context['PCILoginIdleTimeMin'] : null));
            echo "\" type=\"text\" class=\"Field40\" /> minutes
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('hPCILoginIdleTimeMin');\" onmouseover=\"ShowHelp('hPCILoginIdleTimeMin', '";
            // line 1939
            echo getLang("PCILoginIdleTimeMin");
            echo "', '";
            echo getLang("PCILoginIdleTimeMinHelp");
            echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"hPCILoginIdleTimeMin\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<label for=\"PCILoginInactiveTimeDay\">";
            // line 1945
            echo getLang("PCILoginInactiveTimeDay");
            echo ":</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input id=\"PCILoginInactiveTimeDay\" name=\"PCILoginInactiveTimeDay\" value=\"";
            // line 1948
            echo twig_safe_filter((isset($context['PCILoginInactiveTimeDay']) ? $context['PCILoginInactiveTimeDay'] : null));
            echo "\" type=\"text\" class=\"Field40\" /> days
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('hPCILoginInactiveTimeDay');\" onmouseover=\"ShowHelp('hPCILoginInactiveTimeDay', '";
            // line 1949
            echo getLang("PCILoginInactiveTimeDay");
            echo "', '";
            echo getLang("PCILoginInactiveTimeDayHelp");
            echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"hPCILoginInactiveTimeDay\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t";
        }
        // line 1954
        echo "\t\t\t</div>

\t\t\t<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" width=\"100%\" class=\"PanelPlain\">
\t\t\t\t<tr>
\t\t\t\t\t<td width=\"200\" class=\"FieldLabel\">
\t\t\t\t\t\t&nbsp;
\t\t\t\t\t</td>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"submit\" disabled=\"disabled\" value=\"";
        // line 1963
        echo getLang("Save");
        echo "\" class=\"FormButton\" />
\t\t\t\t\t\t<input type=\"reset\" value=\"";
        // line 1964
        echo getLang("Cancel");
        echo "\" class=\"FormButton\" onclick=\"ConfirmCancel()\" />
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t</table>

\t</tr>
\t</table>
\t</div>
\t</form>
\t<div id=\"stmpTestModal\" style=\"display: none;\">
\t\t<div class=\"ModalTitle\">";
        // line 1974
        echo getLang("TestSMTPSettings");
        echo "</div>
\t\t<div class=\"ModalContent\" style=\"padding:5px;\">
\t\t\t<div>
\t\t\t\t<div style=\"width: 208px; padding: 0px; margin: 10px auto 10px auto; position: relative; background: url('images/loadingAnimation.gif') no-repeat;\">
\t\t\t\t\t<div id=\"ProgressBarPercentage\" style=\"margin: 0; padding: 0; height: 13px; width: 0%; background: url('images/progressbar.gif') no-repeat; background-color: transparent;\">
\t\t\t\t\t\t&nbsp;
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div style=\"text-align: center; height: 20px;\" id=\"ProgressNote\">";
        // line 1983
        echo getLang("TestSMTPSettingsNote");
        echo "</div>
\t\t</div>
\t</div>
<script type=\"text/javascript\" src=\"script/product.images.reprocess.js?";
        // line 1986
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\">

\tProcessProductImages.lang['ModalTitle'] = '";
        // line 1989
        echo getLang("ProcessImagesModalTitle");
        echo "';
\tProcessProductImages.lang['ProcessProgress'] = '";
        // line 1990
        echo getLang("ProcessImagesProgress");
        echo "';
\tProcessProductImages.lang['ProcessFinished'] = '";
        // line 1991
        echo getLang("ProcessImagesFinished");
        echo "';

\tlang['ProductImagesStorewideThumbnailWidthInvalidValue']\t= '";
        // line 1993
        echo getLang("ProductImagesStorewideThumbnailWidthInvalidValue");
        echo "';
\tlang['ProductImagesStorewideThumbnailHeightInvalidValue'] = '";
        // line 1994
        echo getLang("ProductImagesStorewideThumbnailHeightInvalidValue");
        echo "';
\tlang['ProductImagesProductPageImageWidthInvalidValue']\t= '";
        // line 1995
        echo getLang("ProductImagesProductPageImageWidthInvalidValue");
        echo "';
\tlang['ProductImagesProductPageImageHeightInvalidValue']\t= '";
        // line 1996
        echo getLang("ProductImagesProductPageImageHeightInvalidValue");
        echo "';
\tlang['ProductImagesGalleryThumbnailWidthInvalidValue']\t= '";
        // line 1997
        echo getLang("ProductImagesGalleryThumbnailWidthInvalidValue");
        echo "';
\tlang['ProductImagesGalleryThumbnailHeightInvalidValue']\t= '";
        // line 1998
        echo getLang("ProductImagesGalleryThumbnailHeightInvalidValue");
        echo "';
\tlang['ProductImagesZoomImageWidthInvalidValue']\t= '";
        // line 1999
        echo getLang("ProductImagesZoomImageWidthInvalidValue");
        echo "';
\tlang['ProductImagesZoomImageHeightInvalidValue']\t= '";
        // line 2000
        echo getLang("ProductImagesZoomImageHeightInvalidValue");
        echo "';

\t\$(document).ready(function() {
\t\t\$('#ReprocessImages').bind('click', ProcessProductImages.launch);
\t});

\tfunction ShowTab(T) {
\t\ti = 0;
\t\twhile (document.getElementById(\"tab\" + i) != null) {
\t\t\tdocument.getElementById(\"div\" + i).style.display = \"none\";
\t\t\tdocument.getElementById(\"tab\" + i).className = \"\";
\t\t\ti++;
\t\t}

\t\tdocument.getElementById(\"div\" + T).style.display = \"\";
\t\tdocument.getElementById(\"tab\" + T).className = \"active\";

\t\tdocument.getElementById(\"currentTab\").value = T;
\t}

\tfunction ToggleDefaultProductImage()
\t{
\t\tif(\$('.DefaultProductImage:checked').val() == 'custom') {
\t\t\t\$('#DefaultProductImageCustomContainer').show();
\t\t}
\t\telse {
\t\t\t\$('#DefaultProductImageCustomContainer').hide();
\t\t}
\t}

\tfunction ToggleSystemLogging() {
\t\tvar siblings = \$('.SystemLoggingToggle');
\t\tif(g('EnableSystemLogging').checked) {
\t\t\tsiblings.show();
\t\t}
\t\telse {
\t\t\tsiblings.hide();
\t\t}
\t}
\tToggleSystemLogging();

\tfunction ToggleAdministratorLogging() {
\t\tvar siblings = \$('.AdministratorLoggingToggle');
\t\tif(g('EnableAdministratorLogging').checked) {
\t\t\tsiblings.show();
\t\t}
\t\telse {
\t\t\tsiblings.hide();
\t\t}
\t}
\tToggleAdministratorLogging();

\tfunction ConfirmCancel()
\t{
\t\tif(confirm(\"";
        // line 2054
        echo getLang("ConfirmCancelSettings");
        echo "\"))
\t\t\tdocument.location.href = \"index.php?ToDo=viewSettings\";
\t}

\t\$('#frmSettings').submit(function() {
\t\tvar StoreName = g(\"StoreName\");
\t\tvar StoreAddress = g(\"StoreAddress\");
\t\tvar SSL = g(\"SSL\");
\t\tvar SharedSSL = g(\"UseSharedSSL\");
\t\tvar SharedSSLPath = g(\"SharedSSLPath\");
\t\tvar SubdomainSSL = g(\"UseSubdomainSSL\");
\t\tvar SubdomainSSLPath = g(\"SubdomainSSLPath\");
\t\tvar ShopPath = g(\"ShopPath\");
\t\tvar CharacterSet = g(\"CharacterSet\");
\t\tvar MetaKeywords = g(\"MetaKeywords\");
\t\tvar MetaDesc = g(\"MetaDesc\");
\t\tvar DownloadDirectory = g(\"DownloadDirectory\");
\t\tvar ImageDirectory = g(\"ImageDirectory\");
\t\tvar serverStamp = g(\"serverStamp\");
\t\tvar AdminEmail = g(\"AdminEmail\");
\t\tvar OrderEmail = g(\"OrderEmail\");
\t\tvar DefaultTaxRate = g(\"DefaultTaxRate\");
\t\tvar WeightMeasurement = g(\"WeightMeasurement\");
\t\tvar LengthMeasurement = g(\"LengthMeasurement\");
\t\tvar DisplayDateFormat = g(\"DisplayDateFormat\");
\t\tvar ExportDateFormat = g(\"ExportDateFormat\");
\t\tvar ExtendedDisplayDateFormat = g(\"ExtendedDisplayDateFormat\");
\t\tvar CategoryPerRow = g(\"CategoryPerRow\");
\t\tvar CategoryImageWidth = g(\"CategoryImageWidth\");
\t\tvar CategoryImageHeight = g(\"CategoryImageHeight\");
\t\tvar CategoryDefaultImage = g(\"CategoryDefaultImage\");
\t\tvar BrandPerRow = g(\"BrandPerRow\");
\t\tvar BrandImageWidth = g(\"BrandImageWidth\");
\t\tvar BrandImageHeight = g(\"BrandImageHeight\");
\t\tvar BrandDefaultImage = g(\"BrandDefaultImage\");
\t\tvar HomeFeaturedProducts = g(\"HomeFeaturedProducts\");
\t\tvar HomeNewProducts = g(\"HomeNewProducts\");
\t\tvar HomeBlogPosts = g(\"HomeBlogPosts\");
\t\tvar CategoryProductsPerPage = g(\"CategoryProductsPerPage\");
\t\tvar CategoryListDepth = g(\"CategoryListDepth\");
\t\tvar ProductReviewsPerPage = g(\"ProductReviewsPerPage\");
\t\tvar TagCartQuantityBoxes = g(\"TagCartQuantityBoxes\");
\t\tvar TagCloudsEnabled = g(\"TagCloudsEnabled\");
\t\tvar ShowAddToCartQtyBox = g(\"ShowAddToCartQtyBox\");
\t\tvar CaptchaEnabled = g(\"CaptchaEnabled\");
\t\tvar ShowThumbsInCart = g(\"ShowThumbsInCart\");
\t\tvar ShowCartSuggestions = g(\"ShowCartSuggestions\");
\t\tvar AutoApproveReviews = g(\"AutoApproveReviews\");
\t\tvar RSSItemsLimit = g(\"RSSItemsLimit\");
\t\tvar RSSCacheTime = g(\"RSSCacheTime\");
\t\tvar HighestOrderNumber = parseInt('";
        // line 2104
        echo twig_safe_filter((isset($context['HighestOrderNumber']) ? $context['HighestOrderNumber'] : null));
        echo "');

\t\tif(StoreName.value == \"\") {
\t\t\tShowTab(0);
\t\t\talert(\"";
        // line 2108
        echo getLang("EnterStoreName");
        echo "\");
\t\t\tStoreName.focus();
\t\t\treturn false;
\t\t}

\t\tif(StoreAddress.value == \"\") {
\t\t\tShowTab(0);
\t\t\talert(\"";
        // line 2115
        echo getLang("EnterStoreAddress");
        echo "\");
\t\t\tStoreAddress.focus();
\t\t\treturn false;
\t\t}

\t\tif (SharedSSL.checked) {
\t\t\tif (SharedSSLPath.value == \"\" | SharedSSLPath.value == \"http://\") {
\t\t\t\tShowTab(0);
\t\t\t\talert(\"";
        // line 2123
        echo getLang("EnterSharedSSL");
        echo "\");
\t\t\t\tSharedSSLPath.focus();
\t\t\t\tSharedSSLPath.select();
\t\t\t\treturn false;
\t\t\t}
\t\t}
\t\telse if (SubdomainSSL.checked) {
\t\t\tif (SubdomainSSLPath.value == \"\" | SubdomainSSLPath.value == \"http://\") {
\t\t\t\tShowTab(0);
\t\t\t\talert(\"";
        // line 2132
        echo getLang("EnterSubdomainSSL");
        echo "\");
\t\t\t\tSubdomainSSLPath.focus();
\t\t\t\tSubdomainSSLPath.select();
\t\t\t\treturn false;
\t\t\t}
\t\t}

\t\tif(!\$(\"#NoSSL\").is(':checked') && \$('#UseControlPanelSSL').is(':checked')) {
\t\t\tif(!checkSSLWorks()) {
\t\t\t\tif(!confirm('";
        // line 2141
        echo getLang("SSLNotWorking");
        echo "')) {
\t\t\t\t\tShowTab(0);
\t\t\t\t\treturn false;
\t\t\t\t}
\t\t\t}
\t\t}

\t\tif(ShopPath.value == \"\" || ShopPath.value == \"http://\") {
\t\t\tShowTab(0);
\t\t\talert(\"";
        // line 2150
        echo getLang("EnterShopPath");
        echo "\");
\t\t\tShopPath.focus();
\t\t\tShopPath.select();
\t\t\treturn false;
\t\t}

\t\tif('";
        // line 2156
        echo twig_escape_filter($this->env, (isset($context['CharacterSet']) ? $context['CharacterSet'] : null), "1");
        echo "' != \$('#CharacterSet').val()) {
\t\t\tvar confirmMsg = '";
        // line 2157
        echo Interspire_Template_Extension::jsFilter(getLang("ConfirmChangeCharacterSet"), "'");
        echo "';

\t\t\tif('";
        // line 2159
        echo twig_escape_filter($this->env, (isset($context['CharacterSet']) ? $context['CharacterSet'] : null), "1");
        echo "' == 'UTF-8') {
\t\t\t\tconfirmMsg = '";
        // line 2160
        echo Interspire_Template_Extension::jsFilter(getLang("ConfirmChangeCharacterSetUTF8"), "'");
        echo "';
\t\t\t}

\t\t\tif(!confirm(confirmMsg)) {
\t\t\t\tShowTab(0);
\t\t\t\t\$('#CharacterSet').focus();
\t\t\t\treturn false;
\t\t\t}
\t\t}

\t\tif(\$('#StartingOrderNumber').val() <= HighestOrderNumber) {
\t\t\tShowTab(7);
\t\t\tvar tooLowLang = '";
        // line 2172
        echo getLang("StartingOrderNumberTooLow");
        echo "';
\t\t\ttooLowLang = tooLowLang.replace(':currentHighest', HighestOrderNumber);
\t\t\ttooLowLang = tooLowLang.replace(':lowestPossible', (HighestOrderNumber+1));
\t\t\talert(tooLowLang);
\t\t\t\$('#StartingOrderNumber').focus();
\t\t\treturn false;
\t\t}

\t\tif(DownloadDirectory.value == \"\") {
\t\t\tShowTab(0);
\t\t\talert(\"";
        // line 2182
        echo getLang("EnterDownloadDirectory");
        echo "\");
\t\t\tDownloadDirectory.focus();
\t\t\treturn false;
\t\t}

\t\tif(ImageDirectory.value == \"\") {
\t\t\tShowTab(0);
\t\t\talert(\"";
        // line 2189
        echo getLang("EnterImageDirectory");
        echo "\");
\t\t\tImageDirectory.focus();
\t\t\treturn false;
\t\t}

\t\tif(serverStamp.value == \"\") {
\t\t\tShowTab(0);
\t\t\talert(\"";
        // line 2196
        echo getLang("EnterLicenseKey");
        echo "\");
\t\t\tserverStamp.focus();
\t\t\treturn false;
\t\t}

\t\tif(AdminEmail.value.indexOf(\"@\") == -1 || AdminEmail.value.indexOf(\".\") == -1) {
\t\t\tShowTab(0);
\t\t\talert(\"";
        // line 2203
        echo getLang("EnterValidAdminEmail");
        echo "\");
\t\t\tAdminEmail.focus();
\t\t\tAdminEmail.select();
\t\t\treturn false;
\t\t}

\t\tif (!ValidateSMTPSettings()) {
\t\t\treturn false;
\t\t} else {
\t\t\tif (smtpChecked == false) {
\t\t\t\tTestSMTPMailSettings(function() {
\t\t\t\t\t// submit again if test is successful
\t\t\t\t\t\$('#frmSettings').submit();
\t\t\t\t});
\t\t\t\treturn false;
\t\t\t}
\t\t}

\t\tif(OrderEmail.value.indexOf(\"@\") == -1 || OrderEmail.value.indexOf(\".\") == -1) {
\t\t\tShowTab(0);
\t\t\talert(\"";
        // line 2223
        echo getLang("EnterValidOrderEmail");
        echo "\");
\t\t\tOrderEmail.focus();
\t\t\tOrderEmail.select();
\t\t\treturn false;
\t\t}

\t\tif(!\$('#DimensionsDecimalToken').val()) {
\t\t\talert('";
        // line 2230
        echo getLang("EnterDecimalToken");
        echo "');
\t\t\t\$('#DimensionsDecimalToken').focus();
\t\t\t\$('#DimensionsDecimalToken').select();
\t\t\treturn false;
\t\t}

\t\tif(!\$('#DimensionsThousandsToken').val()) {
\t\t\talert('";
        // line 2237
        echo getLang("EnterThousandsToken");
        echo "');
\t\t\t\$('#DimensionsThousandsToken').focus();
\t\t\t\$('#DimensionsThousandsToken').select();
\t\t\treturn false;
\t\t}

\t\tif(!\$('#DimensionsDecimalPlaces').val() || isNaN(\$('#DimensionsDecimalPlaces').val())) {
\t\t\talert('";
        // line 2244
        echo getLang("EnterDecimalPlaces");
        echo "');
\t\t\t\$('#DimensionsDecimalPlaces').focus();
\t\t\t\$('#DimensionsDecimalPlaces').select();
\t\t\treturn false;
\t\t}

\t\tif(DisplayDateFormat.value == \"\") {
\t\t\tShowTab(1);
\t\t\talert(\"";
        // line 2252
        echo getLang("EnterDisplayDateFormat");
        echo "\");
\t\t\tDisplayDateFormat.focus();
\t\t\treturn false;
\t\t}

\t\tif(ExportDateFormat.value == \"\") {
\t\t\tShowTab(1);
\t\t\talert(\"";
        // line 2259
        echo getLang("EnterExportDateFormat");
        echo "\");
\t\t\tExportDateFormat.focus();
\t\t\treturn false;
\t\t}

\t\tif(ExtendedDisplayDateFormat.value == \"\") {
\t\t\tShowTab(1);
\t\t\talert(\"";
        // line 2266
        echo getLang("EnterExtendedDisplayDateFormat");
        echo "\");
\t\t\tExtendedDisplayDateFormat.focus();
\t\t\treturn false;
\t\t}

\t\tif(isNaN(HomeFeaturedProducts.value) || HomeFeaturedProducts.value == \"\") {
\t\t\tShowTab(2);
\t\t\talert(\"";
        // line 2273
        echo getLang("EnterHomeFeaturedProducts");
        echo "\");
\t\t\tHomeFeaturedProducts.focus();
\t\t\tHomeFeaturedProducts.select();
\t\t\treturn false;
\t\t}

\t\tif(isNaN(HomeNewProducts.value) || HomeNewProducts.value == \"\") {
\t\t\tShowTab(2);
\t\t\talert(\"";
        // line 2281
        echo getLang("EnterHomeNewProducts");
        echo "\");
\t\t\tHomeNewProducts.focus();
\t\t\tHomeNewProducts.select();
\t\t\treturn false;
\t\t}

\t\tif(isNaN(HomeBlogPosts.value) || HomeBlogPosts.value == \"\") {
\t\t\tShowTab(2);
\t\t\talert(\"";
        // line 2289
        echo getLang("EnterHomeBlogPosts");
        echo "\");
\t\t\tHomeBlogPosts.focus();
\t\t\tHomeBlogPosts.select();
\t\t\treturn false;
\t\t}

\t\tif(\$('.DefaultProductImage:checked').val() == 'custom') {
\t\t\tif((\$('#DefaultProductImageCustomCurrent').css('display') == 'none' || \$('#DefaultProductImageCustom').val()) && !IsValidImageExtension(\$('#DefaultProductImageCustom').val())) {
\t\t\t\tShowTab(2);
\t\t\t\talert('";
        // line 2298
        echo getLang("ChooseDefaultProductImageUpload");
        echo "');
\t\t\t\t\$('#DefaultProductImageCustom').focus();
\t\t\t\treturn false;
\t\t\t}
\t\t}

\t\tif(isNaN(CategoryProductsPerPage.value) || CategoryProductsPerPage.value == \"\") {
\t\t\tShowTab(2);
\t\t\talert(\"";
        // line 2306
        echo getLang("EnterCategoryProductsPerPage");
        echo "\");
\t\t\tCategoryProductsPerPage.focus();
\t\t\tCategoryProductsPerPage.select();
\t\t\treturn false;
\t\t}

\t\tif(isNaN(CategoryListDepth.value) || CategoryListDepth.value == \"\" || CategoryListDepth.value<=0) {
\t\t\tShowTab(2);
\t\t\talert(\"";
        // line 2314
        echo getLang("EnterCategoryListDepth");
        echo "\");
\t\t\tCategoryListDepth.focus();
\t\t\tCategoryListDepth.select();
\t\t\treturn false;
\t\t}

\t\tif(isNaN(ProductReviewsPerPage.value) || ProductReviewsPerPage.value == \"\") {
\t\t\tShowTab(2);
\t\t\talert(\"";
        // line 2322
        echo getLang("EnterProductReviewsPerPage");
        echo "\");
\t\t\tProductReviewsPerPage.focus();
\t\t\tProductReviewsPerPage.select();
\t\t\treturn false;
\t\t}

\t\tif(isNaN(CategoryPerRow.value) || CategoryPerRow.value == \"\" || CategoryPerRow.value <= 0) {
\t\t\tShowTab(2);
\t\t\talert(\"";
        // line 2330
        echo getLang("EnterCategoryPerRow");
        echo "\");
\t\t\tCategoryPerRow.focus();
\t\t\tCategoryPerRow.select();
\t\t\treturn false;
\t\t}

\t\tif(isNaN(BrandPerRow.value) || BrandPerRow.value == \"\" || BrandPerRow.value <= 0) {
\t\t\tShowTab(2);
\t\t\talert(\"";
        // line 2338
        echo getLang("EnterBrandPerRow");
        echo "\");
\t\t\tBrandPerRow.focus();
\t\t\tBrandPerRow.select();
\t\t\treturn false;
\t\t}

\t\tif(isNaN(CategoryImageWidth.value) || CategoryImageWidth.value == \"\") {
\t\t\tShowTab(2);
\t\t\talert(\"";
        // line 2346
        echo getLang("EnterCategoryImageWidth");
        echo "\");
\t\t\tCategoryImageWidth.focus();
\t\t\tCategoryImageWidth.select();
\t\t\treturn false;
\t\t}

\t\tif(isNaN(CategoryImageHeight.value) || CategoryImageHeight.value == \"\") {
\t\t\tShowTab(2);
\t\t\talert(\"";
        // line 2354
        echo getLang("EnterCategoryImageHeight");
        echo "\");
\t\t\tCategoryImageHeight.focus();
\t\t\tCategoryImageHeight.select();
\t\t\treturn false;
\t\t}

\t\tif(isNaN(BrandImageWidth.value) || BrandImageWidth.value == \"\") {
\t\t\tShowTab(2);
\t\t\talert(\"";
        // line 2362
        echo getLang("EnterBrandImageWidth");
        echo "\");
\t\t\tBrandImageWidth.focus();
\t\t\tBrandImageWidth.select();
\t\t\treturn false;
\t\t}

\t\tif(isNaN(BrandImageHeight.value) || BrandImageHeight.value == \"\") {
\t\t\tShowTab(2);
\t\t\talert(\"";
        // line 2370
        echo getLang("EnterBrandImageHeight");
        echo "\");
\t\t\tBrandImageHeight.focus();
\t\t\tBrandImageHeight.select();
\t\t\treturn false;
\t\t}

\t\tif(CategoryDefaultImage.value != \"\") {
\t\t\t// Make sure it has a valid extension
\t\t\timg = CategoryDefaultImage.value.split(\".\");
\t\t\text = img[img.length-1].toLowerCase();

\t\t\tif(ext != \"jpg\" && ext != \"png\" && ext != \"gif\") {
\t\t\t\tShowTab(2);
\t\t\t\talert(\"";
        // line 2383
        echo getLang("ChooseValidImage");
        echo "\");
\t\t\t\tCategoryDefaultImage.focus();
\t\t\t\tCategoryDefaultImage.select();
\t\t\t\treturn false;
\t\t\t}
\t\t}

\t\tif(BrandDefaultImage.value != \"\") {
\t\t\t// Make sure it has a valid extension
\t\t\timg = BrandDefaultImage.value.split(\".\");
\t\t\text = img[img.length-1].toLowerCase();

\t\t\tif(ext != \"jpg\" && ext != \"png\" && ext != \"gif\") {
\t\t\t\tShowTab(2);
\t\t\t\talert(\"";
        // line 2397
        echo getLang("ChooseValidImage");
        echo "\");
\t\t\t\tBrandDefaultImage.focus();
\t\t\t\tBrandDefaultImage.select();
\t\t\t\treturn false;
\t\t\t}
\t\t}

\t\tif (\$('#FacebookLikeButtonEnabled').attr('checked') && !\$('#FacebookLikeButtonAdminIds').val()) {
\t\t\t// no admin id entered for facebook
\t\t\tShowTab(2);
\t\t\talert(\"";
        // line 2407
        echo Interspire_Template_Extension::jsFilter(getLang("FacebookAdminIdsRequired"), "'");
        echo "\");
\t\t\t\$('#FacebookLikeButtonAdminIds').focus();
\t\t\treturn false;
\t\t}

\t\t// check image sizes
\t\tvar imageSizeChanges = false;
\t\tvar imageValueProblem  = false;

\t\t\$('.SetOriginalImageSizeValue').each(function() {
\t\t\tif(isNaN(\$(this).val()) || \$(this).val() == '') {

\t\t\t\timageValueProblem = true;

\t\t\t\tvar LanguageVariableKey = \$(this).attr('id') + 'InvalidValue';
\t\t\t\tLanguageVariableKey = LanguageVariableKey.replace('_height', 'Height');
\t\t\t\tLanguageVariableKey = LanguageVariableKey.replace('_width', 'Width');

\t\t\t\tvar alertMsg = lang[LanguageVariableKey];

\t\t\t\tif(\$(this).val().indexOf('%') != -1 || \$(this).val().indexOf('px') != -1) {
\t\t\t\t\talertMsg += '";
        // line 2428
        echo getLang("EnterNumberForImageSizesMeasurements");
        echo "';
\t\t\t\t}

\t\t\t\tShowTab(8);
\t\t\t\talert(alertMsg);

\t\t\t\t\$(this).focus();
\t\t\t\t\$(this).select();

\t\t\t\treturn false;
\t\t\t}
\t\t});

\t\tif(imageValueProblem) {
\t\t\treturn false;
\t\t}

\t\t\$('.SetOriginalImageSizeValue').each(function() {
\t\t\tif(\$(this).val() != \$.data(this, \"origValue\")) {
\t\t\t\timageSizeChanges = true;
\t\t\t\treturn;
\t\t\t}
\t\t});

\t\tif(imageSizeChanges){
\t\t\tif(confirm('";
        // line 2453
        echo getLang("ShouldImagesBeResized");
        echo "')) {
\t\t\t\t\$('#AutoResizeImages').val('yes');
\t\t\t}
\t\t}

\t\tif(isNaN(\$('#TagCloudMinSize').val()) || \$('#TagCloudMinSize').val() == '') {
\t\t\tShowTab(2);
\t\t\talert('";
        // line 2460
        echo getLang("EnterTagCloudMinSize");
        echo "');
\t\t\t\$('#TagCloudMinSize').focus();
\t\t\t\$('#TagCloudMinSize').select();
\t\t\treturn false;
\t\t}

\t\tif(isNaN(\$('#TagCloudMaxSize').val()) || \$('#TagCloudMaxSize').val() == '') {
\t\t\tShowTab(2);
\t\t\talert('";
        // line 2468
        echo getLang("EnterTagCloudMaxSize");
        echo "');
\t\t\t\$('#TagCloudMaxSize').focus();
\t\t\t\$('#TagCloudMaxSize').select();
\t\t\treturn false;
\t\t}

\t\tif(isNaN(RSSItemsLimit.value) || RSSItemsLimit.value == \"\") {
\t\t\tShowTab(2);
\t\t\talert(\"";
        // line 2476
        echo getLang("EnterRSSItemsLimit");
        echo "\");
\t\t\tRSSItemsLimit.focus();
\t\t\tRSSItemsLimit.select();
\t\t\treturn false;
\t\t}

\t\tif(isNaN(RSSCacheTime.value)) {
\t\t\tShowTab(2);
\t\t\talert(\"";
        // line 2484
        echo getLang("EnterValidRSSCacheTime");
        echo "\");
\t\t\tRSSCacheTime.focus();
\t\t\tRSSCacheTime.select();
\t\t\treturn false;
\t\t}

\t\tif(ValidateFTPSettings() == false)
\t\t{
\t\t\treturn false;
\t\t}

\t\tif(\$(\"#BackupsAutomatic:checked\").val() && !\$(\"#BackupsAutomaticDatabase:checked\").val() && !\$(\"#BackupsAutomaticImages:checked\").val() && !\$(\"#BackupsAutomaticDownloads:checked\").val()) {
\t\t\talert(\"";
        // line 2496
        echo getLang("AtLeastOnAutomaticBackup");
        echo "\");
\t\t\treturn false;
\t\t}

\t\tif(!\$(\"#SearchResultsPerPage\").val() || isNaN(\$(\"#SearchResultsPerPage\").val())) {
\t\t\tShowTab(4);
\t\t\talert(\"";
        // line 2502
        echo getLang("EnterSearchResultsPerPage");
        echo "\");
\t\t\t\$(\"#SearchResultsPerPage\").focus();
\t\t\t\$(\"#SearchResultsPerPage\").select();
\t\t\treturn false;
\t\t}

\t\tif(\$('#tab5').css('display') != 'none') {
\t\t\tif(g('EnableSystemLogging').checked == true) {
\t\t\t\tvar f = g('SystemLogTypes');
\t\t\t\tif(f.selectedIndex == -1) {
\t\t\t\t\tShowTab(5);
\t\t\t\t\talert('";
        // line 2513
        echo getLang("SelectOneMoreLoggingTypes");
        echo "');
\t\t\t\t\tg('SystemLogTypes').focus();
\t\t\t\t\treturn false;
\t\t\t\t}
\t\t\t\tvar f = g('SystemLogSeverity');
\t\t\t\tif(f.selectedIndex == -1) {
\t\t\t\t\tShowTab(5);
\t\t\t\t\talert('";
        // line 2520
        echo getLang("SelectOneMoreLoggingSeverities");
        echo "');
\t\t\t\t\tg('SystemLogSeverity').focus();
\t\t\t\t\treturn false;
\t\t\t\t}
\t\t\t\tif(isNaN(g('SystemLogMaxLength').value) && g('SystemLogMaxLength').value != '') {
\t\t\t\t\tShowTab(5);
\t\t\t\t\talert('";
        // line 2526
        echo getLang("EnterValidSystemLogLength");
        echo "');
\t\t\t\t\tg('SystemLogMaxLength').focus();
\t\t\t\t\tg('SystemLogMaxLength').select();
\t\t\t\t\treturn false;
\t\t\t\t}
\t\t\t}

\t\t\tif(g('EnableAdministratorLogging').checked == true) {
\t\t\t\tif(isNaN(g('AdministratorLogMaxLength').value) && g('AdministratorLogMaxLength').value != '') {
\t\t\t\t\tShowTab(5);
\t\t\t\t\talert('";
        // line 2536
        echo getLang("EnterValidAdministratorLogLength");
        echo "');
\t\t\t\t\tg('AdministratorLogMaxLength').focus();
\t\t\t\t\tg('AdministratorLogMaxLength').select();
\t\t\t\t\treturn false;
\t\t\t\t}
\t\t\t}
\t\t}
\t\tif(\$('#tab6').css('display') != 'none') {
\t\t\tif(\$('#VendorLogoUploading:checked').val()) {
\t\t\t\tif(isNaN(\$('#VendorLogoSizeW').val()) && \$('#VendorLogoSizeW').val() != '') {
\t\t\t\t\talert('";
        // line 2546
        echo getLang("EnterVendorLogoSizeDimensions");
        echo "');
\t\t\t\t\tShowTab(6);
\t\t\t\t\t\$('#VendorLogoSizeW').focus();
\t\t\t\t\t\$('#VendorLogoSizeW').select();
\t\t\t\t\treturn false;
\t\t\t\t}

\t\t\t\tif(isNaN(\$('#VendorLogoSizeH').val()) && \$('#VendorLogoSizeH').val() != '') {
\t\t\t\t\talert('";
        // line 2554
        echo getLang("EnterVendorLogoSizeDimensions");
        echo "');
\t\t\t\t\tShowTab(6);
\t\t\t\t\t\$('#VendorLogoSizeH').focus();
\t\t\t\t\t\$('#VendorLogoSizeH').select();
\t\t\t\t\treturn false;
\t\t\t\t}
\t\t\t}

\t\t\tif(\$('#VendorPhotoUploading:checked').val()) {
\t\t\t\tif(isNaN(\$('#VendorPhotoSizeW').val()) && \$('#VendorPhotoSizeW').val() != '') {
\t\t\t\t\talert('";
        // line 2564
        echo getLang("EnterVendorPhotoSizeDimensions");
        echo "');
\t\t\t\t\tShowTab(6);
\t\t\t\t\t\$('#VendorPhotoSizeW').focus();
\t\t\t\t\t\$('#VendorPhotoSizeW').select();
\t\t\t\t\treturn false;
\t\t\t\t}

\t\t\t\tif(isNaN(\$('#VendorPhotoSizeH').val()) && \$('#VendorPhotoSizeH').val() != '') {
\t\t\t\t\talert('";
        // line 2572
        echo getLang("EnterVendorPhotoSizeDimensions");
        echo "');
\t\t\t\t\tShowTab(6);
\t\t\t\t\t\$('#VendorPhotoSizeH').focus();
\t\t\t\t\t\$('#VendorPhotoSizeH').select();
\t\t\t\t\treturn false;
\t\t\t\t}
\t\t\t}
\t\t}

\t\treturn true;
\t});

\tfunction TestSSL() {
\t\t// See if the site is capable of handling HTTPS requests
\t\tvar https_url = \"";
        // line 2586
        echo twig_safe_filter((isset($context['HTTPSUrl']) ? $context['HTTPSUrl'] : null));
        echo "\";

\t\talert(\"";
        // line 2588
        echo getLang("TestSSLText");
        echo "\");
\t\twindow.open(https_url);
\t}

\tfunction ToggleLocalBackups()
\t{
\t\tif(\$('#BackupsLocal:checked').val()) {
\t\t\t\$('#BackupsAutomaticLocal').attr('disabled', false);
\t\t\tCheckAutomaticBackups();
\t\t}
\t\telse {
\t\t\t\$('#BackupsAutomaticLocal').attr('disabled', true);
\t\t\tCheckAutomaticBackups();
\t\t}
\t}

\tfunction CheckAutomaticBackups()
\t{
\t\tif(!\$('#BackupsLocal:checked').val() && (!\$('#BackupsRemoteFTPContainer:visible') || !\$('#BackupsRemoteFTP:checked').val())) {
\t\t\t\$('#BackupsAutomatic').attr('disabled', true);
\t\t\t\$('#BackupsAutomatic').attr('checked', false);
\t\t\t\$('.BackupsAutomaticContainer').hide();
\t\t}
\t\telse {
\t\t\t\$('#BackupsAutomatic').attr('disabled', false);
\t\t\tToggleAutomaticBackups();
\t\t}
\t}

\tfunction ToggleFTPBackups()
\t{
\t\tif(\$('#BackupsRemoteFTPContainer:visible')) {
\t\t\tif(\$('#BackupsRemoteFTP:checked').val()) {
\t\t\t\t\$('#BackupsRemoteFTPSettings').show();
\t\t\t\t\$('#BackupsAutomaticFTP').attr('disabled', false);
\t\t\t}
\t\t\telse {
\t\t\t\t\$('#BackupsRemoteFTPSettings').hide();
\t\t\t\t\$('#BackupsAutomaticFTP').attr('disabled', true);
\t\t\t\t\$('#BackupsAutomaticMethod').get()[0].selectedIndex = 0;
\t\t\t}
\t\t}
\t\telse {
\t\t\t\$('#BackupsAutomaticFTP').attr('disabled', true);
\t\t\t\$('#BackupsAutomaticMethod').get()[0].selectedIndex = 0;
\t\t}
\t\tCheckAutomaticBackups();
\t}

\tfunction ToggleAutomaticBackups()
\t{
\t\tif(\$('#BackupsAutomatic:checked').val()) {
\t\t\t\$('.BackupsAutomaticContainer').show();
\t\t} else {
\t\t\t\$('.BackupsAutomaticContainer').hide();
\t\t}
\t}

\tToggleLocalBackups();
\tToggleAutomaticBackups();
\tToggleFTPBackups();

\tfunction DoTestFTPSettings() {
\t\tresult = ValidateFTPSettings();
\t\tif(result == false) return false;

\t\tvar host = \$('#BackupsRemoteFTPHost').val();
\t\tvar user = \$('#BackupsRemoteFTPUser').val();
\t\tvar pass = \$('#BackupsRemoteFTPPass').val();
\t\tvar path = \$('#BackupsRemoteFTPPath').val();

\t\t\$('#TestFTPSettings').attr('disabled', true);
\t\t\$('#TestFTPSettings').val('";
        // line 2660
        echo getLang("TestingFTPSettings");
        echo "');
\t\t\$('#TestFTPSettingsLoading').show();

\t\tjQuery.ajax({
\t\t\ttype: 'POST',
\t\t\turl: 'remote.php?w=TestFTPSettings',
\t\t\tdata: 'host='+host+'&user='******'&pass='******'&path='+path,
\t\t\tdataType: 'script',
\t\t\tsuccess: function() {
\t\t\t\t\$('#TestFTPSettings').attr('disabled', false);
\t\t\t\t\$('#TestFTPSettings').val('";
        // line 2670
        echo getLang("TestFTPSettings");
        echo "');
\t\t\t\t\$('#TestFTPSettingsLoading').hide();
\t\t\t}
\t\t});
\t}

\tfunction ValidateFTPSettings()
\t{
\t\tif(\$('#BackupsRemoteFTPContainer:visible') && \$('#BackupsRemoteFTP:checked').val()) {
\t\t\tif(\$('#BackupsRemoteFTPHost').val() == '') {
\t\t\t\tShowTab(3);
\t\t\t\talert('";
        // line 2681
        echo getLang("EnterFTPHostname");
        echo "');
\t\t\t\t\$('#BackupsRemoteFTPHost').focus();
\t\t\t\t\$('#BackupsRemoteFTPHost').select();
\t\t\t\treturn false;
\t\t\t}
\t\t\tif(\$('#BackupsRemoteFTPUser').val() == '') {
\t\t\t\tShowTab(3);
\t\t\t\talert('";
        // line 2688
        echo getLang("EnterFTPUsername");
        echo "');
\t\t\t\t\$('#BackupsRemoteFTPUser').focus();
\t\t\t\t\$('#BackupsRemoteFTPUser').select();
\t\t\t\treturn false;
\t\t\t}
\t\t\tif(\$('#BackupsRemoteFTPPass').val() == '') {
\t\t\t\tShowTab(3);
\t\t\t\talert('";
        // line 2695
        echo getLang("EnterFTPPassword");
        echo "');
\t\t\t\t\$('#BackupsRemoteFTPPass').focus();
\t\t\t\t\$('#BackupsRemoteFTPPass').select();
\t\t\t\treturn false;
\t\t\t}
\t\t}
\t\treturn true;
\t}

\tfunction ToggleMailSettings() {
\t\tif(\$('#MailUseSMTP').attr('checked') == true) {
\t\t\t\$('.SMTPOptions').show();
\t\t}
\t\telse {
\t\t\t\$('.SMTPOptions').hide();
\t\t}
\t}

\tvar smtpChecked = true;
\tvar disableLoadingIndicator;

\tfunction startSMTPTest() {
\t\tif(!ValidateSMTPSettings()) {
\t\t\treturn;
\t\t}

\t\tTestSMTPMailSettings();
\t}

\tfunction TestSMTPMailSettings(callback) {
\t\t\$('#TestSMTPSettings').attr('disabled', true);
\t\t\$('#TestSMTPSettings').val('";
        // line 2726
        echo getLang("TestingSMTPSettings");
        echo "');

\t\tvar email = \$('#AdminEmail').val();
\t\tvar host = \$('#MailSMTPServer').val();
\t\tvar user = \$('#MailSMTPUsername').val();
\t\tvar pass = \$('#MailSMTPPassword').val();
\t\tvar port = \$('#MailSMTPPort').val();

\t\tdisableLoadingIndicator = true;
\t\t\$.iModal({
\t\t\ttype: 'inline',
\t\t\tinline: '#stmpTestModal',
\t\t\twidth: 400,
\t\t\tclose: false
\t\t});

\t\tjQuery.ajax({
\t\t\ttype: 'POST',
\t\t\turl: 'remote.php?w=TestSMTPSettings',
\t\t\tdata: 'AdminEmail='+escape(email)+'&MailSMTPServer='+escape(host)+'&MailSMTPUsername='******'&MailSMTPPassword='******'&MailSMTPPort='+escape(port),
\t\t\tdataType: 'xml',
\t\t\tsuccess: function(xml) {
\t\t\t\t\$.iModal.close();

\t\t\t\t\$('#TestSMTPSettings').attr('disabled', false);
\t\t\t\t\$('#TestSMTPSettings').val('";
        // line 2751
        echo getLang("TestSMTPSettings");
        echo "');
\t\t\t\tvar message = \$('message', xml).text();
\t\t\t\tmessage = message.replace('\\\\n', '\\n');
\t\t\t\tmessage = message.replace('\\\\n', '\\n');
\t\t\t\tif(\$('status', xml).text() == 1) {
\t\t\t\t\tsmtpChecked = true;
\t\t\t\t\tif (callback) {
\t\t\t\t\t\tcallback.call(this);
\t\t\t\t\t} else {
\t\t\t\t\t\talert(message);
\t\t\t\t\t}
\t\t\t\t}
\t\t\t\telse {
\t\t\t\t\t// test failed
\t\t\t\t\tsmtpChecked = false;
\t\t\t\t\tShowTab(0);
\t\t\t\t\t\$('#MailSMTPServer').focus();
\t\t\t\t\talert(message);
\t\t\t\t}

\t\t\t\tdisableLoadingIndicator = false;
\t\t\t}
\t\t});
\t}

\tfunction ValidateSMTPSettings() {
\t\tif(\$('#MailUseSMTP').attr('checked') == true) {
\t\t\tif(!\$('#MailSMTPServer').val()) {
\t\t\t\talert('";
        // line 2779
        echo getLang("EnterSMTPServer");
        echo "');
\t\t\t\t\$('#MailSMTPServer').focus();
\t\t\t\treturn false;
\t\t\t}
\t\t}

\t\treturn true;
\t}

\tvar sslChecked = false;
\tvar sslWorks = false;

\tfunction checkSSLWorks() {
\t\tif(sslChecked) {
\t\t\treturn sslWorks;
\t\t}
\t\tsslChecked = true;
\t\tvar imageLocation = document.location.toString();
\t\timageLocation = imageLocation.replace('http:', 'https:').replace(/index.php(.*)/g, '') + 'images/1x1.gif';

\t\t\$('<img />').load(function () {
\t\t\tsslWorks = true;
\t\t}).error(function () {
\t\t\tsslWorks = false;
\t\t}).attr('src', imageLocation);

\t\treturn sslWorks;
\t}

\t\$('#UseControlPanelSSL').bind('click', function () {
\t\tif(\$(this).is(':checked')) {
\t\t\tcheckSSLWorks();
\t\t}
\t});

\t\$(document).ready(function() {
\t\tShowTab(";
        // line 2815
        echo twig_safe_filter((isset($context['CurrentTab']) ? $context['CurrentTab'] : null));
        echo ");

\t\t\$('input[type=submit]').attr('disabled', '');

\t\tif (\$('#EnableCustomersAlsoViewed:checked').val()) {
\t\t\t\$('.HideIfCustomersAlsoViewedDisabled').show();
\t\t} else {
\t\t\t\$('.HideIfCustomersAlsoViewedDisabled').hide();
\t\t}

\t\tif(\$('#ShowInventory:checked').val()) {
\t\t\t\$('.HideIfShowInventoryDisabled').show();
\t\t}
\t\telse {
\t\t\t\$('.HideIfShowInventoryDisabled').hide();
\t\t}

\t\tToggleDefaultProductImage();
\t\t\$('.DefaultProductImage[type=radio]').click(ToggleDefaultProductImage);

\t\t\$('.SetOriginalImageSizeValue').each(function() {
\t\t\t\$.data(this, \"origValue\", \$(this).val());
\t\t});

\t\t\$(\"input:radio[name='UseSSL']\").click(function() {
\t\t\t\$(\"input:radio[name='UseSSL']\").each(function() {
\t\t\t\tif(\$(this).is(':checked')) {
\t\t\t\t\t\$(this).parent('label').nextAll('.NodeJoin:first').show();
\t\t\t\t}
\t\t\t\telse {
\t\t\t\t\t\$(this).parent('label').nextAll('.NodeJoin:first').hide();
\t\t\t\t}
\t\t\t});

\t\t\tif(\$(\"#NoSSL\").is(':checked')) {
\t\t\t\t\$('#UseControlPanelSSL').attr('disabled', 'disabled').removeAttr('checked');
\t\t\t} else {
\t\t\t\t\$('#UseControlPanelSSL').removeAttr('disabled');
\t\t\t}
\t\t});

\t\t\$(\"input:radio[name='UseSSL']:checked\").trigger('click');

\t\tif('";
        // line 2858
        echo twig_safe_filter((isset($context['RunImageResize']) ? $context['RunImageResize'] : null));
        echo "' == '1') {
\t\t\tProcessProductImages.launch();
\t\t}

\t\tif(\$('#DownForMaintenance').is(':checked')) {
\t\t\t\$('#DownForMaintenanceMessageRow').css('display', '');
\t\t}

\t\t\$('#DownForMaintenance').bind('click', function () {
\t\t\tif(\$(this).is(':checked')) {
\t\t\t\t\$('#DownForMaintenanceMessageRow').css('display', '');
\t\t\t} else {
\t\t\t\t\$('#DownForMaintenanceMessageRow').css('display', 'none');
\t\t\t}
\t\t});

\t\t\$(\"#FacebookLikeButtonEnabled\").change(function() {
\t\t\tif(\$(this).is(':checked')) {
\t\t\t\t\$(this).parent('label').nextAll('.NodeJoin:first').show();
\t\t\t}
\t\t\telse {
\t\t\t\t\$(this).parent('label').nextAll('.NodeJoin:first').hide();
\t\t\t}
\t\t});

\t\t// if any SMTP options has changed, force a test before save
\t\t\$(\".SMTPOptions input:text\").each(function() {
\t\t\t\$(this).bind('change', function() {
\t\t\t\tsmtpChecked = false;
\t\t\t});
\t\t});

\t\t";
        // line 2890
        if ((!$this->getAttribute((isset($context['TPL_CFG']) ? $context['TPL_CFG'] : null), "EnableFlyoutMenuSupport", array(), "any"))) {
            echo "\t\t\t// prevent selection of flyout style if not supported by current temlpate
\t\t\t\$('#CategoryListStyle').change(function(event){
\t\t\t\tif (\$(this).val() == 'flyout') {
\t\t\t\t\talert(\"";
            // line 2894
            echo Interspire_Template_Extension::jsFilter(getLang("CategoryListStyleFlyoutNotSupported"), "'");
            echo "\");
\t\t\t\t\t\$(this).val('static');
\t\t\t\t}
\t\t\t});
\t\t";
        }
        // line 2898
        echo "\t});
</script>
";
    }
    public function display(array $context)
    {
        // line 1
        echo "<link rel=\"stylesheet\" href=\"Styles/tax.settings.css\" type=\"text/css\" charset=\"utf-8\" />
";
        // line 2
        $context['util'] = $this->env->loadTemplate("macros/util.tpl", true);
        // line 3
        $context['formBuilder'] = $this->env->loadTemplate("macros/forms.tpl", true);
        echo "
<div id=\"content\">
\t<h1>";
        // line 6
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "TaxSettings", array(), "any"), "1");
        echo "</h1>
\t<p class=\"intro\">
\t\t";
        // line 8
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "TaxSettingsIntro", array(), "any"), "1");
        echo "
\t</p>

\t";
        // line 11
        echo twig_safe_filter((isset($context['flashMessages']) ? $context['flashMessages'] : null));
        echo "

\t";
        // line 13
        if ((isset($context['pendingChangesToApply']) ? $context['pendingChangesToApply'] : null)) {
            echo "\t\t<p class=\"MessageBox MessageBoxInfo\">";
            // line 14
            echo getLang("ApplyPendingTaxChanges");
            echo "</p>
\t";
        }
        // line 15
        echo "
\t<div id=\"taxSettings\">
\t\t";
        // line 18
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tabs", array(array("generalTab" => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "General", array(), "any"), "taxClassesTab" => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "TaxClasses", array(), "any"), "taxZonesTab" => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "TaxRatesAndZones", array(), "any")), ), "method"), "1");
        // line 22
        echo "

\t\t<div id=\"generalTab\">
\t\t\t<form action=\"index.php\" method=\"post\" accept-charset=\"utf-8\" id=\"taxSettingsForm\">
\t\t\t\t<input type=\"hidden\" name=\"ToDo\" value=\"saveTaxSettings\" />
\t\t\t\t";
        // line 27
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "any"), "1");
        echo "
\t\t\t\t\t";
        // line 28
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ConfigureTaxOptions", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t\t";
        // line 30
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "TaxLabel", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 33
        echo "
\t\t\t\t\t\t";
        // line 34
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "input", array("text", "taxLabel", $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxLabel", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 36
        echo "
\t\t\t\t\t\t";
        // line 37
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("TaxLabel", "TaxLabelHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 38
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 40
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesEnteredWithTax", array(), "any")) . ("?"), "required" => true), ), "method"), "1");
        // line 43
        echo "
\t\t\t\t\t\t";
        // line 44
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "radioList", array("taxEnteredWithPrices", array(1 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesEnteredWithTaxYes", array(), "any"), 0 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesEnteredWithTaxNo", array(), "any")), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxEnteredWithPrices", array(), "any"), ), "method"), "1");
        // line 47
        echo "
\t\t\t\t\t\t";
        // line 48
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("PricesEnteredWithTax", "PricesEnteredWithTaxHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 49
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 51
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "CalculateTaxBasedOn", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 54
        echo "
\t\t\t\t\t\t";
        // line 55
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxCalculationBasedOn", array(0 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "BillingAddress", array(), "any"), 1 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShippingAddress", array(), "any"), 2 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "StoreAddress", array(), "any")), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxCalculationBasedOn", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 61
        echo "
\t\t\t\t\t\t";
        // line 62
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("CalculateTaxBasedOn", "CalculateTaxBasedOnHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 63
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 65
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShippingTaxClass", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 68
        echo "
\t\t\t\t\t\t";
        // line 69
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxShippingTaxClass", (isset($context['taxClasses']) ? $context['taxClasses'] : null), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxShippingTaxClass", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 71
        echo "
\t\t\t\t\t\t";
        // line 72
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ShippingTaxClass", "ShippingTaxClassHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 73
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 75
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "GiftWrappingTaxClass", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 78
        echo "
\t\t\t\t\t\t";
        // line 79
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxGiftWrappingTaxClass", (isset($context['taxClasses']) ? $context['taxClasses'] : null), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxGiftWrappingTaxClass", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 81
        echo "
\t\t\t\t\t\t";
        // line 82
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("GiftWrappingTaxClass", "GiftWrappingTaxClassHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 83
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t";
        // line 84
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t\t";
        // line 86
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "any"), "1");
        echo "
\t\t\t\t\t";
        // line 87
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ConfigureTaxDisplaySettings", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t\t";
        // line 89
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowPricesOnProductListings", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 92
        echo "
\t\t\t\t\t\t";
        // line 93
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxDefaultTaxDisplayCatalog", array(0 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeInclusive", array(), "any"), 1 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeExclusive", array(), "any"), 2 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeBoth", array(), "any")), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxDefaultTaxDisplayCatalog", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 99
        echo "
\t\t\t\t\t\t";
        // line 100
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ShowPricesOnProductListings", "ShowPricesOnProductListingsHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 101
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 103
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowPricesOnProductDetailPages", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 106
        echo "
\t\t\t\t\t\t";
        // line 107
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxDefaultTaxDisplayProducts", array(0 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeInclusive", array(), "any"), 1 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeExclusive", array(), "any"), 2 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeBoth", array(), "any")), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxDefaultTaxDisplayProducts", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 113
        echo "
\t\t\t\t\t\t";
        // line 114
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ShowPricesOnProductDetailPages", "ShowPricesOnProductDetailPagesHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 115
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 117
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowPricesInCart", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 120
        echo "
\t\t\t\t\t\t";
        // line 121
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxDefaultTaxDisplayCart", array(0 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeInclusive", array(), "any"), 1 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeExclusive", array(), "any")), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxDefaultTaxDisplayCart", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 126
        echo "
\t\t\t\t\t\t";
        // line 127
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ShowPricesInCart", "ShowPricesInCartHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 128
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 130
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowTaxChargesInCart", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 133
        echo "
\t\t\t\t\t\t";
        // line 134
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxChargesInCartBreakdown", array(0 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowTaxChargesSummarized", array(), "any"), 1 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowTaxChargesBrokenDown", array(), "any")), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxChargesInCartBreakdown", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 139
        echo "
\t\t\t\t\t\t";
        // line 140
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ShowTaxChargesInCart", "ShowTaxChargesInCartHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 141
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 143
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowPricesOnOrdersInvoices", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 146
        echo "
\t\t\t\t\t\t";
        // line 147
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxDefaultTaxDisplayOrders", array(0 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeInclusive", array(), "any"), 1 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeExclusive", array(), "any")), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxDefaultTaxDisplayOrders", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 152
        echo "
\t\t\t\t\t\t";
        // line 153
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ShowPricesOnOrdersInvoices", "ShowPricesOnOrdersInvoicesHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 154
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 156
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowTaxChargesOnOrders", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 159
        echo "
\t\t\t\t\t\t";
        // line 160
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxChargesOnOrdersBreakdown", array(0 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowTaxChargesSummarized", array(), "any"), 1 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowTaxChargesBrokenDown", array(), "any")), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxChargesOnOrdersBreakdown", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 165
        echo "
\t\t\t\t\t\t";
        // line 166
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ShowTaxChargesOnOrders", "ShowTaxChargesOnOrdersHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 167
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t";
        // line 168
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t\t";
        // line 170
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "any"), "1");
        echo "
\t\t\t\t\t<div class=\"header\">
\t\t\t\t\t\t";
        // line 172
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ConfigureDefaultTaxAddress", array(), "any"), "1");
        echo "
\t\t\t\t\t\t";
        // line 173
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ConfigureDefaultTaxAddress", "ConfigureDefaultTaxAddressHelp", ), "method"), "1");
        echo "
\t\t\t\t\t</div>

\t\t\t\t\t";
        // line 176
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Country", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 179
        echo "
\t\t\t\t\t\t";
        // line 180
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxDefaultCountry", (isset($context['countryList']) ? $context['countryList'] : null), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxDefaultCountry", array(), "any"), array("class" => "Field250"), ), "method"), "1");
        // line 182
        echo "
\t\t\t\t\t";
        // line 183
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 185
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRowGroup", array(array("class" => "defaultStateRow", "hidden" => twig_length_filter($this->env, (isset($context['stateList']) ? $context['stateList'] : null)) <= 1), ), "method"), "1");
        // line 188
        echo "
\t\t\t\t\t\t";
        // line 189
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "State", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 192
        echo "
\t\t\t\t\t\t\t";
        // line 193
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxDefaultState", (isset($context['stateList']) ? $context['stateList'] : null), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxDefaultState", array(), "any"), array("class" => "Field250"), ), "method"), "1");
        // line 195
        echo "
\t\t\t\t\t\t";
        // line 196
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t\t";
        // line 197
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRowGroup", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 199
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ZipCode", array(), "any")) . (":")), ), "method"), "1");
        // line 201
        echo "
\t\t\t\t\t\t";
        // line 202
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "input", array("text", "taxDefaultZipCode", $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxDefaultZipCode", array(), "any"), array("class" => "Field50"), ), "method"), "1");
        // line 204
        echo "
\t\t\t\t\t";
        // line 205
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 207
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startButtonRow", array(), "any"), "1");
        echo "
\t\t\t\t\t\t<input type=\"submit\" class=\"saveButton\" value=\"";
        // line 208
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Save", array(), "any"), "1");
        echo "\" />
\t\t\t\t\t\t";
        // line 209
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Or", array(), "any"), "1");
        echo "
\t\t\t\t\t\t<a href=\"#\" class=\"cancelLink\">";
        // line 210
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Cancel", array(), "any"), "1");
        echo "</a>
\t\t\t\t\t";
        // line 211
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endButtonRow", array(), "any"), "1");
        echo "
\t\t\t\t";
        // line 212
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "
\t\t\t</form>
\t\t</div>

\t\t<div id=\"taxClassesTab\">
\t\t\t<form action=\"index.php\" method=\"post\" accept-charset=\"utf-8\">
\t\t\t\t<input type=\"hidden\" name=\"ToDo\" value=\"saveTaxClasses\" />
\t\t\t\t";
        // line 219
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("type" => "vertical"), ), "method"), "1");
        echo "

\t\t\t\t\t";
        // line 221
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "CreateOrModifyTaxClasses", array(), "any"), ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 222
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "intro", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "CreateOrModifyTaxClassesIntro", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t\t";
        // line 224
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['taxClasses']) ? $context['taxClasses'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['id'] => $context['name']) {
            echo "\t\t\t\t\t\t";
            // line 225
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(), "any"), "1");
            echo "
\t\t\t\t\t\t\t<input type=\"text\" name=\"taxClass[existing][";
            // line 226
            echo twig_escape_filter($this->env, (isset($context['id']) ? $context['id'] : null), "1");
            echo "]\" value=\"";
            echo twig_escape_filter($this->env, (isset($context['name']) ? $context['name'] : null), "1");
            echo "\" class=\"Field400 taxClassLabel\"
\t\t\t\t\t\t\t\t";
            // line 227
            if ($this->getAttribute((isset($context['loop']) ? $context['loop'] : null), "first", array(), "any")) {
                echo "readonly=\"readonly\"";
            }
            echo " />
\t\t\t\t\t\t\t<a class=\"addButton\">+</a>
\t\t\t\t\t\t\t<a class=\"removeButton\" ";
            // line 229
            if ($this->getAttribute((isset($context['loop']) ? $context['loop'] : null), "first", array(), "any")) {
                echo "style=\"display: none\"";
            }
            echo ">-</a>
\t\t\t\t\t\t";
            // line 230
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
            echo "
\t\t\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['id'], $context['name'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 231
        echo "
\t\t\t\t\t";
        // line 233
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startButtonRow", array(), "any"), "1");
        echo "
\t\t\t\t\t\t<input type=\"submit\" class=\"saveButton\" value=\"";
        // line 234
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Save", array(), "any"), "1");
        echo "\" />
\t\t\t\t\t\t";
        // line 235
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Or", array(), "any"), "1");
        echo "
\t\t\t\t\t\t<a href=\"#\" class=\"cancelLink\">";
        // line 236
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Cancel", array(), "any"), "1");
        echo "</a>
\t\t\t\t\t";
        // line 237
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endButtonRow", array(), "any"), "1");
        echo "
\t\t\t\t</div>
\t\t\t</form>
\t\t</div>

\t\t<div id=\"taxZonesTab\">
\t\t\t<form action=\"index.php\" method=\"post\" accept-charset=\"utf-8\">
\t\t\t\t<input type=\"hidden\" name=\"ToDo\" value=\"deleteTaxZones\" />
\t\t\t\t<p class=\"intro\">
\t\t\t\t\t<input type=\"button\" value=\"";
        // line 246
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "AddATaxZoneButton", array(), "any"), "1");
        echo "\" class=\"addTaxZoneButton\" />
\t\t\t\t\t<input type=\"submit\" value=\"";
        // line 247
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "DeleteSelected", array(), "any"), "1");
        echo "\" class=\"deleteTaxZonesButton\" />
\t\t\t\t</p>

\t\t\t\t<div class=\"GridContainer\">
\t\t\t\t\t";
        // line 251
        echo twig_safe_filter((isset($context['taxZoneGrid']) ? $context['taxZoneGrid'] : null));
        echo "
\t\t\t\t</div>
\t\t\t</form>
\t\t</div>
\t</div>
</div>
<script src=\"script/tax.settings.js\" type=\"text/javascript\" charset=\"utf-8\"></script>
<script type=\"text/javascript\" charset=\"utf-8\">
\t";
        // line 259
        if ((isset($context['activeTab']) ? $context['activeTab'] : null)) {
            echo "\t\tTax_Settings.activeTab = '";
            // line 260
            echo twig_escape_filter($this->env, (isset($context['activeTab']) ? $context['activeTab'] : null), "1");
            echo "';
\t";
        }
        // line 261
        echo "
\tlang.ConfirmDeleteTaxClass = \"";
        // line 263
        echo getLang("ConfirmDeleteTaxClass");
        echo "\";
\tlang.ConfirmCancel = \"";
        // line 264
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ConfirmCancel", array(), "any"), "1");
        echo "\";
\tlang.TaxClassMissingName = \"";
        // line 265
        echo Interspire_Template_Extension::jsFilter(getLang("TaxClassMissingName"), "'");
        echo "\";
\tlang.ConfirmDeleteTaxZones = \"";
        // line 266
        echo getLang("ConfirmDeleteTaxZones");
        echo "\";
\tlang.SelectTaxZonesToDelete = \"";
        // line 267
        echo Interspire_Template_Extension::jsFilter(getLang("SelectTaxZonesToDelete"), "'");
        echo "\";
\tlang.DefaultZoneWhatDoesThisMean = \"";
        // line 268
        echo $this->getEnvironment()->getExtension('interspire')->jsFilter($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "DefaultZoneWhatDoesThisMean", array(), "any"));
        echo "\";
\tlang.InvalidTaxSettingTaxLabel = \"";
        // line 269
        echo Interspire_Template_Extension::jsFilter(getLang("InvalidTaxSettingTaxLabel"), "'");
        echo "\";
\tlang.InvalidTaxSettingTaxDefaultCountry = \"";
        // line 270
        echo Interspire_Template_Extension::jsFilter(getLang("InvalidTaxSettingTaxDefaultCountry"), "'");
        echo "\";
\tlang.InvalidTaxSettingTaxDefaultState = \"";
        // line 271
        echo Interspire_Template_Extension::jsFilter(getLang("InvalidTaxSettingTaxDefaultState"), "'");
        echo "\";
</script>";
    }
    public function display(array $context)
    {
        // line 1
        $context['util'] = $this->env->loadTemplate("macros/util.tpl", true);
        // line 2
        $context['formBuilder'] = $this->env->loadTemplate("macros/forms.tpl", true);
        echo "<link rel=\"stylesheet\" href=\"Styles/order.form.css\" type=\"text/css\" charset=\"utf-8\">
<div id=\"content\">
\t<form action=\"#\" method=\"post\" accept-charset=\"utf-8\" id=\"orderForm\">
\t\t<input type=\"hidden\" name=\"quoteSession\" value=\"";
        // line 6
        echo twig_escape_filter($this->env, (isset($context['quoteSession']) ? $context['quoteSession'] : null), "1");
        echo "\" id=\"quoteSession\">
\t\t<h1>
\t\t\t";
        // line 8
        if ((isset($context['addingOrder']) ? $context['addingOrder'] : null)) {
            echo "\t\t\t\t";
            // line 9
            echo getLang("AddAnOrder");
            echo "\t\t\t";
        } else {
            // line 10
            echo "\t\t\t\t";
            // line 11
            echo getLang("EditAnOrder");
            echo "\t\t\t";
        }
        // line 12
        echo "\t\t\t<span class=\"orderMachineStateCustomerDetails\" style=\"display: none;\">
\t\t\t\t(";
        // line 14
        echo getLang("StepXofY", array("x" => 1, "y" => 4));
        // line 17
        echo ")
\t\t\t</span>
\t\t\t<span class=\"orderMachineStateItems\" style=\"display: none;\">
\t\t\t\t(";
        // line 20
        echo getLang("StepXofY", array("x" => 2, "y" => 4));
        // line 23
        echo ")
\t\t\t</span>
\t\t\t<span class=\"orderMachineStateShipping\" style=\"display: none;\">
\t\t\t\t(";
        // line 26
        echo getLang("StepXofY", array("x" => 3, "y" => 4));
        // line 29
        echo ")
\t\t\t</span>
\t\t\t<span class=\"orderMachineStateSummary\" style=\"display: none;\">
\t\t\t\t(";
        // line 32
        echo getLang("StepXofY", array("x" => 4, "y" => 4));
        // line 35
        echo ")
\t\t\t</span>
\t\t</h1>
\t\t<p class=\"intro\">
\t\t\t";
        // line 39
        echo getLang("AddOrderIntro");
        echo "\t\t</p>
\t\t";
        // line 41
        echo getFlashMessageBoxes();        echo "
\t\t";
        // line 43
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startButtonRow", array(), "any"), "1");
        echo "
\t\t\t<button class=\"orderMachineBackButton\" disabled=\"disabled\" accesskey=\"b\">&lt; ";
        // line 44
        echo twig_safe_filter($this->getEnvironment()->getExtension('interspire')->accessKeyFilter($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Back", array(), "any"), "b"));
        echo "</button>
\t\t\t<button class=\"orderMachineNextButton\" accesskey=\"n\">";
        // line 45
        echo twig_safe_filter($this->getEnvironment()->getExtension('interspire')->accessKeyFilter($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Next", array(), "any"), "n"));
        echo " &gt;</button>
\t\t\t";
        // line 46
        echo getLang("Or");
        echo "\t\t\t<a href=\"#\" class=\"orderMachineCancelButton\">";
        // line 47
        echo getLang("Cancel");
        echo "</a>
\t\t";
        // line 48
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endButtonRow", array(), "any"), "1");
        echo "

\t\t<div class=\"orderMachineStateCustomerDetails\">
\t\t\t<input type=\"hidden\" name=\"customerId\" value=\"";
        // line 51
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "customerId", array(), "any"), "1");
        echo "\" id=\"customerId\" />
\t\t\t";
        // line 52
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "any"), "1");
        echo "
\t\t\t\t";
        // line 53
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "CustomerDetails", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t";
        // line 55
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "OrderFor", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 58
        echo "
\t\t\t\t\t";
        // line 59
        if ($this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "customerId", array(), "any")) {
            echo "\t\t\t\t\t\t<label class=\"row\">
\t\t\t\t\t\t\t<input type=\"radio\" name=\"orderFor\" value=\"dontchange\" checked=\"checked\" /> ";
            // line 61
            echo getLang("KeepExistingCustomerDetails");
            echo "\t\t\t\t\t\t\t<input type=\"hidden\" id=\"existingCustomerId\" value=\"";
            // line 62
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "customerId", array(), "any"), "1");
            echo "\" />
\t\t\t\t\t\t</label>
\t\t\t\t\t";
        }
        // line 64
        echo "\t\t\t\t\t<label class=\"row\">
\t\t\t\t\t\t<input type=\"radio\" name=\"orderFor\" value=\"customer\" ";
        // line 66
        if (((isset($context['addingOrder']) ? $context['addingOrder'] : null)) || ((!$this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "customerId", array(), "any")))) {
            echo "checked=\"checked\"";
        }
        echo " /> ";
        echo getLang("SearchMyExistingCustomerList");
        echo "\t\t\t\t\t</label>
\t\t\t\t\t<div class=\"orderForToggle orderForToggleCustomer\">
\t\t\t\t\t\t<input type=\"text\" name=\"orderForSearch\" id=\"orderForSearch\" class=\"Field300\" />
\t\t\t\t\t</div>
\t\t\t\t\t<label class=\"row\">
\t\t\t\t\t\t<input type=\"radio\" name=\"orderFor\" value=\"new\" ";
        // line 72
        if (((!(isset($context['addingOrder']) ? $context['addingOrder'] : null))) && ((!$this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "customerId", array(), "any")))) {
            echo "checked=\"checked\"";
        }
        echo " /> ";
        echo getLang("ANewCustomerOrInStorePurchase");
        echo "\t\t\t\t\t</label>
\t\t\t\t";
        // line 74
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t";
        // line 75
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t";
        // line 77
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("class" => "orderForToggle orderForToggleNew"), ), "method"), "1");
        // line 79
        echo "
\t\t\t\t";
        // line 80
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array(((($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "AccountDetails", array(), "any")) . (" (")) . ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Optional", array(), "any"))) . (")"), ), "method"), "1");
        echo "

\t\t\t\t";
        // line 82
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(), "any"), "1");
        echo "
\t\t\t\t\t<p class=\"MessageBox MessageBoxInfo\">
\t\t\t\t\t\t";
        // line 84
        echo getLang("IfDetailsAreNotSpecified");
        echo "\t\t\t\t\t</p>
\t\t\t\t";
        // line 86
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t";
        // line 88
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['accountFormFields']) ? $context['accountFormFields'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['formField']) {
            echo "\t\t\t\t\t";
            // line 89
            if ($this->getAttribute($this->getAttribute((isset($context['formField']) ? $context['formField'] : null), "record", array(), "any"), "formfieldprivateid", array(), "any") != "EmailAddress") {
                echo "\t\t\t\t\t\t";
                // line 90
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRowGroup", array(), "any"), "1");
                echo "
\t\t\t\t\t";
            }
            // line 91
            echo "
\t\t\t\t\t";
            // line 93
            echo twig_safe_filter($this->getAttribute((isset($context['formField']) ? $context['formField'] : null), "loadForFrontend", array(), "any"));
            echo "

\t\t\t\t\t";
            // line 95
            if ($this->getAttribute($this->getAttribute((isset($context['formField']) ? $context['formField'] : null), "record", array(), "any"), "formfieldprivateid", array(), "any") != "EmailAddress") {
                echo "\t\t\t\t\t\t";
                // line 96
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRowGroup", array(), "any"), "1");
                echo "
\t\t\t\t\t";
            }
            // line 97
            echo "\t\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['formField'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 98
        echo "
\t\t\t\t";
        // line 100
        if ((isset($context['accountCustomerGroups']) ? $context['accountCustomerGroups'] : null)) {
            echo "\t\t\t\t\t";
            // line 101
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "CustomerGroup", array(), "any")) . (":")), ), "method"), "1");
            // line 103
            echo "
\t\t\t\t\t\t";
            // line 104
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("accountCustomerGroup", (isset($context['accountCustomerGroups']) ? $context['accountCustomerGroups'] : null), (isset($context['null']) ? $context['null'] : null), array("class" => "Field200"), ), "method"), "1");
            // line 106
            echo "
\t\t\t\t\t";
            // line 107
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
            echo "
\t\t\t\t";
        }
        // line 108
        echo "\t\t\t";
        // line 109
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t";
        // line 111
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "any"), "1");
        echo "
\t\t\t\t";
        // line 112
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "BillingAddress", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t<fieldset class=\"existingAddressList\">
\t\t\t\t\t<legend>";
        // line 115
        echo getLang("UseExistingAddress");
        echo "</legend>
\t\t\t\t\t<ul>
\t\t\t\t\t</ul>
\t\t\t\t</fieldset>
\t\t\t\t";
        // line 119
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['billingFormFields']) ? $context['billingFormFields'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['formField']) {
            echo "\t\t\t\t\t";
            // line 120
            echo twig_safe_filter($this->getAttribute((isset($context['formField']) ? $context['formField'] : null), "loadForFrontend", array(), "any"));
            echo "
\t\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['formField'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 121
        echo "
\t\t\t\t";
        // line 123
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => " "), ), "method"), "1");
        // line 125
        echo "
\t\t\t\t\t<label>
\t\t\t\t\t\t<input type=\"checkbox\" name=\"saveBillingAddress\" value=\"1\" checked=\"checked\" />
\t\t\t\t\t\t";
        // line 128
        echo getLang("SaveToCustomersAddressBook");
        echo "\t\t\t\t\t</label>
\t\t\t\t";
        // line 130
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t";
        // line 131
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "
\t\t</div>

\t\t<div class=\"orderMachineStateItems\">
\t\t\t";
        // line 135
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("type" => "vertical"), ), "method"), "1");
        echo "
\t\t\t\t";
        // line 136
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array("Search Items", ), "method"), "1");
        echo "

\t\t\t\t";
        // line 138
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("last" => true), ), "method"), "1");
        // line 140
        echo "
\t\t\t\t\t<div>
\t\t\t\t\t\t<a href=\"#\" class=\"quoteItemSearchIcon\" />&nbsp;</a>
\t\t\t\t\t\t<div class=\"quoteItemSearch\">
\t\t\t\t\t\t\t<input type=\"text\" />
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div>
\t\t\t\t\t\t<a class=\"addVirtualItemLink\" href=\"#\">";
        // line 148
        echo getLang("AddVirtualItemLink");
        echo "</a>
\t\t\t\t\t\t<div class=\"addVirtualItemLinkAfter\"></div>
\t\t\t\t\t</div>
\t\t\t\t";
        // line 151
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t";
        // line 152
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t";
        // line 154
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("type" => "vertical"), ), "method"), "1");
        echo "
\t\t\t\t";
        // line 155
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ItemsInOrder", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t";
        // line 157
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(), "any"), "1");
        echo "
\t\t\t\t\t<div ";
        // line 158
        if ($this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "items", array(), "any")) {
            echo "style=\"display: none\"";
        }
        echo " class=\"orderNoItemsMessage\">
\t\t\t\t\t\t<p class=\"MessageBox MessageBoxInfo\">
\t\t\t\t\t\t\t";
        // line 160
        echo getLang("ThisOrderIsCurrentlyEmpty");
        echo "\t\t\t\t\t\t</p>
\t\t\t\t\t</div>
\t\t\t\t\t<div ";
        // line 163
        if ($this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "items", array(), "any") == false) {
            echo "style=\"display: none\"";
        }
        echo " class=\"orderItemsGrid\">
\t\t\t\t\t\t";
        // line 164
        echo twig_safe_filter((isset($context['itemsTable']) ? $context['itemsTable'] : null));
        echo "
\t\t\t\t\t</div>
\t\t\t\t\t<div ";
        // line 166
        if ($this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "items", array(), "any") == false) {
            echo "style=\"display: none\"";
        }
        echo " id=\"itemSubtotal\">
\t\t\t\t\t\t";
        // line 167
        echo getLang("SubTotal");
        echo ": <span>";
        echo twig_escape_filter($this->env, (isset($context['subtotal']) ? $context['subtotal'] : null), "1");
        echo "</span>
\t\t\t\t\t</div>
\t\t\t\t";
        // line 169
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t";
        // line 170
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "
\t\t</div>

\t\t<div class=\"orderMachineStateShipping\">
\t\t\t";
        // line 174
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "any"), "1");
        echo "
\t\t\t\t";
        // line 175
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShippingDestination", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t";
        // line 177
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShipItemsTo", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 180
        echo "
\t\t\t\t\t<label class=\"row\">
\t\t\t\t\t\t<input type=\"radio\" name=\"shipItemsTo\" class=\"showByValue orderFormDisableIfDigital orderFormCheckIfDigital\" value=\"billing\" ";
        // line 182
        if ((isset($context['shipItemsTo']) ? $context['shipItemsTo'] : null) == "billing") {
            echo "checked=\"checked\"";
        }
        echo " /> ";
        echo getLang("TheBillingAddressAlreadySpecified");
        echo "\t\t\t\t\t</label>
\t\t\t\t\t<div class=\"showByValue_shipItemsTo showByValue_shipItemsTo_billing nodeJoin\" id=\"shipItemsToBillingAddress\">
\t\t\t\t\t</div>
\t\t\t\t\t<label class=\"row\">
\t\t\t\t\t\t<input type=\"radio\" name=\"shipItemsTo\" class=\"showByValue orderFormDisableIfDigital\" value=\"single\" ";
        // line 187
        if ((isset($context['shipItemsTo']) ? $context['shipItemsTo'] : null) == "single") {
            echo "checked=\"checked\"";
        }
        echo " /> ";
        echo getLang("ASingleAddress");
        echo "\t\t\t\t\t</label>
\t\t\t\t\t<label class=\"row\">
\t\t\t\t\t\t<input type=\"radio\" name=\"shipItemsTo\" class=\"showByValue orderFormDisableIfDigital\" value=\"multiple\" ";
        // line 190
        if ((isset($context['shipItemsTo']) ? $context['shipItemsTo'] : null) == "multiple") {
            echo "checked=\"checked\"";
        }
        echo " /> ";
        echo getLang("MultipleAddressesSpecifyBelow");
        echo "\t\t\t\t\t</label>
\t\t\t\t";
        // line 192
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t";
        // line 193
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t<div class=\"orderFormShowIfDigital\" style=\"display:none;\">
\t\t\t\t<div class=\"MessageBox  MessageBoxInfo\">
\t\t\t\t\t";
        // line 197
        echo getLang("DigitalOrderNotice");
        echo "\t\t\t\t</div>
\t\t\t</div>

\t\t\t<div class=\"orderFormHideIfDigital\" style=\"display:none;\">
\t\t\t\t<div class=\"showByValue_shipItemsTo showByValue_shipItemsTo_single\">
\t\t\t\t\t";
        // line 203
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "any"), "1");
        echo "
\t\t\t\t\t\t";
        // line 204
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShippingAddress", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t\t\t<fieldset class=\"existingAddressList\">
\t\t\t\t\t\t\t<legend>";
        // line 207
        echo getLang("UseExistingAddress");
        echo "</legend>
\t\t\t\t\t\t\t<ul>
\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t</fieldset>

\t\t\t\t\t\t";
        // line 212
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['shippingFormFields']) ? $context['shippingFormFields'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['formField']) {
            echo "\t\t\t\t\t\t\t";
            // line 213
            echo twig_safe_filter($this->getAttribute((isset($context['formField']) ? $context['formField'] : null), "loadForFrontend", array(), "any"));
            echo "
\t\t\t\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['formField'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 214
        echo "
\t\t\t\t\t\t";
        // line 216
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => " "), ), "method"), "1");
        // line 218
        echo "
\t\t\t\t\t\t\t<label>
\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"saveShippingAddress\" value=\"1\" checked=\"checked\" />
\t\t\t\t\t\t\t\t";
        // line 221
        echo getLang("SaveToCustomersAddressBook");
        echo "\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t";
        // line 223
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 225
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "
\t\t\t\t</div>

\t\t\t\t";
        // line 228
        $context['address'] = $this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "getShippingAddress", array(), "any");
        echo "
\t\t\t\t<div class=\"showByValue_shipItemsTo showByValue_shipItemsTo_billing showByValue_shipItemsTo_single\">
\t\t\t\t\t";
        // line 231
        $context['shippingMethod'] = $this->getAttribute((isset($context['address']) ? $context['address'] : null), "shippingMethod", array(), "any");
        echo "\t\t\t\t\t";
        // line 232
        if ((isset($context['shippingMethod']) ? $context['shippingMethod'] : null)) {
            echo "\t\t\t\t\t\t<input type=\"hidden\" name=\"currentShipping[isCustom]\" value=\"";
            // line 233
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "isCustom", array(), "any"), "1");
            echo "\" />
\t\t\t\t\t\t<input type=\"hidden\" name=\"currentShipping[module]\" value=\"";
            // line 234
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "module", array(), "any"), "1");
            echo "\" />
\t\t\t\t\t\t<input type=\"hidden\" name=\"currentShipping[description]\" value=\"";
            // line 235
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "description", array(), "any"), "1");
            echo "\" />
\t\t\t\t\t\t<input type=\"hidden\" name=\"currentShipping[price]\" value=\"";
            // line 236
            echo formatPrice(twig_escape_filter($this->env, $this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "price", array(), "any"), "1"), false, false);
            echo "\" />
\t\t\t\t\t";
        }
        // line 237
        echo "
\t\t\t\t\t";
        // line 239
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "any"), "1");
        echo "
\t\t\t\t\t\t";
        // line 240
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShippingMethod", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t\t\t";
        // line 242
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ChooseAProvider", array(), "any")) . (":")), ), "method"), "1");
        // line 244
        echo "
\t\t\t\t\t\t\t<select name=\"shippingQuoteList\" ";
        // line 245
        if ((!(isset($context['shippingMethod']) ? $context['shippingMethod'] : null))) {
            echo "style=\"display: none\"";
        }
        echo " class=\"Field300 showByValue shippingQuoteList\" size=\"5\">
\t\t\t\t\t\t\t\t";
        // line 246
        if (((isset($context['shippingMethod']) ? $context['shippingMethod'] : null)) && ($this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "module", array(), "any") != "custom")) {
            echo "\t\t\t\t\t\t\t\t\t<option value=\"builtin:current\" selected=\"selected\">";
            // line 247
            echo getLang("UseCurrentShippingMethod", array("method" => $this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "description", array(), "any"), "price" => formatPrice($this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "price", array(), "any"))));
            // line 250
            echo "</option>
\t\t\t\t\t\t\t\t";
        }
        // line 251
        echo "\t\t\t\t\t\t\t\t<option value=\"builtin:none\">";
        // line 252
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "xNone", array(), "any"), "1");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"builtin:custom\" ";
        // line 253
        if (((isset($context['shippingMethod']) ? $context['shippingMethod'] : null)) && ($this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "module", array(), "any") == "custom")) {
            echo "selected=\"selected\"";
        }
        echo ">";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Custom", array(), "any"), "1");
        echo "</option>
\t\t\t\t\t\t\t</select> <a href=\"#\" class=\"fetchShippingQuotesLink\">";
        // line 254
        echo getLang("FetchShippingQuotes");
        echo "</a>
\t\t\t\t\t\t\t<div class=\"nodeJoin customShippingContainer showByValue_shippingQuoteList showByValue_shippingQuoteList_builtincustom\" style=\"display:none;\">
\t\t\t\t\t\t\t\t";
        // line 256
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "any"), "1");
        echo "
\t\t\t\t\t\t\t\t\t";
        // line 257
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShippingMethod", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 260
        echo "
\t\t\t\t\t\t\t\t\t\t";
        // line 261
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "input", array("text", "customShippingDescription", $this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "description", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 263
        echo "
\t\t\t\t\t\t\t\t\t";
        // line 264
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t\t\t\t\t";
        // line 266
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShippingCost", array(), "any")) . (":"), "last" => true), ), "method"), "1");
        // line 269
        echo "
\t\t\t\t\t\t\t\t\t\t";
        // line 270
        echo twig_escape_filter($this->env, (isset($context['CurrencyTokenLeft']) ? $context['CurrencyTokenLeft'] : null), "1");
        echo " ";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "input", array("text", "customShippingPrice", formatPrice($this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "price", array(), "any"), false, false), array("class" => "Field70"), ), "method"), "1");
        // line 272
        echo " ";
        echo twig_escape_filter($this->env, (isset($context['CurrencyTokenRight']) ? $context['CurrencyTokenRight'] : null), "1");
        echo "
\t\t\t\t\t\t\t\t\t";
        // line 273
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t\t\t\t\t";
        // line 274
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
        // line 276
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t\t";
        // line 277
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "
\t\t\t\t</div>

\t\t\t\t<div class=\"showByValue_shipItemsTo showByValue_shipItemsTo_multiple\" id=\"multiShippingTable\">
\t\t\t\t\t<!-- Placeholder for content loaded in via ajax -->
\t\t\t\t\t";
        // line 282
        if ((isset($context['multiShippingTable']) ? $context['multiShippingTable'] : null)) {
            echo "\t\t\t\t\t\t";
            // line 283
            echo twig_safe_filter((isset($context['multiShippingTable']) ? $context['multiShippingTable'] : null));
            echo "
\t\t\t\t\t";
        }
        // line 284
        echo "\t\t\t\t</div>
\t\t\t</div>
\t\t</div>

\t\t<div class=\"orderMachineStateSummary orderMachineStateSummaryLoadingIndicator\" style=\"display:none;\">
\t\t\t<div class=\"orderFormColumns\">
\t\t\t\t<div class=\"orderFormRightColumn\">
\t\t\t\t\t";
        // line 292
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("type" => "vertical", "class" => "greenFormContainer"), ), "method"), "1");
        echo "
\t\t\t\t\t\t";
        // line 293
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "FinalizeOrder", array(), "any"), ), "method"), "1");
        echo "
\t\t\t\t\t\t";
        // line 294
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(), "any"), "1");
        echo "
\t\t\t\t\t\t\t<label class=\"row\">
\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"emailInvoiceToCustomer\" value=\"1\" ";
        // line 296
        if ((isset($context['addingOrder']) ? $context['addingOrder'] : null)) {
            echo "checked=\"checked\"";
        }
        echo " /> ";
        echo getLang("EmailCustomerInvoice");
        echo "?
\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t<div class=\"billingEmailAddressContainer\">(<span class=\"billingEmailAddress\"></span>)</div>
\t\t\t\t\t\t\t<button class=\"orderMachineSaveButton\" disabled=\"disabled\" accesskey=\"s\">";
        // line 299
        if ((isset($context['payment']) ? $context['payment'] : null)) {
            echo twig_safe_filter($this->getEnvironment()->getExtension('interspire')->accessKeyFilter($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "SaveOnly", array(), "any"), "s"));
        } else {
            echo twig_safe_filter($this->getEnvironment()->getExtension('interspire')->accessKeyFilter($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "SaveAndProcessPayment", array(), "any"), "s"));
        }
        echo "</button>
\t\t\t\t\t\t";
        // line 300
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t\t";
        // line 301
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 303
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("type" => "vertical", "class" => "orderSummaryContainer"), ), "method"), "1");
        // line 306
        echo "
\t\t\t\t\t\t";
        // line 307
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "OrderSummary", array(), "any"), ), "method"), "1");
        echo "
\t\t\t\t\t\t";
        // line 308
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(), "any"), "1");
        echo "
\t\t\t\t\t\t\t<div class=\"orderFormSummaryOrderSummaryContainer\"><!-- placeholder --></div>
\t\t\t\t\t\t";
        // line 310
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t\t";
        // line 311
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 313
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("type" => "vertical", "class" => "couponGiftCertificateContainer"), ), "method"), "1");
        // line 316
        echo "

\t\t\t\t\t\t";
        // line 318
        if ((isset($context['allowGiftCertificates']) ? $context['allowGiftCertificates'] : null)) {
            echo "\t\t\t\t\t\t\t";
            // line 319
            $context['couponPanelHeading'] = $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "CouponOrGiftCertificateQ", array(), "any");
            echo "\t\t\t\t\t\t";
        } else {
            // line 320
            echo "\t\t\t\t\t\t\t";
            // line 321
            $context['couponPanelHeading'] = $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ApplyCouponOnly", array(), "any");
            echo "\t\t\t\t\t\t";
        }
        // line 322
        echo "
\t\t\t\t\t\t";
        // line 324
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array((isset($context['couponPanelHeading']) ? $context['couponPanelHeading'] : null), ), "method"), "1");
        echo "
\t\t\t\t\t\t";
        // line 325
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(), "any"), "1");
        echo "
\t\t\t\t\t\t\t";
        // line 326
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "input", array("text", "couponGiftCertificate", "", array("class" => "Field120"), ), "method"), "1");
        // line 328
        echo "<input type=\"button\" class=\"orderMachineCouponButton\" value=\"";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Apply", array(), "any"), "1");
        echo "\" />
\t\t\t\t\t\t";
        // line 329
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t\t";
        // line 330
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 332
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("type" => "vertical"), ), "method"), "1");
        echo "
\t\t\t\t\t\t";
        // line 333
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PaymentDetails", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t\t\t";
        // line 335
        echo twig_safe_filter((isset($context['paymentForm']) ? $context['paymentForm'] : null));
        echo "
\t\t\t\t\t";
        // line 336
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "
\t\t\t\t</div>
\t\t\t\t<div class=\"orderFormLeftColumn\">
\t\t\t\t\t<div class=\"orderFormSummaryBillingDetailsContainer\"><!-- placeholder --></div>

\t\t\t\t\t<div class=\"orderFormSummaryShippingDetailsContainer\"><!-- placeholder --></div>

\t\t\t\t\t";
        // line 343
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("type" => "vertical"), ), "method"), "1");
        echo "
\t\t\t\t\t\t";
        // line 344
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "OrderCommentsVisible", array(), "any"), ), "method"), "1");
        echo "
\t\t\t\t\t\t";
        // line 345
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("last" => true), ), "method"), "1");
        echo "
\t\t\t\t\t\t\t";
        // line 346
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "textarea", array("customerMessage", $this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "customerMessage", array(), "any"), array("class" => "Field100pct", "rows" => 6), ), "method"), "1");
        // line 349
        echo "
\t\t\t\t\t\t";
        // line 350
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t\t";
        // line 351
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 353
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("type" => "vertical"), ), "method"), "1");
        echo "
\t\t\t\t\t\t";
        // line 354
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "StaffNotesNotVisible", array(), "any"), ), "method"), "1");
        echo "
\t\t\t\t\t\t";
        // line 355
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("last" => true), ), "method"), "1");
        echo "
\t\t\t\t\t\t\t";
        // line 356
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "textarea", array("staffNotes", $this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "staffNotes", array(), "any"), array("class" => "Field100pct", "rows" => 6), ), "method"), "1");
        // line 359
        echo "
\t\t\t\t\t\t";
        // line 360
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t\t";
        // line 361
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "
\t\t\t\t</div>
\t\t\t\t<div class=\"orderFormColumnsEnd\"></div>
\t\t\t</div>
\t\t</div>

\t\t";
        // line 367
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startButtonRow", array(), "any"), "1");
        echo "
\t\t\t<button class=\"orderMachineBackButton\" disabled=\"disabled\" accesskey=\"b\">&lt; ";
        // line 368
        echo twig_safe_filter($this->getEnvironment()->getExtension('interspire')->accessKeyFilter($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Back", array(), "any"), "b"));
        echo "</button>
\t\t\t<button class=\"orderMachineNextButton\" accesskey=\"n\">";
        // line 369
        echo twig_safe_filter($this->getEnvironment()->getExtension('interspire')->accessKeyFilter($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Next", array(), "any"), "n"));
        echo " &gt;</button>
\t\t\t";
        // line 370
        echo getLang("Or");
        echo "\t\t\t<a href=\"#\" class=\"orderMachineCancelButton\">";
        // line 371
        echo getLang("Cancel");
        echo "</a>
\t\t";
        // line 372
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endButtonRow", array(), "any"), "1");
        echo "
\t</form>
</div>
<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/jquery.form.js?";
        // line 375
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"../javascript/product.functions.js?";
        // line 376
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/autocomplete/jquery.autocomplete.js?";
        // line 377
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\" charset=\"utf-8\"></script>
<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/disabled/jquery.disabled.js?";
        // line 378
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\" charset=\"utf-8\"></script>
<script type=\"text/javascript\" src=\"../javascript/formfield.js?";
        // line 379
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\" charset=\"utf-8\"></script>
<script type=\"text/javascript\" src=\"../javascript/fsm.js?";
        // line 380
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\" charset=\"utf-8\"></script>
<script src=\"script/order.form.fsm.js\" type=\"text/javascript\" charset=\"utf-8\"></script>
<script src=\"script/order.form.js\" type=\"text/javascript\" charset=\"utf-8\"></script>
<script type=\"text/javascript\" charset=\"utf-8\">//<![CDATA[
\t";
        // line 384
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "jslang", array(array(0 => "ChooseVariationBeforeAdding", 1 => "EnterProductRequiredFields", 2 => "ChooseValidProductFieldFile", 3 => "AddingProductToOrder", 4 => "UpdatingProductInOrder", 5 => "OrderCustomerSearchNone", 6 => "CustomerPasswordConfirmError", 7 => "CustomerEmailInvalid", 8 => "ConfirmRemoveProductFromOrder", 9 => "InvalidPaymentModule", 10 => "NoShippingMethodsAreAvailable_1", 11 => "NoShippingMethodsAreAvailable_2", 12 => "PleaseAddOneOrMoreItems", 13 => "ConfirmCancelMessage", 14 => "AddEditOrderConfirmPageNavigation", 15 => "ViewOrderHistory", 16 => "TypeACustomerNameEmailEtc", 17 => "PleaseSearchForACustomer", 18 => "UseThisAddress", 19 => "TypeAProductNameSkuEtc", 20 => "ChooseOneItemForShippingDestination", 21 => "AllocateProducts", 22 => "Cancel", 23 => "SaveChanges", 24 => "ConfirmDeleteShippingDestination", 25 => "QuoteItemSearchNone", 26 => "EditDeletedOrderSaveNotice"), ), "method"), "1");
        // line 412
        echo "

\t";
        // line 414
        if ((isset($context['allowGiftCertificates']) ? $context['allowGiftCertificates'] : null)) {
            echo "\t\tlang[\"EnterACoupon\"] = \"";
            // line 415
            echo Interspire_Template_Extension::jsFilter(getLang("PleaseEnterACouponOrGiftCert"), "'");
            echo "\";
\t";
        } else {
            // line 416
            echo "\t\tlang[\"EnterACoupon\"] = \"";
            // line 417
            echo Interspire_Template_Extension::jsFilter(getLang("PleaseEnterACoupon"), "'");
            echo "\";
\t";
        }
        // line 418
        echo "
\t";
        // line 420
        echo twig_safe_filter((isset($context['formFieldJavascript']) ? $context['formFieldJavascript'] : null));
        echo "

\torderCustomFormFieldsAccountFormId = ";
        // line 422
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formFieldTypes']) ? $context['formFieldTypes'] : null), "accountFormFields", array(), "any"), "1");
        echo "
\torderCustomFormFieldsBillingFormId = ";
        // line 423
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formFieldTypes']) ? $context['formFieldTypes'] : null), "billingFormFields", array(), "any"), "1");
        echo ";
\torderCustomFormFieldsShippingFormId = ";
        // line 424
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formFieldTypes']) ? $context['formFieldTypes'] : null), "shippingFormFields", array(), "any"), "1");
        echo ";

\t";
        // line 426
        if ($this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "orderId", array(), "any")) {
            echo "\t\tOrder_Form.orderId = ";
            // line 427
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "orderId", array(), "any"), "1");
            echo ";
\t";
        }
        // line 428
        echo "
\t\$(function(){
\t\t";
        // line 431
        if ($this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "isDigital", array(), "any")) {
            echo "\t\t\tOrder_Form.setIsDigital(true);
\t\t";
        } else {
            // line 433
            echo "\t\t\tOrder_Form.setIsDigital(false);
\t\t";
        }
        // line 435
        echo "
\t\t";
        // line 437
        if ($this->getAttribute((isset($context['order']) ? $context['order'] : null), "deleted", array(), "any")) {
            echo "\t\t\tOrder_Form.setIsDeleted(true);
\t\t";
        }
        // line 439
        echo "
\t\tOrder_Form.updateBillingEmailAddress(\"";
        // line 441
        echo $this->getEnvironment()->getExtension('interspire')->jsFilter($this->getAttribute($this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "getBillingAddress", array(), "any"), "getEmail", array(), "any"));
        echo "\");
\t});
//]]></script>
";
    }
    public function display(array $context)
    {
        // line 1
        echo "
";
        // line 2
        $context['util'] = $this->env->loadTemplate("macros/util.tpl", true);
        echo "<p class=\"intro\">
\t";
        // line 4
        echo getLang("GiftCertificatesIntro");
        echo "</p>
<table class=\"GridPanel SortableGrid AutoExpand\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" id=\"GiftCertificates\" style=\"width:100%;\">
\t";
        // line 7
        echo "
\t<tr class=\"Heading3\">
\t\t<td>Template</td>
\t\t<td>File Size</td>
\t\t<td>Last Updated</td>
\t\t<td>Enabled</td>
\t\t<td>Action</td>
\t</tr>
\t
\t";
        // line 16
        echo "
\t";
        // line 17
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['GiftCertificateThemes']) ? $context['GiftCertificateThemes'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['theme']) {
            echo "\t<tr class=\"GridRow GiftCertificate\" giftcertificate:id=\"";
            // line 18
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['theme']) ? $context['theme'] : null), "id", array(), "any"), "1");
            echo "\">
\t\t<td width=\"60%\">";
            // line 19
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['theme']) ? $context['theme'] : null), "name", array(), "any"), "1");
            echo "</td>
\t\t<td>";
            // line 20
            echo Store_Number::niceSize(twig_escape_filter($this->env, $this->getAttribute((isset($context['theme']) ? $context['theme'] : null), "fileSize", array(), "any"), "1"));
            echo "</td>
\t\t<td>";
            // line 21
            echo $this->getEnvironment()->getExtension('interspire')->dateFormat(twig_escape_filter($this->env, $this->getAttribute((isset($context['theme']) ? $context['theme'] : null), "lastModified", array(), "any"), "1"), "ExtendedDisplayDateFormat");
            echo "</td>
\t\t<td>
\t\t\t<a class=\"toggleEnabledLink\" href=\"#\">
\t\t\t";
            // line 24
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "enabledSwitch", array($this->getAttribute((isset($context['theme']) ? $context['theme'] : null), "isEnabled", array(), "any"), ), "method"), "1");
            echo "
\t\t\t</a>
\t\t</td>
\t\t<td style='white-space:nowrap;'>
\t\t\t<a class=\"previewLink\" href='#'>Preview</a>
\t\t\t<a class=\"editLink\" href='#'>Edit</a>
\t\t\t<a class=\"restoreLink\" href='#'>Restore</a>
\t\t</td>
\t</tr>
\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['theme'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 33
        echo "\t
\t";
        // line 35
        echo "
\t<tr class=\"giftCertificateEditForm\" style=\"display:none\">
\t\t<td colspan=\"4\">
\t\t\t<div class=\"editBox\" style=\"margin:10px\"></div>
\t\t\t<div style=\"padding-bottom:10px; padding-left: 10px;\">
\t\t\t\t<input class=\"FormButton saveButton\" type=\"button\" value=\"";
        // line 40
        echo getLang("Save");
        echo "\"/>
\t\t\t\t<input class=\"FormButton previewButton\" type=\"button\" value=\"";
        // line 41
        echo getLang("Preview");
        echo "\"/>
\t\t\t\tor
\t\t\t\t<a class=\"cancelLink\" href=\"#\">";
        // line 43
        echo getLang("Cancel");
        echo "</a>
\t\t\t</div>
\t\t</td>
\t\t<td>&nbsp;</td>
\t</tr>
</table>

";
        // line 50
        echo "
<div id=\"giftCertificatePreviewModal\" style=\"display: none;\">
\t<div class=\"ModalTitle\">";
        // line 52
        echo getLang("GiftCertificatePreview");
        echo "</div>
\t<div class=\"ModalContent\">
\t\t<table class=\"Panel\" width=\"100%\">
\t\t\t<tr>
\t\t\t\t<td><span id=\"giftCertificatePreviewFrame\"></span></td>
\t\t\t</tr>
\t\t</table>
\t</div>
\t<div class=\"ModalButtonRow\">
\t\t<input type=\"button\" class=\"closeGiftCertificatePreviewButton FormButton\" value=\"";
        // line 61
        echo getLang("Close");
        echo "\"/>
\t</div>
</div>

<script type=\"text/javascript\" src=\"script/layout.giftcertificates.js?";
        // line 65
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type='text/javascript'>
\$('document').ready(function(){
\tlang.GiftCertificateRestoreConfirmation = '";
        // line 68
        echo Interspire_Template_Extension::jsFilter(getLang("GiftCertificateRestoreConfirmation"), "'");
        echo "';
\t
\tLayout.GiftCertificates.Urls = {
\t\tedit : 'index.php?ToDo=editGiftCertificateTheme',
\t\tsave : 'index.php?ToDo=saveGiftCertificate',
\t\trestore : 'index.php?ToDo=restoreGiftCertificate',
\t\tpreview : 'index.php?ToDo=exampleGiftCertificate',
\t\ttoggleEnabled : 'index.php?ToDo=toggleGiftCertificateEnabled',
\t};
\t
\tLayout.GiftCertificates.init();
});
</script>";
    }
    public function display(array $context)
    {
        // line 1
        $context['formBuilder'] = $this->env->loadTemplate("macros/forms.tpl", true);
        // line 2
        $context['util'] = $this->env->loadTemplate("macros/util.tpl", true);
        echo "
<script language=\"javascript\" type=\"text/javascript\">//<![CDATA[
if (typeof lang == 'undefined') {
\tlang = {};
}
lang.EmailIntegrationGetListsFailed = \"";
        // line 8
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegrationGetListsFailed"), "'");
        echo "\";
lang.EmailIntegrationGetListFieldsFailed = \"";
        // line 9
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegrationGetListFieldsFailed"), "'");
        echo "\";
lang.NoneString = \"";
        // line 10
        echo Interspire_Template_Extension::jsFilter(getLang("NoneString"), "'");
        echo "\";
lang.EmailIntegrationIncompleteRuleError = \"";
        // line 11
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegrationIncompleteRuleError"), "'");
        echo "\";
lang.EmailIntegrationChooseAListToSync = \"";
        // line 12
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegrationChooseAListToSync"), "'");
        echo "\";
lang.EmailIntegrationFieldSyncNotRequired = \"";
        // line 13
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegrationFieldSyncNotRequired"), "'");
        echo "\";
lang.EmailIntegration_ConfirmRefreshLists = \"";
        // line 14
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegration_ConfirmRefreshLists"), "'");
        echo "\";
//]]></script>

";
        // line 17
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['modules']) ? $context['modules'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['module']) {
            echo "\t";
            // line 18
            if ((($this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "isConfigured", array(), "any")) && ($this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "getSettingsJavaScript", array(), "any"))) && (twig_length_filter($this->env, $this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "getLists", array(), "any")))) {
                echo "\t\t<script language=\"javascript\" type=\"text/javascript\">//<![CDATA[
\t\t\t\$(function(){
\t\t\t\tif (Interspire_EmailIntegration_ProviderModel.modules[\"";
                // line 21
                echo $this->getEnvironment()->getExtension('interspire')->jsFilter($this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"));
                echo "\"]) {
\t\t\t\t\t// load some commong language for each module
\t\t\t\t\tlang.";
                // line 23
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"), "1");
                echo "_name = \"";
                echo Interspire_Template_Extension::jsFilter(getLang(($this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any")) . ("_name")), "'");
                echo "\";

\t\t\t\t\t// preload this module's list information
\t\t\t\t\tvar provider = Interspire_EmailIntegration_ProviderModel.modules[\"";
                // line 26
                echo $this->getEnvironment()->getExtension('interspire')->jsFilter($this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"));
                echo "\"];
\t\t\t\t\tprovider.lists.result = [];
\t\t\t\t\t";
                // line 28
                $context['_parent'] = (array) $context;
                $context['_seq'] = twig_iterator_to_array($this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "getLists", array(), "any"));
                $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
                $length = $countable ? count($context['_seq']) : null;
                $context['loop'] = array(
                  'parent' => $context['_parent'],
                  'index0' => 0,
                  'index'  => 1,
                  'first'  => true,
                );
                if ($countable) {
                    $context['loop']['revindex0'] = $length - 1;
                    $context['loop']['revindex'] = $length;
                    $context['loop']['length'] = $length;
                    $context['loop']['last'] = 1 === $length;
                }
                foreach ($context['_seq'] as $context['_key'] => $context['list']) {
                    echo "\t\t\t\t\t\tprovider.lists.result.push(new Interspire_EmailIntegration_ListModel(provider, \"";
                    // line 29
                    echo $this->getEnvironment()->getExtension('interspire')->jsFilter($this->getAttribute((isset($context['list']) ? $context['list'] : null), "provider_list_id", array(), "any"));
                    echo "\", \"";
                    echo $this->getEnvironment()->getExtension('interspire')->jsFilter($this->getAttribute((isset($context['list']) ? $context['list'] : null), "provider_list_id", array(), "any"));
                    echo "\", \"";
                    echo $this->getEnvironment()->getExtension('interspire')->jsFilter($this->getAttribute((isset($context['list']) ? $context['list'] : null), "name", array(), "any"));
                    echo "\"));
\t\t\t\t\t";
                    ++$context['loop']['index0'];
                    ++$context['loop']['index'];
                    $context['loop']['first'] = false;
                    if ($countable) {
                        --$context['loop']['revindex0'];
                        --$context['loop']['revindex'];
                        $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                    }
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['list'], $context['_parent'], $context['loop']);
                $context = array_merge($_parent, array_intersect_key($context, $_parent));
                // line 30
                echo "\t\t\t\t}
\t\t\t});
\t\t//]]></script>
\t";
            }
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 35
        echo "
<script language=\"javascript\" type=\"text/javascript\">//<![CDATA[
(function(\$){
\t\$(function(){
\t\t\$('#emailIntegrationSettingsForm').submit(function(event){
\t\t\t\$.each(Interspire_EmailIntegration_ProviderModel.modules, function(moduleId, module){
\t\t\t\tif (!module.isSelected()) {
\t\t\t\t\treturn;
\t\t\t\t}

\t\t\t\tif (!module.validateSettingsForm()) {
\t\t\t\t\tevent.preventDefault();
\t\t\t\t\t\$('#tabs').tabs('select', module.id);
\t\t\t\t\treturn false;
\t\t\t\t}
\t\t\t});
\t\t});
\t});
})(jQuery);
//]]></script>

<form action=\"index.php?ToDo=saveUpdatedEmailIntegrationSettings\" id=\"emailIntegrationSettingsForm\" method=\"post\">
\t<input id=\"currentTab\" name=\"currentTab\" value=\"";
        // line 58
        echo twig_escape_filter($this->env, (isset($context['tab']) ? $context['tab'] : null), "1");
        echo "\" type=\"hidden\" />
\t<div id=\"content\">
\t\t<h1>";
        // line 60
        echo getLang("EmailMarketing");
        echo "</h1>

\t\t<p class=\"intro\">";
        // line 62
        echo getLang("EmailIntegrationSettingsIntro");
        echo "</p>

\t\t<div id=\"Status\">";
        // line 64
        echo twig_safe_filter((isset($context['message']) ? $context['message'] : null));
        echo "</div>

\t\t";
        // line 66
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startButtonRow", array(), "any"), "1");
        echo "
\t\t\t";
        // line 67
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "saveButton", array(), "any"), "1");
        echo "
\t\t\t";
        // line 68
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "cancelButton", array(), "any"), "1");
        echo "
\t\t";
        // line 69
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endButtonRow", array(), "any"), "1");
        echo "

\t\t";
        // line 71
        echo "

\t\t<div id=\"tabs\" class=\"tabs\">
\t\t\t";
        // line 74
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tabs", array((isset($context['tabs']) ? $context['tabs'] : null), ), "method"), "1");
        echo "

\t\t\t<div id=\"modules\" class=\"";
        // line 76
        if (((isset($context['tab']) ? $context['tab'] : null)) && ((isset($context['tab']) ? $context['tab'] : null) != "modules")) {
            echo "ui-tabs-hide";
        }
        echo "\">
\t\t\t\t";
        // line 77
        $this->env->loadTemplate("settings.emailintegration.general.tpl")->display($context);
        echo "\t\t\t</div>

\t\t\t";
        // line 80
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['modules']) ? $context['modules'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['module']) {
            echo "\t\t\t\t";
            // line 81
            if ($this->getAttribute((isset($context['module']) ? $context['module'] : null), "enabled", array(), "any")) {
                echo "\t\t\t\t\t<input type=\"hidden\" name=\"";
                // line 82
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"), "1");
                echo "[isconfigured]\" value=\"";
                echo twig_default_filter(twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "isConfigured", array(), "any"), "1"), 0);
                echo "\" />
\t\t\t\t\t<input type=\"hidden\" name=\"";
                // line 83
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"), "1");
                echo "[rules]\" value=\"\" />
\t\t\t\t\t<div id=\"";
                // line 84
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"), "1");
                echo "\" class=\"";
                if ((isset($context['tab']) ? $context['tab'] : null) != $this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any")) {
                    echo "ui-tabs-hide";
                }
                echo "\">
\t\t\t\t\t\t";
                // line 85
                if ($this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "getSettingsTemplate", array(), "any")) {
                    echo "\t\t\t\t\t\t\t";
                    // line 86
                    $template = $this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "getSettingsTemplate", array(), "any");
                    if (!$template instanceof Twig_Template) {
                        $template = $this->env->loadTemplate($template);
                    }
                    $template->display($context);
                    echo "\t\t\t\t\t\t";
                } else {
                    // line 87
                    echo "\t\t\t\t\t\t\t";
                    // line 88
                    $this->env->loadTemplate("settings.emailintegration.common.tpl")->display($context);
                    echo "\t\t\t\t\t\t";
                }
                // line 89
                echo "\t\t\t\t\t</div>
\t\t\t\t";
            }
            // line 91
            echo "\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 92
        echo "\t\t</div>
\t</div>
</form>

<script language=\"javascript\" type=\"text/javascript\">//<![CDATA[
(function(\$){

\t\$(function(){
\t\t\$('#tabs').tabs({
\t\t\tselect: function(event, ui){
\t\t\t\t\$('#currentTab').val(ui.panel.id);
\t\t\t}
\t\t});

\t\t";
        // line 107
        if ((isset($context['tab']) ? $context['tab'] : null)) {
            echo "\$('#tabs').tabs('select', '";
            echo $this->getEnvironment()->getExtension('interspire')->jsFilter((isset($context['tab']) ? $context['tab'] : null));
            echo "');";
        }
        echo "
\t\t\$('.cancelButton').click(function(event){
\t\t\tevent.preventDefault();

\t\t\tif (confirm(\"";
        // line 112
        echo getLang("ConfirmCancel");
        echo "\")) { ";
        echo "
\t\t\t\tdocument.location.href = \"index.php?ToDo=viewEmailIntegrationSettings\";
\t\t\t}
\t\t});
\t});

})(jQuery);
//]]></script>
";
    }
    public function display(array $context)
    {
        // line 1
        $context['tooltip'] = $this->env->loadTemplate("tooltip.tpl", true);
        echo "
<link rel=\"stylesheet\" type=\"text/css\" href=\"Styles/shoppingcomparison.css\"/>
<form action=\"index.php?ToDo=saveShoppingComparison\" method=\"post\">
\t<div class=\"BodyContainer\">
\t\t<table class=\"Table13\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">
\t\t\t<tbody>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"Heading1\">";
        // line 9
        echo getLang("ShoppingComparisonManagePageTitle");
        echo "</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"Intro\">
\t\t\t\t\t\t<div>";
        // line 13
        echo twig_safe_filter((isset($context['Message']) ? $context['Message'] : null));
        echo "</div>
\t\t\t\t\t\t<p>";
        // line 14
        echo getLang("ShoppingComparisonManagePageDescription");
        echo "</p>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td>

\t\t\t\t\t\t<div id=\"tabs\">
\t\t\t\t\t\t\t<ul id=\"tabnav\">
\t\t\t\t\t\t\t\t<li><a href=\"#sites\">";
        // line 22
        echo getLang("ShoppingComparisonChooseSites");
        echo "</a></li>
\t\t\t\t\t\t\t\t";
        // line 23
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['modules']) ? $context['modules'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['module']) {
            echo "\t\t\t\t\t\t\t\t";
            // line 24
            if ($this->getAttribute((isset($context['module']) ? $context['module'] : null), "checkEnabled", array(), "method")) {
                echo "\t\t\t\t\t\t\t\t<li><a href=\"#";
                // line 25
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"), "1");
                echo "\">";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getName", array(), "method"), "1");
                echo "</a></li>
\t\t\t\t\t\t\t\t";
            }
            // line 26
            echo "\t\t\t\t\t\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 27
        echo "\t\t\t\t\t\t\t</ul>

\t\t\t\t\t\t\t";
        // line 30
        echo "
\t\t\t\t\t\t\t<div id=\"sites\">
\t\t\t\t\t\t\t\t<table class=\"Panel\">
\t\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<td class=\"FieldLabel\">";
        // line 35
        echo getLang("ShoppingComparisonSites");
        echo "</td>
\t\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t\t<select name=\"modules[]\" class=\"Field250 ISSelectReplacement\" multiple=\"multiple\" style=\"height: 108px;\">
\t\t\t\t\t\t\t\t\t\t\t\t\t";
        // line 38
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['modules']) ? $context['modules'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['module']) {
            echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"";
            // line 39
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getId", array(), "method"), "1");
            echo "\"";
            if ($this->getAttribute((isset($context['module']) ? $context['module'] : null), "checkEnabled", array(), "method")) {
                echo " selected=\"selected\"";
            }
            echo ">";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getName", array(), "method"), "1");
            echo "</option>
\t\t\t\t\t\t\t\t\t\t\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 40
        echo "\t\t\t\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t\t\t\t";
        // line 42
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['tooltip']) ? $context['tooltip'] : null), "tooltip", array("shoppingComparisonToolTip", "ShoppingComparisonToolTipTitle", "ShoppingComparisonToolTipContent", ), "method"), "1");
        echo "
\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<td class=\"Gap\" colspan=\"2\"></td>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t\t</table>

\t\t\t\t\t\t\t\t<table>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t<td style=\"width: 183px;\"></td>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<button class=\"FormButton\" type=\"submit\">";
        // line 55
        echo getLang("Save");
        echo "</button>
\t\t\t\t\t\t\t\t\t\t\t<button class=\"FormButton cancel\" type=\"button\">";
        // line 56
        echo getLang("Cancel");
        echo "</button>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t</div>

\t\t\t\t\t\t\t";
        // line 62
        echo "
\t\t\t\t\t\t\t";
        // line 63
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['modules']) ? $context['modules'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['module']) {
            echo "\t\t\t\t\t\t\t";
            // line 64
            if ($this->getAttribute((isset($context['module']) ? $context['module'] : null), "checkEnabled", array(), "method")) {
                echo "\t\t\t\t\t\t\t<div class=\"module\" id=\"";
                // line 65
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getId", array(), "method"), "1");
                echo "\">
\t\t\t\t\t\t\t\t<table class=\"Panel\">
\t\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t";
                // line 70
                $context['_parent'] = (array) $context;
                $context['_seq'] = twig_iterator_to_array($this->getAttribute((isset($context['module']) ? $context['module'] : null), "getLogos", array(), "method"));
                $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
                $length = $countable ? count($context['_seq']) : null;
                $context['loop'] = array(
                  'parent' => $context['_parent'],
                  'index0' => 0,
                  'index'  => 1,
                  'first'  => true,
                );
                if ($countable) {
                    $context['loop']['revindex0'] = $length - 1;
                    $context['loop']['revindex'] = $length;
                    $context['loop']['length'] = $length;
                    $context['loop']['last'] = 1 === $length;
                }
                foreach ($context['_seq'] as $context['_key'] => $context['logo']) {
                    echo "\t\t\t\t\t\t\t\t\t\t\t<a target=\"_blank\" href=\"";
                    // line 71
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context['logo']) ? $context['logo'] : null), "url", array(), "any"), "1");
                    echo "\">
\t\t\t\t\t\t\t\t\t\t\t<img class=\"ShoppingComparisonLogo\" src=\"";
                    // line 72
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context['logo']) ? $context['logo'] : null), "image", array(), "any"), "1");
                    echo "\"/>
\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t";
                    ++$context['loop']['index0'];
                    ++$context['loop']['index'];
                    $context['loop']['first'] = false;
                    if ($countable) {
                        --$context['loop']['revindex0'];
                        --$context['loop']['revindex'];
                        $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                    }
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['logo'], $context['_parent'], $context['loop']);
                $context = array_merge($_parent, array_intersect_key($context, $_parent));
                // line 74
                echo "
\t\t\t\t\t\t\t\t\t\t\t</td>

\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t\t<p>";
                // line 81
                echo twig_safe_filter($this->getAttribute((isset($context['module']) ? $context['module'] : null), "getHelpText", array(), "method"));
                echo "</p>

\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"content\">
\t\t\t\t\t\t\t\t\t\t\t\t";
                // line 84
                $context['_parent'] = (array) $context;
                $context['_seq'] = twig_iterator_to_array($this->getAttribute((isset($context['module']) ? $context['module'] : null), "getMessages", array(), "method"));
                $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
                $length = $countable ? count($context['_seq']) : null;
                $context['loop'] = array(
                  'parent' => $context['_parent'],
                  'index0' => 0,
                  'index'  => 1,
                  'first'  => true,
                );
                if ($countable) {
                    $context['loop']['revindex0'] = $length - 1;
                    $context['loop']['revindex'] = $length;
                    $context['loop']['length'] = $length;
                    $context['loop']['last'] = 1 === $length;
                }
                foreach ($context['_seq'] as $context['_key'] => $context['message']) {
                    echo "\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"MessageBox MessageBox";
                    // line 85
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context['message']) ? $context['message'] : null), "type", array(), "any"), "1");
                    echo "\">";
                    echo twig_safe_filter($this->getAttribute((isset($context['message']) ? $context['message'] : null), "content", array(), "any"));
                    echo "</div>
\t\t\t\t\t\t\t\t\t\t\t\t";
                    ++$context['loop']['index0'];
                    ++$context['loop']['index'];
                    $context['loop']['first'] = false;
                    if ($countable) {
                        --$context['loop']['revindex0'];
                        --$context['loop']['revindex'];
                        $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                    }
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
                $context = array_merge($_parent, array_intersect_key($context, $_parent));
                // line 86
                echo "\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t<button class='generateFeed smallbutton' value=\"Generate New Export\">Regenerate Feed...</button>
\t\t\t\t\t\t\t\t\t\t\t\t<button class='downloadFeed smallbutton' href=\"index.php?ToDo=downloadShoppingComparisonFeed&mid=";
                // line 89
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getId", array(), "method"), "1");
                echo "\">Download Feed File</button>
\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
            }
            // line 95
            echo "\t\t\t\t\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 96
        echo "\t\t\t\t\t\t</div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t</tbody>
\t\t</table>
\t</div>
</form>

<div id=\"unmappedCategoriesModal\" style=\"display: none;\">
\t<div class=\"ModalTitle\">Wait! 48 Categories Aren't Mapped Correctly</div>
\t<div class=\"ModalContent\">
\t\t<table class=\"Panel\" width=\"100%\">
\t\t\t<tr>
\t\t\t\t<td><span class=\"content\">
\t\t\t\t\t</span>
\t\t\t\t\t<span class=\"contentTemplate\" style=\"display:none\">

\t\t\t\t\t</span>
\t\t\t\t</td>
\t\t\t</tr>
\t\t</table>
\t</div>
\t<div class=\"ModalButtonRow\">
\t\t<input type=\"button\" class=\"generateFeed\" value=\"Generate Feed File Anyway\"/>
\t\t<input type=\"button\" class=\"close FormButton\" value=\"";
        // line 121
        echo getLang("Close");
        echo "\"/>
\t</div>
</div>

<script type=\"text/javascript\" src=\"script/jobtracker.js?";
        // line 125
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"script/shoppingcomparison.js?";
        // line 126
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type='text/javascript'>

(function(\$){
\$('document').ready(function(){
\t\$.extend(lang, {
\t\tShoppingComparisonUnmappedCategoriesModalTitle : \"";
        // line 132
        echo Interspire_Template_Extension::jsFilter(getLang("ShoppingComparisonUnmappedCategoriesModalTitle"), "'");
        echo "\",
\t\tShoppingComparisonUnmappedCategoriesModalHelp : \"";
        // line 133
        echo Interspire_Template_Extension::jsFilter(getLang("ShoppingComparisonUnmappedCategoriesModalHelp"), "'");
        echo "\",
\t\tShoppingComparisonFeedBeingGenerated : \"";
        // line 134
        echo Interspire_Template_Extension::jsFilter(getLang("ShoppingComparisonFeedBeingGenerated"), "'");
        echo "\",
\t\tConfirmCancel : \"";
        // line 135
        echo getLang("ConfirmCancel");
        echo "\"
\t});

\t\$.extend(ShoppingComparison, {
\t\tstartJobUrl : 'index.php?ToDo=generateShoppingComparisonFeed&mid=:moduleid',
\t\tstopJobUrl : 'index.php?ToDo=stopShoppingComparisonFeed&mid=:moduleid',
\t\tcategoriesUrl : 'index.php?ToDo=viewCategories'
\t});

\t";
        // line 144
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['modules']) ? $context['modules'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['module']) {
            echo "\t\t";
            // line 145
            if ($this->getAttribute((isset($context['module']) ? $context['module'] : null), "checkEnabled", array(), "method")) {
                echo "\t\t\tShoppingComparison.modules['";
                // line 146
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getId", array(), "method"), "1");
                echo "'] = {
\t\t\t\tname : '";
                // line 147
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getName", array(), "method"), "1");
                echo "',
\t\t\t\tjobid : '";
                // line 148
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "exportTask", array(), "method"), "getId", array(), "method"), "1");
                echo "',
\t\t\t\tunmappedCategories : ";
                // line 149
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "numUnmappedCategories", array(), "method"), "1");
                echo "
\t\t\t};
\t\t";
            }
            // line 151
            echo "\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 152
        echo "
\tShoppingComparison.init();
});
})(jQuery);
</script>";
    }
    public function display(array $context)
    {
        // line 1
        $context['util'] = $this->env->loadTemplate("macros/util.tpl", true);
        // line 2
        $context['formBuilder'] = $this->env->loadTemplate("macros/forms.tpl", true);
        echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../javascript/jquery/themes/cupertino/ui.all.css\" />
<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/jquery.htmlEncode.js?";
        // line 4
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>

<input type=\"hidden\" name=\"youTubeVideos\" id=\"youTubeVideos\" value=\"";
        // line 6
        echo twig_safe_filter((isset($context['YouTubeVideos']) ? $context['YouTubeVideos'] : null));
        echo "\">

<form enctype=\"multipart/form-data\" action=\"index.php?ToDo=";
        // line 8
        echo twig_safe_filter((isset($context['FormAction']) ? $context['FormAction'] : null));
        echo "\" id=\"frmProduct\" method=\"post\">
<input type=\"hidden\" name=\"productId\" id=\"productId\" value=\"";
        // line 9
        echo twig_safe_filter((isset($context['ProductId']) ? $context['ProductId'] : null));
        echo "\">
<input type=\"hidden\" name=\"productHash\" id=\"productHash\" value=\"";
        // line 10
        echo twig_safe_filter((isset($context['ProductHash']) ? $context['ProductHash'] : null));
        echo "\">
<input type=\"hidden\" name=\"originalProductId\" id=\"originalProductId\" value=\"";
        // line 11
        echo twig_safe_filter((isset($context['OriginalProductId']) ? $context['OriginalProductId'] : null));
        echo "\">
<input id=\"currentTab\" name=\"currentTab\" value=\"0\" type=\"hidden\">
<input id=\"productVariationExisting\" name=\"productVariationExisting\" value=\"";
        // line 13
        echo twig_safe_filter((isset($context['ProductVariationExisting']) ? $context['ProductVariationExisting'] : null));
        echo "\" type=\"hidden\">
<div id=\"youTubeData\" style=\"display: none;\"></div>
<div class=\"BodyContainer\">
\t<table cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\" style=\"margin-left: 4px; margin-top: 8px;\">
\t<tr>
\t\t<td class=\"Heading1\">";
        // line 18
        echo twig_safe_filter((isset($context['Title']) ? $context['Title'] : null));
        echo "</td>
\t</tr>
\t<tr>
\t\t<td class=\"Intro\">
\t\t\t<p>";
        // line 22
        echo twig_safe_filter((isset($context['Intro']) ? $context['Intro'] : null));
        echo "</p>
\t\t\t<div id=\"MainMessage\">
\t\t\t\t";
        // line 24
        echo twig_safe_filter((isset($context['Message']) ? $context['Message'] : null));
        echo "
\t\t\t</div>
\t\t\t<p>
\t\t\t\t<input type=\"submit\" disabled=\"disabled\" value=\"";
        // line 27
        echo getLang("SaveAndExit");
        echo "\" class=\"FormButton\" />
\t\t\t\t<input type=\"submit\" disabled=\"disabled\" value=\"";
        // line 28
        echo twig_safe_filter((isset($context['SaveAndAddAnother']) ? $context['SaveAndAddAnother'] : null));
        echo "\" onclick=\"SaveAndAddAnother()\" class=\"FormButton\" style=\"width:130px\" />
\t\t\t\t<input type=\"reset\" value=\"";
        // line 29
        echo getLang("Cancel");
        echo "\" class=\"FormButton\" onclick=\"ConfirmCancel()\" />
\t\t\t</p>
\t\t</td>
\t</tr>
\t<tr>
\t\t<td>
\t\t\t<ul id=\"tabnav\">
\t\t\t\t<li><a href=\"#\" class=\"active\" id=\"tab0\" onclick=\"ShowTab(0)\">";
        // line 36
        echo getLang("Details");
        echo "</a></li>
\t\t\t\t<li style=\"display: ";
        // line 37
        echo twig_safe_filter((isset($context['HideDigitalOptions']) ? $context['HideDigitalOptions'] : null));
        echo "\"><a href=\"#\" id=\"tab2\" class=\"ShowOnDigitalProduct\" onclick=\"ShowTab(2)\" style=\"display: none;\">";
        echo getLang("DigitalDownloads");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab8\" onclick=\"ShowTab(8)\">";
        // line 38
        echo getLang("ImagesVideos");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab1\" onclick=\"ShowTab(1)\">";
        // line 39
        echo getLang("EventDate");
        echo "</a></li>
\t\t\t\t<li style=\"display: ";
        // line 40
        echo twig_safe_filter((isset($context['HideInventoryOptions']) ? $context['HideInventoryOptions'] : null));
        echo "\"><a href=\"#\" id=\"tab3\" class=\"HideOnDigitalProduct\" onclick=\"ShowTab(3)\">";
        echo getLang("Inventory");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab4\" onclick=\"ShowTab(4)\" class=\"HideOnDigitalProduct\">";
        // line 41
        echo getLang("Variations");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab5\" onclick=\"ShowTab(5)\">";
        // line 42
        echo getLang("ConfigurableCustomFields");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab6\" onclick=\"ShowTab(6)\">";
        // line 43
        echo getLang("OtherDetails");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab7\" onclick=\"ShowTab(7)\">";
        // line 44
        echo getLang("DiscountRules");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab9\" onclick=\"ShowTab(9)\">";
        // line 45
        echo getLang("GoogleWebsiteOptimizer");
        echo "</a></li>
\t\t\t</ul>
\t\t</td>
\t</tr>
\t<tr>
\t\t<td>
\t\t\t<!-- Start product details -->
\t\t\t<div id=\"div0\" style=\"padding-top: 10px;\">
\t\t\t\t<div style=\"padding-bottom:5px\">";
        // line 53
        echo getLang("CatalogInformationIntro");
        echo "</div>
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 56
        echo getLang("CatalogInformation");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 60
        echo getLang("ProductType");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<div id=\"ProductType\" class=\"Field\" style=\"float:left\">
\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t<input ";
        // line 65
        echo twig_safe_filter((isset($context['ProdType_1']) ? $context['ProdType_1'] : null));
        echo " id=\"ProductType_0\" type=\"radio\" name=\"prodtype\" value=\"1\" onclick=\"ToggleType(0)\"/><label for=\"ProductType_0\">";
        echo getLang("PhysicalProduct");
        echo "</label>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t<input ";
        // line 68
        echo twig_safe_filter((isset($context['ProdType_2']) ? $context['ProdType_2'] : null));
        echo " id=\"ProductType_1\" type=\"radio\" name=\"prodtype\" value=\"2\" onclick=\"ToggleType(1)\" /><label for=\"ProductType_1\">";
        echo getLang("DownloadableProduct");
        echo "</label>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d1');\" onmouseover=\"ShowHelp('d1', '";
        // line 71
        echo getLang("ProductType");
        echo "', '";
        echo getLang("ProductTypeHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" style=\"margin-top: 5px;\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d1\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 77
        echo getLang("ProductName");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodName\" name=\"prodName\" class=\"Field400\" value=\"";
        // line 80
        echo twig_safe_filter((isset($context['ProdName']) ? $context['ProdName'] : null));
        echo "\">
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 85
        echo getLang("ProductCodeSKU");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodCode\" name=\"prodCode\" class=\"Field400\" value=\"";
        // line 88
        echo twig_safe_filter((isset($context['ProdCode']) ? $context['ProdCode'] : null));
        echo "\">
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d2');\" onmouseover=\"ShowHelp('d2', '";
        // line 89
        echo getLang("ProductCodeSKU");
        echo "', '";
        echo getLang("ProductCodeSKUHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d2\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 95
        echo getLang("Categories");
        echo ":<br />
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;<span style=\"";
        // line 96
        echo twig_safe_filter((isset($context['HideCategoryCreation']) ? $context['HideCategoryCreation'] : null));
        echo "\">(<a href=\"#\" onclick=\"CreateNewCategory(); return false;\">";
        echo getLang("CreateNew");
        echo "</a>)</span>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select size=\"5\" id=\"category\" name=\"category[]\" class=\"Field400 ISSelectReplacement\" multiple=\"multiple\" style=\"height: 140px;\">
\t\t\t\t\t\t\t";
        // line 100
        echo twig_safe_filter((isset($context['CategoryOptions']) ? $context['CategoryOptions'] : null));
        echo "
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d3');\" onmouseover=\"ShowHelp('d3', '";
        // line 102
        echo getLang("Categories");
        echo "', '";
        echo getLang("ProductCategoriesHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d3\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr style=\"";
        // line 106
        echo twig_safe_filter((isset($context['HideVendorOption']) ? $context['HideVendorOption'] : null));
        echo "\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 108
        echo getLang("Vendor");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<span style=\"";
        // line 111
        echo twig_safe_filter((isset($context['HideVendorLabel']) ? $context['HideVendorLabel'] : null));
        echo "\">";
        echo twig_safe_filter((isset($context['CurrentVendor']) ? $context['CurrentVendor'] : null));
        echo "</span>
\t\t\t\t\t\t\t<select name=\"vendor\" id=\"vendor\" class=\"Field400\" style=\"";
        // line 112
        echo twig_safe_filter((isset($context['HideVendorSelect']) ? $context['HideVendorSelect'] : null));
        echo "\" onchange=\"toggleVendorSettings(\$(this).val());\">
\t\t\t\t\t\t\t\t";
        // line 113
        echo twig_safe_filter((isset($context['VendorList']) ? $context['VendorList'] : null));
        echo "
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<img style=\"";
        // line 115
        echo twig_safe_filter((isset($context['HideVendorSelect']) ? $context['HideVendorSelect'] : null));
        echo "\" onmouseout=\"HideHelp('vendorhelp');\" onmouseover=\"ShowHelp('vendorhelp', '";
        echo getLang("Vendor");
        echo "', '";
        echo getLang("ProductVendorHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"vendorhelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t  <td class=\"Heading2\" colspan=2>";
        // line 122
        echo getLang("ProductDescription");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td colspan=\"2\">
\t\t\t\t\t\t\t";
        // line 126
        echo twig_safe_filter((isset($context['WYSIWYG']) ? $context['WYSIWYG'] : null));
        echo "
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 132
        echo getLang("ProductPriceOptions");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 136
        echo getLang("PreorderAvailability");
        echo "</td>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<div><label><input type=\"radio\" name=\"_prodorderable\" id=\"_prodorderable_yes\" value=\"yes\" ";
        // line 139
        if ((isset($context['_prodorderable']) ? $context['_prodorderable'] : null) == "yes") {
            echo "checked=\"checked\"";
        }
        echo " /> ";
        echo getLang("ThisProductCanBePurchasedInMyOnlineStore");
        echo "</label></div>

\t\t\t\t\t\t\t<div><label><input type=\"radio\" name=\"_prodorderable\" id=\"_prodorderable_pre\" value=\"pre\" ";
        // line 141
        if ((isset($context['_prodorderable']) ? $context['_prodorderable'] : null) == "pre") {
            echo "checked=\"checked\"";
        }
        echo " /> ";
        echo getLang("ThisProductIsComingSoonButIWantToTakePreOrders");
        echo "</label></div>
\t\t\t\t\t\t\t<div class=\"_prodorderable_detail\" id=\"_prodorderable_pre_detail\" style=\"display:none;\">
\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" alt=\"\" style=\"vertical-align: middle;\" /> ";
        // line 144
        echo getLang("Message");
        echo ": <input type=\"text\" name=\"prodpreordermessage\" id=\"prodpreordermessage\" class=\"Field300\" value=\"";
        echo twig_escape_filter($this->env, (isset($context['prodpreordermessage']) ? $context['prodpreordermessage'] : null), "1");
        echo "\" maxlength=\"250\" />
\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('PreorderMessageHelp');\" onmouseover=\"ShowHelp('PreorderMessageHelp', '";
        // line 145
        echo Interspire_Template_Extension::jsFilter(getLang("PreorderMessage"), "'");
        echo "?', '";
        echo Interspire_Template_Extension::jsFilter(getLang("PreorderMessageHelp"), "'");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"PreorderMessageHelp\"></div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" alt=\"\" style=\"vertical-align: middle;\" /> ";
        // line 149
        echo getLang("ReleaseDate");
        echo ": <input type=\"text\" name=\"prodreleasedate\" id=\"prodreleasedate\" class=\"Field80\" value=\"";
        echo twig_escape_filter($this->env, (isset($context['prodreleasedate']) ? $context['prodreleasedate'] : null), "1");
        echo "\" />
\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"prodreleasedateremove\" id=\"prodreleasedateremove\" ";
        // line 150
        if ((isset($context['prodreleasedateremove']) ? $context['prodreleasedateremove'] : null)) {
            echo "checked=\"checked\"";
        }
        echo " /> <label for=\"prodreleasedateremove\" />";
        echo getLang("RemovePreOrderStatusOnThisDate");
        echo "</label>
\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('PreorderRemoveDateHelp');\" onmouseover=\"ShowHelp('PreorderRemoveDateHelp', '";
        // line 151
        echo Interspire_Template_Extension::jsFilter(getLang("RemovePreOrderStatusOnThisDate"), "'");
        echo "?', '";
        echo Interspire_Template_Extension::jsFilter(getLang("PreorderRemoveDateHelp"), "'");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"PreorderRemoveDateHelp\"></div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>

\t\t\t\t\t\t\t<div><label><input type=\"radio\" name=\"_prodorderable\" id=\"_prodorderable_no\" value=\"no\" ";
        // line 156
        if ((isset($context['_prodorderable']) ? $context['_prodorderable'] : null) == "no") {
            echo "checked=\"checked\"";
        }
        echo " /> ";
        echo getLang("ThisProductCannotBePurchasedInMyOnlineStore");
        echo "</label></div>
\t\t\t\t\t\t\t<div class=\"_prodorderable_detail\" id=\"_prodorderable_no_detail\" style=\"display:none;\">
\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" alt=\"\" style=\"vertical-align: middle;\" />
\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"prodHidePrices\" id=\"prodHidePrices\" value=\"1\" ";
        // line 160
        echo twig_safe_filter((isset($context['ProdHidePrice']) ? $context['ProdHidePrice'] : null));
        echo " onclick=\"ToggleCallForPricing()\" />
\t\t\t\t\t\t\t\t\t<label for=\"prodHidePrices\">";
        // line 161
        echo getLang("ProductCallForPricing");
        echo "</label>
\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('prodhidepriceshelp');\" onmouseover=\"ShowHelp('prodhidepriceshelp', '";
        // line 162
        echo Interspire_Template_Extension::jsFilter(getLang("ProductCallForPricing"), "'");
        echo "?', '";
        echo Interspire_Template_Extension::jsFilter(getLang("ProductCallForPricingHelp"), "'");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"prodhidepriceshelp\"></div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div id=\"prodCallForPricingLabelContainer\" style=\"margin-left: 18px; display:none;\">
\t\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" alt=\"\" style=\"vertical-align: middle;\" /> <label for=\"prodCallForPricingLabel\">";
        // line 166
        echo getLang("ProductCallForPricingLabel");
        echo ":</label> <input type=\"text\" name=\"prodCallForPricingLabel\" id=\"prodCallForPricingLabel\" class=\"Field250\" value=\"";
        echo twig_safe_filter((isset($context['ProdCallForPricingLabel']) ? $context['ProdCallForPricingLabel'] : null));
        echo "\" />
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 173
        echo getLang("Price");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t";
        // line 176
        echo twig_safe_filter((isset($context['CurrencyTokenLeft']) ? $context['CurrencyTokenLeft'] : null));
        echo " <input type=\"text\" id=\"prodPrice\" name=\"prodPrice\" class=\"Field80\" value=\"";
        echo twig_safe_filter((isset($context['ProdPrice']) ? $context['ProdPrice'] : null));
        echo "\" style=\"text-align: right;\" /> ";
        echo twig_safe_filter((isset($context['CurrencyTokenRight']) ? $context['CurrencyTokenRight'] : null));
        echo "
\t\t\t\t\t\t\t";
        // line 177
        if ((isset($context['enterPricesWithTax']) ? $context['enterPricesWithTax'] : null)) {
            echo "\t\t\t\t\t\t\t\t";
            // line 178
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "IncTax", array(), "any"), "1");
            echo "
\t\t\t\t\t\t\t";
        } else {
            // line 179
            echo "\t\t\t\t\t\t\t\t";
            // line 180
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ExTax", array(), "any"), "1");
            echo "
\t\t\t\t\t\t\t";
        }
        // line 181
        echo "\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d6');\" onmouseover=\"ShowHelp('d6', '";
        // line 182
        echo getLang("Price");
        echo "', '";
        echo getLang("PriceHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d6\"></div>
\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"ExpandLink\" onclick=\"toggle_price_options()\"><span id=\"more_price_options\">";
        // line 184
        echo getLang("MorePricingOptions");
        echo " &raquo;</span></a>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr id=\"tr_costprice\" style=\"display:none\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 189
        echo getLang("CostPrice");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t";
        // line 192
        echo twig_safe_filter((isset($context['CurrencyTokenLeft']) ? $context['CurrencyTokenLeft'] : null));
        echo " <input type=\"text\" id=\"prodCostPrice\" name=\"prodCostPrice\" class=\"Field80\" value=\"";
        echo twig_safe_filter((isset($context['ProdCostPrice']) ? $context['ProdCostPrice'] : null));
        echo "\" style=\"text-align: right;\" /> ";
        echo twig_safe_filter((isset($context['CurrencyTokenRight']) ? $context['CurrencyTokenRight'] : null));
        echo "
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d7');\" onmouseover=\"ShowHelp('d7', '";
        // line 193
        echo getLang("CostPrice");
        echo "', '";
        echo getLang("CostPriceHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d7\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr id=\"tr_retailprice\" style=\"display:none\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 199
        echo getLang("RetailPrice");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t";
        // line 202
        echo twig_safe_filter((isset($context['CurrencyTokenLeft']) ? $context['CurrencyTokenLeft'] : null));
        echo " <input type=\"text\" id=\"prodRetailPrice\" name=\"prodRetailPrice\" class=\"Field80\" value=\"";
        echo twig_safe_filter((isset($context['ProdRetailPrice']) ? $context['ProdRetailPrice'] : null));
        echo "\" style=\"text-align: right;\" /> ";
        echo twig_safe_filter((isset($context['CurrencyTokenRight']) ? $context['CurrencyTokenRight'] : null));
        echo "
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d8');\" onmouseover=\"ShowHelp('d8', '";
        // line 203
        echo getLang("RetailPrice");
        echo "', '";
        echo getLang("RetailPriceHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d8\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr id=\"tr_saleprice\" style=\"display:none\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 209
        echo getLang("SalePrice");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t";
        // line 212
        echo twig_safe_filter((isset($context['CurrencyTokenLeft']) ? $context['CurrencyTokenLeft'] : null));
        echo " <input type=\"text\" id=\"prodSalePrice\" name=\"prodSalePrice\" class=\"Field80\" value=\"";
        echo twig_safe_filter((isset($context['ProdSalePrice']) ? $context['ProdSalePrice'] : null));
        echo "\" style=\"text-align: right;\" /> ";
        echo twig_safe_filter((isset($context['CurrencyTokenRight']) ? $context['CurrencyTokenRight'] : null));
        echo "
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d9');\" onmouseover=\"ShowHelp('d9', '";
        // line 213
        echo getLang("SalePrice");
        echo "', '";
        echo getLang("SalePriceHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d9\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 219
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ProductTaxClass", array(), "any"), "1");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t";
        // line 222
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("tax_class_id", (isset($context['taxClasses']) ? $context['taxClasses'] : null), $this->getAttribute((isset($context['product']) ? $context['product'] : null), "tax_class_id", array(), "any"), array("class" => "Field250"), ), "method"), "1");
        // line 224
        echo "
\t\t\t\t\t\t\t";
        // line 225
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ProductTaxClass", "ProductTaxClassHelp", ), "method"), "1");
        echo "
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t<table width=\"100%\" class=\"Panel HideOnDigitalProduct\" id=\"shipping_table\">
\t\t\t\t\t<tr>
\t\t\t\t\t  <td class=\"Heading2\" colspan=2>";
        // line 231
        echo getLang("ShippingDetails");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 235
        echo getLang("ProductWeight");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodWeight\" name=\"prodWeight\" class=\"Field80\" value=\"";
        // line 238
        echo twig_safe_filter((isset($context['ProdWeight']) ? $context['ProdWeight'] : null));
        echo "\" style=\"text-align: right;\" /> ";
        echo twig_safe_filter((isset($context['WeightMeasurement']) ? $context['WeightMeasurement'] : null));
        echo "
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d14');\" onmouseover=\"ShowHelp('d14', '";
        // line 239
        echo getLang("ProductWeight");
        echo "', '";
        echo twig_safe_filter((isset($context['ProductWeightHelp']) ? $context['ProductWeightHelp'] : null));
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d14\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 245
        echo getLang("ProductWidth");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodWidth\" name=\"prodWidth\" class=\"Field80\" value=\"";
        // line 248
        echo twig_safe_filter((isset($context['ProdWidth']) ? $context['ProdWidth'] : null));
        echo "\" style=\"text-align: right;\" /> ";
        echo twig_safe_filter((isset($context['LengthMeasurement']) ? $context['LengthMeasurement'] : null));
        echo "
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d15');\" onmouseover=\"ShowHelp('d15', '";
        // line 249
        echo getLang("ProductWidth");
        echo "', '";
        echo twig_safe_filter((isset($context['ProductWidthHelp']) ? $context['ProductWidthHelp'] : null));
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d15\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 255
        echo getLang("ProductHeight");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodHeight\" name=\"prodHeight\" class=\"Field80\" value=\"";
        // line 258
        echo twig_safe_filter((isset($context['ProdHeight']) ? $context['ProdHeight'] : null));
        echo "\" style=\"text-align: right;\" /> ";
        echo twig_safe_filter((isset($context['LengthMeasurement']) ? $context['LengthMeasurement'] : null));
        echo "
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d16');\" onmouseover=\"ShowHelp('d16', '";
        // line 259
        echo getLang("ProductHeight");
        echo "', '";
        echo twig_safe_filter((isset($context['ProductHeightHelp']) ? $context['ProductHeightHelp'] : null));
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d16\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 265
        echo getLang("ProductDepth");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodDepth\" name=\"prodDepth\" class=\"Field80\" value=\"";
        // line 268
        echo twig_safe_filter((isset($context['ProdDepth']) ? $context['ProdDepth'] : null));
        echo "\" style=\"text-align: right;\" /> ";
        echo twig_safe_filter((isset($context['LengthMeasurement']) ? $context['LengthMeasurement'] : null));
        echo "
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d17');\" onmouseover=\"ShowHelp('d17', '";
        // line 269
        echo getLang("ProductDepth");
        echo "', '";
        echo twig_safe_filter((isset($context['ProductDepthHelp']) ? $context['ProductDepthHelp'] : null));
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d17\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 275
        echo getLang("FixedShippingCost");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t";
        // line 278
        echo twig_safe_filter((isset($context['CurrencyTokenLeft']) ? $context['CurrencyTokenLeft'] : null));
        echo " <input type=\"text\" id=\"prodFixedCost\" name=\"prodFixedCost\" class=\"Field80\" style=\"width:70px; text-align: right;\" value=\"";
        echo twig_safe_filter((isset($context['ProdFixedShippingCost']) ? $context['ProdFixedShippingCost'] : null));
        echo "\" onkeyup=\"document.getElementById('prodFreeShipping').checked=false\"> ";
        echo twig_safe_filter((isset($context['CurrencyTokenRight']) ? $context['CurrencyTokenRight'] : null));
        echo "
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d21');\" onmouseover=\"ShowHelp('d21', '";
        // line 279
        echo getLang("FixedShippingCost");
        echo "', '";
        echo getLang("FixedShippingCostHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d21\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 285
        echo getLang("FreeShipping");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"prodFreeShipping\" name=\"prodFreeShipping\" value=\"1\" ";
        // line 288
        echo twig_safe_filter((isset($context['FreeShipping']) ? $context['FreeShipping'] : null));
        echo " onclick=\"if(this.checked) { document.getElementById('prodFixedCost').value='0'; }\"> <label for=\"prodFreeShipping\">";
        echo getLang("YesFreeShipping");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d30');\" onmouseover=\"ShowHelp('d30', '";
        // line 289
        echo getLang("FreeShipping");
        echo "', '";
        echo getLang("FreeShippingProductHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d30\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</div> <!-- End product details -->

\t\t\t<!-- Start event/delivery date -->
\t\t\t<div id=\"div1\" style=\"padding-top: 10px;\">
\t\t\t\t<div style=\"padding-bottom:5px\">";
        // line 298
        echo getLang("EventDateIntro");
        echo "</div>
\t\t\t\t  <table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t  <td class=\"Heading2\" colspan=2>";
        // line 301
        echo getLang("EventDate");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">&nbsp;&nbsp;&nbsp;";
        // line 304
        echo getLang("EventDateRequired");
        echo "</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label><input id=\"EventDateRequired\" name=\"EventDateRequired\" type=\"checkbox\" ";
        // line 306
        echo twig_safe_filter((isset($context['EventDateRequired']) ? $context['EventDateRequired'] : null));
        echo " /> ";
        echo getLang("EventDateRequiredInfo");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('ed1');\" onmouseover=\"ShowHelp('ed1', '";
        // line 307
        echo getLang("EventDateRequiredHelpHeader");
        echo "', '";
        echo getLang("EventDateRequiredHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" style=\"margin-top: 5px;\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"ed1\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr id=\"DateFieldNameTR\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span>
\t\t\t\t\t\t\t";
        // line 314
        echo getLang("EventDateFieldName");
        echo "\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input id=\"EventDateFieldName\" name=\"EventDateFieldName\" value=\"";
        // line 317
        echo twig_safe_filter((isset($context['EventDateFieldName']) ? $context['EventDateFieldName'] : null));
        echo "\" type=\"text\" class=\"Field300\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('ed2');\" onmouseover=\"ShowHelp('ed2', '";
        // line 318
        echo getLang("EventDateFieldNameHelpHeader");
        echo "', '";
        echo getLang("EventDateFieldNameHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" style=\"margin-top: 5px;\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"ed2\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr id=\"DateLimitTR\">
\t\t\t\t\t\t<td class=\"FieldLabel\">&nbsp;&nbsp;&nbsp;";
        // line 323
        echo getLang("EventDateLimit");
        echo "\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style=\"padding-bottom: 10px;\">
\t\t\t\t\t\t\t<label><input id=\"LimitDates\" name=\"LimitDates\" type=\"checkbox\" ";
        // line 326
        echo twig_safe_filter((isset($context['LimitDates']) ? $context['LimitDates'] : null));
        echo " /> ";
        echo getLang("EventDateLimitInfo");
        echo "</label>
\t\t\t\t\t\t\t<select id=\"LimitDatesSelect\" name=\"LimitDatesSelect\">
\t\t\t\t\t\t\t\t<option value=\"1\" ";
        // line 328
        echo twig_safe_filter((isset($context['LimitDateOption1']) ? $context['LimitDateOption1'] : null));
        echo ">";
        echo getLang("EventDateLimitOption1");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"2\" ";
        // line 329
        echo twig_safe_filter((isset($context['LimitDateOption2']) ? $context['LimitDateOption2'] : null));
        echo ">";
        echo getLang("EventDateLimitOption2");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"3\" ";
        // line 330
        echo twig_safe_filter((isset($context['LimitDateOption3']) ? $context['LimitDateOption3'] : null));
        echo ">";
        echo getLang("EventDateLimitOption3");
        echo "</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t";
        // line 332
        echo getLang("EventDateLimitInfo2");
        echo "\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('ed3');\" onmouseover=\"ShowHelp('ed3', '";
        // line 333
        echo getLang("EventDateLimitHelpHeader");
        echo "', '";
        echo getLang("EventDateLimitHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" style=\"margin-top: 5px;\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"ed3\"></div>
\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\t<div id=\"LimitDates1\">
\t\t\t\t\t\t\t\t<img style=\"float: left;\" src=\"images/nodejoin.gif\"/>
\t\t\t\t\t\t\t\t<span id=customDate7 style=\"float : left; display:block; margin-top:2px;\">&nbsp;
\t\t\t\t\t\t\t\t";
        // line 339
        echo getLang("EventDateLimitOption1Info");
        echo "\t\t\t\t\t\t\t\t<select name=\"Calendar1[From][Day]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 341
        echo twig_safe_filter((isset($context['OverviewFromDays']) ? $context['OverviewFromDays'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<select name=\"Calendar1[From][Mth]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 344
        echo twig_safe_filter((isset($context['OverviewFromMonths']) ? $context['OverviewFromMonths'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<select name=\"Calendar1[From][Yr]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 347
        echo twig_safe_filter((isset($context['OverviewFromYears']) ? $context['OverviewFromYears'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<span class=body>";
        // line 349
        echo getLang("EventDateLimitOption1Info2");
        echo "</span>
\t\t\t\t\t\t\t\t<select name=\"Calendar1[To][Day]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 351
        echo twig_safe_filter((isset($context['OverviewToDays']) ? $context['OverviewToDays'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<select name=\"Calendar1[To][Mth]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 354
        echo twig_safe_filter((isset($context['OverviewToMonths']) ? $context['OverviewToMonths'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<select name=\"Calendar1[To][Yr]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 357
        echo twig_safe_filter((isset($context['OverviewToYears']) ? $context['OverviewToYears'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t</span>&nbsp;
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div id=\"LimitDates2\">
\t\t\t\t\t\t\t\t<img style=\"float: left;\" src=\"images/nodejoin.gif\"/>
\t\t\t\t\t\t\t\t<span id=customDate7 style=\"float : left; display:block; margin-top:2px;\">&nbsp;
\t\t\t\t\t\t\t\t";
        // line 364
        echo getLang("EventDateLimitOption2Info");
        echo "\t\t\t\t\t\t\t\t<select name=\"Calendar2[From][Day]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 366
        echo twig_safe_filter((isset($context['OverviewFromDays']) ? $context['OverviewFromDays'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<select name=\"Calendar2[From][Mth]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 369
        echo twig_safe_filter((isset($context['OverviewFromMonths']) ? $context['OverviewFromMonths'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<select name=\"Calendar2[From][Yr]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 372
        echo twig_safe_filter((isset($context['OverviewFromYears']) ? $context['OverviewFromYears'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t</span>&nbsp;
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div id=\"LimitDates3\">
\t\t\t\t\t\t\t\t<img style=\"float: left;\" src=\"images/nodejoin.gif\"/>
\t\t\t\t\t\t\t\t<span id=customDate7 style=\"float : left; display:block; margin-top:2px;\">&nbsp;
\t\t\t\t\t\t\t\t";
        // line 379
        echo getLang("EventDateLimitOption3Info");
        echo "\t\t\t\t\t\t\t\t<select name=\"Calendar3[To][Day]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 381
        echo twig_safe_filter((isset($context['OverviewToDays']) ? $context['OverviewToDays'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<select name=\"Calendar3[To][Mth]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 384
        echo twig_safe_filter((isset($context['OverviewToMonths']) ? $context['OverviewToMonths'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<select name=\"Calendar3[To][Yr]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 387
        echo twig_safe_filter((isset($context['OverviewToYears']) ? $context['OverviewToYears'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t</span>&nbsp;
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t </table>
\t\t\t</div> <!-- End event/delivery date -->

\t\t\t<!-- Start download file -->
\t\t\t<div id=\"div2\" style=\"padding-top: 10px;\">
\t\t\t\t<div style=\"padding-bottom:5px\">";
        // line 398
        echo getLang("ProductDownloadIntro");
        echo "</div>
\t\t\t\t<div id=\"DownloadStatus\"></div>
\t\t\t\t  <table class=\"Panel\">
\t\t\t\t\t<tr id=\"ExistingDownloads\" style=\"display: ";
        // line 401
        echo twig_safe_filter((isset($context['DisplayDownloaadGrid']) ? $context['DisplayDownloaadGrid'] : null));
        echo ";\">
\t\t\t\t\t\t<td style=\"padding-top: 5px;\" colspan=\"2\" >
\t\t\t\t\t\t\t<table class=\"GridPanel\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" id=\"ExistingDownloadsGrid\" style=\"width:100%;\">
\t\t\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t\t\t<tr class=\"Heading3\">
\t\t\t\t\t\t\t\t\t\t<td align=\"center\">&nbsp;</td>
\t\t\t\t\t\t\t\t\t\t<td>";
        // line 407
        echo getLang("FileName");
        echo "</td>
\t\t\t\t\t\t\t\t\t\t<td align=\"right\" nowrap=\"nowrap\">";
        // line 408
        echo getLang("FileSize");
        echo "</td>
\t\t\t\t\t\t\t\t\t\t<td align=\"right\"><span onmouseover=\"ShowQuickHelp(this, '";
        // line 409
        echo getLang("Downloads");
        echo "', '";
        echo getLang("DownloadsHelp");
        echo "');\" onmouseout=\"HideQuickHelp(this);\" class=\"HelpText\">";
        echo getLang("Downloads");
        echo "</span></td>
\t\t\t\t\t\t\t\t\t\t<td nowrap=\"nowrap\">";
        // line 410
        echo getLang("MaximumDownloads");
        echo "</td>
\t\t\t\t\t\t\t\t\t\t<td nowrap=\"nowrap\">";
        // line 411
        echo getLang("ExpiresAfterHeader");
        echo "</td>
\t\t\t\t\t\t\t\t\t\t<td>";
        // line 412
        echo getLang("Action");
        echo "</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t";
        // line 416
        echo twig_safe_filter((isset($context['DownloadsGrid']) ? $context['DownloadsGrid'] : null));
        echo "
\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr id=\"DownloadUploadGap\" style=\"display: ";
        // line 421
        echo twig_safe_filter((isset($context['DisplayDownloadUploadGap']) ? $context['DisplayDownloadUploadGap'] : null));
        echo "\">
\t\t\t\t\t\t<td class=\"Sep\" colspan=\"2\">&nbsp;</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr style=\"display: ";
        // line 424
        echo twig_safe_filter((isset($context['DisplayDownloadUploadHeading']) ? $context['DisplayDownloadUploadHeading'] : null));
        echo "\">
\t\t\t\t\t\t<td class=\"Heading2\" id=\"DownloadUploadHeading\" colspan=\"2\">";
        // line 425
        echo getLang("DigitalDownloadUploadHeading");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tbody id=\"NewDownload\" style=\"display: ";
        // line 427
        echo twig_safe_filter((isset($context['DisplayNewDownload']) ? $context['DisplayNewDownload'] : null));
        echo "\">
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 430
        echo getLang("DownloadDescription");
        echo ":
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t<input type=\"text\" name=\"downdescription\" id=\"DownloadDescription\" class=\"Field200\" />
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr id=\"EditDownload\" style=\"display: none;\">
\t\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 438
        echo getLang("EditExistingDownload");
        echo ":
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t<td id=\"EditDownloadFile\">
\t\t\t\t\t\t\t&nbsp;
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr id=\"NewDownloadUpload\">
\t\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 446
        echo getLang("UploadNewDownload");
        echo ":
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"downloadid\" id=\"CurrentDownloadId\" value=\"\" />
\t\t\t\t\t\t\t\t<div id=\"StatusUploading\" style=\"display: none;\">
\t\t\t\t\t\t\t\t\t<input type=\"button\" class=\"SmallButton\" disabled=\"disabled\" value=\"";
        // line 451
        echo getLang("SavingDownload");
        echo "\" />
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<label><input id=\"ProductImportUseUpload\" type=\"radio\" name=\"useserver\" value=\"0\" checked=\"checked\" onclick=\"ToggleSource();\" /> ";
        // line 453
        echo getLang("ImportFileUpload");
        echo " ";
        echo getLang("MaxUploadSize");
        echo "</label>
\t\t\t\t\t\t\t\t<div id=\"StatusNormal\">
\t\t\t\t\t\t\t\t\t<input type=\"file\" class=\"Field\" name=\"newdownload\" id=\"NewDownloadFile\" />
\t\t\t\t\t\t\t\t\t<span id=\"EditDownloadButtons\" style=\"display: none;\">
\t\t\t\t\t\t\t\t\t\t<input type=\"button\" value=\"";
        // line 457
        echo getLang("SaveDownload");
        echo "\" onclick=\"saveDownload();\" class=\"SmallButton\" style=\"width: 90px;\" />
\t\t\t\t\t\t\t\t\t\t<input type=\"button\" value=\"";
        // line 458
        echo getLang("CancelEdit");
        echo "\" onclick=\"cancelDownloadEdit();\" class=\"SmallButton\" style=\"width: 60px\" />
\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<span style=\"font-size: 11px; font-style: italic;\">";
        // line 461
        echo getLang("MaxUploadSize");
        echo "</span>
\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t<label><input id=\"ProductImportUseServer\" type=\"radio\" name=\"useserver\" value=\"1\" onclick=\"ToggleSource();\" /> ";
        // line 463
        echo getLang("ImportProductFileServer");
        echo "</label>
\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('i1');\" onmouseover=\"ShowHelp('i1', '";
        // line 464
        echo getLang("ImportProductFileServer");
        echo "', '";
        echo getLang("ImportProductFileServerDesc");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t\t\t<div style=\"display: none;\" id=\"i1\"></div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div id=\"ProductImportServerField\" style=\"margin-left: 25px; display: none;\">
\t\t\t\t\t\t\t\t\t<select name=\"serverfile\" id=\"ServerFile\" class=\"Field250\">
\t\t\t\t\t\t\t\t\t\t<option value=\"\">";
        // line 469
        echo getLang("ImportChooseFile");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t";
        // line 470
        echo twig_safe_filter((isset($context['ServerFiles']) ? $context['ServerFiles'] : null));
        echo "
\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div id=\"ProductImportServerNoList\" style=\"margin: 5px 0 0 25px; display: none; font-style: italic;\" class=\"Field500\">
\t\t\t\t\t\t\t\t\t";
        // line 474
        echo getLang("FieldNoServerFilesProductDownloads");
        echo "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 481
        echo getLang("ExpiresAfter");
        echo ":
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t<input type=\"text\" name=\"downexpiresafter\" id=\"DownloadExpiresAfter\" class=\"Field40\" />
\t\t\t\t\t\t\t\t<select name=\"downloadexpiresrange\" id=\"DownloadExpiresRange\">
\t\t\t\t\t\t\t\t\t<option value=\"days\">";
        // line 486
        echo getLang("RangeDays");
        echo "</option>
\t\t\t\t\t\t\t\t\t<option value=\"weeks\">";
        // line 487
        echo getLang("RangeWeeks");
        echo "</option>
\t\t\t\t\t\t\t\t\t<option value=\"months\">";
        // line 488
        echo getLang("RangeMonths");
        echo "</option>
\t\t\t\t\t\t\t\t\t<option value=\"years\">";
        // line 489
        echo getLang("RangeYears");
        echo "</option>
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('dlexpires');\" onmouseover=\"ShowHelp('dlexpires', '";
        // line 491
        echo getLang("ExpiresAfter");
        echo "', '";
        echo getLang("ExpiresAfterHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"dlexpires\"></div>
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 497
        echo getLang("MaximumDownloads");
        echo ":
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t<input type=\"text\" name=\"downmaxdownloads\" id=\"DownloadMaxDownloads\" class=\"Field40\" />
\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('dldownloads');\" onmouseover=\"ShowHelp('dldownloads', '";
        // line 501
        echo getLang("MaximumDownloads");
        echo "', '";
        echo getLang("MaximumDownloadsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"dldownloads\"></div>
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td clas=\"FieldLabel\">&nbsp;</td>
\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t<input type=\"button\" value=\"";
        // line 508
        echo getLang("AttachFile");
        echo "\" onclick=\"attachFile();\" class=\"FormButton Field120\" />
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td>&nbsp;</td>
\t\t\t\t\t\t\t<td>

\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t</tbody>
\t\t\t\t  </table>
\t\t\t</div> <!-- End download file -->

\t\t\t<!-- Start inventory tracking -->
\t\t\t<div id=\"div3\" style=\"padding-top: 10px;\">
\t\t\t\t<div style=\"padding-bottom:5px\">";
        // line 523
        echo getLang("InventoryTrackingIntro");
        echo "</div>
\t\t\t\t  <table class=\"Panel\" id=\"tabInventory\">
\t\t\t\t\t<tr>
\t\t\t\t\t  <td class=\"Heading2\" colspan=2>";
        // line 526
        echo getLang("InventoryTracking");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 530
        echo getLang("TrackingMethod");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"radio\" id=\"prodInvTrack_0\" name=\"prodInvTrack\" value=\"0\" onclick=\"ToggleProductInventoryOptions(false); toggleVariationInventoryColumns();\" ";
        // line 533
        echo twig_safe_filter((isset($context['InvTrack_0']) ? $context['InvTrack_0'] : null));
        echo "> <label for=\"prodInvTrack_0\">";
        echo getLang("DoNotTrackInventory");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d23');\" onmouseover=\"ShowHelp('d23', '";
        // line 534
        echo getLang("TrackingMethod");
        echo "', '";
        echo getLang("TrackingMethodHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d23\"></div><br />
\t\t\t\t\t\t\t<input type=\"radio\" id=\"prodInvTrack_1\" name=\"prodInvTrack\" value=\"1\" onclick=\"ToggleProductInventoryOptions(true); toggleVariationInventoryColumns();\" ";
        // line 536
        echo twig_safe_filter((isset($context['InvTrack_1']) ? $context['InvTrack_1'] : null));
        echo "> <label for=\"prodInvTrack_1\">";
        echo getLang("TrackInvForProduct");
        echo "</label><br />
\t\t\t\t\t\t\t<div id=\"divTrackProd\" style=\"display: ";
        // line 537
        echo twig_safe_filter((isset($context['HideProductInventoryOptions']) ? $context['HideProductInventoryOptions'] : null));
        echo "; padding-left:30pt; padding-top:3pt; padding-bottom:3pt\">
\t\t\t\t\t\t\t\t<table border=\"0\">
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t";
        // line 541
        echo getLang("CurrentStockLevel");
        echo ":
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"prodCurrentInv\" name=\"prodCurrentInv\" class=\"Field50\" value=\"";
        // line 544
        echo twig_safe_filter((isset($context['CurrentStockLevel']) ? $context['CurrentStockLevel'] : null));
        echo "\">
\t\t\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d24');\" onmouseover=\"ShowHelp('d24', '";
        // line 545
        echo getLang("CurrentStockLevel");
        echo "', '";
        echo getLang("CurrentStockLevelHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d24\"></div>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t";
        // line 551
        echo getLang("LowStockLevel1");
        echo ":
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"prodLowInv\" name=\"prodLowInv\" class=\"Field50\" value=\"";
        // line 554
        echo twig_safe_filter((isset($context['LowStockLevel']) ? $context['LowStockLevel'] : null));
        echo "\">
\t\t\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d25');\" onmouseover=\"ShowHelp('d25', '";
        // line 555
        echo getLang("LowStockLevel");
        echo "', '";
        echo getLang("LowStockLevelHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d25\"></div>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<input type=\"radio\" id=\"prodInvTrack_2\" name=\"prodInvTrack\" value=\"2\" onclick=\"ToggleProductInventoryOptions(false); toggleVariationInventoryColumns();\" ";
        // line 562
        echo twig_safe_filter((isset($context['InvTrack_2']) ? $context['InvTrack_2'] : null));
        echo "> <label for=\"prodInvTrack_2\">";
        echo getLang("TrackInvForProductOpt");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t </table>
\t\t\t</div><!-- End inventory tracking -->

\t\t\t<!-- Start product variations -->
\t\t\t<div id=\"div4\" style=\"padding-top: 10px;\">
\t\t\t\t<div style=\"padding-bottom:5px\">";
        // line 570
        echo getLang("ProductVariationsIntro");
        echo "</div>
\t\t\t\t  <table class=\"Panel\" id=\"tabInventory\">
\t\t\t\t\t<tr>
\t\t\t\t\t  <td class=\"Heading2\" colspan=2>";
        // line 573
        echo getLang("ProductVariationOptions");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 577
        echo getLang("ThisProduct");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style=\"padding-bottom:10px\">
\t\t\t\t\t\t\t<input type=\"radio\" name=\"useProdVariation\" id=\"useProdVariationNo\" value=\"0\" ";
        // line 580
        echo twig_safe_filter((isset($context['IsNoVariation']) ? $context['IsNoVariation'] : null));
        echo " /> <label for=\"useProdVariationNo\">";
        echo getLang("ProductWillNotUseVariation");
        echo "</label><br />
\t\t\t\t\t\t\t<input type=\"radio\" name=\"useProdVariation\" id=\"useProdVariationYes\" value=\"1\" ";
        // line 581
        echo twig_safe_filter((isset($context['IsYesVariation']) ? $context['IsYesVariation'] : null));
        echo " ";
        echo twig_safe_filter((isset($context['VariationDisabled']) ? $context['VariationDisabled'] : null));
        echo " /> <label for=\"useProdVariationYes\" id=\"variationLabel\" style=\"color:";
        echo twig_safe_filter((isset($context['VariationColor']) ? $context['VariationColor'] : null));
        echo "\">";
        echo getLang("ProductWillUseVariation");
        echo "</label>
\t\t\t\t\t\t\t<span style=\"display:";
        // line 582
        echo twig_safe_filter((isset($context['HideVariationList']) ? $context['HideVariationList'] : null));
        echo ";\" id=\"variationList\">
\t\t\t\t\t\t\t\t<select class=\"Field200\" name=\"variationId\" id=\"variationId\">
\t\t\t\t\t\t\t\t\t<option value=\"\">";
        // line 584
        echo getLang("ChooseAVariation");
        echo "</option>
\t\t\t\t\t\t\t\t\t";
        // line 585
        echo twig_safe_filter((isset($context['VariationOptions']) ? $context['VariationOptions'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<div style=\"padding-left:20px\">
\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"prodOptionsRequired\" id=\"prodOptionsRequired\" ";
        // line 588
        echo twig_safe_filter((isset($context['OptionsRequired']) ? $context['OptionsRequired'] : null));
        echo " value=\"ON\" /> <label for=\"prodOptionsRequired\">";
        echo getLang("ProductOptionRequired");
        echo "</label>
\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('dforceopt');\" onmouseover=\"ShowHelp('dforceopt', '";
        // line 589
        echo getLang("ProductOptionRequiredTitle");
        echo "', '";
        echo getLang("ProductOptionRequiredHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"dforceopt\"></div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t<div style=\"display:";
        // line 596
        echo twig_safe_filter((isset($context['HideVariationCombinationList']) ? $context['HideVariationCombinationList'] : null));
        echo "; margin-bottom:5px\" class=\"GridContainer\" id=\"variationCombinationsList\">
\t\t\t\t\t";
        // line 597
        echo twig_safe_filter((isset($context['VariationCombinationList']) ? $context['VariationCombinationList'] : null));
        echo "
\t\t\t\t</div>
\t\t\t</div><!-- End product variations -->

\t\t\t<!-- Start custom fields -->
\t\t\t<div id=\"div5\" style=\"padding-top: 10px;\">
\t\t\t\t<div style=\"padding-bottom:5px\">";
        // line 603
        echo getLang("CustomFieldsIntro");
        echo "</div>
\t\t\t\t  <table class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t  <td class=\"Heading2\" colspan=2>";
        // line 606
        echo getLang("CustomFields");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t  </table>
\t\t\t\t  <table class=\"Panel\" id=\"CustomFieldsContainer\">
\t\t\t\t  <tbody>
\t\t\t\t\t";
        // line 611
        echo twig_safe_filter((isset($context['CustomFields']) ? $context['CustomFields'] : null));
        echo "
\t\t\t\t  </tbody>
\t\t\t\t  </table>
\t\t\t\t  <div style=\"padding:10px 0px 10px 5px\">";
        // line 614
        echo getLang("ConfigurableFieldsIntro");
        echo "</div>
\t\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"4\">";
        // line 617
        echo getLang("ConfigurableFields");
        echo "</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t</table>
\t\t\t\t\t<input type=\"hidden\" id=\"FieldLastKey\" value=\"";
        // line 620
        echo twig_safe_filter((isset($context['FieldLastKey']) ? $context['FieldLastKey'] : null));
        echo "\" />
\t\t\t\t\t<table width=\"100%\" class=\"Panel\" id=\"ProductFieldsContainer\">
\t\t\t\t\t\t";
        // line 622
        echo twig_safe_filter((isset($context['ProductFields']) ? $context['ProductFields'] : null));
        echo "
\t\t\t\t\t</table>
\t\t\t</div><!-- End custom fields -->

\t\t\t<!-- Start related products -->
\t\t\t<div id=\"div6\" style=\"padding-top: 10px;\">
\t\t\t\t<div style=\"padding-bottom:5px\">";
        // line 628
        echo getLang("RelatedProductsIntro");
        echo "</div>
\t\t\t\t  <table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t  <td class=\"Heading2\" colspan=2>";
        // line 631
        echo getLang("RelatedProducts");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 635
        echo getLang("RelatedProducts");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"prodRelatedAuto\" name=\"prodRelatedAuto\" value=\"1\" onclick=\"toggle_related_auto(this.checked)\" ";
        // line 638
        echo twig_safe_filter((isset($context['IsProdRelatedAuto']) ? $context['IsProdRelatedAuto'] : null));
        echo "> <label for=\"prodRelatedAuto\">";
        echo getLang("ProductRelatedOptionsAutomatically");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d34');\" onmouseover=\"ShowHelp('d34', '";
        // line 639
        echo getLang("RelatedProducts");
        echo "', '";
        echo getLang("RelatedProductsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d34\"></div>
\t\t\t\t\t\t\t<blockquote id=\"relatedProductsBoxes\">
\t\t\t\t\t\t\t\t<select id=\"relCategory\" size=\"10\" name=\"relCategory\" class=\"Field400\" onchange=\"GetProducts(this)\">
\t\t\t\t\t\t\t\t\t";
        // line 643
        echo twig_safe_filter((isset($context['RelatedCategoryOptions']) ? $context['RelatedCategoryOptions'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<br />
\t\t\t\t\t\t\t\t<select size=\"10\" id=\"relProducts\" name=\"relProducts\" onDblClick=\"AddRelatedProduct(this)\" class=\"Field400\">
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<br />
\t\t\t\t\t\t\t\t* <em>";
        // line 649
        echo getLang("DoubleClickToAdd");
        echo "</em><br />
\t\t\t\t\t\t\t\t<select multiple size=\"5\" id=\"related\" name=\"prodRelatedProducts[]\" onDblClick=\"RemoveRelatedProduct(this)\" class=\"Field400\">";
        // line 650
        echo twig_safe_filter((isset($context['RelatedProductOptions']) ? $context['RelatedProductOptions'] : null));
        echo "</select><br />
\t\t\t\t\t\t\t\t* <em>";
        // line 651
        echo getLang("DoubleClickToRemove");
        echo "</em><br />
\t\t\t\t\t\t\t</blockquote>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t </table>
\t\t\t\t <br />
\t\t\t\t<div style=\"padding-bottom:5px\">";
        // line 657
        echo getLang("OtherDetailsIntro");
        echo "</div>
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 660
        echo getLang("OtherDetails");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 664
        echo getLang("ProductWarranty");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<textarea id=\"prodWarranty\" name=\"prodWarranty\" class=\"Field400\" rows=\"5\">";
        // line 667
        echo twig_safe_filter((isset($context['ProdWarranty']) ? $context['ProdWarranty'] : null));
        echo "</textarea>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d18');\" onmouseover=\"ShowHelp('d18', '";
        // line 668
        echo getLang("ProductWarranty");
        echo "', '";
        echo getLang("ProductWarrantyHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d18\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 674
        echo getLang("TemplateLayoutFile");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"prodlayoutfile\" id=\"prodlayoutfile\" class=\"Field400\">
\t\t\t\t\t\t\t\t";
        // line 678
        echo twig_safe_filter((isset($context['LayoutFiles']) ? $context['LayoutFiles'] : null));
        echo "
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('templatelayout');\" onmouseover=\"ShowHelp('templatelayout', '";
        // line 680
        echo getLang("TemplateLayoutFile");
        echo "', '";
        echo getLang("ProductTemplateLayoutFileHelp1");
        echo twig_safe_filter((isset($context['template']) ? $context['template'] : null));
        echo getLang("ProductTemplateLayoutFileHelp2");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"templatelayout\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 686
        echo getLang("BrandName");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"brandbox\" id=\"brandbox\" class=\"Field200\">
\t\t\t\t\t\t\t\t<option value=\"\">";
        // line 690
        echo getLang("ChooseAnExistingBrand");
        echo "</option>
\t\t\t\t\t\t\t\t";
        // line 691
        echo twig_safe_filter((isset($context['BrandNameOptions']) ? $context['BrandNameOptions'] : null));
        echo "
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<span style=\"";
        // line 693
        echo twig_safe_filter((isset($context['HideAddBrandBox']) ? $context['HideAddBrandBox'] : null));
        echo "\">
\t\t\t\t\t\t\t\t";
        // line 694
        echo getLang("OrCreateANewBrand");
        echo ":
\t\t\t\t\t\t\t\t<input type=\"text\" id=\"brandname\" name=\"brandname\" class=\"Field100\" style=\"width:120px\" value=\"";
        // line 695
        echo twig_safe_filter((isset($context['BrandName']) ? $context['BrandName'] : null));
        echo "\">
\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d33');\" onmouseover=\"ShowHelp('d33', '";
        // line 697
        echo getLang("BrandName");
        echo "', '";
        echo twig_safe_filter((isset($context['BrandNameProdHelp']) ? $context['BrandNameProdHelp'] : null));
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d33\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 703
        echo getLang("ProductUPC");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodUPC\" name=\"prodUPC\" class=\"Field400\" value=\"";
        // line 706
        echo twig_safe_filter((isset($context['ProdUPC']) ? $context['ProdUPC'] : null));
        echo "\">
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d28');\" onmouseover=\"ShowHelp('d28', '";
        // line 707
        echo getLang("ProductUPC");
        echo "', '";
        echo getLang("ProductUPCHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d28\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 713
        echo getLang("SearchKeywords");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodSearchKeywords\" name=\"prodSearchKeywords\" class=\"Field400\" value=\"";
        // line 716
        echo twig_safe_filter((isset($context['ProdSearchKeywords']) ? $context['ProdSearchKeywords'] : null));
        echo "\">
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d19');\" onmouseover=\"ShowHelp('d19', '";
        // line 717
        echo getLang("SearchKeywords");
        echo "', '";
        echo getLang("SearchKeywordsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d19\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 723
        echo getLang("ProductTags");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodTags\" name=\"prodTags\" class=\"Field400\" value=\"";
        // line 726
        echo twig_safe_filter((isset($context['ProdTags']) ? $context['ProdTags'] : null));
        echo "\">
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d19');\" onmouseover=\"ShowHelp('d19', '";
        // line 727
        echo getLang("ProductTags");
        echo "', '";
        echo getLang("ProductTagsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d19\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 733
        echo getLang("Availability");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodAvailability\" name=\"prodAvailability\" class=\"Field400\" value=\"";
        // line 736
        echo twig_safe_filter((isset($context['ProdAvailability']) ? $context['ProdAvailability'] : null));
        echo "\">
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d27');\" onmouseover=\"ShowHelp('d27', '";
        // line 737
        echo getLang("Availability");
        echo "', '";
        echo getLang("AvailabilityHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d27\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 743
        echo getLang("Visible");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"prodVisible\" name=\"prodVisible\" value=\"1\" ";
        // line 746
        echo twig_safe_filter((isset($context['ProdVisible']) ? $context['ProdVisible'] : null));
        echo "> <label for=\"prodVisible\">";
        echo getLang("YesProductVisible");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 751
        echo getLang("FeaturedProduct");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<div style=\"";
        // line 754
        echo twig_safe_filter((isset($context['HideStoreFeatured']) ? $context['HideStoreFeatured'] : null));
        echo "\">
\t\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"prodFeatured\" name=\"prodFeatured\" value=\"1\" ";
        // line 755
        echo twig_safe_filter((isset($context['ProdFeatured']) ? $context['ProdFeatured'] : null));
        echo "> <label for=\"prodFeatured\">";
        echo getLang("YesProductFeatured");
        echo "</label>
\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d11');\" onmouseover=\"ShowHelp('d11', '";
        // line 756
        echo getLang("FeaturedProduct");
        echo "', '";
        echo getLang("FeaturedProductHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d11\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div style=\"";
        // line 759
        echo twig_safe_filter((isset($context['HideVendorFeatured']) ? $context['HideVendorFeatured'] : null));
        echo "\" id=\"vendorFeaturedToggle\">
\t\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"prodvendorfeatured\" name=\"prodvendorfeatured\" value=\"1\" ";
        // line 760
        echo twig_safe_filter((isset($context['ProdVendorFeatured']) ? $context['ProdVendorFeatured'] : null));
        echo "> <label for=\"prodvendorfeatured\">";
        echo getLang("YesProductVendorFeatured");
        echo "</label>
\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('prodvendorfeaturedhelp');\" onmouseover=\"ShowHelp('prodvendorfeaturedhelp', '";
        // line 761
        echo getLang("VendorFeaturedProduct");
        echo "', '";
        echo getLang("VendorFeaturedProductHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"prodvendorfeaturedhelp\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr class=\"HideOnDigitalProduct\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 769
        echo getLang("GiftWrapping");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label><input type=\"radio\" onclick=\"ToggleGiftWrapping(this.value)\" name=\"prodwraptype\" value=\"default\" ";
        // line 772
        echo twig_safe_filter((isset($context['WrappingOptionsDefaultChecked']) ? $context['WrappingOptionsDefaultChecked'] : null));
        echo " /> ";
        echo getLang("ProductGiftWrappingDefault");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('prodwrappinghelp');\" onmouseover=\"ShowHelp('prodwrappinghelp', '";
        // line 773
        echo getLang("GiftWrapping");
        echo "', '";
        echo getLang("GiftWrappingHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"prodwrappinghelp\"></div><br />
\t\t\t\t\t\t\t<label style=\"display: black;\"><input type=\"radio\" onclick=\"ToggleGiftWrapping(this.value)\" name=\"prodwraptype\" value=\"none\" ";
        // line 775
        echo twig_safe_filter((isset($context['WrappingOptionsNoneChecked']) ? $context['WrappingOptionsNoneChecked'] : null));
        echo " /> ";
        echo getLang("ProductGiftWrappingNone");
        echo "</label>
\t\t\t\t\t\t\t<label style=\"display: block;\"><input type=\"radio\" onclick=\"ToggleGiftWrapping(this.value)\" name=\"prodwraptype\" id=\"prodwraptype_custom\" value=\"custom\" ";
        // line 776
        echo twig_safe_filter((isset($context['WrappingOptionsCustomChecked']) ? $context['WrappingOptionsCustomChecked'] : null));
        echo " /> ";
        echo getLang("ProductGiftWrappingCustom");
        echo "</label>
\t\t\t\t\t\t\t<div style=\"";
        // line 777
        echo twig_safe_filter((isset($context['HideGiftWrappingOptions']) ? $context['HideGiftWrappingOptions'] : null));
        echo "\" id=\"GiftWrapOptions\">
\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" alt=\"\" style=\"float: left; margin-right: 10px;\" />
\t\t\t\t\t\t\t\t<select name=\"prodwrapoptions[]\" id=\"prodwrapoptions\" multiple=\"multiple\" size=\"10\" class=\"Field300 ISSelectReplacement\">
\t\t\t\t\t\t\t\t\t";
        // line 780
        echo twig_safe_filter((isset($context['WrappingOptions']) ? $context['WrappingOptions'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 788
        echo getLang("SortOrder");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodSortOrder\" name=\"prodSortOrder\" class=\"Field80\" style=\"width:30px\" value=\"";
        // line 791
        echo twig_safe_filter((isset($context['ProdSortOrder']) ? $context['ProdSortOrder'] : null));
        echo "\">
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d20');\" onmouseover=\"ShowHelp('d20', '";
        // line 792
        echo getLang("SortOrder");
        echo "', '";
        echo getLang("SortOrderHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d20\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 798
        echo getLang("ProductCondition");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"prodCondition\" id=\"prodCondition\">
\t\t\t\t\t\t\t\t<option value=\"New\" ";
        // line 802
        echo twig_safe_filter((isset($context['ProdConditionNewSelected']) ? $context['ProdConditionNewSelected'] : null));
        echo ">";
        echo getLang("ConditionNew");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"Used\" ";
        // line 803
        echo twig_safe_filter((isset($context['ProdConditionUsedSelected']) ? $context['ProdConditionUsedSelected'] : null));
        echo ">";
        echo getLang("ConditionUsed");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"Refurbished\" ";
        // line 804
        echo twig_safe_filter((isset($context['ProdConditionRefurbishedSelected']) ? $context['ProdConditionRefurbishedSelected'] : null));
        echo ">";
        echo getLang("ConditionRefurbished");
        echo "</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('dcond');\" onmouseover=\"ShowHelp('dcond', '";
        // line 806
        echo getLang("ProductCondition");
        echo "', '";
        echo getLang("ProductConditionHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"dcond\"></div>
\t\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"prodShowCondition\" id=\"prodShowCondition\" value=\"1\" ";
        // line 808
        echo twig_safe_filter((isset($context['ProdShowCondition']) ? $context['ProdShowCondition'] : null));
        echo " />";
        echo getLang("ShowConditionOnProduct");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 813
        echo getLang("ProductMinimumQuantity");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodminqty\" name=\"prodminqty\" class=\"Field50\" value=\"";
        // line 816
        echo twig_escape_filter($this->env, (isset($context['prodminqty']) ? $context['prodminqty'] : null), "1");
        echo "\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('ProductMinimumQuantityHelp');\" onmouseover=\"ShowHelp('ProductMinimumQuantityHelp', '";
        // line 817
        echo getLang("ProductMinimumQuantity");
        echo "', '";
        echo getLang("ProductMinimumQuantityHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"ProductMinimumQuantityHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 823
        echo getLang("ProductMaximumQuantity");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodmaxqty\" name=\"prodmaxqty\" class=\"Field50\" value=\"";
        // line 826
        echo twig_escape_filter($this->env, (isset($context['prodmaxqty']) ? $context['prodmaxqty'] : null), "1");
        echo "\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('ProductMaximumQuantityHelp');\" onmouseover=\"ShowHelp('ProductMaximumQuantityHelp', '";
        // line 827
        echo getLang("ProductMaximumQuantity");
        echo "', '";
        echo getLang("ProductMaximumQuantityHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"ProductMaximumQuantityHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 832
        echo getLang("SearchEngineOptimization");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 836
        echo getLang("PageTitle");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodPageTitle\" name=\"prodPageTitle\" class=\"Field400\" value=\"";
        // line 839
        echo twig_safe_filter((isset($context['ProdPageTitle']) ? $context['ProdPageTitle'] : null));
        echo "\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('pagetitlehelp');\" onmouseover=\"ShowHelp('pagetitlehelp', '";
        // line 840
        echo getLang("PageTitle");
        echo "', '";
        echo getLang("ProdPageTitleHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"pagetitlehelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 846
        echo getLang("MetaKeywords");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodMetaKeywords\" name=\"prodMetaKeywords\" class=\"Field400\" value=\"";
        // line 849
        echo twig_safe_filter((isset($context['ProdMetaKeywords']) ? $context['ProdMetaKeywords'] : null));
        echo "\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('metataghelp');\" onmouseover=\"ShowHelp('metataghelp', '";
        // line 850
        echo getLang("MetaKeywords");
        echo "', '";
        echo getLang("MetaKeywordsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"metataghelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 856
        echo getLang("MetaDescription");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodMetaDesc\" name=\"prodMetaDesc\" class=\"Field400\" value=\"";
        // line 859
        echo twig_safe_filter((isset($context['ProdMetaDesc']) ? $context['ProdMetaDesc'] : null));
        echo "\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('metadeschelp');\" onmouseover=\"ShowHelp('metadeschelp', '";
        // line 860
        echo getLang("MetaDescription");
        echo "', '";
        echo getLang("MetaDescriptionHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"metadeschelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t<td></td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 868
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "FacebookOpenGraphSettings", array(), "any"), "1");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 872
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ObjectType", array(), "any"), "1");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t";
        // line 875
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("OpenGraphObjectType", (isset($context['openGraphTypes']) ? $context['openGraphTypes'] : null), (isset($context['openGraphSelectedType']) ? $context['openGraphSelectedType'] : null), array("class" => "Field100"), ), "method"), "1");
        echo "
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 880
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Title", array(), "any"), "1");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"OpenGraphUseProductName\" id=\"OpenGraphUseProductName\" value=\"1\" ";
        // line 883
        if ((isset($context['openGraphUseProductName']) ? $context['openGraphUseProductName'] : null)) {
            echo "checked=\"checked\"";
        }
        echo " />";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "UseProductName", array(), "any"), "1");
        echo "</label>
\t\t\t\t\t\t\t<div class=\"NodeJoin\" ";
        // line 884
        if ((isset($context['openGraphUseProductName']) ? $context['openGraphUseProductName'] : null)) {
            echo "style=\"display: none;\"";
        }
        echo ">
\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" style=\"vertical-align: middle;\" alt=\"\" />
\t\t\t\t\t\t\t\t<input type=\"text\" class=\"Field350\" name=\"OpenGraphTitle\" id=\"OpenGraphTitle\" value=\"";
        // line 886
        echo twig_escape_filter($this->env, (isset($context['openGraphTitle']) ? $context['openGraphTitle'] : null), "1");
        echo "\" />
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 892
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Description", array(), "any"), "1");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"OpenGraphUseMetaDescription\" id=\"OpenGraphUseMetaDescription\" value=\"1\" ";
        // line 895
        if ((isset($context['openGraphUseMetaDescription']) ? $context['openGraphUseMetaDescription'] : null)) {
            echo "checked=\"checked\"";
        }
        echo " />";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "UseMetaDescription", array(), "any"), "1");
        echo "</label>
\t\t\t\t\t\t\t<div class=\"NodeJoin\" ";
        // line 896
        if ((isset($context['openGraphUseMetaDescription']) ? $context['openGraphUseMetaDescription'] : null)) {
            echo "style=\"display: none;\"";
        }
        echo ">
\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" style=\"vertical-align: middle;\" alt=\"\" />
\t\t\t\t\t\t\t\t<input type=\"text\" class=\"Field350\" name=\"OpenGraphDescription\" id=\"OpenGraphDescription\" value=\"";
        // line 898
        echo twig_escape_filter($this->env, (isset($context['openGraphDescription']) ? $context['openGraphDescription'] : null), "1");
        echo "\" />
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 904
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Image", array(), "any"), "1");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label><input type=\"radio\" name=\"OpenGraphUseImage\" value=\"1\" ";
        // line 907
        if ((isset($context['openGraphUseImage']) ? $context['openGraphUseImage'] : null)) {
            echo "checked=\"checked\"";
        }
        echo " />";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "UseThumbnailImage", array(), "any"), "1");
        echo "</label>
\t\t\t\t\t\t\t<br />
\t\t\t\t\t\t\t<label><input type=\"radio\" name=\"OpenGraphUseImage\" value=\"0\" ";
        // line 909
        if ((isset($context['openGraphUseImage']) ? $context['openGraphUseImage'] : null) == false) {
            echo "checked=\"checked\"";
        }
        echo " />";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "DontUseImage", array(), "any"), "1");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td></td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 916
        echo getLang("MYOBSettings");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 920
        echo getLang("MYOBAsset");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" class=\"Field\" id=\"prodMYOBAsset\" name=\"prodMYOBAsset\" maxlength=\"6\" size=\"6\" value=\"";
        // line 923
        echo twig_safe_filter((isset($context['ProdMYOBAsset']) ? $context['ProdMYOBAsset'] : null));
        echo "\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('myobassethelp');\" onmouseover=\"ShowHelp('myobassethelp', '";
        // line 924
        echo getLang("MYOBAsset");
        echo "', '";
        echo getLang("MYOBAssetHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"myobassethelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 930
        echo getLang("MYOBIncome");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" class=\"Field\" id=\"prodMYOBIncome\" name=\"prodMYOBIncome\" maxlength=\"6\" size=\"6\" value=\"";
        // line 933
        echo twig_safe_filter((isset($context['ProdMYOBIncome']) ? $context['ProdMYOBIncome'] : null));
        echo "\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('myobincomehelp');\" onmouseover=\"ShowHelp('myobincomehelp', '";
        // line 934
        echo getLang("MYOBIncome");
        echo "', '";
        echo getLang("MYOBIncomeHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"myobincomehelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 940
        echo getLang("MYOBExpense");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" class=\"Field\" id=\"prodMYOBExpense\" name=\"prodMYOBExpense\" maxlength=\"6\" size=\"6\" value=\"";
        // line 943
        echo twig_safe_filter((isset($context['ProdMYOBExpense']) ? $context['ProdMYOBExpense'] : null));
        echo "\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('myobexpensehelp');\" onmouseover=\"ShowHelp('myobexpensehelp', '";
        // line 944
        echo getLang("MYOBExpense");
        echo "', '";
        echo getLang("MYOBExpenseHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"myobexpensehelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 949
        echo getLang("PeachtreeSettings");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 953
        echo getLang("PeachtreeGL");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" class=\"Field\" id=\"prodPeachtreeGL\" name=\"prodPeachtreeGL\" maxlength=\"20\" size=\"6\" value=\"";
        // line 956
        echo twig_safe_filter((isset($context['ProdPeachtreeGL']) ? $context['ProdPeachtreeGL'] : null));
        echo "\" />
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 960
        echo getLang("ShoppingComparison");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td colspan=\"2\"><p class=\"Intro\">";
        // line 963
        echo getLang("ShoppingComparisonInstructions");
        echo "</p></td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 967
        echo getLang("ShoppingComparisonIncludeProductIn");
        echo "\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"comparisons[]\" class=\"Field250 ISSelectReplacement\" multiple=\"multiple\" style=\"height: 108px;\">
\t\t\t\t\t\t\t\t";
        // line 971
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['shoppingComparisonModules']) ? $context['shoppingComparisonModules'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['module']) {
            echo "\t\t\t\t\t\t\t\t<option value=\"";
            // line 972
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getId", array(), "method"), "1");
            echo "\"";
            if ($this->getAttribute((isset($context['module']) ? $context['module'] : null), "selected", array(), "any")) {
                echo " selected=\"selected\"";
            }
            echo ">";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getName", array(), "method"), "1");
            echo "</option>
\t\t\t\t\t\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 973
        echo "\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t";
        // line 975
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['tooltip']) ? $context['tooltip'] : null), "tooltip", array("shoppingComparisonToolTip", "ShoppingComparisonProductToolTipTitle", "ShoppingComparisonProductToolTipContent", ), "method"), "1");
        echo "
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 979
        echo getLang("GoogleCheckoutSettings");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 983
        echo getLang("DisableGoogleCheckout");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"hidden\" name=\"prodDisableGoogleCheckout\" value=\"0\"/>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"prodDisableGoogleCheckout\" id=\"prodDisableGoogleCheckout\" value=\"1\" ";
        // line 987
        if ((isset($context['ProdDisableGoogleCheckout']) ? $context['ProdDisableGoogleCheckout'] : null) == 1) {
            echo "checked=\"checked\"";
        }
        echo " />
\t\t\t\t\t\t\t<label for=\"prodDisableGoogleCheckout\">";
        // line 988
        echo getLang("YesDisableGoogleCheckout");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('prodDisableGoogleCheckoutHelp');\" onmouseover=\"ShowHelp('prodDisableGoogleCheckoutHelp', '";
        // line 989
        echo Interspire_Template_Extension::jsFilter(getLang("DisableGoogleCheckout"), "'");
        echo "', '";
        echo Interspire_Template_Extension::jsFilter(getLang("DisableGoogleCheckoutHelp"), "'");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"prodDisableGoogleCheckoutHelp\"></div>

\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</div><!-- End related products -->

\t\t\t<!-- Start discount rules -->
\t\t\t<div id=\"div7\" style=\"padding-top: 10px;\">
\t\t\t\t<div style=\"padding-bottom:5px\">";
        // line 999
        echo getLang("DiscountRulesIntro");
        echo "</div>
\t\t\t\t<div id=\"DiscountRulesWarning\" class=\"MessageBox MessageBoxInfo\" style=\"display: ";
        // line 1000
        echo twig_safe_filter((isset($context['HideDiscountRulesWarningBox']) ? $context['HideDiscountRulesWarningBox'] : null));
        echo ";\">";
        echo twig_safe_filter((isset($context['DiscountRulesWarningText']) ? $context['DiscountRulesWarningText'] : null));
        echo "</div>
\t\t\t\t<div id=\"DiscountRulesDisplay\" style=\"display: ";
        // line 1001
        echo twig_safe_filter((isset($context['DiscountRulesWithWarning']) ? $context['DiscountRulesWithWarning'] : null));
        echo ";\">
\t\t\t\t\t<table class=\"Panel\">
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t  <td class=\"Heading2\" colspan=2>";
        // line 1004
        echo getLang("DiscountRules");
        echo "</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t</table>
\t\t\t\t\t<table class=\"Panel\" id=\"DiscountRulesContainer\">
\t\t\t\t\t<tbody>
\t\t\t\t\t\t";
        // line 1009
        echo twig_safe_filter((isset($context['DiscountRules']) ? $context['DiscountRules'] : null));
        echo "
\t\t\t\t\t</tbody>
\t\t\t\t\t</table>
\t\t\t\t</div>
\t\t\t</div><!-- End discount rules -->
\t\t\t<!-- Start images & videos -->
\t\t\t<div id=\"div8\" style=\"padding-top: 10px;\">
\t\t\t\t<table class=\"Panel\">
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1018
        echo getLang("ProductImages");
        echo "</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td colspan=\"2\">
\t\t\t\t\t\t<div style=\"margin:10px 0 6px 10px;\">";
        // line 1022
        echo getLang("ProductImagesIntroduction");
        echo "</div>

\t\t\t\t\t\t<div style=\"margin:11px 0 6px 6px;\">
\t\t\t\t\t\t\t<button class=\"Button\" id=\"productImagesDeleteSelected\" disabled=\"disabled\">";
        // line 1025
        echo getLang("DeleteSelected");
        echo "</button>
\t\t\t\t\t\t</div>

\t\t\t\t\t\t<table class=\"GridPanel productImagesTable\" cellspacing=\"0\">
\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t<tr class=\"Heading3\">
\t\t\t\t\t\t\t\t\t<td class=\"productImageCheck\" style=\"padding-left:5px;\"><input type=\"checkbox\" /></td>
\t\t\t\t\t\t\t\t\t<td class=\"productImageThumbDisplay\" style=\"width:";
        // line 1032
        echo twig_safe_filter((isset($context['productImage_thumbnailWidth']) ? $context['productImage_thumbnailWidth'] : null));
        echo "px;\">";
        echo getLang("Image");
        echo "</td>
\t\t\t\t\t\t\t\t\t<td class=\"productImageDescription\">";
        // line 1033
        echo getLang("Description");
        echo "</td>
\t\t\t\t\t\t\t\t\t<td class=\"productImageBaseThumb\"><span class=\"HelpText\" onmouseout=\"HideQuickHelp(this)\" onmouseover=\"ShowQuickHelp(this, '";
        // line 1034
        echo Interspire_Template_Extension::jsFilter(getLang("UseAsBaseThumbnail"), "'");
        echo "', '";
        echo Interspire_Template_Extension::jsFilter(getLang("UseAsBaseThumbnailHelpText"), "'");
        echo "')\">";
        echo getLang("UseAsBaseThumbnail");
        echo "</span></td>
\t\t\t\t\t\t\t\t\t<td class=\"productImageAction\">";
        // line 1035
        echo getLang("Action");
        echo "</td>
\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t</table>

\t\t\t\t\t\t<div class=\"productImagesListItem\" id=\"productImagesListItemNew\">
\t\t\t\t\t\t\t<table cellspacing=\"0\">
\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t<tr class=\"GridRowNoOver\">
\t\t\t\t\t\t\t\t\t\t<td class=\"productImageCheck\"><input type=\"checkbox\" /></td>
\t\t\t\t\t\t\t\t\t\t<td class=\"productImageThumbDisplay\" style=\"width:";
        // line 1045
        echo twig_safe_filter((isset($context['productImage_thumbnailWidth']) ? $context['productImage_thumbnailWidth'] : null));
        echo "px;\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"productImageNewPlaceholder\" style=\"width:";
        // line 1046
        echo twig_safe_filter((isset($context['productImage_thumbnailWidth']) ? $context['productImage_thumbnailWidth'] : null));
        echo "px; height:";
        echo twig_safe_filter((isset($context['productImage_thumbnailHeight']) ? $context['productImage_thumbnailHeight'] : null));
        echo "px;\"><div style=\"line-height:";
        echo twig_safe_filter((isset($context['productImage_thumbnailHeight']) ? $context['productImage_thumbnailHeight'] : null));
        echo "px;\"><span>";
        echo getLang("NewImage");
        echo "</span></div></div>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t<td class=\"productImageDescription\">
\t\t\t\t\t\t\t\t\t\t\t<p>";
        // line 1049
        echo getLang("ProductImagesSelectUploadMethod");
        echo "</p>
\t\t\t\t\t\t\t\t\t\t\t<ul>
\t\t\t\t\t\t\t\t\t\t\t\t<li><span id=\"productImageNewUploadPlaceholder\"></span><a id=\"productImageNewUpload\" class=\"ProductImageNewUpload\" href=\"#\">";
        // line 1051
        echo getLang("UploadAnImage");
        echo "</a> <span class=\"SwfUploadAlternativeNotice\" style=\"display:none;\">";
        echo getLang("ProductImagesBasicUploader");
        echo "</span></li>
\t\t\t\t\t\t\t\t\t\t\t\t<li><a id=\"productImageNewWeb\" href=\"#\">";
        // line 1052
        echo getLang("UseImageFromWeb");
        echo "</a></li>
\t\t\t\t\t\t\t\t\t\t\t\t<li><a id=\"productImageNewGallery\" href=\"#\">";
        // line 1053
        echo getLang("ChooseFromGallery");
        echo "</a></li>
\t\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t<td class=\"productImageBaseThumb\">&nbsp;</td>
\t\t\t\t\t\t\t\t\t\t<td class=\"productImageAction\">&nbsp;</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t</div>

\t\t\t\t\t\t";
        // line 1063
        echo twig_safe_filter((isset($context['productImagesList']) ? $context['productImagesList'] : null));
        echo "

\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t<table class=\"Panel\">
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1070
        echo getLang("YouTubeVideos");
        echo "</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"videoIntroRow\" colspan=\"2\">
\t\t\t\t\t\t";
        // line 1074
        echo getLang("YouTubeVideosIntro");
        echo "\t\t\t\t\t</td>
\t\t\t\t</tr>

\t\t\t\t<tr>
\t\t\t\t\t<td class=\"videoControlRow\" colspan=\"2\">
\t\t\t\t\t\t<input type=\"text\" class=\"Field250 exampleSearchText SetOriginalValue\" id=\"searchYouTube\" name=\"searchYouTube\" value=\"";
        // line 1080
        echo getLang("VideoTypeToSearch");
        echo "\" /> <input type=\"button\" class=\"Button\" value=\"";
        echo getLang("VideoFindVideos");
        echo "\" id=\"findVideosButton\" />
\t\t\t\t\t</td>
\t\t\t\t</tr>

\t\t\t\t<tr>
\t\t\t\t\t<td class=\"videoControlRow\" colspan=\"2\">
\t\t\t\t\t\t<div id=\"youtubeContainer\">
\t\t\t\t\t\t\t<div id=\"youtubeLeftBox\" class=\"youtubeVideoListBox\">
\t\t\t\t\t\t\t\t<ul id=\"youTubeSearchVideos\" style=\"display: none;\"></ul>
\t\t\t\t\t\t\t\t<div id=\"useSearchVideos\">";
        // line 1089
        echo getLang("VideoUseSearchField");
        echo "</div>
\t\t\t\t\t\t\t\t<div id=\"noSearchVideos\" style=\"display: none;\">";
        // line 1090
        echo getLang("VideoNoResults");
        echo "</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div id=\"youtubeJoinBox\">
\t\t\t\t\t\t\t\t<input type=\"button\" value=\"&raquo;\" style=\"width: 40px;\" id=\"addYouTubeVideos\" /><br /><br />
\t\t\t\t\t\t\t\t<input type=\"button\" value=\"&laquo;\" style=\"width: 40px;\" id=\"removeYouTubeVideos\" />
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div id=\"youtubeRightBox\" class=\"youtubeVideoListBox\">
\t\t\t\t\t\t\t\t<ul id=\"youTubeCurrentVideos\" style=\"display: none;\"></ul>
\t\t\t\t\t\t\t\t<div id=\"noCurrentVideos\">";
        // line 1098
        echo getLang("VideoClickToAdd");
        echo "</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</div><!-- End images & videos -->

\t\t\t<!-- Start Google website optimizer -->
\t\t\t<div id=\"div9\">
\t\t\t\t<p class=\"InfoTip\" style=\"margin-bottom: 15px; margin-top: 15px;\">";
        // line 1108
        echo twig_safe_filter((isset($context['GoogleWebsiteOptimizerIntro']) ? $context['GoogleWebsiteOptimizerIntro'] : null));
        echo "</p>

\t\t\t\t<table width=\"100%\" class=\"Panel\" style=\"margin-top: 0; padding-top: 0;  ";
        // line 1110
        echo twig_safe_filter((isset($context['ShowEnableGoogleWebsiteOptimzer']) ? $context['ShowEnableGoogleWebsiteOptimzer'] : null));
        echo "\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1112
        echo getLang("GoogleWebsiteOptimizer");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t";
        // line 1116
        echo getLang("EnableGoogleWebsiteOptimizer");
        echo "?
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input ";
        // line 1119
        echo twig_safe_filter((isset($context['DisableOptimizerCheckbox']) ? $context['DisableOptimizerCheckbox'] : null));
        echo " type=\"checkbox\" name=\"prodEnableOptimizer\" id=\"prodEnableOptimizer\" ";
        echo twig_safe_filter((isset($context['CheckEnableOptimizer']) ? $context['CheckEnableOptimizer'] : null));
        echo " onclick = \"ToggleOptimizerConfigForm(";
        echo twig_safe_filter((isset($context['SkipOptimizerConfirmMsg']) ? $context['SkipOptimizerConfirmMsg'] : null));
        echo ");\" />
\t\t\t\t\t\t\t<label for=\"prodEnableOptimizer\">";
        // line 1120
        echo getLang("YesEnableGoogleWebsiteOptimizer");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t";
        // line 1124
        echo twig_safe_filter((isset($context['OptimizerConfigForm']) ? $context['OptimizerConfigForm'] : null));
        echo "
\t\t\t</div>
\t\t\t<!-- End Google website optimizer -->

\t\t\t<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" width=\"100%\" class=\"PanelPlain\" id=\"SaveButtons\">
\t\t\t\t<tr>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"submit\" disabled=\"disabled\" value=\"";
        // line 1131
        echo getLang("SaveAndExit");
        echo "\" class=\"FormButton\" />
\t\t\t\t\t\t<input type=\"submit\" disabled=\"disabled\" value=\"";
        // line 1132
        echo twig_safe_filter((isset($context['SaveAndAddAnother']) ? $context['SaveAndAddAnother'] : null));
        echo "\" onclick=\"SaveAndAddAnother();\" class=\"FormButton\" style=\"width:130px\" />
\t\t\t\t\t\t<input type=\"reset\" value=\"";
        // line 1133
        echo getLang("Cancel");
        echo "\" class=\"FormButton\" onclick=\"ConfirmCancel()\" />
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t</table>
\t\t</td>
\t</tr>
\t</table>
</div>
</form>

<script type=\"text/javascript\" src=\"../javascript/jquery.growinguploader.js?";
        // line 1143
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/ajax.file.upload.js?";
        // line 1144
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"script/multiuploaddialog.js?";
        // line 1145
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\">//<![CDATA[
var shop = { config: { } };

shop.config.DiscountRulesEnabled = '";
        // line 1149
        echo twig_safe_filter((isset($context['DiscountRulesEnabled']) ? $context['DiscountRulesEnabled'] : null));
        echo "';
shop.config.NoCategoriesJS = '";
        // line 1150
        echo twig_safe_filter((isset($context['NoCategoriesJS']) ? $context['NoCategoriesJS'] : null));
        echo "';
shop.config.IsProdRelatedAuto = '";
        // line 1151
        echo twig_safe_filter((isset($context['IsProdRelatedAuto']) ? $context['IsProdRelatedAuto'] : null));
        echo "';
shop.config.CurrencyTokenLeft = '";
        // line 1152
        echo twig_safe_filter((isset($context['CurrencyTokenLeft']) ? $context['CurrencyTokenLeft'] : null));
        echo "';
shop.config.CurrencyTokenRight = '";
        // line 1153
        echo twig_safe_filter((isset($context['CurrencyTokenRight']) ? $context['CurrencyTokenRight'] : null));
        echo "';
shop.config.AppPath = '";
        // line 1154
        echo twig_safe_filter((isset($context['AppPath']) ? $context['AppPath'] : null));
        echo "';
shop.config.sessionid = '";
        // line 1155
        echo twig_safe_filter((isset($context['sessionid']) ? $context['sessionid'] : null));
        echo "';
shop.config.maxUploadSize = '";
        // line 1156
        echo twig_safe_filter((isset($context['maxUploadSize']) ? $context['maxUploadSize'] : null));
        echo "';

lang.DiscountRulesNotEnabledWarning = '";
        // line 1158
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesNotEnabledWarning"), "'");
        echo "';
lang.DiscountRulesVariationWarning = '";
        // line 1159
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesVariationWarning"), "'");
        echo "';
lang.PleaseWaitRelated = '";
        // line 1160
        echo Interspire_Template_Extension::jsFilter(getLang("PleaseWaitRelated"), "'");
        echo "';
lang.NoProdsInCat = '";
        // line 1161
        echo Interspire_Template_Extension::jsFilter(getLang("NoProdsInCat"), "'");
        echo "';
lang.PleaseChooseAProduct = '";
        // line 1162
        echo Interspire_Template_Extension::jsFilter(getLang("PleaseChooseAProduct"), "'");
        echo "';
lang.ProdAlreadyInRelatedList = '";
        // line 1163
        echo Interspire_Template_Extension::jsFilter(getLang("ProdAlreadyInRelatedList"), "'");
        echo "';
lang.MoreImages = '";
        // line 1164
        echo Interspire_Template_Extension::jsFilter(getLang("MoreImages"), "'");
        echo "';
lang.LessImages = '";
        // line 1165
        echo Interspire_Template_Extension::jsFilter(getLang("LessImages"), "'");
        echo "';
lang.EnterProductFieldName = '";
        // line 1166
        echo Interspire_Template_Extension::jsFilter(getLang("EnterProductFieldName"), "'");
        echo "';
lang.EnterProductFieldFileType = '";
        // line 1167
        echo Interspire_Template_Extension::jsFilter(getLang("EnterProductFieldFileType"), "'");
        echo "';
lang.EnterProductFieldFileSize = '";
        // line 1168
        echo Interspire_Template_Extension::jsFilter(getLang("EnterProductFieldFileSize"), "'");
        echo "';
lang.EnterValidProductFieldFileSize = '";
        // line 1169
        echo Interspire_Template_Extension::jsFilter(getLang("EnterValidProductFieldFileSize"), "'");
        echo "';
lang.DiscountRulesQuantityMinRequired = '";
        // line 1170
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesQuantityMinRequired"), "'");
        echo "';
lang.DiscountRulesQuantityMinInvalid = '";
        // line 1171
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesQuantityMinInvalid"), "'");
        echo "';
lang.DiscountRulesQuantityMaxRequired = '";
        // line 1172
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesQuantityMaxRequired"), "'");
        echo "';
lang.DiscountRulesQuantityMaxInvalid = '";
        // line 1173
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesQuantityMaxInvalid"), "'");
        echo "';
lang.DiscountRulesTypeRequired = '";
        // line 1174
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesTypeRequired"), "'");
        echo "';
lang.DiscountRulesTypeInvalid = '";
        // line 1175
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesTypeInvalid"), "'");
        echo "';
lang.DiscountRulesAmountRequired = '";
        // line 1176
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesAmountRequired"), "'");
        echo "';
lang.DiscountRulesAmountInvalid = '";
        // line 1177
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesAmountInvalid"), "'");
        echo "';
lang.DiscountRulesAmountPriceInvalid = '";
        // line 1178
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesAmountPriceInvalid"), "'");
        echo "';
lang.DiscountRulesAmountPercentInvalid = '";
        // line 1179
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesAmountPercentInvalid"), "'");
        echo "';
lang.DiscountRulesAmountPercentIsFloat = '";
        // line 1180
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesAmountPercentIsFloat"), "'");
        echo "';
lang.DiscountRulesAmountFixedInvalid = '";
        // line 1181
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesAmountFixedInvalid"), "'");
        echo "';
lang.DiscountRulesQuantityMinHigher = '";
        // line 1182
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesQuantityMinHigher"), "'");
        echo "';
lang.DiscountRulesQuantityBothAstrix = '";
        // line 1183
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesQuantityBothAstrix"), "'");
        echo "';
lang.DiscountRulesQuantityMinPrevMaxAstrix = '";
        // line 1184
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesQuantityMinPrevMaxAstrix"), "'");
        echo "';
lang.DiscountRulesQuantityMinOverlap = '";
        // line 1185
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesQuantityMinOverlap"), "'");
        echo "';
lang.DiscountRulesQuantityMaxOverlap = '";
        // line 1186
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesQuantityMaxOverlap"), "'");
        echo "';
lang.EnterProdName = '";
        // line 1187
        echo Interspire_Template_Extension::jsFilter(getLang("EnterProdName"), "'");
        echo "';
lang.MustCreateCategoryFirst = '";
        // line 1188
        echo Interspire_Template_Extension::jsFilter(getLang("MustCreateCategoryFirst"), "'");
        echo "';
lang.ChooseCategory = '";
        // line 1189
        echo Interspire_Template_Extension::jsFilter(getLang("ChooseCategory"), "'");
        echo "';
lang.EnterPrice = '";
        // line 1190
        echo Interspire_Template_Extension::jsFilter(getLang("EnterPrice"), "'");
        echo "';
lang.EnterCostPrice = '";
        // line 1191
        echo Interspire_Template_Extension::jsFilter(getLang("EnterCostPrice"), "'");
        echo "';
lang.EnterRetailPrice = '";
        // line 1192
        echo Interspire_Template_Extension::jsFilter(getLang("EnterRetailPrice"), "'");
        echo "';
lang.EnterSalePrice = '";
        // line 1193
        echo Interspire_Template_Extension::jsFilter(getLang("EnterSalePrice"), "'");
        echo "';
lang.ChooseValidImage = '";
        // line 1194
        echo Interspire_Template_Extension::jsFilter(getLang("ChooseValidImage"), "'");
        echo "';
lang.EnterWeight = '";
        // line 1195
        echo Interspire_Template_Extension::jsFilter(getLang("EnterWeight"), "'");
        echo "';
lang.EnterWidth = '";
        // line 1196
        echo Interspire_Template_Extension::jsFilter(getLang("EnterWidth"), "'");
        echo "';
lang.EnterHeight = '";
        // line 1197
        echo Interspire_Template_Extension::jsFilter(getLang("EnterHeight"), "'");
        echo "';
lang.EnterDepth = '";
        // line 1198
        echo Interspire_Template_Extension::jsFilter(getLang("EnterDepth"), "'");
        echo "';
lang.EnterFixedShipping = '";
        // line 1199
        echo Interspire_Template_Extension::jsFilter(getLang("EnterFixedShipping"), "'");
        echo "';
lang.ProductHasNoDownloads = '";
        // line 1200
        echo Interspire_Template_Extension::jsFilter(getLang("ProductHasNoDownloads"), "'");
        echo "';
lang.EnterCurrentInventory = '";
        // line 1201
        echo Interspire_Template_Extension::jsFilter(getLang("EnterCurrentInventory"), "'");
        echo "';
lang.EnterLowInventory = '";
        // line 1202
        echo Interspire_Template_Extension::jsFilter(getLang("EnterLowInventory"), "'");
        echo "';
lang.ChooseProductVariation = '";
        // line 1203
        echo Interspire_Template_Extension::jsFilter(getLang("ChooseProductVariation"), "'");
        echo "';
lang.VariationChooseVariation = '";
        // line 1204
        echo Interspire_Template_Extension::jsFilter(getLang("VariationChooseVariation"), "'");
        echo "';
lang.VariationEnterValidPrice = '";
        // line 1205
        echo Interspire_Template_Extension::jsFilter(getLang("VariationEnterValidPrice"), "'");
        echo "';
lang.VariationEnterValidWeight = '";
        // line 1206
        echo Interspire_Template_Extension::jsFilter(getLang("VariationEnterValidWeight"), "'");
        echo "';
lang.VariationEnterValidImage = '";
        // line 1207
        echo Interspire_Template_Extension::jsFilter(getLang("VariationEnterValidImage"), "'");
        echo "';
lang.VariationEnterValidStockLevel = '";
        // line 1208
        echo Interspire_Template_Extension::jsFilter(getLang("VariationEnterValidStockLevel"), "'");
        echo "';
lang.VariationEnterValidLowStockLevel = '";
        // line 1209
        echo Interspire_Template_Extension::jsFilter(getLang("VariationEnterValidLowStockLevel"), "'");
        echo "';
lang.EnterCustomFieldName = '";
        // line 1210
        echo Interspire_Template_Extension::jsFilter(getLang("EnterCustomFieldName"), "'");
        echo "';
lang.SelectOneMoreWrapOptions = '";
        // line 1211
        echo Interspire_Template_Extension::jsFilter(getLang("SelectOneMoreWrapOptions"), "'");
        echo "';
lang.EnterSortOrder = '";
        // line 1212
        echo Interspire_Template_Extension::jsFilter(getLang("EnterSortOrder"), "'");
        echo "';
lang.EnterEventDateName = '";
        // line 1213
        echo Interspire_Template_Extension::jsFilter(getLang("EnterEventDateName"), "'");
        echo "';
lang.EnterEventDateRange = '";
        // line 1214
        echo Interspire_Template_Extension::jsFilter(getLang("EnterEventDateRange"), "'");
        echo "';
lang.AddProductWithEmptyDimensions = '";
        // line 1215
        echo Interspire_Template_Extension::jsFilter(getLang("AddProductWithEmptyDimensions"), "'");
        echo "';
lang.ConfirmCancelProduct = '";
        // line 1216
        echo getLang("ConfirmCancelProduct");
        echo "';
lang.ChooseOptionValue = '";
        // line 1217
        echo Interspire_Template_Extension::jsFilter(getLang("ChooseOptionValue"), "'");
        echo "';
lang.MorePricingOptions = '";
        // line 1218
        echo Interspire_Template_Extension::jsFilter(getLang("MorePricingOptions"), "'");
        echo "';
lang.LessPricingOptions = '";
        // line 1219
        echo Interspire_Template_Extension::jsFilter(getLang("LessPricingOptions"), "'");
        echo "';
lang.ConfirmChangeDownloadEdit = '";
        // line 1220
        echo Interspire_Template_Extension::jsFilter(getLang("ConfirmChangeDownloadEdit"), "'");
        echo "';
lang.InvalidExpiresAfter = '";
        // line 1221
        echo Interspire_Template_Extension::jsFilter(getLang("InvalidExpiresAfter"), "'");
        echo "';
lang.InvalidMaxDownloads = '";
        // line 1222
        echo Interspire_Template_Extension::jsFilter(getLang("InvalidMaxDownloads"), "'");
        echo "';
lang.SavingDownload = '";
        // line 1223
        echo Interspire_Template_Extension::jsFilter(getLang("SavingDownload"), "'");
        echo "';
lang.UploadFailed2 = '";
        // line 1224
        echo Interspire_Template_Extension::jsFilter(getLang("UploadFailed2"), "'");
        echo "';
lang.SelectDownloadFile = '";
        // line 1225
        echo Interspire_Template_Extension::jsFilter(getLang("SelectDownloadFile"), "'");
        echo "';
lang.UploadingDownload = '";
        // line 1226
        echo Interspire_Template_Extension::jsFilter(getLang("UploadingDownload"), "'");
        echo "';
lang.ConfirmDeleteDownload = '";
        // line 1227
        echo Interspire_Template_Extension::jsFilter(getLang("ConfirmDeleteDownload"), "'");
        echo "';
lang.DigitalDownloadDeleted = '";
        // line 1228
        echo Interspire_Template_Extension::jsFilter(getLang("DigitalDownloadDeleted"), "'");
        echo "';
lang.NoParent = '";
        // line 1229
        echo Interspire_Template_Extension::jsFilter(getLang("NoParent"), "'");
        echo "';
lang.NoCategoryName = '";
        // line 1230
        echo Interspire_Template_Extension::jsFilter(getLang("NoCategoryName"), "'");
        echo "';
lang.ProductWillUseVariation = '";
        // line 1231
        echo Interspire_Template_Extension::jsFilter(getLang("ProductWillUseVariation"), "'");
        echo "';
lang.ProductWillUseVariationSemi = '";
        // line 1232
        echo Interspire_Template_Extension::jsFilter(getLang("ProductWillUseVariationSemi"), "'");
        echo "';
lang.ConfirmRemoveProdField = '";
        // line 1233
        echo Interspire_Template_Extension::jsFilter(getLang("ConfirmRemoveProdField"), "'");
        echo "';
lang.DiscountRulesForEachItem = '";
        // line 1234
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesForEachItem"), "'");
        echo "';
lang.DiscountRulesOffEachItem = '";
        // line 1235
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesOffEachItem"), "'");
        echo "';
lang.DiscountRulesField = '";
        // line 1236
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesField"), "'");
        echo "';
lang.Number0 = '";
        // line 1237
        echo Interspire_Template_Extension::jsFilter(getLang("Number0"), "'");
        echo "';
lang.Number1 = '";
        // line 1238
        echo Interspire_Template_Extension::jsFilter(getLang("Number1"), "'");
        echo "';
lang.Number2 = '";
        // line 1239
        echo Interspire_Template_Extension::jsFilter(getLang("Number2"), "'");
        echo "';
lang.Number3 = '";
        // line 1240
        echo Interspire_Template_Extension::jsFilter(getLang("Number3"), "'");
        echo "';
lang.Number4 = '";
        // line 1241
        echo Interspire_Template_Extension::jsFilter(getLang("Number4"), "'");
        echo "';
lang.Number5 = '";
        // line 1242
        echo Interspire_Template_Extension::jsFilter(getLang("Number5"), "'");
        echo "';
lang.Number6 = '";
        // line 1243
        echo Interspire_Template_Extension::jsFilter(getLang("Number6"), "'");
        echo "';
lang.Number7 = '";
        // line 1244
        echo Interspire_Template_Extension::jsFilter(getLang("Number7"), "'");
        echo "';
lang.Number8 = '";
        // line 1245
        echo Interspire_Template_Extension::jsFilter(getLang("Number8"), "'");
        echo "';
lang.Number9 = '";
        // line 1246
        echo Interspire_Template_Extension::jsFilter(getLang("Number9"), "'");
        echo "';
lang.VideoLoading = '";
        // line 1247
        echo Interspire_Template_Extension::jsFilter(getLang("VideoLoading"), "'");
        echo "';
lang.VideoPleaseEnterSearchTerm = '";
        // line 1248
        echo Interspire_Template_Extension::jsFilter(getLang("VideoPleaseEnterSearchTerm"), "'");
        echo "';
lang.ClickHereToAddADescription = '";
        // line 1249
        echo Interspire_Template_Extension::jsFilter(getLang("ClickHereToAddADescription"), "'");
        echo "';
lang.ConfirmDeleteProductImage = '";
        // line 1250
        echo Interspire_Template_Extension::jsFilter(getLang("ConfirmDeleteProductImage"), "'");
        echo "';
lang.ChooseProductImage = '";
        // line 1251
        echo Interspire_Template_Extension::jsFilter(getLang("ChooseProductImage"), "'");
        echo "';
lang.ProductImagesDeleted = '";
        // line 1252
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesDeleted"), "'");
        echo "';
lang.ProductImagesDeletedErrors = '";
        // line 1253
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesDeletedErrors"), "'");
        echo "';
lang.ProductImagesDeletedWarnings = '";
        // line 1254
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesDeletedWarnings"), "'");
        echo "';
lang.ProductImage = '";
        // line 1255
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImage"), "'");
        echo "';
lang.ProductImageAddedSuccessfully = '";
        // line 1256
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImageAddedSuccessfully"), "'");
        echo "';
lang.ProductImagesAddedSuccessfully = '";
        // line 1257
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesAddedSuccessfully"), "'");
        echo "';
lang.ProductImageUrlsFailed = '";
        // line 1258
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImageUrlsFailed"), "'");
        echo "';
lang.Images = '";
        // line 1259
        echo Interspire_Template_Extension::jsFilter(getLang("Images"), "'");
        echo "';
lang.ProductImagesProcessing = '";
        // line 1260
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesProcessing"), "'");
        echo "';
lang.ProductImagesUploadError = '";
        // line 1261
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesUploadError"), "'");
        echo "';
lang.ProductImagesTransportError = '";
        // line 1262
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesTransportError"), "'");
        echo "';
lang.ProductImagesUploadProgressStatus = '";
        // line 1263
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesUploadProgressStatus"), "'");
        echo "';
lang.ProductImagesUploadProgressFile = '";
        // line 1264
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesUploadProgressFile"), "'");
        echo "';
lang.ProductImagesSortOrderChanged = '";
        // line 1265
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesSortOrderChanged"), "'");
        echo "';
lang.ImageFromGalleryViewLarger = '";
        // line 1266
        echo Interspire_Template_Extension::jsFilter(getLang("ImageFromGalleryViewLarger"), "'");
        echo "';
lang.ProductImagesNoSourceImageNoThumbnail = '";
        // line 1267
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesNoSourceImageNoThumbnail"), "'");
        echo "';
lang.ProductImagesNotUploadedDueToErrors = '";
        // line 1268
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesNotUploadedDueToErrors"), "'");
        echo "';
lang.ProductImagesAnyImageNotListedHere = '";
        // line 1269
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesAnyImageNotListedHere"), "'");
        echo "';
lang.UploadAnImage = '";
        // line 1270
        echo Interspire_Template_Extension::jsFilter(getLang("UploadAnImage"), "'");
        echo "';
lang.ProductImagesNonFlashIntro = '";
        // line 1271
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesNonFlashIntro"), "'");
        echo "';
lang.ProductImagesUploadImagesElipsis = '";
        // line 1272
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesUploadImagesElipsis"), "'");
        echo "';
lang.CancelEdit = '";
        // line 1273
        echo Interspire_Template_Extension::jsFilter(getLang("CancelEdit"), "'");
        echo "';
lang.ProductImagesNonFlashRemove = '";
        // line 1274
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesNonFlashRemove"), "'");
        echo "';
lang.ShowErrorMessage = '";
        // line 1275
        echo Interspire_Template_Extension::jsFilter(getLang("ShowErrorMessage"), "'");
        echo "';
lang.ProductImagesChooseAnImage = '";
        // line 1276
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesChooseAnImage"), "'");
        echo "';
lang.PleaseChooseAReleaseDate = '";
        // line 1277
        echo Interspire_Template_Extension::jsFilter(getLang("PleaseChooseAReleaseDate"), "'");
        echo "';
lang.PleaseChooseAReleaseDateInTheFuture = '";
        // line 1278
        echo Interspire_Template_Extension::jsFilter(getLang("PleaseChooseAReleaseDateInTheFuture"), "'");
        echo "';
lang.ProductImageEdited = '";
        // line 1279
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImageEdited"), "'");
        echo "';
lang.ProductMinimumError = '";
        // line 1280
        echo Interspire_Template_Extension::jsFilter(getLang("ProductMinimumError"), "'");
        echo "';
lang.ProductMaximumError = '";
        // line 1281
        echo Interspire_Template_Extension::jsFilter(getLang("ProductMaximumError"), "'");
        echo "';
lang.ProductMinimumMaximumError = '";
        // line 1282
        echo Interspire_Template_Extension::jsFilter(getLang("ProductMinimumMaximumError"), "'");
        echo "';
//]]></script>
<script type=\"text/javascript\" src=\"script/product.js?";
        // line 1284
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"script/product.youtube.js?";
        // line 1285
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\">//<![CDATA[
\$(document).ready(function() {

\t\$('#frmProduct').bind('submit', function () {
\t\treturn ValidateForm(CheckAddProductForm);
\t});

\t";
        // line 1293
        echo twig_safe_filter((isset($context['OptionButtons']) ? $context['OptionButtons'] : null));
        echo "

\t// Toggle the product type
\tvar f = g('ProductType_0');
\tif(f.checked)
\t{
\t\tToggleType(0);
\t}
\telse
\t{
\t\tToggleType(1);
\t}

\tToggleAllowPurchasing();
\tToggleCallForPricing();

\tif(g('prodInvTrack_2').checked) {
\t\t\$('#prodOptionsRequired').attr('checked', true);
\t\t\$('#prodOptionsRequired').attr('disabled', true);
\t}

\t\$('#prodInvTrack_2').click(function() {
\t\tif(this.checked) {
\t\t\t\$('#prodOptionsRequired').attr('checked', true);
\t\t\t\$('#prodOptionsRequired').attr('disabled', true);
\t\t}
\t});

\t\$('#prodInvTrack_1').click(function() {
\t\t\$('#prodOptionsRequired').attr('checked', false);
\t\t\$('#prodOptionsRequired').attr('disabled', false);
\t});

\t\$('#prodInvTrack_0').click(function() {
\t\t\$('#prodOptionsRequired').attr('checked', false);
\t\t\$('#prodOptionsRequired').attr('disabled', false);
\t});

\t";
        // line 1331
        echo twig_safe_filter((isset($context['MoreImages']) ? $context['MoreImages'] : null));
        echo "

\tShowTab(";
        // line 1333
        echo twig_safe_filter((isset($context['CurrentTab']) ? $context['CurrentTab'] : null));
        echo ");

\t// Are related products set to auto?
\tif(shop.config.IsProdRelatedAuto == 'checked=\"checked\"') {
\t\ttoggle_related_auto(true);
\t}

\tyoutube.videos = '";
        // line 1340
        echo twig_safe_filter((isset($context['YouTubeVideos']) ? $context['YouTubeVideos'] : null));
        echo "';
\tyoutube.init();

\t\$('input[type=submit]').attr('disabled', '');

\t\$('input[name=_prodorderable]').bind('click', function(){
\t\t\$('._prodorderable_detail').hide();
\t\tif (this.checked) {
\t\t\t\$('#_prodorderable_' + \$(this).val() + '_detail').show();
\t\t}
\t});

\t\$('input[name=_prodorderable]:checked').trigger('click');

\t\$('#prodreleasedate').datepicker({
\t\tshowOn: 'both',
\t\tbuttonImage: 'images/calendar.gif',
\t\tbuttonImageOnly: true,
\t\tminDate: new Date(),
\t\tfirstDay: 1,
\t\tduration: '',
\t\tdateFormat: 'mm/dd/yy'
\t});

\t\$('#prodreleasedate').bind('keydown keyup keypress', function(event){
\t\tswitch (event.keyCode) {
\t\t\tcase 8: // backspace
\t\t\tcase 16: // shift
\t\t\tcase 17: // control
\t\t\tcase 18: // alt
\t\t\tcase 35: // end
\t\t\tcase 36: // home
\t\t\tcase 37: // left
\t\t\tcase 38: // up
\t\t\tcase 39: // right
\t\t\tcase 40: // down
\t\t\tcase 46: // delete
\t\t\t\treturn;
\t\t\t\tbreak;
\t\t}

\t\tif ((event.shiftKey || event.metaKey) && event.keyCode == 88) {
\t\t\t// cut
\t\t\treturn;
\t\t}

\t\tevent.preventDefault();
\t});

\t\$(\"#OpenGraphUseProductName\").change(function() {
\t\tif(\$(this).is(':checked')) {
\t\t\t\$(this).parent('label').nextAll('.NodeJoin:first').hide();
\t\t}
\t\telse {
\t\t\t\$(this).parent('label').nextAll('.NodeJoin:first').show();
\t\t}
\t});

\t\$(\"#OpenGraphUseMetaDescription\").change(function() {
\t\tif(\$(this).is(':checked')) {
\t\t\t\$(this).parent('label').nextAll('.NodeJoin:first').hide();
\t\t}
\t\telse {
\t\t\t\$(this).parent('label').nextAll('.NodeJoin:first').show();
\t\t}
\t});
});
//]]></script>

<div style=\"display:none;\" id=\"UseImageFromWebDialog\">
\t<div class=\"ModalTitle\">";
        // line 1410
        echo getLang("UseImageFromWebDialogTitle");
        echo "</div>
\t<div class=\"ModalContent\">
\t\t<input type=\"text\" class=\"Field100pct UseImageFromWebDialogImageUrl\" name=\"imageurl[]\" value=\"http://\" /><br />
\t\t<input type=\"text\" class=\"Field100pct UseImageFromWebDialogImageUrl\" name=\"imageurl[]\" value=\"http://\" /><br />
\t\t<input type=\"text\" class=\"Field100pct UseImageFromWebDialogImageUrl\" name=\"imageurl[]\" value=\"http://\" /><br />
\t\t<input type=\"text\" class=\"Field100pct UseImageFromWebDialogImageUrl\" name=\"imageurl[]\" value=\"http://\" /><br />
\t\t<input type=\"text\" class=\"Field100pct UseImageFromWebDialogImageUrl\" name=\"imageurl[]\" value=\"http://\" /><br />
\t</div>
\t<div class=\"ModalButtonRow\">
\t\t<div class=\"FloatLeft\">
\t\t\t<img src=\"images/loading.gif\" alt=\"\" style=\"vertical-align: middle; display: none;\" class=\"LoadingIndicator\" />
\t\t\t<input type=\"button\" class=\"CloseButton FormButton\" value=\"";
        // line 1421
        echo getLang("Close");
        echo "\" onclick=\"\$.modal.close();return false;\" />
\t\t</div>
\t\t<input type=\"button\" class=\"Submit\" value=\"";
        // line 1423
        echo getLang("UseImages");
        echo "\" onclick=\"ProductImages.useImageFromWebDialogSubmit();return false;\" />
\t</div>
</div><!-- end #UseImageFromWebDialog --><!-- located here to be outside of posted product info -->

<div id=\"QuickCategoryCreation\" style=\"display: none;\">
\t<div class=\"ModalTitle\">";
        // line 1428
        echo getLang("CreateACategory");
        echo "</div>
\t<div class=\"ModalContent\">
\t\t<table class=\"Panel\" width=\"100%\">
\t\t\t<tr>
\t\t\t\t<td><strong>";
        // line 1432
        echo getLang("CatName");
        echo ":</strong></td>
\t\t\t</tr>
\t\t\t<tr>
\t\t\t\t<td><input id=\"QuickCatName\" type=\"text\" name=\"catname\" value=\"\"  class=\"Field250\" style=\"width: 100%;\" /></td>
\t\t\t</tr>
\t\t</table>
\t\t<div style=\"height: 4px; font-size: 1px;\"></div>
\t\t<table class=\"Panel\" width=\"100%\">
\t\t\t<tr>
\t\t\t\t<td><strong>";
        // line 1441
        echo getLang("CatParentCategory");
        echo ":</strong></td>
\t\t\t</tr>
\t\t\t<tr>
\t\t\t\t<td>
\t\t\t\t\t<select name=\"catparentid\" size=\"8\" id=\"QuickCatParent\" style=\"width: 100%\">
\t\t\t\t\t</select>
\t\t\t\t</td>
\t\t\t</tr>
\t\t</table>
\t</div>
\t<div class=\"ModalButtonRow\">
\t\t<div class=\"FloatLeft\">
\t\t\t<img src=\"images/loading.gif\" alt=\"\" style=\"vertical-align: middle; display: none;\" class=\"LoadingIndicator\" />
\t\t\t<input type=\"button\" class=\"CloseButton FormButton\" value=\"";
        // line 1454
        echo getLang("Cancel");
        echo "\" onclick=\"\$.modal.close();\" />
\t\t</div>
\t\t<input type=\"button\" class=\"Submit\" value=\"";
        // line 1456
        echo getLang("Save");
        echo "\" onclick=\"SaveQuickCategory()\" />
\t</div>
</div>

<div id=\"AddProductWithEmptyDimensions\" style=\"display: none;\">
<div class=\"ModalTitle\">";
        // line 1461
        echo getLang("ConfirmProductDimension");
        echo "</div>
\t<div class=\"ModalContent\">
\t\t";
        // line 1463
        echo getLang("AddProductWithEmptyDimensions");
        echo "<br /><br />
\t\t<input type=\"checkbox\" value=\"";
        // line 1464
        echo getLang("DontShowDimensionsCheck");
        echo "\" id=\"DontShowDimensionsCheck\" name=\"DontShowDimensionsCheck\" /> <label for=\"DontShowDimensionsCheck\">";
        echo getLang("DontShowDimensionsAgain");
        echo "</label>
\t</div>
\t<div class=\"ModalButtonRow\">
\t\t<div class=\"FloatLeft\">
\t\t\t<input type=\"button\" class=\"CloseButton FormButton\" value=\"";
        // line 1468
        echo getLang("Cancel");
        echo "\" onclick=\"\$.modal.close();\" />
\t\t</div>
\t\t<input type=\"button\" class=\"Submit\" value=\"";
        // line 1470
        echo getLang("Continue");
        echo "\" onclick=\"CheckedDimensionsContinue()\" />
\t</div>
</div>
";
    }
    public function getjslang($list = null)
    {
        $context = array(
            "list" => $list,
        );

        echo "\t";
        // line 173
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['list']) ? $context['list'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['index'] => $context['lang']) {
            echo "\t\t";
            // line 174
            if (twig_length_filter($this->env, twig_get_array_keys_filter((isset($context['lang']) ? $context['lang'] : null)))) {
                echo "\t\t\tlang[\"";
                // line 175
                echo $this->getEnvironment()->getExtension('interspire')->jsFilter((isset($context['index']) ? $context['index'] : null));
                echo "\"] = \"";
                echo Interspire_Template_Extension::jsFilter(getLang((isset($context['index']) ? $context['index'] : null), (isset($context['lang']) ? $context['lang'] : null)), "'");
                echo "\";
\t\t";
            } else {
                // line 176
                echo "\t\t\tlang[\"";
                // line 177
                echo $this->getEnvironment()->getExtension('interspire')->jsFilter((isset($context['lang']) ? $context['lang'] : null));
                echo "\"] = \"";
                echo Interspire_Template_Extension::jsFilter(getLang((isset($context['lang']) ? $context['lang'] : null)), "'");
                echo "\";
\t\t";
            }
            // line 178
            echo "\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['index'], $context['lang'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
    }
    public function display(array $context)
    {
        // line 1
        echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11\">
<html ";
        // line 2
        if ((isset($context['rtl']) ? $context['rtl'] : null)) {
            echo "dir=\"rtl\"";
        }
        echo " xml:lang=\"";
        echo twig_escape_filter($this->env, (isset($context['language']) ? $context['language'] : null), "1");
        echo "\" lang=\"";
        echo twig_escape_filter($this->env, (isset($context['language']) ? $context['language'] : null), "1");
        echo "\">
<head>
\t<title>";
        // line 4
        echo getLang("InstallInterspireShoppingCart");
        echo "</title>
\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
        // line 5
        echo twig_escape_filter($this->env, (isset($context['CharacterSet']) ? $context['CharacterSet'] : null), "1");
        echo "\" />
\t<meta name=\"robots\" content=\"noindex, nofollow\" />
\t<style type=\"text/css\">
\t\t@import url(\"Styles/styles.css\");
\t\t@import url('Styles/tabmenu.css');
\t\t@import url(\"Styles/iselector.css\");
\t</style>
\t<!--[if IE]>
\t<style type=\"text/css\">
\t\t@import url(\"Styles/ie.css\");
\t</style>
\t<![endif]-->
\t<style>
\t\th3 { font-size:13px; }
\t</style>
\t<script type=\"text/javascript\">
\t\tvar url = 'remote.php';
\t\tvar critical_errors = \"";
        // line 22
        echo twig_safe_filter((isset($context['CriticalErrors']) ? $context['CriticalErrors'] : null));
        echo "\";
\t\tvar is_trial = '";
        // line 23
        echo twig_safe_filter((isset($context['IsTrial']) ? $context['IsTrial'] : null));
        echo "';
\t</script>
\t<script type=\"text/javascript\" src=\"../javascript/jquery.js?";
        // line 25
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
\t<script type=\"text/javascript\" src=\"script/menudrop.js?";
        // line 26
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
\t<script type=\"text/javascript\" src=\"../javascript/thickbox.js?";
        // line 27
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
\t<script type=\"text/javascript\" src=\"script/common.js?";
        // line 28
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
\t<script type=\"text/javascript\" src=\"../javascript/iselector.js?";
        // line 29
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
\t<link rel=\"stylesheet\" href=\"Styles/thickbox.css?";
        // line 30
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\" type=\"text/css\" media=\"screen\" />
</head>

<body>
\t<form action=\"index.php?ToDo=RunInstallation\" method=\"post\" name=\"frmInstall\" id=\"frmInstall\">
\t<div id=\"box\">
\t\t<br /><br /><br /><br />
\t\t<table><tr><td style=\"border:solid 2px #DDD; padding:20px; background-color:#FFF; width:565px\">
\t\t<table>
\t\t  <tr>
\t\t\t<td class=\"Heading1\">
\t\t\t\t<img src=\"images/logo.jpg\" />
\t\t\t</td>
\t\t  </tr>
\t\t  <tr>
\t\t\t<td class=\"HelpInfo\">
\t\t\t\t";
        // line 46
        echo twig_safe_filter((isset($context['Message']) ? $context['Message'] : null));
        echo "
\t\t\t\t<div style=\"";
        // line 47
        echo twig_safe_filter((isset($context['HideInstallWarning']) ? $context['HideInstallWarning'] : null));
        echo "\" class=\"MessageBox MessageBoxInfo\">
\t\t\t\t\t";
        // line 48
        echo twig_safe_filter((isset($context['InstallWarning']) ? $context['InstallWarning'] : null));
        echo "
\t\t\t\t</div>
\t\t\t</td>
\t\t  </tr>
\t\t  <tr class=\"FormContent\">
\t\t\t<td>
\t\t\t\t<table>



\t\t\t\t\t\t\t<input name=\"myversion\" type=\"hidden\" value=\"Ultimate\" class=\"Field250\">
                                                        <input type=\"hidden\" name=\"LK\" id=\"LK\" class=\"Field250\" value=\"cctvvs\"> 



\t\t\t\t\t\t<td nowrap style=\"padding:10px 10px 10px 0px\" colspan=\"2\"><h3>";
        // line 63
        echo getLang("StoreDetails");
        echo "</h3></td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td nowrap style=\"padding:0px 10px 0px 10px\"><span class=\"Required\">*</span> ";
        // line 66
        echo getLang("ShopPath");
        echo ":</td>
\t\t\t\t\t\t<td><input type=\"text\" name=\"ShopPath\" id=\"ShopPath\" class=\"Field250\" value=\"";
        // line 67
        echo twig_safe_filter((isset($context['ShopPath']) ? $context['ShopPath'] : null));
        echo "\"> <img onmouseout=\"HideHelp('shoppathhelp');\" onmouseover=\"ShowHelp('shoppathhelp', '";
        echo getLang("ShopPath");
        echo "', '";
        echo getLang("ShopPathHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t<div style=\"display:none\" id=\"shoppathhelp\"></div></td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td nowrap style=\"padding:0px 10px 0px 10px\"><span class=\"Required\">*</span> ";
        // line 71
        echo getLang("StoreCountryLocation");
        echo ":</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"StoreCountryLocationId\" id=\"StoreCountryLocationId\" class=\"Field250\">
\t\t\t\t\t\t\t\t<option value=\"0\">-- ";
        // line 74
        echo getLang("ChooseACountry");
        echo " --</option>
\t\t\t\t\t\t\t\t";
        // line 75
        echo twig_safe_filter((isset($context['StoreCountryList']) ? $context['StoreCountryList'] : null));
        echo "
\t\t\t\t\t\t\t</select><img onmouseout=\"HideHelp('storecountrylocationhelp');\" onmouseover=\"ShowHelp('storecountrylocationhelp', '";
        // line 76
        echo getLang("StoreCountryLocation");
        echo "', '";
        echo getLang("StoreCountryLocationHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"storecountrylocationhelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td nowrap style=\"padding:0px 10px 0px 10px\"><span class=\"Required\">*</span> ";
        // line 81
        echo getLang("StoreCurrencyCode");
        echo ":</td>
\t\t\t\t\t\t<td><input type=\"text\" name=\"StoreCurrencyCode\" id=\"StoreCurrencyCode\" maxlength=\"3\" class=\"Field50\" value=\"";
        // line 82
        echo twig_safe_filter((isset($context['StoreCurrencyCode']) ? $context['StoreCurrencyCode'] : null));
        echo "\"> <img onmouseout=\"HideHelp('storecurrencycodehelp');\" onmouseover=\"ShowHelp('storecurrencycodehelp', '";
        echo getLang("StoreCurrencyCode");
        echo "', '";
        echo getLang("StoreCurrencyCodeHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t<div style=\"display:none\" id=\"storecurrencycodehelp\"></div></td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td nowrap style=\"padding:0px 10px 0px 10px\">&nbsp;</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"installSampleData\" id=\"installSampleData\" value=\"1\" ";
        // line 88
        echo twig_safe_filter((isset($context['InstallSampleData']) ? $context['InstallSampleData'] : null));
        echo " /> ";
        echo getLang("InstallSampleData");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('sampledatahelp');\" onmouseover=\"ShowHelp('sampledatahelp', '";
        // line 89
        echo getLang("InstallSampleData");
        echo "', '";
        echo getLang("InstallSampleDataHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t<div style=\"display:none\" id=\"sampledatahelp\"></div></td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td nowrap style=\"padding:10px 10px 10px 0px\" colspan=\"2\"><h3>";
        // line 93
        echo getLang("UserAccountDetails");
        echo "</h3></td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td nowrap style=\"padding:0px 10px 0px 10px\"><span class=\"Required\">*</span> ";
        // line 96
        echo getLang("EmailAddress");
        echo ":</td>
\t\t\t\t\t\t<td><input type=\"text\" name=\"UserEmail\" id=\"UserEmail\" class=\"Field150\" value=\"";
        // line 97
        echo twig_safe_filter((isset($context['UserEmail']) ? $context['UserEmail'] : null));
        echo "\"> <img onmouseout=\"HideHelp('useremailhelp');\" onmouseover=\"ShowHelp('useremailhelp', '";
        echo getLang("EmailAddress");
        echo "', '";
        echo getLang("InstallEmailAddressHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t<div style=\"display:none\" id=\"useremailhelp\"></div></td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td nowrap style=\"padding:0px 10px 0px 10px\"><span class=\"Required\">*</span> ";
        // line 101
        echo getLang("ChooseAPassword");
        echo ":</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"password\" autocomplete=\"off\" name=\"UserPass\" id=\"UserPass\" class=\"Field150\" value=\"";
        // line 103
        echo twig_safe_filter((isset($context['UserPass']) ? $context['UserPass'] : null));
        echo "\">
\t\t\t\t\t\t\t<div class=\"PasswordStrengthMeter\" id=\"meterid\"></div>
\t\t\t\t\t\t\t<small class=\"note PasswordStrengthTip\" id=\"tipid\"></small>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td nowrap style=\"padding:0px 10px 0px 10px\"><span class=\"Required\">*</span> ";
        // line 109
        echo getLang("ConfirmYourPassword");
        echo ":</td>
\t\t\t\t\t\t<td><input type=\"password\" autocomplete=\"off\" name=\"UserPass1\" id=\"UserPass1\" class=\"Field150\" value=\"";
        // line 110
        echo twig_safe_filter((isset($context['UserPass']) ? $context['UserPass'] : null));
        echo "\"> <img onmouseout=\"HideHelp('userpass1help');\" onmouseover=\"ShowHelp('userpass1help', '";
        echo getLang("ConfirmYourPassword");
        echo "', '";
        echo getLang("ConfirmYourPasswordHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t<div style=\"display:none\" id=\"userpass1help\"></div></td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td nowrap style=\"padding:10px 10px 10px 0px\" colspan=\"2\"><h3>";
        // line 114
        echo getLang("MySQLDetails");
        echo "</h3></td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td nowrap style=\"padding:0px 10px 0px 10px\" colspan=\"2\"><input type=\"radio\" name=\"dbChoice\" id=\"dbChoice1\" value=\"ON\"> <label for=\"dbChoice1\">";
        // line 117
        echo getLang("HasDB");
        echo "</label></td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t<table class=\"DBDetails\" style=\"padding:10px 10px 10px 20px\">
\t\t\t\t\t<tr class=\"DBDetails\">
\t\t\t\t\t\t<td nowrap style=\"padding:0px 10px 0px 10px\"><span class=\"Required\">*</span> ";
        // line 122
        echo getLang("DatabaseUser");
        echo ":</td>
\t\t\t\t\t\t<td><input type=\"text\" name=\"dbUser\" id=\"dbUser\" class=\"Field150\" value=\"";
        // line 123
        echo twig_safe_filter((isset($context['dbUser']) ? $context['dbUser'] : null));
        echo "\"> <img onmouseout=\"HideHelp('dbuserhelp');\" onmouseover=\"ShowHelp('dbuserhelp', '";
        echo getLang("DatabaseUser");
        echo "', '";
        echo getLang("DatabaseUserHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t<div style=\"display:none\" id=\"dbuserhelp\"></div></td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr class=\"DBDetails\">
\t\t\t\t\t\t<td nowrap style=\"padding:0px 10px 0px 10px\">&nbsp;&nbsp; ";
        // line 127
        echo getLang("DatabasePassword");
        echo ":</td>
\t\t\t\t\t\t<td><input type=\"password\" autocomplete=\"off\" name=\"dbPass\" id=\"dbPass\" class=\"Field150\" value=\"";
        // line 128
        echo twig_safe_filter((isset($context['dbPass']) ? $context['dbPass'] : null));
        echo "\"> <img onmouseout=\"HideHelp('dbpasshelp');\" onmouseover=\"ShowHelp('dbpasshelp', '";
        echo getLang("DatabasePassword");
        echo "', '";
        echo getLang("DatabasePasswordHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t<div style=\"display:none\" id=\"dbpasshelp\"></div></td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr class=\"DBDetails\">
\t\t\t\t\t\t<td nowrap style=\"padding:0px 10px 0px 10px\"><span class=\"Required\">*</span> ";
        // line 132
        echo getLang("DatabaseHostname");
        echo ":</td>
\t\t\t\t\t\t<td><input type=\"text\" name=\"dbServer\" id=\"dbServer\" class=\"Field150\" value=\"";
        // line 133
        echo twig_safe_filter((isset($context['dbServer']) ? $context['dbServer'] : null));
        echo "\"> <img onmouseout=\"HideHelp('dbhostnamehelp');\" onmouseover=\"ShowHelp('dbhostnamehelp', '";
        echo getLang("DatabaseHostname");
        echo "', '";
        echo getLang("DatabaseHostnameHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\"><div style=\"display:none\" id=\"dbhostnamehelp\"></div></td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr class=\"DBDetails\">
\t\t\t\t\t\t<td nowrap style=\"padding:0px 10px 0px 10px\"><span class=\"Required\">*</span> ";
        // line 136
        echo getLang("DatabaseName");
        echo ":</td>
\t\t\t\t\t\t<td><input type=\"text\" name=\"dbDatabase\" id=\"dbDatabase\" class=\"Field150\" value=\"";
        // line 137
        echo twig_safe_filter((isset($context['dbDatabase']) ? $context['dbDatabase'] : null));
        echo "\"> <img onmouseout=\"HideHelp('dbnamehelp');\" onmouseover=\"ShowHelp('dbnamehelp', '";
        echo getLang("DatabaseName");
        echo "', '";
        echo getLang("DatabaseNameHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\"><div style=\"display:none\" id=\"dbnamehelp\"></div></td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr class=\"DBDetails\">
\t\t\t\t\t\t<td nowrap style=\"padding:0px 10px 0px 10px\">&nbsp;&nbsp; ";
        // line 140
        echo getLang("DatabaseTablePrefix");
        echo ":</td>
\t\t\t\t\t\t<td><input type=\"text\" name=\"tablePrefix\" id=\"tablePrefix\" class=\"Field150\" value=\"";
        // line 141
        echo twig_safe_filter((isset($context['tablePrefix']) ? $context['tablePrefix'] : null));
        echo "\"> <img onmouseout=\"HideHelp('dbprefixhelp');\" onmouseover=\"ShowHelp('dbprefixhelp', '";
        echo getLang("DatabaseTablePrefix");
        echo "', '";
        echo getLang("DatabaseTablePrefixHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\"><div style=\"display:none\" id=\"dbprefixhelp\"></div></td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t<table>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td nowrap style=\"padding:0px 10px 0px 10px\" colspan=\"2\" ><input type=\"radio\" name=\"dbChoice\" id=\"dbChoice2\" value=\"ON\"> <label for=\"dbChoice2\">";
        // line 146
        echo getLang("HasNoDB");
        echo "</label></td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t<table class=\"DBHelp\" style=\"padding:10px 10px 10px 20px\">
\t\t\t\t\t<tr class=\"DBHelp\">
\t\t\t\t\t\t<td colspan=\"2\" class=\"HelpInfo\"><h3 style=\"padding-bottom:10px\">";
        // line 151
        echo getLang("WhatIsMySQLDB");
        echo "</h3>";
        echo getLang("DBHelpText");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t<table>
\t\t\t\t\t<tr>
\t\t\t\t\t<td>&nbsp;</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<br />
                                                              <input type=\"hidden\" name=\"sendServerDetails\" id=\"sendServerDetails\" value=\"ON\">
                                                              <input type=\"submit\" name=\"SubmitButton\" value=\"";
        // line 160
        echo getLang("Continue");
        echo "\" class=\"FormButton\">
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Gap\"></td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</td>
\t\t  </tr>
\t\t</table>
\t\t</td></tr></table>
\t\t<div style=\"padding:10px; margin-bottom:20px; text-align:center\" class=\"PageFooter\">
\t\t\t<!-- Removing this \"Powered by\" link will violate your license agreement with Interspire -->
\t\t\tPowered by <a href=\"http://www.interspire.com/shoppingcart/\" target=\"_blank\">Interspire Shopping Cart ";
        // line 173
        echo twig_safe_filter((isset($context['ProductVersion']) ? $context['ProductVersion'] : null));
        echo "</a> &copy; 2004-";
        echo twig_safe_filter((isset($context['Year']) ? $context['Year'] : null));
        echo " Interspire Pty. Ltd.
\t\t</div>
\t</div>
\t</form>

\t<div id=\"permissionsBox\" style=\"display:none\">
\t\t<div style=\"background-image:url('images/permissions_error.gif'); background-position:right bottom; background-repeat:no-repeat; height:100%\">";
        // line 179
        echo twig_safe_filter((isset($context['PermissionErrors']) ? $context['PermissionErrors'] : null));
        echo "</div>
\t</div>

\t<script type=\"text/javascript\">";
        // line 182
        echo twig_safe_filter((isset($context['AutoJS']) ? $context['AutoJS'] : null));
        echo "</script>
\t<script type=\"text/javascript\" src=\"../javascript/passwordmeter.js\"></script>
\t<script type=\"text/javascript\">
\t\tlang.PasswordStrengthMeter_MsgDefault = \"";
        // line 185
        echo Interspire_Template_Extension::jsFilter(getLang("PasswordStrengthMeter_MsgDefault"), "'");
        echo "\";
\t\tlang.PasswordStrengthMeter_MsgTooShort = \"";
        // line 186
        echo Interspire_Template_Extension::jsFilter(getLang("PasswordStrengthMeter_MsgTooShort"), "'");
        echo "\";
\t\tlang.PasswordStrengthMeter_MsgNoAlphaNum = \"";
        // line 187
        echo Interspire_Template_Extension::jsFilter(getLang("PasswordStrengthMeter_MsgNoAlphaNum"), "'");
        echo "\";
\t\tlang.PasswordStrengthMeter_MsgWeak = \"";
        // line 188
        echo Interspire_Template_Extension::jsFilter(getLang("PasswordStrengthMeter_MsgWeak"), "'");
        echo "\";
\t\tlang.PasswordStrengthMeter_MsgStrong = \"";
        // line 189
        echo Interspire_Template_Extension::jsFilter(getLang("PasswordStrengthMeter_MsgStrong"), "'");
        echo "\";
\t\tlang.PasswordStrengthMeter_MsgVeryStrong = \"";
        // line 190
        echo Interspire_Template_Extension::jsFilter(getLang("PasswordStrengthMeter_MsgVeryStrong"), "'");
        echo "\";
\t\tlang.PasswordStrengthMeter_Tip = \"";
        // line 191
        echo Interspire_Template_Extension::jsFilter(getLang("PasswordStrengthMeter_Tip"), "'");
        echo "\";
\t\tvar pmeter = new PasswordStrengthMeter('UserPass', 'meterid', 'tipid', ";
        // line 192
        echo twig_escape_filter($this->env, (isset($context['PCIPasswordMinLen']) ? $context['PCIPasswordMinLen'] : null), "1");
        echo ");
\t\t\$(document).ready(function() {
\t\t\tpmeter.init();
\t\t});
\t</script>
\t<script type=\"text/javascript\" src=\"script/install.js?";
        // line 197
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
</body>
</html>";
    }
    public function display(array $context)
    {
        // line 1
        echo "<style type=\"text/css\">
.swfupload {
\tposition: absolute;
\tz-index: 1;
\toutline: none;
}
</style>

<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/jquery.htmlEncode.js?";
        // line 9
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"../javascript/jquery.growinguploader.js?";
        // line 10
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/ajax.file.upload.js?";
        // line 11
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"script/detect.flash.js?";
        // line 12
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"script/swfupload.js?";
        // line 13
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"script/swfupload.handlers.js?";
        // line 14
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"script/multiuploaddialog.js?";
        // line 15
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\">
\t\tvar swfUploadMaxFileSize = '";
        // line 17
        echo twig_safe_filter((isset($context['MaxFileSize']) ? $context['MaxFileSize'] : null));
        echo "';

\t\tfunction randomString(length) {
\t\t\tvar chars = \"0123456789abcdefghiklmnopqrstuvwxyz\";
\t\t\tvar string_length = 8;
\t\t\tvar randomstring = '';
\t\t\tfor (var i=0; i<string_length; i++) {
\t\t\t\tvar rnum = Math.floor(Math.random() * chars.length);
\t\t\t\trandomstring += chars.substring(rnum,rnum+1);
\t\t\t}
\t\t\treturn randomstring;
\t\t}

\t\tvar swfu;
\t\tvar MaxFileSize = '";
        // line 31
        echo twig_safe_filter((isset($context['MaxFileSize']) ? $context['MaxFileSize'] : null));
        echo "';
\t\tvar global_randNum = randomString(10);
\t\tvar requiredFlashMajorVersion = 8;
\t\tvar requiredFlashMinorVersion = 0;
\t\tvar requiredFlashRevision = 0;
\t\tvar TotalItemsToUpload = 0;
\t\tvar UploadErrorFiles = new Array();
\t\tvar UploadDuplicateFiles = new Array();
\t\tvar FileCount = 1;
\t\tvar hasReqestedFlashVersion = false;// DetectFlashVer(requiredFlashMajorVersion, requiredFlashMinorVersion, requiredFlashRevision);

\t\t(function(\$) {
\t\t\t \$.evalJSON = function(src)
\t\t\t// Evals JSON that we know to be safe.
\t\t\t{
\t\t\t\teval('var json = ' + src + ';');
\t\t\t\treturn json;
\t\t\t};

\t\t})(jQuery);

\t\t\$(document).ready(function() {
\t\t\tjQuery.fn.exists = function() {
\t\t\t\treturn ( this.is('*') );
\t\t\t}

\t\t\tif (hasReqestedFlashVersion) {
\t\t\t\tswfu = new SWFUpload({
\t\t\t\t\t// Backend Settings
\t\t\t\t\tupload_url: \"";
        // line 60
        echo twig_safe_filter((isset($context['AppPath']) ? $context['AppPath'] : null));
        echo "/admin/remote.php?remoteSection=imagemanager&w=uploadimage\",\t// Relative to the SWF file or absolute
\t\t\t\t\t// File Upload Settings
\t\t\t\t\tfile_size_limit : \"2 MB\",\t// 2MB
\t\t\t\t\tfile_types : \"*.jpg;*.gif;*.png;*.tiff,*.bmp,*.jpeg\",
\t\t\t\t\tfile_types_description : \" Images\",
\t\t\t\t\tfile_upload_limit : \"0\",

\t\t\t\t\tpost_params: {\"PHPSESSID\": \"";
        // line 67
        echo twig_safe_filter((isset($context['sessionid']) ? $context['sessionid'] : null));
        echo "\"},

\t\t\t\t\t// Event Handler Settings
\t\t\t\t\tfile_queue_error_handler : fileQueueError,
\t\t\t\t\tfile_dialog_complete_handler : fileDialogComplete,
\t\t\t\t\tupload_progress_handler : uploadProgress,
\t\t\t\t\tupload_error_handler : uploadError,
\t\t\t\t\tupload_success_handler : uploadSuccess,
\t\t\t\t\tupload_complete_handler : uploadComplete,

\t\t\t\t\t// Button Settings
\t\t\t\t\tbutton_placeholder_id : \"spanButtonPlaceholder\",
\t\t\t\t\tbutton_width: 130,
\t\t\t\t\tbutton_height: 22,
\t\t\t\t\tbutton_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT,
\t\t\t\t\tbutton_cursor: SWFUpload.CURSOR.HAND,

\t\t\t\t\t// Flash Settings
\t\t\t\t\tflash_url : \"images/swfupload.swf\",

\t\t\t\t\tcustom_settings : {
\t\t\t\t\t\tupload_target : \"divFileProgressContainer\"
\t\t\t\t\t},

\t\t\t\t\t// Debug Settings
\t\t\t\t\tdebug: false
\t\t\t\t});
\t\t\t} else { // no flash installed!
\t\t\t\t\$('#btnUpload').click(function () {
\t\t\t\t\tvar dialog = new MultiUploadDialog({
\t\t\t\t\t\taction: 'remote.php?remoteSection=imagemanager&w=uploadimage&unique=' + global_randNum,
\t\t\t\t\t\ttitletext: '";
        // line 98
        echo Interspire_Template_Extension::jsFilter(getLang("UploadingImages"), "'");
        echo "',
\t\t\t\t\t\tintrotext: '";
        // line 99
        echo Interspire_Template_Extension::jsFilter(getLang("noFlashImageUploadIntro"), "'");
        echo "',
\t\t\t\t\t\tsubmittext: '";
        // line 100
        echo Interspire_Template_Extension::jsFilter(getLang("Upload"), "'");
        echo "',
\t\t\t\t\t\tclosetext: '";
        // line 101
        echo Interspire_Template_Extension::jsFilter(getLang("Cancel"), "'");
        echo "',
\t\t\t\t\t\tcleartext: '";
        // line 102
        echo Interspire_Template_Extension::jsFilter(getLang("Remove"), "'");
        echo "',
\t\t\t\t\t\tnoinputsalerttext: '";
        // line 103
        echo Interspire_Template_Extension::jsFilter(getLang("UploadImagesChooseAnImage"), "'");
        echo "'
\t\t\t\t\t});

\t\t\t\t\t\$(dialog).bind('uploadsuccess', function(evt, result){
\t\t\t\t\t\tif (result.Filedata.duplicate) {
\t\t\t\t\t\t\tUploadDuplicateFiles.push(result.Filedata.name);
\t\t\t\t\t\t} else if (result.Filedata.errorfile != '') {
\t\t\t\t\t\t\tUploadErrorFiles.push(result.Filedata.name);
\t\t\t\t\t\t} else if (result.Filedata.error == 0) {
\t\t\t\t\t\t\t// success!
\t\t\t\t\t\t\tAdminImageManager.AddImage(result.Filedata.name, '../product_images/uploaded_images/' + result.Filedata.name,  result.Filedata.filesize, result.Filedata.width, result.Filedata.height, result.Filedata.origwidth + ' x ' + result.Filedata.origheight,  result.Filedata.id);
\t\t\t\t\t\t}
\t\t\t\t\t});

\t\t\t\t\t\$(dialog).bind('uploadsfinished', function(evt){
\t\t\t\t\t\tif(UploadErrorFiles.length > 0){
\t\t\t\t\t\t\tvar imageList = '';
\t\t\t\t\t\t\tvar thisImage = '';
\t\t\t\t\t\t\tfor(var i = 0; i < UploadErrorFiles.length; i++){
\t\t\t\t\t\t\t\tthisImage = UploadErrorFiles[i];
\t\t\t\t\t\t\t\timageList += '<li>' + \$('<p>' + thisImage + '</p>').text() + '</li>'; // strips out any html
\t\t\t\t\t\t\t}
\t\t\t\t\t\t\tif(UploadErrorFiles.length == TotalItemsToUpload){
\t\t\t\t\t\t\t\tdisplay_error('MainMessage', '";
        // line 126
        echo getLang("imageManagerFilesNotValidImages");
        echo " <ul>' + imageList + '</ul>');
\t\t\t\t\t\t\t}else{
\t\t\t\t\t\t\t\tdisplay_error('MainMessage', '";
        // line 128
        echo getLang("imageManagerSomeFilesNotValidImages");
        echo " <ul>' + imageList + '</ul>');
\t\t\t\t\t\t\t}
\t\t\t\t\t\t}else if(UploadDuplicateFiles.length > 0){
\t\t\t\t\t\t\tvar imageList = '';
\t\t\t\t\t\t\tvar thisImage = '';
\t\t\t\t\t\t\tfor(var i = 0; i < UploadDuplicateFiles.length; i++){
\t\t\t\t\t\t\t\tthisImage = UploadDuplicateFiles[i];
\t\t\t\t\t\t\t\timageList += '<li>' + \$('<p>' + thisImage + '</p>').text() + '</li>'; // strips out any html
\t\t\t\t\t\t\t}
\t\t\t\t\t\t\tdisplay_error('MainMessage', '";
        // line 137
        echo getLang("imageManagerDuplicates");
        echo " <ul>' + imageList + '</ul>');
\t\t\t\t\t\t}else{
\t\t\t\t\t\t\t// The 4 selected images have been uploaded and are shown below
\t\t\t\t\t\t\t// The selected image has been uploaded and is shown below.
\t\t\t\t\t\t\tif(FileCount == 1){
\t\t\t\t\t\t\t\tdisplay_success('MainMessage', '";
        // line 142
        echo getLang("imageManagerSuccess");
        echo "');
\t\t\t\t\t\t\t}else{
\t\t\t\t\t\t\t\tdisplay_success('MainMessage', '";
        // line 144
        echo getLang("imageManagerMultipleSuccessThe");
        echo " ' + FileCount + ' ";
        echo getLang("imageManagerMultipleSuccess");
        echo "');
\t\t\t\t\t\t\t}
\t\t\t\t\t\t}
\t\t\t\t\t});

\t\t\t\t});
\t\t\t}

\t\t\t\$('.DeleteImageCheckbox').live('click', function(){
\t\t\t\tif(\$('.DeleteImageCheckbox:checked').size() < 1) {
\t\t\t\t\t\$('#toggleAllChecks').removeAttr('checked');
\t\t\t\t}
\t\t\t});

\t\t\t\$('#deleteButton').bind('click', function(){
\t\t\t\tif(!\$('#hasImages input:checkbox:checked').exists()){
\t\t\t\t\talert('";
        // line 160
        echo getLang("imageManagerNoImagesSelectedForDelete");
        echo "');
\t\t\t\t\treturn;
\t\t\t\t}
\t\t\t\tif(confirm('";
        // line 163
        echo getLang("imageManagerConfirmDeleteSelectedImages");
        echo "')) {
\t\t\t\t\tvar sendPOST = '';
\t\t\t\t\t\$('input:checkbox:checked').each(function (){
\t\t\t\t\t\tif(this.value == '%%image_name%%') { return; }
\t\t\t\t\t\tsendPOST += '&deleteimages[]=' + escape(this.value);
\t\t\t\t\t});

\t\t\t\t\t\$.post('remote.php?remoteSection=imagemanager&w=delete', sendPOST,
\t\t\t\t\t\t\tfunction(json){
\t\t\t\t\t\t\t\tvar result = \$.evalJSON(json);
\t\t\t\t\t\t\t\tif(result.success){
\t\t\t\t\t\t\t\t\tfor(var i = 0; i < result.successimages.length; i++) {
\t\t\t\t\t\t\t\t\t\tvar imageName = result.successimages[i];
\t\t\t\t\t\t\t\t\t\timageName = RemoveExtension(imageName);
\t\t\t\t\t\t\t\t\t\t\$('input:checkbox[value=' + imageName + ']').removeAttr('checked');
\t\t\t\t\t\t\t\t\t\t\$('input:text[value=' + imageName + ']').parent().hide('slow');
\t\t\t\t\t\t\t\t\t\t\$('input:text[value=' + imageName + ']').parent().remove();
\t\t\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t\t\tdisplay_success('MainMessage', result.message);
\t\t\t\t\t\t\t\t\tAdminImageManager.CheckDelete();
\t\t\t\t\t\t\t\t}else{
\t\t\t\t\t\t\t\t\tdisplay_error('MainMessage', result.message);
\t\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t});
\t\t\t\t}
\t\t\t});
\t\t});


function RemoveExtension(name){
\tvar pos = name.lastIndexOf(\".\");
\tif (pos >= 0) {
\t\tvar userFriendlyName = name.substr(0, pos);
\t}
\telse {
\t\tvar userFriendlyName = name;
\t}

\treturn userFriendlyName;
}

var OriginalTextValue = '';
var AdminImageManager = {

\tnoflashTotalUploads: 0,
\tpercentIncrementNonFlash: 0,
\ttotalPercentNonFlash: 0,
\ttotalFieldsNonFlash: 0,
\tcurrentFieldNonFlash: 0,

\tGetImageRow: function() {
\t\tvar row = '<div class=\"ManageImageBox\" id=\"%%image_id%%\" >';
\t\trow += '  <input type=\"checkbox\" id=\"deleteimages[]\" value=\"%%image_realname%%\" class=\"DeleteImageCheckbox\" />';
\t\trow += '  <input class=\"TemplateHeading inPlaceImageBoxDefault\" id=\"%%image_id%%_name\" value=\"%%image_name%%\" /><br />';
\t\trow += '  <input type=\"hidden\" id=\"%%image_id%%_realname\" value=\"%%image_realname%%\" />';
\t\trow += '  <div style=\"width: 202px; height: 156px; margin-top: 5px;\">';
\t\trow += '    <a href=\\'%%image_url%%\\' id=\"%%image_id%%_url\" target=\"_blank\">';
\t\trow += '      <img src=\\'%%image_url%%\\' style=\" border: solid 1px #CACACA;\"  id=\"%%image_id%%_image\" width=\"%%image_width%%\" height=\"%%image_height%%\" title=\"";
        // line 220
        echo getLang("imageManagerClickToViewFullSize");
        echo "\" />';
\t\trow += '    </a>';
\t\trow += '  </div>';
\t\trow += ' <a href=\\'%%image_url%%\\' id=\"%%image_id%%_urlzoom\" target=\"_blank\"><img width=\"10\" height=\"11\" border=\"0\" src=\"images/magnify.gif\" /></a>';
\t\trow += ' <a href=\\'%%image_url%%\\' id=\"%%image_id%%_urlfull\" target=\"_blank\">";
        // line 224
        echo getLang("imageManagerShowFullImage");
        echo "</a>';
\t\trow += ' | <a id=\"%%image_id%%_download\" href=\"index.php?ToDo=downloadImage&image=%%image_realname%%\">";
        // line 225
        echo getLang("imageManagerDownload");
        echo "</a> ';
\t\trow += ' | <a href=\"#\" id=\"%%image_id%%_edit\">";
        // line 226
        echo getLang("Edit");
        echo "</a><br />';
\t\trow += '  ";
        // line 227
        echo getLang("imageManagerSize");
        echo ": %%image_size%% <br />";
        echo getLang("imageManagerDimensions");
        echo ": %%image_dimensions%%px<br />';
\t\trow += '  <input type=\"button\"  class=\"SmallButton\" id=\"%%image_id%%_delete\" value=\"";
        // line 228
        echo getLang("imageManagerDelete");
        echo "\" style=\"width: 150px; margin-top: 4px; margin-bottom: 14px; \" />';
\t\trow += '</div>';

\t\treturn row;
\t},

\tCheckDelete: function() {
\t\tif (!\$('#imagesList .ManageImageBox').exists()) {
\t\t\t\$('#hasImages').hide();
\t\t\t\$('#hasNoImages').show();
\t\t\t\$('#deleteButton').hide();
\t\t} else {
\t\t\t\$('#hasImages').show();
\t\t\t\$('#hasNoImages').hide();
\t\t\t\$('#deleteButton').show();
\t\t}
\t},

\tCheckAllCheckBoxes: function(checkBox){
\t\tif(\$('#toggleAllChecks').attr('checked')){
\t\t\t\$('#imagesList input:checkbox').attr('checked', 'checked');
\t\t}else{
\t\t\t\$('#imagesList input:checkbox').removeAttr('checked');
\t\t}
\t},

\tAddImage: function(name, url, size, displaywidth, displayheight, dimensions, id){
\t\t\$('#hasImages').show();
\t\t\$('#hasNoImages').hide();
\t\t\$('#deleteButton').show();
\t\tvar html = AdminImageManager.GetImageRow();

\t\tvar userFriendlyName = RemoveExtension(name);

\t\thtml = html.replace(/%%image_name%%/g, userFriendlyName);
\t\thtml = html.replace(/%%image_realname%%/g, name);
\t\thtml = html.replace(/%%image_id%%/g, id);
\t\thtml = html.replace(/%%image_url%%/g, url);
\t\thtml = html.replace(/%%image_size%%/g, size);
\t\thtml = html.replace(/%%image_width%%/g, displaywidth);
\t\thtml = html.replace(/%%image_height%%/g, displayheight);
\t\thtml = html.replace(/%%image_dimensions%%/g, dimensions);

\t\t\$(html).appendTo('#imagesList');

\t\t\$('#'+id+'_edit').bind('click', function(evt){
\t\t\tevt.preventDefault();
\t\t\tCommon.Picnik.launchEditor('imagemanager', name, function(data){
\t\t\t\t\$('.ManageImageBox#' + id).remove();
\t\t\t\tAdminImageManager.AddImage(data.name, data.url + '?rand=' + Math.random(), data.size, data.displaywidth, data.displayheight, data.dimensions, data.id)
\t\t\t});
\t\t});

\t\t\$('#'+id+'_delete').bind('click',
\t\t\tfunction () {
\t\t\t\tvar idBits = this.id.split('_');
\t\t\t\tvar id = idBits[0];

\t\t\t\tif(confirm('";
        // line 286
        echo Interspire_Template_Extension::jsFilter(getLang("imageManagerConfirmDeleteSingleImage"), "'");
        echo " \"' + \$('#'+id+'_name').val() +  '\"";
        echo Interspire_Template_Extension::jsFilter(getLang("imageManagerConfirmDeleteSingleImageSuffix"), "'");
        echo "')) {
\t\t\t\t\tvar sendPOST = '';
\t\t\t\t\tsendPOST = 'deleteimages[]=' + escape(\$('#'+id+'_realname').val());

\t\t\t\t\t\$.post('remote.php?remoteSection=imagemanager&w=delete', sendPOST,
\t\t\t\t\t\t\tfunction(json){
\t\t\t\t\t\t\t\tvar result = \$.evalJSON(json);
\t\t\t\t\t\t\t\tif(result.success){
\t\t\t\t\t\t\t\t\tfor(var i = 0; i < result.successimages.length; i++) {
\t\t\t\t\t\t\t\t\t\tvar imageName = result.successimages[i];
\t\t\t\t\t\t\t\t\t\timageName = RemoveExtension(imageName);
\t\t\t\t\t\t\t\t\t\t\$('input:checkbox[value=' + imageName + ']').removeAttr('checked');
\t\t\t\t\t\t\t\t\t\t\$('input:text[value=' + imageName + ']').parent().hide('slow');
\t\t\t\t\t\t\t\t\t\t\$('input:text[value=' + imageName + ']').parent().remove();
\t\t\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t\t\tdisplay_success('MainMessage', result.message);
\t\t\t\t\t\t\t\t\tAdminImageManager.CheckDelete();
\t\t\t\t\t\t\t\t}else{
\t\t\t\t\t\t\t\t\tdisplay_error('MainMessage', result.message);
\t\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t});
\t\t\t\t}
\t\t\t}
\t\t);

\t\t\$('#'+id+'_name').bind('mouseover',
\t\t\tfunction () {

\t\t\t\tif(!\$(this).hasClass(\"inPlaceFieldFocus\")) {
\t\t\t\t\t\$(this).addClass(\"inPlaceImageBoxFieldHover\");
\t\t\t\t}
\t\t\t}
\t\t);

\t\t\$('#'+id+'_name').bind('mouseout',
\t\t\tfunction () {
\t\t\t\t\$(this).removeClass(\"inPlaceImageBoxFieldHover\");
\t\t\t}
\t\t);

\t\t\$('#'+id+'_name').bind('keypress', function(e) {
\t\t\tif (e.which == null)
\t\t\t\tvar code = e.keyCode;    // IE
\t\t\telse if (e.which > 0)
\t\t\t\tvar code = e.which;\t  // All others

\t\t\tif (code == 32\t\t\t\t\t\t\t//\tspace
\t\t\t\t|| (48 <= code && code <= 57)\t\t//\tnumbers
\t\t\t\t|| (65 <= code && code <= 90)\t\t//\tlowercase latin letters
\t\t\t\t|| (97 <= code && code <= 122)\t//\tuppercase latin letters
\t\t\t\t|| code == 95\t\t\t\t\t\t//\tunderscore
\t\t\t\t|| code == 13\t\t\t\t\t\t//\tenter
\t\t\t\t|| code == 8\t\t\t\t\t\t\t//  backspace
\t\t\t\t|| (35 <= code && code <= 40 && !e.shiftKey) // home, end, arrows
\t\t\t\t|| code == 46\t\t\t\t\t\t//\tdelete
\t\t\t\t|| code == undefined
\t\t\t\t) {
\t\t\t\t//\tno problem
\t\t\t} else {
\t\t\t\te.preventDefault();
\t\t\t}
\t\t});

\t\t\$('#'+id+'_name').bind('focus',
\t\t\tfunction () {
\t\t\t\t\$('.inPlaceFieldFocus').each(function(){
\t\t\t\t\tcancelEditName(\$(this));
\t\t\t\t\t\$(this).removeClass('inPlaceFieldFocus');
\t\t\t\t});
\t\t\t\t\$(this).removeClass(\"inPlaceImageBoxFieldHover\");
\t\t\t\t\$(this).addClass(\"inPlaceFieldFocus\");
\t\t\t\tOriginalTextValue = this.value;
\t\t\t\tthis.select();
\t\t\t\t\$('<div style=\"background-color: #F9F9F9; width: 205px; position: absolute; padding: 5px; top: 30px; left: 2px;\" id=\"EditNameButtons\"><input type=\"button\" class=\"FormButton\" name=\"saveEdit\" value=\"";
        // line 359
        echo getLang("Save");
        echo "\"  style=\"float: right;\" onclick=\"saveEditName(\$(\\'#' + this.id + '\\'));\" /><input type=\"button\" class=\"FormButton\" name=\"cancelEdit\" value=\"";
        echo getLang("Cancel");
        echo "\" style=\"float: left;\"  onclick=\"cancelEditName(\$(\\'#' + this.id + '\\'));\" /> </div>').insertAfter(this);
\t\t\t}
\t\t);


\t\tif (\$.browser.mozilla) {
\t\t\tvar event = \"keypress\";
\t\t} else {
\t\t\tvar event = \"keydown\";
\t\t}

\t\t\$('#'+id+'_name').bind(event, function(e) {
\t\t\tif (e.keyCode == 13) {
\t\t\t\t\$('#'+id+'_name').blur();
\t\t\t}
\t\t});
\t}
};

function saveEditName(field){
\t\$(field).attr('disabled', true);

\tvar idBits = field.attr('id');
\tidBits = idBits.split('_');
\tvar id = idBits[0];
\t\$('#EditNameButtons').remove();

\tfield.removeClass(\"inPlaceFieldFocus\");
\tvar newVal = \$.trim(field.val());
\tif (newVal == '') {
\t\t// empty name, error
\t\tdisplay_error(\"MainMessage\", '";
        // line 390
        echo getLang("imageManagerRenameInvalidFileName");
        echo " ');
\t\t\$('#'+id+'_name').val(OriginalTextValue);
\t} else if (newVal != OriginalTextValue){
\t\t\$.post('remote.php?remoteSection=imagemanager&w=rename', 'fromName=' + escape(\$('#' + id + '_realname').val()) + '&toName=' + escape(newVal),
\t\t\tfunction(json){
\t\t\t\tvar result = \$.evalJSON(json);
\t\t\t\tif(result.success){
\t\t\t\t\tvar message = '";
        // line 397
        echo getLang("fileRenamedSuccess");
        echo "';
\t\t\t\t\tmessage = message.replace('%from%', OriginalTextValue);
\t\t\t\t\tmessage = message.replace('%to%', result.newname);
\t\t\t\t\tdisplay_success(\"MainMessage\", message);

\t\t\t\t\t\$('#' + id + '_image').attr('src', result.newurl);
\t\t\t\t\t\$('#' + id + '_urlzoom').attr('href', result.newurl);
\t\t\t\t\t\$('#' + id + '_urlfull').attr('href', result.newurl);
\t\t\t\t\t\$('#' + id + '_download').attr('href', result.newurl);
\t\t\t\t\t\$('#' + id + '_realname').val(result.newrealname);
\t\t\t\t\t\$('#'+id+'_name').val(result.newname);
\t\t\t\t}else{
\t\t\t\t\tdisplay_error(\"MainMessage\", '";
        // line 409
        echo getLang("fileRenamedError");
        echo " ' + result.message);
\t\t\t\t\t\$('#'+id+'_name').val(OriginalTextValue);
\t\t\t\t}
\t\t\t});
\t}

\t\$(field).attr('disabled', false);
}


function cancelEditName(field){
\t\$(field).val(OriginalTextValue);
\t\$(field).removeClass(\"inPlaceFieldFocus\");
\t\$('#EditNameButtons').remove();
}

function ChangeImageManagerPaging(object, pagenumber) {
\tpagingId = object.selectedIndex;
\tpagingamount = object[pagingId].value;
\twindow.location = 'index.php?ToDo=manageImages&page=' + pagenumber + '&perpage='+ pagingamount;
}


function ChangeImageManagerSorting(object, pagenumber) {
\tpagingId = object.selectedIndex;
\tvar sortby = object[pagingId].value;
\twindow.location = 'index.php?ToDo=manageImages&page=' + pagenumber + '&sortby='+ sortby;
}

</script>

<div class=\"BodyContainer\">
<table class=\"OuterPanel\" cellpadding=\"0\" cellspacing=\"0\">
\t<tr>
\t\t<td class=\"Heading1\">";
        // line 443
        echo getLang("ManageImages");
        echo "</td>
\t</tr>
\t<tr>
\t\t<td class=\"Intro\">

\t\t<p>";
        // line 448
        echo getLang("ManageImagesIntro");
        echo "</p>

\t\t<div id=\"MainMessage\">
\t\t\t";
        // line 451
        echo twig_safe_filter((isset($context['Message']) ? $context['Message'] : null));
        echo "
\t\t</div>

\t\t<p>
\t\t\t<span id=\"spanButtonPlaceholder\"></span>
\t\t\t<input id=\"btnUpload\" type=\"button\" class=\"SmallButton\" value=\"";
        // line 456
        echo getLang("imageManagerUploadImages");
        echo "\" style=\"width: 130px;\" />&nbsp;<input id=\"deleteButton\" type=\"button\" value=\"";
        echo getLang("imageManagerDeleteSelected");
        echo "\"  class=\"SmallButton\"  style=\"display: \" /><br /><br />
\t\t</p>
</td>
</tr><tr><td>

<div style=\"display: none\" id=\"ProgressWindow\">
<div id=\"ProgressBarDiv\" style=\"text-align: center;\"><br/><span id=\"ProgressBarText\" class=\"ProgressBarText\">";
        // line 462
        echo getLang("imageManagerUploadInProgress");
        echo "</span><br/><br/><br/>
\t<div style=\"border: 1px solid #ccc; width: 300px; padding: 0px; margin: 0 auto; position: relative;\">
\t\t<div class=\"progressBarPercentage\" style=\"margin: 0; padding: 0; background: url('images/progressbar.gif') no-repeat; height: 20px; width: 0%; \">
\t\t\t&nbsp;
\t\t</div>
\t\t<div style=\"position: absolute; top: 0px; left: 0; text-align: center; width: 300px; font-weight: bold;line-height:1.5;color:#333333;font-family:Tahoma;font-size:11px;\" class=\"progressPercent\">&nbsp;</div>
\t</div>
\t<span id=\"progressBarStatus\" class=\"progressBarStatus\" style=\"text-align: center; font-size: 10px; color: gray; padding-top: 5px;\">&nbsp;</span>
\t<br />
\t<br/>
\t<br/>
</div>

</div><!-- End #ProgressWindow -->

<div id=\"hasImages\" style=\"display: ";
        // line 477
        echo twig_safe_filter((isset($context['hideImages']) ? $context['hideImages'] : null));
        echo ";\">
<div style=\"\">
\t<div style=\"float: right\">";
        // line 479
        echo twig_safe_filter((isset($context['paging']) ? $context['paging'] : null));
        echo "</div>
\t<div style=\"float: right; padding-bottom: 7px;\">
\t\t<select name=\"PerPage\" class=\"Field\" style=\"width: 180px;\" onChange=\"ChangeImageManagerPaging(this, '";
        // line 481
        echo twig_safe_filter((isset($context['PageNumber']) ? $context['PageNumber'] : null));
        echo "');\">
\t\t\t<option value=\"10\" ";
        // line 482
        echo twig_safe_filter((isset($context['PerPage10Selected']) ? $context['PerPage10Selected'] : null));
        echo ">";
        echo getLang("imageManager10PerPage");
        echo "</option>
\t\t\t<option value=\"20\" ";
        // line 483
        echo twig_safe_filter((isset($context['PerPage20Selected']) ? $context['PerPage20Selected'] : null));
        echo ">";
        echo getLang("imageManager20PerPage");
        echo "</option>
\t\t\t<option value=\"50\" ";
        // line 484
        echo twig_safe_filter((isset($context['PerPage50Selected']) ? $context['PerPage50Selected'] : null));
        echo ">";
        echo getLang("imageManager50PerPage");
        echo "</option>
\t\t\t<option value=\"100\" ";
        // line 485
        echo twig_safe_filter((isset($context['PerPage100Selected']) ? $context['PerPage100Selected'] : null));
        echo ">";
        echo getLang("imageManager100PerPage");
        echo "</option>
\t\t\t<option value=\"0\" ";
        // line 486
        echo twig_safe_filter((isset($context['PerPageAllSelected']) ? $context['PerPageAllSelected'] : null));
        echo ">";
        echo getLang("imageManagerShowAllImages");
        echo "</option>
\t\t</select>
\t\t<select name=\"SortBy\" class=\"Field\" style=\"width: 150px;\" onChange=\"ChangeImageManagerSorting(this, '";
        // line 488
        echo twig_safe_filter((isset($context['PageNumber']) ? $context['PageNumber'] : null));
        echo "');\">
\t\t\t<option value=\"name.asc\" ";
        // line 489
        echo twig_safe_filter((isset($context['SortNameAsc']) ? $context['SortNameAsc'] : null));
        echo ">";
        echo getLang("SortNameAsc");
        echo "</option>
\t\t\t<option value=\"name.desc\" ";
        // line 490
        echo twig_safe_filter((isset($context['SortNameDesc']) ? $context['SortNameDesc'] : null));
        echo ">";
        echo getLang("SortNameDesc");
        echo "</option>

\t\t\t<option value=\"modified.asc\" ";
        // line 492
        echo twig_safe_filter((isset($context['SortModifiedAsc']) ? $context['SortModifiedAsc'] : null));
        echo ">";
        echo getLang("SortDateAsc");
        echo "</option>
\t\t\t<option value=\"modified.desc\" ";
        // line 493
        echo twig_safe_filter((isset($context['SortModifiedDesc']) ? $context['SortModifiedDesc'] : null));
        echo ">";
        echo getLang("SortDateDesc");
        echo "</option>

\t\t\t<option value=\"size.asc\" ";
        // line 495
        echo twig_safe_filter((isset($context['SortSizeAsc']) ? $context['SortSizeAsc'] : null));
        echo ">";
        echo getLang("SortFilesizeAsc");
        echo "</option>
\t\t\t<option value=\"size.desc\" ";
        // line 496
        echo twig_safe_filter((isset($context['SortSizeDesc']) ? $context['SortSizeDesc'] : null));
        echo ">";
        echo getLang("SortFilesizeDesc");
        echo "</option>
\t\t</select>
\t</div>
</div>
<div style=\"clear:both;\"></div>
\t<table class=\"Panel\" style=\"margin:0px;\">
\t\t\t<tr>
\t\t\t\t<td class=\"Heading2\" colspan='2'>
\t\t\t\t\t<input type=\"checkbox\" name=\"toggleAllChecks\" id=\"toggleAllChecks\" onclick=\"AdminImageManager.CheckAllCheckBoxes(this);\" style=\"margin: 3px 0 0 0 ; float: left;\" />
\t\t\t\t\t<label for=\"toggleAllChecks\" style=\"display: block; padding-top: 4px; float: left; padding-left: 4px;\">";
        // line 505
        echo twig_safe_filter((isset($context['ImagesTitle']) ? $context['ImagesTitle'] : null));
        echo "</label>
\t\t\t\t</td>
\t\t\t</tr>
\t\t\t<tr>
\t\t\t\t<td align=\"right\" style=\" padding-left: 10px;\" colspan='2'>

\t\t\t\t</td>
\t\t\t</tr>
\t\t\t<tr>
\t\t\t\t<td style=\"padding:5px 5px 5px 10px;\" colspan='2'>



\t<div id=\"imagesList\">
\t\t<script type=\"text/javascript\">
\t\t\t";
        // line 520
        echo twig_safe_filter((isset($context['imagesList']) ? $context['imagesList'] : null));
        echo "
\t\t</script>
\t</div><!-- end #imagesList -->

\t</td>
\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t<td align=\"right\" style=\" padding-left: 10px;\" colspan='2'>
\t\t\t\t\t<select name=\"PerPage\" class=\"Field\" style=\"width: 180px;\" onChange=\"ChangeImageManagerPaging(this, '";
        // line 528
        echo twig_safe_filter((isset($context['PageNumber']) ? $context['PageNumber'] : null));
        echo "');\">
\t\t\t\t\t\t<option value=\"10\" ";
        // line 529
        echo twig_safe_filter((isset($context['PerPage10Selected']) ? $context['PerPage10Selected'] : null));
        echo ">";
        echo getLang("imageManager10PerPage");
        echo "</option>
\t\t\t\t\t\t<option value=\"20\" ";
        // line 530
        echo twig_safe_filter((isset($context['PerPage20Selected']) ? $context['PerPage20Selected'] : null));
        echo ">";
        echo getLang("imageManager20PerPage");
        echo "</option>
\t\t\t\t\t\t<option value=\"50\" ";
        // line 531
        echo twig_safe_filter((isset($context['PerPage50Selected']) ? $context['PerPage50Selected'] : null));
        echo ">";
        echo getLang("imageManager50PerPage");
        echo "</option>
\t\t\t\t\t\t<option value=\"100\" ";
        // line 532
        echo twig_safe_filter((isset($context['PerPage100Selected']) ? $context['PerPage100Selected'] : null));
        echo ">";
        echo getLang("imageManager100PerPage");
        echo "</option>
\t\t\t\t\t\t<option value=\"0\" ";
        // line 533
        echo twig_safe_filter((isset($context['PerPageAllSelected']) ? $context['PerPageAllSelected'] : null));
        echo ">";
        echo getLang("imageManagerShowAllImages");
        echo "</option>
\t\t\t\t\t</select>
\t\t\t\t\t<select name=\"SortBy\" class=\"Field\" style=\"width: 150px;\" onChange=\"ChangeImageManagerSorting(this, '";
        // line 535
        echo twig_safe_filter((isset($context['PageNumber']) ? $context['PageNumber'] : null));
        echo "');\">
\t\t\t\t\t\t<option value=\"name.asc\" ";
        // line 536
        echo twig_safe_filter((isset($context['SortNameAsc']) ? $context['SortNameAsc'] : null));
        echo ">";
        echo getLang("SortNameAsc");
        echo "</option>
\t\t\t\t\t\t<option value=\"name.desc\" ";
        // line 537
        echo twig_safe_filter((isset($context['SortNameDesc']) ? $context['SortNameDesc'] : null));
        echo ">";
        echo getLang("SortNameDesc");
        echo "</option>

\t\t\t\t\t\t<option value=\"modified.asc\" ";
        // line 539
        echo twig_safe_filter((isset($context['SortModifiedAsc']) ? $context['SortModifiedAsc'] : null));
        echo ">";
        echo getLang("SortDateAsc");
        echo "</option>
\t\t\t\t\t\t<option value=\"modified.desc\" ";
        // line 540
        echo twig_safe_filter((isset($context['SortModifiedDesc']) ? $context['SortModifiedDesc'] : null));
        echo ">";
        echo getLang("SortDateDesc");
        echo "</option>

\t\t\t\t\t\t<option value=\"size.asc\" ";
        // line 542
        echo twig_safe_filter((isset($context['SortSizeAsc']) ? $context['SortSizeAsc'] : null));
        echo ">";
        echo getLang("SortFilesizeAsc");
        echo "</option>
\t\t\t\t\t\t<option value=\"size.desc\" ";
        // line 543
        echo twig_safe_filter((isset($context['SortSizeDesc']) ? $context['SortSizeDesc'] : null));
        echo ">";
        echo getLang("SortFilesizeDesc");
        echo "</option>
\t\t\t\t\t</select>
\t\t\t\t</td>
\t\t\t</tr>
\t </table><br />
\t ";
        // line 548
        echo twig_safe_filter((isset($context['paging']) ? $context['paging'] : null));
        echo "
</div>

<div id=\"hasNoImages\" style=\"display: ";
        // line 551
        echo twig_safe_filter((isset($context['hideHasNoImages']) ? $context['hideHasNoImages'] : null));
        echo "; text-align: center;\">
";
        // line 552
        echo getLang("PromptToCreateImage");
        echo "</div>

</td></tr></table>
</div>

<div style=\"display:none;\" id=\"MultiUploadDialogTemplate\">
\t<div class=\"ModalTitle\">%titletext%</div>
\t<div class=\"ModalContent\">
\t\t<div class=\"MultiUploadDialogContent\">
\t\t\t<div class=\"UploadDialog\">
\t\t\t\t<p>%introtext%</p>
\t\t\t\t<div class=\"GrowingUploader\">
\t\t\t\t\t<input type=\"file\" name=\"Filedata\" width=\"300\" class=\"Button MultiUploadDialogInput\" /> <a href=\"#\">%cleartext%</a>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"ProgressIndicator\" style=\"display:none;\">
\t\t\t\t<p class=\"ProgressMessage\"></p>
\t\t\t\t<div class=\"ProgressBar\">
\t\t\t\t\t<div class=\"ProgressBarColour\">&nbsp;</div>
\t\t\t\t\t<div class=\"ProgressBarText\"></div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t<div class=\"ModalButtonRow\">
\t\t<div class=\"MultiUploadDialogButtons\">
\t\t\t<div class=\"FloatLeft\">
\t\t\t\t<input type=\"button\" class=\"CloseButton FormButton\" value=\"%closetext%\" />
\t\t\t</div>
\t\t\t<input type=\"button\" class=\"Submit FormButton\" value=\"%submittext%\" />
\t\t</div>
\t</div>
</div><!-- end #MultiUploadDialogTemplate -->
";
    }
    public function display(array $context)
    {
        // line 1
        $context['formBuilder'] = $this->env->loadTemplate("macros/forms.tpl", true);
        // line 2
        $context['util'] = $this->env->loadTemplate("macros/util.tpl", true);
        echo "
<script language=\"javascript\" type=\"text/javascript\">//<![CDATA[
if (typeof lang == 'undefined') {
\tlang = {};
}
lang.EmailIntegration_ExportOnly_Delete_Confirm = \"";
        // line 8
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegration_ExportOnly_Delete_Confirm"), "'");
        echo "\";

//]]></script>


<div class=\"MessageBox MessageBoxInfo\">
\t";
        // line 14
        echo getLang("EmailIntegration_ExportOnly_Intro");
        echo "</div>

";
        // line 17
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "method"), "1");
        echo "

\t";
        // line 19
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "EmailIntegration_ExportOnly_Header", array(), "any"), ), "method"), "1");
        echo "

\t";
        // line 21
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "EmailIntegration_ExportOnly_Current_Label", array(), "any")) . (":"), "last" => true), ), "method"), "1");
        echo "

\t\t<input type=\"text\" id=\"emailintegration_exportonly_subscribercount\" class=\"chromeless Field50\" value=\"";
        // line 23
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "getSubscriptionCount", array(), "any"), "1");
        echo "\" readonly=\"readonly\" style=\"text-align:right;\" />

\t\t<span id=\"emailintegration_exportonly_subscriberactions\" style=\"";
        // line 25
        if ((!$this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "getSubscriptionCount", array(), "any"))) {
            echo "display:none;";
        }
        echo "\">
\t\t\t(<a href=\"#\" class=\"exportSubscriptionsButton\">";
        // line 26
        echo getLang("EmailIntegration_ExportOnly_Export_Button");
        echo "</a>
\t\t\t";
        // line 27
        echo getLang("Or");
        echo "\t\t\t<a href=\"#\" class=\"deleteSubscriptionsButton\">";
        // line 28
        echo getLang("EmailIntegration_ExportOnly_Delete_Button");
        echo "</a>)
\t\t</span>

\t";
        // line 31
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "method"), "1");
        echo "

";
        // line 33
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "method"), "1");
        echo "
";
    }
    public function display(array $context)
    {
        // line 1
        $context['util'] = $this->env->loadTemplate("macros/util.tpl", true);
        // line 2
        $context['formBuilder'] = $this->env->loadTemplate("macros/forms.tpl", true);
        echo "
<style type=\"text/css\" media=\"screen\">
\t.mobileTemplateDevices div.value,
\t.tabletTemplateDevices div.value {
\t\tpadding-left: 25px;
\t\tdisplay: block !important;
\t\tbackground: url('images/nodejoin.gif') no-repeat;
\t}
</style>

<script type=\"text/javascript\">

// load language variables for the header image javascript
lang['HeaderImageConfirmDelete']   = \"";
        // line 16
        echo getLang("HeaderImageConfirmDelete");
        echo "\";
lang['LayoutHeaderNoCurrentImage'] = \"";
        // line 17
        echo getLang("LayoutHeaderNoCurrentImage");
        echo "\";
lang['LayoutHeaderImageNoImage']   = \"";
        // line 18
        echo getLang("LayoutHeaderImageNoImage");
        echo "\";

var disableLoadingIndicator;
var CurrentVersion = '";
        // line 21
        echo twig_safe_filter((isset($context['TemplateVersion']) ? $context['TemplateVersion'] : null));
        echo "';

function ShowTab(T){
\ti = 0;
\tif('";
        // line 25
        echo twig_safe_filter((isset($context['HideMessageBox']) ? $context['HideMessageBox'] : null));
        echo "' == 'none'){
\t\t\$('#TemplateMsgBox').hide('normal');
\t}

\twhile(document.getElementById(\"tab\" + i) != null){
\t\tdocument.getElementById(\"div\" + i).style.display = \"none\";
\t\tdocument.getElementById(\"tab\" + i).className = \"\";
\t\ti++;
\t}

\tdocument.getElementById(\"div\" + T).style.display = \"\";
\tdocument.getElementById(\"tab\" + T).className = \"active\";
\tdocument.getElementById(\"currentTab\").value = T;
\tSetCookie('templatesCurrentTab', T, 365);

\t\$(document).trigger('tabSelect' + T);
}

function launchDesignMode()
{
\twindow.open('";
        // line 45
        echo twig_safe_filter((isset($context['ShopPathNormal']) ? $context['ShopPathNormal'] : null));
        echo "/?designModeToken=";
        echo twig_safe_filter((isset($context['DesignModeToken']) ? $context['DesignModeToken'] : null));
        echo "');
}

function get_random()
{
\tvar ranNum= Math.floor(Math.random()*105205);
\treturn ranNum;
}

function ChangeTemplateColor(link, preview, previewFull) {
\t\$(link).parents('div.TemplateBox').find('.previewImage').attr('src', preview);
\t\$(link).parents('div.TemplateBox').find('.previewImage').parents('a').attr('href', previewFull);
}

function DownloadTemplate(id, width, height) {
\ttb_show('', 'index.php?ToDo=templateDownload&template='+id+'&height='+height+'&width='+width);
}


function LaunchEditor(){
\tvar win = window.open(\"designmode.php?ToDo=editFile&File=default.html&f=a\");
\twin.focus();
}

function CheckTemplateVersion(){
\t// do the ajax request
\tdocument.getElementById('TemplateVersionCheck').innerHTML = '<em>Checking Version...</em>';
\tjQuery.ajax({ url: 'remote.php', type: 'POST', dataType: 'xml',
\t\tdata: {'w': 'checktemplateversion'},
\t\tsuccess: function(xml) {
\t\t\tCheckTemplateVersionReturn(xml);
\t\t}
\t});
}

function CheckTemplateVersionReturn(xml){
\tvar  CurrentVersion = '";
        // line 81
        echo twig_safe_filter((isset($context['TemplateVersion']) ? $context['TemplateVersion'] : null));
        echo "';

\tif(\$('status', xml).text() == 1){
\t\tif(\$('version', xml).text() > CurrentVersion){
\t\t\tdocument.getElementById('TemplateVersionCheck').innerHTML = '<img src=\"images/success.gif\" align=\"absmiddle\"> ";
        // line 85
        echo getLang("NewVersionAvailable");
        echo "'.replace('%%VERSION%%', \$('version', xml).text());

\t\t\tif (\$.browser.msie){
\t\t\t\t\$('#TemplateVersionCheck').css(\"background-color\",\"#99FF66\");
\t\t\t} else {
\t\t\t\t\$('#TemplateVersionCheck').show(0);
\t\t\t\t\$('#TemplateVersionCheck').css(\"background-color\",\"#99FF66\");
\t\t\t\t\$('#TemplateVersionCheck').animate({ backgroundColor: '#F9F9F9' }, { queue: true, duration: 1000 });
\t\t\t}

\t\t\tdocument.getElementById('TemplateVersionCheckButton').style.display = \"none\";
\t\t\tdocument.getElementById('DownloadNewVersionButton').style.display = \"\";
\t\t}else{
\t\t\tdocument.getElementById('TemplateVersionCheck').innerHTML = '";
        // line 98
        echo getLang("CurrentTemplateLatest");
        echo "';
\t\t}
\t}else {
\t\tdisplay_error('An Error has Occurred: ' + \$('message', xml).text());
\t}
}

function DownloadNewVersion(){
\tif(confirm('Important Note: By downloading this new template you will completely override your current template files which will *not* be recoverable. If you have made any modifcations to your current template then you should backup your current template before continuing.\\n\\nTo download this template, click \\'OK\\'. To keep the current version, click the \\'Cancel\\' button.')){
\t\tif(\$.browser.msie){
\t\t\ttb_show('', \"index.php?ToDo=templatedownload&template=";
        // line 108
        echo twig_safe_filter((isset($context['CurrentTemplateName']) ? $context['CurrentTemplateName'] : null));
        echo "&color=";
        echo twig_safe_filter((isset($context['CurrentTemplateColor']) ? $context['CurrentTemplateColor'] : null));
        echo "&height=80&width=280&PreviewImage=";
        echo twig_safe_filter((isset($context['CurrentTemplateImage']) ? $context['CurrentTemplateImage'] : null));
        echo "\");
\t\t}else{
\t\t\ttb_show('', \"index.php?ToDo=templatedownload&template=";
        // line 110
        echo twig_safe_filter((isset($context['CurrentTemplateName']) ? $context['CurrentTemplateName'] : null));
        echo "&color=";
        echo twig_safe_filter((isset($context['CurrentTemplateColor']) ? $context['CurrentTemplateColor'] : null));
        echo "&height=58&width=240&PreviewImage=";
        echo twig_safe_filter((isset($context['CurrentTemplateImage']) ? $context['CurrentTemplateImage'] : null));
        echo "\");
\t\t}
\t\tdocument.getElementById('TemplateVersionCheckButton').style.display = \"\";
\t\tdocument.getElementById('DownloadNewVersionButton').style.display = \"none\";
\t}
}

function display_message(text,type){
\tif(type=='error'){
\t\tdisplay_error('TemplateMsgBox', text);
\t} else {
\t\tdisplay_success('TemplateMsgBox', text);
\t}
}


lang.TemplateDownloadColorsConfirm = \"";
        // line 126
        echo getLang("TemplateDownloadColorsConfirm");
        echo "\";
\$(window).resize(function() {
\t// Remove the return statement to have the template list automatically
\t// centered in the middle of the page. Apparently we don't want to do this at the moment.
\treturn;
\ttemplateBoxWidth = \$('.TemplateList .TemplateBox').width() + 20;
\t\$('.TemplateList').css({
\t\twidth: '100%'
\t});
\twidth = \$('.TemplateListContainer').width();
\tnumBoxes = Math.floor(width / templateBoxWidth);
\tvisibleBoxes = \$('.TemplateBox:visible').length;
\tif(visibleBoxes < numBoxes) {
\t\tnumBoxes = visibleBoxes;
\t}
\tleft = (width - (numBoxes * templateBoxWidth)) / 2;
\t\$('.TemplateList').css({
\t\twidth: (templateBoxWidth * numBoxes) + 'px'
\t});
});

\$(document).ready(function() {
\t\$(window).trigger('resize');
\t\$('a.TplPreviewImage').fancybox({
\t\t'zoomSpeedIn': 200,
\t\t'zoomSpeedOut': 200,
\t\t'overlayShow': false,
\t\t'notitle': true
\t});

\t\$('.TemplateBox:not(.TemplateBoxOn)').hover(function() {
\t\t\$(this).addClass('TemplateBoxOver');
\t}, function() {
\t\t\$(this).removeClass('TemplateBoxOver');
\t});

\t\$('.TemplateBox a.ActivateLink').click(function() {
\t\ttemplateBox = \$(this).parents('.TemplateBox');
\t\ttemplateId = templateBox.attr('class').match('TemplateId_([^ \$]+)')[1];
\t\ttemplateName = \$('span.TemplateName', templateBox).html();
\t\ttemplateColor = \$('span.TemplateColor', templateBox).html();
\t\tif(templateBox.hasClass('Installable')) {
\t\t\tif(\$('.TemplateList .TemplateId_'+templateId).length > 1) {
\t\t\t\tcolorSchemes = '';
\t\t\t\t\$('.TemplateList .TemplateId_'+templateId).each(function() {
\t\t\t\t\ttemplateColor = \$('span.TemplateColor', this).html();
\t\t\t\t\tcolorSchemes += '- '+templateColor+\"\\n\";
\t\t\t\t});
\t\t\t\tmessage = lang.TemplateDownloadColorsConfirm;
\t\t\t\tmessage = message.replace(':templateName', templateName);
\t\t\t\tmessage = message.replace(':templateColor', templateColor);
\t\t\t\tmessage = message.replace(':colorList', colorSchemes);
\t\t\t\tif(!confirm(message)) {
\t\t\t\t\treturn false;
\t\t\t\t}
\t\t\t}
\t\t\ttb_show('', 'index.php?ToDo=templateDownload&template='+templateId+'&height=58&width=300&color='+templateColor);
\t\t}
\t\telse {
\t\t\twindow.location = 'index.php?ToDo=changeTemplate&template='+templateId+'&color='+templateColor;
\t\t}
\t\treturn false;
\t});

\t\$('.ShowTemplateTypes').change(function() {
\t\t\$('.NoTemplateMessage').hide();
\t\tswitch(\$(this).val()) {
\t\t\tcase 'installed':
\t\t\t\t\$('.TemplateBox').show();
\t\t\t\t\$('.TemplateBox.Installable').hide();
\t\t\t\tbreak;
\t\t\tcase 'downloadable':
\t\t\t\t\$('.TemplateBox').hide();
\t\t\t\t\$('.TemplateBox.Installable').show();
\t\t\t\tbreak;
\t\t\tdefault:
\t\t\t\t\$('.TemplateBox').show();
\t\t}
\t\t\$(window).trigger('resize');
\t\tif(\$('.TemplateBox:visible').length == 0) {
\t\t\talert('";
        // line 206
        echo Interspire_Template_Extension::jsFilter(getLang("NoTemplatesAvailableFilter"), "'");
        echo "');
\t\t\t\$('.ShowTemplateTypes').val('all').trigger('change');
\t\t}
\t});

\t// Scroll to the active template
\toffsetTop = \$('.TemplateBoxOn').offset().top;
\tlistTop = \$('.TemplateList').offset().top;
\tscrollTop = offsetTop - listTop - 20;
\tif(scrollTop > 0) {
\t\t\$('.TemplateListContainer').scrollTop(scrollTop);
\t}
});

</script>

<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/ajax.file.upload.js?";
        // line 222
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/fancybox/fancybox.js?";
        // line 223
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<link rel=\"stylesheet\" href=\"../javascript/jquery/plugins/fancybox/fancybox.css?";
        // line 224
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\" type=\"text/css\" media=\"screen\">

<script type=\"text/javascript\" src=\"script/layout.js?";
        // line 226
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"script/layout.headerimage.js?";
        // line 227
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>

\t<div class=\"BodyContainer\">
\t<table class=\"OuterPanel\">
\t\t<tr>
\t\t\t<td class=\"Heading1\">";
        // line 232
        echo getLang("ManageTemplates");
        echo "</td>
\t\t</tr>
\t\t<tr>
\t\t<td class=\"Intro\">
\t\t\t<p>";
        // line 236
        echo twig_safe_filter((isset($context['LayoutIntro']) ? $context['LayoutIntro'] : null));
        echo "</p>
\t\t\t<p id=\"TemplateMsgBox\">";
        // line 237
        echo twig_safe_filter((isset($context['Message']) ? $context['Message'] : null));
        echo "</p>
\t\t</td>
\t\t</tr>
\t\t<tr>
\t\t<td class=\"Intro\"><br />
\t\t\t<form action=\"index.php\" method=\"get\">
\t\t\t<input type=\"hidden\" name=\"ToDo\" value=\"viewTemplates\">
\t\t<ul id=\"tabnav\">
\t\t\t\t<li><a href=\"javascript:ShowTab(0)\" class=\"active\" id=\"tab0\">";
        // line 245
        echo getLang("LayoutTabStoreDesign");
        echo "</a></li>
\t\t\t\t<li><a href=\"javascript:ShowTab(1)\" id=\"tab1\">";
        // line 246
        echo getLang("LayoutTabLogoSettings");
        echo "</a></li>
\t\t\t\t<li><a href=\"javascript:ShowTab(2)\" id=\"tab2\">";
        // line 247
        echo getLang("LayoutTabDesignMode");
        echo "</a></li>
\t\t\t\t<li><a href=\"javascript:ShowTab(6)\" id=\"tab6\">";
        // line 248
        echo getLang("LayoutTabMobile");
        echo "</a></li>
\t\t\t\t<li><a href=\"javascript:ShowTab(3)\" id=\"tab3\">";
        // line 249
        echo getLang("LayoutTabEmails");
        echo "</a></li>
\t\t\t\t";
        // line 250
        if ((isset($context['GiftCertificateThemes']) ? $context['GiftCertificateThemes'] : null)) {
            echo "\t\t\t\t<li><a href=\"javascript:ShowTab(7)\" id=\"tab7\">";
            // line 251
            echo getLang("LayoutTabGiftCertificates");
            echo "</a></li>
\t\t\t\t";
        }
        // line 252
        echo "\t\t\t\t<li><a href=\"javascript:ShowTab(4)\" id=\"tab4\">";
        // line 253
        echo getLang("LayoutTabFavicon");
        echo "</a></li>
\t\t\t\t<li><a href=\"javascript:ShowTab(5)\" id=\"tab5\">";
        // line 254
        echo getLang("LayoutTabHeader");
        echo "</a></li>
\t\t</ul>
\t\t\t<input id=\"currentTab\" name=\"currentTab\" value=\"";
        // line 256
        echo twig_safe_filter((isset($context['ShowTab']) ? $context['ShowTab'] : null));
        echo "\" type=\"hidden\">
\t\t\t</form>

\t\t</td>
\t\t</tr>

\t</table>
\t<div id=\"div0\">
\t\t<p class=\"intro\">
\t\t\t";
        // line 265
        echo getLang("TemplateChoiceIntro");
        echo "\t\t</p>

\t\t<p class=\"MessageBox MessageBoxInfo\" style=\"";
        // line 268
        echo twig_safe_filter((isset($context['HideSafeModeMessage']) ? $context['HideSafeModeMessage'] : null));
        echo "; margin-top: 10px;\">";
        echo getLang("TemplateDownloadingSafeModeEnabled");
        echo "</p>

\t\t<table class=\"Panel\">
\t\t\t<tr>
\t\t\t  <td class=\"Heading2\" colspan='2'>";
        // line 272
        echo getLang("CurrentTemplate");
        echo "</td>
\t\t\t</tr>
\t\t\t<tr>
\t\t\t\t<td align=\"left\" width=\"200\" style=\"padding:5px 5px 5px 10px;\">
\t\t\t\t\t<a href='";
        // line 276
        echo twig_safe_filter((isset($context['ShopPath']) ? $context['ShopPath'] : null));
        echo "/templates/";
        echo twig_safe_filter((isset($context['CurrentTemplateName']) ? $context['CurrentTemplateName'] : null));
        echo "/Previews/";
        echo twig_safe_filter((isset($context['CurrentTemplateImage']) ? $context['CurrentTemplateImage'] : null));
        echo "' class=\"thickbox\"><img src=\"thumb.php?tpl=";
        echo twig_safe_filter((isset($context['CurrentTemplateName']) ? $context['CurrentTemplateName'] : null));
        echo "&color=";
        echo twig_safe_filter((isset($context['CurrentTemplateImage']) ? $context['CurrentTemplateImage'] : null));
        echo "\" border=\"0\" id=\"CurrentTemplateImage\"></a>
\t\t\t\t</td>
\t\t\t\t<td align=\"left\" valign=\"top\"  style=\"padding:5px 5px 5px 10px;\">
\t\t\t\t\t<div class=\"TemplateHeading\" id=\"CurrentTemplateHeading\">";
        // line 279
        echo twig_safe_filter((isset($context['CurrentTemplateNameProper']) ? $context['CurrentTemplateNameProper'] : null));
        echo " (";
        echo twig_safe_filter((isset($context['CurrentTemplateColor']) ? $context['CurrentTemplateColor'] : null));
        echo ") - Version ";
        echo twig_safe_filter((isset($context['TemplateVersion']) ? $context['TemplateVersion'] : null));
        echo "</div>
\t\t\t\t\t<div id=\"TemplateFilesLocated\">";
        // line 280
        echo getLang("TemplateFilesLocated");
        echo twig_safe_filter((isset($context['CurrentTemplateName']) ? $context['CurrentTemplateName'] : null));
        echo "</div><br />

\t\t\t\t\t<input type=\"button\" value=\"";
        // line 282
        echo getLang("BrowseTemplateFiles");
        echo "\" class=\"SmallButton\" class=\"Button\" onclick=\"LaunchEditor();\">\t<input type=\"Button\" class=\"SmallButton\" onclick=\"CheckTemplateVersion();\" value=\"";
        echo getLang("CheckNewVersion");
        echo "\"  id=\"TemplateVersionCheckButton\"> <input type=\"Button\" class=\"SmallButton\" onclick=\"DownloadNewVersion();\" value=\"";
        echo getLang("DownloadNewVersion");
        echo "\"  id=\"DownloadNewVersionButton\" style=\"display:none; font-weight: bold;\"><br /><br />
\t\t\t\t\t<div id=\"TemplateVersionCheck\"></div>
\t\t\t\t</td>
\t\t\t</tr>
\t </table><br />

\t<table class=\"Panel\" style=\"margin:0px;\">
\t\t<tr>
\t\t  <td class=\"Heading2\" colspan='2'>
\t\t\t<span class=\"FloatRight\">
\t\t\t\t<strong>";
        // line 292
        echo getLang("Filter");
        echo "</strong>
\t\t\t\t\t<select name=\"templateType\" class=\"ShowTemplateTypes\">
\t\t\t\t\t<option value=\"all\">";
        // line 294
        echo getLang("ShowAllTemplates");
        echo "</option>
\t\t\t\t\t<option value=\"installed\">";
        // line 295
        echo getLang("ShowInstalledTemplates");
        echo "</option>
\t\t\t\t\t<option value=\"downloadable\">";
        // line 296
        echo getLang("ShowNewTemplates");
        echo "</option>
\t\t\t\t</select>
\t\t\t</span>
\t\t\t";
        // line 299
        echo getLang("ChooseTemplate");
        echo "\t\t  </td>
\t\t</tr>
\t\t<tr>
\t\t\t<td>
\t\t\t\t<div class=\"TemplateListContainer\">
\t\t\t\t\t<div class=\"TemplateList\">
\t\t\t\t\t\t";
        // line 306
        echo twig_safe_filter((isset($context['TemplateListMap']) ? $context['TemplateListMap'] : null));
        echo "
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</td>
\t\t</tr>
\t</table>
</div>

\t\t<div id=\"div1\" style=\"display:none\">
\t\t<!-- Start Logo Editor Tab -->
\t\t\t";
        // line 316
        echo twig_safe_filter((isset($context['LogoTab']) ? $context['LogoTab'] : null));
        echo "
\t\t<!-- End Logo Editor Tab -->
\t\t</div>
\t\t<div id=\"div2\" style=\"display:none\">
\t\t\t<p class=\"intro\">
\t\t\t\t";
        // line 321
        echo getLang("DesignModeIntro");
        echo "\t\t\t</p>
\t\t\t<ul>
\t\t\t\t<li>";
        // line 324
        echo getLang("DesignModeIntro2");
        echo "</li>
\t\t\t\t<li>";
        // line 325
        echo getLang("DesignModeIntro3");
        echo "</li>
\t\t\t\t<li>";
        // line 326
        echo getLang("DesignModeIntro4");
        echo "</li>
\t\t\t\t<!--<li><a href=\"#\" class=\"thickbox\">";
        // line 327
        echo getLang("DesignModeIntro5");
        echo "</a></li>-->
\t\t\t</ul>

\t\t\t<p>
\t\t\t\t<input type=\"button\" onclick=\"launchDesignMode();\" value=\"";
        // line 331
        echo getLang("LaunchDesignMode");
        echo "\" />
\t\t\t</p>
\t\t</div>
\t\t<div id=\"div6\" style=\"display: none\">
\t\t\t<p class=\"intro\">
\t\t\t\t";
        // line 336
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "MobileTemplateIntro", array(), "any"), "1");
        echo "
\t\t\t</p>
\t\t\t<form method=\"post\" action=\"index.php\" id=\"mobileTemplateSettingsForm\" enctype=\"multipart/form-data\">
\t\t\t\t<input type=\"hidden\" name=\"ToDo\" value=\"saveMobileTemplateSettings\" />
\t\t\t\t";
        // line 340
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "any"), "1");
        echo "
\t\t\t\t\t";
        // line 341
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "MobileTemplateSettings", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t\t";
        // line 343
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "EnableMobileTemplate", array(), "any")) . ("?")), ), "method"), "1");
        // line 345
        echo "
\t\t\t\t\t\t<label>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"enableMobileTemplate\" value=\"1\" ";
        // line 347
        if ($this->getAttribute((isset($context['mobileSettings']) ? $context['mobileSettings'] : null), "enableMobileTemplate", array(), "any")) {
            echo "checked=\"checked\"";
        }
        echo " />
\t\t\t\t\t\t\t";
        // line 348
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "YesEnableMobileTemplate", array(), "any"), "1");
        echo "
\t\t\t\t\t\t</label>
\t\t\t\t\t\t(<a href=\"../templates/__mobile/Previews/default.jpg\" class=\"TplPreviewImage\">";
        // line 350
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Preview", array(), "any"), "1");
        echo "</a>)
\t\t\t\t\t\t";
        // line 351
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("EnableMobileTemplate", "EnableMobileTemplateHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 352
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 354
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "EnableOnTheseDevices", array(), "any")) . (":"), "class" => "mobileTemplateDevices enableMobileTemplateToggle"), ), "method"), "1");
        // line 357
        echo "

\t\t\t\t\t\t<label class=\"row\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"enableMobileTemplateDevices[]\" value=\"iphone\" ";
        // line 360
        if (twig_in_filter("iphone", $this->getAttribute((isset($context['mobileSettings']) ? $context['mobileSettings'] : null), "enableMobileTemplateDevices", array(), "any"))) {
            echo "checked=\"checked\"";
        }
        echo " />
\t\t\t\t\t\t\t";
        // line 361
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "MobileDeviceAppleiPhone", array(), "any"), "1");
        echo "
\t\t\t\t\t\t</label>
\t\t\t\t\t\t<label class=\"row\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"enableMobileTemplateDevices[]\" value=\"ipod\" ";
        // line 364
        if (twig_in_filter("ipod", $this->getAttribute((isset($context['mobileSettings']) ? $context['mobileSettings'] : null), "enableMobileTemplateDevices", array(), "any"))) {
            echo "checked=\"checked\"";
        }
        echo " />
\t\t\t\t\t\t\t";
        // line 365
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "MobileDeviceAppleiPodTouch", array(), "any"), "1");
        echo "
\t\t\t\t\t\t</label>
\t\t\t\t\t\t<label class=\"row\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"enableMobileTemplateDevices[]\" value=\"ipad\" ";
        // line 368
        if (twig_in_filter("ipad", $this->getAttribute((isset($context['mobileSettings']) ? $context['mobileSettings'] : null), "enableMobileTemplateDevices", array(), "any"))) {
            echo "checked=\"checked\"";
        }
        echo " />
\t\t\t\t\t\t\t";
        // line 369
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "MobileDeviceAppleiPad", array(), "any"), "1");
        echo "
\t\t\t\t\t\t</label>
\t\t\t\t\t\t<label class=\"row\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"enableMobileTemplateDevices[]\" value=\"pre\" ";
        // line 372
        if (twig_in_filter("pre", $this->getAttribute((isset($context['mobileSettings']) ? $context['mobileSettings'] : null), "enableMobileTemplateDevices", array(), "any"))) {
            echo "checked=\"checked\"";
        }
        echo " />
\t\t\t\t\t\t\t";
        // line 373
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "MobileDevicePalmPre", array(), "any"), "1");
        echo "
\t\t\t\t\t\t</label>
\t\t\t\t\t\t<label class=\"row\">
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"enableMobileTemplateDevices[]\" value=\"android\" ";
        // line 376
        if (twig_in_filter("android", $this->getAttribute((isset($context['mobileSettings']) ? $context['mobileSettings'] : null), "enableMobileTemplateDevices", array(), "any"))) {
            echo "checked=\"checked\"";
        }
        echo " />
\t\t\t\t\t\t\t";
        // line 377
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "MobileDeviceAndroid", array(), "any"), "1");
        echo "
\t\t\t\t\t\t</label>
\t\t\t\t\t";
        // line 379
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 381
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "MobileTemplateLogo", array(), "any")) . (":"), "class" => "enableMobileTemplateToggle"), ), "method"), "1");
        // line 384
        echo "
\t\t\t\t\t\t<input type=\"file\" name=\"mobileTemplateLogo\" />
\t\t\t\t\t\t";
        // line 386
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("MobileTemplateLogo", "MobileTemplateLogoHelp", ), "method"), "1");
        echo "
\t\t\t\t\t\t";
        // line 387
        if ($this->getAttribute((isset($context['mobileSettings']) ? $context['mobileSettings'] : null), "mobileTemplateLogo", array(), "any")) {
            echo "\t\t\t\t\t\t\t(<label><input type=\"checkbox\" name=\"deleteMobileTemplateLogo\" /> ";
            // line 388
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Delete", array(), "any"), "1");
            echo " <a href=\"../";
            echo twig_escape_filter($this->env, (isset($context['ImageDirectory']) ? $context['ImageDirectory'] : null), "1");
            echo "/";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['mobileSettings']) ? $context['mobileSettings'] : null), "mobileTemplateLogo", array(), "any"), "1");
            echo "\" target=\"_blank\">";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "LowerCurrentLogo", array(), "any"), "1");
            echo "</a>?</label>)
\t\t\t\t\t\t";
        }
        // line 389
        echo "\t\t\t\t\t\t<div class=\"small\">
\t\t\t\t\t\t\t";
        // line 391
        echo getLang("RecommendedLogoDimensions", array("width" => $this->getAttribute((isset($context['phoneLogoDimensions']) ? $context['phoneLogoDimensions'] : null), "width", array(), "any"), "height" => $this->getAttribute((isset($context['phoneLogoDimensions']) ? $context['phoneLogoDimensions'] : null), "height", array(), "any")));
        // line 394
        echo "\t\t\t\t\t\t</div>
\t\t\t\t\t";
        // line 396
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 398
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startButtonRow", array(), "any"), "1");
        echo "
\t\t\t\t\t\t<input type=\"submit\" class=\"saveButton\" value=\"";
        // line 399
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Save", array(), "any"), "1");
        echo "\" />
\t\t\t\t\t\t";
        // line 400
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Or", array(), "any"), "1");
        echo " <a href=\"#\" class=\"cancelLink\">";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Cancel", array(), "any"), "1");
        echo "</a>
\t\t\t\t\t";
        // line 401
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endButtonRow", array(), "any"), "1");
        echo "
\t\t\t\t";
        // line 402
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "
\t\t\t</form>
\t\t</div>
\t\t<div id=\"div3\" style=\"display:none\">
\t\t\t<p class=\"intro\">
\t\t\t\t";
        // line 407
        echo getLang("EmailTemplatesIntro");
        echo "\t\t\t</p>
\t\t\t<table class=\"GridPanel SortableGrid AutoExpand\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" id=\"IndexGrid\" style=\"width:100%;\">
\t\t\t\t<tr class=\"Heading3\">
\t\t\t\t\t<td>";
        // line 411
        echo getLang("ETFileName");
        echo "</td>
\t\t\t\t\t<td>";
        // line 412
        echo getLang("ETFileSize");
        echo "</td>
\t\t\t\t\t<td>";
        // line 413
        echo getLang("ETLastUpdated");
        echo "</td>
\t\t\t\t\t<td>";
        // line 414
        echo getLang("Action");
        echo "</td>
\t\t\t\t</tr>
\t\t\t\t";
        // line 416
        echo twig_safe_filter((isset($context['EmailTemplatesGrid']) ? $context['EmailTemplatesGrid'] : null));
        echo "
\t\t\t</table>
\t\t</div>
\t\t<div id=\"div7\" style=\"display: none\">
\t\t\t";
        // line 420
        $this->env->loadTemplate("layout.manage.giftcerts.tpl")->display($context);
        echo "\t\t</div>

\t\t<div id=\"div4\" style=\"display: none;\">
\t\t\t<p class=\"intro\" >
\t\t\t\t";
        // line 425
        echo getLang("FaviconIntro");
        echo "\t\t\t</p>
\t\t\t<form method=\"post\" action=\"index.php?ToDo=TemplateUploadFavicon\" enctype=\"multipart/form-data\" onsubmit=\"return CheckFaviconForm();\">
\t\t\t\t<table class=\"Panel\" style=\"margin:0px;\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan='2'>";
        // line 430
        echo getLang("FaviconUpload");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel PanelBottom\">
\t\t\t\t\t\t\t";
        // line 434
        echo getLang("SelectLogoUpload");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td class=\"PanelBottom\">
\t\t\t\t\t\t\t<img src=\"";
        // line 437
        echo twig_safe_filter((isset($context['Favicon']) ? $context['Favicon'] : null));
        echo "\" width=\"16\" height=\"16\" />&nbsp;&nbsp;<input type=\"file\" name=\"FaviconFile\" id=\"FaviconFile\" class=\"Field\" value=\"\" /> <input type=\"submit\" value=\"";
        echo getLang("UploadFavicon");
        echo "\" />
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</form>
\t\t</div>

\t\t<div id=\"div5\" style=\"display: none; \">
\t\t\t\t<p class=\"intro\">";
        // line 445
        echo getLang("LayoutHeaderImageIntro");
        echo "</p>

\t\t\t\t<table class=\"Panel\" style=\"margin:0px;\">
\t\t\t\t\t<tr>
\t\t\t\t\t  <td class=\"Heading2\" colspan='2'>";
        // line 449
        echo getLang("LayoutHeaderImageGroupName");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td align=\"left\" width=\"200\" style=\"padding:5px 5px 5px 10px;\" valign=\"top\">
\t\t";
        // line 453
        echo getLang("LayoutHeaderImageCurrentImage");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td align=\"left\" valign=\"top\"  style=\"padding:5px 5px 5px 10px;\">
\t\t\t\t\t\t\t<div id='currentHeaderImage'></div>
\t\t\t\t\t\t\t<div id=\"DownloadHeaderImages\" style=\"padding-top: 5px;\">
\t\t\t\t\t\t\t";
        // line 458
        echo getLang("LayoutHeaderDownloadIntro");
        echo " <span id=\"BrowserBasedHelpText\"></span>
\t\t\t\t\t\t\t<ul>
\t\t\t\t\t\t\t\t<li id=\"HeaderImageCurrentLinkContainer\"><a href=\"#\" id=\"\">";
        // line 460
        echo getLang("LayoutHeaderImageDownloadCurrentBG");
        echo "</a> (<a href=\"#\" id=\"HeaderImageDeleteLink\">";
        echo getLang("LayoutHeaderImageDelete");
        echo "</a>)</li>
\t\t\t\t\t\t\t\t<li><a href=\"#\" id=\"HeaderImageOrigLink\">";
        // line 461
        echo getLang("LayoutHeaderImageDownloadWithoutBG");
        echo "</a></li>
\t\t\t\t\t\t\t\t<li id=\"HeaderImageBlankLinkContainer\"><a href=\"#\" id=\"HeaderImageBlankLink\">";
        // line 462
        echo getLang("LayoutHeaderImageDownloadWithBG");
        echo "</a></li>
\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr id=\"UploadHeaderImageRow\" style=\"display:\">
\t\t\t\t\t\t<td align=\"left\" width=\"200\" valign=\"top\"  style=\"padding:5px 5px 5px 10px;\">
\t\t\t\t\t\t\t";
        // line 470
        echo getLang("LayoutHeaderImageUploadImage");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td align=\"left\" valign=\"top\"  style=\"padding:5px 5px 5px 10px;\" id=\"\">

\t\t\t\t\t\t\t<input type=\"file\" name=\"HeaderImageFile\" id=\"HeaderImageFile\" class=\"Field300\" value=\"\"><br />
\t\t\t\t\t\t\t<br /><input type=\"button\" name=\"SubmitHeaderImageForm\" id=\"SubmitHeaderImageForm\" class=\"Button\" value=\"";
        // line 475
        echo getLang("LayoutHeaderImageUploadButton");
        echo "\" />

\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t</div>

\t</div>
\t<div style=\"display: none\" id=\"templateSelectedMessage\"></div>

\t<script type=\"text/javascript\" defer>
\t\tlang.InvalidSettingenableMobileTemplateDevices = \"";
        // line 486
        echo Interspire_Template_Extension::jsFilter(getLang("InvalidSettingenableMobileTemplateDevices"), "'");
        echo "\";
\t\tlang.InvalidSettingEnableTabletTemplateDevices = \"";
        // line 487
        echo Interspire_Template_Extension::jsFilter(getLang("InvalidSettingEnableTabletTemplateDevices"), "'");
        echo "\";
\t\tlang.UploadValidMobileLogo = \"";
        // line 488
        echo Interspire_Template_Extension::jsFilter(getLang("UploadValidMobileLogo"), "'");
        echo "\";
\t\tlang.UploadValidTabletLogo = \"";
        // line 489
        echo Interspire_Template_Extension::jsFilter(getLang("UploadValidTabletLogo"), "'");
        echo "\";

\t\tvar DisplayTab = 0;
\t\tvar ForceTab = '";
        // line 492
        echo twig_safe_filter((isset($context['ForceTab']) ? $context['ForceTab'] : null));
        echo "';

\t\tif(ForceTab.length > 0){
\t\t\tDisplayTab = ForceTab;
\t\t}

\t\tDisplayTab = parseInt(DisplayTab);

\t\tif(DisplayTab > -1){
\t\t\tShowTab(DisplayTab);
\t\t}

\t\tfunction edit_template(trID, tplfile) {
\t\t\t\$('#edit_'+trID).show();

\t\t\t// Load the contents of the file
\t\t\tjQuery.ajax({
\t\t\t\turl: 'remote.php',
\t\t\t\ttype: 'POST',
\t\t\t\tdataType: 'text',
\t\t\t\tdata: {'w': 'getEmailTemplate', 'file': tplfile, 'id': trID},
\t\t\t\tsuccess: function(txt) {
\t\t\t\t\t\$('#edit_box_'+trID).html(txt);
\t\t\t\t\tif(typeof(tinyMCE) != 'undefined') {
\t\t\t\t\t\teval('LoadEditor_wysiwyg_'+trID+'()');
\t\t\t\t\t}
\t\t\t\t}
\t\t\t});
\t\t}

\t\tfunction edit_hide(trID) {
\t\t\tif(confirm(\"";
        // line 523
        echo getLang("ETHideEdit");
        echo "\")) {
\t\t\t\t\$('#edit_'+trID).hide();
\t\t\t}
\t\t}

\t\tfunction save_edit(trID, tplfile) {
\t\t\tif(typeof(tinyMCE) != 'undefined') {
\t\t\t\tvar html = tinyMCE.get('wysiwyg_'+trID).getContent();
\t\t\t}
\t\t\telse {
\t\t\t\tvar html = \$(\"#wysiwyg_\"+trID).val();
\t\t\t}

\t\t\t// Save the contents of the file
\t\t\tjQuery.ajax({
\t\t\t\turl: 'remote.php',
\t\t\t\ttype: 'POST',
\t\t\t\tdataType: 'text',
\t\t\t\tdata: {'w': 'updateEmailTemplate', 'file': tplfile, 'html': html},
\t\t\t\tsuccess: function(status) {
\t\t\t\t\tif(status == \"success\") {
\t\t\t\t\t\tmsg = \"";
        // line 544
        echo getLang("EmailTemplateUpdated");
        echo "\";
\t\t\t\t\t}
\t\t\t\t\telse {
\t\t\t\t\t\tmsg = \"";
        // line 547
        echo getLang("EmailTemplateUpdateFailed");
        echo "\";
\t\t\t\t\t}
\t\t\t\t\talert(msg);
\t\t\t\t\t\$('#edit_'+trID).hide();
\t\t\t\t}
\t\t\t});
\t\t}

\t\tvar EmailTemplates = {
\t\t\tExpandDirectory: function(row, directory)
\t\t\t{
\t\t\t\t\$('#'+row+' .ExpandImg').blur();
\t\t\t\t// Already expanded
\t\t\t\tif(\$('#'+row).is('.Expanded')) {
\t\t\t\t\t\$('#'+row+' .ExpandImg').attr('src', \$('#'+row+' .ExpandImg').attr('src').replace('minus.gif', 'plus.gif'));
\t\t\t\t\t\$('.Child_'+row).hide();
\t\t\t\t\t\$('#'+row).removeClass('Expanded');
\t\t\t\t\t\$('#Indicator_'+row).hide();
\t\t\t\t\treturn;
\t\t\t\t}

\t\t\t\t// We already have results, so just expand
\t\t\t\tif(\$('.Child_'+row).length > 0) {
\t\t\t\t\t\$('#'+row+' .ExpandImg').attr('src', \$('#'+row+' .ExpandImg').attr('src').replace('plus.gif', 'minus.gif'));
\t\t\t\t\t\$('.Child_'+row).show();
\t\t\t\t\t\$('#'+row).addClass('Expanded');
\t\t\t\t\treturn;
\t\t\t\t}
\t\t\t\t\$('#Indicator_'+row).show();
\t\t\t\t\$.ajax({
\t\t\t\t\turl: 'remote.php',
\t\t\t\t\tdata: {
\t\t\t\t\t\tw: 'GetEmailTemplateDirectory',
\t\t\t\t\t\tpath: directory,
\t\t\t\t\t\tparent: row
\t\t\t\t\t},
\t\t\t\t\tsuccess: function(response) {
\t\t\t\t\t\t\$('#'+row+' .ExpandImg').attr('src', \$('#'+row+' .ExpandImg').attr('src').replace('plus.gif', 'minus.gif'));
\t\t\t\t\t\tif(response) {
\t\t\t\t\t\t\t\$('#Indicator_'+row).hide();
\t\t\t\t\t\t\t\$('#'+row).after(response);
\t\t\t\t\t\t}
\t\t\t\t\t\telse {
\t\t\t\t\t\t\t\$('#Indicator_'+row+' td').html('<span style=\"padding-left: 25px;\"> ";
        // line 590
        echo getLang("DirectoryContainsNoFiles");
        echo "</span>');
\t\t\t\t\t\t}
\t\t\t\t\t\t\$('#'+row).addClass('Expanded');
\t\t\t\t\t\t\$('.Child_'+row).hover(function() {
\t\t\t\t\t\t\t\$(this).addClass('GridRowOver');
\t\t\t\t\t\t}, function() {
\t\t\t\t\t\t\t\$(this).removeClass('GridRowOver');
\t\t\t\t\t\t});
\t\t\t\t\t}
\t\t\t\t})
\t\t\t}
\t\t}

\t\tfunction CheckFaviconForm()
\t\t{
\t\t\tif (document.getElementById('FaviconFile').value == '') {
\t\t\t\talert('";
        // line 606
        echo getLang("FaviconNoImageSelected");
        echo "');
\t\t\t\treturn false;
\t\t\t}

\t\t\treturn true;
\t\t}
\t</script>
\t<div style=\"display: none;\">
\t\t";
        // line 614
        echo twig_safe_filter((isset($context['TemporaryEditor']) ? $context['TemporaryEditor'] : null));
        echo "
\t</div>";
    }