var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=397433&docid=2017868&x=2457',
		'title': '',
		'imageId': '2017868',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=397433&docid=2017871&x=2457',
		'title': '',
		'imageId': '2017871',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=397433&docid=2017874&x=2457',
		'title': '',
		'imageId': '2017874',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=397433&docid=2017877&x=2457',
		'title': '',
		'imageId': '2017877',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=397433&docid=2017880&x=2457',
		'title': '',
		'imageId': '2017880',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=397433&docid=2017885&x=2457',
		'title': '',
		'imageId': '2017885',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=397433&docid=2017888&x=2457',
		'title': '',
		'imageId': '2017888',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=397433&docid=2017894&x=2457',
		'title': '',
		'imageId': '2017894',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=397433&docid=2017897&x=2457',
		'title': '',
		'imageId': '2017897',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=397433&docid=2017900&x=2457',
		'title': '',
		'imageId': '2017900',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=397433&docid=2017865&x=2457',
		'title': '',
		'imageId': '2017865',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #397433';

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