var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70161041&x=5351',
		'title': '',
		'imageId': '70161041',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70161039&x=5351',
		'title': '',
		'imageId': '70161039',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70161048&x=5351',
		'title': '',
		'imageId': '70161048',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70161042&x=5351',
		'title': '',
		'imageId': '70161042',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70161043&x=5351',
		'title': '',
		'imageId': '70161043',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70161026&x=5351',
		'title': '',
		'imageId': '70161026',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70161030&x=5351',
		'title': '',
		'imageId': '70161030',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70161028&x=5351',
		'title': '',
		'imageId': '70161028',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70160648&x=5351',
		'title': '',
		'imageId': '70160648',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70160626&x=5351',
		'title': '',
		'imageId': '70160626',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70160638&x=5351',
		'title': '',
		'imageId': '70160638',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70161027&x=5351',
		'title': '',
		'imageId': '70161027',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70161029&x=5351',
		'title': '',
		'imageId': '70161029',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70161031&x=5351',
		'title': '',
		'imageId': '70161031',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70160609&x=5351',
		'title': '',
		'imageId': '70160609',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70160611&x=5351',
		'title': '',
		'imageId': '70160611',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70160612&x=5351',
		'title': '',
		'imageId': '70160612',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70160633&x=5351',
		'title': '',
		'imageId': '70160633',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70160647&x=5351',
		'title': '',
		'imageId': '70160647',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70160656&x=5351',
		'title': '',
		'imageId': '70160656',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70160672&x=5351',
		'title': '',
		'imageId': '70160672',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017146&docid=70160676&x=5351',
		'title': '',
		'imageId': '70160676',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4017146';

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