var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=477883&docid=2617927&x=733',
		'title': '',
		'imageId': '2617927',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477883&docid=2617930&x=733',
		'title': '',
		'imageId': '2617930',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477883&docid=2617933&x=733',
		'title': '',
		'imageId': '2617933',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477883&docid=2617936&x=733',
		'title': '',
		'imageId': '2617936',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477883&docid=2617939&x=733',
		'title': '',
		'imageId': '2617939',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477883&docid=2617942&x=733',
		'title': '',
		'imageId': '2617942',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477883&docid=2617945&x=733',
		'title': '',
		'imageId': '2617945',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477883&docid=2617948&x=733',
		'title': '',
		'imageId': '2617948',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477883&docid=2617951&x=733',
		'title': '',
		'imageId': '2617951',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=477883&docid=2617954&x=733',
		'title': '',
		'imageId': '2617954',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #477883';

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