var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4019419&docid=70214538&x=5128',
		'title': '',
		'imageId': '70214538',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019419&docid=70214534&x=5128',
		'title': '',
		'imageId': '70214534',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019419&docid=70214539&x=5128',
		'title': '',
		'imageId': '70214539',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019419&docid=70214535&x=5128',
		'title': '',
		'imageId': '70214535',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019419&docid=70214537&x=5128',
		'title': '',
		'imageId': '70214537',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019419&docid=70214548&x=5128',
		'title': '',
		'imageId': '70214548',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019419&docid=70214551&x=5128',
		'title': '',
		'imageId': '70214551',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019419&docid=70214554&x=5128',
		'title': '',
		'imageId': '70214554',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019419&docid=70214555&x=5128',
		'title': '',
		'imageId': '70214555',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019419&docid=70214536&x=5128',
		'title': '',
		'imageId': '70214536',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4019419';

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