var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3982354&docid=68345361&x=145',
		'title': '',
		'imageId': '68345361',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3982354&docid=68345398&x=145',
		'title': '',
		'imageId': '68345398',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3982354&docid=68345404&x=145',
		'title': '',
		'imageId': '68345404',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3982354&docid=68345411&x=145',
		'title': '',
		'imageId': '68345411',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3982354&docid=68345449&x=145',
		'title': '',
		'imageId': '68345449',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3982354&docid=68345456&x=145',
		'title': '',
		'imageId': '68345456',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3982354&docid=68345513&x=145',
		'title': '',
		'imageId': '68345513',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3982354&docid=68345522&x=145',
		'title': '',
		'imageId': '68345522',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3982354&docid=68345536&x=145',
		'title': '',
		'imageId': '68345536',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3982354&docid=68345557&x=145',
		'title': '',
		'imageId': '68345557',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3982354&docid=68345570&x=145',
		'title': '',
		'imageId': '68345570',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3982354&docid=68345591&x=145',
		'title': '',
		'imageId': '68345591',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3982354';

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