var varArray = [
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/3980504/67942777?x=1445',
		'title': 'Example of Tile Use',
		'imageId': '67942777',
		'alt' : 'Example of Tile Use',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/3980504/67942780?x=1445',
		'title': '',
		'imageId': '67942780',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/3980504/67942776?x=1445',
		'title': 'Palletized tiles',
		'imageId': '67942776',
		'alt' : 'Palletized tiles',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/3980504/67942778?x=1445',
		'title': 'Texture Detail',
		'imageId': '67942778',
		'alt' : 'Texture Detail',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/3980504/67942779?x=1445',
		'title': 'Tile Dimensions',
		'imageId': '67942779',
		'alt' : 'Tile Dimensions',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3980504';

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