var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012606&docid=70017475&x=5336',
		'title': '',
		'imageId': '70017475',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012606&docid=70017472&x=5336',
		'title': '',
		'imageId': '70017472',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012606&docid=70017476&x=5336',
		'title': '',
		'imageId': '70017476',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012606&docid=70017477&x=5336',
		'title': '',
		'imageId': '70017477',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012606&docid=70017474&x=5336',
		'title': '',
		'imageId': '70017474',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012606&docid=70017482&x=5336',
		'title': '',
		'imageId': '70017482',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012606&docid=70017486&x=5336',
		'title': '',
		'imageId': '70017486',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012606&docid=70017491&x=5336',
		'title': '',
		'imageId': '70017491',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012606&docid=70017492&x=5336',
		'title': '',
		'imageId': '70017492',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012606&docid=70017488&x=5336',
		'title': '',
		'imageId': '70017488',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012606&docid=70017495&x=5336',
		'title': '',
		'imageId': '70017495',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012606';

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