var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016840&docid=70148500&x=265',
		'title': '',
		'imageId': '70148500',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016840&docid=70148499&x=265',
		'title': '',
		'imageId': '70148499',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016840&docid=70148496&x=265',
		'title': '',
		'imageId': '70148496',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016840&docid=70148501&x=265',
		'title': '',
		'imageId': '70148501',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016840&docid=70148494&x=265',
		'title': '',
		'imageId': '70148494',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016840&docid=70148497&x=265',
		'title': '',
		'imageId': '70148497',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016840&docid=70148493&x=265',
		'title': '',
		'imageId': '70148493',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016840&docid=70148495&x=265',
		'title': '',
		'imageId': '70148495',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016840&docid=70148498&x=265',
		'title': '',
		'imageId': '70148498',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016840&docid=70148502&x=265',
		'title': '',
		'imageId': '70148502',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016840';

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