var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500839&x=3831',
		'title': '',
		'imageId': '71500839',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500840&x=3831',
		'title': '',
		'imageId': '71500840',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500841&x=3831',
		'title': '',
		'imageId': '71500841',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500842&x=3831',
		'title': '',
		'imageId': '71500842',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500843&x=3831',
		'title': '',
		'imageId': '71500843',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500844&x=3831',
		'title': '',
		'imageId': '71500844',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500845&x=3831',
		'title': '',
		'imageId': '71500845',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500846&x=3831',
		'title': '',
		'imageId': '71500846',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500847&x=3831',
		'title': '',
		'imageId': '71500847',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500848&x=3831',
		'title': '',
		'imageId': '71500848',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500849&x=3831',
		'title': '',
		'imageId': '71500849',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500850&x=3831',
		'title': '',
		'imageId': '71500850',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500851&x=3831',
		'title': '',
		'imageId': '71500851',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500852&x=3831',
		'title': '',
		'imageId': '71500852',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500853&x=3831',
		'title': '',
		'imageId': '71500853',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500854&x=3831',
		'title': '',
		'imageId': '71500854',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500855&x=3831',
		'title': '',
		'imageId': '71500855',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500856&x=3831',
		'title': '',
		'imageId': '71500856',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500857&x=3831',
		'title': '',
		'imageId': '71500857',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4072017&docid=71500858&x=3831',
		'title': '',
		'imageId': '71500858',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4072017';

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