var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4015234&docid=66248490&x=3811',
		'title': '',
		'imageId': '66248490',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015234&docid=66248503&x=3811',
		'title': '',
		'imageId': '66248503',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015234&docid=66248498&x=3811',
		'title': '',
		'imageId': '66248498',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015234&docid=66248512&x=3811',
		'title': '',
		'imageId': '66248512',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015234&docid=66248513&x=3811',
		'title': '',
		'imageId': '66248513',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015234&docid=66248494&x=3811',
		'title': '',
		'imageId': '66248494',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015234&docid=66248487&x=3811',
		'title': '',
		'imageId': '66248487',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015234&docid=66248493&x=3811',
		'title': '',
		'imageId': '66248493',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015234&docid=66248507&x=3811',
		'title': '',
		'imageId': '66248507',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015234&docid=66248520&x=3811',
		'title': '',
		'imageId': '66248520',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015234&docid=66248502&x=3811',
		'title': '',
		'imageId': '66248502',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015234&docid=66248500&x=3811',
		'title': '',
		'imageId': '66248500',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4015234';

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