var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3587898&docid=59910045&x=1413',
		'title': '',
		'imageId': '59910045',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3587898&docid=59910046&x=1413',
		'title': '',
		'imageId': '59910046',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3587898&docid=59910047&x=1413',
		'title': '',
		'imageId': '59910047',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3587898&docid=59910048&x=1413',
		'title': '',
		'imageId': '59910048',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3587898&docid=59910053&x=1413',
		'title': '',
		'imageId': '59910053',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3587898&docid=59910054&x=1413',
		'title': '',
		'imageId': '59910054',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3587898&docid=59910062&x=1413',
		'title': '',
		'imageId': '59910062',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3587898&docid=59910070&x=1413',
		'title': '',
		'imageId': '59910070',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3587898&docid=59910077&x=1413',
		'title': '',
		'imageId': '59910077',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3587898&docid=59910308&x=1413',
		'title': '',
		'imageId': '59910308',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3587898&docid=59910312&x=1413',
		'title': '',
		'imageId': '59910312',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3587898';

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