var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4001057&docid=69742213&x=2353',
		'title': '',
		'imageId': '69742213',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001057&docid=69742218&x=2353',
		'title': '',
		'imageId': '69742218',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001057&docid=69742214&x=2353',
		'title': '',
		'imageId': '69742214',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001057&docid=69742219&x=2353',
		'title': '',
		'imageId': '69742219',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001057&docid=69742217&x=2353',
		'title': '',
		'imageId': '69742217',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001057&docid=69742215&x=2353',
		'title': '',
		'imageId': '69742215',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001057&docid=69742211&x=2353',
		'title': '',
		'imageId': '69742211',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001057&docid=69742216&x=2353',
		'title': '',
		'imageId': '69742216',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001057&docid=69742212&x=2353',
		'title': '',
		'imageId': '69742212',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001057&docid=69742210&x=2353',
		'title': '',
		'imageId': '69742210',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4001057';

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