code: function() {
  		var appVersion = navigator.appVersion;
  		mfp.isIE7 = appVersion.indexOf("MSIE 7.") !== -1; 
  		mfp.isIE8 = appVersion.indexOf("MSIE 8.") !== -1;
  		mfp.isLowIE = mfp.isIE7 || mfp.isIE8;
  		mfp.isAndroid = (/android/gi).test(appVersion);
  		mfp.isIOS = (/iphone|ipad|ipod/gi).test(appVersion);
  		mfp.supportsTransition = supportsTransitions();
  
  		// We disable fixed positioned lightbox on devices that don't handle it nicely.
  		// If you know a better way of detecting this - let me know.
  		mfp.probablyMobile = (mfp.isAndroid || mfp.isIOS || /(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent) );
  		_document = $(document);
  
  		mfp.popupsCache = {};
  	}
docs: Initializes Magnific Popup plugin.
  This function is triggered only once when $.fn.magnificPopup or $.magnificPopup is executed