var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016835&docid=70146991&x=2939',
		'title': '',
		'imageId': '70146991',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016835&docid=70146992&x=2939',
		'title': '',
		'imageId': '70146992',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016835&docid=70146993&x=2939',
		'title': '',
		'imageId': '70146993',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016835&docid=70146994&x=2939',
		'title': '',
		'imageId': '70146994',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016835&docid=70147007&x=2939',
		'title': '',
		'imageId': '70147007',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016835&docid=70147009&x=2939',
		'title': '',
		'imageId': '70147009',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016835&docid=70147013&x=2939',
		'title': '',
		'imageId': '70147013',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016835&docid=70147011&x=2939',
		'title': '',
		'imageId': '70147011',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016835&docid=70147012&x=2939',
		'title': '',
		'imageId': '70147012',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016835&docid=70146989&x=2939',
		'title': '',
		'imageId': '70146989',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016835&docid=70146990&x=2939',
		'title': '',
		'imageId': '70146990',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016835';

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