var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=407507&docid=2027766&x=838',
		'title': '',
		'imageId': '2027766',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=407507&docid=2027763&x=838',
		'title': '',
		'imageId': '2027763',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=407507&docid=2027769&x=838',
		'title': '',
		'imageId': '2027769',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=407507&docid=2027772&x=838',
		'title': '',
		'imageId': '2027772',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=407507&docid=2027775&x=838',
		'title': '',
		'imageId': '2027775',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=407507&docid=2027779&x=838',
		'title': '',
		'imageId': '2027779',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=407507&docid=2027785&x=838',
		'title': '',
		'imageId': '2027785',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=407507&docid=2027790&x=838',
		'title': '',
		'imageId': '2027790',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=407507&docid=2027796&x=838',
		'title': '',
		'imageId': '2027796',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=407507&docid=2027858&x=838',
		'title': '',
		'imageId': '2027858',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=407507&docid=2027864&x=838',
		'title': '',
		'imageId': '2027864',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #407507';

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