var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=463071&docid=2501900&x=428',
		'title': '',
		'imageId': '2501900',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=463071&docid=2501903&x=428',
		'title': '',
		'imageId': '2501903',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=463071&docid=2501906&x=428',
		'title': '',
		'imageId': '2501906',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=463071&docid=2501909&x=428',
		'title': '',
		'imageId': '2501909',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=463071&docid=2501912&x=428',
		'title': '',
		'imageId': '2501912',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=463071&docid=2501915&x=428',
		'title': '',
		'imageId': '2501915',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=463071&docid=2501918&x=428',
		'title': '',
		'imageId': '2501918',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=463071&docid=2501921&x=428',
		'title': '',
		'imageId': '2501921',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=463071&docid=2501924&x=428',
		'title': '',
		'imageId': '2501924',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #463071';

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