var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3978643&docid=66451721&x=4845',
		'title': '',
		'imageId': '66451721',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978643&docid=66451722&x=4845',
		'title': '',
		'imageId': '66451722',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978643&docid=66451720&x=4845',
		'title': '',
		'imageId': '66451720',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978643&docid=66451723&x=4845',
		'title': '',
		'imageId': '66451723',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978643&docid=66451724&x=4845',
		'title': '',
		'imageId': '66451724',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978643&docid=66451725&x=4845',
		'title': '',
		'imageId': '66451725',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978643&docid=66451726&x=4845',
		'title': '',
		'imageId': '66451726',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978643&docid=66451727&x=4845',
		'title': '',
		'imageId': '66451727',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978643&docid=66451728&x=4845',
		'title': '',
		'imageId': '66451728',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978643&docid=66451729&x=4845',
		'title': '',
		'imageId': '66451729',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3978643';

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