var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481161&x=629',
		'title': '',
		'imageId': '70481161',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481164&x=629',
		'title': '',
		'imageId': '70481164',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481168&x=629',
		'title': '',
		'imageId': '70481168',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481173&x=629',
		'title': '',
		'imageId': '70481173',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481178&x=629',
		'title': '',
		'imageId': '70481178',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481183&x=629',
		'title': '',
		'imageId': '70481183',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481187&x=629',
		'title': '',
		'imageId': '70481187',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481200&x=629',
		'title': '',
		'imageId': '70481200',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481209&x=629',
		'title': '',
		'imageId': '70481209',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481219&x=629',
		'title': '',
		'imageId': '70481219',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481227&x=629',
		'title': '',
		'imageId': '70481227',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481230&x=629',
		'title': '',
		'imageId': '70481230',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481269&x=629',
		'title': '',
		'imageId': '70481269',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481274&x=629',
		'title': '',
		'imageId': '70481274',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481277&x=629',
		'title': '',
		'imageId': '70481277',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481288&x=629',
		'title': '',
		'imageId': '70481288',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481308&x=629',
		'title': '',
		'imageId': '70481308',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481325&x=629',
		'title': '',
		'imageId': '70481325',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481328&x=629',
		'title': '',
		'imageId': '70481328',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481331&x=629',
		'title': '',
		'imageId': '70481331',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4031009&docid=70481350&x=629',
		'title': '',
		'imageId': '70481350',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4031009';

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