var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4007559&docid=69896747&x=3221',
		'title': '',
		'imageId': '69896747',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007559&docid=69896742&x=3221',
		'title': '',
		'imageId': '69896742',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007559&docid=69896746&x=3221',
		'title': '',
		'imageId': '69896746',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007559&docid=69896737&x=3221',
		'title': '',
		'imageId': '69896737',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007559&docid=69896745&x=3221',
		'title': '',
		'imageId': '69896745',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007559&docid=69896743&x=3221',
		'title': '',
		'imageId': '69896743',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007559&docid=69896744&x=3221',
		'title': '',
		'imageId': '69896744',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007559&docid=69896740&x=3221',
		'title': '',
		'imageId': '69896740',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007559&docid=69896741&x=3221',
		'title': '',
		'imageId': '69896741',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007559&docid=69896738&x=3221',
		'title': '',
		'imageId': '69896738',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007559&docid=69896739&x=3221',
		'title': '',
		'imageId': '69896739',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4007559';

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