var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=471707&docid=2569495&x=3237',
		'title': '',
		'imageId': '2569495',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471707&docid=2569474&x=3237',
		'title': '',
		'imageId': '2569474',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471707&docid=2569477&x=3237',
		'title': '',
		'imageId': '2569477',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471707&docid=2569480&x=3237',
		'title': '',
		'imageId': '2569480',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471707&docid=2569483&x=3237',
		'title': '',
		'imageId': '2569483',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471707&docid=2569489&x=3237',
		'title': '',
		'imageId': '2569489',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471707&docid=2569492&x=3237',
		'title': '',
		'imageId': '2569492',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471707&docid=2569498&x=3237',
		'title': '',
		'imageId': '2569498',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471707&docid=2569501&x=3237',
		'title': '',
		'imageId': '2569501',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471707&docid=2569486&x=3237',
		'title': '',
		'imageId': '2569486',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #471707';

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