var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3942456&docid=66859521&x=3936',
		'title': '',
		'imageId': '66859521',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3942456&docid=66859522&x=3936',
		'title': '',
		'imageId': '66859522',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3942456&docid=66859523&x=3936',
		'title': '',
		'imageId': '66859523',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3942456&docid=66859525&x=3936',
		'title': '',
		'imageId': '66859525',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3942456&docid=66859527&x=3936',
		'title': '',
		'imageId': '66859527',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3942456&docid=66859528&x=3936',
		'title': '',
		'imageId': '66859528',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3942456&docid=66859529&x=3936',
		'title': '',
		'imageId': '66859529',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3942456&docid=66859530&x=3936',
		'title': '',
		'imageId': '66859530',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3942456&docid=66859520&x=3936',
		'title': '',
		'imageId': '66859520',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3942456';

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