var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016229&docid=70122879&x=2826',
		'title': '',
		'imageId': '70122879',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016229&docid=70122881&x=2826',
		'title': '',
		'imageId': '70122881',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016229&docid=70122882&x=2826',
		'title': '',
		'imageId': '70122882',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016229&docid=70122884&x=2826',
		'title': '',
		'imageId': '70122884',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016229&docid=70122883&x=2826',
		'title': '',
		'imageId': '70122883',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016229&docid=70122888&x=2826',
		'title': '',
		'imageId': '70122888',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016229&docid=70122885&x=2826',
		'title': '',
		'imageId': '70122885',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016229&docid=70122880&x=2826',
		'title': '',
		'imageId': '70122880',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016229&docid=70122886&x=2826',
		'title': '',
		'imageId': '70122886',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016229&docid=70122887&x=2826',
		'title': '',
		'imageId': '70122887',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016229';

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