var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=179587&docid=626858&x=2448',
		'title': '',
		'imageId': '626858',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=179587&docid=626859&x=2448',
		'title': '',
		'imageId': '626859',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=179587&docid=626860&x=2448',
		'title': '',
		'imageId': '626860',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=179587&docid=626861&x=2448',
		'title': '',
		'imageId': '626861',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=179587&docid=626862&x=2448',
		'title': '',
		'imageId': '626862',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=179587&docid=626863&x=2448',
		'title': '',
		'imageId': '626863',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=179587&docid=626864&x=2448',
		'title': '',
		'imageId': '626864',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=179587&docid=626865&x=2448',
		'title': '',
		'imageId': '626865',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=179587&docid=626866&x=2448',
		'title': '',
		'imageId': '626866',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #179587';

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