var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3987072&docid=64642560&x=4621',
		'title': '',
		'imageId': '64642560',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3987072&docid=64642562&x=4621',
		'title': '',
		'imageId': '64642562',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3987072&docid=64642559&x=4621',
		'title': '',
		'imageId': '64642559',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3987072&docid=64642558&x=4621',
		'title': '',
		'imageId': '64642558',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3987072&docid=64642579&x=4621',
		'title': '',
		'imageId': '64642579',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3987072&docid=64642563&x=4621',
		'title': '',
		'imageId': '64642563',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3987072&docid=64642576&x=4621',
		'title': '',
		'imageId': '64642576',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3987072&docid=64642577&x=4621',
		'title': '',
		'imageId': '64642577',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3987072&docid=64642575&x=4621',
		'title': '',
		'imageId': '64642575',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3987072&docid=64642561&x=4621',
		'title': '',
		'imageId': '64642561',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3987072&docid=69767710&x=4621',
		'title': '',
		'imageId': '69767710',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3987072';

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