var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016912&docid=70151492&x=4642',
		'title': '',
		'imageId': '70151492',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016912&docid=70151501&x=4642',
		'title': '',
		'imageId': '70151501',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016912&docid=70151504&x=4642',
		'title': '',
		'imageId': '70151504',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016912&docid=70151503&x=4642',
		'title': '',
		'imageId': '70151503',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016912&docid=70151498&x=4642',
		'title': '',
		'imageId': '70151498',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016912&docid=70151495&x=4642',
		'title': '',
		'imageId': '70151495',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016912&docid=70151500&x=4642',
		'title': '',
		'imageId': '70151500',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016912&docid=70151502&x=4642',
		'title': '',
		'imageId': '70151502',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016912&docid=70151496&x=4642',
		'title': '',
		'imageId': '70151496',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016912&docid=70151499&x=4642',
		'title': '',
		'imageId': '70151499',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016912&docid=70151497&x=4642',
		'title': '',
		'imageId': '70151497',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016912';

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