var varArray = [
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4078411/71668265?x=5353',
		'title': '',
		'imageId': '71668265',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4078411/71668266?x=5353',
		'title': 'Motor #1',
		'imageId': '71668266',
		'alt' : 'Motor #1',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4078411/71668267?x=5353',
		'title': 'Motor #1',
		'imageId': '71668267',
		'alt' : 'Motor #1',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4078411/71668268?x=5353',
		'title': 'Motor #1',
		'imageId': '71668268',
		'alt' : 'Motor #1',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4078411/71668281?x=5353',
		'title': 'Motor #2',
		'imageId': '71668281',
		'alt' : 'Motor #2',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4078411/71668279?x=5353',
		'title': 'Motor #2',
		'imageId': '71668279',
		'alt' : 'Motor #2',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4078411/71668292?x=5353',
		'title': 'Motor #2',
		'imageId': '71668292',
		'alt' : 'Motor #2',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4078411/71668300?x=5353',
		'title': 'Motor #3',
		'imageId': '71668300',
		'alt' : 'Motor #3',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4078411/71668302?x=5353',
		'title': 'Motor #3',
		'imageId': '71668302',
		'alt' : 'Motor #3',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4078411/71668303?x=5353',
		'title': 'Motor #3',
		'imageId': '71668303',
		'alt' : 'Motor #3',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4078411/71668317?x=5353',
		'title': 'Motor #4',
		'imageId': '71668317',
		'alt' : 'Motor #4',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4078411/71668318?x=5353',
		'title': 'Motor #4',
		'imageId': '71668318',
		'alt' : 'Motor #4',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4078411/71668331?x=5353',
		'title': 'Motor #4',
		'imageId': '71668331',
		'alt' : 'Motor #4',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4078411/71668333?x=5353',
		'title': 'Motor #5',
		'imageId': '71668333',
		'alt' : 'Motor #5',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4078411/71668337?x=5353',
		'title': 'Motor #5',
		'imageId': '71668337',
		'alt' : 'Motor #5',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4078411/71668341?x=5353',
		'title': 'Motor #5',
		'imageId': '71668341',
		'alt' : 'Motor #5',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4078411/71668264?x=5353',
		'title': '',
		'imageId': '71668264',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4078411';

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