var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=69971232&x=1040',
		'title': '',
		'imageId': '69971232',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=69971229&x=1040',
		'title': '',
		'imageId': '69971229',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=69971234&x=1040',
		'title': '',
		'imageId': '69971234',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=69971225&x=1040',
		'title': '',
		'imageId': '69971225',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=69971236&x=1040',
		'title': '',
		'imageId': '69971236',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=69971224&x=1040',
		'title': '',
		'imageId': '69971224',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=69971228&x=1040',
		'title': '',
		'imageId': '69971228',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=69971230&x=1040',
		'title': '',
		'imageId': '69971230',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=69971227&x=1040',
		'title': '',
		'imageId': '69971227',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=69971226&x=1040',
		'title': '',
		'imageId': '69971226',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=69971231&x=1040',
		'title': '',
		'imageId': '69971231',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4010524';

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