var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4018989&docid=70204661&x=457',
		'title': '',
		'imageId': '70204661',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018989&docid=70204665&x=457',
		'title': '',
		'imageId': '70204665',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018989&docid=70204666&x=457',
		'title': '',
		'imageId': '70204666',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018989&docid=70204667&x=457',
		'title': '',
		'imageId': '70204667',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018989&docid=70204668&x=457',
		'title': '',
		'imageId': '70204668',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018989&docid=70204669&x=457',
		'title': '',
		'imageId': '70204669',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018989&docid=70204670&x=457',
		'title': '',
		'imageId': '70204670',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018989&docid=70204671&x=457',
		'title': '',
		'imageId': '70204671',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018989&docid=70204674&x=457',
		'title': '',
		'imageId': '70204674',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018989&docid=70204675&x=457',
		'title': '',
		'imageId': '70204675',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4018989';

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