var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4008348&docid=69918012&x=2342',
		'title': '',
		'imageId': '69918012',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008348&docid=69918015&x=2342',
		'title': '',
		'imageId': '69918015',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008348&docid=69918017&x=2342',
		'title': '',
		'imageId': '69918017',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008348&docid=69918016&x=2342',
		'title': '',
		'imageId': '69918016',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008348&docid=69918013&x=2342',
		'title': '',
		'imageId': '69918013',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008348&docid=69918014&x=2342',
		'title': '',
		'imageId': '69918014',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008348&docid=69918018&x=2342',
		'title': '',
		'imageId': '69918018',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008348&docid=69918019&x=2342',
		'title': '',
		'imageId': '69918019',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008348&docid=69918020&x=2342',
		'title': '',
		'imageId': '69918020',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008348&docid=69918021&x=2342',
		'title': '',
		'imageId': '69918021',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008348&docid=69918022&x=2342',
		'title': '',
		'imageId': '69918022',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4008348';

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