var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4019210&docid=70210223&x=4438',
		'title': '',
		'imageId': '70210223',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019210&docid=70210221&x=4438',
		'title': '',
		'imageId': '70210221',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019210&docid=70210220&x=4438',
		'title': '',
		'imageId': '70210220',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019210&docid=70210217&x=4438',
		'title': '',
		'imageId': '70210217',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019210&docid=70210225&x=4438',
		'title': '',
		'imageId': '70210225',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019210&docid=70210216&x=4438',
		'title': '',
		'imageId': '70210216',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019210&docid=70210218&x=4438',
		'title': '',
		'imageId': '70210218',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019210&docid=70210219&x=4438',
		'title': '',
		'imageId': '70210219',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019210&docid=70210224&x=4438',
		'title': '',
		'imageId': '70210224',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019210&docid=70210222&x=4438',
		'title': '',
		'imageId': '70210222',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4019210';

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