$(document).ready(function() { /* $(".loveo").click(function(){ var mstr = $(this).attr("data"); if( $("#loveo_"+mstr).is(":hidden") ){ $("#loveo_"+mstr).show('fast'); $("#puntitos_"+mstr).hide('fast'); $(this).html('«« ver menos'); }else{ $("#loveo_"+mstr).hide('fast'); $("#puntitos_"+mstr).show('fast'); $(this).html('ver más »»'); } }); */ $('.fancybox').fancybox(); $('.fancybox-buttons').fancybox({ openEffect : 'elastic', closeEffect : 'click', prevEffect : 'none', nextEffect : 'none', closeEffect : 'elastic', closeSpeed : 150, closeBtn : true, helpers : { title : { type : 'inside' }, buttons : {} }, afterLoad : function() { this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : ''); } }); });