{if isset($arrayTree[$active0]) && $arrayTree[$active0]->GetHaveChildren()}{* || $objElement->GetIdParent() > 0*}
<aside class="col-4 columnRight">
{*	<div class="menuSubRwd" onclick="showHide('.menuRight');"></div>	*}
	<div class="menuRight">
			{assign var=arrayTopArrayChild value=$arrayTree[$active0]} 
			{assign var=countMenuChildArray value=$arrayTopArrayChild|@count} 
			{if $countMenuChildArray > 0}
				{assign var=idChild value=$arrayTopArrayChild->GetId()}
				{assign var=langChild value=$arrayTopArrayChild->GetLang()}
				{assign var=urlChild value=$arrayTopArrayChild->GetUrlWithType()}
				{assign var=urlNamChilde value=$arrayTopArrayChild->GetUrl()}
				{assign var=nameChild value=$arrayTopArrayChild->GetMenuName()}
				{assign var=subnameChild value=$arrayTopArrayChild->GetSubname()}
				{if $arrayTopArrayChild->GetHaveChildren()}
					{foreach $arrayTopArrayChild->arrayChildren  as $keyChild=>$objElementSubChild }
						{if !$nameChild} 
							{assign var=nameChild value=$objElementSubChild->GetName()}
						{/if}
						{assign var=urlSubChild value=$objElementSubChild->GetUrlWithType()}
						{assign var=idParentSubChild value=$objElementSubChild->GetId()}
						{if $objElementSubChild@first}
							<div class="link1-head">{$nameChild}</div>
						{/if}
						<div class="link1"><a {if $active1 ==  $objElementSubChild->GetId()}style="color: #68ceff;"{/if} href="{$urlSubChild}" >{$objElementSubChild->GetElementName()}</a></div>
						{if $objElementSubChild->GetHaveChildren() && $active1 == $objElementSubChild->getId() } 
								{foreach from=$objElementSubChild->arrayChildren item=objElementSubSubChild name=childMenu key=keyChild}
									{assign var=urlSubSubChild value=$objElementSubSubChild->GetUrlWithType()}
									{assign var=idParentSubSubChild value=$objElementSubSubChild->GetId()}
									<div class="link2"><a {if $active2 ==  $objElementSubSubChild->GetId()}style="color: #68ceff;"{/if} href="{$urlSubSubChild}" >{$objElementSubSubChild->GetElementName()}</a></div>
									{if $objElementSubSubChild->GetHaveChildren()} {*&& $active2 ==  $objElementSubSubChild->GetId()*}
										{assign var=arraySubSubSub value=$objElementSubSubChild->arrayChildren}
										{section keyElement $arraySubSubSub}
											<div class="link3"><a {if $active3 ==  $arraySubSubSub[keyElement]->GetId()}style="color: #68ceff;"{/if}  href="{$arraySubSubSub[keyElement]->GetUrlWithType()}" >{$arraySubSubSub[keyElement]->GetElementName()}</a></div>

										{/section}
									{/if}			
								{/foreach}
						{/if}			
					{/foreach}
				{/if}	
			{/if}
		
	</div>
</aside>
{/if}