/*(function($) { console.log('start'); $('#accordeon').AccordionImageMenu(); console.log('finish'); })(jQuery);*/ jQuery(document).ready(function(){ console.log('start'); jQuery('.accordeon2').AccordionImageMenu({ //'closeDim': 150, //'openDim': 250, }); console.log('finish2'); jQuery('.node-collections .field-items img').on({ mouseenter: function () { a = jQuery(this).parentsUntil('.field-item'); jQuery(this).closest('.field-item').css('z-index','10000'); jQuery(this).animate({ //zIndex:100000, width:'280px', height:'280px', marginTop:'-90px', marginLeft:'-90px', }, 100, function() { // Animation complete. }); //stuff to do on mouse enter }, mouseleave: function () { jQuery(this).closest('.field-item').css('z-index','0'); jQuery(this).animate({ //zIndex:0, width:'100px', height:'100px', marginTop:'0', marginLeft:'0', }, 100, function() { // Animation complete. }); } }); jQuery('.node-aksessuary .field-items img').on({ mouseenter: function () { a = jQuery(this).parentsUntil('.field-item'); jQuery(this).closest('.field-item').css('z-index','10000'); jQuery(this).animate({ //zIndex:100000, width:'280px', height:'280px', marginTop:'-90px', marginLeft:'-90px', }, 100, function() { // Animation complete. }); //stuff to do on mouse enter }, mouseleave: function () { jQuery(this).closest('.field-item').css('z-index','0'); jQuery(this).animate({ //zIndex:0, width:'100px', height:'100px', marginTop:'0', marginLeft:'0', }, 100, function() { // Animation complete. }); } }); jQuery('.node-collections .field-items img').click(function(){ jQuery(this).closest('.field-item').css('z-index','0'); }); jQuery('.node-aksessuary .field-items img').click(function(){ jQuery(this).closest('.field-item').css('z-index','0'); }); ymaps.ready(function () { var myMap = new ymaps.Map('map', { center: [59.83061075186438,30.384636346557617], zoom: 18 }, { searchControlProvider: 'yandex#search' }), // Создаём макет содержимого. MyIconContentLayout = ymaps.templateLayoutFactory.createClass( '