var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=471584&docid=2568594&x=5844',
		'title': '',
		'imageId': '2568594',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471584&docid=2568597&x=5844',
		'title': '',
		'imageId': '2568597',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471584&docid=2568600&x=5844',
		'title': '',
		'imageId': '2568600',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471584&docid=2568603&x=5844',
		'title': '',
		'imageId': '2568603',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471584&docid=2568608&x=5844',
		'title': '',
		'imageId': '2568608',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471584&docid=2568613&x=5844',
		'title': '',
		'imageId': '2568613',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471584&docid=2568616&x=5844',
		'title': '',
		'imageId': '2568616',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471584&docid=2568622&x=5844',
		'title': '',
		'imageId': '2568622',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471584&docid=2568628&x=5844',
		'title': '',
		'imageId': '2568628',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471584&docid=2568631&x=5844',
		'title': '',
		'imageId': '2568631',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #471584';

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