var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3938724&docid=68336822&x=5812',
		'title': '',
		'imageId': '68336822',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3938724&docid=68336823&x=5812',
		'title': '',
		'imageId': '68336823',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3938724&docid=68336829&x=5812',
		'title': '',
		'imageId': '68336829',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3938724&docid=68336824&x=5812',
		'title': '',
		'imageId': '68336824',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3938724&docid=68336820&x=5812',
		'title': '',
		'imageId': '68336820',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3938724&docid=68338671&x=5812',
		'title': '',
		'imageId': '68338671',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3938724&docid=68336825&x=5812',
		'title': '',
		'imageId': '68336825',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3938724&docid=68336818&x=5812',
		'title': '',
		'imageId': '68336818',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3938724&docid=68336826&x=5812',
		'title': '',
		'imageId': '68336826',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3938724&docid=68336819&x=5812',
		'title': '',
		'imageId': '68336819',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3938724&docid=68336827&x=5812',
		'title': '',
		'imageId': '68336827',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3938724';

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