var varArray = [
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4044301/70849345?x=614',
		'title': '',
		'imageId': '70849345',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4044301/70849342?x=614',
		'title': '',
		'imageId': '70849342',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4044301/70849337?x=614',
		'title': '',
		'imageId': '70849337',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4044301/70849340?x=614',
		'title': '',
		'imageId': '70849340',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4044301/70849339?x=614',
		'title': '',
		'imageId': '70849339',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4044301/70849348?x=614',
		'title': '',
		'imageId': '70849348',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4044301/70849335?x=614',
		'title': '',
		'imageId': '70849335',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4044301/70849336?x=614',
		'title': '',
		'imageId': '70849336',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4044301/70849350?x=614',
		'title': '',
		'imageId': '70849350',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4044301/70849346?x=614',
		'title': '',
		'imageId': '70849346',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4044301/70849349?x=614',
		'title': '',
		'imageId': '70849349',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4044301/70849343?x=614',
		'title': '',
		'imageId': '70849343',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4044301/70849333?x=614',
		'title': '',
		'imageId': '70849333',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4044301/70849347?x=614',
		'title': '',
		'imageId': '70849347',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4044301/70849334?x=614',
		'title': '',
		'imageId': '70849334',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4044301/70849344?x=614',
		'title': '',
		'imageId': '70849344',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4044301/70849338?x=614',
		'title': '',
		'imageId': '70849338',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4044301/70849341?x=614',
		'title': '',
		'imageId': '70849341',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4044301';

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