var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4017389&docid=70167297&x=2643',
		'title': '',
		'imageId': '70167297',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017389&docid=70167293&x=2643',
		'title': '',
		'imageId': '70167293',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017389&docid=70167298&x=2643',
		'title': '',
		'imageId': '70167298',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017389&docid=70167290&x=2643',
		'title': '',
		'imageId': '70167290',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017389&docid=70167289&x=2643',
		'title': '',
		'imageId': '70167289',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017389&docid=70167291&x=2643',
		'title': '',
		'imageId': '70167291',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017389&docid=70167294&x=2643',
		'title': '',
		'imageId': '70167294',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017389&docid=70167299&x=2643',
		'title': '',
		'imageId': '70167299',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017389&docid=70167292&x=2643',
		'title': '',
		'imageId': '70167292',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017389&docid=70167296&x=2643',
		'title': '',
		'imageId': '70167296',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017389&docid=70167295&x=2643',
		'title': '',
		'imageId': '70167295',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4017389';

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