var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4009304&docid=69943341&x=2822',
		'title': '',
		'imageId': '69943341',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009304&docid=69943351&x=2822',
		'title': '',
		'imageId': '69943351',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009304&docid=69943342&x=2822',
		'title': '',
		'imageId': '69943342',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009304&docid=69943348&x=2822',
		'title': '',
		'imageId': '69943348',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009304&docid=69943343&x=2822',
		'title': '',
		'imageId': '69943343',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009304&docid=69943344&x=2822',
		'title': '',
		'imageId': '69943344',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009304&docid=69943347&x=2822',
		'title': '',
		'imageId': '69943347',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009304&docid=69943345&x=2822',
		'title': '',
		'imageId': '69943345',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009304&docid=69943350&x=2822',
		'title': '',
		'imageId': '69943350',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009304&docid=69943346&x=2822',
		'title': '',
		'imageId': '69943346',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009304&docid=69943349&x=2822',
		'title': '',
		'imageId': '69943349',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4009304';

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