var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4013017&docid=70028682&x=4920',
		'title': '',
		'imageId': '70028682',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013017&docid=70028678&x=4920',
		'title': '',
		'imageId': '70028678',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013017&docid=70028681&x=4920',
		'title': '',
		'imageId': '70028681',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013017&docid=70028677&x=4920',
		'title': '',
		'imageId': '70028677',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013017&docid=70028686&x=4920',
		'title': '',
		'imageId': '70028686',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013017&docid=70028683&x=4920',
		'title': '',
		'imageId': '70028683',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013017&docid=70028685&x=4920',
		'title': '',
		'imageId': '70028685',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013017&docid=70028680&x=4920',
		'title': '',
		'imageId': '70028680',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013017&docid=70028684&x=4920',
		'title': '',
		'imageId': '70028684',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013017&docid=70028679&x=4920',
		'title': '',
		'imageId': '70028679',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4013017';

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