var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=475570&docid=2596471&x=3244',
		'title': '',
		'imageId': '2596471',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475570&docid=2596474&x=3244',
		'title': '',
		'imageId': '2596474',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475570&docid=2596477&x=3244',
		'title': '',
		'imageId': '2596477',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475570&docid=2596480&x=3244',
		'title': '',
		'imageId': '2596480',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475570&docid=2596483&x=3244',
		'title': '',
		'imageId': '2596483',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475570&docid=2596486&x=3244',
		'title': '',
		'imageId': '2596486',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475570&docid=2596489&x=3244',
		'title': '',
		'imageId': '2596489',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475570&docid=2596492&x=3244',
		'title': '',
		'imageId': '2596492',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475570&docid=2596495&x=3244',
		'title': '',
		'imageId': '2596495',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475570&docid=2596498&x=3244',
		'title': '',
		'imageId': '2596498',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475570&docid=2596501&x=3244',
		'title': '',
		'imageId': '2596501',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #475570';

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