var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=473523&docid=2590821&x=4326',
		'title': '',
		'imageId': '2590821',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=473523&docid=2590824&x=4326',
		'title': '',
		'imageId': '2590824',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=473523&docid=2590827&x=4326',
		'title': '',
		'imageId': '2590827',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=473523&docid=2590830&x=4326',
		'title': '',
		'imageId': '2590830',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=473523&docid=2590833&x=4326',
		'title': '',
		'imageId': '2590833',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=473523&docid=2590836&x=4326',
		'title': '',
		'imageId': '2590836',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=473523&docid=2590839&x=4326',
		'title': '',
		'imageId': '2590839',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=473523&docid=2590842&x=4326',
		'title': '',
		'imageId': '2590842',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=473523&docid=2590845&x=4326',
		'title': '',
		'imageId': '2590845',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=473523&docid=2590848&x=4326',
		'title': '',
		'imageId': '2590848',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #473523';

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