var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=70160092&x=5933',
		'title': '',
		'imageId': '70160092',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=70160090&x=5933',
		'title': '',
		'imageId': '70160090',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=70160157&x=5933',
		'title': '',
		'imageId': '70160157',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=70160087&x=5933',
		'title': '',
		'imageId': '70160087',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=70160091&x=5933',
		'title': '',
		'imageId': '70160091',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=70160085&x=5933',
		'title': '',
		'imageId': '70160085',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=70160086&x=5933',
		'title': '',
		'imageId': '70160086',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=69971236&x=5933',
		'title': '',
		'imageId': '69971236',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=69971227&x=5933',
		'title': '',
		'imageId': '69971227',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=69971226&x=5933',
		'title': '',
		'imageId': '69971226',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010524&docid=69971231&x=5933',
		'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";
	})
}
