var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4008016&docid=68810261&x=5445',
		'title': '',
		'imageId': '68810261',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008016&docid=68810228&x=5445',
		'title': '',
		'imageId': '68810228',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008016&docid=68810218&x=5445',
		'title': '',
		'imageId': '68810218',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008016&docid=68810298&x=5445',
		'title': '',
		'imageId': '68810298',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008016&docid=68810289&x=5445',
		'title': '',
		'imageId': '68810289',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008016&docid=68810292&x=5445',
		'title': '',
		'imageId': '68810292',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008016&docid=68810273&x=5445',
		'title': '',
		'imageId': '68810273',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008016&docid=68810270&x=5445',
		'title': '',
		'imageId': '68810270',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008016&docid=68810295&x=5445',
		'title': '',
		'imageId': '68810295',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008016&docid=68810258&x=5445',
		'title': '',
		'imageId': '68810258',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4008016';

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