code: function setupLigtbox() {
  		
  		//html5 validate fix
  		$('.lightbox').each(function(index, element) {
  			$(this).attr('rel', $(this).attr('data-lightbox-gallery'));
  		});
  		
  		if($("a[rel^='fancybox']").length) {
  			$("a[rel^='fancybox']").fancybox({
  				centerOnScroll : true,
  				padding : 10,
  				margin : 44,
  				width : 640,
  				height : 360,
  				transitionOut : 'none',
  				overlayColor : '#BEBD97',
  				overlayOpacity : '.6',
  				onStart : function() {
  					$( 'body' ).addClass( 'lightbox-active' );
  				},
  				onClosed : function() {
  					$( 'body' ).removeClass( 'lightbox-active' );
  				},
  				onComplete : function() {
  					if ($(this).attr('href').indexOf("soundcloud.com") >= 0) {
  						$('#fancybox-content').height(166);
  					}
  				}
  			});
  		}	
  	}
docs: ------------------------------ LIGHTBOX