var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=472587&docid=2578849&x=336',
		'title': '',
		'imageId': '2578849',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=472587&docid=2578852&x=336',
		'title': '',
		'imageId': '2578852',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=472587&docid=2578864&x=336',
		'title': '',
		'imageId': '2578864',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=472587&docid=2578846&x=336',
		'title': '',
		'imageId': '2578846',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=472587&docid=2578873&x=336',
		'title': '',
		'imageId': '2578873',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=472587&docid=2578876&x=336',
		'title': '',
		'imageId': '2578876',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=472587&docid=2578867&x=336',
		'title': '',
		'imageId': '2578867',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=472587&docid=2578855&x=336',
		'title': '',
		'imageId': '2578855',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=472587&docid=2578858&x=336',
		'title': '',
		'imageId': '2578858',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=472587&docid=2578861&x=336',
		'title': '',
		'imageId': '2578861',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=472587&docid=2578870&x=336',
		'title': '',
		'imageId': '2578870',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #472587';

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