code: function(action) {
  			var self = this;
  
  			if (action == 'show') {
  				// Modal is open so update scope
  				self.scope.is_open = true;
  
  				// set body to overflow hidden if background_scroll is false
  				if (! self.options.background_scroll) {
  					self.dom.addClass('modaal-noscroll');
  				}
  
  				// append modaal overlay
  				if ($('#' + self.scope.id + '_overlay').length < 1) {
  					self.dom.append('<div class="modaal-overlay" id="' + self.scope.id + '_overlay"></div>');
  				}
  
  				// now show
  				$('#' + self.scope.id + '_overlay').css('background', self.options.background).stop().animate({
  					opacity: self.options.overlay_opacity
  				}, self.options.animation_speed, function(){
  					// now open the modal
  					self.modaal_open();
  				});
  
  			} else if (action == 'hide') {
  
  				// now hide the overlay
  				$('#' + self.scope.id + '_overlay').stop().animate({
  					opacity: 0
  				}, self.options.animation_speed, function(){
  					// remove overlay from dom
  					$(this).remove();
  
  					// remove body overflow lock
  					self.dom.removeClass('modaal-noscroll');
  				});
  			}
  		}
docs: Overlay control (accepts action for show or hide) ----------------------------------------------------------------