<fieldset class="ui-corner-all" style="margin-bottom: 10px;">
				<legend><?php echo __('Browser page title', null, 'catalyz');

                $ParentContentTreeNode = $ContentTree->getContentTreeNodeById($node->getTreeParent());

?></legend>

				<table width="100%" border="0" cellpadding="2" cellspacing="0" class="none">
				<tr>
					<td width="25"><?php echo radiobutton_tag('seo_title_type', Node::BROWSER_TITLE_IS_PAGE_TITLE, Node::BROWSER_TITLE_IS_PAGE_TITLE == $node->getBrowserTitleType(), array('id' => 'radio_seo_title_is_page_title'));

?></td>
					<td colspan="2"><label for="radio_seo_title_is_page_title"><?php echo __('Use page title as browser page title', null, 'catalyz');

?></label></td>
				</tr>
				<tr>
					<td width="25"><?php echo radiobutton_tag('seo_title_type', Node::BROWSER_TITLE_CUSTOM, Node::BROWSER_TITLE_CUSTOM == $node->getBrowserTitleType(), array('id' => 'radio_seo_title_type'));

?></td>
					<td width="210"><label for="radio_seo_title_type"><?php echo __('Use this title for the browser:', null, 'catalyz');

?></label></td>
					<td><?php echo input_tag('seo_title_custom', $node->getBrowserTitleContent($culture), array('size' => 60, 'maxlength' => 255, 'onclick' => 'document.getElementById(\'radio_seo_title_type\').checked = true;', 'class' => isset($errors['seo_title_custom'])?'error':''));
catalyz_show_error(@$errors['seo_title_custom']);
?></td>
				</tr>
				</table>
				</fieldset>


<?php if($node->isRoot()){

	echo input_hidden_tag('seo_keywords_type', Node::SEO_KEYWORDS_CUSTOM);
	echo input_hidden_tag('seo_description_type', Node::SEO_DESCRIPTION_CUSTOM);
	echo input_hidden_tag('seo_uri_type', Node::URL_TYPE_GENERATED);

?>
<fieldset class="ui-corner-all" style="margin-bottom: 10px;">
				<legend><?php echo __('Keywords:', null, 'catalyz'); ?></legend>

				<table width="100%" border="0" cellpadding="2" cellspacing="0" class="none">
				<tr>
					<td width="25">&nbsp;</td>
					<td width="210"><label for="radio_seo_keywords_custom"><?php echo __('Use those keywords:', null, 'catalyz');

?></label></td>
					<td><?php echo input_tag('seo_keywords_custom', $node->getSeoKeywordsContent($culture), array('size' => 60, 'maxlength' => 255));

?></td>
				</tr>
				</table>
</fieldset>

<fieldset class="ui-corner-all" style="margin-bottom: 10px;">
	<legend><?php echo __('Description', null, 'catalyz'); ?></legend>

				<table width="100%" border="0" cellpadding="2" cellspacing="0" class="none">
				<tr>
					<td width="25">&nbsp;</td>
					<td width="210"><label for="radio_seo_description_custom"><?php echo __('Use this description:', null, 'catalyz');

?></label></td>
					<td><?php
					echo input_tag('seo_description_custom', $node->getSeoDescriptionContent($culture), array('size' => 60, 'maxlength' => 255, 'class' => isset($errors['seo_description_custom'])?'error':''));
					catalyz_show_error(@$errors['seo_description_custom']);

?></td>
				</tr>
				</table>
</fieldset><?php
}else{
?>
<fieldset class="ui-corner-all" style="margin-bottom: 10px;">
	<legend><?php echo __('Keywords', null, 'catalyz');?></legend>

				<table width="100%" border="0" cellpadding="2" cellspacing="0" class="none">
				<tr>
					<td width="25"><?php echo radiobutton_tag('seo_keywords_type', Node::SEO_KEYWORDS_INHERIT, Node::SEO_KEYWORDS_INHERIT == $node->getSeoKeywordsType(), array('id' => 'radio_seo_keywords_inherit'));?></td>
					<td><label for="radio_seo_keywords_inherit"><?php echo __('Use parent keywords:', null, 'catalyz');

?></label></td>
					<td><em><?php echo catalyz_nonify($ParentContentTreeNode->getSeoKeywords()); ?></em></td>
				</tr>
				<tr>
					<td width="25"><?php echo radiobutton_tag('seo_keywords_type', Node::SEO_KEYWORDS_CUSTOM, Node::SEO_KEYWORDS_CUSTOM == $node->getSeoKeywordsType(), array('id' => 'radio_seo_keywords_custom'));?></td>
					<td width="210"><label for="radio_seo_keywords_custom"><?php echo __('Use those keywords:', null, 'catalyz');

?></label></td>
					<td><?php echo input_tag('seo_keywords_custom', $node->getSeoKeywordsContent(), array('size' => 60, 'maxlength' => 255, 'onclick' => 'document.getElementById(\'radio_seo_keywords_custom\').checked = true;', 'class' => isset($errors['seo_keywords_custom'])?'error':''));
					catalyz_show_error(@$errors['seo_keywords_custom']);

?></td>
				</tr>
				</table>
</fieldset>

<fieldset class="ui-corner-all" style="margin-bottom: 10px;">
	<legend><?php echo __('Description', null, 'catalyz'); ?></legend>

				<table width="100%" border="0" cellpadding="2" cellspacing="0" class="none">
				<tr>
					<td width="25"><?php echo radiobutton_tag('seo_description_type', Node::SEO_DESCRIPTION_INHERIT, Node::SEO_DESCRIPTION_INHERIT == $node->getSeoDescriptionType(), array('id' => 'radio_seo_description_inherit'));?></td>
					<td><label for="radio_seo_description_inherit"><?php echo __('Use parent description:', null, 'catalyz');

?></label></td>
					<td><em><?php echo catalyz_nonify($ParentContentTreeNode->getSeoDescription()); ?></em></td>
				</tr>
				<tr>
					<td width="25"><?php echo radiobutton_tag('seo_description_type', Node::SEO_DESCRIPTION_CUSTOM, Node::SEO_DESCRIPTION_CUSTOM == $node->getSeoDescriptionType(), array('id' =>'radio_seo_description_custom'));?></td>
					<td width="210"><label for="radio_seo_description_custom"><?php echo __('Use this description:', null, 'catalyz');

?></label></td>
					<td><?php echo input_tag('seo_description_custom', $node->getSeoDescriptionContent(), array('size' => 60, 'maxlength' => 255, 'onclick' => 'document.getElementById(\'radio_seo_description_custom\').checked = true;', 'class' => isset($errors['seo_description_custom'])?'error':''));
					catalyz_show_error(@$errors['seo_description_custom']);

?></td>
				</tr>
				</table>
</fieldset>
<?php

}
if(!$node->isRoot()){
?>


<fieldset class="ui-corner-all" style="margin-bottom: 10px;">
	<legend><?php echo __('Page address', null, 'catalyz'); ?></legend>

				<table width="100%" border="0" cellpadding="2" cellspacing="0" class="none">
				<tr>
					<td width="25"><?php echo radiobutton_tag('seo_uri_type', Node::URL_TYPE_GENERATED, Node::URL_TYPE_GENERATED == $node->getUrlType(), array('id' => 'radio_url_type_generated'));?></td>
					<td colspan="2"><label for="radio_url_type_generated"><?php echo __('Let application determine the best address for this page', null, 'catalyz');

?></label></td>
				</tr>
				<tr>
					<td width="25"><?php echo radiobutton_tag('seo_uri_type', Node::URL_TYPE_CUSTOM, Node::URL_TYPE_CUSTOM == $node->getUrlType(), array('id' => 'radio_seo_uri_type'));?></td>
					<td width="210"><label for="radio_seo_uri_type"><?php echo __('Use this address:', null, 'catalyz');

?></label></td>
					<td><?php echo input_tag('seo_uri_custom', $node->getUrlIdentifier(/*$culture*/), array('size' => 60, 'maxlength' => 255, 'onclick' => 'document.getElementById(\'radio_seo_uri_type\').checked = true;', 'class' => isset($errors['seo_uri_custom'])?'error':''));
					catalyz_show_error(@$errors['seo_uri_custom']);

?></td>
				</tr>
				</table>
</fieldset>
				<?php } ?>