var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012487&docid=70015823&x=3741',
		'title': '',
		'imageId': '70015823',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012487&docid=70015816&x=3741',
		'title': '',
		'imageId': '70015816',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012487&docid=70015825&x=3741',
		'title': '',
		'imageId': '70015825',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012487&docid=70015820&x=3741',
		'title': '',
		'imageId': '70015820',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012487&docid=70015815&x=3741',
		'title': '',
		'imageId': '70015815',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012487&docid=70015819&x=3741',
		'title': '',
		'imageId': '70015819',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012487&docid=70015822&x=3741',
		'title': '',
		'imageId': '70015822',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012487&docid=70015817&x=3741',
		'title': '',
		'imageId': '70015817',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012487&docid=70015821&x=3741',
		'title': '',
		'imageId': '70015821',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012487&docid=70015824&x=3741',
		'title': '',
		'imageId': '70015824',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012487&docid=70015818&x=3741',
		'title': '',
		'imageId': '70015818',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012487';

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