var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=475955&docid=2496164&x=1938',
		'title': '',
		'imageId': '2496164',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475955&docid=2546260&x=1938',
		'title': '',
		'imageId': '2546260',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475955&docid=2546263&x=1938',
		'title': '',
		'imageId': '2546263',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475955&docid=2546266&x=1938',
		'title': '',
		'imageId': '2546266',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475955&docid=2546269&x=1938',
		'title': '',
		'imageId': '2546269',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475955&docid=2546273&x=1938',
		'title': '',
		'imageId': '2546273',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475955&docid=2546284&x=1938',
		'title': '',
		'imageId': '2546284',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475955&docid=2546296&x=1938',
		'title': '',
		'imageId': '2546296',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475955&docid=2546299&x=1938',
		'title': '',
		'imageId': '2546299',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #475955';

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