var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=644907&docid=4039577&x=5026',
		'title': '',
		'imageId': '4039577',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=644907&docid=4039580&x=5026',
		'title': '',
		'imageId': '4039580',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=644907&docid=4039574&x=5026',
		'title': '',
		'imageId': '4039574',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=644907&docid=4039583&x=5026',
		'title': '',
		'imageId': '4039583',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=644907&docid=4039568&x=5026',
		'title': '',
		'imageId': '4039568',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=644907&docid=4039592&x=5026',
		'title': '',
		'imageId': '4039592',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=644907&docid=4039562&x=5026',
		'title': '',
		'imageId': '4039562',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=644907&docid=4039565&x=5026',
		'title': '',
		'imageId': '4039565',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=644907&docid=4039571&x=5026',
		'title': '',
		'imageId': '4039571',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=644907&docid=4039586&x=5026',
		'title': '',
		'imageId': '4039586',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=644907&docid=4039589&x=5026',
		'title': '',
		'imageId': '4039589',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #644907';

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