var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4022188&docid=70279519&x=1812',
		'title': '',
		'imageId': '70279519',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4022188&docid=70279527&x=1812',
		'title': '',
		'imageId': '70279527',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4022188&docid=70279520&x=1812',
		'title': '',
		'imageId': '70279520',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4022188&docid=70279526&x=1812',
		'title': '',
		'imageId': '70279526',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4022188&docid=70279518&x=1812',
		'title': '',
		'imageId': '70279518',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4022188&docid=70279522&x=1812',
		'title': '',
		'imageId': '70279522',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4022188&docid=70279523&x=1812',
		'title': '',
		'imageId': '70279523',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4022188&docid=70279517&x=1812',
		'title': '',
		'imageId': '70279517',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4022188&docid=70279524&x=1812',
		'title': '',
		'imageId': '70279524',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4022188&docid=70279525&x=1812',
		'title': '',
		'imageId': '70279525',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4022188&docid=70279521&x=1812',
		'title': '',
		'imageId': '70279521',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4022188';

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