var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016872&docid=70149323&x=1650',
		'title': '',
		'imageId': '70149323',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016872&docid=70149336&x=1650',
		'title': '',
		'imageId': '70149336',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016872&docid=70149337&x=1650',
		'title': '',
		'imageId': '70149337',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016872&docid=70149321&x=1650',
		'title': '',
		'imageId': '70149321',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016872&docid=70149328&x=1650',
		'title': '',
		'imageId': '70149328',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016872&docid=70149330&x=1650',
		'title': '',
		'imageId': '70149330',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016872&docid=70149326&x=1650',
		'title': '',
		'imageId': '70149326',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016872&docid=70149322&x=1650',
		'title': '',
		'imageId': '70149322',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016872&docid=70149319&x=1650',
		'title': '',
		'imageId': '70149319',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016872&docid=70149338&x=1650',
		'title': '',
		'imageId': '70149338',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016872&docid=70149325&x=1650',
		'title': '',
		'imageId': '70149325',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016872';

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