var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012528&docid=70017197&x=5638',
		'title': '',
		'imageId': '70017197',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012528&docid=70017195&x=5638',
		'title': '',
		'imageId': '70017195',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012528&docid=70017196&x=5638',
		'title': '',
		'imageId': '70017196',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012528&docid=70017198&x=5638',
		'title': '',
		'imageId': '70017198',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012528&docid=70017202&x=5638',
		'title': '',
		'imageId': '70017202',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012528&docid=70017203&x=5638',
		'title': '',
		'imageId': '70017203',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012528&docid=70017204&x=5638',
		'title': '',
		'imageId': '70017204',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012528&docid=70017205&x=5638',
		'title': '',
		'imageId': '70017205',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012528&docid=70017206&x=5638',
		'title': '',
		'imageId': '70017206',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012528&docid=70017200&x=5638',
		'title': '',
		'imageId': '70017200',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012528&docid=70017199&x=5638',
		'title': '',
		'imageId': '70017199',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012528';

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