var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4051517&docid=71123152&x=455',
		'title': '',
		'imageId': '71123152',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4051517&docid=71123149&x=455',
		'title': '',
		'imageId': '71123149',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4051517&docid=71123151&x=455',
		'title': '',
		'imageId': '71123151',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4051517&docid=71123154&x=455',
		'title': '',
		'imageId': '71123154',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4051517&docid=71123150&x=455',
		'title': '',
		'imageId': '71123150',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4051517&docid=71123147&x=455',
		'title': '',
		'imageId': '71123147',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4051517&docid=71123153&x=455',
		'title': '',
		'imageId': '71123153',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4051517&docid=71123148&x=455',
		'title': '',
		'imageId': '71123148',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4051517&docid=71123146&x=455',
		'title': '',
		'imageId': '71123146',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4051517';

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