var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4015711&docid=70101038&x=2058',
		'title': '',
		'imageId': '70101038',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015711&docid=70101039&x=2058',
		'title': '',
		'imageId': '70101039',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015711&docid=70101040&x=2058',
		'title': '',
		'imageId': '70101040',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015711&docid=70101041&x=2058',
		'title': '',
		'imageId': '70101041',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015711&docid=70101018&x=2058',
		'title': '',
		'imageId': '70101018',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015711&docid=70101016&x=2058',
		'title': '',
		'imageId': '70101016',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015711&docid=70101017&x=2058',
		'title': '',
		'imageId': '70101017',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015711&docid=70101015&x=2058',
		'title': '',
		'imageId': '70101015',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015711&docid=70101042&x=2058',
		'title': '',
		'imageId': '70101042',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015711&docid=70101014&x=2058',
		'title': '',
		'imageId': '70101014',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4015711';

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