var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4005041&docid=69838761&x=4555',
		'title': '',
		'imageId': '69838761',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005041&docid=69838764&x=4555',
		'title': '',
		'imageId': '69838764',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005041&docid=69838767&x=4555',
		'title': '',
		'imageId': '69838767',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005041&docid=69838773&x=4555',
		'title': '',
		'imageId': '69838773',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005041&docid=69838791&x=4555',
		'title': '',
		'imageId': '69838791',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005041&docid=69838797&x=4555',
		'title': '',
		'imageId': '69838797',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005041&docid=69838800&x=4555',
		'title': '',
		'imageId': '69838800',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005041&docid=69838803&x=4555',
		'title': '',
		'imageId': '69838803',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005041&docid=69838819&x=4555',
		'title': '',
		'imageId': '69838819',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005041&docid=69838992&x=4555',
		'title': '',
		'imageId': '69838992',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005041&docid=69839003&x=4555',
		'title': '',
		'imageId': '69839003',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4005041';

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