var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016766&docid=70145786&x=4440',
		'title': '',
		'imageId': '70145786',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016766&docid=70145784&x=4440',
		'title': '',
		'imageId': '70145784',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016766&docid=70145782&x=4440',
		'title': '',
		'imageId': '70145782',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016766&docid=70145783&x=4440',
		'title': '',
		'imageId': '70145783',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016766&docid=70145787&x=4440',
		'title': '',
		'imageId': '70145787',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016766&docid=70145785&x=4440',
		'title': '',
		'imageId': '70145785',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016766&docid=70145788&x=4440',
		'title': '',
		'imageId': '70145788',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016766&docid=70145789&x=4440',
		'title': '',
		'imageId': '70145789',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016766';

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