var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4018089&docid=70181983&x=048',
		'title': '',
		'imageId': '70181983',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018089&docid=70181985&x=048',
		'title': '',
		'imageId': '70181985',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018089&docid=70181984&x=048',
		'title': '',
		'imageId': '70181984',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018089&docid=70181986&x=048',
		'title': '',
		'imageId': '70181986',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018089&docid=70181988&x=048',
		'title': '',
		'imageId': '70181988',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018089&docid=70181987&x=048',
		'title': '',
		'imageId': '70181987',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018089&docid=70181982&x=048',
		'title': '',
		'imageId': '70181982',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018089&docid=70181989&x=048',
		'title': '',
		'imageId': '70181989',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018089&docid=70181990&x=048',
		'title': '',
		'imageId': '70181990',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4018089';

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