var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4015722&docid=70101799&x=46',
		'title': '',
		'imageId': '70101799',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015722&docid=70101806&x=46',
		'title': '',
		'imageId': '70101806',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015722&docid=70101846&x=46',
		'title': '',
		'imageId': '70101846',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015722&docid=70101914&x=46',
		'title': '',
		'imageId': '70101914',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015722&docid=70102052&x=46',
		'title': '',
		'imageId': '70102052',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015722&docid=70102057&x=46',
		'title': '',
		'imageId': '70102057',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015722&docid=70102066&x=46',
		'title': '',
		'imageId': '70102066',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015722&docid=70102069&x=46',
		'title': '',
		'imageId': '70102069',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015722&docid=70102073&x=46',
		'title': '',
		'imageId': '70102073',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015722&docid=70102076&x=46',
		'title': '',
		'imageId': '70102076',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015722&docid=70102081&x=46',
		'title': '',
		'imageId': '70102081',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4015722';

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