var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=477885&docid=2234443&x=4710',
		'title': '',
		'imageId': '2234443',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477885&docid=2234446&x=4710',
		'title': '',
		'imageId': '2234446',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477885&docid=2234449&x=4710',
		'title': '',
		'imageId': '2234449',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477885&docid=2234452&x=4710',
		'title': '',
		'imageId': '2234452',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477885&docid=2234455&x=4710',
		'title': '',
		'imageId': '2234455',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477885&docid=2234458&x=4710',
		'title': '',
		'imageId': '2234458',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477885&docid=2234461&x=4710',
		'title': '',
		'imageId': '2234461',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477885&docid=2256796&x=4710',
		'title': '',
		'imageId': '2256796',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #477885';

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