<{if $menuid eq 'top'}>
<div id="menutbl">
<div class="accordionbox">
<aside class="accordion">
<{foreach item=blocklevel1 from=$blockmenu.mt_group name=menu}>
<h1 <{if $blocklevel1.subMenu}>class='open1' <{else}>class='noopen1'<{/if}> ><a class='manulevel1'  target='<{if $blocklevel1.target eq '0'}>_self<{else}>_blank"<{/if}>' title='<{$blocklevel1.sorttitle}>'  <{if $blocklevel1.url}>href='<{$blocklevel1.url}>'<{else}> href='javascript:void(0);' onclick='return false;'<{/if}>><{$blocklevel1.sorttitle}></a></h1><div>
<{foreach item=blocklevel2 from=$blocklevel1.subMenu}>
<{assign var="m2" value=$blocklevel2.sortid}>
<{if $blockmenu.db_name|grouppermission:" where `sortid` = '$m2' order by  sortid  ASC":"browsegroup":true}>
<h2 <{if $blocklevel2.subMenu}>class='open2'<{/if}>><a class='manulevel2'  target='<{if $blocklevel2.target eq '0'}>_self<{else}>_blank"<{/if}>' title='<{$blocklevel2.sorttitle}>'  <{if $blocklevel2.url}>href='<{$blocklevel2.url}>'<{else}> href='javascript:void(0);' onclick='return false;'<{/if}>><{$blocklevel2.sorttitle}></a></h2><div>
<{foreach item=blocklevel3 from=$blocklevel2.subMenu}>
<{assign var="m3" value=$blocklevel3.sortid}>
<{if $blockmenu.db_name|grouppermission:" where `sortid` = '$m3' order by  sortid  ASC":"browsegroup":true}>
<h3><a class='manulevel3'  target='<{if $blocklevel3.target eq '0'}>_self<{else}>_blank"<{/if}>' title='<{$blocklevel3.sorttitle}>'  <{if $blocklevel3.url}>href='<{$blocklevel3.url}>'<{else}> href='javascript:void(0);' onclick='return false;'<{/if}>><{$blocklevel3.sorttitle}></a></h3><div></div>
<{/if}>
<{/foreach}>
</div>
<{/if}>
<{/foreach}>
</div>
<{/foreach}>
</aside>
</div>
</div>
<{/if}>



<{if $menuid eq 'bottom' && $blockmenu.mb_group}>
<div id="menutblbottom">
<div id='himglcbottom'>
<div class="row menubottom masonrymenu">
<{foreach item=blocklevel1 from=$blockmenu.mb_group}>
<div class="col-6 menubottomcol-xs-6 itemmenu">
<div class='menubottom1'><a class='manulevel1'  target='<{if $blocklevel1.target eq '0'}>_self<{else}>_blank"<{/if}>' title='<{$blocklevel1.sorttitle}>'  <{if $blocklevel1.url}>href='<{$blocklevel1.url}>'<{else}> href='javascript:void(0);' onclick='return false;'<{/if}>><{$blocklevel1.sorttitle}></a></div>
<{foreach item=blocklevel2 from=$blocklevel1.subMenu}>  
<{assign var="m2" value=$blocklevel2.sortid}>
<{if $blockmenu.db_name|grouppermission:" where `sortid` = '$m2' order by  sortid  ASC":"browsegroup":true}>
<div class='menubottom2'><div <{if $blocklevel2.subMenu}>id='blocklevel3true'<{/if}>><a class='manulevel2'  target='<{if $blocklevel2.target eq '0'}>_self<{else}>_blank"<{/if}>' title='<{$blocklevel2.sorttitle}>'  <{if $blocklevel2.url}>href='<{$blocklevel2.url}>'<{else}> href='javascript:void(0);' onclick='return false;'<{/if}>><{$blocklevel2.sorttitle}></a></div>
<{if $blocklevel2.subMenu}><div id='buttomboxbtn'><a  type='button' id='buttom<{$blocklevel2.sortid}>'><{$smarty.const.THEME_BLOCKSADMIN14}></a></div><{/if}>
</div>
<{if $blocklevel2.subMenu}>
<span style='display: none;' id='buttombox<{$blocklevel2.sortid}>' name='<{$blocklevel2.sortid}>' class='buttomeach' >
<{foreach item=blocklevel3 from=$blocklevel2.subMenu}>
<{assign var="m3" value=$blocklevel3.sortid}>
<{if $blockmenu.db_name|grouppermission:" where `sortid` = '$m3' order by  sortid  ASC":"browsegroup":true}>
<div  class='menubottom3'><i class="fa-solid fa-right-long"></i><a class='manulevel3'  target='<{if $blocklevel3.target eq '0'}>_self<{else}>_blank"<{/if}>' title='<{$blocklevel3.sorttitle}>'  <{if $blocklevel3.url}>href='<{$blocklevel3.url}>'<{else}> href='javascript:void(0);' onclick='return false;'<{/if}>><{$blocklevel3.sorttitle}></a></div>
<{/if}>
<{/foreach}>  
</span>
<{/if}>
<div clear: both;></div>
<{/if}>
<{/foreach}>
</div>
<{/foreach}>  
</div>
</div>
</div>

<script src="<{$xoops_url}>/modules/neillibrary/js/masonry/masonry.pkgd.js"></script>
<script>
$(function(){
$('.masonrymenu').masonry({
itemSelector: '.itemmenu',
});
});
</script>

<script> 
$(document).ready(function() {
    $("#menutblbottom .buttomeach").each(function(index) {
        $btn = $(this).attr("name");
        if ($btn != undefined) {
            var $btnname = "#menutblbottom #buttom" + $btn + "";
            var $btnnamebox = "#menutblbottom #buttombox" + $btn + "";
        }
        $($btnname).click(function() {
            if ($($btnnamebox).css("display") == 'none') {
                $($btnnamebox).show();
            } else {
                $($btnnamebox).hide();
            }
            $(function() {
                $('.masonrymenu').masonry({
                    itemSelector: '.itemmenu',
                });
            });
        });
    });
});
</script>
<{/if}>


<{if $menuid eq 'rmenufloat' && $tplvar.rmenufloat}>
<div id="fixmenu">
<ul>
<{if $tplvar.consultbtn}>
<li>
<div id="consultbtn"><a href="<{$xoops_url}>/modules/neilproduct/shopwcase.php?op=commconsult" title="<{$smarty.const._MA_NEIL_THEMES_LANGUAGE_01}>" ><{$smarty.const._MA_NEIL_THEMES_LANGUAGE_01}></a><span class="badge number2"><{$tplvar.conscount}></span></div>
</li>
<{/if}>
<{if $fbfansurlYN}>
<li>
<div id="fbfansbutton"><a href="<{$fbfansurl}>" title="<{$xoops_sitename}><{$smarty.const.THEME_FBBUTTON}>" target="_blank"><{$xoops_sitename}><{$smarty.const.THEME_FBBUTTON}></a></div>
</li>
<{/if}>
<{if $lineYN}>
<li>
<div id="linebutton"><a href="<{$line}>" title="<{$smarty.const._THEME_LINE01}><{$xoops_sitename}>LINE<{$smarty.const._THEME_LINE02}>" target="_blank"><{$smarty.const._THEME_LINE01}><{$xoops_sitename}>LINE<{$smarty.const._THEME_LINE02}></a></div>
</li>
<{/if}>
<{if $fbYN}>
<li>
<div id="fbmessagesbutton"><a href="https://www.messenger.com/t/<{$fbuID}>" title="<{$smarty.const._THEME_LINE01}><{$xoops_sitename}>FB<{$smarty.const._THEME_FB02}>" target="_blank"><{$smarty.const._THEME_FB01}><{$xoops_sitename}>fb<{$smarty.const._THEME_FB02}></a></div>
</li>
<{/if}>
<{if $contactusYN}>
<li>
<div id="contactus"><a title="<{$xoops_sitename}><{$smarty.const.THEME_CONTACTUS}>" target="_blank" href="<{$mailto}><{$contactus}>"><{$xoops_sitename}><{$smarty.const.THEME_CONTACTUS}></a></div>
</li>
<{/if}>
<li>
<div id="rbookmark">  <a title="<{$smarty.const._THEME_TOP}>" href="#" id="goTop2"><{$smarty.const._THEME_TOP}></a></div>
</li>
</ul>
</div>
<{/if}>



<{if ($menuid eq 'barbox' && !$tplvar.rmenufloat) && ($fbfansurlYN || $lineYN || $fbYN || $contactusYN) }>

<div id='communitybarbox'>
<ul>
<{if $fbfansurlYN}>
<li>
<div id="fbfansbutton"><a href="<{$fbfansurl}>" title="<{$xoops_sitename}><{$smarty.const.THEME_FBBUTTON}>" target="_blank"><{$xoops_sitename}><{$smarty.const.THEME_FBBUTTON}></a></div>
</li>
<{/if}>
<{if $lineYN}>
<li>
<div id="linebutton"><a href="<{$line}>" title="<{$smarty.const._THEME_LINE01}><{$xoops_sitename}>LINE<{$smarty.const._THEME_LINE02}>" target="_blank"><{$smarty.const._THEME_LINE01}><{$xoops_sitename}>LINE<{$smarty.const._THEME_LINE02}></a></div>
</li>
<{/if}>
<{if $fbYN}>
<li>
<div id="fbmessagesbutton"><a href="https://www.messenger.com/t/<{$fbuID}>" title="<{$smarty.const._THEME_LINE01}><{$xoops_sitename}>FB<{$smarty.const._THEME_FB02}>" target="_blank"><{$smarty.const._THEME_FB01}><{$xoops_sitename}>fb<{$smarty.const._THEME_FB02}></a></div>
</li>
<{/if}>
<{if $contactusYN}>
<li>
<div id="contactus"><a title="<{$xoops_sitename}><{$smarty.const.THEME_CONTACTUS}>" target="_blank" href="<{$mailto}><{$contactus}>"><{$xoops_sitename}><{$smarty.const.THEME_CONTACTUS}></a></div>
</li>
<{/if}>
<li>
</li>
</ul>
</div><div style='clear: both;'></div>
<{/if}>