var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4010069&docid=69510297&x=1830',
		'title': '',
		'imageId': '69510297',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010069&docid=69510289&x=1830',
		'title': '',
		'imageId': '69510289',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010069&docid=69510290&x=1830',
		'title': '',
		'imageId': '69510290',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010069&docid=69510296&x=1830',
		'title': '',
		'imageId': '69510296',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010069&docid=69510291&x=1830',
		'title': '',
		'imageId': '69510291',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010069&docid=69510292&x=1830',
		'title': '',
		'imageId': '69510292',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010069&docid=69510295&x=1830',
		'title': '',
		'imageId': '69510295',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010069&docid=69510294&x=1830',
		'title': '',
		'imageId': '69510294',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010069&docid=69510293&x=1830',
		'title': '',
		'imageId': '69510293',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010069&docid=69510288&x=1830',
		'title': '',
		'imageId': '69510288',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010069&docid=69510485&x=1830',
		'title': '',
		'imageId': '69510485',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4010069';

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