var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016678&docid=70141852&x=440',
		'title': '',
		'imageId': '70141852',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016678&docid=70141854&x=440',
		'title': '',
		'imageId': '70141854',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016678&docid=70141849&x=440',
		'title': '',
		'imageId': '70141849',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016678&docid=70141850&x=440',
		'title': '',
		'imageId': '70141850',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016678&docid=70141848&x=440',
		'title': '',
		'imageId': '70141848',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016678&docid=70141855&x=440',
		'title': '',
		'imageId': '70141855',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016678&docid=70141853&x=440',
		'title': '',
		'imageId': '70141853',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016678&docid=70141851&x=440',
		'title': '',
		'imageId': '70141851',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016678';

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