var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3891223&docid=67175527&x=539',
		'title': '',
		'imageId': '67175527',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3891223&docid=67175528&x=539',
		'title': '',
		'imageId': '67175528',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3891223&docid=67175529&x=539',
		'title': '',
		'imageId': '67175529',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3891223&docid=67175530&x=539',
		'title': '',
		'imageId': '67175530',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3891223&docid=67175531&x=539',
		'title': '',
		'imageId': '67175531',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3891223&docid=67175532&x=539',
		'title': '',
		'imageId': '67175532',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3891223&docid=67175533&x=539',
		'title': '',
		'imageId': '67175533',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3891223&docid=67175534&x=539',
		'title': '',
		'imageId': '67175534',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3891223&docid=67175536&x=539',
		'title': '',
		'imageId': '67175536',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3891223&docid=67175537&x=539',
		'title': '',
		'imageId': '67175537',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3891223&docid=67175538&x=539',
		'title': '',
		'imageId': '67175538',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3891223';

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