var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4009364&docid=69945030&x=5220',
		'title': '',
		'imageId': '69945030',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009364&docid=69945090&x=5220',
		'title': '',
		'imageId': '69945090',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009364&docid=69945100&x=5220',
		'title': '',
		'imageId': '69945100',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009364&docid=69945128&x=5220',
		'title': '',
		'imageId': '69945128',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009364&docid=69945129&x=5220',
		'title': '',
		'imageId': '69945129',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009364&docid=69945132&x=5220',
		'title': '',
		'imageId': '69945132',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009364&docid=69945135&x=5220',
		'title': '',
		'imageId': '69945135',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009364&docid=69945140&x=5220',
		'title': '',
		'imageId': '69945140',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009364&docid=69945143&x=5220',
		'title': '',
		'imageId': '69945143',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009364&docid=69945148&x=5220',
		'title': '',
		'imageId': '69945148',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009364&docid=69945149&x=5220',
		'title': '',
		'imageId': '69945149',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4009364';

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