var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016833&docid=70146902&x=2359',
		'title': '',
		'imageId': '70146902',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016833&docid=70146903&x=2359',
		'title': '',
		'imageId': '70146903',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016833&docid=70146905&x=2359',
		'title': '',
		'imageId': '70146905',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016833&docid=70146904&x=2359',
		'title': '',
		'imageId': '70146904',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016833&docid=70146906&x=2359',
		'title': '',
		'imageId': '70146906',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016833&docid=70146917&x=2359',
		'title': '',
		'imageId': '70146917',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016833&docid=70146919&x=2359',
		'title': '',
		'imageId': '70146919',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016833&docid=70146921&x=2359',
		'title': '',
		'imageId': '70146921',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016833&docid=70146924&x=2359',
		'title': '',
		'imageId': '70146924',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016833&docid=70146901&x=2359',
		'title': '',
		'imageId': '70146901',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016833';

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