var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4017027&docid=70156999&x=245',
		'title': '',
		'imageId': '70156999',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017027&docid=70157007&x=245',
		'title': '',
		'imageId': '70157007',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017027&docid=70157000&x=245',
		'title': '',
		'imageId': '70157000',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017027&docid=70157004&x=245',
		'title': '',
		'imageId': '70157004',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017027&docid=70157001&x=245',
		'title': '',
		'imageId': '70157001',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017027&docid=70157010&x=245',
		'title': '',
		'imageId': '70157010',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017027&docid=70157002&x=245',
		'title': '',
		'imageId': '70157002',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017027&docid=70157006&x=245',
		'title': '',
		'imageId': '70157006',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017027&docid=70157011&x=245',
		'title': '',
		'imageId': '70157011',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017027&docid=70157009&x=245',
		'title': '',
		'imageId': '70157009',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017027&docid=70157003&x=245',
		'title': '',
		'imageId': '70157003',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017027&docid=70157005&x=245',
		'title': '',
		'imageId': '70157005',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4017027';

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