var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3863732&docid=66507212&x=4434',
		'title': '',
		'imageId': '66507212',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3863732&docid=66507213&x=4434',
		'title': '',
		'imageId': '66507213',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3863732&docid=66507214&x=4434',
		'title': '',
		'imageId': '66507214',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3863732&docid=66507216&x=4434',
		'title': '',
		'imageId': '66507216',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3863732&docid=66507217&x=4434',
		'title': '',
		'imageId': '66507217',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3863732&docid=66507211&x=4434',
		'title': '',
		'imageId': '66507211',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3863732&docid=66507215&x=4434',
		'title': '',
		'imageId': '66507215',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3863732&docid=66762595&x=4434',
		'title': '',
		'imageId': '66762595',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3863732&docid=66762596&x=4434',
		'title': '',
		'imageId': '66762596',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3863732';

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