var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4007331&docid=69886228&x=5245',
		'title': '',
		'imageId': '69886228',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007331&docid=69886319&x=5245',
		'title': '',
		'imageId': '69886319',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007331&docid=69886233&x=5245',
		'title': '',
		'imageId': '69886233',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007331&docid=69886229&x=5245',
		'title': '',
		'imageId': '69886229',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007331&docid=69886227&x=5245',
		'title': '',
		'imageId': '69886227',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007331&docid=69886230&x=5245',
		'title': '',
		'imageId': '69886230',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007331&docid=69886234&x=5245',
		'title': '',
		'imageId': '69886234',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007331&docid=69886231&x=5245',
		'title': '',
		'imageId': '69886231',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007331&docid=69886232&x=5245',
		'title': '',
		'imageId': '69886232',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007331&docid=69886236&x=5245',
		'title': '',
		'imageId': '69886236',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007331&docid=69886235&x=5245',
		'title': '',
		'imageId': '69886235',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4007331';

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