var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016802&docid=70145593&x=5823',
		'title': '',
		'imageId': '70145593',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016802&docid=70145594&x=5823',
		'title': '',
		'imageId': '70145594',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016802&docid=70145595&x=5823',
		'title': '',
		'imageId': '70145595',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016802&docid=70145596&x=5823',
		'title': '',
		'imageId': '70145596',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016802&docid=70145603&x=5823',
		'title': '',
		'imageId': '70145603',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016802&docid=70145605&x=5823',
		'title': '',
		'imageId': '70145605',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016802&docid=70145611&x=5823',
		'title': '',
		'imageId': '70145611',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016802&docid=70145612&x=5823',
		'title': '',
		'imageId': '70145612',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016802&docid=70145592&x=5823',
		'title': '',
		'imageId': '70145592',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016802&docid=70145591&x=5823',
		'title': '',
		'imageId': '70145591',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016802';

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