var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4009448&docid=69946938&x=4333',
		'title': '',
		'imageId': '69946938',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009448&docid=69946939&x=4333',
		'title': '',
		'imageId': '69946939',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009448&docid=69946940&x=4333',
		'title': '',
		'imageId': '69946940',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009448&docid=69946944&x=4333',
		'title': '',
		'imageId': '69946944',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009448&docid=69946945&x=4333',
		'title': '',
		'imageId': '69946945',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009448&docid=69946947&x=4333',
		'title': '',
		'imageId': '69946947',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009448&docid=69946948&x=4333',
		'title': '',
		'imageId': '69946948',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009448&docid=69946951&x=4333',
		'title': '',
		'imageId': '69946951',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009448&docid=69946952&x=4333',
		'title': '',
		'imageId': '69946952',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009448&docid=69946953&x=4333',
		'title': '',
		'imageId': '69946953',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009448&docid=69946954&x=4333',
		'title': '',
		'imageId': '69946954',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4009448';

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