var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=477870&docid=2617894&x=4710',
		'title': '',
		'imageId': '2617894',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477870&docid=2617897&x=4710',
		'title': '',
		'imageId': '2617897',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477870&docid=2617900&x=4710',
		'title': '',
		'imageId': '2617900',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477870&docid=2617903&x=4710',
		'title': '',
		'imageId': '2617903',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477870&docid=2617906&x=4710',
		'title': '',
		'imageId': '2617906',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477870&docid=2617909&x=4710',
		'title': '',
		'imageId': '2617909',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477870&docid=2617912&x=4710',
		'title': '',
		'imageId': '2617912',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477870&docid=2617924&x=4710',
		'title': '',
		'imageId': '2617924',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #477870';

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