var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3940208&docid=67797438&x=5121',
		'title': '',
		'imageId': '67797438',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3940208&docid=67797445&x=5121',
		'title': '',
		'imageId': '67797445',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3940208&docid=67797442&x=5121',
		'title': '',
		'imageId': '67797442',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3940208&docid=67797444&x=5121',
		'title': '',
		'imageId': '67797444',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3940208&docid=67797446&x=5121',
		'title': '',
		'imageId': '67797446',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3940208&docid=67797443&x=5121',
		'title': '',
		'imageId': '67797443',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3940208&docid=67797441&x=5121',
		'title': '',
		'imageId': '67797441',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3940208&docid=67797447&x=5121',
		'title': '',
		'imageId': '67797447',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3940208&docid=67797439&x=5121',
		'title': '',
		'imageId': '67797439',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3940208&docid=67797440&x=5121',
		'title': '',
		'imageId': '67797440',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3940208';

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