var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4003198&docid=69789428&x=5228',
		'title': '',
		'imageId': '69789428',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003198&docid=69789429&x=5228',
		'title': '',
		'imageId': '69789429',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003198&docid=69789432&x=5228',
		'title': '',
		'imageId': '69789432',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003198&docid=69789433&x=5228',
		'title': '',
		'imageId': '69789433',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003198&docid=69789434&x=5228',
		'title': '',
		'imageId': '69789434',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003198&docid=69789435&x=5228',
		'title': '',
		'imageId': '69789435',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003198&docid=69789436&x=5228',
		'title': '',
		'imageId': '69789436',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003198&docid=69789437&x=5228',
		'title': '',
		'imageId': '69789437',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003198&docid=69789441&x=5228',
		'title': '',
		'imageId': '69789441',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003198&docid=69789444&x=5228',
		'title': '',
		'imageId': '69789444',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4003198';

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