var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=477044&docid=2609748&x=5522',
		'title': '',
		'imageId': '2609748',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477044&docid=2609766&x=5522',
		'title': '',
		'imageId': '2609766',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477044&docid=2609769&x=5522',
		'title': '',
		'imageId': '2609769',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477044&docid=2609772&x=5522',
		'title': '',
		'imageId': '2609772',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477044&docid=2609775&x=5522',
		'title': '',
		'imageId': '2609775',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477044&docid=2609778&x=5522',
		'title': '',
		'imageId': '2609778',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477044&docid=2609781&x=5522',
		'title': '',
		'imageId': '2609781',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477044&docid=2609784&x=5522',
		'title': '',
		'imageId': '2609784',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477044&docid=2609787&x=5522',
		'title': '',
		'imageId': '2609787',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #477044';

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