var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4007709&docid=69901751&x=4445',
		'title': '',
		'imageId': '69901751',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007709&docid=69901740&x=4445',
		'title': '',
		'imageId': '69901740',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007709&docid=69901750&x=4445',
		'title': '',
		'imageId': '69901750',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007709&docid=69901752&x=4445',
		'title': '',
		'imageId': '69901752',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007709&docid=69901749&x=4445',
		'title': '',
		'imageId': '69901749',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007709&docid=69901746&x=4445',
		'title': '',
		'imageId': '69901746',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007709&docid=69901754&x=4445',
		'title': '',
		'imageId': '69901754',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007709&docid=69901753&x=4445',
		'title': '',
		'imageId': '69901753',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007709&docid=69901755&x=4445',
		'title': '',
		'imageId': '69901755',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007709&docid=69901747&x=4445',
		'title': '',
		'imageId': '69901747',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007709&docid=69901748&x=4445',
		'title': '',
		'imageId': '69901748',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4007709';

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