var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3997987&docid=69658537&x=4519',
		'title': '',
		'imageId': '69658537',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3997987&docid=69658538&x=4519',
		'title': '',
		'imageId': '69658538',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3997987&docid=69658539&x=4519',
		'title': '',
		'imageId': '69658539',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3997987&docid=69658540&x=4519',
		'title': '',
		'imageId': '69658540',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3997987&docid=69658541&x=4519',
		'title': '',
		'imageId': '69658541',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3997987&docid=69658542&x=4519',
		'title': '',
		'imageId': '69658542',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3997987&docid=69658543&x=4519',
		'title': '',
		'imageId': '69658543',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3997987&docid=69658544&x=4519',
		'title': '',
		'imageId': '69658544',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3997987&docid=69658545&x=4519',
		'title': '',
		'imageId': '69658545',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3997987&docid=69658546&x=4519',
		'title': '',
		'imageId': '69658546',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3997987&docid=69658547&x=4519',
		'title': '',
		'imageId': '69658547',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3997987';

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