var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4008302&docid=69917427&x=4242',
		'title': '',
		'imageId': '69917427',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008302&docid=69917430&x=4242',
		'title': '',
		'imageId': '69917430',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008302&docid=69917431&x=4242',
		'title': '',
		'imageId': '69917431',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008302&docid=69917432&x=4242',
		'title': '',
		'imageId': '69917432',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008302&docid=69917433&x=4242',
		'title': '',
		'imageId': '69917433',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008302&docid=69917434&x=4242',
		'title': '',
		'imageId': '69917434',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008302&docid=69917435&x=4242',
		'title': '',
		'imageId': '69917435',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008302&docid=69917436&x=4242',
		'title': '',
		'imageId': '69917436',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008302&docid=69917437&x=4242',
		'title': '',
		'imageId': '69917437',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008302&docid=69917425&x=4242',
		'title': '',
		'imageId': '69917425',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008302&docid=69917426&x=4242',
		'title': '',
		'imageId': '69917426',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4008302';

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