var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3921947&docid=48743174&x=3713',
		'title': '',
		'imageId': '48743174',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3921947&docid=48743164&x=3713',
		'title': '',
		'imageId': '48743164',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3921947&docid=48743162&x=3713',
		'title': '',
		'imageId': '48743162',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3921947&docid=48743161&x=3713',
		'title': '',
		'imageId': '48743161',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3921947&docid=48743167&x=3713',
		'title': '',
		'imageId': '48743167',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3921947&docid=48743165&x=3713',
		'title': '',
		'imageId': '48743165',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3921947&docid=48743166&x=3713',
		'title': '',
		'imageId': '48743166',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3921947&docid=48743163&x=3713',
		'title': '',
		'imageId': '48743163',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3921947&docid=48743182&x=3713',
		'title': '',
		'imageId': '48743182',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3921947&docid=48743175&x=3713',
		'title': '',
		'imageId': '48743175',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3921947&docid=48743181&x=3713',
		'title': '',
		'imageId': '48743181',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3921947';

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