var varArray = [
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4076040/71610929?x=2959',
		'title': '',
		'imageId': '71610929',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4076040/71610935?x=2959',
		'title': '',
		'imageId': '71610935',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4076040/71610938?x=2959',
		'title': 'HDMI to DVI cable',
		'imageId': '71610938',
		'alt' : 'HDMI to DVI cable',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4076040/71610941?x=2959',
		'title': 'USB-A to USB-B cable',
		'imageId': '71610941',
		'alt' : 'USB-A to USB-B cable',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4076040/71610945?x=2959',
		'title': '',
		'imageId': '71610945',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4076040/71610948?x=2959',
		'title': '',
		'imageId': '71610948',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4076040/71610969?x=2959',
		'title': '',
		'imageId': '71610969',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4076040/71610951?x=2959',
		'title': '',
		'imageId': '71610951',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4076040';

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