var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3987721&docid=69442558&x=587',
		'title': '',
		'imageId': '69442558',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3987721&docid=69442559&x=587',
		'title': '',
		'imageId': '69442559',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3987721&docid=69442560&x=587',
		'title': '',
		'imageId': '69442560',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3987721&docid=69442561&x=587',
		'title': '',
		'imageId': '69442561',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3987721&docid=69442566&x=587',
		'title': '',
		'imageId': '69442566',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3987721&docid=69442567&x=587',
		'title': '',
		'imageId': '69442567',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3987721&docid=69442568&x=587',
		'title': '',
		'imageId': '69442568',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3987721&docid=69442569&x=587',
		'title': '',
		'imageId': '69442569',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3987721&docid=69442570&x=587',
		'title': '',
		'imageId': '69442570',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3987721&docid=69442571&x=587',
		'title': '',
		'imageId': '69442571',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3987721';

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