var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3838094&docid=65857263&x=2452',
		'title': '',
		'imageId': '65857263',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3838094&docid=65857264&x=2452',
		'title': '',
		'imageId': '65857264',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3838094&docid=65857265&x=2452',
		'title': '',
		'imageId': '65857265',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3838094&docid=65857266&x=2452',
		'title': '',
		'imageId': '65857266',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3838094&docid=65857267&x=2452',
		'title': '',
		'imageId': '65857267',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3838094&docid=68123163&x=2452',
		'title': 'Door will need new glass and hinge\n',
		'imageId': '68123163',
		'alt' : 'Door will need new glass and hinge\n',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3838094&docid=68123164&x=2452',
		'title': 'Door will need to be re-hung.  No glass, hinge parts missing. ',
		'imageId': '68123164',
		'alt' : 'Door will need to be re-hung.  No glass, hinge parts missing. ',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3838094&docid=68208953&x=2452',
		'title': 'replacement glass found',
		'imageId': '68208953',
		'alt' : 'replacement glass found',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3838094';

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