var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3866909&docid=66580954&x=424',
		'title': '',
		'imageId': '66580954',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866909&docid=66580957&x=424',
		'title': '',
		'imageId': '66580957',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866909&docid=66580958&x=424',
		'title': '',
		'imageId': '66580958',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866909&docid=66580959&x=424',
		'title': '',
		'imageId': '66580959',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866909&docid=66580960&x=424',
		'title': '',
		'imageId': '66580960',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866909&docid=66580964&x=424',
		'title': '',
		'imageId': '66580964',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866909&docid=66580961&x=424',
		'title': '',
		'imageId': '66580961',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866909&docid=66580962&x=424',
		'title': '',
		'imageId': '66580962',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866909&docid=66580963&x=424',
		'title': '',
		'imageId': '66580963',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866909&docid=66580955&x=424',
		'title': '',
		'imageId': '66580955',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866909&docid=66580956&x=424',
		'title': '',
		'imageId': '66580956',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3866909';

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