var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3949734&docid=68578409&x=5825',
		'title': '',
		'imageId': '68578409',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949734&docid=68578408&x=5825',
		'title': '',
		'imageId': '68578408',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949734&docid=68578407&x=5825',
		'title': '',
		'imageId': '68578407',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949734&docid=68578412&x=5825',
		'title': '',
		'imageId': '68578412',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949734&docid=68578417&x=5825',
		'title': '',
		'imageId': '68578417',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949734&docid=68578420&x=5825',
		'title': '',
		'imageId': '68578420',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949734&docid=68578421&x=5825',
		'title': '',
		'imageId': '68578421',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949734&docid=68578424&x=5825',
		'title': '',
		'imageId': '68578424',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949734&docid=68578427&x=5825',
		'title': '',
		'imageId': '68578427',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949734&docid=68578405&x=5825',
		'title': '',
		'imageId': '68578405',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949734&docid=68578406&x=5825',
		'title': '',
		'imageId': '68578406',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3949734';

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