var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4004020&docid=69810549&x=2830',
		'title': '',
		'imageId': '69810549',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004020&docid=69810543&x=2830',
		'title': '',
		'imageId': '69810543',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004020&docid=69810542&x=2830',
		'title': '',
		'imageId': '69810542',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004020&docid=69810541&x=2830',
		'title': '',
		'imageId': '69810541',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004020&docid=69810545&x=2830',
		'title': '',
		'imageId': '69810545',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004020&docid=69810546&x=2830',
		'title': '',
		'imageId': '69810546',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004020&docid=69810547&x=2830',
		'title': '',
		'imageId': '69810547',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004020&docid=69810544&x=2830',
		'title': '',
		'imageId': '69810544',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004020&docid=69810548&x=2830',
		'title': '',
		'imageId': '69810548',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004020&docid=69810550&x=2830',
		'title': '',
		'imageId': '69810550',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4004020';

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