var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=471621&docid=2581090&x=313',
		'title': '',
		'imageId': '2581090',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471621&docid=2581093&x=313',
		'title': '',
		'imageId': '2581093',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471621&docid=2581097&x=313',
		'title': '',
		'imageId': '2581097',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471621&docid=2581100&x=313',
		'title': '',
		'imageId': '2581100',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471621&docid=2581103&x=313',
		'title': '',
		'imageId': '2581103',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471621&docid=2581106&x=313',
		'title': '',
		'imageId': '2581106',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471621&docid=2581109&x=313',
		'title': '',
		'imageId': '2581109',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471621&docid=2581084&x=313',
		'title': '',
		'imageId': '2581084',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471621&docid=2581087&x=313',
		'title': '',
		'imageId': '2581087',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #471621';

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