var varArray = [
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/3803949/68335256?x=4424',
		'title': '',
		'imageId': '68335256',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/3803949/65023224?x=4424',
		'title': '',
		'imageId': '65023224',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/3803949/65023227?x=4424',
		'title': '',
		'imageId': '65023227',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/3803949/65023230?x=4424',
		'title': '',
		'imageId': '65023230',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/3803949/68335250?x=4424',
		'title': '',
		'imageId': '68335250',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/3803949/68335253?x=4424',
		'title': '',
		'imageId': '68335253',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/3803949/68335261?x=4424',
		'title': '',
		'imageId': '68335261',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/3803949/68335246?x=4424',
		'title': '',
		'imageId': '68335246',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3803949';

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