var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016838&docid=70147140&x=5350',
		'title': '',
		'imageId': '70147140',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016838&docid=70147141&x=5350',
		'title': '',
		'imageId': '70147141',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016838&docid=70147142&x=5350',
		'title': '',
		'imageId': '70147142',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016838&docid=70147143&x=5350',
		'title': '',
		'imageId': '70147143',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016838&docid=70147144&x=5350',
		'title': '',
		'imageId': '70147144',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016838&docid=70147157&x=5350',
		'title': '',
		'imageId': '70147157',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016838&docid=70147153&x=5350',
		'title': '',
		'imageId': '70147153',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016838&docid=70147159&x=5350',
		'title': '',
		'imageId': '70147159',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016838&docid=70147160&x=5350',
		'title': '',
		'imageId': '70147160',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016838&docid=70147139&x=5350',
		'title': '',
		'imageId': '70147139',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016838';

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