var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4013522&docid=70046090&x=579',
		'title': '',
		'imageId': '70046090',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013522&docid=70046086&x=579',
		'title': '',
		'imageId': '70046086',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013522&docid=70046087&x=579',
		'title': '',
		'imageId': '70046087',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013522&docid=70046089&x=579',
		'title': '',
		'imageId': '70046089',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013522&docid=70046092&x=579',
		'title': '',
		'imageId': '70046092',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013522&docid=70046093&x=579',
		'title': '',
		'imageId': '70046093',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013522&docid=70046091&x=579',
		'title': '',
		'imageId': '70046091',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013522&docid=70046088&x=579',
		'title': '',
		'imageId': '70046088',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013522&docid=70046085&x=579',
		'title': '',
		'imageId': '70046085',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013522&docid=70046084&x=579',
		'title': '',
		'imageId': '70046084',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013522&docid=70046083&x=579',
		'title': '',
		'imageId': '70046083',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4013522';

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