var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3954216&docid=68678490&x=1416',
		'title': '',
		'imageId': '68678490',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3954216&docid=68678489&x=1416',
		'title': '',
		'imageId': '68678489',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3954216&docid=68678491&x=1416',
		'title': '',
		'imageId': '68678491',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3954216&docid=68678492&x=1416',
		'title': '',
		'imageId': '68678492',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3954216&docid=68678493&x=1416',
		'title': '',
		'imageId': '68678493',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3954216&docid=68678500&x=1416',
		'title': '',
		'imageId': '68678500',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3954216&docid=68678504&x=1416',
		'title': '',
		'imageId': '68678504',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3954216&docid=68678508&x=1416',
		'title': '',
		'imageId': '68678508',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3954216&docid=68678509&x=1416',
		'title': '',
		'imageId': '68678509',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3954216&docid=68678494&x=1416',
		'title': '',
		'imageId': '68678494',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3954216';

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