var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844234&x=4118',
		'title': '',
		'imageId': '69844234',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844228&x=4118',
		'title': '',
		'imageId': '69844228',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844231&x=4118',
		'title': '',
		'imageId': '69844231',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844240&x=4118',
		'title': '',
		'imageId': '69844240',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844242&x=4118',
		'title': '',
		'imageId': '69844242',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844239&x=4118',
		'title': '',
		'imageId': '69844239',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844236&x=4118',
		'title': '',
		'imageId': '69844236',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844238&x=4118',
		'title': '',
		'imageId': '69844238',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844233&x=4118',
		'title': '',
		'imageId': '69844233',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844241&x=4118',
		'title': '',
		'imageId': '69844241',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844222&x=4118',
		'title': '',
		'imageId': '69844222',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844230&x=4118',
		'title': '',
		'imageId': '69844230',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844235&x=4118',
		'title': '',
		'imageId': '69844235',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844225&x=4118',
		'title': '',
		'imageId': '69844225',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844237&x=4118',
		'title': '',
		'imageId': '69844237',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844223&x=4118',
		'title': '',
		'imageId': '69844223',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844232&x=4118',
		'title': '',
		'imageId': '69844232',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844224&x=4118',
		'title': '',
		'imageId': '69844224',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844226&x=4118',
		'title': '',
		'imageId': '69844226',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844229&x=4118',
		'title': '',
		'imageId': '69844229',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844227&x=4118',
		'title': '',
		'imageId': '69844227',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005236&docid=69844243&x=4118',
		'title': '',
		'imageId': '69844243',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4005236';

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