var varArray = [
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4034013/70564635?x=191',
		'title': 'Top of Projector',
		'imageId': '70564635',
		'alt' : 'Top of Projector',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4034013/70564634?x=191',
		'title': 'Underside of Projector',
		'imageId': '70564634',
		'alt' : 'Underside of Projector',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4034013/70564632?x=191',
		'title': 'Ports and Connections ',
		'imageId': '70564632',
		'alt' : 'Ports and Connections ',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4034013/70564633?x=191',
		'title': 'Filter and Filter Housing ',
		'imageId': '70564633',
		'alt' : 'Filter and Filter Housing ',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4034013/70564631?x=191',
		'title': 'Top of Projector',
		'imageId': '70564631',
		'alt' : 'Top of Projector',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4034013/70656207?x=191',
		'title': 'Fleet of 4 projectors ',
		'imageId': '70656207',
		'alt' : 'Fleet of 4 projectors ',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4034013/70656212?x=191',
		'title': 'Total Auction Contents (Projector, power cabling, HDMI cabling)',
		'imageId': '70656212',
		'alt' : 'Total Auction Contents (Projector, power cabling, HDMI cabling)',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4034013';

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