var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3880378&docid=66887562&x=5542',
		'title': '',
		'imageId': '66887562',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880378&docid=66887558&x=5542',
		'title': '',
		'imageId': '66887558',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880378&docid=66887559&x=5542',
		'title': '',
		'imageId': '66887559',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880378&docid=66887560&x=5542',
		'title': '',
		'imageId': '66887560',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880378&docid=66887561&x=5542',
		'title': '',
		'imageId': '66887561',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880378&docid=66887556&x=5542',
		'title': '',
		'imageId': '66887556',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880378&docid=66887557&x=5542',
		'title': '',
		'imageId': '66887557',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880378&docid=66887564&x=5542',
		'title': '',
		'imageId': '66887564',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880378&docid=66887563&x=5542',
		'title': '',
		'imageId': '66887563',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880378&docid=66887565&x=5542',
		'title': '',
		'imageId': '66887565',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3880378';

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