var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012729&docid=70022474&x=4520',
		'title': '',
		'imageId': '70022474',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012729&docid=70022483&x=4520',
		'title': '',
		'imageId': '70022483',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012729&docid=70022480&x=4520',
		'title': '',
		'imageId': '70022480',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012729&docid=70022479&x=4520',
		'title': '',
		'imageId': '70022479',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012729&docid=70022481&x=4520',
		'title': '',
		'imageId': '70022481',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012729&docid=70022476&x=4520',
		'title': '',
		'imageId': '70022476',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012729&docid=70022475&x=4520',
		'title': '',
		'imageId': '70022475',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012729&docid=70022477&x=4520',
		'title': '',
		'imageId': '70022477',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012729&docid=70022478&x=4520',
		'title': '',
		'imageId': '70022478',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012729&docid=70022485&x=4520',
		'title': '',
		'imageId': '70022485',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012729&docid=70022484&x=4520',
		'title': '',
		'imageId': '70022484',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012729';

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