var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4007901&docid=69931662&x=2956',
		'title': '',
		'imageId': '69931662',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007901&docid=69931663&x=2956',
		'title': '',
		'imageId': '69931663',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007901&docid=69905749&x=2956',
		'title': '',
		'imageId': '69905749',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007901&docid=69905747&x=2956',
		'title': '',
		'imageId': '69905747',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007901&docid=69905752&x=2956',
		'title': '',
		'imageId': '69905752',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007901&docid=69905751&x=2956',
		'title': '',
		'imageId': '69905751',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007901&docid=69905755&x=2956',
		'title': '',
		'imageId': '69905755',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007901&docid=69905748&x=2956',
		'title': '',
		'imageId': '69905748',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007901&docid=69905750&x=2956',
		'title': '',
		'imageId': '69905750',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007901&docid=69905754&x=2956',
		'title': '',
		'imageId': '69905754',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007901&docid=69905753&x=2956',
		'title': '',
		'imageId': '69905753',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4007901';

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