var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=476366&docid=2602654&x=3120',
		'title': '',
		'imageId': '2602654',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476366&docid=2602672&x=3120',
		'title': '',
		'imageId': '2602672',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476366&docid=2602675&x=3120',
		'title': '',
		'imageId': '2602675',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476366&docid=2602657&x=3120',
		'title': '',
		'imageId': '2602657',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476366&docid=2602669&x=3120',
		'title': '',
		'imageId': '2602669',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476366&docid=2602660&x=3120',
		'title': '',
		'imageId': '2602660',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476366&docid=2602663&x=3120',
		'title': '',
		'imageId': '2602663',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476366&docid=2602666&x=3120',
		'title': '',
		'imageId': '2602666',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #476366';

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