var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4017358&docid=70166800&x=5339',
		'title': '',
		'imageId': '70166800',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017358&docid=70166807&x=5339',
		'title': '',
		'imageId': '70166807',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017358&docid=70166806&x=5339',
		'title': '',
		'imageId': '70166806',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017358&docid=70166804&x=5339',
		'title': '',
		'imageId': '70166804',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017358&docid=70166809&x=5339',
		'title': '',
		'imageId': '70166809',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017358&docid=70166802&x=5339',
		'title': '',
		'imageId': '70166802',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017358&docid=70166801&x=5339',
		'title': '',
		'imageId': '70166801',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017358&docid=70166810&x=5339',
		'title': '',
		'imageId': '70166810',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017358&docid=70166805&x=5339',
		'title': '',
		'imageId': '70166805',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017358&docid=70166808&x=5339',
		'title': '',
		'imageId': '70166808',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017358&docid=70166803&x=5339',
		'title': '',
		'imageId': '70166803',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4017358';

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