var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4013015&docid=70028578&x=4917',
		'title': '',
		'imageId': '70028578',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013015&docid=70028569&x=4917',
		'title': '',
		'imageId': '70028569',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013015&docid=70028571&x=4917',
		'title': '',
		'imageId': '70028571',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013015&docid=70028573&x=4917',
		'title': '',
		'imageId': '70028573',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013015&docid=70028577&x=4917',
		'title': '',
		'imageId': '70028577',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013015&docid=70028579&x=4917',
		'title': '',
		'imageId': '70028579',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013015&docid=70028574&x=4917',
		'title': '',
		'imageId': '70028574',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013015&docid=70028576&x=4917',
		'title': '',
		'imageId': '70028576',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013015&docid=70028572&x=4917',
		'title': '',
		'imageId': '70028572',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013015&docid=70028570&x=4917',
		'title': '',
		'imageId': '70028570',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013015&docid=70028575&x=4917',
		'title': '',
		'imageId': '70028575',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4013015';

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