var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4019418&docid=70214501&x=3548',
		'title': '',
		'imageId': '70214501',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019418&docid=70214499&x=3548',
		'title': '',
		'imageId': '70214499',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019418&docid=70214502&x=3548',
		'title': '',
		'imageId': '70214502',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019418&docid=70214500&x=3548',
		'title': '',
		'imageId': '70214500',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019418&docid=70214503&x=3548',
		'title': '',
		'imageId': '70214503',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019418&docid=70214508&x=3548',
		'title': '',
		'imageId': '70214508',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019418&docid=70214512&x=3548',
		'title': '',
		'imageId': '70214512',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019418&docid=70214519&x=3548',
		'title': '',
		'imageId': '70214519',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019418&docid=70214520&x=3548',
		'title': '',
		'imageId': '70214520',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019418&docid=70214518&x=3548',
		'title': '',
		'imageId': '70214518',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019418&docid=70214498&x=3548',
		'title': '',
		'imageId': '70214498',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4019418';

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