var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3923767&docid=67991226&x=2516',
		'title': '',
		'imageId': '67991226',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923767&docid=67991225&x=2516',
		'title': '',
		'imageId': '67991225',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923767&docid=67991229&x=2516',
		'title': '',
		'imageId': '67991229',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923767&docid=67991222&x=2516',
		'title': '',
		'imageId': '67991222',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923767&docid=67991227&x=2516',
		'title': '',
		'imageId': '67991227',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923767&docid=67991220&x=2516',
		'title': '',
		'imageId': '67991220',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923767&docid=67991221&x=2516',
		'title': '',
		'imageId': '67991221',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923767&docid=67991224&x=2516',
		'title': '',
		'imageId': '67991224',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923767&docid=67991228&x=2516',
		'title': '',
		'imageId': '67991228',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923767&docid=67991217&x=2516',
		'title': '',
		'imageId': '67991217',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923767&docid=67991223&x=2516',
		'title': '',
		'imageId': '67991223',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3923767';

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