var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=477487&docid=2614154&x=4124',
		'title': '',
		'imageId': '2614154',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477487&docid=2614145&x=4124',
		'title': '',
		'imageId': '2614145',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477487&docid=2614139&x=4124',
		'title': '',
		'imageId': '2614139',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477487&docid=2614151&x=4124',
		'title': '',
		'imageId': '2614151',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477487&docid=2614136&x=4124',
		'title': '',
		'imageId': '2614136',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477487&docid=2614142&x=4124',
		'title': '',
		'imageId': '2614142',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477487&docid=2614148&x=4124',
		'title': '',
		'imageId': '2614148',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #477487';

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