var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016832&docid=70146873&x=5852',
		'title': '',
		'imageId': '70146873',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016832&docid=70146872&x=5852',
		'title': '',
		'imageId': '70146872',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016832&docid=70146871&x=5852',
		'title': '',
		'imageId': '70146871',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016832&docid=70146874&x=5852',
		'title': '',
		'imageId': '70146874',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016832&docid=70146875&x=5852',
		'title': '',
		'imageId': '70146875',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016832&docid=70146888&x=5852',
		'title': '',
		'imageId': '70146888',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016832&docid=70146889&x=5852',
		'title': '',
		'imageId': '70146889',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016832&docid=70146891&x=5852',
		'title': '',
		'imageId': '70146891',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016832&docid=70146890&x=5852',
		'title': '',
		'imageId': '70146890',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016832&docid=70146870&x=5852',
		'title': '',
		'imageId': '70146870',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016832';

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