var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012440&docid=70014674&x=4819',
		'title': '',
		'imageId': '70014674',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012440&docid=70014675&x=4819',
		'title': '',
		'imageId': '70014675',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012440&docid=70014671&x=4819',
		'title': '',
		'imageId': '70014671',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012440&docid=70014721&x=4819',
		'title': '',
		'imageId': '70014721',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012440&docid=70014673&x=4819',
		'title': '',
		'imageId': '70014673',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012440&docid=70014725&x=4819',
		'title': '',
		'imageId': '70014725',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012440&docid=70014718&x=4819',
		'title': '',
		'imageId': '70014718',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012440&docid=70014722&x=4819',
		'title': '',
		'imageId': '70014722',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012440&docid=70014724&x=4819',
		'title': '',
		'imageId': '70014724',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012440&docid=70014728&x=4819',
		'title': '',
		'imageId': '70014728',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012440&docid=70014723&x=4819',
		'title': '',
		'imageId': '70014723',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012440';

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