var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=460171&docid=2478391&x=428',
		'title': '',
		'imageId': '2478391',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=460171&docid=2478394&x=428',
		'title': '',
		'imageId': '2478394',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=460171&docid=2478398&x=428',
		'title': '',
		'imageId': '2478398',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=460171&docid=2478401&x=428',
		'title': '',
		'imageId': '2478401',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=460171&docid=2478404&x=428',
		'title': '',
		'imageId': '2478404',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=460171&docid=2478407&x=428',
		'title': '',
		'imageId': '2478407',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=460171&docid=2478411&x=428',
		'title': '',
		'imageId': '2478411',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=460171&docid=2478414&x=428',
		'title': '',
		'imageId': '2478414',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=460171&docid=2478419&x=428',
		'title': '',
		'imageId': '2478419',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=460171&docid=2478425&x=428',
		'title': '',
		'imageId': '2478425',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=460171&docid=2478428&x=428',
		'title': '',
		'imageId': '2478428',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #460171';

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