var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=473884&docid=2591957&x=4134',
		'title': '',
		'imageId': '2591957',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=473884&docid=2591960&x=4134',
		'title': '',
		'imageId': '2591960',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=473884&docid=2591963&x=4134',
		'title': '',
		'imageId': '2591963',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=473884&docid=2591966&x=4134',
		'title': '',
		'imageId': '2591966',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=473884&docid=2591969&x=4134',
		'title': '',
		'imageId': '2591969',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=473884&docid=2591972&x=4134',
		'title': '',
		'imageId': '2591972',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=473884&docid=2591975&x=4134',
		'title': '',
		'imageId': '2591975',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=473884&docid=2591978&x=4134',
		'title': '',
		'imageId': '2591978',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #473884';

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