var varArray = [
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4091113/71973910?x=240',
		'title': 'Side Front Drive side Photo',
		'imageId': '71973910',
		'alt' : 'Side Front Drive side Photo',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4091113/71973912?x=240',
		'title': 'Front view Photo',
		'imageId': '71973912',
		'alt' : 'Front view Photo',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4091113/71973907?x=240',
		'title': 'Passenger Side Front View Photo',
		'imageId': '71973907',
		'alt' : 'Passenger Side Front View Photo',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4091113/71973908?x=240',
		'title': 'Drive Side back view photo',
		'imageId': '71973908',
		'alt' : 'Drive Side back view photo',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4091113/71981252?x=240',
		'title': '',
		'imageId': '71981252',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4091113/71981253?x=240',
		'title': '',
		'imageId': '71981253',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4091113/71973911?x=240',
		'title': 'Driver Side interior Photo',
		'imageId': '71973911',
		'alt' : 'Driver Side interior Photo',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4091113/71973909?x=240',
		'title': 'Odometer',
		'imageId': '71973909',
		'alt' : 'Odometer',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4091113';

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";
	})
}
