var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=477050&docid=2609850&x=567',
		'title': '',
		'imageId': '2609850',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477050&docid=2609853&x=567',
		'title': '',
		'imageId': '2609853',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477050&docid=2609856&x=567',
		'title': '',
		'imageId': '2609856',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477050&docid=2609859&x=567',
		'title': '',
		'imageId': '2609859',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477050&docid=2609862&x=567',
		'title': '',
		'imageId': '2609862',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477050&docid=2609865&x=567',
		'title': '',
		'imageId': '2609865',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477050&docid=2609870&x=567',
		'title': '',
		'imageId': '2609870',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477050&docid=2609873&x=567',
		'title': '',
		'imageId': '2609873',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #477050';

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