var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=472078&docid=2573157&x=109',
		'title': '',
		'imageId': '2573157',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=472078&docid=2573160&x=109',
		'title': '',
		'imageId': '2573160',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=472078&docid=2573163&x=109',
		'title': '',
		'imageId': '2573163',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=472078&docid=2573166&x=109',
		'title': '',
		'imageId': '2573166',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=472078&docid=2573169&x=109',
		'title': '',
		'imageId': '2573169',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=472078&docid=2573175&x=109',
		'title': '',
		'imageId': '2573175',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=472078&docid=2573178&x=109',
		'title': '',
		'imageId': '2573178',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=472078&docid=2573185&x=109',
		'title': '',
		'imageId': '2573185',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #472078';

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