var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4017228&docid=70162809&x=2158',
		'title': '',
		'imageId': '70162809',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017228&docid=70162841&x=2158',
		'title': '',
		'imageId': '70162841',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017228&docid=70162709&x=2158',
		'title': '',
		'imageId': '70162709',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017228&docid=70162806&x=2158',
		'title': '',
		'imageId': '70162806',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017228&docid=70162815&x=2158',
		'title': '',
		'imageId': '70162815',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017228&docid=70162823&x=2158',
		'title': '',
		'imageId': '70162823',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017228&docid=70162818&x=2158',
		'title': '',
		'imageId': '70162818',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017228&docid=70162812&x=2158',
		'title': '',
		'imageId': '70162812',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017228&docid=70165040&x=2158',
		'title': '',
		'imageId': '70165040',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017228&docid=70165043&x=2158',
		'title': '',
		'imageId': '70165043',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4017228';

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