var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3880438&docid=66888078&x=915',
		'title': '',
		'imageId': '66888078',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880438&docid=66888079&x=915',
		'title': '',
		'imageId': '66888079',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880438&docid=66888080&x=915',
		'title': '',
		'imageId': '66888080',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880438&docid=66888081&x=915',
		'title': '',
		'imageId': '66888081',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880438&docid=66888082&x=915',
		'title': '',
		'imageId': '66888082',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880438&docid=66888083&x=915',
		'title': '',
		'imageId': '66888083',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880438&docid=66888084&x=915',
		'title': '',
		'imageId': '66888084',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880438&docid=66888085&x=915',
		'title': '',
		'imageId': '66888085',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880438&docid=66888086&x=915',
		'title': '',
		'imageId': '66888086',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880438&docid=66888087&x=915',
		'title': '',
		'imageId': '66888087',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3880438';

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