var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4019508&docid=70217877&x=4739',
		'title': '',
		'imageId': '70217877',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019508&docid=70217876&x=4739',
		'title': '',
		'imageId': '70217876',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019508&docid=70217871&x=4739',
		'title': '',
		'imageId': '70217871',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019508&docid=70217878&x=4739',
		'title': '',
		'imageId': '70217878',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019508&docid=70217879&x=4739',
		'title': '',
		'imageId': '70217879',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019508&docid=70217875&x=4739',
		'title': '',
		'imageId': '70217875',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019508&docid=70217873&x=4739',
		'title': '',
		'imageId': '70217873',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019508&docid=70217874&x=4739',
		'title': '',
		'imageId': '70217874',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019508&docid=70217872&x=4739',
		'title': '',
		'imageId': '70217872',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019508&docid=70217870&x=4739',
		'title': '',
		'imageId': '70217870',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4019508';

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