var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3949708&docid=68578452&x=4032',
		'title': '',
		'imageId': '68578452',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949708&docid=68578451&x=4032',
		'title': '',
		'imageId': '68578451',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949708&docid=68578447&x=4032',
		'title': '',
		'imageId': '68578447',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949708&docid=68578455&x=4032',
		'title': '',
		'imageId': '68578455',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949708&docid=68578453&x=4032',
		'title': '',
		'imageId': '68578453',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949708&docid=68578450&x=4032',
		'title': '',
		'imageId': '68578450',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949708&docid=68578446&x=4032',
		'title': '',
		'imageId': '68578446',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949708&docid=68578454&x=4032',
		'title': '',
		'imageId': '68578454',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949708&docid=68578449&x=4032',
		'title': '',
		'imageId': '68578449',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949708&docid=68578448&x=4032',
		'title': '',
		'imageId': '68578448',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949708&docid=68578522&x=4032',
		'title': '',
		'imageId': '68578522',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3949708';

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