var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4001782&docid=69758317&x=5158',
		'title': '',
		'imageId': '69758317',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001782&docid=69758323&x=5158',
		'title': '',
		'imageId': '69758323',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001782&docid=69758320&x=5158',
		'title': '',
		'imageId': '69758320',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001782&docid=69758319&x=5158',
		'title': '',
		'imageId': '69758319',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001782&docid=69758316&x=5158',
		'title': '',
		'imageId': '69758316',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001782&docid=69758321&x=5158',
		'title': '',
		'imageId': '69758321',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001782&docid=69758324&x=5158',
		'title': '',
		'imageId': '69758324',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001782&docid=69758322&x=5158',
		'title': '',
		'imageId': '69758322',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001782&docid=69758318&x=5158',
		'title': '',
		'imageId': '69758318',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001782&docid=69758326&x=5158',
		'title': '',
		'imageId': '69758326',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001782&docid=69758325&x=5158',
		'title': '',
		'imageId': '69758325',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4001782';

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