var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943477&x=2123',
		'title': '',
		'imageId': '69943477',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943538&x=2123',
		'title': '',
		'imageId': '69943538',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943540&x=2123',
		'title': '',
		'imageId': '69943540',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943539&x=2123',
		'title': '',
		'imageId': '69943539',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943536&x=2123',
		'title': '',
		'imageId': '69943536',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943537&x=2123',
		'title': '',
		'imageId': '69943537',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943617&x=2123',
		'title': '',
		'imageId': '69943617',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943566&x=2123',
		'title': '',
		'imageId': '69943566',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943564&x=2123',
		'title': '',
		'imageId': '69943564',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943560&x=2123',
		'title': '',
		'imageId': '69943560',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943568&x=2123',
		'title': '',
		'imageId': '69943568',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943513&x=2123',
		'title': '',
		'imageId': '69943513',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943562&x=2123',
		'title': '',
		'imageId': '69943562',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943567&x=2123',
		'title': '',
		'imageId': '69943567',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943561&x=2123',
		'title': '',
		'imageId': '69943561',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943559&x=2123',
		'title': '',
		'imageId': '69943559',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943563&x=2123',
		'title': '',
		'imageId': '69943563',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943565&x=2123',
		'title': '',
		'imageId': '69943565',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943478&x=2123',
		'title': '',
		'imageId': '69943478',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943476&x=2123',
		'title': '',
		'imageId': '69943476',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943620&x=2123',
		'title': '',
		'imageId': '69943620',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943621&x=2123',
		'title': '',
		'imageId': '69943621',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69943619&x=2123',
		'title': '',
		'imageId': '69943619',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009336&docid=69944711&x=2123',
		'title': '',
		'imageId': '69944711',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4009336';

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