var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4003197&docid=69789414&x=5310',
		'title': '',
		'imageId': '69789414',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003197&docid=69789415&x=5310',
		'title': '',
		'imageId': '69789415',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003197&docid=69789416&x=5310',
		'title': '',
		'imageId': '69789416',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003197&docid=69789417&x=5310',
		'title': '',
		'imageId': '69789417',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003197&docid=69789418&x=5310',
		'title': '',
		'imageId': '69789418',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003197&docid=69789419&x=5310',
		'title': '',
		'imageId': '69789419',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003197&docid=69789421&x=5310',
		'title': '',
		'imageId': '69789421',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003197&docid=69789422&x=5310',
		'title': '',
		'imageId': '69789422',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003197&docid=69789423&x=5310',
		'title': '',
		'imageId': '69789423',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003197&docid=69789424&x=5310',
		'title': '',
		'imageId': '69789424',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003197&docid=69789425&x=5310',
		'title': '',
		'imageId': '69789425',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4003197';

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