var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4013038&docid=70029507&x=4431',
		'title': '',
		'imageId': '70029507',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013038&docid=70029504&x=4431',
		'title': '',
		'imageId': '70029504',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013038&docid=70029502&x=4431',
		'title': '',
		'imageId': '70029502',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013038&docid=70029501&x=4431',
		'title': '',
		'imageId': '70029501',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013038&docid=70029499&x=4431',
		'title': '',
		'imageId': '70029499',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013038&docid=70029503&x=4431',
		'title': '',
		'imageId': '70029503',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013038&docid=70029500&x=4431',
		'title': '',
		'imageId': '70029500',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013038&docid=70029506&x=4431',
		'title': '',
		'imageId': '70029506',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013038&docid=70029508&x=4431',
		'title': '',
		'imageId': '70029508',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013038&docid=70029509&x=4431',
		'title': '',
		'imageId': '70029509',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013038&docid=70029505&x=4431',
		'title': '',
		'imageId': '70029505',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4013038';

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