function dropdownClickToggle() {
			    var menuItems = verticalNavObject.find('ul li.menu-item-has-children');
			
			    menuItems.each(function () {
				    var elementToExpand = $(this).find(' > .second, > ul');
				    var menuItem = this;
				    var dropdownOpener = $(this).find('> a');
				    var slideUpSpeed = 'fast';
				    var slideDownSpeed = 'fast';
				
				    dropdownOpener.on('click tap', function (e) {
					    e.preventDefault();
					    e.stopPropagation();
					
					    if (elementToExpand.is(':visible')) {
						    $(menuItem).removeClass('open');
						    elementToExpand.slideUp(slideUpSpeed);
					    } else if (dropdownOpener.parent().parent().children().hasClass('open') && dropdownOpener.parent().parent().parent().hasClass('edgtf-vertical-menu')) {
						    $(this).parent().parent().children().removeClass('open');
						    $(this).parent().parent().children().find(' > .second').slideUp(slideUpSpeed);
						
						    $(menuItem).addClass('open');
						    elementToExpand.slideDown(slideDownSpeed);
					    } else {
						
						    if (!$(this).parents('li').hasClass('open')) {
							    menuItems.removeClass('open');
							    menuItems.find(' > .second, > ul').slideUp(slideUpSpeed);
						    }
						
						    if ($(this).parent().parent().children().hasClass('open')) {
							    $(this).parent().parent().children().removeClass('open');
							    $(this).parent().parent().children().find(' > .second, > ul').slideUp(slideUpSpeed);
						    }
						
						    $(menuItem).addClass('open');
						    elementToExpand.slideDown(slideDownSpeed);
					    }
				    });
			    });
		    }
/**
		     * Initializes click toggle navigation type. Works the same for touch and no-touch devices
		     */
Initializes click toggle navigation type. Works the same for touch and no-touch devices
Initializes click toggle navigation type . Works the same for touch and no - touch devices
function dropdownClickToggle() {
			    var menuItems = verticalNavObject.find('ul li.menu-item-has-children');
			    menuItems.each(function () {
				    var elementToExpand = $(this).find(' > .second, > ul');
				    var menuItem = this;
				    var dropdownOpener = $(this).find('> a');
				    var slideUpSpeed = 'fast';
				    var slideDownSpeed = 'fast';
				    dropdownOpener.on('click tap', function (e) {
					    e.preventDefault();
					    e.stopPropagation();
					    if (elementToExpand.is(':visible')) {
						    $(menuItem).removeClass('open');
						    elementToExpand.slideUp(slideUpSpeed);
					    } else if (dropdownOpener.parent().parent().children().hasClass('open') && dropdownOpener.parent().parent().parent().hasClass('edgtf-vertical-menu')) {
						    $(this).parent().parent().children().removeClass('open');
						    $(this).parent().parent().children().find(' > .second').slideUp(slideUpSpeed);
						    $(menuItem).addClass('open');
						    elementToExpand.slideDown(slideDownSpeed);
					    } else {
						    if (!$(this).parents('li').hasClass('open')) {
							    menuItems.removeClass('open');
							    menuItems.find(' > .second, > ul').slideUp(slideUpSpeed);
						    }
						    if ($(this).parent().parent().children().hasClass('open')) {
							    $(this).parent().parent().children().removeClass('open');
							    $(this).parent().parent().children().find(' > .second, > ul').slideUp(slideUpSpeed);
						    }
						    $(menuItem).addClass('open');
						    elementToExpand.slideDown(slideDownSpeed);
					    }
				    });
			    });
		    }
function dropdownClickToggle ( ) { var menuItems = verticalNavObject . find ( 'ul li.menu-item-has-children' ) ; menuItems . each ( function ( ) { var elementToExpand = $ ( this ) . find ( ' > .second, > ul' ) ; var menuItem = this ; var dropdownOpener = $ ( this ) . find ( '> a' ) ; var slideUpSpeed = 'fast' ; var slideDownSpeed = 'fast' ; dropdownOpener . on ( 'click tap' , function ( e ) { e . preventDefault ( ) ; e . stopPropagation ( ) ; if ( elementToExpand . is ( ':visible' ) ) { $ ( menuItem ) . removeClass ( 'open' ) ; elementToExpand . slideUp ( slideUpSpeed ) ; } else if ( dropdownOpener . parent ( ) . parent ( ) . children ( ) . hasClass ( 'open' ) && dropdownOpener . parent ( ) . parent ( ) . parent ( ) . hasClass ( 'edgtf-vertical-menu' ) ) { $ ( this ) . parent ( ) . parent ( ) . children ( ) . removeClass ( 'open' ) ; $ ( this ) . parent ( ) . parent ( ) . children ( ) . find ( ' > .second' ) . slideUp ( slideUpSpeed ) ; $ ( menuItem ) . addClass ( 'open' ) ; elementToExpand . slideDown ( slideDownSpeed ) ; } else { if ( ! $ ( this ) . parents ( 'li' ) . hasClass ( 'open' ) ) { menuItems . removeClass ( 'open' ) ; menuItems . find ( ' > .second, > ul' ) . slideUp ( slideUpSpeed ) ; } if ( $ ( this ) . parent ( ) . parent ( ) . children ( ) . hasClass ( 'open' ) ) { $ ( this ) . parent ( ) . parent ( ) . children ( ) . removeClass ( 'open' ) ; $ ( this ) . parent ( ) . parent ( ) . children ( ) . find ( ' > .second, > ul' ) . slideUp ( slideUpSpeed ) ; } $ ( menuItem ) . addClass ( 'open' ) ; elementToExpand . slideDown ( slideDownSpeed ) ; } } ) ; } ) ; }
Initializes click toggle navigation type.
Initializes click toggle navigation type .