var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3910481&docid=66678679&x=3029',
		'title': '',
		'imageId': '66678679',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3910481&docid=66678678&x=3029',
		'title': '',
		'imageId': '66678678',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3910481&docid=66678688&x=3029',
		'title': '',
		'imageId': '66678688',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3910481&docid=66678684&x=3029',
		'title': '',
		'imageId': '66678684',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3910481&docid=66678681&x=3029',
		'title': '',
		'imageId': '66678681',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3910481&docid=66678683&x=3029',
		'title': '',
		'imageId': '66678683',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3910481&docid=66678686&x=3029',
		'title': '',
		'imageId': '66678686',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3910481&docid=66678687&x=3029',
		'title': '',
		'imageId': '66678687',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3910481&docid=66678685&x=3029',
		'title': '',
		'imageId': '66678685',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3910481&docid=66678682&x=3029',
		'title': '',
		'imageId': '66678682',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3910481&docid=66678680&x=3029',
		'title': '',
		'imageId': '66678680',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3910481';

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