newWOW().init();varbars=$(".bars");for(vari=0;i<bars.length;i++){varbar=bars[i];varhighlights=$('> li > .highlighted',$(bar));for(varj=0;j<highlights.length;j++){varhighlight=highlights[j];$(highlight).appear(function(){varpercent=$(this).attr("data-percent");$(this).animate({'width':percent+'%'},1700,function(){$(highlight).css('overflow','visible');});});}}
varmsnry=newMasonry($('.gallery',$ctx)[0],{itemSelector:'li',gutter:gutter,isInitLayout:false,columnWidth:".gallery li:not(.wide)"});window.msnry=msnry;$('.gallery',$ctx).imagesLoaded(function(){msnry.layout();});$('.gallery-nav ul li a',$ctx).on('click',function(){$('.gallery-nav ul li').removeClass('current');$(this).closest('li').addClass('current');varcat=$(this).attr('data-cat');vargallery=$('.gallery-nav').closest('.masonry-gallery').find('ul.gallery');if(cat==='all'){varexists=$('.gallery li',$ctx);varelems=[];for(vari=0;i<items.length;i++){varitem=items[i];varskip=false;for(varj=0;j<exists.length;j++){varexist=exists[j];if($(item).data('masonry-id')==$(exist).data('masonry-id')){skip=true;}}