var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3880434&docid=66888038&x=928',
		'title': '',
		'imageId': '66888038',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880434&docid=66888037&x=928',
		'title': '',
		'imageId': '66888037',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880434&docid=66888039&x=928',
		'title': '',
		'imageId': '66888039',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880434&docid=66888040&x=928',
		'title': '',
		'imageId': '66888040',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880434&docid=66888041&x=928',
		'title': '',
		'imageId': '66888041',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880434&docid=66888042&x=928',
		'title': '',
		'imageId': '66888042',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880434&docid=66888043&x=928',
		'title': '',
		'imageId': '66888043',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880434&docid=66888044&x=928',
		'title': '',
		'imageId': '66888044',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880434&docid=66888046&x=928',
		'title': '',
		'imageId': '66888046',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880434&docid=66888045&x=928',
		'title': '',
		'imageId': '66888045',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3880434';

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