var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3977226&docid=67774776&x=3628',
		'title': '',
		'imageId': '67774776',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3977226&docid=67774777&x=3628',
		'title': '',
		'imageId': '67774777',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3977226&docid=67774778&x=3628',
		'title': '',
		'imageId': '67774778',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3977226&docid=67774779&x=3628',
		'title': '',
		'imageId': '67774779',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3977226&docid=67774780&x=3628',
		'title': '',
		'imageId': '67774780',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3977226&docid=67774781&x=3628',
		'title': '',
		'imageId': '67774781',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3977226&docid=67774782&x=3628',
		'title': '',
		'imageId': '67774782',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3977226&docid=67774783&x=3628',
		'title': '',
		'imageId': '67774783',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3977226&docid=67774784&x=3628',
		'title': '',
		'imageId': '67774784',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3977226&docid=67774785&x=3628',
		'title': '',
		'imageId': '67774785',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3977226&docid=67774786&x=3628',
		'title': '',
		'imageId': '67774786',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3977226';

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