code: function(index) {
  		var item = mfp.items[index],
  			type;
  
  		if(item.tagName) {
  			item = { el: $(item) };
  		} else {
  			type = item.type;
  			item = { data: item, src: item.src };
  		}
  
  		if(item.el) {
  			var types = mfp.types;
  
  			// check for 'mfp-TYPE' class
  			for(var i = 0; i < types.length; i++) {
  				if( item.el.hasClass('mfp-'+types[i]) ) {
  					type = types[i];
  					break;
  				}
  			}
  
  			item.src = item.el.attr('data-mfp-src');
  			if(!item.src) {
  				item.src = item.el.attr('href');
  			}
  		}
  
  		item.type = type || mfp.st.type || 'inline';
  		item.index = index;
  		item.parsed = true;
  		mfp.items[index] = item;
  		_mfpTrigger('ElementParse', item);
  
  		return mfp.items[index];
  	}
docs: Creates Magnific Popup data object based on given data
  @param  {int} index Index of item to parse