var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4020750&docid=70249462&x=2010',
		'title': '',
		'imageId': '70249462',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020750&docid=70249466&x=2010',
		'title': '',
		'imageId': '70249466',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020750&docid=70249465&x=2010',
		'title': '',
		'imageId': '70249465',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020750&docid=70249471&x=2010',
		'title': '',
		'imageId': '70249471',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020750&docid=70249464&x=2010',
		'title': '',
		'imageId': '70249464',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020750&docid=70249469&x=2010',
		'title': '',
		'imageId': '70249469',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020750&docid=70249467&x=2010',
		'title': '',
		'imageId': '70249467',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020750&docid=70249463&x=2010',
		'title': '',
		'imageId': '70249463',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020750&docid=70249472&x=2010',
		'title': '',
		'imageId': '70249472',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020750&docid=70249468&x=2010',
		'title': '',
		'imageId': '70249468',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020750&docid=70249470&x=2010',
		'title': '',
		'imageId': '70249470',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4020750';

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