var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4003190&docid=69789140&x=534',
		'title': '',
		'imageId': '69789140',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003190&docid=69789157&x=534',
		'title': '',
		'imageId': '69789157',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003190&docid=69789164&x=534',
		'title': '',
		'imageId': '69789164',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003190&docid=69789171&x=534',
		'title': '',
		'imageId': '69789171',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003190&docid=69789183&x=534',
		'title': '',
		'imageId': '69789183',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003190&docid=69789109&x=534',
		'title': '',
		'imageId': '69789109',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003190&docid=69789083&x=534',
		'title': '',
		'imageId': '69789083',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003190&docid=69789080&x=534',
		'title': '',
		'imageId': '69789080',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003190&docid=69789081&x=534',
		'title': '',
		'imageId': '69789081',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003190&docid=69789082&x=534',
		'title': '',
		'imageId': '69789082',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003190&docid=69789078&x=534',
		'title': '',
		'imageId': '69789078',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4003190';

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