var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012070&docid=70007590&x=5025',
		'title': '',
		'imageId': '70007590',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012070&docid=70007593&x=5025',
		'title': '',
		'imageId': '70007593',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012070&docid=70007594&x=5025',
		'title': '',
		'imageId': '70007594',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012070&docid=70007595&x=5025',
		'title': '',
		'imageId': '70007595',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012070&docid=70007597&x=5025',
		'title': '',
		'imageId': '70007597',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012070&docid=70007598&x=5025',
		'title': '',
		'imageId': '70007598',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012070&docid=70007599&x=5025',
		'title': '',
		'imageId': '70007599',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012070&docid=70007600&x=5025',
		'title': '',
		'imageId': '70007600',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012070&docid=70007601&x=5025',
		'title': '',
		'imageId': '70007601',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012070&docid=70007604&x=5025',
		'title': '',
		'imageId': '70007604',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012070';

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