var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4014067&docid=70058855&x=931',
		'title': '',
		'imageId': '70058855',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4014067&docid=70058856&x=931',
		'title': '',
		'imageId': '70058856',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4014067&docid=70058863&x=931',
		'title': '',
		'imageId': '70058863',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4014067&docid=70058869&x=931',
		'title': '',
		'imageId': '70058869',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4014067&docid=70058872&x=931',
		'title': '',
		'imageId': '70058872',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4014067&docid=70058858&x=931',
		'title': '',
		'imageId': '70058858',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4014067&docid=70058859&x=931',
		'title': '',
		'imageId': '70058859',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4014067&docid=70058857&x=931',
		'title': '',
		'imageId': '70058857',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4014067&docid=70058868&x=931',
		'title': '',
		'imageId': '70058868',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4014067&docid=70058860&x=931',
		'title': '',
		'imageId': '70058860',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4014067';

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