var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4015782&docid=70104513&x=2817',
		'title': '',
		'imageId': '70104513',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015782&docid=70104516&x=2817',
		'title': '',
		'imageId': '70104516',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015782&docid=70104519&x=2817',
		'title': '',
		'imageId': '70104519',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015782&docid=70104530&x=2817',
		'title': '',
		'imageId': '70104530',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015782&docid=70104581&x=2817',
		'title': '',
		'imageId': '70104581',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015782&docid=70104625&x=2817',
		'title': '',
		'imageId': '70104625',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015782&docid=70104666&x=2817',
		'title': '',
		'imageId': '70104666',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015782&docid=70104677&x=2817',
		'title': '',
		'imageId': '70104677',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015782&docid=70104682&x=2817',
		'title': '',
		'imageId': '70104682',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015782&docid=70104709&x=2817',
		'title': '',
		'imageId': '70104709',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015782&docid=70104746&x=2817',
		'title': '',
		'imageId': '70104746',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4015782';

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