var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4020995&docid=70253223&x=5350',
		'title': '',
		'imageId': '70253223',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020995&docid=70253218&x=5350',
		'title': '',
		'imageId': '70253218',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020995&docid=70253219&x=5350',
		'title': '',
		'imageId': '70253219',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020995&docid=70253213&x=5350',
		'title': '',
		'imageId': '70253213',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020995&docid=70253216&x=5350',
		'title': '',
		'imageId': '70253216',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020995&docid=70253215&x=5350',
		'title': '',
		'imageId': '70253215',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020995&docid=70253214&x=5350',
		'title': '',
		'imageId': '70253214',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020995&docid=70253224&x=5350',
		'title': '',
		'imageId': '70253224',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020995&docid=70253221&x=5350',
		'title': '',
		'imageId': '70253221',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020995&docid=70253222&x=5350',
		'title': '',
		'imageId': '70253222',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020995&docid=70253217&x=5350',
		'title': '',
		'imageId': '70253217',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4020995';

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