var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4007046&docid=69909100&x=5941',
		'title': '',
		'imageId': '69909100',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007046&docid=69909108&x=5941',
		'title': '',
		'imageId': '69909108',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007046&docid=69909107&x=5941',
		'title': '',
		'imageId': '69909107',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007046&docid=69909103&x=5941',
		'title': '',
		'imageId': '69909103',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007046&docid=69909102&x=5941',
		'title': '',
		'imageId': '69909102',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007046&docid=69909101&x=5941',
		'title': '',
		'imageId': '69909101',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007046&docid=69909109&x=5941',
		'title': '',
		'imageId': '69909109',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007046&docid=69909104&x=5941',
		'title': '',
		'imageId': '69909104',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007046&docid=69909105&x=5941',
		'title': '',
		'imageId': '69909105',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007046&docid=69909106&x=5941',
		'title': '',
		'imageId': '69909106',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4007046';

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