var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012756&docid=70023047&x=4335',
		'title': '',
		'imageId': '70023047',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012756&docid=70023051&x=4335',
		'title': '',
		'imageId': '70023051',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012756&docid=70023046&x=4335',
		'title': '',
		'imageId': '70023046',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012756&docid=70023055&x=4335',
		'title': '',
		'imageId': '70023055',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012756&docid=70023045&x=4335',
		'title': '',
		'imageId': '70023045',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012756&docid=70023053&x=4335',
		'title': '',
		'imageId': '70023053',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012756&docid=70023048&x=4335',
		'title': '',
		'imageId': '70023048',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012756&docid=70023049&x=4335',
		'title': '',
		'imageId': '70023049',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012756&docid=70023054&x=4335',
		'title': '',
		'imageId': '70023054',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012756&docid=70023050&x=4335',
		'title': '',
		'imageId': '70023050',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012756&docid=70023052&x=4335',
		'title': '',
		'imageId': '70023052',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012756';

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