var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4015740&docid=70101852&x=4718',
		'title': '',
		'imageId': '70101852',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015740&docid=70101853&x=4718',
		'title': '',
		'imageId': '70101853',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015740&docid=70101856&x=4718',
		'title': '',
		'imageId': '70101856',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015740&docid=70101857&x=4718',
		'title': '',
		'imageId': '70101857',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015740&docid=70101867&x=4718',
		'title': '',
		'imageId': '70101867',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015740&docid=70101872&x=4718',
		'title': '',
		'imageId': '70101872',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015740&docid=70101855&x=4718',
		'title': '',
		'imageId': '70101855',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015740&docid=70101874&x=4718',
		'title': '',
		'imageId': '70101874',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015740&docid=70101873&x=4718',
		'title': '',
		'imageId': '70101873',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015740&docid=70101851&x=4718',
		'title': '',
		'imageId': '70101851',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015740&docid=70101876&x=4718',
		'title': '',
		'imageId': '70101876',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4015740';

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