var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3978654&docid=69229420&x=2833',
		'title': '',
		'imageId': '69229420',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978654&docid=69229455&x=2833',
		'title': '',
		'imageId': '69229455',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978654&docid=69229468&x=2833',
		'title': '',
		'imageId': '69229468',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978654&docid=69229478&x=2833',
		'title': '',
		'imageId': '69229478',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978654&docid=69229482&x=2833',
		'title': '',
		'imageId': '69229482',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978654&docid=69229484&x=2833',
		'title': '',
		'imageId': '69229484',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978654&docid=69229495&x=2833',
		'title': '',
		'imageId': '69229495',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978654&docid=69229515&x=2833',
		'title': '',
		'imageId': '69229515',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978654&docid=69229564&x=2833',
		'title': '',
		'imageId': '69229564',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978654&docid=69229571&x=2833',
		'title': '',
		'imageId': '69229571',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978654&docid=69229594&x=2833',
		'title': '',
		'imageId': '69229594',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3978654';

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