var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3416790&docid=66840194&x=1512',
		'title': '',
		'imageId': '66840194',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3416790&docid=66840195&x=1512',
		'title': '',
		'imageId': '66840195',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3416790&docid=66840201&x=1512',
		'title': '',
		'imageId': '66840201',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3416790&docid=66840202&x=1512',
		'title': '',
		'imageId': '66840202',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3416790&docid=66840200&x=1512',
		'title': '',
		'imageId': '66840200',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3416790&docid=66840198&x=1512',
		'title': '',
		'imageId': '66840198',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3416790&docid=66840197&x=1512',
		'title': '',
		'imageId': '66840197',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3416790&docid=66840203&x=1512',
		'title': '',
		'imageId': '66840203',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3416790&docid=66840199&x=1512',
		'title': '',
		'imageId': '66840199',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3416790&docid=66840196&x=1512',
		'title': '',
		'imageId': '66840196',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3416790';

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