');$(".img-left-boto-img-pdf").before('
');$(".img-right-boto-img-pdf").wrap('');$(".img-right-boto-img-pdf").before('');var $container = $('#gallery, #gallery2');if($container.length) {$container.waitForImages(function() {$container.isotope({itemSelector : '.block, .block2',masonry : {columnWidth : 1,gutterWidth: 1},masonryHorizontal : {rowHeight: 120},cellsByRow : {columnWidth : 240,rowHeight : 240},cellsByColumn : {columnWidth : 240,rowHeight : 240}});$('#gallery').infinitescroll({navSelector : '#pageNex',nextSelector : '#pageNex a',itemSelector : '.block',loading: {finishedMsg: 'No more pages to load.',img: '/qu-museu/img/ajax-loader.gif',msgText : 'Loading next page...'}},function( newElements ){var newElems = jQuery(newElements).css({ opacity: 0 });newElems.imagesLoaded(function(){$('#gallery').isotope('appended', newElems);prettyP();FB.XFBML.parse();twttr.widgets.load();Pinterest.pinit();});});},null,true);}if($('.pages').is('*')){ $('.pages').css('display','none');}}