<?php

/* page.form.tpl */
class __TwigTemplate_db8b691f8fdfa66d0edc2e33bc8410cf extends Twig_Template
{
    public function display(array $context)
    {
        // line 1
        echo "<script type=\"text/javascript\" src=\"script/page.js?";
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<form enctype=\"multipart/form-data\" action=\"index.php?ToDo=";
        // line 2
        echo twig_safe_filter((isset($context['FormAction']) ? $context['FormAction'] : null));
        echo "\" onSubmit=\"return ValidateForm(CheckPageForm);\" id=\"frmNews\" method=\"post\">
\t<input type=\"hidden\" name=\"pageId\" id=\"pageId\" value=\"";
        // line 3
        echo twig_safe_filter((isset($context['PageId']) ? $context['PageId'] : null));
        echo "\">

\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<h4 class=\"page-title\">";
        // line 7
        echo twig_safe_filter((isset($context['Title']) ? $context['Title'] : null));
        echo "</h4>
\t\t\t<p>";
        // line 8
        echo getLang("PageIntro");
        echo "</p>
\t\t\t";
        // line 9
        echo twig_safe_filter((isset($context['Message']) ? $context['Message'] : null));
        echo "
\t\t</div>
\t</div>

\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<input type=\"submit\" value=\"";
        // line 15
        echo getLang("SaveAndExit");
        echo "\" class=\"btn btn-primary\" />
\t\t\t<input type=\"submit\" name=\"addAnother2\" value=\"";
        // line 16
        echo twig_safe_filter((isset($context['SaveAndAddAnother']) ? $context['SaveAndAddAnother'] : null));
        echo "\" class=\"btn btn-primary\" />
\t\t\t<input type=\"button\" name=\"CancelButton1\" value=\"";
        // line 17
        echo getLang("Cancel");
        echo "\" class=\"btn btn-default\" onclick=\"ConfirmCancel();\" />
\t\t\t<input id=\"currentTab\" name=\"currentTab\" value=\"details\" type=\"hidden\">
\t\t</div>
\t</div>
\t<br />

\t<div id=\"div0\">
\t\t<div class=\"panel panel-default form-horizontal\">
\t\t\t<div class=\"panel-heading\"> 
\t\t\t\t<h3 class=\"panel-title\">Configurações da Página</h3> 
\t\t\t</div> 

\t\t\t<div class=\"panel-body\"> 
\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t<label class=\"col-md-2 control-label\">Tipo de Página</label>
\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t<div class=\"radio radio-primary\">
\t\t\t\t\t\t\t<input onclick=\"SwitchType(0)\" type=\"radio\" id=\"pagetype_0\" name=\"pagetype\" value=\"0\" ";
        // line 34
        echo twig_safe_filter((isset($context['SelType0']) ? $context['SelType0'] : null));
        echo ">
\t\t\t\t\t\t\t<label for=\"pagetype_0\">";
        // line 35
        echo getLang("NormalPage");
        echo "</label>
\t\t                </div>

\t\t\t\t\t\t<div class=\"radio radio-primary\">
\t\t\t\t\t\t\t<input onclick=\"SwitchType(1)\" type=\"radio\" id=\"pagetype_1\" name=\"pagetype\" value=\"1\" ";
        // line 39
        echo twig_safe_filter((isset($context['SelType1']) ? $context['SelType1'] : null));
        echo ">
\t\t\t\t\t\t\t<label for=\"pagetype_1\">";
        // line 40
        echo getLang("ExternalLink");
        echo "</label>
\t\t                </div>

\t\t\t\t\t\t<div class=\"radio radio-primary\">
\t\t\t\t\t\t\t<input onclick=\"SwitchType(2)\" type=\"radio\" id=\"pagetype_2\" name=\"pagetype\" value=\"2\" ";
        // line 44
        echo twig_safe_filter((isset($context['SelType2']) ? $context['SelType2'] : null));
        echo ">
\t\t\t\t\t\t\t<label for=\"pagetype_2\">";
        // line 45
        echo getLang("RSSPage");
        echo "</label>
\t\t                </div>

\t\t\t\t\t\t<div class=\"radio radio-primary\">
\t\t\t\t\t\t\t<input onclick=\"SwitchType(3)\" type=\"radio\" id=\"pagetype_3\" name=\"pagetype\" value=\"3\" ";
        // line 49
        echo twig_safe_filter((isset($context['SelType3']) ? $context['SelType3'] : null));
        echo ">
\t\t\t\t\t\t\t<label for=\"pagetype_3\">";
        // line 50
        echo getLang("ContactPage");
        echo "</label>
\t\t                </div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>

\t\t<div class=\"panel panel-default form-horizontal\">
\t\t\t<div class=\"panel-heading\"> 
\t\t\t\t<h3 class=\"panel-title\">Detalhes da Página</h3> 
\t\t\t</div> 

\t\t\t<div class=\"panel-body\"> 
\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t<label class=\"col-md-2 control-label\">";
        // line 64
        echo getLang("PageTitle");
        echo "</label>
\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t<input type=\"text\" id=\"pagetitle\" name=\"pagetitle\" class=\"form-control\" value=\"";
        // line 66
        echo twig_safe_filter((isset($context['PageTitle']) ? $context['PageTitle'] : null));
        echo "\">
\t\t\t\t\t</div>
\t\t\t\t</div>

\t\t\t\t<div class=\"form-group HideIfNotPage PageContent\">
\t\t\t\t\t<label class=\"col-md-2 control-label\">";
        // line 71
        echo getLang("PageContent");
        echo "</label>
\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t";
        // line 73
        echo twig_safe_filter((isset($context['WYSIWYG']) ? $context['WYSIWYG'] : null));
        echo "
\t\t\t\t\t</div>
\t\t\t\t</div>

\t\t\t\t<div class=\"form-group HideIfPage\">
\t\t\t\t\t<label class=\"col-md-2 control-label\">";
        // line 78
        echo getLang("Link");
        echo "</label>
\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t<input type=\"text\" id=\"pagelink\" name=\"pagelink\" class=\"form-control\" value=\"";
        // line 80
        echo twig_safe_filter((isset($context['PageLink']) ? $context['PageLink'] : null));
        echo "\">
\t\t\t\t\t</div>
\t\t\t\t</div>

\t\t\t\t<div class=\"form-group HideIfRSS\">
\t\t\t\t\t<label class=\"col-md-2 control-label\">";
        // line 85
        echo getLang("RSSFeed");
        echo "</label>
\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t<input type=\"text\" id=\"pagefeed\" name=\"pagefeed\" class=\"form-control\" value=\"";
        // line 87
        echo twig_safe_filter((isset($context['PageFeed']) ? $context['PageFeed'] : null));
        echo "\">
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>

\t\t<div class=\"panel panel-default HideIfContact form-horizontal\">
\t\t\t<div class=\"panel-heading\"> 
\t\t\t\t<h3 class=\"panel-title\">Detalhes da Página de Contato</h3> 
\t\t\t</div> 

\t\t\t<div class=\"panel-body\"> 
\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t<label class=\"col-md-2 control-label\">Tipo de Página</label>
\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t<div class=\"checkbox checkbox-primary\">
\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"contactfield1\" name=\"contactfields[]\" value=\"ON\" checked=\"checked\" disabled=\"disabled\">
\t\t\t\t\t\t\t<label for=\"contactfield1\">";
        // line 104
        echo getLang("ContactEmail");
        echo "</label>
\t\t                </div>

\t\t\t\t\t\t<div class=\"checkbox checkbox-primary\">
\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"contactfield2\" name=\"contactfields[]\" value=\"ON\" checked=\"checked\" disabled=\"disabled\">
\t\t\t\t\t\t\t<label for=\"contactfield2\">";
        // line 109
        echo getLang("ContactQuestion");
        echo "</label>
\t\t                </div>

\t\t\t\t\t\t<div class=\"checkbox checkbox-primary\">
\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"contactfield3\" name=\"contactfields[fullname]\" value=\"fullname\" ";
        // line 113
        echo twig_safe_filter((isset($context['IsContactFullName']) ? $context['IsContactFullName'] : null));
        echo ">
\t\t\t\t\t\t\t<label for=\"contactfield3\">";
        // line 114
        echo getLang("ContactName");
        echo "</label>
\t\t                </div>

\t\t\t\t\t\t<div class=\"checkbox checkbox-primary\">
\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"contactfield4\" name=\"contactfields[companyname]\" value=\"companyname\" ";
        // line 118
        echo twig_safe_filter((isset($context['IsContactCompanyName']) ? $context['IsContactCompanyName'] : null));
        echo ">
\t\t\t\t\t\t\t<label for=\"contactfield4\">";
        // line 119
        echo getLang("ContactCompanyName");
        echo "</label>
\t\t                </div>

\t\t\t\t\t\t<div class=\"checkbox checkbox-primary\">
\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"contactfield5\" name=\"contactfields[phone]\" value=\"phone\" ";
        // line 123
        echo twig_safe_filter((isset($context['IsContactPhone']) ? $context['IsContactPhone'] : null));
        echo ">
\t\t\t\t\t\t\t<label for=\"contactfield5\">";
        // line 124
        echo getLang("ContactPhone");
        echo "</label>
\t\t                </div>

\t\t\t\t\t\t<div class=\"checkbox checkbox-primary\">
\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"contactfield6\" name=\"contactfields[orderno]\" value=\"orderno\" ";
        // line 128
        echo twig_safe_filter((isset($context['IsContactOrderNo']) ? $context['IsContactOrderNo'] : null));
        echo ">
\t\t\t\t\t\t\t<label for=\"contactfield6\">";
        // line 129
        echo getLang("ContactOrderNo");
        echo "</label>
\t\t                </div>

\t\t\t\t\t\t<div class=\"checkbox checkbox-primary\">
\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"contactfield7\" name=\"contactfields[rma]\" value=\"rma\" ";
        // line 133
        echo twig_safe_filter((isset($context['IsContactRMA']) ? $context['IsContactRMA'] : null));
        echo ">
\t\t\t\t\t\t\t<label for=\"contactfield7\">";
        // line 134
        echo getLang("ContactRMANo");
        echo "</label>
\t\t                </div>
\t\t\t\t\t</div>
\t\t\t\t</div>

\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t<label class=\"col-md-2 control-label\">";
        // line 140
        echo getLang("EmailQuestionsTo");
        echo "</label>
\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t<input type=\"text\" id=\"pageemail\" name=\"pageemail\" class=\"form-control\" value=\"";
        // line 142
        echo twig_safe_filter((isset($context['PageEmail']) ? $context['PageEmail'] : null));
        echo "\">
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>

\t\t<div class=\"panel panel-default form-horizontal\">
\t\t\t<div class=\"panel-heading\"> 
\t\t\t\t<h3 class=\"panel-title\">";
        // line 150
        echo getLang("NavigationMenuOptions");
        echo "</h3> 
\t\t\t</div> 

\t\t\t<div class=\"panel-body\"> 
\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t<label class=\"col-md-2 control-label\">";
        // line 155
        echo getLang("ParentPage");
        echo "</label>
\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t<select id=\"pageparentid\" name=\"pageparentid\" class=\"form-control\" size=\"5\">
\t\t\t\t\t\t\t<option SELECTED value='0'>-- ";
        // line 158
        echo getLang("NoParentPage");
        echo " --</option>
\t\t\t\t\t\t\t";
        // line 159
        echo twig_safe_filter((isset($context['ParentPageOptions']) ? $context['ParentPageOptions'] : null));
        echo "
\t\t\t\t\t\t</select>
\t\t\t\t\t</div>
\t\t\t\t</div>

\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t<label class=\"col-md-2 control-label\">";
        // line 165
        echo getLang("NavigationMenu");
        echo "</label>
\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t<div class=\"checkbox checkbox-primary\">
\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"pagestatus\" name=\"pagestatus\" value=\"ON\" ";
        // line 168
        echo twig_safe_filter((isset($context['Visible']) ? $context['Visible'] : null));
        echo ">
\t\t\t\t\t\t\t<label for=\"pagestatus\">";
        // line 169
        echo getLang("YesPageVisible");
        echo "</label>
\t\t                </div>
\t\t\t\t\t</div>
\t\t\t\t</div>

\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t<label class=\"col-md-2 control-label\">";
        // line 175
        echo getLang("DisplayAsHomePage");
        echo "</label>
\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t<div class=\"checkbox checkbox-primary\">
\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"pageishomepage\" name=\"pageishomepage\" value=\"ON\" ";
        // line 178
        echo twig_safe_filter((isset($context['IsHomePage']) ? $context['IsHomePage'] : null));
        echo ">
\t\t\t\t\t\t\t<label for=\"pageishomepage\">";
        // line 179
        echo getLang("YesDisplayAsHomePage");
        echo "</label>
\t\t                </div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t<label class=\"col-md-2 control-label\">";
        // line 184
        echo getLang("PageCustomersOnly");
        echo "</label>
\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t<div class=\"checkbox checkbox-primary\">
\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"pagecustomersonly\" name=\"pagecustomersonly\" value=\"1\" ";
        // line 187
        echo twig_safe_filter((isset($context['IsCustomersOnly']) ? $context['IsCustomersOnly'] : null));
        echo ">
\t\t\t\t\t\t\t<label for=\"pagecustomersonly\">";
        // line 188
        echo getLang("YesRestrictToCustomersOnly");
        echo "</label>
\t\t                </div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>

\t\t<div class=\"panel panel-default HideIfLink\">
\t\t\t<div class=\"panel-heading\"> 
\t\t\t\t<h3 class=\"panel-title\">SEO</h3> 
\t\t\t</div> 

\t\t\t<div class=\"panel-body\"> 
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<div class=\"col-sm-6\">
\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t<label>";
        // line 204
        echo getLang("MetaTitle");
        echo "</label>
\t\t\t\t\t\t\t<input type=\"text\" id=\"pagemetatitle\" name=\"pagemetatitle\" class=\"form-control\" value=\"";
        // line 205
        echo twig_safe_filter((isset($context['PageMetaTitle']) ? $context['PageMetaTitle'] : null));
        echo "\">
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"col-sm-6\">
\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t<label>";
        // line 211
        echo getLang("MetaKeywords");
        echo "</label>
\t\t\t\t\t\t\t<input type=\"text\" id=\"pagekeywords\" name=\"pagekeywords\" class=\"form-control\" value=\"";
        // line 212
        echo twig_safe_filter((isset($context['PageKeywords']) ? $context['PageKeywords'] : null));
        echo "\">
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>

\t\t\t\t<div class=\"row\">
\t\t\t\t\t<div class=\"col-sm-6\">
\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t<label>";
        // line 220
        echo getLang("MetaDescription");
        echo "</label>
\t\t\t\t\t\t\t<input type=\"text\" id=\"pagedesc\" name=\"pagedesc\" class=\"form-control\" value=\"";
        // line 221
        echo twig_safe_filter((isset($context['PageDesc']) ? $context['PageDesc'] : null));
        echo "\">
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"col-sm-6\">
\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t<label>";
        // line 227
        echo getLang("SearchKeywords");
        echo "</label>
\t\t\t\t\t\t\t<input type=\"text\" id=\"pagesearchkeywords\" name=\"pagesearchkeywords\" class=\"form-control\" value=\"";
        // line 228
        echo twig_safe_filter((isset($context['PageSearchKeywords']) ? $context['PageSearchKeywords'] : null));
        echo "\">
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>

\t\t<div class=\"panel panel-default HideIfLink\">
\t\t\t<div class=\"panel-heading\"> 
\t\t\t\t<h3 class=\"panel-title\">";
        // line 237
        echo getLang("AdvancedPageOptions");
        echo "</h3> 
\t\t\t</div> 

\t\t\t<div class=\"panel-body\"> 
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<div class=\"col-sm-6\">
\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t<label>";
        // line 244
        echo getLang("TemplateLayoutFile");
        echo "</label>
\t\t\t\t\t\t\t<select name=\"pagelayoutfile\" id=\"pagelayoutfile\" class=\"form-control\">
\t\t\t\t\t\t\t\t";
        // line 246
        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</div>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"col-sm-6\">
\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t<label>";
        // line 253
        echo getLang("SortOrder");
        echo "</label>
\t\t\t\t\t\t\t<input type=\"text\" id=\"pagesort\" name=\"pagesort\" class=\"form-control\" size=\"5\" value=\"";
        // line 254
        echo twig_safe_filter((isset($context['PageSort']) ? $context['PageSort'] : null));
        echo "\">
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>

\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<input type=\"submit\" value=\"";
        // line 264
        echo getLang("SaveAndExit");
        echo "\" class=\"btn btn-primary\" />
\t\t\t<input type=\"submit\" name=\"addAnother2\" value=\"";
        // line 265
        echo twig_safe_filter((isset($context['SaveAndAddAnother']) ? $context['SaveAndAddAnother'] : null));
        echo "\" class=\"btn btn-primary\" />
\t\t\t<input type=\"button\" name=\"CancelButton1\" value=\"";
        // line 266
        echo getLang("Cancel");
        echo "\" class=\"btn btn-default\" onclick=\"ConfirmCancel();\" />
\t\t\t<input id=\"currentTab\" name=\"currentTab\" value=\"details\" type=\"hidden\">
\t\t</div>
\t</div>
</form>

<script type=\"text/javascript\">
\tparentOptions = new Array();
\tfunction ConfirmCancel() {
\t\tif(confirm(\"";
        // line 275
        echo getLang("ConfirmCancelPage");
        echo "\"))
\t\t\tdocument.location.href = \"index.php?ToDo=viewPages\";
\t}

\tfunction ToggleVendor(vendorId) {
\t\tif(typeof(parentOptions[vendorId]) != 'undefined') {
\t\t\t\$('#pageparentid').find('option:gt(0)').remove();
\t\t\t\$('#pageparentid').append(parentOptions[vendorId]);
\t\t\treturn;
\t\t}
\t\t
\t\t\$('#pageparentid').attr('disabled', true);
\t\t\$.ajax({
\t\t\turl: 'remote.php?w=getPageParentOptions',
\t\t\tdata: {
\t\t\t\tpageId: \$('#pageId').val(),
\t\t\t\tvendorId: vendorId,
\t\t\t\tparentId: \$('#pageparentid').val()
\t\t\t},
\t\t\t
\t\t\tsuccess: function(data) {
\t\t\t\tparentOptions[vendorId] = data;
\t\t\t\t\$('#pageparentid').attr('disabled', false);
\t\t\t\t\$('#pageparentid').find('option:gt(0)').remove();
\t\t\t\t\$('#pageparentid').append(parentOptions[vendorId]);
\t\t\t}
\t\t});
\t}

\tfunction CheckPageForm() {
\t\tvar pt0 = g(\"pagetype_0\");
\t\tvar pt1 = g(\"pagetype_1\");
\t\tvar pt2 = g(\"pagetype_2\");
\t\tvar pt3 = g(\"pagetype_3\");
\t\tvar pagetitle = g(\"pagetitle\");
\t\tvar pagelink = g(\"pagelink\");
\t\tvar pagefeed = g(\"pagefeed\");
\t\tvar pageemail = g(\"pageemail\");

\t\tif(pagetitle.value == \"\") {
\t\t\talert(\"";
        // line 315
        echo getLang("EnterPageTitle");
        echo "\");
\t\t\tpagetitle.focus();
\t\t\treturn false;
\t\t}

\t\tif(pt1.checked) {
\t\t\tif(pagelink.value == \"\" || pagelink.value == \"http://\") {
\t\t\t\talert(\"";
        // line 322
        echo getLang("EnterPageLink");
        echo "\");
\t\t\t\tpagelink.focus();
\t\t\t\tpagelink.select();
\t\t\t\treturn false;
\t\t\t}
\t\t} else if(pt2.checked) {
\t\t\tif(pagefeed.value == \"\" || pagefeed.value == \"http://\") {
\t\t\t\talert(\"";
        // line 329
        echo getLang("EnterPageFeed");
        echo "\");
\t\t\t\tpagefeed.focus();
\t\t\t\tpagefeed.select();
\t\t\t\treturn false;
\t\t\t}
\t\t} else if(pt3.checked) {
\t\t\tif(IsWysiwygEditorEmpty(content.value)) {
\t\t\t\talert(\"";
        // line 336
        echo getLang("EnterPageContent");
        echo "\");
\t\t\t\treturn false;
\t\t\t}

\t\t\tif(pageemail.value && pageemail.value.indexOf(\"@\") == -1 || pageemail.value.indexOf(\".\") == -1) {
\t\t\t\talert(\"";
        // line 341
        echo getLang("EnterPageEmail");
        echo "\");
\t\t\t\tpageemail.focus();
\t\t\t\tpageemail.select();
\t\t\t\treturn false;
\t\t\t}
\t\t} else if (\$('#pageEnableOptimizer').attr('checked')) {
\t\t\tif(!Optimizer.ValidateConfigForm(ShowTab, 'optimizer')) {
\t\t\t\treturn false;
\t\t\t}
\t\t}

\t\treturn true;
\t}

\tfunction SwitchType(PageType) {
\t\tif(PageType == 0) {
\t\t\t\$('.HideIfPage').hide();
\t\t\t\$('.HideIfNotPage').show();
\t\t\t\$('.HideIfLink').show();
\t\t\t\$('.HideIfNotLink').show();
\t\t\t\$('.HideIfRSS').hide();
\t\t\t\$('.HideIfContact').hide();
\t\t\t\$('#pagetype_0').attr('checked', 'true');
\t\t\tif (!";
        // line 364
        echo twig_safe_filter((isset($context['IsVendor']) ? $context['IsVendor'] : null));
        echo ") {
\t\t\t\t\$('.HideIfLinkVendor').show();
\t\t\t}
\t\t} else if(PageType == 1) {
\t\t\t\$('.HideIfPage').show();
\t\t\t\$('.HideIfNotPage').hide();
\t\t\t\$('.HideIfLink').hide();
\t\t\t\$('.HideIfNotLink').hide();
\t\t\t\$('.HideIfRSS').hide();
\t\t\t\$('.HideIfContact').hide();
\t\t\t\$('.HideIfLinkVendor').hide();
\t\t\t\$('#pagetype_1').attr('checked', 'true');
\t\t} else if(PageType == 2) {
\t\t\t\$('.HideIfPage').hide();
\t\t\t\$('.HideIfNotPage').hide();
\t\t\t\$('.HideIfLink').show();
\t\t\t\$('.HideIfNotLink').show();
\t\t\t\$('.HideIfRSS').show();
\t\t\t\$('.HideIfContact').hide();
\t\t\tif (!";
        // line 383
        echo twig_safe_filter((isset($context['IsVendor']) ? $context['IsVendor'] : null));
        echo ") {
\t\t\t\t\$('.HideIfLinkVendor').show();
\t\t\t}
\t\t\t\$('#pagetype_2').attr('checked', 'true');
\t\t} else if(PageType == 3) {
\t\t\t\$('.HideIfPage').hide();
\t\t\t\$('.HideIfNotPage').hide();
\t\t\t\$('.HideIfLink').show();
\t\t\t\$('.HideIfNotLink').show();
\t\t\t\$('.HideIfRSS').hide();
\t\t\t\$('.HideIfContact').show();
\t\t\t\$('.PageContent').show();
\t\t\tif (!";
        // line 395
        echo twig_safe_filter((isset($context['IsVendor']) ? $context['IsVendor'] : null));
        echo ") {
\t\t\t\t\$('.HideIfLinkVendor').show();
\t\t\t}
\t\t\t\$('#pagetype_3').attr('checked', 'true');
\t\t}
\t}

\t\$(document).ready(function() {
\t\t";
        // line 403
        echo twig_safe_filter((isset($context['SetupType']) ? $context['SetupType'] : null));
        echo "
\t});
</script>";
    }

}
