var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3894765&docid=67264821&x=5238',
		'title': '',
		'imageId': '67264821',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3894765&docid=67264827&x=5238',
		'title': '',
		'imageId': '67264827',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3894765&docid=67264828&x=5238',
		'title': '',
		'imageId': '67264828',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3894765&docid=67264836&x=5238',
		'title': '',
		'imageId': '67264836',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3894765&docid=67264841&x=5238',
		'title': '',
		'imageId': '67264841',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3894765&docid=67264846&x=5238',
		'title': '',
		'imageId': '67264846',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3894765&docid=67264850&x=5238',
		'title': '',
		'imageId': '67264850',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3894765&docid=67264853&x=5238',
		'title': '',
		'imageId': '67264853',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3894765&docid=67264856&x=5238',
		'title': '',
		'imageId': '67264856',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3894765&docid=67264864&x=5238',
		'title': '',
		'imageId': '67264864',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3894765&docid=67264865&x=5238',
		'title': '',
		'imageId': '67264865',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3894765&docid=67264868&x=5238',
		'title': '',
		'imageId': '67264868',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3894765&docid=67264877&x=5238',
		'title': '',
		'imageId': '67264877',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3894765&docid=67264880&x=5238',
		'title': '',
		'imageId': '67264880',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3894765&docid=67264883&x=5238',
		'title': '',
		'imageId': '67264883',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3894765&docid=67264889&x=5238',
		'title': '',
		'imageId': '67264889',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3894765';

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