var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4006408&docid=69880436&x=5521',
		'title': '',
		'imageId': '69880436',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4006408&docid=69880525&x=5521',
		'title': '',
		'imageId': '69880525',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4006408&docid=69880588&x=5521',
		'title': '',
		'imageId': '69880588',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4006408&docid=69880594&x=5521',
		'title': '',
		'imageId': '69880594',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4006408&docid=69880642&x=5521',
		'title': '',
		'imageId': '69880642',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4006408&docid=69880653&x=5521',
		'title': '',
		'imageId': '69880653',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4006408&docid=69880677&x=5521',
		'title': '',
		'imageId': '69880677',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4006408&docid=69880714&x=5521',
		'title': '',
		'imageId': '69880714',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4006408&docid=69880741&x=5521',
		'title': '',
		'imageId': '69880741',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4006408&docid=69880768&x=5521',
		'title': '',
		'imageId': '69880768',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4006408&docid=69880787&x=5521',
		'title': '',
		'imageId': '69880787',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4006408';

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