var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3989954&docid=69485022&x=4854',
		'title': '',
		'imageId': '69485022',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3989954&docid=69485028&x=4854',
		'title': '',
		'imageId': '69485028',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3989954&docid=69485020&x=4854',
		'title': '',
		'imageId': '69485020',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3989954&docid=69485023&x=4854',
		'title': '',
		'imageId': '69485023',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3989954&docid=69485027&x=4854',
		'title': '',
		'imageId': '69485027',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3989954&docid=69485025&x=4854',
		'title': '',
		'imageId': '69485025',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3989954&docid=69485029&x=4854',
		'title': '',
		'imageId': '69485029',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3989954&docid=69485026&x=4854',
		'title': '',
		'imageId': '69485026',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3989954&docid=69485024&x=4854',
		'title': '',
		'imageId': '69485024',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3989954&docid=69485021&x=4854',
		'title': '',
		'imageId': '69485021',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3989954';

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