var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=397434&docid=2018075&x=2543',
		'title': '',
		'imageId': '2018075',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=397434&docid=2018081&x=2543',
		'title': '',
		'imageId': '2018081',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=397434&docid=2018087&x=2543',
		'title': '',
		'imageId': '2018087',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=397434&docid=2018090&x=2543',
		'title': '',
		'imageId': '2018090',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=397434&docid=2018116&x=2543',
		'title': '',
		'imageId': '2018116',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=397434&docid=2018101&x=2543',
		'title': '',
		'imageId': '2018101',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=397434&docid=2018131&x=2543',
		'title': '',
		'imageId': '2018131',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=397434&docid=2018107&x=2543',
		'title': '',
		'imageId': '2018107',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=397434&docid=2018113&x=2543',
		'title': '',
		'imageId': '2018113',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=397434&docid=2018121&x=2543',
		'title': '',
		'imageId': '2018121',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #397434';

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