var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016839&docid=70147179&x=5350',
		'title': '',
		'imageId': '70147179',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016839&docid=70147178&x=5350',
		'title': '',
		'imageId': '70147178',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016839&docid=70147177&x=5350',
		'title': '',
		'imageId': '70147177',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016839&docid=70147182&x=5350',
		'title': '',
		'imageId': '70147182',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016839&docid=70147181&x=5350',
		'title': '',
		'imageId': '70147181',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016839&docid=70147188&x=5350',
		'title': '',
		'imageId': '70147188',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016839&docid=70147197&x=5350',
		'title': '',
		'imageId': '70147197',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016839&docid=70147198&x=5350',
		'title': '',
		'imageId': '70147198',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016839&docid=70147199&x=5350',
		'title': '',
		'imageId': '70147199',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016839&docid=70147180&x=5350',
		'title': '',
		'imageId': '70147180',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016839';

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