var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4032072&docid=70358758&x=5345',
		'title': '',
		'imageId': '70358758',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4032072&docid=70358760&x=5345',
		'title': '',
		'imageId': '70358760',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4032072&docid=70358759&x=5345',
		'title': '',
		'imageId': '70358759',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4032072&docid=70358764&x=5345',
		'title': '',
		'imageId': '70358764',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4032072&docid=70358767&x=5345',
		'title': '',
		'imageId': '70358767',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4032072&docid=70358765&x=5345',
		'title': '',
		'imageId': '70358765',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4032072&docid=70358762&x=5345',
		'title': '',
		'imageId': '70358762',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4032072&docid=70358763&x=5345',
		'title': '',
		'imageId': '70358763',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4032072&docid=70358761&x=5345',
		'title': '',
		'imageId': '70358761',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4032072&docid=70358766&x=5345',
		'title': '',
		'imageId': '70358766',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4032072';

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