var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4029778&docid=70451852&x=5428',
		'title': '',
		'imageId': '70451852',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4029778&docid=70451848&x=5428',
		'title': '',
		'imageId': '70451848',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4029778&docid=70451850&x=5428',
		'title': '',
		'imageId': '70451850',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4029778&docid=70451856&x=5428',
		'title': '',
		'imageId': '70451856',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4029778&docid=70451854&x=5428',
		'title': '',
		'imageId': '70451854',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4029778&docid=70451849&x=5428',
		'title': '',
		'imageId': '70451849',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4029778&docid=70451847&x=5428',
		'title': '',
		'imageId': '70451847',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4029778&docid=70451846&x=5428',
		'title': '',
		'imageId': '70451846',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4029778&docid=70451851&x=5428',
		'title': '',
		'imageId': '70451851',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4029778&docid=70451855&x=5428',
		'title': '',
		'imageId': '70451855',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4029778';

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