var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3993878&docid=65413844&x=432',
		'title': '',
		'imageId': '65413844',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3993878&docid=65413842&x=432',
		'title': '',
		'imageId': '65413842',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3993878&docid=65413843&x=432',
		'title': '',
		'imageId': '65413843',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3993878&docid=65413852&x=432',
		'title': '',
		'imageId': '65413852',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3993878&docid=65413849&x=432',
		'title': '',
		'imageId': '65413849',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3993878&docid=65413845&x=432',
		'title': '',
		'imageId': '65413845',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3993878&docid=65413851&x=432',
		'title': '',
		'imageId': '65413851',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3993878&docid=65413848&x=432',
		'title': '',
		'imageId': '65413848',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3993878&docid=65413847&x=432',
		'title': '',
		'imageId': '65413847',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3993878&docid=65413850&x=432',
		'title': '',
		'imageId': '65413850',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3993878';

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