<div id="mainmenu" class="clearfix">
<div class="icemegamenu">
<div class="ice-megamenu-toggle">
<a data-toggle="collapse" data-target=".nav-collapse" href="#mainmenu" class="collapsed">Menu</a>
</div>
<div class="nav-collapse icemegamenu collapse">
<ul id="icemegamenu" class="meganizr mzr-slide mzr-responsive">
<li id="iceMenu_813" class="iceMenuLiLevel_1">
<a href="/" class="iceMenuTitle">
<span class="icemega_title icemega_nosubtitle">Главная</span>
</a>
</li>
<li id="iceMenu_1018" class="iceMenuLiLevel_1">
<a href="/avtostudiya-kvatro-pochemu-vybirayut-tonirovku-v-kazani-i-atermalnuyu-tonirovku-stekov-avtomobilya-u-nas.html" class=" iceMenuTitle">
<span class="icemega_title icemega_nosubtitle">О нас</span>
</a>
</li>
<li id="iceMenu_1014" class="iceMenuLiLevel_1">
<a href="/kvatro-tonirovka-v-kazani-tonirovka-stekol-avtomobilya-a-tak-zhe-atermalnaya-tonirovka-po-gostu.html" class=" iceMenuTitle">
<span class="icemega_title icemega_nosubtitle">Наши услуги</span>
</a>
</li>
<li id="iceMenu_1015" class="iceMenuLiLevel_1">
<a href="/tonirovka-v-kazani-primery-rabot.html" class=" iceMenuTitle">
<span class="icemega_title icemega_nosubtitle">Примеры наших работ</span>
</a>
</li>
<li id="iceMenu_1016" class="iceMenuLiLevel_1">
<a href="/perednyaya-zadnyaya-atermalnaya-tonirovka-v-kazani-tseny-na-novuyu-tonirovku-po-gostu.html" class=" iceMenuTitle">
<span class="icemega_title icemega_nosubtitle">Наши цены</span>
</a>
</li>
<li id="iceMenu_1017" class="iceMenuLiLevel_1">
<a href="/adres-gde-mozhno-zatonirovat-avto-v-kazani.html" class=" iceMenuTitle">
<span class="icemega_title icemega_nosubtitle">Связаться с нами</span>
</a>
</li>
</ul>
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function(){
var browser_width1 = jQuery(window).width();
jQuery("#icemegamenu").find(".icesubMenu").each(function(index){
var offset1 = jQuery(this).offset();
var xwidth1 = offset1.left + jQuery(this).width();
if(xwidth1 >= browser_width1){
jQuery(this).addClass("ice_righttoleft");
}
});
})
jQuery(window).resize(function() {
var browser_width = jQuery(window).width();
jQuery("#icemegamenu").find(".icesubMenu").removeClass("ice_righttoleft");
jQuery("#icemegamenu").find(".icesubMenu").each(function(index){
var offset = jQuery(this).offset();
var xwidth = offset.left + jQuery(this).width();
if(xwidth >= browser_width){
jQuery(this).addClass("ice_righttoleft");
}
});
});
</script>
#mainmenu:hover #icemegamenu {
display: initial;
}
#icemegamenu {
display: none;
}