var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3974452&docid=66602560&x=516',
		'title': '',
		'imageId': '66602560',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974452&docid=66602561&x=516',
		'title': '',
		'imageId': '66602561',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974452&docid=66602562&x=516',
		'title': '',
		'imageId': '66602562',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974452&docid=66602563&x=516',
		'title': '',
		'imageId': '66602563',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974452&docid=66602564&x=516',
		'title': '',
		'imageId': '66602564',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974452&docid=66602565&x=516',
		'title': '',
		'imageId': '66602565',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974452&docid=66602566&x=516',
		'title': '',
		'imageId': '66602566',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974452&docid=66602567&x=516',
		'title': '',
		'imageId': '66602567',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974452&docid=66602568&x=516',
		'title': '',
		'imageId': '66602568',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974452&docid=66602569&x=516',
		'title': '',
		'imageId': '66602569',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3974452';

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