var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3883223&docid=66963659&x=5331',
		'title': '',
		'imageId': '66963659',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3883223&docid=66963657&x=5331',
		'title': '',
		'imageId': '66963657',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3883223&docid=66963658&x=5331',
		'title': '',
		'imageId': '66963658',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3883223&docid=66963660&x=5331',
		'title': '',
		'imageId': '66963660',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3883223&docid=66963661&x=5331',
		'title': '',
		'imageId': '66963661',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3883223&docid=66963662&x=5331',
		'title': '',
		'imageId': '66963662',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3883223&docid=66963663&x=5331',
		'title': '',
		'imageId': '66963663',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3883223&docid=66963664&x=5331',
		'title': '',
		'imageId': '66963664',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3883223&docid=66963665&x=5331',
		'title': '',
		'imageId': '66963665',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3883223&docid=66963666&x=5331',
		'title': '',
		'imageId': '66963666',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3883223';

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