var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3588314&docid=59923497&x=222',
		'title': '',
		'imageId': '59923497',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3588314&docid=59923496&x=222',
		'title': '',
		'imageId': '59923496',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3588314&docid=59923498&x=222',
		'title': '',
		'imageId': '59923498',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3588314&docid=59923502&x=222',
		'title': '',
		'imageId': '59923502',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3588314&docid=59923506&x=222',
		'title': '',
		'imageId': '59923506',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3588314&docid=59923555&x=222',
		'title': '',
		'imageId': '59923555',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3588314&docid=59923560&x=222',
		'title': '',
		'imageId': '59923560',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3588314&docid=59923561&x=222',
		'title': '',
		'imageId': '59923561',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3588314&docid=59923544&x=222',
		'title': '',
		'imageId': '59923544',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3588314&docid=59923553&x=222',
		'title': '',
		'imageId': '59923553',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3588314&docid=59923469&x=222',
		'title': '',
		'imageId': '59923469',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3588314';

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