var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3879047&docid=67515982&x=4240',
		'title': '',
		'imageId': '67515982',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3879047&docid=67515978&x=4240',
		'title': '',
		'imageId': '67515978',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3879047&docid=67515981&x=4240',
		'title': '',
		'imageId': '67515981',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3879047&docid=67515967&x=4240',
		'title': '',
		'imageId': '67515967',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3879047&docid=67515971&x=4240',
		'title': '',
		'imageId': '67515971',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3879047&docid=67515965&x=4240',
		'title': '',
		'imageId': '67515965',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3879047&docid=67515968&x=4240',
		'title': '',
		'imageId': '67515968',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3879047&docid=67515964&x=4240',
		'title': '',
		'imageId': '67515964',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3879047&docid=67515966&x=4240',
		'title': '',
		'imageId': '67515966',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3879047&docid=67515963&x=4240',
		'title': '',
		'imageId': '67515963',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3879047&docid=67515983&x=4240',
		'title': '',
		'imageId': '67515983',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3879047';

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