var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016771&docid=70145820&x=5023',
		'title': '',
		'imageId': '70145820',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016771&docid=70145824&x=5023',
		'title': '',
		'imageId': '70145824',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016771&docid=70145817&x=5023',
		'title': '',
		'imageId': '70145817',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016771&docid=70145826&x=5023',
		'title': '',
		'imageId': '70145826',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016771&docid=70145823&x=5023',
		'title': '',
		'imageId': '70145823',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016771&docid=70145816&x=5023',
		'title': '',
		'imageId': '70145816',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016771&docid=70145821&x=5023',
		'title': '',
		'imageId': '70145821',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016771&docid=70145825&x=5023',
		'title': '',
		'imageId': '70145825',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016771&docid=70145819&x=5023',
		'title': '',
		'imageId': '70145819',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016771&docid=70145818&x=5023',
		'title': '',
		'imageId': '70145818',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016771&docid=70145822&x=5023',
		'title': '',
		'imageId': '70145822',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016771';

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