var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3974770&docid=69140677&x=3842',
		'title': '',
		'imageId': '69140677',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974770&docid=69140678&x=3842',
		'title': '',
		'imageId': '69140678',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974770&docid=69140679&x=3842',
		'title': '',
		'imageId': '69140679',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974770&docid=69140680&x=3842',
		'title': '',
		'imageId': '69140680',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974770&docid=69140703&x=3842',
		'title': '',
		'imageId': '69140703',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974770&docid=69140724&x=3842',
		'title': '',
		'imageId': '69140724',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974770&docid=69140725&x=3842',
		'title': '',
		'imageId': '69140725',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974770&docid=69140726&x=3842',
		'title': '',
		'imageId': '69140726',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974770&docid=69140730&x=3842',
		'title': '',
		'imageId': '69140730',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974770&docid=69140731&x=3842',
		'title': '',
		'imageId': '69140731',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974770&docid=69140732&x=3842',
		'title': '',
		'imageId': '69140732',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3974770';

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