var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4009766&docid=69954489&x=314',
		'title': '',
		'imageId': '69954489',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009766&docid=69954490&x=314',
		'title': '',
		'imageId': '69954490',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009766&docid=69954492&x=314',
		'title': '',
		'imageId': '69954492',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009766&docid=69954493&x=314',
		'title': '',
		'imageId': '69954493',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009766&docid=69954496&x=314',
		'title': '',
		'imageId': '69954496',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009766&docid=69954491&x=314',
		'title': '',
		'imageId': '69954491',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009766&docid=69954499&x=314',
		'title': '',
		'imageId': '69954499',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009766&docid=69954502&x=314',
		'title': '',
		'imageId': '69954502',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009766&docid=69954507&x=314',
		'title': '',
		'imageId': '69954507',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009766&docid=69954510&x=314',
		'title': '',
		'imageId': '69954510',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009766&docid=69954511&x=314',
		'title': '',
		'imageId': '69954511',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009766&docid=69954515&x=314',
		'title': '',
		'imageId': '69954515',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009766&docid=69954518&x=314',
		'title': '',
		'imageId': '69954518',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009766&docid=69954520&x=314',
		'title': '',
		'imageId': '69954520',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009766&docid=69954523&x=314',
		'title': '',
		'imageId': '69954523',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009766&docid=69954488&x=314',
		'title': '',
		'imageId': '69954488',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4009766';

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