var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4008822&docid=69931129&x=2513',
		'title': '',
		'imageId': '69931129',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008822&docid=69931134&x=2513',
		'title': '',
		'imageId': '69931134',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008822&docid=69931135&x=2513',
		'title': '',
		'imageId': '69931135',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008822&docid=69931136&x=2513',
		'title': '',
		'imageId': '69931136',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008822&docid=69931128&x=2513',
		'title': '',
		'imageId': '69931128',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008822&docid=69931130&x=2513',
		'title': '',
		'imageId': '69931130',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008822&docid=69931133&x=2513',
		'title': '',
		'imageId': '69931133',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008822&docid=69931131&x=2513',
		'title': '',
		'imageId': '69931131',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008822&docid=69931137&x=2513',
		'title': '',
		'imageId': '69931137',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008822&docid=69931138&x=2513',
		'title': '',
		'imageId': '69931138',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008822&docid=69931132&x=2513',
		'title': '',
		'imageId': '69931132',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4008822';

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