var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=464063&docid=2510958&x=4216',
		'title': '',
		'imageId': '2510958',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=464063&docid=2510961&x=4216',
		'title': '',
		'imageId': '2510961',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=464063&docid=2510964&x=4216',
		'title': '',
		'imageId': '2510964',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=464063&docid=2510967&x=4216',
		'title': '',
		'imageId': '2510967',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=464063&docid=2510970&x=4216',
		'title': '',
		'imageId': '2510970',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=464063&docid=2510973&x=4216',
		'title': '',
		'imageId': '2510973',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=464063&docid=2510976&x=4216',
		'title': '',
		'imageId': '2510976',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=464063&docid=2510979&x=4216',
		'title': '',
		'imageId': '2510979',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=464063&docid=2510982&x=4216',
		'title': '',
		'imageId': '2510982',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=464063&docid=2510985&x=4216',
		'title': '',
		'imageId': '2510985',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #464063';

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