var varArray = [
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4022034/70276264?x=3752',
		'title': '',
		'imageId': '70276264',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4022034/70277956?x=3752',
		'title': 'Driver side',
		'imageId': '70277956',
		'alt' : 'Driver side',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4022034/70276265?x=3752',
		'title': '',
		'imageId': '70276265',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4022034/70277958?x=3752',
		'title': 'driver side',
		'imageId': '70277958',
		'alt' : 'driver side',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4022034/70277957?x=3752',
		'title': 'passenger side',
		'imageId': '70277957',
		'alt' : 'passenger side',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4022034/70277954?x=3752',
		'title': 'passenger side',
		'imageId': '70277954',
		'alt' : 'passenger side',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4022034/70277955?x=3752',
		'title': '',
		'imageId': '70277955',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4022034/70277959?x=3752',
		'title': 'rear',
		'imageId': '70277959',
		'alt' : 'rear',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4022034/70277669?x=3752',
		'title': 'damaged wiper blade',
		'imageId': '70277669',
		'alt' : 'damaged wiper blade',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4022034/70277664?x=3752',
		'title': '',
		'imageId': '70277664',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4022034/70276263?x=3752',
		'title': '',
		'imageId': '70276263',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4022034/70277661?x=3752',
		'title': 'driver side',
		'imageId': '70277661',
		'alt' : 'driver side',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4022034/70277778?x=3752',
		'title': '',
		'imageId': '70277778',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4022034/70277763?x=3752',
		'title': '',
		'imageId': '70277763',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4022034/70277777?x=3752',
		'title': '',
		'imageId': '70277777',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4022034';

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