var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4003189&docid=69789065&x=534',
		'title': '',
		'imageId': '69789065',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003189&docid=69789066&x=534',
		'title': '',
		'imageId': '69789066',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003189&docid=69789067&x=534',
		'title': '',
		'imageId': '69789067',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003189&docid=69789068&x=534',
		'title': '',
		'imageId': '69789068',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003189&docid=69789069&x=534',
		'title': '',
		'imageId': '69789069',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003189&docid=69789070&x=534',
		'title': '',
		'imageId': '69789070',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003189&docid=69789071&x=534',
		'title': '',
		'imageId': '69789071',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003189&docid=69789072&x=534',
		'title': '',
		'imageId': '69789072',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003189&docid=69789073&x=534',
		'title': '',
		'imageId': '69789073',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003189&docid=69789077&x=534',
		'title': '',
		'imageId': '69789077',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4003189';

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