var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4015712&docid=70101112&x=5520',
		'title': '',
		'imageId': '70101112',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015712&docid=70101107&x=5520',
		'title': '',
		'imageId': '70101107',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015712&docid=70101115&x=5520',
		'title': '',
		'imageId': '70101115',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015712&docid=70101113&x=5520',
		'title': '',
		'imageId': '70101113',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015712&docid=70101117&x=5520',
		'title': '',
		'imageId': '70101117',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015712&docid=70101111&x=5520',
		'title': '',
		'imageId': '70101111',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015712&docid=70101106&x=5520',
		'title': '',
		'imageId': '70101106',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015712&docid=70101109&x=5520',
		'title': '',
		'imageId': '70101109',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015712&docid=70101116&x=5520',
		'title': '',
		'imageId': '70101116',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015712&docid=70101114&x=5520',
		'title': '',
		'imageId': '70101114',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015712&docid=70101108&x=5520',
		'title': '',
		'imageId': '70101108',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015712&docid=70101110&x=5520',
		'title': '',
		'imageId': '70101110',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4015712';

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