var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4002041&docid=69764740&x=4937',
		'title': '',
		'imageId': '69764740',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4002041&docid=69764732&x=4937',
		'title': '',
		'imageId': '69764732',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4002041&docid=69764736&x=4937',
		'title': '',
		'imageId': '69764736',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4002041&docid=69764735&x=4937',
		'title': '',
		'imageId': '69764735',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4002041&docid=69764739&x=4937',
		'title': '',
		'imageId': '69764739',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4002041&docid=69764734&x=4937',
		'title': '',
		'imageId': '69764734',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4002041&docid=69764731&x=4937',
		'title': '',
		'imageId': '69764731',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4002041&docid=69764730&x=4937',
		'title': '',
		'imageId': '69764730',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4002041&docid=69764733&x=4937',
		'title': '',
		'imageId': '69764733',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4002041&docid=69764737&x=4937',
		'title': '',
		'imageId': '69764737',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4002041&docid=69764738&x=4937',
		'title': '',
		'imageId': '69764738',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4002041';

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