var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=462656&docid=2498533&x=4216',
		'title': '',
		'imageId': '2498533',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=462656&docid=2498536&x=4216',
		'title': '',
		'imageId': '2498536',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=462656&docid=2498539&x=4216',
		'title': '',
		'imageId': '2498539',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=462656&docid=2498542&x=4216',
		'title': '',
		'imageId': '2498542',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=462656&docid=2498545&x=4216',
		'title': '',
		'imageId': '2498545',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=462656&docid=2498548&x=4216',
		'title': '',
		'imageId': '2498548',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=462656&docid=2498551&x=4216',
		'title': '',
		'imageId': '2498551',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=462656&docid=2498554&x=4216',
		'title': '',
		'imageId': '2498554',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=462656&docid=2498557&x=4216',
		'title': '',
		'imageId': '2498557',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=462656&docid=2498560&x=4216',
		'title': '',
		'imageId': '2498560',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=462656&docid=2498563&x=4216',
		'title': '',
		'imageId': '2498563',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #462656';

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