var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016798&docid=70145458&x=5849',
		'title': '',
		'imageId': '70145458',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016798&docid=70145456&x=5849',
		'title': '',
		'imageId': '70145456',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016798&docid=70145457&x=5849',
		'title': '',
		'imageId': '70145457',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016798&docid=70145459&x=5849',
		'title': '',
		'imageId': '70145459',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016798&docid=70145460&x=5849',
		'title': '',
		'imageId': '70145460',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016798&docid=70145463&x=5849',
		'title': '',
		'imageId': '70145463',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016798&docid=70145474&x=5849',
		'title': '',
		'imageId': '70145474',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016798&docid=70145475&x=5849',
		'title': '',
		'imageId': '70145475',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016798&docid=70145476&x=5849',
		'title': '',
		'imageId': '70145476',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016798&docid=70145455&x=5849',
		'title': '',
		'imageId': '70145455',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016798';

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