/*RESPONSIVE NAVIGATION*/ jQuery.noConflict(); mainNavChildren(jQuery(".menu-header_menu-container > ul") , 0); function mainNavChildren(parent , level){ jQuery(parent).children("li").each(function(i , obj){ var label = ""; for(var k = 0 ; k < level ; k++){ label += "    "; } var text = ''; jQuery(obj).children("a").contents().each(function(){ if(this.nodeType === 3){ text += this.wholeText; } }); label += text; //label += jQuery(obj).not('li a span').children("a").text(); jQuery("#responsive-main-nav-menu").append(""); if(jQuery(obj).children("ul").size() == 1){ mainNavChildren(jQuery(obj).children("ul") , level + 1); } }); } jQuery(document).ready(function() { "use strict"; jQuery('.accordion-body.in').parent().addClass('active'); jQuery('.accordion-toggle').click(function() { jQuery('.accordion-group').removeClass('active'); jQuery(this).parent().parent().addClass('active'); }); jQuery('.sub-menu').each(function () { jQuery(this).parent().eq(0).hoverIntent({ timeout: 100, over: function () { var current = jQuery('.sub-menu:eq(0)', this); current.slideDown(300); }, out: function () { var current = jQuery('.sub-menu:eq(0)', this); current.fadeOut(100); } }); }); jQuery('.post-thumb .overlay .more').each(function() { var imghh=jQuery(this).parents('.post-thumb').children('img').height(); jQuery(this).css('margin-top',((imghh/2)-22)+'px'); }); jQuery('.portfolio article .post-thumb .icons').each(function() { var imghh=jQuery(this).parents('.post-thumb').children('img').height(); jQuery(this).css('margin-top',((imghh/2)-22)+'px'); }); jQuery('.portfolio article .post-content .icon').each(function() { var hh=jQuery(this).parents('.post-content').children('.text').height(); jQuery(this).css('height',hh+'px'); }); jQuery('article .post-thumb').each(function() { var ieh=jQuery(this).children('img').height(); jQuery(this).css('height',ieh+'px'); }); });