var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016091&docid=70116467&x=241',
		'title': '',
		'imageId': '70116467',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016091&docid=70116469&x=241',
		'title': '',
		'imageId': '70116469',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016091&docid=70116464&x=241',
		'title': '',
		'imageId': '70116464',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016091&docid=70116465&x=241',
		'title': '',
		'imageId': '70116465',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016091&docid=70116463&x=241',
		'title': '',
		'imageId': '70116463',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016091&docid=70116468&x=241',
		'title': '',
		'imageId': '70116468',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016091&docid=70116466&x=241',
		'title': '',
		'imageId': '70116466',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016091&docid=70116462&x=241',
		'title': '',
		'imageId': '70116462',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016091&docid=70116461&x=241',
		'title': '',
		'imageId': '70116461',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016091';

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