var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4021041&docid=70254185&x=5344',
		'title': '',
		'imageId': '70254185',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4021041&docid=70254176&x=5344',
		'title': '',
		'imageId': '70254176',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4021041&docid=70254175&x=5344',
		'title': '',
		'imageId': '70254175',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4021041&docid=70254174&x=5344',
		'title': '',
		'imageId': '70254174',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4021041&docid=70254179&x=5344',
		'title': '',
		'imageId': '70254179',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4021041&docid=70254181&x=5344',
		'title': '',
		'imageId': '70254181',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4021041&docid=70254182&x=5344',
		'title': '',
		'imageId': '70254182',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4021041&docid=70254184&x=5344',
		'title': '',
		'imageId': '70254184',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4021041&docid=70254178&x=5344',
		'title': '',
		'imageId': '70254178',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4021041&docid=70254183&x=5344',
		'title': '',
		'imageId': '70254183',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4021041&docid=70254180&x=5344',
		'title': '',
		'imageId': '70254180',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4021041';

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