var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4018328&docid=70184022&x=1445',
		'title': '',
		'imageId': '70184022',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018328&docid=70184020&x=1445',
		'title': '',
		'imageId': '70184020',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018328&docid=70184019&x=1445',
		'title': '',
		'imageId': '70184019',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018328&docid=70184021&x=1445',
		'title': '',
		'imageId': '70184021',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018328&docid=70184025&x=1445',
		'title': '',
		'imageId': '70184025',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018328&docid=70184034&x=1445',
		'title': '',
		'imageId': '70184034',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018328&docid=70184035&x=1445',
		'title': '',
		'imageId': '70184035',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018328&docid=70184036&x=1445',
		'title': '',
		'imageId': '70184036',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018328&docid=70184037&x=1445',
		'title': '',
		'imageId': '70184037',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018328&docid=70184040&x=1445',
		'title': '',
		'imageId': '70184040',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018328&docid=70184017&x=1445',
		'title': '',
		'imageId': '70184017',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4018328';

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