var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4015324&docid=70138307&x=4252',
		'title': '',
		'imageId': '70138307',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015324&docid=70138310&x=4252',
		'title': '',
		'imageId': '70138310',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015324&docid=70138317&x=4252',
		'title': '',
		'imageId': '70138317',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015324&docid=70138320&x=4252',
		'title': '',
		'imageId': '70138320',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015324&docid=70138309&x=4252',
		'title': '',
		'imageId': '70138309',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015324&docid=70138318&x=4252',
		'title': '',
		'imageId': '70138318',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015324&docid=70138314&x=4252',
		'title': '',
		'imageId': '70138314',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015324&docid=70138313&x=4252',
		'title': '',
		'imageId': '70138313',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015324&docid=70138315&x=4252',
		'title': '',
		'imageId': '70138315',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015324&docid=70138316&x=4252',
		'title': '',
		'imageId': '70138316',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015324&docid=70138308&x=4252',
		'title': '',
		'imageId': '70138308',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015324&docid=70138312&x=4252',
		'title': '',
		'imageId': '70138312',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015324&docid=70138311&x=4252',
		'title': '',
		'imageId': '70138311',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015324&docid=70138319&x=4252',
		'title': '',
		'imageId': '70138319',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015324&docid=59270515&x=4252',
		'title': '',
		'imageId': '59270515',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015324&docid=59270516&x=4252',
		'title': '',
		'imageId': '59270516',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4015324';

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