var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4008421&docid=69784619&x=3750',
		'title': '',
		'imageId': '69784619',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008421&docid=69784622&x=3750',
		'title': '',
		'imageId': '69784622',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008421&docid=69784625&x=3750',
		'title': '',
		'imageId': '69784625',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008421&docid=69784628&x=3750',
		'title': '',
		'imageId': '69784628',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008421&docid=69784631&x=3750',
		'title': '',
		'imageId': '69784631',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008421&docid=69784634&x=3750',
		'title': '',
		'imageId': '69784634',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008421&docid=69784637&x=3750',
		'title': '',
		'imageId': '69784637',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008421&docid=69784640&x=3750',
		'title': '',
		'imageId': '69784640',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008421&docid=69784643&x=3750',
		'title': '',
		'imageId': '69784643',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008421&docid=69784646&x=3750',
		'title': '',
		'imageId': '69784646',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4008421';

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