$(document).ready(function(){$('.dropdownmenu-wrapper').dropdownmenu();$('body').comments.init();$('.publication-options .buttonDelete').click(function(event){if(!confirm('Czy na pewno chcesz usunąć publikację?')){event.preventDefault();}});$('.publication-gallery-photo a.big').fancybox({'transitionIn':'elastic','transitionOut':'elastic','speedIn':400,'speedOut':200,'overlayShow':true,'titleShow':false,afterLoad:function(){ga('send','pageview',this.href);ga('send','event','Lightbox','Open',this.href);}});$('#form-common-comment-add textarea').autoResize({onResize:function(){},animateCallback:function(){},animate:true,animateDuration:3000,extraSpace:0});$().openClose({trigger:'.commentsFormTrigger',container:'.comment-form',animation:250});$(".publication-gallery ul").carouFredSel({circular:false,infinite:false,auto:false,items:6,scroll:6,prev:{button:".publication-gallery .prev",key:"left"},next:{button:".publication-gallery .next",key:"right"}});$('fieldset.comment-form-content').remainCharactersCounter({max:500,inputPath:'textarea'});})