var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3940715&docid=68378479&x=5451',
		'title': '',
		'imageId': '68378479',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3940715&docid=68378477&x=5451',
		'title': '',
		'imageId': '68378477',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3940715&docid=68378481&x=5451',
		'title': '',
		'imageId': '68378481',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3940715&docid=68378478&x=5451',
		'title': '',
		'imageId': '68378478',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3940715&docid=68378487&x=5451',
		'title': '',
		'imageId': '68378487',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3940715&docid=68378486&x=5451',
		'title': '',
		'imageId': '68378486',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3940715&docid=68378480&x=5451',
		'title': '',
		'imageId': '68378480',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3940715&docid=68378485&x=5451',
		'title': '',
		'imageId': '68378485',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3940715&docid=68378482&x=5451',
		'title': '',
		'imageId': '68378482',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3940715&docid=68378484&x=5451',
		'title': '',
		'imageId': '68378484',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3940715&docid=68378483&x=5451',
		'title': '',
		'imageId': '68378483',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3940715';

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