var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4004243&docid=69812425&x=1514',
		'title': '',
		'imageId': '69812425',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004243&docid=69812424&x=1514',
		'title': '',
		'imageId': '69812424',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004243&docid=69812419&x=1514',
		'title': '',
		'imageId': '69812419',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004243&docid=69812420&x=1514',
		'title': '',
		'imageId': '69812420',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004243&docid=69812426&x=1514',
		'title': '',
		'imageId': '69812426',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004243&docid=69812421&x=1514',
		'title': '',
		'imageId': '69812421',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004243&docid=69812417&x=1514',
		'title': '',
		'imageId': '69812417',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004243&docid=69812423&x=1514',
		'title': '',
		'imageId': '69812423',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004243&docid=69812422&x=1514',
		'title': '',
		'imageId': '69812422',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004243&docid=69812418&x=1514',
		'title': '',
		'imageId': '69812418',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004243&docid=69812452&x=1514',
		'title': '',
		'imageId': '69812452',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4004243';

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