var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=476400&docid=2602883&x=4030',
		'title': '',
		'imageId': '2602883',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476400&docid=2602887&x=4030',
		'title': '',
		'imageId': '2602887',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476400&docid=2602893&x=4030',
		'title': '',
		'imageId': '2602893',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476400&docid=2602901&x=4030',
		'title': '',
		'imageId': '2602901',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476400&docid=2602910&x=4030',
		'title': '',
		'imageId': '2602910',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476400&docid=2602915&x=4030',
		'title': '',
		'imageId': '2602915',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476400&docid=2602918&x=4030',
		'title': '',
		'imageId': '2602918',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476400&docid=2602922&x=4030',
		'title': '',
		'imageId': '2602922',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476400&docid=2602928&x=4030',
		'title': '',
		'imageId': '2602928',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #476400';

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