var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3933710&docid=68222777&x=5920',
		'title': '',
		'imageId': '68222777',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3933710&docid=68222778&x=5920',
		'title': '',
		'imageId': '68222778',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3933710&docid=68222779&x=5920',
		'title': '',
		'imageId': '68222779',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3933710&docid=68222780&x=5920',
		'title': '',
		'imageId': '68222780',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3933710&docid=68222781&x=5920',
		'title': '',
		'imageId': '68222781',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3933710&docid=68222782&x=5920',
		'title': '',
		'imageId': '68222782',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3933710&docid=68222783&x=5920',
		'title': '',
		'imageId': '68222783',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3933710&docid=68222784&x=5920',
		'title': '',
		'imageId': '68222784',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3933710&docid=68222785&x=5920',
		'title': '',
		'imageId': '68222785',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3933710&docid=68222786&x=5920',
		'title': '',
		'imageId': '68222786',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3933710&docid=68222787&x=5920',
		'title': '',
		'imageId': '68222787',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3933710';

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