var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012599&docid=70017087&x=4554',
		'title': '',
		'imageId': '70017087',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012599&docid=70017118&x=4554',
		'title': '',
		'imageId': '70017118',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012599&docid=70017117&x=4554',
		'title': '',
		'imageId': '70017117',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012599&docid=70017121&x=4554',
		'title': '',
		'imageId': '70017121',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012599&docid=70017086&x=4554',
		'title': '',
		'imageId': '70017086',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012599&docid=70017088&x=4554',
		'title': '',
		'imageId': '70017088',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012599&docid=70017089&x=4554',
		'title': '',
		'imageId': '70017089',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012599&docid=70017108&x=4554',
		'title': '',
		'imageId': '70017108',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012599&docid=70017109&x=4554',
		'title': '',
		'imageId': '70017109',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012599&docid=70017084&x=4554',
		'title': '',
		'imageId': '70017084',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012599&docid=70017085&x=4554',
		'title': '',
		'imageId': '70017085',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012599';

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