var varArray = [
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4014769/70071507?x=1933',
		'title': 'Aerial Front-View',
		'imageId': '70071507',
		'alt' : 'Aerial Front-View',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4014769/70071508?x=1933',
		'title': 'Left-Side View',
		'imageId': '70071508',
		'alt' : 'Left-Side View',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4014769/70071512?x=1933',
		'title': 'Back-Side View',
		'imageId': '70071512',
		'alt' : 'Back-Side View',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4014769/70071522?x=1933',
		'title': 'Right-Side View',
		'imageId': '70071522',
		'alt' : 'Right-Side View',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4014769/70071509?x=1933',
		'title': 'Top Port View',
		'imageId': '70071509',
		'alt' : 'Top Port View',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4014769/70071510?x=1933',
		'title': 'Back Plate View',
		'imageId': '70071510',
		'alt' : 'Back Plate View',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4014769/70071533?x=1933',
		'title': 'Low Front View',
		'imageId': '70071533',
		'alt' : 'Low Front View',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4014769/70071538?x=1933',
		'title': '',
		'imageId': '70071538',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4014769';

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