var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4018327&docid=70183987&x=2231',
		'title': '',
		'imageId': '70183987',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018327&docid=70183989&x=2231',
		'title': '',
		'imageId': '70183989',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018327&docid=70183990&x=2231',
		'title': '',
		'imageId': '70183990',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018327&docid=70183991&x=2231',
		'title': '',
		'imageId': '70183991',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018327&docid=70183988&x=2231',
		'title': '',
		'imageId': '70183988',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018327&docid=70183995&x=2231',
		'title': '',
		'imageId': '70183995',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018327&docid=70183992&x=2231',
		'title': '',
		'imageId': '70183992',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018327&docid=70184006&x=2231',
		'title': '',
		'imageId': '70184006',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018327&docid=70184000&x=2231',
		'title': '',
		'imageId': '70184000',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018327&docid=70184005&x=2231',
		'title': '',
		'imageId': '70184005',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4018327';

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