var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016841&docid=70147230&x=2359',
		'title': '',
		'imageId': '70147230',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016841&docid=70147232&x=2359',
		'title': '',
		'imageId': '70147232',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016841&docid=70147234&x=2359',
		'title': '',
		'imageId': '70147234',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016841&docid=70147233&x=2359',
		'title': '',
		'imageId': '70147233',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016841&docid=70147246&x=2359',
		'title': '',
		'imageId': '70147246',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016841&docid=70147243&x=2359',
		'title': '',
		'imageId': '70147243',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016841&docid=70147235&x=2359',
		'title': '',
		'imageId': '70147235',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016841&docid=70147249&x=2359',
		'title': '',
		'imageId': '70147249',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016841&docid=70147251&x=2359',
		'title': '',
		'imageId': '70147251',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016841&docid=70147231&x=2359',
		'title': '',
		'imageId': '70147231',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016841';

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