var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3905951&docid=66813138&x=349',
		'title': '',
		'imageId': '66813138',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3905951&docid=66817105&x=349',
		'title': '',
		'imageId': '66817105',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3905951&docid=66817109&x=349',
		'title': '',
		'imageId': '66817109',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3905951&docid=66817103&x=349',
		'title': '',
		'imageId': '66817103',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3905951&docid=66817108&x=349',
		'title': '',
		'imageId': '66817108',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3905951&docid=66813147&x=349',
		'title': '',
		'imageId': '66813147',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3905951&docid=66813145&x=349',
		'title': '',
		'imageId': '66813145',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3905951&docid=66813146&x=349',
		'title': '',
		'imageId': '66813146',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3905951&docid=66817107&x=349',
		'title': '',
		'imageId': '66817107',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3905951';

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