var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=475569&docid=2532249&x=339',
		'title': '',
		'imageId': '2532249',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475569&docid=2532262&x=339',
		'title': '',
		'imageId': '2532262',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475569&docid=2532276&x=339',
		'title': '',
		'imageId': '2532276',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475569&docid=2532287&x=339',
		'title': '',
		'imageId': '2532287',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475569&docid=2532290&x=339',
		'title': '',
		'imageId': '2532290',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475569&docid=2532295&x=339',
		'title': '',
		'imageId': '2532295',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475569&docid=2532299&x=339',
		'title': '',
		'imageId': '2532299',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475569&docid=2532302&x=339',
		'title': '',
		'imageId': '2532302',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475569&docid=2532307&x=339',
		'title': '',
		'imageId': '2532307',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475569&docid=2532311&x=339',
		'title': '',
		'imageId': '2532311',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475569&docid=2532316&x=339',
		'title': '',
		'imageId': '2532316',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #475569';

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