var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3917645&docid=67845446&x=195',
		'title': '',
		'imageId': '67845446',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3917645&docid=67845442&x=195',
		'title': '',
		'imageId': '67845442',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3917645&docid=67845444&x=195',
		'title': '',
		'imageId': '67845444',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3917645&docid=67845441&x=195',
		'title': '',
		'imageId': '67845441',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3917645&docid=67845443&x=195',
		'title': '',
		'imageId': '67845443',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3917645&docid=67845451&x=195',
		'title': '',
		'imageId': '67845451',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3917645&docid=67845445&x=195',
		'title': '',
		'imageId': '67845445',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3917645&docid=67845448&x=195',
		'title': '',
		'imageId': '67845448',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3917645&docid=67845447&x=195',
		'title': '',
		'imageId': '67845447',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3917645&docid=67845450&x=195',
		'title': '',
		'imageId': '67845450',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3917645&docid=67845449&x=195',
		'title': '',
		'imageId': '67845449',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3917645';

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