var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=471565&docid=2584438&x=336',
		'title': '',
		'imageId': '2584438',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471565&docid=2584451&x=336',
		'title': '',
		'imageId': '2584451',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471565&docid=2584454&x=336',
		'title': '',
		'imageId': '2584454',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471565&docid=2584460&x=336',
		'title': '',
		'imageId': '2584460',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471565&docid=2584464&x=336',
		'title': '',
		'imageId': '2584464',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471565&docid=2584448&x=336',
		'title': '',
		'imageId': '2584448',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471565&docid=2584457&x=336',
		'title': '',
		'imageId': '2584457',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471565&docid=2584445&x=336',
		'title': '',
		'imageId': '2584445',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471565&docid=2584434&x=336',
		'title': '',
		'imageId': '2584434',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #471565';

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