var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=914790&docid=7285981&x=645',
		'title': '',
		'imageId': '7285981',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=914790&docid=7285986&x=645',
		'title': '',
		'imageId': '7285986',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=914790&docid=7285989&x=645',
		'title': '',
		'imageId': '7285989',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=914790&docid=7285993&x=645',
		'title': '',
		'imageId': '7285993',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=914790&docid=7285996&x=645',
		'title': '',
		'imageId': '7285996',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=914790&docid=7286001&x=645',
		'title': '',
		'imageId': '7286001',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=914790&docid=7286005&x=645',
		'title': '',
		'imageId': '7286005',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=914790&docid=7286016&x=645',
		'title': '',
		'imageId': '7286016',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=914790&docid=7286011&x=645',
		'title': '',
		'imageId': '7286011',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=914790&docid=7285975&x=645',
		'title': '',
		'imageId': '7285975',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=914790&docid=7286008&x=645',
		'title': '',
		'imageId': '7286008',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #914790';

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