var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028836&x=5516',
		'title': '',
		'imageId': '59028836',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028838&x=5516',
		'title': '',
		'imageId': '59028838',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028839&x=5516',
		'title': '',
		'imageId': '59028839',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028840&x=5516',
		'title': '',
		'imageId': '59028840',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028841&x=5516',
		'title': '',
		'imageId': '59028841',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028842&x=5516',
		'title': '',
		'imageId': '59028842',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028843&x=5516',
		'title': '',
		'imageId': '59028843',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028844&x=5516',
		'title': '',
		'imageId': '59028844',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028845&x=5516',
		'title': '',
		'imageId': '59028845',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028846&x=5516',
		'title': '',
		'imageId': '59028846',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028847&x=5516',
		'title': '',
		'imageId': '59028847',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028848&x=5516',
		'title': '',
		'imageId': '59028848',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028849&x=5516',
		'title': '',
		'imageId': '59028849',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028850&x=5516',
		'title': '',
		'imageId': '59028850',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028851&x=5516',
		'title': '',
		'imageId': '59028851',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028852&x=5516',
		'title': '',
		'imageId': '59028852',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028853&x=5516',
		'title': '',
		'imageId': '59028853',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028854&x=5516',
		'title': '',
		'imageId': '59028854',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028855&x=5516',
		'title': '',
		'imageId': '59028855',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001812&docid=59028856&x=5516',
		'title': '',
		'imageId': '59028856',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4001812';

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