var varArray = [
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4091108/71973602?x=3216',
		'title': 'Side front view photo',
		'imageId': '71973602',
		'alt' : 'Side front view photo',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4091108/71973601?x=3216',
		'title': 'Front view photo',
		'imageId': '71973601',
		'alt' : 'Front view photo',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4091108/71973606?x=3216',
		'title': 'Side front view photo',
		'imageId': '71973606',
		'alt' : 'Side front view photo',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4091108/71973599?x=3216',
		'title': 'back view photo',
		'imageId': '71973599',
		'alt' : 'back view photo',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4091108/71973605?x=3216',
		'title': 'Driver side Front inside photo',
		'imageId': '71973605',
		'alt' : 'Driver side Front inside photo',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4091108/71973600?x=3216',
		'title': 'drive side back seat photo',
		'imageId': '71973600',
		'alt' : 'drive side back seat photo',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4091108/71973603?x=3216',
		'title': 'Odometer',
		'imageId': '71973603',
		'alt' : 'Odometer',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4091108/71973604?x=3216',
		'title': 'Data Plate',
		'imageId': '71973604',
		'alt' : 'Data Plate',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4091108';

document.body.style.overflow = "hidden";
var closeElement = document.querySelector("#lightbox #close");
var closeLoadingElement = document.querySelector("#lightbox #closeLoading");

if (closeElement) {
	closeElement.addEventListener("click", function() {
		document.body.style.overflow = "auto";
	})
}

if (closeLoadingElement) {
	closeLoadingElement.addEventListener("click", function() {
		document.body.style.overflow = "auto";
	})
}
