var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4018754&docid=70198371&x=4013',
		'title': '',
		'imageId': '70198371',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018754&docid=70198372&x=4013',
		'title': '',
		'imageId': '70198372',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018754&docid=70198378&x=4013',
		'title': '',
		'imageId': '70198378',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018754&docid=70198370&x=4013',
		'title': '',
		'imageId': '70198370',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018754&docid=70198369&x=4013',
		'title': '',
		'imageId': '70198369',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018754&docid=70198374&x=4013',
		'title': '',
		'imageId': '70198374',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018754&docid=70198379&x=4013',
		'title': '',
		'imageId': '70198379',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018754&docid=70198373&x=4013',
		'title': '',
		'imageId': '70198373',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018754&docid=70198375&x=4013',
		'title': '',
		'imageId': '70198375',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018754&docid=70198377&x=4013',
		'title': '',
		'imageId': '70198377',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018754&docid=70198376&x=4013',
		'title': '',
		'imageId': '70198376',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4018754';

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