var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4015705&docid=70098753&x=4823',
		'title': '',
		'imageId': '70098753',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015705&docid=70098755&x=4823',
		'title': '',
		'imageId': '70098755',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015705&docid=70098757&x=4823',
		'title': '',
		'imageId': '70098757',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015705&docid=70098756&x=4823',
		'title': '',
		'imageId': '70098756',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015705&docid=70098761&x=4823',
		'title': '',
		'imageId': '70098761',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015705&docid=70098772&x=4823',
		'title': '',
		'imageId': '70098772',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015705&docid=70098765&x=4823',
		'title': '',
		'imageId': '70098765',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015705&docid=70098766&x=4823',
		'title': '',
		'imageId': '70098766',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015705&docid=70098774&x=4823',
		'title': '',
		'imageId': '70098774',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015705&docid=70098775&x=4823',
		'title': '',
		'imageId': '70098775',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015705&docid=70098778&x=4823',
		'title': '',
		'imageId': '70098778',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015705&docid=70098783&x=4823',
		'title': '',
		'imageId': '70098783',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015705&docid=70098784&x=4823',
		'title': '',
		'imageId': '70098784',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015705&docid=70098789&x=4823',
		'title': '',
		'imageId': '70098789',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015705&docid=70098752&x=4823',
		'title': '',
		'imageId': '70098752',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015705&docid=70098754&x=4823',
		'title': '',
		'imageId': '70098754',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4015705';

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