var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4013419&docid=70048079&x=4954',
		'title': '',
		'imageId': '70048079',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013419&docid=70048087&x=4954',
		'title': '',
		'imageId': '70048087',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013419&docid=70048083&x=4954',
		'title': '',
		'imageId': '70048083',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013419&docid=70048080&x=4954',
		'title': '',
		'imageId': '70048080',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013419&docid=70048078&x=4954',
		'title': '',
		'imageId': '70048078',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013419&docid=70048084&x=4954',
		'title': '',
		'imageId': '70048084',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013419&docid=70048082&x=4954',
		'title': '',
		'imageId': '70048082',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013419&docid=70048086&x=4954',
		'title': '',
		'imageId': '70048086',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013419&docid=70048085&x=4954',
		'title': '',
		'imageId': '70048085',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013419&docid=70048081&x=4954',
		'title': '',
		'imageId': '70048081',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4013419';

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