var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012382&docid=69782257&x=2548',
		'title': '',
		'imageId': '69782257',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012382&docid=69782260&x=2548',
		'title': '',
		'imageId': '69782260',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012382&docid=69782258&x=2548',
		'title': '',
		'imageId': '69782258',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012382&docid=69782256&x=2548',
		'title': '',
		'imageId': '69782256',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012382&docid=69782262&x=2548',
		'title': '',
		'imageId': '69782262',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012382&docid=69782261&x=2548',
		'title': '',
		'imageId': '69782261',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012382&docid=69782259&x=2548',
		'title': '',
		'imageId': '69782259',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012382&docid=69782234&x=2548',
		'title': '',
		'imageId': '69782234',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012382&docid=69782232&x=2548',
		'title': '',
		'imageId': '69782232',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012382&docid=69782233&x=2548',
		'title': '',
		'imageId': '69782233',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012382&docid=69782235&x=2548',
		'title': '',
		'imageId': '69782235',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012382';

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