code: function() {
  		_mfpTrigger(CLOSE_EVENT);
  
  		var classesToRemove = REMOVING_CLASS + ' ' + READY_CLASS + ' ';
  
  		mfp.bgOverlay.detach();
  		mfp.wrap.detach();
  		mfp.container.empty();
  
  		if(mfp.st.mainClass) {
  			classesToRemove += mfp.st.mainClass + ' ';
  		}
  
  		mfp._removeClassFromMFP(classesToRemove);
  
  		if(mfp.fixedContentPos) {
  			var windowStyles = {marginRight: ''};
  			if(mfp.isIE7) {
  				$('body, html').css('overflow', '');
  			} else {
  				windowStyles.overflow = '';
  			}
  			$('html').css(windowStyles);
  		}
  		
  		_document.off('keyup' + EVENT_NS + ' focusin' + EVENT_NS);
  		mfp.ev.off(EVENT_NS);
  
  		// clean up DOM elements that aren't removed
  		mfp.wrap.attr('class', 'mfp-wrap').removeAttr('style');
  		mfp.bgOverlay.attr('class', 'mfp-bg');
  		mfp.container.attr('class', 'mfp-container');
  
  		// remove close button from target element
  		if(mfp.st.showCloseBtn &&
  		(!mfp.st.closeBtnInside || mfp.currTemplate[mfp.currItem.type] === true)) {
  			if(mfp.currTemplate.closeBtn)
  				mfp.currTemplate.closeBtn.detach();
  		}
  
  
  		if(mfp.st.autoFocusLast && mfp._lastFocusedEl) {
  			$(mfp._lastFocusedEl).focus(); // put tab focus back
  		}
  		mfp.currItem = null;	
  		mfp.content = null;
  		mfp.currTemplate = null;
  		mfp.prevHeight = 0;
  
  		_mfpTrigger(AFTER_CLOSE_EVENT);
  	}
docs: Helper for close() function