var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3913178&docid=58642205&x=1834',
		'title': '',
		'imageId': '58642205',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3913178&docid=58642199&x=1834',
		'title': '',
		'imageId': '58642199',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3913178&docid=58642206&x=1834',
		'title': '',
		'imageId': '58642206',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3913178&docid=58642200&x=1834',
		'title': '',
		'imageId': '58642200',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3913178&docid=58642204&x=1834',
		'title': '',
		'imageId': '58642204',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3913178&docid=58642202&x=1834',
		'title': '',
		'imageId': '58642202',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3913178&docid=58642203&x=1834',
		'title': '',
		'imageId': '58642203',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3913178&docid=58642201&x=1834',
		'title': '',
		'imageId': '58642201',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3913178&docid=58642198&x=1834',
		'title': '',
		'imageId': '58642198',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3913178&docid=58642197&x=1834',
		'title': '',
		'imageId': '58642197',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3913178';

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