var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3923534&docid=67987526&x=2513',
		'title': '',
		'imageId': '67987526',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923534&docid=67987530&x=2513',
		'title': '',
		'imageId': '67987530',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923534&docid=67987528&x=2513',
		'title': '',
		'imageId': '67987528',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923534&docid=67987521&x=2513',
		'title': '',
		'imageId': '67987521',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923534&docid=67987529&x=2513',
		'title': '',
		'imageId': '67987529',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923534&docid=67987527&x=2513',
		'title': '',
		'imageId': '67987527',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923534&docid=67987525&x=2513',
		'title': '',
		'imageId': '67987525',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923534&docid=67987531&x=2513',
		'title': '',
		'imageId': '67987531',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923534&docid=67987524&x=2513',
		'title': '',
		'imageId': '67987524',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923534&docid=67987523&x=2513',
		'title': '',
		'imageId': '67987523',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3923534&docid=67987522&x=2513',
		'title': '',
		'imageId': '67987522',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3923534';

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