var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3866907&docid=66580932&x=4232',
		'title': '',
		'imageId': '66580932',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866907&docid=66580935&x=4232',
		'title': '',
		'imageId': '66580935',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866907&docid=66580936&x=4232',
		'title': '',
		'imageId': '66580936',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866907&docid=66580937&x=4232',
		'title': '',
		'imageId': '66580937',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866907&docid=66580938&x=4232',
		'title': '',
		'imageId': '66580938',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866907&docid=66580942&x=4232',
		'title': '',
		'imageId': '66580942',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866907&docid=66580939&x=4232',
		'title': '',
		'imageId': '66580939',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866907&docid=66580940&x=4232',
		'title': '',
		'imageId': '66580940',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866907&docid=66580941&x=4232',
		'title': '',
		'imageId': '66580941',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866907&docid=66580934&x=4232',
		'title': '',
		'imageId': '66580934',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866907&docid=66580933&x=4232',
		'title': '',
		'imageId': '66580933',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3866907';

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