var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3953803&docid=66887987&x=4221',
		'title': '',
		'imageId': '66887987',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3953803&docid=66887988&x=4221',
		'title': '',
		'imageId': '66887988',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3953803&docid=66887989&x=4221',
		'title': '',
		'imageId': '66887989',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3953803&docid=66887990&x=4221',
		'title': '',
		'imageId': '66887990',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3953803&docid=66887991&x=4221',
		'title': '',
		'imageId': '66887991',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3953803&docid=66887992&x=4221',
		'title': '',
		'imageId': '66887992',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3953803&docid=66887993&x=4221',
		'title': '',
		'imageId': '66887993',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3953803&docid=66887984&x=4221',
		'title': '',
		'imageId': '66887984',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3953803&docid=66887985&x=4221',
		'title': '',
		'imageId': '66887985',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3953803&docid=66887986&x=4221',
		'title': '',
		'imageId': '66887986',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3953803';

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