var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3897996&docid=67338532&x=2016',
		'title': '',
		'imageId': '67338532',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3897996&docid=67338538&x=2016',
		'title': '',
		'imageId': '67338538',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3897996&docid=67338537&x=2016',
		'title': '',
		'imageId': '67338537',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3897996&docid=67338533&x=2016',
		'title': '',
		'imageId': '67338533',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3897996&docid=67338541&x=2016',
		'title': '',
		'imageId': '67338541',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3897996&docid=67338531&x=2016',
		'title': '',
		'imageId': '67338531',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3897996&docid=67338539&x=2016',
		'title': '',
		'imageId': '67338539',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3897996&docid=67338540&x=2016',
		'title': '',
		'imageId': '67338540',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3897996&docid=67338536&x=2016',
		'title': '',
		'imageId': '67338536',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3897996&docid=67338535&x=2016',
		'title': '',
		'imageId': '67338535',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3897996&docid=67338534&x=2016',
		'title': '',
		'imageId': '67338534',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3897996';

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