var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016745&docid=70145033&x=5023',
		'title': '',
		'imageId': '70145033',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016745&docid=70145037&x=5023',
		'title': '',
		'imageId': '70145037',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016745&docid=70145031&x=5023',
		'title': '',
		'imageId': '70145031',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016745&docid=70145030&x=5023',
		'title': '',
		'imageId': '70145030',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016745&docid=70145034&x=5023',
		'title': '',
		'imageId': '70145034',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016745&docid=70145035&x=5023',
		'title': '',
		'imageId': '70145035',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016745&docid=70145032&x=5023',
		'title': '',
		'imageId': '70145032',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016745&docid=70145036&x=5023',
		'title': '',
		'imageId': '70145036',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016745';

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