var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016830&docid=70146814&x=589',
		'title': '',
		'imageId': '70146814',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016830&docid=70146815&x=589',
		'title': '',
		'imageId': '70146815',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016830&docid=70146816&x=589',
		'title': '',
		'imageId': '70146816',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016830&docid=70146817&x=589',
		'title': '',
		'imageId': '70146817',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016830&docid=70146828&x=589',
		'title': '',
		'imageId': '70146828',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016830&docid=70146831&x=589',
		'title': '',
		'imageId': '70146831',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016830&docid=70146832&x=589',
		'title': '',
		'imageId': '70146832',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016830&docid=70146833&x=589',
		'title': '',
		'imageId': '70146833',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016830&docid=70146813&x=589',
		'title': '',
		'imageId': '70146813',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016830&docid=70146812&x=589',
		'title': '',
		'imageId': '70146812',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016830';

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