var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4017543&docid=70174201&x=571',
		'title': '',
		'imageId': '70174201',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017543&docid=70174205&x=571',
		'title': '',
		'imageId': '70174205',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017543&docid=70174206&x=571',
		'title': '',
		'imageId': '70174206',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017543&docid=70174207&x=571',
		'title': '',
		'imageId': '70174207',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017543&docid=70174204&x=571',
		'title': '',
		'imageId': '70174204',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017543&docid=70174202&x=571',
		'title': '',
		'imageId': '70174202',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017543&docid=70174203&x=571',
		'title': '',
		'imageId': '70174203',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017543&docid=70174200&x=571',
		'title': '',
		'imageId': '70174200',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017543&docid=70174199&x=571',
		'title': '',
		'imageId': '70174199',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017543&docid=70174208&x=571',
		'title': '',
		'imageId': '70174208',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017543&docid=70174209&x=571',
		'title': '',
		'imageId': '70174209',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4017543';

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