var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012733&docid=70022650&x=4847',
		'title': '',
		'imageId': '70022650',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012733&docid=70022643&x=4847',
		'title': '',
		'imageId': '70022643',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012733&docid=70022642&x=4847',
		'title': '',
		'imageId': '70022642',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012733&docid=70022647&x=4847',
		'title': '',
		'imageId': '70022647',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012733&docid=70022644&x=4847',
		'title': '',
		'imageId': '70022644',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012733&docid=70022645&x=4847',
		'title': '',
		'imageId': '70022645',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012733&docid=70022641&x=4847',
		'title': '',
		'imageId': '70022641',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012733&docid=70022648&x=4847',
		'title': '',
		'imageId': '70022648',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012733&docid=70022646&x=4847',
		'title': '',
		'imageId': '70022646',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012733&docid=70022651&x=4847',
		'title': '',
		'imageId': '70022651',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012733&docid=70022649&x=4847',
		'title': '',
		'imageId': '70022649',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012733';

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