var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4008710&docid=69928415&x=4842',
		'title': '',
		'imageId': '69928415',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008710&docid=69928414&x=4842',
		'title': '',
		'imageId': '69928414',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008710&docid=69928422&x=4842',
		'title': '',
		'imageId': '69928422',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008710&docid=69928418&x=4842',
		'title': '',
		'imageId': '69928418',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008710&docid=69928413&x=4842',
		'title': '',
		'imageId': '69928413',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008710&docid=69928421&x=4842',
		'title': '',
		'imageId': '69928421',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008710&docid=69928417&x=4842',
		'title': '',
		'imageId': '69928417',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008710&docid=69928419&x=4842',
		'title': '',
		'imageId': '69928419',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008710&docid=69928416&x=4842',
		'title': '',
		'imageId': '69928416',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008710&docid=69928420&x=4842',
		'title': '',
		'imageId': '69928420',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4008710';

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