var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4013228&docid=70033641&x=5820',
		'title': '',
		'imageId': '70033641',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013228&docid=70033630&x=5820',
		'title': '',
		'imageId': '70033630',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013228&docid=70033632&x=5820',
		'title': '',
		'imageId': '70033632',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013228&docid=70033646&x=5820',
		'title': '',
		'imageId': '70033646',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013228&docid=70033635&x=5820',
		'title': '',
		'imageId': '70033635',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013228&docid=70033627&x=5820',
		'title': '',
		'imageId': '70033627',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013228&docid=70033631&x=5820',
		'title': '',
		'imageId': '70033631',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013228&docid=70033629&x=5820',
		'title': '',
		'imageId': '70033629',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013228&docid=70033628&x=5820',
		'title': '',
		'imageId': '70033628',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013228&docid=70033642&x=5820',
		'title': '',
		'imageId': '70033642',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013228&docid=70033647&x=5820',
		'title': '',
		'imageId': '70033647',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4013228';

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