var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3947149&docid=68514009&x=2958',
		'title': '',
		'imageId': '68514009',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947149&docid=68514014&x=2958',
		'title': '',
		'imageId': '68514014',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947149&docid=68514012&x=2958',
		'title': '',
		'imageId': '68514012',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947149&docid=68514010&x=2958',
		'title': '',
		'imageId': '68514010',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947149&docid=68514016&x=2958',
		'title': '',
		'imageId': '68514016',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947149&docid=68514017&x=2958',
		'title': '',
		'imageId': '68514017',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947149&docid=68514020&x=2958',
		'title': '',
		'imageId': '68514020',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947149&docid=68514022&x=2958',
		'title': '',
		'imageId': '68514022',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947149&docid=68514021&x=2958',
		'title': '',
		'imageId': '68514021',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947149&docid=68514015&x=2958',
		'title': '',
		'imageId': '68514015',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947149&docid=68514023&x=2958',
		'title': '',
		'imageId': '68514023',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3947149';

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