var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016660&docid=70141221&x=5318',
		'title': '',
		'imageId': '70141221',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016660&docid=70141212&x=5318',
		'title': '',
		'imageId': '70141212',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016660&docid=70141213&x=5318',
		'title': '',
		'imageId': '70141213',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016660&docid=70141214&x=5318',
		'title': '',
		'imageId': '70141214',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016660&docid=70141215&x=5318',
		'title': '',
		'imageId': '70141215',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016660&docid=70141216&x=5318',
		'title': '',
		'imageId': '70141216',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016660&docid=70141217&x=5318',
		'title': '',
		'imageId': '70141217',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016660&docid=70141218&x=5318',
		'title': '',
		'imageId': '70141218',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016660&docid=70141219&x=5318',
		'title': '',
		'imageId': '70141219',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016660&docid=70141220&x=5318',
		'title': '',
		'imageId': '70141220',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016660';

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