var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3970374&docid=69529482&x=2858',
		'title': '',
		'imageId': '69529482',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3970374&docid=69529486&x=2858',
		'title': '',
		'imageId': '69529486',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3970374&docid=69529488&x=2858',
		'title': '',
		'imageId': '69529488',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3970374&docid=69529490&x=2858',
		'title': '',
		'imageId': '69529490',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3970374&docid=69529491&x=2858',
		'title': '',
		'imageId': '69529491',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3970374&docid=69529487&x=2858',
		'title': '',
		'imageId': '69529487',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3970374&docid=69529485&x=2858',
		'title': '',
		'imageId': '69529485',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3970374&docid=69529489&x=2858',
		'title': '',
		'imageId': '69529489',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3970374&docid=69529484&x=2858',
		'title': '',
		'imageId': '69529484',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3970374&docid=69529483&x=2858',
		'title': '',
		'imageId': '69529483',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3970374';

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