var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3953798&docid=66887964&x=1540',
		'title': '',
		'imageId': '66887964',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3953798&docid=66887965&x=1540',
		'title': '',
		'imageId': '66887965',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3953798&docid=66887966&x=1540',
		'title': '',
		'imageId': '66887966',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3953798&docid=66887967&x=1540',
		'title': '',
		'imageId': '66887967',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3953798&docid=66887968&x=1540',
		'title': '',
		'imageId': '66887968',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3953798&docid=66887969&x=1540',
		'title': '',
		'imageId': '66887969',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3953798&docid=66887970&x=1540',
		'title': '',
		'imageId': '66887970',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3953798&docid=66887971&x=1540',
		'title': '',
		'imageId': '66887971',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3953798&docid=66887972&x=1540',
		'title': '',
		'imageId': '66887972',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3953798&docid=66887973&x=1540',
		'title': '',
		'imageId': '66887973',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3953798';

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