var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3929654&docid=68122224&x=4239',
		'title': '',
		'imageId': '68122224',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3929654&docid=68122227&x=4239',
		'title': '',
		'imageId': '68122227',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3929654&docid=68122229&x=4239',
		'title': '',
		'imageId': '68122229',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3929654&docid=68122235&x=4239',
		'title': '',
		'imageId': '68122235',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3929654&docid=68122232&x=4239',
		'title': '',
		'imageId': '68122232',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3929654&docid=68122240&x=4239',
		'title': '',
		'imageId': '68122240',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3929654&docid=68122241&x=4239',
		'title': '',
		'imageId': '68122241',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3929654&docid=68122244&x=4239',
		'title': '',
		'imageId': '68122244',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3929654&docid=68122249&x=4239',
		'title': '',
		'imageId': '68122249',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3929654&docid=68122220&x=4239',
		'title': '',
		'imageId': '68122220',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3929654';

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