var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012597&docid=70018109&x=2120',
		'title': '',
		'imageId': '70018109',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012597&docid=70016865&x=2120',
		'title': '',
		'imageId': '70016865',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012597&docid=70016866&x=2120',
		'title': '',
		'imageId': '70016866',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012597&docid=70016867&x=2120',
		'title': '',
		'imageId': '70016867',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012597&docid=70018110&x=2120',
		'title': '',
		'imageId': '70018110',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012597&docid=70018111&x=2120',
		'title': '',
		'imageId': '70018111',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012597&docid=70018112&x=2120',
		'title': '',
		'imageId': '70018112',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012597&docid=70018113&x=2120',
		'title': '',
		'imageId': '70018113',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012597&docid=70016868&x=2120',
		'title': '',
		'imageId': '70016868',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012597&docid=70018108&x=2120',
		'title': '',
		'imageId': '70018108',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012597';

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