var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502818&x=856',
		'title': '',
		'imageId': '68502818',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502819&x=856',
		'title': '',
		'imageId': '68502819',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502821&x=856',
		'title': '',
		'imageId': '68502821',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502820&x=856',
		'title': '',
		'imageId': '68502820',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502824&x=856',
		'title': '',
		'imageId': '68502824',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502829&x=856',
		'title': '',
		'imageId': '68502829',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502830&x=856',
		'title': '',
		'imageId': '68502830',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502823&x=856',
		'title': '',
		'imageId': '68502823',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502831&x=856',
		'title': '',
		'imageId': '68502831',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502828&x=856',
		'title': '',
		'imageId': '68502828',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502837&x=856',
		'title': '',
		'imageId': '68502837',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502833&x=856',
		'title': '',
		'imageId': '68502833',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502825&x=856',
		'title': '',
		'imageId': '68502825',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502827&x=856',
		'title': '',
		'imageId': '68502827',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502826&x=856',
		'title': '',
		'imageId': '68502826',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502822&x=856',
		'title': '',
		'imageId': '68502822',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502836&x=856',
		'title': '',
		'imageId': '68502836',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502835&x=856',
		'title': '',
		'imageId': '68502835',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502832&x=856',
		'title': '',
		'imageId': '68502832',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502834&x=856',
		'title': '',
		'imageId': '68502834',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502840&x=856',
		'title': '',
		'imageId': '68502840',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502839&x=856',
		'title': '',
		'imageId': '68502839',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946787&docid=68502838&x=856',
		'title': '',
		'imageId': '68502838',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3946787';

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